Skip to content

Compile editable designs into constrained native InnerBlocks - #11

Merged
noeltock merged 1 commit into
mainfrom
foundry/4-compile-editable-designs-into-constrained-native-innerblocks
Sep 4, 2026
Merged

Compile editable designs into constrained native InnerBlocks#11
noeltock merged 1 commit into
mainfrom
foundry/4-compile-editable-designs-into-constrained-native-innerblocks

Conversation

@noeltock

@noeltock noeltock commented Sep 3, 2026

Copy link
Copy Markdown
Member

Problem

A reusable block is still a poor WordPress citizen if headings, images, links and buttons become bespoke fields or frozen HTML. The design needs to stay intact without replacing the editor behaviour WordPress already provides. Closes #4.

Solution

Generate a thin custom wrapper around one native InnerBlocks tree. Ordinary content remains in Core Heading, Paragraph, Image, List, Buttons and Button blocks. The plan controls the template, direct-child allowlist, editability and locking, while fixed structure stays out of the outer block's content attributes.

Testing and verification

The native-child, locking and content-only contracts are covered by the repository tests and the real WordPress lifecycle used by the current integration. The public verification record is the green CI run on Node 20, 22 and 24 with WordPress 7.1.

Risk and rollout

The static path does not generate arbitrary controls or dynamic rendering. Designs that cannot fit one native content region fail with a source-located reason rather than silently becoming custom HTML.

@noeltock
noeltock merged commit d802819 into main Sep 4, 2026
3 checks passed
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.

Compile editable designs into constrained native InnerBlocks

1 participant