Skip to content

Commit 3dd9849

Browse files
authored
Merge pull request #16 from BeAPI/ver/2.0.1
Ver/2.0.1
2 parents d52d58b + a5edd30 commit 3dd9849

11 files changed

Lines changed: 34 additions & 16 deletions

File tree

.plugin-data

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"version": "2.0.0",
2+
"version": "2.0.1",
33
"slug": "blockparty-faq"
44
}

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,7 @@ Yoast SEO is required for the FAQ schema (JSON-LD) generation. It is installed a
7575
- **Complete internationalization** : Support for PO/MO translations for PHP and JSON for JavaScript
7676
- **Aligned build structure** : Reorganization to follow the `blockparty-accordion` model with `block.json` in each block directory
7777
- **Add/remove buttons** : Added buttons to add and remove FAQ items directly from the editor
78+
79+
### 2.0.1 - 2026-01-27
80+
81+
- Fix build blocks

blockparty-faq.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Description: A FAQ block for WordPress Editor that provided structured data based on FAQ schema.
55
* Requires at least: 6.2
66
* Requires PHP: 8.1
7-
* Version: 2.0.0
7+
* Version: 2.0.1
88
* Plugin URI: https://beapi.fr
99
* Author: Be API Technical team
1010
* Author URI: https://beapi.fr
@@ -41,7 +41,7 @@
4141
}
4242

4343
// Plugin constants
44-
define( 'BLOCKPARTY_FAQ_VERSION', '2.0.0' );
44+
define( 'BLOCKPARTY_FAQ_VERSION', '2.0.1' );
4545

4646
// Plugin URL and PATH
4747
define( 'BLOCKPARTY_FAQ_DIR', plugin_dir_path( __FILE__ ) );

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blockparty-faq",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "SEO friendly FAQ module in an accessible accordion",
55
"author": "Be API Technical team",
66
"license": "GPL-2.0-or-later",

src/faq-answer/block.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://schemas.wp.org/trunk/block.json",
33
"apiVersion": 3,
44
"name": "blockparty/faq-answer",
5-
"version": "2.0.0",
5+
"version": "2.0.1",
66
"title": "FAQ Answer",
77
"category": "design",
88
"parent": [ "blockparty/faq-item" ],
@@ -18,5 +18,8 @@
1818
"default": true
1919
}
2020
},
21-
"textdomain": "blockparty-faq"
21+
"textdomain": "blockparty-faq",
22+
"editorScript": "file:./index.js",
23+
"editorStyle": "file:./index.css",
24+
"style": "file:./style-index.css"
2225
}

src/faq-answer/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* WordPress dependencies
33
*/
44
import { registerBlockType } from '@wordpress/blocks';
5+
import { postContent } from '@wordpress/icons';
56

67
/**
78
* Internal dependencies
@@ -10,9 +11,10 @@ import './style.scss';
1011
import './editor.scss';
1112
import Edit from './edit';
1213
import save from './save';
13-
import { postContent } from '@wordpress/icons';
14+
import metadata from './block.json';
1415

15-
registerBlockType( 'blockparty/faq-answer', {
16+
registerBlockType( metadata.name, {
17+
...metadata,
1618
/**
1719
* @see ./edit.js
1820
*/
@@ -22,6 +24,5 @@ registerBlockType( 'blockparty/faq-answer', {
2224
* @see ./save.js
2325
*/
2426
save,
25-
2627
icon: postContent,
2728
} );

src/faq-item/block.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://schemas.wp.org/trunk/block.json",
33
"apiVersion": 3,
44
"name": "blockparty/faq-item",
5-
"version": "2.0.0",
5+
"version": "2.0.1",
66
"title": "FAQ Item",
77
"category": "design",
88
"parent": [ "blockparty/faq" ],
@@ -13,5 +13,8 @@
1313
"reusable": false,
1414
"innerBlocks": true
1515
},
16-
"textdomain": "blockparty-faq"
16+
"textdomain": "blockparty-faq",
17+
"editorScript": "file:./index.js",
18+
"editorStyle": "file:./index.css",
19+
"style": "file:./style-index.css"
1720
}

src/faq-item/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ import './style.scss';
1111
import './editor.scss';
1212
import Edit from './edit';
1313
import save from './save';
14+
import metadata from './block.json';
1415

15-
registerBlockType( 'blockparty/faq-item', {
16+
registerBlockType( metadata.name, {
17+
...metadata,
1618
/**
1719
* @see ./edit.js
1820
*/

src/faq-question/block.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://schemas.wp.org/trunk/block.json",
33
"apiVersion": 3,
44
"name": "blockparty/faq-question",
5-
"version": "2.0.0",
5+
"version": "2.0.1",
66
"title": "FAQ Question",
77
"category": "design",
88
"parent": [ "blockparty/faq-item" ],
@@ -22,5 +22,8 @@
2222
"default": true
2323
}
2424
},
25-
"textdomain": "blockparty-faq"
25+
"textdomain": "blockparty-faq",
26+
"editorScript": "file:./index.js",
27+
"editorStyle": "file:./index.css",
28+
"style": "file:./style-index.css"
2629
}

src/faq-question/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ import './style.scss';
1111
import './editor.scss';
1212
import Edit from './edit';
1313
import save from './save';
14+
import metadata from './block.json';
1415

15-
registerBlockType( 'blockparty/faq-question', {
16+
registerBlockType( metadata.name, {
17+
...metadata,
1618
/**
1719
* @see ./edit.js
1820
*/

0 commit comments

Comments
 (0)