From 7bead4f38a8584f33216edd5578ee1ff905e5f79 Mon Sep 17 00:00:00 2001 From: mricoul Date: Tue, 27 Jan 2026 11:30:48 +0100 Subject: [PATCH 1/2] fix: adds isAccordion attribute to FAQ block Adds the `isAccordion` attribute to the FAQ block's schema. This attribute controls whether the FAQ items are displayed in an accordion style, allowing users to expand and collapse individual questions. The default value is set to `true`. --- src/faq/block.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/faq/block.json b/src/faq/block.json index 486fbd5..fd69ed7 100644 --- a/src/faq/block.json +++ b/src/faq/block.json @@ -10,6 +10,12 @@ "html": false, "innerBlocks": true }, + "attributes": { + "isAccordion": { + "type": "boolean", + "default": true + } + }, "textdomain": "blockparty-faq", "editorScript": "file:./index.js", "viewScript": "file:./script.js", From d04cad2c9392d460a2df20d9632a5555486ce23f Mon Sep 17 00:00:00 2001 From: mricoul Date: Tue, 27 Jan 2026 11:32:21 +0100 Subject: [PATCH 2/2] chore(bump): version --- .plugin-data | 2 +- README.md | 4 ++++ blockparty-faq.php | 4 ++-- package.json | 2 +- src/faq-answer/block.json | 2 +- src/faq-item/block.json | 2 +- src/faq-question/block.json | 2 +- src/faq/block.json | 2 +- 8 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.plugin-data b/.plugin-data index c9c8f54..af7b08a 100644 --- a/.plugin-data +++ b/.plugin-data @@ -1,4 +1,4 @@ { - "version": "2.0.1", + "version": "2.0.2", "slug": "blockparty-faq" } diff --git a/README.md b/README.md index e4c8db6..b140301 100644 --- a/README.md +++ b/README.md @@ -79,3 +79,7 @@ Yoast SEO is required for the FAQ schema (JSON-LD) generation. It is installed a ### 2.0.1 - 2026-01-27 - Fix build blocks + +### 2.0.2 - 2026-01-27 + +- Add missing isAccordion attribute diff --git a/blockparty-faq.php b/blockparty-faq.php index 29e9f4e..fb78109 100644 --- a/blockparty-faq.php +++ b/blockparty-faq.php @@ -4,7 +4,7 @@ * Description: A FAQ block for WordPress Editor that provided structured data based on FAQ schema. * Requires at least: 6.2 * Requires PHP: 8.1 - * Version: 2.0.1 + * Version: 2.0.2 * Plugin URI: https://beapi.fr * Author: Be API Technical team * Author URI: https://beapi.fr @@ -41,7 +41,7 @@ } // Plugin constants -define( 'BLOCKPARTY_FAQ_VERSION', '2.0.1' ); +define( 'BLOCKPARTY_FAQ_VERSION', '2.0.2' ); // Plugin URL and PATH define( 'BLOCKPARTY_FAQ_DIR', plugin_dir_path( __FILE__ ) ); diff --git a/package.json b/package.json index d68e15a..6c764c2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "blockparty-faq", - "version": "2.0.1", + "version": "2.0.2", "description": "SEO friendly FAQ module in an accessible accordion", "author": "Be API Technical team", "license": "GPL-2.0-or-later", diff --git a/src/faq-answer/block.json b/src/faq-answer/block.json index cd298e0..25e6649 100644 --- a/src/faq-answer/block.json +++ b/src/faq-answer/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "blockparty/faq-answer", - "version": "2.0.1", + "version": "2.0.2", "title": "FAQ Answer", "category": "design", "parent": [ "blockparty/faq-item" ], diff --git a/src/faq-item/block.json b/src/faq-item/block.json index 7c11dfb..37c9e1b 100644 --- a/src/faq-item/block.json +++ b/src/faq-item/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "blockparty/faq-item", - "version": "2.0.1", + "version": "2.0.2", "title": "FAQ Item", "category": "design", "parent": [ "blockparty/faq" ], diff --git a/src/faq-question/block.json b/src/faq-question/block.json index 168d4ef..5302b64 100644 --- a/src/faq-question/block.json +++ b/src/faq-question/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "blockparty/faq-question", - "version": "2.0.1", + "version": "2.0.2", "title": "FAQ Question", "category": "design", "parent": [ "blockparty/faq-item" ], diff --git a/src/faq/block.json b/src/faq/block.json index fd69ed7..392b0b7 100644 --- a/src/faq/block.json +++ b/src/faq/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "blockparty/faq", - "version": "2.0.1", + "version": "2.0.2", "title": "FAQ", "category": "design", "description": "A FAQ block for WordPress Editor that provided structured data based on FAQ schema.",