Skip to content

[Seven] Make style fields first-class and preserve block width fallback#8204

Merged
sneridagh merged 1 commit into
sevenfrom
style-fields-width-fallback
May 13, 2026
Merged

[Seven] Make style fields first-class and preserve block width fallback#8204
sneridagh merged 1 commit into
sevenfrom
style-fields-width-fallback

Conversation

@sneridagh
Copy link
Copy Markdown
Member

Added first-class generic style field support while preserving blockWidth fallback for Plone blocks and explicit width handling for Plate-native blocks.

Summary

  • load the generic style fields plugin as a first-class Plate plugin instead of hiding it behind block width
  • keep BlockWidthPlugin explicit for Plate-native blocks while restoring blocksConfig.blockWidth fallback for unknown Plone blocks
  • move the Image block width configuration to the schema-driven styleField path and cover the split behavior with plugin tests

Validation

  • pnpm --filter @plone/plate test --run components/editor/plugins/block-width-plugin.test.ts
  • pnpm --filter @plone/helpers test --run src/styleFields.test.ts
  • pnpm --filter @plone/layout test --run blocks/BlockWrapper.test.tsx
  • pnpm exec tsc --project packages/plate/tsconfig.json
  • pnpm exec tsc --project packages/layout/tsconfig.json

@sneridagh sneridagh changed the title [codex] Make style fields first-class and preserve block width fallback [Seven] Make style fields first-class and preserve block width fallback May 13, 2026
@sneridagh sneridagh marked this pull request as ready for review May 13, 2026 09:36
@sneridagh sneridagh merged commit 10aaa82 into seven May 13, 2026
31 checks passed
@sneridagh sneridagh deleted the style-fields-width-fallback branch May 13, 2026 10:08
sneridagh added a commit that referenced this pull request May 17, 2026
* seven: (43 commits)
  [codex] Handle stale auth cookies on public requests (#8216)
  Release Seven 1.0.0-alpha.4
  Release @plone/layout 1.0.0-alpha.8
  Release @plone/blocks 1.0.0-alpha.10
  Release @plone/plate 1.0.0-alpha.8
  Release @plone/helpers 2.0.0-alpha.6
  Make the import for the styleFields helper resilient and Volto-compatible (#8206)
  [Seven] Make style fields first-class and preserve block width fallback (#8204)
  Release @plone/plate 1.0.0-alpha.7
  Fixed toolbar button if a single option is shown (#8186)
  Release @plone/layout 1.0.0-alpha.7
  Release @plone/blocks 1.0.0-alpha.9
  Release @plone/plate 1.0.0-alpha.6
  Release @plone/helpers 2.0.0-alpha.5
  Release @plone/types 3.0.0-alpha.1
  [Seven] Style fields (#8175)
  Release @plone/plate 1.0.0-alpha.5
  Fixed import from repo in @plone/plate (#8183)
  Improved prereleaser script
  Release Seven 1.0.0-alpha.3
  ...
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.

1 participant