-
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
Make Reusable blocks available in the Site Editor #36511
Make Reusable blocks available in the Site Editor #36511
Conversation
Size Change: +335 B (0%) Total Size: 1.1 MB
ℹ️ View Unchanged
|
I've been very busy. Going to pick this up again Monday morning GMT. |
package-lock.json
Outdated
@@ -22017,16 +22018,6 @@ | |||
"yauzl": "^2.7.0" | |||
}, | |||
"dependencies": { | |||
"are-we-there-yet": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I spoke to @gziolo about this. I have no idea why it's happening.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try deleting node_modules
and running npm install
again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did that for you in ef9dc98 😀
How's this going @getdave? Need help? |
I was sidetracked yesterday wrangling Navigation block but will take another look today. Help is very welcome here. |
1e15eaf
to
be5b854
Compare
Currently looking out for edge cases on this. I suspect enabling Reusable blocks within Template Parts might throw up problems. |
I have followed the testing instructions above and I also tested:
Newly created reusable blocks are not listed in the inserters unless I refresh the page. Perhaps that is unrelated. I did not do a code review. |
That's related, the |
👍 Addressed in 03b9dc8. |
This reverts commit c11a2490ddf4b0af3a78e68d87af4a8b8345f171.
e14baf7
to
e362a18
Compare
Looks like a problem with the |
Nice one @noisysocks. I was hesitant about the best course of action what with all the |
* Create new selector to fetch reusable blocks to be exposed on block editor settings * Add Reusable Blocks meun items * Avoid expose new selector as part of API #36511 (comment) * Revert "Avoid expose new selector as part of API" This reverts commit c11a2490ddf4b0af3a78e68d87af4a8b8345f171. * Pass reusable blocks getting as selector dependency * Add unit test for Reusable blocks selector * Fix tests * rm -rf node_modules; npm install Co-authored-by: Robert Anderson <[email protected]>
Description
In #30669 we learnt that Reusable Blocks aren't currently available in the Site Editor. This PR enables them in the Site Editor.
Closes #30669
How has this been tested?
Screenshots
Screen.Capture.on.2021-11-23.at.12-01-06.mp4
Types of changes
Checklist:
*.native.js
files for terms that need renaming or removal).