From 2c0a46c0bdbbd36974f05dbb1333c9cd2ae5cb71 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 27 Jan 2025 16:15:01 +0000 Subject: [PATCH] Release Plugin --- .changeset/bright-trains-approve.md | 5 -- .changeset/proud-fireants-buy.md | 5 -- .changeset/thirty-ducks-check.md | 63 ------------------------ CHANGELOG.md | 68 ++++++++++++++++++++++++++ package.json | 2 +- readme.txt | 76 ++++++++++++++++++++++++++--- wp-graphql-content-blocks.php | 4 +- 7 files changed, 140 insertions(+), 83 deletions(-) delete mode 100644 .changeset/bright-trains-approve.md delete mode 100644 .changeset/proud-fireants-buy.md delete mode 100644 .changeset/thirty-ducks-check.md diff --git a/.changeset/bright-trains-approve.md b/.changeset/bright-trains-approve.md deleted file mode 100644 index 98ee8d27..00000000 --- a/.changeset/bright-trains-approve.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": minor ---- - -Added WP GraphQL as a required plugin. diff --git a/.changeset/proud-fireants-buy.md b/.changeset/proud-fireants-buy.md deleted file mode 100644 index f198e8ca..00000000 --- a/.changeset/proud-fireants-buy.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": patch ---- - -feat: Added a `CoreGroup` block class to fix an issue with a missing attribute `cssClassName` diff --git a/.changeset/thirty-ducks-check.md b/.changeset/thirty-ducks-check.md deleted file mode 100644 index c73f64c2..00000000 --- a/.changeset/thirty-ducks-check.md +++ /dev/null @@ -1,63 +0,0 @@ ---- -"@wpengine/wp-graphql-content-blocks": minor ---- - -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": [ - {} - ] - } - ] - } - }, -} -``` diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d7df052..d6d20972 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,73 @@ # WPGraphQL Content Blocks +## 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 diff --git a/package.json b/package.json index 6aa2773f..57019ea2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@wpengine/wp-graphql-content-blocks", "private": true, - "version": "4.4.0", + "version": "4.5.0", "engines": { "node": ">=16.0.0" }, diff --git a/readme.txt b/readme.txt index 449019ad..36336084 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: blakewpe, chriswiegman, joefusco, matthewguywright, TeresaGobble, Tags: faustjs, faust, headless, decoupled, gutenberg Requires at least: 5.7 Tested up to: 6.7.1 -Stable tag: 4.4.0 +Stable tag: 4.5.0 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -26,6 +26,74 @@ Extends WPGraphQL to support querying (Gutenberg) Blocks as data. == 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 @@ -41,10 +109,4 @@ Extends WPGraphQL to support querying (Gutenberg) Blocks as data. - c8832fc: fix: improve handling of empty blocks in `ContentBlocksResolver`. - 9a2ebf7: fix: Ensure correct `EditorBlock.type` field resolution. -= 4.3.1 = - -### Patch Changes - -- f99f768: Correct version definition - [View the full changelog](https://github.com/wpengine/wp-graphql-content-blocks/blob/main/CHANGELOG.md) \ No newline at end of file diff --git a/wp-graphql-content-blocks.php b/wp-graphql-content-blocks.php index 6283e54b..0f2c1d02 100644 --- a/wp-graphql-content-blocks.php +++ b/wp-graphql-content-blocks.php @@ -8,7 +8,7 @@ * License URI: https://www.gnu.org/licenses/gpl-2.0.html * Text Domain: wp-graphql-content-blocks * Domain Path: /languages - * Version: 4.4.0 + * Version: 4.5.0 * Requires PHP: 7.4 * Requires at least: 5.7 * @@ -43,7 +43,7 @@ function wpgraphql_content_blocks_constants(): void { define( 'WPGRAPHQL_CONTENT_BLOCKS_PLUGIN_PATH', plugin_basename( WPGRAPHQL_CONTENT_BLOCKS_PLUGIN_FILE ) ); } if ( ! defined( 'WPGRAPHQL_CONTENT_BLOCKS_VERSION' ) ) { - define( 'WPGRAPHQL_CONTENT_BLOCKS_VERSION', '4.4.0' ); + define( 'WPGRAPHQL_CONTENT_BLOCKS_VERSION', '4.5.0' ); } } }