Skip to content
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
0ae4cf8
chore: migrate packages to external dependencies
ravinderk Jan 28, 2026
f80f793
refactor: simplify webpack configuration by removing unused plugins a…
ravinderk Feb 2, 2026
8023bf8
Merge branch 'master' into KAD-5419
ravinderk Feb 3, 2026
faa3f7c
chore(build): replace text domain placeholder with text domain
ravinderk Feb 3, 2026
0aff390
chore(build): update script path
ravinderk Feb 3, 2026
388bdac
chore: remove configs
ravinderk Feb 3, 2026
ecfda6f
chore: ignore kadence package related hide file
ravinderk Feb 3, 2026
0e7355c
chore: add script in package.json
ravinderk Feb 3, 2026
d4c0a7b
ci(workflows): add GitHub Actions workflow to check Kadence package v…
ravinderk Feb 4, 2026
ffd5d74
ci: remove github action for checking packages version
ravinderk Feb 11, 2026
0d3a242
chore: update kadence packages version
ravinderk Mar 12, 2026
47622f2
fix: disable build process block
ravinderk Mar 12, 2026
5951a6e
Merge branch 'release/M26.feraligatr' into KAD-5419
ravinderk Mar 12, 2026
aa8eede
build(deps): replace with kadence packages
ravinderk Mar 12, 2026
d8eea00
Add a scope att to Table Data that holds a string
pattonwebz Mar 19, 2026
95b91a2
Unpack `scope` in the Advanced Table Block for use
pattonwebz Mar 19, 2026
de97043
Add a 'tagProps' const to table block that merges blockProps & th scope
pattonwebz Mar 19, 2026
91a46cf
Add a new setting for th that can select the scope for output
pattonwebz Mar 19, 2026
c0afa8c
Generate a scope attribute for th elements from cell attributes
pattonwebz Mar 19, 2026
4efab6d
Include the scope attribute value when building html for table cells
pattonwebz Mar 19, 2026
cbbebc4
Clear scope attribute when table cell transitions from th to td
pattonwebz Mar 19, 2026
6428776
Pass scope into useBlockProps rather than spreading after the fact
pattonwebz Mar 19, 2026
8934700
Remove default empty string from scope attribute in block.json
pattonwebz Mar 19, 2026
28e5edf
Improve Header Scope control label and option text for clarity
pattonwebz Mar 19, 2026
6d623e1
Restrict scope attribute to allowlist in editor preview
pattonwebz Mar 19, 2026
6031074
Add tests for the table-data block covering scope updates
pattonwebz Mar 19, 2026
577d857
Run the clear scope effect when `scope` changes as well as Tag
pattonwebz Mar 19, 2026
367f4ed
fix: fixing error when selecting border color
coutinhocouto Apr 10, 2026
4b5e2e8
fix: fixing advanced sticky headers
coutinhocouto Apr 10, 2026
cbd80af
Merge branch 'release/M26.feraligatr' into KAD-5419
ravinderk Apr 13, 2026
f07de64
build(webpack): simplify kadence extraction mapping
ravinderk Apr 13, 2026
1a787a9
Merge pull request #970 from stellarwp/kad-5486-Block-Settings-Border…
coutinhocouto Apr 13, 2026
a88752f
Merge branch 'release/M26.feraligatr' into kad-5487-Advanced-Headers-…
coutinhocouto Apr 13, 2026
9c946e5
Merge branch 'master' into release/M26.feraligatr
ravinderk Apr 14, 2026
2025f41
Merge branch 'release/M26.feraligatr' into KAD-5419
ravinderk Apr 14, 2026
fb84e85
style(advanced-form/fields): remove unused getUniqueId import
ravinderk Apr 14, 2026
4e69956
fix(toc): remove stray blank line
ravinderk Apr 14, 2026
9a6e72b
ci(eslint): prep optional PR lint flow
ravinderk Apr 14, 2026
fbd03bc
ci(eslint): build kadence packages for lint
ravinderk Apr 14, 2026
325c1af
Merge branch 'release/M26.feraligatr' into kad-5487-Advanced-Headers-…
ravinderk Apr 14, 2026
203d719
Merge branch 'master' into william/add-scope-option-for-tables-when-h…
ravinderk Apr 14, 2026
ec616db
Merge branch 'release/M26.feraligatr' into william/add-scope-option-f…
ravinderk Apr 14, 2026
48859a5
Merge pull request #957 from pattonwebz/william/add-scope-option-for-…
ravinderk Apr 14, 2026
f008ded
build(deps): replace hardcoded packages
ravinderk Apr 14, 2026
49ec24e
Merge branch 'release/M26.feraligatr' into KAD-5419
ravinderk Apr 14, 2026
2cab1b6
chore(deps): lock @kadence/components fix ref
ravinderk Apr 14, 2026
5bd9fa7
build(deps): use kadence components 1.1.7
ravinderk Apr 15, 2026
9e27794
build(deps): bump @kadence/components to 1.1.8
ravinderk Apr 15, 2026
31f8658
Merge branch 'release/M26.feraligatr' into kad-5487-Advanced-Headers-…
ravinderk Apr 15, 2026
5f0c929
Merge pull request #924 from stellarwp/KAD-5419
ravinderk Apr 16, 2026
606fce2
fix: fixing border issue on advanced header
coutinhocouto Apr 16, 2026
f1ce42f
Merge branch with header height exports and auto-transparent spacing …
coutinhocouto Apr 16, 2026
f1f24fd
chore: fixing merge issue
coutinhocouto Apr 16, 2026
188375e
Merge pull request #971 from stellarwp/kad-5487-Advanced-Headers-Stic…
coutinhocouto Apr 16, 2026
eb5f2a0
fix: fixing header with on table block
coutinhocouto Apr 20, 2026
4e83eed
[KAD-5541] Add captcha token regeneration after form submission
larodiel Apr 22, 2026
4069d24
Update kb-advanced-form-block.js to include global variables for Turn…
larodiel Apr 22, 2026
3d645c5
Refactor KBHeader class in kb-header-block.min.js to enhance sticky h…
larodiel Apr 23, 2026
d236251
Enhance reCAPTCHA integration by adding site key as a data attribute …
larodiel Apr 23, 2026
7c09afb
Merge branch 'release/M26.gardevoir' into fix/KAD-5541-re-captcha-fai…
gilbert-hernandez Apr 23, 2026
5e369b2
fix: use HTTPS resolved URLs for @kadence/* packages in lockfile
gilbert-hernandez Apr 23, 2026
94087a2
ci(tests): build @kadence packages before main build step
gilbert-hernandez Apr 23, 2026
7e20b74
ci(tests): drop --frozen-lockfile to fix @kadence package install
gilbert-hernandez Apr 23, 2026
8ba01e5
ci: delete package-lock.json before bun install to fix @kadence packa…
gilbert-hernandez Apr 23, 2026
a71711b
ci: rewrite ssh git URLs to https before building @kadence packages
gilbert-hernandez Apr 23, 2026
7166542
Fix code style issues with ESLint
lint-action Apr 23, 2026
d382eb1
ci: use GIT_CONFIG_GLOBAL to force SSH→HTTPS rewrite for @kadence npm…
gilbert-hernandez Apr 23, 2026
6d7b5a0
ci: use npm install --omit=prod to skip git-based @kadence deps
gilbert-hernandez Apr 23, 2026
4bccfba
fix(settings): resolve custom color theme conflict
ravinderk Apr 27, 2026
6834cb9
fix(color-palette): override palette colors to prevent theme conflicts
ravinderk Apr 27, 2026
97412ae
fix(color-palette-defaults): remove unused react 'use' import
ravinderk Apr 27, 2026
d19705c
Fix code style issues with ESLint
lint-action Apr 27, 2026
33c09bd
fix(block-defaults): preserve theme palette
ravinderk Apr 28, 2026
466c9f0
Merge pull request #974 from stellarwp/fix/KAD-5541-re-captcha-fail-a…
larodiel May 18, 2026
9287271
Merge branch 'master' into release/M26.gardevoir
gilbert-hernandez May 18, 2026
10eca52
Refactor table data block to introduce header scope handling and impr…
pramodjodhani May 19, 2026
30cb2cb
Merge pull request #973 from stellarwp/kad-5441-Table-Adv-Block-does-…
coutinhocouto May 20, 2026
686eced
Merge branch 'release/M26.gardevoir' into fix/KAD-5436-block-custom-c…
gilbert-hernandez May 20, 2026
64715b8
Merge pull request #975 from stellarwp/fix/KAD-5436-block-custom-colo…
gilbert-hernandez May 20, 2026
a16fe16
add filter `kadence_blocks_table_data_scope_attributes`
pramodjodhani May 22, 2026
c337ef5
Merge branch 'release/M26.gardevoir' into bugfix/SMTNC-219-table-bloc…
pramodjodhani May 22, 2026
16d5340
revert the PR#957 and fix broken tests
pramodjodhani May 22, 2026
3472a62
Merge pull request #987 from stellarwp/bugfix/SMTNC-219-table-block-s…
gilbert-hernandez May 26, 2026
32799d8
Merge branch 'master' into release/M26.gardevoir
gilbert-hernandez May 26, 2026
a5be981
Update version to 3.7.3 and add changelog. Updated TBD version.
gilbert-hernandez May 26, 2026
4627517
Update version annotation for the table data block to 3.7.3
gilbert-hernandez May 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 20 additions & 2 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
name: ESLint
run-name: '[ESLint] ${{ github.event.head_commit.message }}'

on: push
on:
push:
# pull_request:

# permissions:
# contents: write
# pull-requests: write

jobs:
run-linters:
Expand All @@ -26,11 +32,23 @@ jobs:
${{ runner.os }}-bun-

# ESLint and Prettier must be in `package.json`
- name: Remove npm lockfile to prevent bun git-clone issues
run: rm -f package-lock.json

- name: Install dependencies
run: bun install --frozen-lockfile
run: bun install
env:
BUN_AUTH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}

- name: Build Kadence workspace packages (for ESLint import resolution)
run: |
for pkg in helpers icons components; do
dir="node_modules/@kadence/${pkg}"
if [ -f "$dir/package.json" ]; then
(cd "$dir" && npm install --omit=prod && npm run build)
fi
done

- name: Run linters
uses: wearerequired/lint-action@v2
with:
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,23 @@ jobs:
with:
bun-version: latest

- run: bun install --frozen-lockfile
- name: Remove npm lockfile to prevent bun git-clone issues
run: rm -f package-lock.json

- run: bun install
env:
BUN_AUTH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
PUPPETEER_SKIP_DOWNLOAD: true

- name: Build Kadence workspace packages
run: |
for pkg in helpers icons components; do
dir="node_modules/@kadence/${pkg}"
if [ -f "$dir/package.json" ]; then
(cd "$dir" && npm install --omit=prod && npm run build)
fi
done

- name: Build packages
run: bun run build

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ bin/wp-cli.phar
/.env
# Remove this when fully transitioning to bun.
/bun.lock*
/.kadence-packages-root
2 changes: 1 addition & 1 deletion includes/assets/js/kb-advanced-form-block.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion includes/assets/js/kb-header-block.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion includes/assets/js/lottie-player.min.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions includes/blocks/class-kadence-blocks-table-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ public function build_css( $attributes, $css, $unique_id, $unique_style_id ) {
$width_unit = ! empty( $settings['unit'] ) ? $settings['unit'] : '%';

if( isset( $settings['width'] ) && '' !== $settings['width'] ) {
$css->set_selector('.kb-table' . esc_attr($unique_id) . ' td:nth-of-type(' . ($index + 1) . '), ' .
'.kb-table' . esc_attr($unique_id) . ' th:nth-of-type(' . ($index + 1) . ')');
$css->set_selector('.kb-table' . esc_attr($unique_id) . ' tr > *:nth-child(' . ($index + 1) . ')');
$css->add_property('width', $settings['width'] . $width_unit);
}

Expand Down
50 changes: 41 additions & 9 deletions includes/blocks/class-kadence-blocks-table-data-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,26 +93,58 @@ public function build_css( $attributes, $css, $unique_id, $unique_style_id ) {
* @return mixed
*/
public function build_html( $attributes, $unique_id, $content, $block_instance ) {
$tag = $this->is_this_block_header( $attributes, $block_instance->context ) ? 'th' : 'td';
$scope = $this->get_block_header_scope( $attributes, $block_instance->context );
$tag = $scope ? 'th' : 'td';

$scope_attr = $scope ? sprintf( ' scope="%s"', esc_attr( $scope ) ) : '';

return sprintf(
'<%s class="kb-table-data kb-table-data%2$s">%3$s</%4$s>',
'<%1$s %2$s class="kb-table-data kb-table-data%3$s">%4$s</%1$s>',
$tag,
$scope_attr,
esc_attr( $unique_id ),
$content,
$tag
$content
);
}

