Please hardcoded packages with Kadence packages (npm)#924
Please hardcoded packages with Kadence packages (npm)#924ravinderk wants to merge 26 commits intorelease/M26.feraligatrfrom
Conversation
Remove local package implementations and add external references for @kadence/components, @kadence/helpers, and @kadence/icons
|
🎉 Zip build complete |
This configs are accesible from @kadence/components
we ill make a reusable github action in kadence component which will be used by blocks free and pro
|
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: |
Remove unused getUniqueId import from all advanced form field components as it was not being referenced anywhere in the code. Jira: KAD-5419
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
Jira: 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", |
There was a problem hiding this comment.
is that extra supposed to be in the name?"link-kadence-packages"
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", |
There was a problem hiding this comment.
Looks the branch needs to be updated when the components repo is merged.
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
Jira: KAD-5419
KAD-5419
Blocker
Description
This pull request implement logic to use Kadence packages (npm), instead of hardcoded packages.