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. |
| "yauzl": "^2.7.0" | ||
| }, | ||
| "dependencies": { | ||
| "are-we-there-yet": { |
There was a problem hiding this comment.
I spoke to @gziolo about this. I have no idea why it's happening.
There was a problem hiding this comment.
Try deleting node_modules and running npm install again.
|
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 <robert@noisysocks.com>
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.jsfiles for terms that need renaming or removal).