Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ Change version ] 1.96.0.0 #2456

Merged
merged 86 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
19e2dbd
feature: アクセシビリティ関連の修正
akito-38 Jan 25, 2025
203f8df
lint
akito-38 Jan 25, 2025
39e7d24
Correct deprecated file.
akito-38 Jan 25, 2025
d569eeb
リンクを張ってないカードの対応
akito-38 Jan 25, 2025
2e55b5c
fix deprecated
mthaichi Jan 27, 2025
8a88e1b
includes関数でエラーが出ないよう修正
akito-38 Jan 27, 2025
152358a
lint
akito-38 Jan 27, 2025
8595ba7
初期値修正
akito-38 Jan 27, 2025
0f25b9a
Merge branch 'develop' into feature/gridcolcard/empty-atag-accessibility
mtdkei Jan 28, 2025
7b537e4
feature: アクセシビリティ関連の修正
akito-38 Jan 29, 2025
34d6aa7
lint
akito-38 Jan 29, 2025
e3756ba
Fix: changed
Jan 29, 2025
980ce70
deprecate修正
akito-38 Jan 29, 2025
c388ef1
e2eテスト用ファイル追加
akito-38 Jan 29, 2025
9fbe908
e2eテスト用ファイル修正
akito-38 Jan 29, 2025
dc5054b
readmeに変更内容追加
akito-38 Jan 30, 2025
9701115
Add changelog
mtdkei Jan 30, 2025
893852a
Merge branch 'develop' into fix/icon/inline-block
mtdkei Jan 31, 2025
a117681
Fix: Ensure zoom-out toggle is always visible by updating blocks.json…
Jan 31, 2025
8128bea
Add changelog
Jan 31, 2025
65ef45c
Fix: test
Jan 31, 2025
f64b73a
Fix: test
Jan 31, 2025
f1baa8a
Merge branch 'develop' into feature/gridcolcard/empty-atag-accessibility
mtdkei Jan 31, 2025
a01244b
Merge branch 'develop' into feature/gridcolcard/empty-atag-accessibility
Jan 31, 2025
0d1b94e
deprecated対応中
akito-38 Feb 1, 2025
482ae63
lint
akito-38 Feb 1, 2025
67fd3e4
[ Change version ] 1.95.0.4
kurudrive Feb 2, 2025
3c9735f
Merge branch 'develop' into fix/zoomout-toggle/block-api-v3
sysbird Feb 3, 2025
3f11d4b
Merge pull request #2437 from vektor-inc/fix/zoomout-toggle/block-api-v3
sysbird Feb 3, 2025
871d4ac
Merge branch 'develop' into fix/icon/inline-block
akito-38 Feb 3, 2025
80b0920
Merge pull request #2430 from vektor-inc/fix/icon/inline-block
akito-38 Feb 3, 2025
04e57c6
deprecated調整
mthaichi Feb 3, 2025
3a6b13e
Merge branch 'develop' of github.com:vektor-inc/vk-blocks-pro into fe…
drill-lancer Feb 5, 2025
6050207
lint
drill-lancer Feb 5, 2025
c70e2a7
Add support for layout.allowJustification: false to allow full/wide a…
Feb 5, 2025
2f7cfce
Fix: changelog
Feb 5, 2025
c1d2f25
Fix: changelog
Feb 5, 2025
a39d6dd
Fix: changelog
Feb 5, 2025
0117c85
Revert block.json to develop version
Feb 5, 2025
1bf5363
Fix: Swapped "color" and "layout"
mtdkei Feb 5, 2025
29bb5a6
Add .vk_tableOfContents_openCloseBtn for editor
Feb 6, 2025
2c0a06d
Fix: liOnClick
Feb 6, 2025
8a71300
Fix: document.querySelector
Feb 6, 2025
c214cb2
Fix: desibleLinks
Feb 6, 2025
6962631
Add: commentout
Feb 6, 2025
97d251f
Fix: lint
Feb 6, 2025
b40f6b9
Merge remote-tracking branch 'refs/remotes/origin/fix/block-editor/ap…
Feb 6, 2025
3fb6a4c
Update: Overwrite languages/vk-blocks-pro-js.pot from develop
Feb 6, 2025
e7461b5
Add function vk_blocks_enqueue_editor_iframe
Feb 6, 2025
3261704
Fix: lint
Feb 6, 2025
86f91a3
Fix: Apply WordPress Coding Standards (WPCS) to post-list-slider
Feb 6, 2025
d7ca48f
Add commentout
Feb 6, 2025
de68e12
Fix: vk_blocks_enqueue_editor_iframe_post_list_slider
Feb 6, 2025
79e849f
Fix: vk_blocks_enqueue_editor_iframe_post_list_slider
Feb 6, 2025
a1512f6
Fix: Enqueue editor styles
Feb 6, 2025
2b8de99
Fix: Enqueue editor styles
Feb 6, 2025
ab44e46
Fix: Enqueue editor styles
Feb 6, 2025
edf8fc0
Added vk_blocks_enqueue_vk_components_editor_style and Organized VK B…
Feb 7, 2025
7b9cadd
Fix: vk_blocks_should_load_vk_components
Feb 7, 2025
efea4fd
Revert post-list and post-list-slider to develop version
Feb 7, 2025
76b8c02
Fix: commentout
Feb 7, 2025
2ce3dd7
Merge pull request #2443 from vektor-inc/feature/group/empty-atag-acc…
goutetsuguma Feb 7, 2025
b113116
fix:「ブロック名 + link」でなくて「ブロック名 」になっていたのを修正
akito-38 Feb 7, 2025
363e738
Add: window.
Feb 7, 2025
1ccb7e3
リファクタリング
mthaichi Feb 9, 2025
f07ae7a
lint
mthaichi Feb 9, 2025
36f04c2
Fix: onMouseOver and onFocus
Feb 10, 2025
c7c42c9
refactor: deorecated処理しやすく変更
mthaichi Feb 10, 2025
ca2f8f2
Merge pull request #2448 from vektor-inc/fix/ESLint/warning
akito-38 Feb 10, 2025
5851ee4
revert
mthaichi Feb 10, 2025
4163d42
revert
mthaichi Feb 10, 2025
ca8d9ec
Fix: screen-reader-textを削除
akito-38 Feb 12, 2025
043b99e
lint
akito-38 Feb 12, 2025
f16512d
Merge pull request #2451 from vektor-inc/refactor/cover-for-deprecated
sysbird Feb 14, 2025
392d3fe
Merge pull request #2444 from vektor-inc/feature/support/layout
goutetsuguma Feb 14, 2025
6234fab
fix:バージョン番号修正
akito-38 Feb 16, 2025
abadbd9
Merge branch 'develop' into feature/gridcolcard/empty-atag-accessibility
goutetsuguma Feb 17, 2025
c9507a1
fix:readme修正
akito-38 Feb 17, 2025
9686c29
Merge pull request #2427 from vektor-inc/feature/gridcolcard/empty-at…
goutetsuguma Feb 17, 2025
3b375a5
Fix: vk_blocks_enqueue_vk_components_style
mtdkei Feb 18, 2025
05f4feb
Merge pull request #2447 from vektor-inc/fix/block-editor/api-ver-3
drill-lancer Feb 18, 2025
e21ee0a
.vk_tab_bodys_body と隣接する .block-list-appender だけを対象に
goutetsuguma Feb 18, 2025
0ce2e81
changelog 追加
goutetsuguma Feb 18, 2025
b5a43be
タブブロック (.vk_tab) 内のブロック挿入ボタン (block-list-appender) が他のブロック挿入ボタンに影響を与え…
drill-lancer Feb 19, 2025
361afd7
[ Change version ] 1.96.0.0
kurudrive Feb 19, 2025
d07edf1
lint
kurudrive Feb 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion editor-css/_editor_before_tab.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
margin-bottom:0;
}
}
.block-list-appender{
// .vk_tab_bodys_body と隣接する .block-list-appender だけを対象にする
.vk_tab_bodys_body.block-editor-block-list__block + .block-list-appender {
position: absolute;
top: calc( 1rem * -6 );
right: calc( 1rem * 0 );
Expand Down
53 changes: 42 additions & 11 deletions inc/vk-blocks/load-vk-components.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,58 @@
use VektorInc\VK_Component\VK_Component_Posts;

/**
* Boostrapの読み込み
* VK Components(Bootstrap) を読み込むべきか判定
*
* @param string $hook_suffix hook suffix.
* @return bool 読み込む場合 true、読み込まない場合 false
*/
function vk_blocks_load_vk_components( $hook_suffix ) {
function vk_blocks_should_load_vk_components() {
$template = wp_get_theme()->Template;
// lightning 系(ベクトル)の場合 vk-components はテーマなどで読み込むので必要ない
if ( 'lightning' === $template || 'lightning-pro' === $template || 'katawara' === $template ) {
return;
}
// lightning 系(ベクトル)の場合 vk-components はテーマなどで読み込むので適用しない
$should_load = ! in_array( $template, array( 'lightning', 'lightning-pro', 'katawara' ), true );

return apply_filters( 'vk_blocks_should_load_vk_components', $should_load );
}

// 条件に合わなければここで return することで、以降の処理を実行しない
if ( ! vk_blocks_should_load_vk_components() ) {
return;
}

/**
* VK Components(Bootstrap) の登録 & 読み込み
*/
function vk_blocks_register_vk_components_style() {
VK_Component_Posts::register_style( 'vk-components-style' );
}
add_action( 'init', 'vk_blocks_register_vk_components_style' );

// 管理画面
/**
* VK Components(Bootstrap) を管理画面とフロントに適用
*
* @param string $hook_suffix hook suffix.
*/
function vk_blocks_enqueue_vk_components_style( $hook_suffix = '' ) {
if ( is_admin() ) {
if ( 'post.php' === $hook_suffix || 'post-new.php' === $hook_suffix ) {
if ( in_array( $hook_suffix, array( 'post.php', 'post-new.php' ), true ) ) {
wp_enqueue_style( 'vk-components-style' );
}
} else {
wp_enqueue_style( 'vk-components-style' );
}
}
add_action( 'admin_enqueue_scripts', 'vk_blocks_load_vk_components' );
add_action( 'wp_enqueue_scripts', 'vk_blocks_load_vk_components' );
add_action( 'admin_enqueue_scripts', 'vk_blocks_enqueue_vk_components_style' );
add_action( 'wp_enqueue_scripts', 'vk_blocks_enqueue_vk_components_style' );

/**
* エディター用の VK Components(Bootstrap) を適用
*/
function vk_blocks_enqueue_vk_components_editor_style() {
// スタイルが登録されていない場合は登録
if ( ! wp_style_is( 'vk-components-style', 'registered' ) ) {
VK_Component_Posts::register_style( 'vk-components-style' );
}

// スタイルを適用
wp_enqueue_style( 'vk-components-style' );
}
add_action( 'enqueue_block_assets', 'vk_blocks_enqueue_vk_components_editor_style' );
Loading
Loading