-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blocks: Support reusable nested blocks (reusable blocks refactor) #5228
Commits on Mar 14, 2018
-
Revert "Blocks: Disable Convert to Reusable for nested blocks"
This reverts commit 8872058.
Configuration menu - View commit details
-
Copy full SHA for e53d036 - Browse repository at this point
Copy the full SHA e53d036View commit details -
Configuration menu - View commit details
-
Copy full SHA for e0ea667 - Browse repository at this point
Copy the full SHA e0ea667View commit details -
Blocks: Avoid dismissing editable controls
In nested context, block selection changes from reusable block to the inner block being edited, but we want to keep the UI shown
Configuration menu - View commit details
-
Copy full SHA for 8501e7d - Browse repository at this point
Copy the full SHA 8501e7dView commit details -
Configuration menu - View commit details
-
Copy full SHA for edc7681 - Browse repository at this point
Copy the full SHA edc7681View commit details -
Block List: Hide disabled default block appender
e.g. within Disabled component, e.g. within reusable nested block
Configuration menu - View commit details
-
Copy full SHA for 928c2d1 - Browse repository at this point
Copy the full SHA 928c2d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7aff115 - Browse repository at this point
Copy the full SHA 7aff115View commit details -
Block List: Inject inner block list creator as function
Generate BlockList from block's own utils, which has advantage of: - Not having circular dependency from blocks to editor - Respecting block menu and contextual toolbar props
Configuration menu - View commit details
-
Copy full SHA for f7dabde - Browse repository at this point
Copy the full SHA f7dabdeView commit details -
Configuration menu - View commit details
-
Copy full SHA for d5da664 - Browse repository at this point
Copy the full SHA d5da664View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4aac14a - Browse repository at this point
Copy the full SHA 4aac14aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b4afb64 - Browse repository at this point
Copy the full SHA b4afb64View commit details -
Configuration menu - View commit details
-
Copy full SHA for b2f16d0 - Browse repository at this point
Copy the full SHA b2f16d0View commit details -
Update getInserterItems to respect new reusable block data layout
Makes `getInserterItems` and `getFrecentInserterItems` respect that reusable blocks now point to a block that is elsewhere in the editor state. This makes reusable blocks again appear in the inserter.
Configuration menu - View commit details
-
Copy full SHA for 04bfd26 - Browse repository at this point
Copy the full SHA 04bfd26View commit details -
Provide createInnerBlockList context in BlockPreview
Allow reusable nested blocks to be previewed in the inserter by having BlockPreview inject a createInnerBlockList function via context.
Configuration menu - View commit details
-
Copy full SHA for c169500 - Browse repository at this point
Copy the full SHA c169500View commit details -
Fix flash of 'Not found' error message when fetching a reusable block
Re-order the FETCH_REUSABLE_BLOCKS effect so that the reusable block is added to the store before it is marked as no longer being fetched. This prevents core/block from briefly flashing the 'Not found' error message in between dispatches.
Configuration menu - View commit details
-
Copy full SHA for 2ede29e - Browse repository at this point
Copy the full SHA 2ede29eView commit details -
When converting reusable -> regular, replace the block with a copy
Making a copy of the referenced block prevents the regular block from being removed should the reuasble block be later deleted.
Configuration menu - View commit details
-
Copy full SHA for 1b3f1ba - Browse repository at this point
Copy the full SHA 1b3f1baView commit details -
Avoid iterating through reusable blocks twice
Use _.map to avoid iterating through the reusable blocks twice in `getReusableBlocks`.
Configuration menu - View commit details
-
Copy full SHA for 4025b7a - Browse repository at this point
Copy the full SHA 4025b7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f0180c - Browse repository at this point
Copy the full SHA 3f0180cView commit details