diff --git a/.plugin-data b/.plugin-data index f11c369..c9c8f54 100644 --- a/.plugin-data +++ b/.plugin-data @@ -1,4 +1,4 @@ { - "version": "2.0.0", + "version": "2.0.1", "slug": "blockparty-faq" } diff --git a/README.md b/README.md index 52282c9..e4c8db6 100644 --- a/README.md +++ b/README.md @@ -75,3 +75,7 @@ Yoast SEO is required for the FAQ schema (JSON-LD) generation. It is installed a - **Complete internationalization** : Support for PO/MO translations for PHP and JSON for JavaScript - **Aligned build structure** : Reorganization to follow the `blockparty-accordion` model with `block.json` in each block directory - **Add/remove buttons** : Added buttons to add and remove FAQ items directly from the editor + +### 2.0.1 - 2026-01-27 + +- Fix build blocks diff --git a/blockparty-faq.php b/blockparty-faq.php index b5fef1f..29e9f4e 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.0 + * Version: 2.0.1 * 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.0' ); +define( 'BLOCKPARTY_FAQ_VERSION', '2.0.1' ); // Plugin URL and PATH define( 'BLOCKPARTY_FAQ_DIR', plugin_dir_path( __FILE__ ) ); diff --git a/package.json b/package.json index a1a7fb1..d68e15a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "blockparty-faq", - "version": "2.0.0", + "version": "2.0.1", "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 e8a8de8..cd298e0 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.0", + "version": "2.0.1", "title": "FAQ Answer", "category": "design", "parent": [ "blockparty/faq-item" ], @@ -18,5 +18,8 @@ "default": true } }, - "textdomain": "blockparty-faq" + "textdomain": "blockparty-faq", + "editorScript": "file:./index.js", + "editorStyle": "file:./index.css", + "style": "file:./style-index.css" } diff --git a/src/faq-answer/index.js b/src/faq-answer/index.js index 4e9e122..cb97459 100644 --- a/src/faq-answer/index.js +++ b/src/faq-answer/index.js @@ -2,6 +2,7 @@ * WordPress dependencies */ import { registerBlockType } from '@wordpress/blocks'; +import { postContent } from '@wordpress/icons'; /** * Internal dependencies @@ -10,9 +11,10 @@ import './style.scss'; import './editor.scss'; import Edit from './edit'; import save from './save'; -import { postContent } from '@wordpress/icons'; +import metadata from './block.json'; -registerBlockType( 'blockparty/faq-answer', { +registerBlockType( metadata.name, { + ...metadata, /** * @see ./edit.js */ @@ -22,6 +24,5 @@ registerBlockType( 'blockparty/faq-answer', { * @see ./save.js */ save, - icon: postContent, } ); diff --git a/src/faq-item/block.json b/src/faq-item/block.json index 29ed9e0..7c11dfb 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.0", + "version": "2.0.1", "title": "FAQ Item", "category": "design", "parent": [ "blockparty/faq" ], @@ -13,5 +13,8 @@ "reusable": false, "innerBlocks": true }, - "textdomain": "blockparty-faq" + "textdomain": "blockparty-faq", + "editorScript": "file:./index.js", + "editorStyle": "file:./index.css", + "style": "file:./style-index.css" } diff --git a/src/faq-item/index.js b/src/faq-item/index.js index ce30028..1d35264 100644 --- a/src/faq-item/index.js +++ b/src/faq-item/index.js @@ -11,8 +11,10 @@ import './style.scss'; import './editor.scss'; import Edit from './edit'; import save from './save'; +import metadata from './block.json'; -registerBlockType( 'blockparty/faq-item', { +registerBlockType( metadata.name, { + ...metadata, /** * @see ./edit.js */ diff --git a/src/faq-question/block.json b/src/faq-question/block.json index d4dd47d..168d4ef 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.0", + "version": "2.0.1", "title": "FAQ Question", "category": "design", "parent": [ "blockparty/faq-item" ], @@ -22,5 +22,8 @@ "default": true } }, - "textdomain": "blockparty-faq" + "textdomain": "blockparty-faq", + "editorScript": "file:./index.js", + "editorStyle": "file:./index.css", + "style": "file:./style-index.css" } diff --git a/src/faq-question/index.js b/src/faq-question/index.js index 4da75de..4ef60a3 100644 --- a/src/faq-question/index.js +++ b/src/faq-question/index.js @@ -11,8 +11,10 @@ import './style.scss'; import './editor.scss'; import Edit from './edit'; import save from './save'; +import metadata from './block.json'; -registerBlockType( 'blockparty/faq-question', { +registerBlockType( metadata.name, { + ...metadata, /** * @see ./edit.js */ diff --git a/src/faq/block.json b/src/faq/block.json index a62d69f..486fbd5 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.0", + "version": "2.0.1", "title": "FAQ", "category": "design", "description": "A FAQ block for WordPress Editor that provided structured data based on FAQ schema.",