Skip to content

fix(cli): keep the rich text editor working in newly created blocks - #1705

Merged
ragi96 merged 1 commit into
mainfrom
fix-block-scaffolding
Oct 14, 2026
Merged

ragi96 merged 1 commit into
mainfrom
fix-block-scaffolding

Conversation

@ragi96

@ragi96 ragi96 commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

Fixes the block scaffolding part of DE-683.

Blocks created with frontify-cli create crashed with Cannot read properties of undefined (reading 'slice') as soon as a rich text editor switched to edit mode. npm put slate@0.136.0 at the top level next to slate-react@0.102.0, while @frontify/fondue-rte kept its own slate@0.102.0. The editor ran on two incompatible copies of slate. The block templates now pin slate and slate-react to 0.102.0 and slate-history and slate-hyperscript to 0.100.0, the versions fondue-rte is built against.

Also in the three block templates:

  • @frontify/app-bridge goes from ^3.12.9 to ^3.12.10, and @frontify/guideline-blocks-settings from 2.1.11 to ^3.0.7. It's now a caret range, so new blocks get patch releases. Dev tooling is bumped to current versions.
  • allowScripts now covers esbuild and unrs-resolver, so npm stops warning about their install scripts.
  • A pnpm-workspace.yaml, the same as chore: update the apps templates #1702 added to the app templates. pnpm ignores resolutions, and pnpm 11+ fails the install on unapproved build scripts. It uses 4-space indents because the template's ESLint config also lints YAML, and deploy runs lint.

Not in this PR

  • Audit findings: a new block still reports 22 vulnerabilities. The 9 high ones all come from braces (GHSA-vfj7-8cjw-p6xm), which has no patched release yet. It comes in through tailwind 3, fast-glob and fondue. The rest come from katex (through the ESLint config) and postcss-selector-parser (through tailwind 3). All of them are build or lint tools, and none end up in the block bundle.

@ragi96
ragi96 requested a review from a team as a code owner October 14, 2026 09:00
@ragi96
ragi96 requested a review from peter-tudosa October 14, 2026 09:00
@changeset-bot

changeset-bot Bot commented Oct 14, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c0da01f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@frontify/frontify-cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@sonarqubecloud

Copy link
Copy Markdown

@ragi96
ragi96 merged commit e17334e into main Oct 14, 2026
25 checks passed
@ragi96
ragi96 deleted the fix-block-scaffolding branch October 14, 2026 09:30
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.

2 participants