Skip to content

Please hardcoded packages with Kadence packages (npm)#924

Open
ravinderk wants to merge 26 commits intorelease/M26.feraligatrfrom
KAD-5419
Open

Please hardcoded packages with Kadence packages (npm)#924
ravinderk wants to merge 26 commits intorelease/M26.feraligatrfrom
KAD-5419

Conversation

@ravinderk
Copy link
Copy Markdown
Contributor

@ravinderk ravinderk commented Feb 3, 2026

KAD-5419

Blocker

Description

This pull request implement logic to use Kadence packages (npm), instead of hardcoded packages.

Remove local package implementations and add external references
for @kadence/components, @kadence/helpers, and @kadence/icons
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 3, 2026

🎉 Zip build complete

Build timestamp

@ravinderk ravinderk self-assigned this Feb 3, 2026
@ravinderk ravinderk marked this pull request as ready for review February 3, 2026 13:59
we ill make a reusable github action in kadence component which will be used by blocks free and pro
@ravinderk ravinderk closed this Mar 2, 2026
@ravinderk ravinderk deleted the KAD-5419 branch March 2, 2026 11:22
@ravinderk ravinderk restored the KAD-5419 branch March 4, 2026 01:23
@ravinderk ravinderk reopened this Mar 4, 2026
@ravinderk ravinderk changed the base branch from master to release/M26.feraligatr March 11, 2026 15:53
@gilbert-hernandez
Copy link
Copy Markdown
Contributor

@ravinderk

It looks like there are some conflicts that need to be resolved. I saw the same issue that Shayne found when I set a custom size for the margin and padding. I updated the kadence/components dependency in the package.json to use the "github:stellarwp/kadence-components#fix/KAD-5419-add-missing-style" branch. However, the problem still exists when I use that updated branch.

The ResponsiveMeasureRangeControl component is responsible for the padding/margin in the blocks, but I don't see that was an updated component in kadence/components repo (I'll comment there too).

Also, this is a strange Linting error. In the past, I've mostly ignored the linting errors, but I'm trying to make sure we don't have them going forward. This linting error may be because the dist/ directory for the helpers/components/icons repos don't exist when linting. We may need to update the workflow file or add a step after “Install dependencies” and before “Run linters” that builds the Kadence packages, for example:

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

Remove unused getUniqueId import from all advanced form field components
as it was not being referenced anywhere in the code.

Jira: KAD-5419
Keep the workflow on direct npm lint execution while leaving\nfuture auto-fix, auto-commit, and PR review comment steps\ncommented for later enablement.\n\nJira: KAD-5419
package.json Outdated
"lint-js-fix": "wp-scripts lint-js --fix",
"format": "wp-scripts format"
"format": "wp-scripts format",
"link-kadence-packages`": "node node_modules/@kadence/components/scripts/npm/link-kadence-packages.js",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is that extra supposed to be in the name?"link-kadence-packages"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

package.json Outdated
"unlink-kadence-packages": "node node_modules/@kadence/components/scripts/npm/unlink-kadence-packages.js"
},
"dependencies": {
"@kadence/components": "github:stellarwp/kadence-components#fix/KAD-5419-add-missing-style",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks the branch needs to be updated when the components repo is merged.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Replace the temporary @kadence/components branch reference with the
1.1.7 package release and update the generated lockfile.

Also fix the link-kadence-packages script name in package.json.

Jira: KAD-5419
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants