Skip to content

Commit 05ab536

Browse files
authored
Merge pull request #14 from BeAPI/release/1.0.4
Release/1.0.4
2 parents ac78151 + e622ee8 commit 05ab536

10 files changed

Lines changed: 17 additions & 13 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": "1.0.3",
2+
"version": "1.0.4",
33
"slug": "blockparty-accordion"
44
}

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ add_filter( 'beapi_accordion_block_config', function( $config ) {
1919
```
2020

2121
## Changelog
22+
### 1.0.4 - 2025-09-05
23+
* fix icon inserter
24+
2225
### 1.0.3 - 2024-09-10
2326
* fix error in JS
2427
* add `beapi_accordion_block_config` filter to config accordion from third party plugins/theme

blockparty-accordion.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Description: Accessible Accordion block for WordPress editor.
55
* Requires at least: 6.2
66
* Requires PHP: 8.1
7-
* Version: 1.0.3
7+
* Version: 1.0.4
88
* Author: Be API Technical team
99
* Author URI: https://beapi.fr
1010
* License: GPL-2.0-or-later
@@ -15,7 +15,7 @@
1515

1616
namespace Blockparty\Accordion;
1717

18-
define( 'BLOCKPARTY_ACCORDION_VERSION', '1.0.3' );
18+
define( 'BLOCKPARTY_ACCORDION_VERSION', '1.0.4' );
1919
define( 'BLOCKPARTY_ACCORDION_URL', plugin_dir_url( __FILE__ ) );
2020
define( 'BLOCKPARTY_ACCORDION_DIR', plugin_dir_path( __FILE__ ) );
2121
define( 'BLOCKPARTY_ACCORDION_PLUGIN_DIRNAME', plugin_basename( __FILE__ ) );

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blockparty-accordion",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Accessible Accordion block for WordPress",
55
"author": "Be API Technical team",
66
"license": "GPL-2.0-or-later",

src/blockparty-accordion-item/block.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"apiVersion": 2,
44
"name": "blockparty/accordion-item",
55
"parent": [ "blockparty/accordion" ],
6-
"version": "1.0.3",
6+
"version": "1.0.4",
77
"title": "Item",
88
"category": "widgets",
99
"icon": "button",

src/blockparty-accordion-panel/block.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"apiVersion": 2,
44
"name": "blockparty/accordion-panel",
55
"parent": [ "blockparty/accordion-item" ],
6-
"version": "1.0.3",
6+
"version": "1.0.4",
77
"title": "Panel",
88
"category": "widgets",
99
"icon": "text-page",

src/blockparty-accordion-summary/block.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"apiVersion": 2,
44
"name": "blockparty/accordion-summary",
55
"parent": [ "blockparty/accordion-item" ],
6-
"version": "1.0.3",
6+
"version": "1.0.4",
77
"title": "Summary",
88
"category": "widgets",
99
"icon": "editor-textcolor",

src/blockparty-accordion-summary/edit.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export default function Edit({ attributes, setAttributes }) {
3333
acordionIconBlock = allowedAccordionIconBlock[0];
3434
}
3535
}
36-
3736
const hasIconBlock =
3837
typeof getBlockType(acordionIconBlock) !== 'undefined' &&
3938
acordionIconBlock;
@@ -59,11 +58,13 @@ export default function Edit({ attributes, setAttributes }) {
5958
<InnerBlocks
6059
allowedBlocks={allowedAccordionIconBlock}
6160
__experimentalDirectInsert={false}
62-
templateLock="all"
61+
templateLock={false}
6362
template={[
64-
[acordionIconBlock, { width: 24, mini: true }],
63+
[acordionIconBlock, { width: 24, maxIcons: 1 }],
6564
]}
6665
templateInsertUpdatesSelection={false}
66+
directInsert={false}
67+
renderAppender={false}
6768
/>
6869
)}
6970
<RichText

src/blockparty-accordion/block.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://schemas.wp.org/trunk/block.json",
33
"apiVersion": 2,
44
"name": "blockparty/accordion",
5-
"version": "1.0.3",
5+
"version": "1.0.4",
66
"title": "Accordion",
77
"category": "widgets",
88
"icon": "archive",

0 commit comments

Comments
 (0)