-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathreadme.txt
112 lines (90 loc) · 2.58 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
=== WPGraphQL Content Blocks ===
Contributors: blakewpe, chriswiegman, joefusco, matthewguywright, TeresaGobble, thdespou, wpengine
Tags: faustjs, faust, headless, decoupled, gutenberg
Requires at least: 5.7
Tested up to: 6.7.1
Stable tag: 4.5.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires Plugins: wp-graphql
Extends WPGraphQL to support querying (Gutenberg) Blocks as data.
== Description ==
Extends WPGraphQL to support querying (Gutenberg) Blocks as data.
== Installation ==
1. Search for the plugin in WordPress under "Plugins -> Add New".
2. Click the “Install Now” button, followed by "Activate".
== Frequently Asked Questions ==
== Screenshots ==
== Changelog ==
= 4.5.0 =
### Minor Changes
- b133a1b: Added WP GraphQL as a required plugin.
- b813352: Adds support for resolving and returning navigation items within the CoreNavigation innerBlocks for WPGraphQL Content Blocks.
```graphql
{
posts {
nodes {
editorBlocks {
... on CoreNavigation {
type
name
innerBlocks {
type
name
}
attributes {
ref
}
}
}
}
}
}
```
```json
{
"data": {
"posts": {
"nodes": [
{
"editorBlocks": [
{
"type": "CoreNavigation",
"name": "core/navigation",
"innerBlocks": [
{
"type": "CorePageList",
"name": "core/page-list"
},
{
"type": "CoreNavigationLink",
"name": "core/navigation-link"
}
],
"attributes": {
"ref": 31
}
}
]
},
{
"editorBlocks": [{}]
}
]
}
}
}
```
### Patch Changes
- dec27c3: feat: Added a `CoreGroup` block class to fix an issue with a missing attribute `cssClassName`
= 4.4.0 =
### Minor Changes
- 756471a: feat: add support for resolving PostContent blocks
- 19f6e27: feat: add support for resolving Template Part blocks
- 4c548c3: feat: add support for resolving Block Patterns
= 4.3.2 =
### Patch Changes
- c8832fc: fix: improve handling of empty blocks in `ContentBlocksResolver`.
- 9a2ebf7: fix: Ensure correct `EditorBlock.type` field resolution.
[View the full changelog](https://github.com/wpengine/wp-graphql-content-blocks/blob/main/CHANGELOG.md)