Skip to content

Commit fcca872

Browse files
Release Plugin (#333)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent b813352 commit fcca872

7 files changed

+140
-83
lines changed

.changeset/bright-trains-approve.md

-5
This file was deleted.

.changeset/proud-fireants-buy.md

-5
This file was deleted.

.changeset/thirty-ducks-check.md

-63
This file was deleted.

CHANGELOG.md

+68
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,73 @@
11
# WPGraphQL Content Blocks
22

3+
## 4.5.0
4+
5+
### Minor Changes
6+
7+
- b133a1b: Added WP GraphQL as a required plugin.
8+
- b813352: Adds support for resolving and returning navigation items within the CoreNavigation innerBlocks for WPGraphQL Content Blocks.
9+
10+
```graphql
11+
{
12+
posts {
13+
nodes {
14+
editorBlocks {
15+
... on CoreNavigation {
16+
type
17+
name
18+
innerBlocks {
19+
type
20+
name
21+
}
22+
attributes {
23+
ref
24+
}
25+
}
26+
}
27+
}
28+
}
29+
}
30+
```
31+
32+
```json
33+
{
34+
"data": {
35+
"posts": {
36+
"nodes": [
37+
{
38+
"editorBlocks": [
39+
{
40+
"type": "CoreNavigation",
41+
"name": "core/navigation",
42+
"innerBlocks": [
43+
{
44+
"type": "CorePageList",
45+
"name": "core/page-list"
46+
},
47+
{
48+
"type": "CoreNavigationLink",
49+
"name": "core/navigation-link"
50+
}
51+
],
52+
"attributes": {
53+
"ref": 31
54+
}
55+
}
56+
]
57+
},
58+
{
59+
"editorBlocks": [{}]
60+
}
61+
]
62+
}
63+
}
64+
}
65+
```
66+
67+
### Patch Changes
68+
69+
- dec27c3: feat: Added a `CoreGroup` block class to fix an issue with a missing attribute `cssClassName`
70+
371
## 4.4.0
472

573
### Minor Changes

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@wpengine/wp-graphql-content-blocks",
33
"private": true,
4-
"version": "4.4.0",
4+
"version": "4.5.0",
55
"engines": {
66
"node": ">=16.0.0"
77
},

readme.txt

+69-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: blakewpe, chriswiegman, joefusco, matthewguywright, TeresaGobble,
33
Tags: faustjs, faust, headless, decoupled, gutenberg
44
Requires at least: 5.7
55
Tested up to: 6.7.1
6-
Stable tag: 4.4.0
6+
Stable tag: 4.5.0
77
Requires PHP: 7.4
88
License: GPLv2 or later
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -26,6 +26,74 @@ Extends WPGraphQL to support querying (Gutenberg) Blocks as data.
2626

2727
== Changelog ==
2828

29+
= 4.5.0 =
30+
31+
### Minor Changes
32+
33+
- b133a1b: Added WP GraphQL as a required plugin.
34+
- b813352: Adds support for resolving and returning navigation items within the CoreNavigation innerBlocks for WPGraphQL Content Blocks.
35+
36+
```graphql
37+
{
38+
posts {
39+
nodes {
40+
editorBlocks {
41+
... on CoreNavigation {
42+
type
43+
name
44+
innerBlocks {
45+
type
46+
name
47+
}
48+
attributes {
49+
ref
50+
}
51+
}
52+
}
53+
}
54+
}
55+
}
56+
```
57+
58+
```json
59+
{
60+
"data": {
61+
"posts": {
62+
"nodes": [
63+
{
64+
"editorBlocks": [
65+
{
66+
"type": "CoreNavigation",
67+
"name": "core/navigation",
68+
"innerBlocks": [
69+
{
70+
"type": "CorePageList",
71+
"name": "core/page-list"
72+
},
73+
{
74+
"type": "CoreNavigationLink",
75+
"name": "core/navigation-link"
76+
}
77+
],
78+
"attributes": {
79+
"ref": 31
80+
}
81+
}
82+
]
83+
},
84+
{
85+
"editorBlocks": [{}]
86+
}
87+
]
88+
}
89+
}
90+
}
91+
```
92+
93+
### Patch Changes
94+
95+
- dec27c3: feat: Added a `CoreGroup` block class to fix an issue with a missing attribute `cssClassName`
96+
2997
= 4.4.0 =
3098

3199
### Minor Changes
@@ -41,10 +109,4 @@ Extends WPGraphQL to support querying (Gutenberg) Blocks as data.
41109
- c8832fc: fix: improve handling of empty blocks in `ContentBlocksResolver`.
42110
- 9a2ebf7: fix: Ensure correct `EditorBlock.type` field resolution.
43111

44-
= 4.3.1 =
45-
46-
### Patch Changes
47-
48-
- f99f768: Correct version definition
49-
50112
[View the full changelog](https://github.com/wpengine/wp-graphql-content-blocks/blob/main/CHANGELOG.md)

wp-graphql-content-blocks.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
99
* Text Domain: wp-graphql-content-blocks
1010
* Domain Path: /languages
11-
* Version: 4.4.0
11+
* Version: 4.5.0
1212
* Requires PHP: 7.4
1313
* Requires at least: 5.7
1414
*
@@ -43,7 +43,7 @@ function wpgraphql_content_blocks_constants(): void {
4343
define( 'WPGRAPHQL_CONTENT_BLOCKS_PLUGIN_PATH', plugin_basename( WPGRAPHQL_CONTENT_BLOCKS_PLUGIN_FILE ) );
4444
}
4545
if ( ! defined( 'WPGRAPHQL_CONTENT_BLOCKS_VERSION' ) ) {
46-
define( 'WPGRAPHQL_CONTENT_BLOCKS_VERSION', '4.4.0' );
46+
define( 'WPGRAPHQL_CONTENT_BLOCKS_VERSION', '4.5.0' );
4747
}
4848
}
4949
}

0 commit comments

Comments
 (0)