From c70e2a79ce50ea48de8bf1b080a821a93ed9c706 Mon Sep 17 00:00:00 2001 From: mtdkei Date: Wed, 5 Feb 2025 16:08:01 +0900 Subject: [PATCH 1/6] Add support for layout.allowJustification: false to allow full/wide align --- readme.txt | 1 + src/blocks/_pro/animation/block.json | 5 ++++- src/blocks/_pro/fixed-display/block.json | 3 +++ src/blocks/_pro/outer/block.json | 3 +++ src/blocks/slider-item/block.json | 3 +++ 5 files changed, 14 insertions(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 4785dff94..2f90e1bb2 100644 --- a/readme.txt +++ b/readme.txt @@ -108,6 +108,7 @@ e.g. == Changelog == +[ Add function ][ Animation (Pro) / Fixed Display (Pro) / Outer (Pro) / Slider ] Added support for layout.allowJustification: false to allow full/wide align [ Bug fix ] [ Icon ] Fixed an unwanted bottom margin appearing. [ Specification change ] Fixed the zoom-out toggle not always displaying in the editor toolbar (updated blocks.json API version from 2 to 3). diff --git a/src/blocks/_pro/animation/block.json b/src/blocks/_pro/animation/block.json index 9e6cf7279..b9648bf4b 100644 --- a/src/blocks/_pro/animation/block.json +++ b/src/blocks/_pro/animation/block.json @@ -33,6 +33,9 @@ "textdomain": "vk-blocks-pro", "supports": { "html": false, - "className": true + "className": true, + "layout": { + "allowJustification": false + } } } diff --git a/src/blocks/_pro/fixed-display/block.json b/src/blocks/_pro/fixed-display/block.json index a4f14f1c4..e7cd096db 100644 --- a/src/blocks/_pro/fixed-display/block.json +++ b/src/blocks/_pro/fixed-display/block.json @@ -63,6 +63,9 @@ "html": false, "className": true, "anchor": true, + "layout": { + "allowJustification": false + }, "color": { "gradients": true, "link": true, diff --git a/src/blocks/_pro/outer/block.json b/src/blocks/_pro/outer/block.json index 813bab643..9e8460767 100644 --- a/src/blocks/_pro/outer/block.json +++ b/src/blocks/_pro/outer/block.json @@ -195,6 +195,9 @@ "color": { "text": true, "background": false + }, + "layout": { + "allowJustification": false } } } diff --git a/src/blocks/slider-item/block.json b/src/blocks/slider-item/block.json index ac26a4d90..61ecb1dba 100644 --- a/src/blocks/slider-item/block.json +++ b/src/blocks/slider-item/block.json @@ -69,6 +69,9 @@ "className": true, "spacing": { "padding": true + }, + "layout": { + "allowJustification": false } } } From 2f7cfce157c7408e59ce905eb5716a85646f26ed Mon Sep 17 00:00:00 2001 From: mtdkei Date: Wed, 5 Feb 2025 16:12:47 +0900 Subject: [PATCH 2/6] Fix: changelog --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 2f90e1bb2..c471a8eba 100644 --- a/readme.txt +++ b/readme.txt @@ -108,7 +108,7 @@ e.g. == Changelog == -[ Add function ][ Animation (Pro) / Fixed Display (Pro) / Outer (Pro) / Slider ] Added support for layout.allowJustification: false to allow full/wide align +[ Add function ][ Animation (Pro) / Fixed Display (Pro) / Outer (Pro) / Slider ] Added support for layout.allowJustification: false to allow full/wide align for block themes. [ Bug fix ] [ Icon ] Fixed an unwanted bottom margin appearing. [ Specification change ] Fixed the zoom-out toggle not always displaying in the editor toolbar (updated blocks.json API version from 2 to 3). From c1d2f25ca4ff16339bd939a55afb9959a86fd19c Mon Sep 17 00:00:00 2001 From: mtdkei Date: Wed, 5 Feb 2025 16:16:43 +0900 Subject: [PATCH 3/6] Fix: changelog --- readme.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.txt b/readme.txt index c471a8eba..ecd57aaab 100644 --- a/readme.txt +++ b/readme.txt @@ -108,8 +108,8 @@ e.g. == Changelog == -[ Add function ][ Animation (Pro) / Fixed Display (Pro) / Outer (Pro) / Slider ] Added support for layout.allowJustification: false to allow full/wide align for block themes. -[ Bug fix ] [ Icon ] Fixed an unwanted bottom margin appearing. +[ Add function ][ Animation (Pro) / Fixed Display (Pro) / Outer (Pro) / Slider ] Added support for layout.allowJustification: false, allowing full-width/wide alignment in block themes where wrapped blocks previously did not appear as full-width or wide in the editor. +[ Bug fix ][ Icon ] Fixed an unwanted bottom margin appearing. [ Specification change ] Fixed the zoom-out toggle not always displaying in the editor toolbar (updated blocks.json API version from 2 to 3). = 1.95.0 = From a39d6dd22e183c21b172447fd8db87e48cfadd98 Mon Sep 17 00:00:00 2001 From: mtdkei Date: Wed, 5 Feb 2025 16:19:31 +0900 Subject: [PATCH 4/6] Fix: changelog --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index ecd57aaab..1b5e32f41 100644 --- a/readme.txt +++ b/readme.txt @@ -108,7 +108,7 @@ e.g. == Changelog == -[ Add function ][ Animation (Pro) / Fixed Display (Pro) / Outer (Pro) / Slider ] Added support for layout.allowJustification: false, allowing full-width/wide alignment in block themes where wrapped blocks previously did not appear as full-width or wide in the editor. +[ Add function ][ Animation (Pro) / Fixed Display (Pro) / Outer (Pro) ] Added support for layout.allowJustification: false, allowing full-width/wide alignment in block themes where wrapped blocks previously did not appear as full-width or wide in the editor. [ Bug fix ][ Icon ] Fixed an unwanted bottom margin appearing. [ Specification change ] Fixed the zoom-out toggle not always displaying in the editor toolbar (updated blocks.json API version from 2 to 3). From 0117c85e8c05ded80b62cac00fef0f471d3c4e61 Mon Sep 17 00:00:00 2001 From: mtdkei Date: Wed, 5 Feb 2025 16:25:21 +0900 Subject: [PATCH 5/6] Revert block.json to develop version --- src/blocks/slider-item/block.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/blocks/slider-item/block.json b/src/blocks/slider-item/block.json index 61ecb1dba..ac26a4d90 100644 --- a/src/blocks/slider-item/block.json +++ b/src/blocks/slider-item/block.json @@ -69,9 +69,6 @@ "className": true, "spacing": { "padding": true - }, - "layout": { - "allowJustification": false } } } From 1bf53638b870480bf39add24c919ef6677080d85 Mon Sep 17 00:00:00 2001 From: mtdkei Date: Wed, 5 Feb 2025 16:28:01 +0900 Subject: [PATCH 6/6] Fix: Swapped "color" and "layout" --- src/blocks/_pro/outer/block.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blocks/_pro/outer/block.json b/src/blocks/_pro/outer/block.json index 9e8460767..23d08e2ba 100644 --- a/src/blocks/_pro/outer/block.json +++ b/src/blocks/_pro/outer/block.json @@ -192,12 +192,12 @@ "html": false, "className": true, "anchor": true, + "layout": { + "allowJustification": false + }, "color": { "text": true, "background": false - }, - "layout": { - "allowJustification": false } } }