diff --git a/.distignore b/.distignore index 6b9f73d..b360158 100644 --- a/.distignore +++ b/.distignore @@ -2,12 +2,17 @@ .github assets node_modules +src vendor .distignore +.editorconfig .eslintrc.js .gitignore .phpcs.xml.dist +.prettierrc.js composer.json composer.lock package-lock.json package.json +phpstan.neon.dist +webpack.config.js diff --git a/README.md b/README.md index a18d8c4..2f31ea6 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,13 @@ The "Controls ID" entered in this panel must match the "HTML anchor" assigned to ## Changelog +### 0.4.0 + +* Add an attribute to toggle a toggle block-specific class on the body element. +* Allow the toggle block to be placed inside the `core/navigation` block. +* Add transform support from/to `core/navigation-link` blocks. +* Update to latest dependencies, build process, and code standards. + ### 0.3.1 * Add persisting `toggle-block-has-been-toggled` class to toggled element when first toggled. diff --git a/build/toggle-block/block.json b/build/toggle-block/block.json index 3668239..c069a18 100644 --- a/build/toggle-block/block.json +++ b/build/toggle-block/block.json @@ -13,7 +13,7 @@ "file:view.js" ], "style": [ - "file:../src/view.css" + "file:view.css" ], "attributes": { "bodyClass": { diff --git a/build/toggle-block/index.asset.php b/build/toggle-block/index.asset.php index f9ecafe..768b55b 100644 --- a/build/toggle-block/index.asset.php +++ b/build/toggle-block/index.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-hooks', 'wp-i18n'), 'version' => '1b8472592ef953dd9320'); + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-hooks', 'wp-i18n'), 'version' => 'bff6c727c01bcb9ce96f'); diff --git a/build/toggle-block/index.js b/build/toggle-block/index.js index b78a411..5aba0b0 100644 --- a/build/toggle-block/index.js +++ b/build/toggle-block/index.js @@ -1 +1 @@ -(()=>{"use strict";function t(){return t=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var o=0,r=Array(e);o{"use strict";function t(){return t=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var o=0,r=Array(e);o