Repository navigation
Conversation
|
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: +7 B (0%) Total Size: 7.81 MB 📦 View Changed
|
|
Flaky tests detected in 20b2df0. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/31058630700
|
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GQNdFF1FUU9JXfNGZev2na
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GQNdFF1FUU9JXfNGZev2na
The button appender cases each gate on their own conditions, so they keep the renderAppender option for now and migrate in a follow-up. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GQNdFF1FUU9JXfNGZev2na
The appender derives from the default block instead; see the children namespace introduced next. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GQNdFF1FUU9JXfNGZev2na
Moves the defaultBlock option of InnerBlocks to the block type, where the appender and inserter machinery can read it without mounting the block. The option is deprecated and still overrides the setting. Also removes the accordion item's inert directInsert, which never had a default block to insert. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GQNdFF1FUU9JXfNGZev2na
The block type setting is readable from the block name, so it must not go through updateBlockListSettings; only the deprecated option does. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GQNdFF1FUU9JXfNGZev2na
Enter on a block with bound attributes inserts an adjacent default block; the actions read the block list settings only, so they lost the default when it moved to the block type. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GQNdFF1FUU9JXfNGZev2na
It no longer exists after the sibling attributes unification. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GQNdFF1FUU9JXfNGZev2na
20b2df0 to
f92aa1a
Compare
What?
Moves the
defaultBlockoption ofInnerBlocks/useInnerBlocksPropsinto block type settings, keeping its name and shape ({ name, attributes }, since #81250 removedattributesToCopy). The option is deprecated and still overrides the setting. Step 3 of #81239.This PR previously introduced an
appenderblock type setting; that approach is reverted in place. Which appender a block shows derives from its default block in later steps, so the block type fact to move is the default block itself.Why?
What a container creates when you append into it is a property of the block type, currently only expressible at render time. Declaring it on the block type lets the store and editor reason about it without mounting the block: the appender, the inserter, and the planned empty-state work (#81231) all key off it.
How?
defaultBlockblock type setting. Typed and documented in@wordpress/blocks; no registration changes, mirroring thetemplatesetting.InnerBlocks. When nodefaultBlockoption is passed, the block type's setting feeds the block list settings; nothing changes store-side. Passing the option warns.directInsertis untouched and stays an option for now. The accordion item'sdirectInsert: trueis removed: it never declared a default block, so it never did anything.Testing Instructions
🤖 Generated with Claude Code
https://claude.ai/code/session_01GQNdFF1FUU9JXfNGZev2na