From b965f4bd866be50282dc4c315726dcefc465c41f Mon Sep 17 00:00:00 2001 From: kurudrive Date: Fri, 8 Nov 2024 20:20:04 +0900 Subject: [PATCH 1/6] update readme --- readme.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.txt b/readme.txt index 58181dfd9..05ac84060 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: Tags: Gutenberg,FAQ,alert Requires at least: 6.3 Tested up to: 6.6 -Stable tag: 1.88.0.2 +Stable tag: 1.90.0.1 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -110,7 +110,7 @@ e.g. [ Add function ][ Outer (Pro) ] Add book and pyramid in divider style. [ Bug fix ] The split loading option is now supported for core/heading, core/image, and core/table styles for block editor. [ Bug fix ][ Cover ] Fixed an issue where, after setting a link in the Cover block and adding two unstyled headings inside it, the content positioning would not apply upon returning to the editing screen (editing screen only). -[ Bug fix ][ Slider ] Add alert message. +[ Other ][ Slider ] Add alert message. = 1.89.0 = [ Add function ][ Outer (Pro) ] Added support for core text color settings. From da0044d6eeb74330e608864f1a20e3720af6a44f Mon Sep 17 00:00:00 2001 From: mtdkei Date: Mon, 11 Nov 2024 16:11:00 +0900 Subject: [PATCH 2/6] Fix: Preserve custom styles on cover block with link --- src/extensions/core/cover/style.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/extensions/core/cover/style.js b/src/extensions/core/cover/style.js index a2e9b6460..b90ca1731 100644 --- a/src/extensions/core/cover/style.js +++ b/src/extensions/core/cover/style.js @@ -77,17 +77,15 @@ const insertLinkIntoCoverBlock = (element, blockType, attributes) => { return element; } - // `element` から既存のクラスを取得し、リンクがある場合にのみ `has-link` を追加 const existingClassName = element.props.className || ''; - const classNameWithLink = - `${existingClassName} ${linkUrl ? 'has-link' : ''}`.trim(); + const classNameWithLink = `${existingClassName} ${linkUrl ? 'has-link' : ''}`.trim(); + const existingStyle = element.props.style || {}; // rel 属性の設定 - const relAttribute = - linkTarget === '_blank' ? 'noopener noreferrer' : 'noopener'; + const relAttribute = linkTarget === '_blank' ? 'noopener noreferrer' : 'noopener'; return ( -
+
{element.props.children} Date: Mon, 11 Nov 2024 16:21:19 +0900 Subject: [PATCH 3/6] Undo commentout --- src/extensions/core/cover/style.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/extensions/core/cover/style.js b/src/extensions/core/cover/style.js index b90ca1731..276f6ccab 100644 --- a/src/extensions/core/cover/style.js +++ b/src/extensions/core/cover/style.js @@ -77,6 +77,7 @@ const insertLinkIntoCoverBlock = (element, blockType, attributes) => { return element; } + // `element` から既存のクラスを取得し、リンクがある場合にのみ `has-link` を追加 const existingClassName = element.props.className || ''; const classNameWithLink = `${existingClassName} ${linkUrl ? 'has-link' : ''}`.trim(); const existingStyle = element.props.style || {}; From a022962182b471b16d61e40da12da0e74b51c1db Mon Sep 17 00:00:00 2001 From: mtdkei Date: Mon, 11 Nov 2024 16:24:07 +0900 Subject: [PATCH 4/6] Add changelog --- readme.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.txt b/readme.txt index 05ac84060..b9db76a6c 100644 --- a/readme.txt +++ b/readme.txt @@ -106,6 +106,8 @@ e.g. == Changelog == +[ Bug fix ][ Cover ] Fixed inline styles not being retained when adding a link. + = 1.90.0 = [ Add function ][ Outer (Pro) ] Add book and pyramid in divider style. [ Bug fix ] The split loading option is now supported for core/heading, core/image, and core/table styles for block editor. From 0387159b4125f81bd703f8d1f93280e3a5452207 Mon Sep 17 00:00:00 2001 From: mtdkei Date: Mon, 11 Nov 2024 16:41:53 +0900 Subject: [PATCH 5/6] Fix: lint --- src/extensions/core/cover/style.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/extensions/core/cover/style.js b/src/extensions/core/cover/style.js index 276f6ccab..44c9f2283 100644 --- a/src/extensions/core/cover/style.js +++ b/src/extensions/core/cover/style.js @@ -79,11 +79,13 @@ const insertLinkIntoCoverBlock = (element, blockType, attributes) => { // `element` から既存のクラスを取得し、リンクがある場合にのみ `has-link` を追加 const existingClassName = element.props.className || ''; - const classNameWithLink = `${existingClassName} ${linkUrl ? 'has-link' : ''}`.trim(); + const classNameWithLink = + `${existingClassName} ${linkUrl ? 'has-link' : ''}`.trim(); const existingStyle = element.props.style || {}; // rel 属性の設定 - const relAttribute = linkTarget === '_blank' ? 'noopener noreferrer' : 'noopener'; + const relAttribute = + linkTarget === '_blank' ? 'noopener noreferrer' : 'noopener'; return (
From b4698fc6b3ff32c16e12047935c100e329f540c4 Mon Sep 17 00:00:00 2001 From: kurudrive Date: Mon, 11 Nov 2024 21:52:45 +0900 Subject: [PATCH 6/6] [ Change version ] 1.90.1.0 --- readme.txt | 1 + vk-blocks.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/readme.txt b/readme.txt index b9db76a6c..7d967c1c5 100644 --- a/readme.txt +++ b/readme.txt @@ -106,6 +106,7 @@ e.g. == Changelog == += 1.90.1 = [ Bug fix ][ Cover ] Fixed inline styles not being retained when adding a link. = 1.90.0 = diff --git a/vk-blocks.php b/vk-blocks.php index df8f2b047..9a64ec0dd 100644 --- a/vk-blocks.php +++ b/vk-blocks.php @@ -3,8 +3,8 @@ * Plugin Name: VK Blocks Pro * Plugin URI: https://github.com/vektor-inc/vk-blocks * Description: This is a plugin that extends Block Editor. - * Version: 1.90.0.0 - * Stable tag: 1.88.0.2 + * Version: 1.90.1.0 + * Stable tag: 1.90.0.1 * Requires at least: 6.3 * Author: Vektor,Inc. * Author URI: https://vektor-inc.co.jp