Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .plugin-data
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "2.0.0",
"version": "2.0.1",
"slug": "blockparty-faq"
}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions blockparty-faq.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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__ ) );
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
7 changes: 5 additions & 2 deletions src/faq-answer/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" ],
Expand All @@ -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"
}
7 changes: 4 additions & 3 deletions src/faq-answer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* WordPress dependencies
*/
import { registerBlockType } from '@wordpress/blocks';
import { postContent } from '@wordpress/icons';

/**
* Internal dependencies
Expand All @@ -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
*/
Expand All @@ -22,6 +24,5 @@ registerBlockType( 'blockparty/faq-answer', {
* @see ./save.js
*/
save,

icon: postContent,
} );
7 changes: 5 additions & 2 deletions src/faq-item/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" ],
Expand All @@ -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"
}
4 changes: 3 additions & 1 deletion src/faq-item/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
7 changes: 5 additions & 2 deletions src/faq-question/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" ],
Expand All @@ -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"
}
4 changes: 3 additions & 1 deletion src/faq-question/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion src/faq/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
Loading