From 0c69505418a36dc93bada52f77220e0d3d9457f7 Mon Sep 17 00:00:00 2001 From: Alex Lende Date: Mon, 3 Aug 2020 10:00:32 -0600 Subject: [PATCH 1/2] Fix error when running bundled waves block --- blocks/waves/src/edit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks/waves/src/edit.js b/blocks/waves/src/edit.js index 823da0c3..cef77f31 100644 --- a/blocks/waves/src/edit.js +++ b/blocks/waves/src/edit.js @@ -23,8 +23,6 @@ import { useDispatch, useSelect } from '@wordpress/data'; import { useState, useEffect, useRef } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; -const { run, parseColor, renderPreview } = window.a8cColorEffects; - const DEFAULT_COLORS = { color1: '#000', color2: '#555', @@ -104,6 +102,8 @@ function HeightInput( { onChange, onUnitChange, unit = 'px', value = '' } ) { } function Edit( { attributes, className, isSelected, setAttributes } ) { + const { run, parseColor, renderPreview } = window.a8cColorEffects; + const { toggleSelection } = useDispatch( 'core/block-editor' ); const [ temporaryMinHeight, setTemporaryMinHeight ] = useState( null ); const [ isResizing, setIsResizing ] = useState( false ); From 7f08119116fb77d898ff1b2a4e70e5e0d3d222d3 Mon Sep 17 00:00:00 2001 From: Alex Lende Date: Mon, 3 Aug 2020 10:13:31 -0600 Subject: [PATCH 2/2] Release waves@1.0.1 --- bundler/bundles/waves.json | 2 +- bundler/resources/a8c-waves/readme.txt | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bundler/bundles/waves.json b/bundler/bundles/waves.json index bf0fc0c6..bd59145e 100644 --- a/bundler/bundles/waves.json +++ b/bundler/bundles/waves.json @@ -1,6 +1,6 @@ { "blocks": [ "waves" ], - "version": "1.0.0", + "version": "1.0.1", "name": "Waves Block", "description": "Blocks can now be sinuous and soothing with the Waves Block.", "resource": "a8c-waves" diff --git a/bundler/resources/a8c-waves/readme.txt b/bundler/resources/a8c-waves/readme.txt index 62173708..e37a5ae5 100644 --- a/bundler/resources/a8c-waves/readme.txt +++ b/bundler/resources/a8c-waves/readme.txt @@ -1,7 +1,7 @@ === Waves Block === Contributors: automattic, ajlende, pablohoneyhoney -Stable tag: 1.0.0 -Tested up to: 5.4.1 +Stable tag: 1.0.1 +Tested up to: 5.5 Requires at least: 5.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -30,5 +30,9 @@ You can follow development, file an issue, suggest features, and view the source == Changelog == += 1.0.1 - 3rd August 2020 = +* Fix error when double selecting a color +* Minor performance improvements + = 1.0.0 - 22nd May 2020 = * Initial release