private function is_this_block_header( $attributes, $context ) {
$isFirstRowHeader = ! empty( $context['kadence/table/isFirstRowHeader'] );
$isFirstColumnHeader = ! empty( $context['kadence/table/isFirstColumnHeader'] );
/**
* Get the header scope for a table data cell.
*
* @param array $attributes Block attributes.
* @param array $context Block context.
*
* @since 3.7.3
*
* @return string|false 'col', 'row', or false when the cell is not a header.
*/
private function get_block_header_scope( $attributes, $context ) {
$is_first_row_header = ! empty( $context['kadence/table/isFirstRowHeader'] );
$is_first_column_header = ! empty( $context['kadence/table/isFirstColumnHeader'] );

$column = $attributes['column'] ?? -1;
$row = $context['kadence/table/parentRow'] ?? -1;
$row = $context['kadence/table/parentRow'] ?? -1;

if ( 0 === $row && $is_first_row_header ) {
/**
* Filter the scope for the table data cell.
* Scope is 'row', 'col', or false when the cell is not a header.
* https://www.w3schools.com/tags/att_th_scope.asp
*
* @param string $scope The scope.
* @param array $attributes The block attributes.
* @param array $context The block context.
* @return string The scope.
*
* @since 3.7.3
*/
return apply_filters( 'kadence_blocks_table_data_scope_attributes', 'col', $attributes, $context );
}

return ( $column === 0 && $isFirstColumnHeader ) || ( $row === 0 && $isFirstRowHeader );
if ( 0 === $column && $is_first_column_header ) {
return apply_filters( 'kadence_blocks_table_data_scope_attributes', 'row', $attributes, $context );
}

return apply_filters( 'kadence_blocks_table_data_scope_attributes', false, $attributes, $context );
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function (token) {
wp_add_inline_script( 'kadence-blocks-recaptcha', $recaptcha_v3_script, 'after' );
$this->enqueue_script( 'kadence-blocks-recaptcha' );

$output = '<input type="hidden" name="recaptcha_response" class="kb_recaptcha_response kb_recaptcha_' . esc_attr( $unique_id ) . '" />';
$output = '<input type="hidden" name="recaptcha_response" class="kb_recaptcha_response kb_recaptcha_' . esc_attr( $unique_id ) . '" data-sitekey="' . esc_attr( $captcha_settings->public_key ) . '" />';

// Handle Kadence Captcha plugin settings
$recaptcha_notice_html = '<span style="max-width: 100%%; font-size: 11px; color: #555; line-height: 1.2; display: block; margin-bottom: 16px; padding: 10px; background: #f2f2f2;" class="kt-recaptcha-branding-string">%s</span>';
Expand Down
12 changes: 11 additions & 1 deletion includes/settings/class-kadence-blocks-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,10 +455,20 @@ public function load_color_palette_theme_json( $theme_json ) {
);
} else {
// Merge mode: add custom colors to theme palette.
$existing_theme = isset( $data['settings']['color']['palette']['theme'] )
$existing_theme = isset( $data['settings']['color']['palette']['theme'] ) && ! empty( $data['settings']['color']['palette']['theme'] )
? $data['settings']['color']['palette']['theme']
: [];

// If theme.json has no colors, fall back to colors registered via
// add_theme_support( 'editor-color-palette' ) — e.g. Blocksy registers
// its palette this way rather than through theme.json.
if ( empty( $existing_theme ) ) {
$theme_support = get_theme_support( 'editor-color-palette' );
if ( is_array( $theme_support ) && ! empty( $theme_support[0] ) ) {
$existing_theme = $theme_support[0];
}
}

// Merge custom colors with theme palette.
$merged_palette = array_merge( $existing_theme, $san_palette );
$merged_palette = array_values( array_map( 'unserialize', array_unique( array_map( 'serialize', $merged_palette ) ) ) );
Expand Down
4 changes: 2 additions & 2 deletions kadence-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Advanced Page Building Blocks for Gutenberg. Create custom column layouts, backgrounds, dual buttons, icons etc.
* Author: Kadence WP
* Author URI: https://www.kadencewp.com
* Version: 3.7.2
* Version: 3.7.3
* Requires PHP: 7.4
* Text Domain: kadence-blocks
* License: GPL2+
Expand All @@ -20,7 +20,7 @@
}
define( 'KADENCE_BLOCKS_PATH', realpath( plugin_dir_path( __FILE__ ) ) . DIRECTORY_SEPARATOR );
define( 'KADENCE_BLOCKS_URL', plugin_dir_url( __FILE__ ) );
define( 'KADENCE_BLOCKS_VERSION', '3.7.2' );
define( 'KADENCE_BLOCKS_VERSION', '3.7.3' );

/**
* Plugin basename, e.g. "kadence-blocks/kadence-blocks.php".
Expand Down
Loading
Loading