Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions patches/@wordpress+block-library+11.2.0.patch
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,57 @@ index 4177018..9287e1b 100644
const isUploading = !!temporaryURL || isSideloading;
const imageSizeOptions = imageSizes.filter(
({ slug }) => image?.media_details?.sizes?.[slug]?.source_url
diff --git a/node_modules/@wordpress/block-library/build-module/list-item/index.mjs b/node_modules/@wordpress/block-library/build-module/list-item/index.mjs
index 0ee4362..595b19a 100644
--- a/node_modules/@wordpress/block-library/build-module/list-item/index.mjs
+++ b/node_modules/@wordpress/block-library/build-module/list-item/index.mjs
@@ -12,8 +12,6 @@ var { editableRootKey } = unlock(blocksPrivateApis);
var { name } = metadata;
var settings = {
icon,
- // Opt into the editing host behaviour privately, like the paragraph.
- [editableRootKey]: true,
edit,
save,
merge(attributes, attributesToMerge) {
diff --git a/node_modules/@wordpress/block-library/build-module/paragraph/index.mjs b/node_modules/@wordpress/block-library/build-module/paragraph/index.mjs
index 23504e5..82333a7 100644
--- a/node_modules/@wordpress/block-library/build-module/paragraph/index.mjs
+++ b/node_modules/@wordpress/block-library/build-module/paragraph/index.mjs
@@ -13,9 +13,6 @@ var { editableRootKey } = unlock(blocksPrivateApis);
var { name } = metadata;
var settings = {
icon,
- // Opt into the editing host behaviour privately. It's a Symbol setting
- // rather than a public `supports` key so it stays an internal detail.
- [editableRootKey]: true,
example: {
attributes: {
content: __(
diff --git a/node_modules/@wordpress/block-library/build/list-item/index.cjs b/node_modules/@wordpress/block-library/build/list-item/index.cjs
index 7f76602..2483320 100644
--- a/node_modules/@wordpress/block-library/build/list-item/index.cjs
+++ b/node_modules/@wordpress/block-library/build/list-item/index.cjs
@@ -49,8 +49,6 @@ var { editableRootKey } = (0, import_lock_unlock.unlock)(import_blocks.privateAp
var { name } = import_block.default;
var settings = {
icon: import_icons.listItem,
- // Opt into the editing host behaviour privately, like the paragraph.
- [editableRootKey]: true,
edit: import_edit.default,
save: import_save.default,
merge(attributes, attributesToMerge) {
diff --git a/node_modules/@wordpress/block-library/build/paragraph/index.cjs b/node_modules/@wordpress/block-library/build/paragraph/index.cjs
index 5913a33..104eff9 100644
--- a/node_modules/@wordpress/block-library/build/paragraph/index.cjs
+++ b/node_modules/@wordpress/block-library/build/paragraph/index.cjs
@@ -50,9 +50,6 @@ var { editableRootKey } = (0, import_lock_unlock.unlock)(import_blocks.privateAp
var { name } = import_block.default;
var settings = {
icon: import_icons.paragraph,
- // Opt into the editing host behaviour privately. It's a Symbol setting
- // rather than a public `supports` key so it stays an internal detail.
- [editableRootKey]: true,
example: {
attributes: {
content: (0, import_i18n.__)(
1 change: 1 addition & 0 deletions patches/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Existing patches should be described and justified here.
### `@wordpress/block-library`

- Enable image resizing on mobile devices by removing the `isLargeViewport` check from the `isResizable` condition in the `Image` component. The resizing feature appears to work well enough now, in contrast to the description in https://github.com/WordPress/gutenberg/issues/2675.
- Remove the private `editableRoot` opt-in from the `Paragraph` and `List Item` blocks ([gutenberg#81542](https://github.com/WordPress/gutenberg/pull/81542), [gutenberg#82816](https://github.com/WordPress/gutenberg/pull/82816)). Selecting either block makes the writing flow wrapper an editing host that takes focus, which breaks iOS caret placement: taps fail to move or show the caret (especially into the post title), typing doesn't reach the selected block, and the caret scrolls beneath the block toolbar. Remove this once upstream fixes iOS editing under the editable root (e.g., [gutenberg#84857](https://github.com/WordPress/gutenberg/pull/84857)) and it is verified in GutenbergKit.

### `@wordpress/editor`

Expand Down
Loading