@wordpress/block-editor 15.21.0 → 15.22.1-next.v.202606191442.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -1
- package/build/components/block-card/index.cjs +4 -5
- package/build/components/block-card/index.cjs.map +2 -2
- package/build/components/block-compare/index.cjs +2 -2
- package/build/components/block-compare/index.cjs.map +2 -2
- package/build/components/block-inspector/index.cjs +3 -4
- package/build/components/block-inspector/index.cjs.map +2 -2
- package/build/components/block-mover/mover-description.cjs +6 -6
- package/build/components/block-mover/mover-description.cjs.map +1 -1
- package/build/components/block-patterns-list/index.cjs +1 -1
- package/build/components/block-patterns-list/index.cjs.map +2 -2
- package/build/components/block-patterns-paging/index.cjs +4 -4
- package/build/components/block-patterns-paging/index.cjs.map +2 -2
- package/build/components/block-popover/use-popover-scroll.cjs.map +1 -1
- package/build/components/block-quick-navigation/index.cjs +7 -5
- package/build/components/block-quick-navigation/index.cjs.map +2 -2
- package/build/components/block-switcher/block-transformations-menu.cjs +16 -15
- package/build/components/block-switcher/block-transformations-menu.cjs.map +2 -2
- package/build/components/block-switcher/index.cjs +4 -4
- package/build/components/block-switcher/index.cjs.map +2 -2
- package/build/components/block-toolbar/edit-section-button.cjs.map +1 -1
- package/build/components/block-tools/use-block-toolbar-popover-props.cjs +10 -4
- package/build/components/block-tools/use-block-toolbar-popover-props.cjs.map +2 -2
- package/build/components/child-layout-control/index.cjs +51 -19
- package/build/components/child-layout-control/index.cjs.map +2 -2
- package/build/components/dimensions-tool/index.cjs +4 -5
- package/build/components/dimensions-tool/index.cjs.map +2 -2
- package/build/components/dimensions-tool/scale-tool.cjs +1 -1
- package/build/components/dimensions-tool/scale-tool.cjs.map +2 -2
- package/build/components/global-styles/advanced-panel.cjs +23 -15
- package/build/components/global-styles/advanced-panel.cjs.map +2 -2
- package/build/components/global-styles/background-panel.cjs +2 -2
- package/build/components/global-styles/background-panel.cjs.map +2 -2
- package/build/components/global-styles/border-panel.cjs +2 -0
- package/build/components/global-styles/border-panel.cjs.map +2 -2
- package/build/components/global-styles/dimensions-panel.cjs +2 -2
- package/build/components/global-styles/dimensions-panel.cjs.map +2 -2
- package/build/components/global-styles/shadow-panel-components.cjs.map +2 -2
- package/build/components/grid/grid-item-resizer.cjs.map +1 -1
- package/build/components/grid/grid-visualizer.cjs.map +1 -1
- package/build/components/iframe/index.cjs +6 -3
- package/build/components/iframe/index.cjs.map +3 -3
- package/build/components/image-editor/use-transform-image.cjs.map +1 -1
- package/build/components/inner-blocks/use-inner-block-template-sync.cjs +3 -1
- package/build/components/inner-blocks/use-inner-block-template-sync.cjs.map +2 -2
- package/build/components/inserter/get-appender-label.cjs.map +1 -1
- package/build/components/inserter/hooks/use-patterns-state.cjs +1 -1
- package/build/components/inserter/hooks/use-patterns-state.cjs.map +2 -2
- package/build/components/inserter/index.cjs +179 -220
- package/build/components/inserter/index.cjs.map +3 -3
- package/build/components/inserter/media-tab/media-preview.cjs.map +2 -2
- package/build/components/inserter/search-items.cjs.map +1 -1
- package/build/components/inserter/search-results.cjs +1 -1
- package/build/components/inserter/search-results.cjs.map +2 -2
- package/build/components/inspector-controls/fill.cjs +1 -3
- package/build/components/inspector-controls/fill.cjs.map +2 -2
- package/build/components/inspector-controls-tabs/index.cjs.map +2 -2
- package/build/components/inspector-controls-tabs/styles-tab.cjs +1 -1
- package/build/components/inspector-controls-tabs/styles-tab.cjs.map +2 -2
- package/build/components/keyboard-shortcuts/index.cjs.map +1 -1
- package/build/components/line-height-control/index.cjs.map +1 -1
- package/build/components/link-control/index.cjs +1 -1
- package/build/components/link-control/index.cjs.map +1 -1
- package/build/components/link-control/normalize-url.cjs.map +1 -1
- package/build/components/list-view/block-select-button.cjs +10 -12
- package/build/components/list-view/block-select-button.cjs.map +2 -2
- package/build/components/list-view/block.cjs +2 -1
- package/build/components/list-view/block.cjs.map +2 -2
- package/build/components/list-view/utils.cjs.map +1 -1
- package/build/components/preset-input-control/custom-value-controls.cjs.map +2 -2
- package/build/components/provider/index.cjs.map +1 -1
- package/build/components/provider/use-block-sync.cjs +11 -2
- package/build/components/provider/use-block-sync.cjs.map +2 -2
- package/build/components/rich-text/event-listeners/before-input-rules.cjs +5 -5
- package/build/components/rich-text/event-listeners/before-input-rules.cjs.map +3 -3
- package/build/components/rich-text/event-listeners/delete.cjs +4 -4
- package/build/components/rich-text/event-listeners/delete.cjs.map +3 -3
- package/build/components/rich-text/event-listeners/enter.cjs +7 -2
- package/build/components/rich-text/event-listeners/enter.cjs.map +2 -2
- package/build/components/rich-text/event-listeners/input-events.cjs +4 -4
- package/build/components/rich-text/event-listeners/input-events.cjs.map +3 -3
- package/build/components/rich-text/event-listeners/input-rules.cjs +17 -4
- package/build/components/rich-text/event-listeners/input-rules.cjs.map +3 -3
- package/build/components/rich-text/event-listeners/insert-replacement-text.cjs +4 -4
- package/build/components/rich-text/event-listeners/insert-replacement-text.cjs.map +3 -3
- package/build/components/rich-text/event-listeners/paste-handler.cjs.map +1 -1
- package/build/components/rich-text/event-listeners/remove-browser-shortcuts.cjs +4 -4
- package/build/components/rich-text/event-listeners/remove-browser-shortcuts.cjs.map +3 -3
- package/build/components/rich-text/event-listeners/shortcuts.cjs +4 -4
- package/build/components/rich-text/event-listeners/shortcuts.cjs.map +3 -3
- package/build/components/rich-text/event-listeners/undo-automatic-change.cjs +4 -4
- package/build/components/rich-text/event-listeners/undo-automatic-change.cjs.map +3 -3
- package/build/components/rich-text/index.cjs +1 -23
- package/build/components/rich-text/index.cjs.map +2 -2
- package/build/components/rich-text/prevent-event-discovery.cjs +1 -1
- package/build/components/rich-text/prevent-event-discovery.cjs.map +1 -1
- package/build/components/use-block-commands/index.cjs +5 -5
- package/build/components/use-block-commands/index.cjs.map +2 -2
- package/build/components/writing-flow/use-tab-nav.cjs.map +1 -1
- package/build/hooks/anchor.cjs +12 -16
- package/build/hooks/anchor.cjs.map +2 -2
- package/build/hooks/background.cjs.map +1 -1
- package/build/hooks/block-fields/index.cjs +13 -2
- package/build/hooks/block-fields/index.cjs.map +2 -2
- package/build/hooks/border.cjs +0 -3
- package/build/hooks/border.cjs.map +2 -2
- package/build/hooks/color.cjs +1 -4
- package/build/hooks/color.cjs.map +2 -2
- package/build/hooks/dimensions.cjs +13 -5
- package/build/hooks/dimensions.cjs.map +2 -2
- package/build/hooks/fit-text.cjs +11 -0
- package/build/hooks/fit-text.cjs.map +2 -2
- package/build/hooks/layout-child.cjs +27 -2
- package/build/hooks/layout-child.cjs.map +2 -2
- package/build/hooks/list-view.cjs +10 -7
- package/build/hooks/list-view.cjs.map +2 -2
- package/build/hooks/position.cjs +19 -22
- package/build/hooks/position.cjs.map +2 -2
- package/build/hooks/spacing-visualizer.cjs.map +1 -1
- package/build/hooks/state-utils.cjs.map +1 -1
- package/build/hooks/style.cjs +42 -2
- package/build/hooks/style.cjs.map +2 -2
- package/build/hooks/supports.cjs +0 -7
- package/build/hooks/supports.cjs.map +2 -2
- package/build/private-apis.cjs +4 -0
- package/build/private-apis.cjs.map +2 -2
- package/build/store/actions.cjs +7 -3
- package/build/store/actions.cjs.map +2 -2
- package/build/store/private-actions.cjs +1 -2
- package/build/store/private-actions.cjs.map +2 -2
- package/build/store/private-selectors.cjs +42 -2
- package/build/store/private-selectors.cjs.map +2 -2
- package/build/store/reducer.cjs +14 -6
- package/build/store/reducer.cjs.map +2 -2
- package/build/store/selectors.cjs +60 -41
- package/build/store/selectors.cjs.map +2 -2
- package/build/utils/dom.cjs.map +1 -1
- package/build/utils/selection.cjs +1 -1
- package/build-module/components/block-card/index.mjs +5 -6
- package/build-module/components/block-card/index.mjs.map +2 -2
- package/build-module/components/block-compare/index.mjs +1 -1
- package/build-module/components/block-compare/index.mjs.map +2 -2
- package/build-module/components/block-inspector/index.mjs +3 -5
- package/build-module/components/block-inspector/index.mjs.map +2 -2
- package/build-module/components/block-mover/mover-description.mjs +6 -6
- package/build-module/components/block-mover/mover-description.mjs.map +1 -1
- package/build-module/components/block-patterns-list/index.mjs +1 -1
- package/build-module/components/block-patterns-list/index.mjs.map +2 -2
- package/build-module/components/block-patterns-paging/index.mjs +4 -4
- package/build-module/components/block-patterns-paging/index.mjs.map +2 -2
- package/build-module/components/block-popover/use-popover-scroll.mjs.map +1 -1
- package/build-module/components/block-quick-navigation/index.mjs +8 -6
- package/build-module/components/block-quick-navigation/index.mjs.map +2 -2
- package/build-module/components/block-switcher/block-transformations-menu.mjs +16 -15
- package/build-module/components/block-switcher/block-transformations-menu.mjs.map +2 -2
- package/build-module/components/block-switcher/index.mjs +4 -4
- package/build-module/components/block-switcher/index.mjs.map +2 -2
- package/build-module/components/block-toolbar/edit-section-button.mjs.map +1 -1
- package/build-module/components/block-tools/use-block-toolbar-popover-props.mjs +10 -4
- package/build-module/components/block-tools/use-block-toolbar-popover-props.mjs.map +2 -2
- package/build-module/components/child-layout-control/index.mjs +51 -19
- package/build-module/components/child-layout-control/index.mjs.map +2 -2
- package/build-module/components/dimensions-tool/index.mjs +4 -5
- package/build-module/components/dimensions-tool/index.mjs.map +2 -2
- package/build-module/components/dimensions-tool/scale-tool.mjs +1 -1
- package/build-module/components/dimensions-tool/scale-tool.mjs.map +2 -2
- package/build-module/components/global-styles/advanced-panel.mjs +23 -15
- package/build-module/components/global-styles/advanced-panel.mjs.map +2 -2
- package/build-module/components/global-styles/background-panel.mjs +3 -3
- package/build-module/components/global-styles/background-panel.mjs.map +2 -2
- package/build-module/components/global-styles/border-panel.mjs +2 -0
- package/build-module/components/global-styles/border-panel.mjs.map +2 -2
- package/build-module/components/global-styles/dimensions-panel.mjs +3 -4
- package/build-module/components/global-styles/dimensions-panel.mjs.map +2 -2
- package/build-module/components/global-styles/shadow-panel-components.mjs.map +2 -2
- package/build-module/components/grid/grid-item-resizer.mjs.map +1 -1
- package/build-module/components/grid/grid-visualizer.mjs.map +1 -1
- package/build-module/components/iframe/index.mjs +6 -3
- package/build-module/components/iframe/index.mjs.map +2 -2
- package/build-module/components/image-editor/use-transform-image.mjs.map +1 -1
- package/build-module/components/inner-blocks/use-inner-block-template-sync.mjs +3 -1
- package/build-module/components/inner-blocks/use-inner-block-template-sync.mjs.map +2 -2
- package/build-module/components/inserter/get-appender-label.mjs.map +1 -1
- package/build-module/components/inserter/hooks/use-patterns-state.mjs +1 -1
- package/build-module/components/inserter/hooks/use-patterns-state.mjs.map +2 -2
- package/build-module/components/inserter/index.mjs +185 -222
- package/build-module/components/inserter/index.mjs.map +3 -3
- package/build-module/components/inserter/media-tab/media-preview.mjs.map +2 -2
- package/build-module/components/inserter/search-items.mjs.map +1 -1
- package/build-module/components/inserter/search-results.mjs +1 -1
- package/build-module/components/inserter/search-results.mjs.map +2 -2
- package/build-module/components/inspector-controls/fill.mjs +1 -3
- package/build-module/components/inspector-controls/fill.mjs.map +2 -2
- package/build-module/components/inspector-controls-tabs/index.mjs.map +2 -2
- package/build-module/components/inspector-controls-tabs/styles-tab.mjs +1 -1
- package/build-module/components/inspector-controls-tabs/styles-tab.mjs.map +2 -2
- package/build-module/components/keyboard-shortcuts/index.mjs.map +1 -1
- package/build-module/components/line-height-control/index.mjs.map +1 -1
- package/build-module/components/link-control/index.mjs +1 -1
- package/build-module/components/link-control/index.mjs.map +1 -1
- package/build-module/components/link-control/normalize-url.mjs.map +1 -1
- package/build-module/components/list-view/block-select-button.mjs +10 -12
- package/build-module/components/list-view/block-select-button.mjs.map +2 -2
- package/build-module/components/list-view/block.mjs +2 -1
- package/build-module/components/list-view/block.mjs.map +2 -2
- package/build-module/components/list-view/utils.mjs.map +1 -1
- package/build-module/components/preset-input-control/custom-value-controls.mjs.map +2 -2
- package/build-module/components/provider/index.mjs.map +1 -1
- package/build-module/components/provider/use-block-sync.mjs +11 -2
- package/build-module/components/provider/use-block-sync.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/before-input-rules.mjs +5 -5
- package/build-module/components/rich-text/event-listeners/before-input-rules.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/delete.mjs +4 -4
- package/build-module/components/rich-text/event-listeners/delete.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/enter.mjs +7 -2
- package/build-module/components/rich-text/event-listeners/enter.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/input-events.mjs +4 -4
- package/build-module/components/rich-text/event-listeners/input-events.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/input-rules.mjs +17 -4
- package/build-module/components/rich-text/event-listeners/input-rules.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/insert-replacement-text.mjs +4 -4
- package/build-module/components/rich-text/event-listeners/insert-replacement-text.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/paste-handler.mjs.map +1 -1
- package/build-module/components/rich-text/event-listeners/remove-browser-shortcuts.mjs +4 -4
- package/build-module/components/rich-text/event-listeners/remove-browser-shortcuts.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/shortcuts.mjs +4 -4
- package/build-module/components/rich-text/event-listeners/shortcuts.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/undo-automatic-change.mjs +4 -4
- package/build-module/components/rich-text/event-listeners/undo-automatic-change.mjs.map +2 -2
- package/build-module/components/rich-text/index.mjs +1 -23
- package/build-module/components/rich-text/index.mjs.map +2 -2
- package/build-module/components/rich-text/prevent-event-discovery.mjs +1 -1
- package/build-module/components/rich-text/prevent-event-discovery.mjs.map +1 -1
- package/build-module/components/use-block-commands/index.mjs +5 -5
- package/build-module/components/use-block-commands/index.mjs.map +2 -2
- package/build-module/components/writing-flow/use-tab-nav.mjs.map +1 -1
- package/build-module/hooks/anchor.mjs +12 -16
- package/build-module/hooks/anchor.mjs.map +2 -2
- package/build-module/hooks/background.mjs.map +1 -1
- package/build-module/hooks/block-fields/index.mjs +13 -2
- package/build-module/hooks/block-fields/index.mjs.map +2 -2
- package/build-module/hooks/border.mjs +1 -4
- package/build-module/hooks/border.mjs.map +2 -2
- package/build-module/hooks/color.mjs +2 -5
- package/build-module/hooks/color.mjs.map +2 -2
- package/build-module/hooks/dimensions.mjs +13 -6
- package/build-module/hooks/dimensions.mjs.map +2 -2
- package/build-module/hooks/fit-text.mjs +11 -0
- package/build-module/hooks/fit-text.mjs.map +2 -2
- package/build-module/hooks/layout-child.mjs +27 -2
- package/build-module/hooks/layout-child.mjs.map +2 -2
- package/build-module/hooks/list-view.mjs +10 -7
- package/build-module/hooks/list-view.mjs.map +2 -2
- package/build-module/hooks/position.mjs +20 -23
- package/build-module/hooks/position.mjs.map +2 -2
- package/build-module/hooks/spacing-visualizer.mjs.map +1 -1
- package/build-module/hooks/state-utils.mjs.map +1 -1
- package/build-module/hooks/style.mjs +44 -3
- package/build-module/hooks/style.mjs.map +2 -2
- package/build-module/hooks/supports.mjs +0 -7
- package/build-module/hooks/supports.mjs.map +2 -2
- package/build-module/private-apis.mjs +8 -0
- package/build-module/private-apis.mjs.map +2 -2
- package/build-module/store/actions.mjs +7 -3
- package/build-module/store/actions.mjs.map +2 -2
- package/build-module/store/private-actions.mjs +1 -2
- package/build-module/store/private-actions.mjs.map +2 -2
- package/build-module/store/private-selectors.mjs +39 -1
- package/build-module/store/private-selectors.mjs.map +2 -2
- package/build-module/store/reducer.mjs +14 -6
- package/build-module/store/reducer.mjs.map +2 -2
- package/build-module/store/selectors.mjs +62 -42
- package/build-module/store/selectors.mjs.map +2 -2
- package/build-module/utils/dom.mjs.map +1 -1
- package/build-module/utils/selection.mjs +1 -1
- package/build-style/content-rtl.css +12 -0
- package/build-style/content.css +12 -0
- package/build-style/style-rtl.css +26 -8
- package/build-style/style.css +26 -8
- package/package.json +54 -46
- package/src/components/block-breadcrumb/README.md +2 -2
- package/src/components/block-card/index.js +7 -13
- package/src/components/block-compare/README.md +6 -6
- package/src/components/block-compare/index.js +1 -3
- package/src/components/block-inspector/index.js +2 -10
- package/src/components/block-patterns-list/index.js +1 -2
- package/src/components/block-preview/README.md +1 -1
- package/src/components/block-quick-navigation/index.js +7 -7
- package/src/components/block-switcher/block-transformations-menu.js +16 -18
- package/src/components/block-switcher/index.js +4 -4
- package/src/components/block-tools/use-block-toolbar-popover-props.js +10 -4
- package/src/components/block-types-list/README.md +0 -19
- package/src/components/child-layout-control/index.js +65 -20
- package/src/components/child-layout-control/test/index.js +64 -0
- package/src/components/dimensions-tool/index.js +4 -9
- package/src/components/dimensions-tool/scale-tool.js +1 -2
- package/src/components/dimensions-tool/test/index.js +89 -11
- package/src/components/global-styles/advanced-panel.js +5 -1
- package/src/components/global-styles/background-panel.js +3 -3
- package/src/components/global-styles/border-panel.js +2 -0
- package/src/components/global-styles/dimensions-panel.js +13 -15
- package/src/components/global-styles/shadow-panel-components.js +0 -1
- package/src/components/iframe/index.js +8 -3
- package/src/components/inner-blocks/use-inner-block-template-sync.js +3 -1
- package/src/components/inserter/hooks/use-patterns-state.js +1 -1
- package/src/components/inserter/index.js +257 -288
- package/src/components/inserter/media-tab/media-preview.js +0 -1
- package/src/components/inserter/search-results.js +1 -3
- package/src/components/inspector-controls/fill.js +6 -8
- package/src/components/inspector-controls-tabs/index.js +0 -1
- package/src/components/inspector-controls-tabs/styles-tab.js +5 -1
- package/src/components/justify-content-control/README.md +1 -1
- package/src/components/list-view/block-select-button.js +9 -14
- package/src/components/list-view/block.js +1 -0
- package/src/components/media-placeholder/README.md +1 -29
- package/src/components/media-upload/README.md +0 -19
- package/src/components/preset-input-control/custom-value-controls.js +0 -1
- package/src/components/provider/test/use-block-sync.js +40 -0
- package/src/components/provider/use-block-sync.js +12 -2
- package/src/components/rich-text/event-listeners/before-input-rules.js +5 -4
- package/src/components/rich-text/event-listeners/delete.js +9 -4
- package/src/components/rich-text/event-listeners/enter.js +9 -2
- package/src/components/rich-text/event-listeners/input-events.js +13 -4
- package/src/components/rich-text/event-listeners/input-rules.js +20 -4
- package/src/components/rich-text/event-listeners/insert-replacement-text.js +9 -4
- package/src/components/rich-text/event-listeners/remove-browser-shortcuts.js +9 -4
- package/src/components/rich-text/event-listeners/shortcuts.js +13 -4
- package/src/components/rich-text/event-listeners/undo-automatic-change.js +5 -4
- package/src/components/rich-text/index.js +1 -33
- package/src/components/unit-control/README.md +1 -1
- package/src/components/url-popover/README.md +1 -1
- package/src/components/use-block-commands/index.js +5 -5
- package/src/hooks/anchor.js +9 -17
- package/src/hooks/block-fields/index.js +27 -2
- package/src/hooks/border.js +1 -5
- package/src/hooks/color.js +1 -6
- package/src/hooks/dimensions.js +15 -8
- package/src/hooks/fit-text.js +16 -0
- package/src/hooks/layout-child.js +41 -2
- package/src/hooks/list-view.js +10 -11
- package/src/hooks/position.js +23 -27
- package/src/hooks/style.js +80 -2
- package/src/hooks/supports.js +0 -9
- package/src/hooks/test/dimensions.js +71 -0
- package/src/hooks/test/layout-child.js +165 -0
- package/src/hooks/test/style.js +126 -4
- package/src/private-apis.js +8 -0
- package/src/store/actions.js +13 -3
- package/src/store/private-actions.js +1 -4
- package/src/store/private-selectors.js +89 -0
- package/src/store/reducer.js +19 -7
- package/src/store/selectors.js +91 -53
- package/src/store/test/actions.js +21 -0
- package/src/store/test/private-selectors.js +138 -0
- package/src/store/test/reducer.js +46 -0
- package/src/store/test/selectors.js +77 -0
- package/build/components/media-upload-progress/constants.cjs +0 -46
- package/build/components/media-upload-progress/constants.cjs.map +0 -7
- package/build/components/rich-text/native/format-edit.cjs +0 -60
- package/build/components/rich-text/native/format-edit.cjs.map +0 -7
- package/build/components/rich-text/native/index.cjs +0 -28
- package/build/components/rich-text/native/index.cjs.map +0 -7
- package/build/components/rich-text/native/use-format-types.cjs +0 -139
- package/build/components/rich-text/native/use-format-types.cjs.map +0 -7
- package/build-module/components/media-upload-progress/constants.mjs +0 -16
- package/build-module/components/media-upload-progress/constants.mjs.map +0 -7
- package/build-module/components/rich-text/native/format-edit.mjs +0 -39
- package/build-module/components/rich-text/native/format-edit.mjs.map +0 -7
- package/build-module/components/rich-text/native/index.mjs +0 -7
- package/build-module/components/rich-text/native/index.mjs.map +0 -7
- package/build-module/components/rich-text/native/use-format-types.mjs +0 -114
- package/build-module/components/rich-text/native/use-format-types.mjs.map +0 -7
- package/src/components/audio-player/audio-url-parser.native.js +0 -20
- package/src/components/audio-player/index.native.js +0 -225
- package/src/components/audio-player/styles.native.scss +0 -114
- package/src/components/audio-player/test/audio-url-parser.native.js +0 -53
- package/src/components/block-alignment-control/test/index.native.js +0 -37
- package/src/components/block-alignment-control/ui.native.js +0 -86
- package/src/components/block-caption/README.md +0 -104
- package/src/components/block-caption/index.native.js +0 -89
- package/src/components/block-caption/styles.native.scss +0 -7
- package/src/components/block-controls/slot.native.js +0 -33
- package/src/components/block-draggable/draggable-chip.native.js +0 -49
- package/src/components/block-draggable/dropping-insertion-point.native.js +0 -181
- package/src/components/block-draggable/dropping-insertion-point.native.scss +0 -8
- package/src/components/block-draggable/index.native.js +0 -467
- package/src/components/block-draggable/style.native.scss +0 -19
- package/src/components/block-draggable/test/__snapshots__/index.native.js.snap +0 -73
- package/src/components/block-draggable/test/helpers.native.js +0 -182
- package/src/components/block-draggable/test/index.native.js +0 -419
- package/src/components/block-draggable/use-scroll-when-dragging.native.js +0 -135
- package/src/components/block-edit/edit.native.js +0 -49
- package/src/components/block-edit/test/edit.native.js +0 -65
- package/src/components/block-heading-level-dropdown/index.native.js +0 -68
- package/src/components/block-icon/index.native.js +0 -47
- package/src/components/block-icon/style.native.scss +0 -7
- package/src/components/block-list/block-crash-boundary.native.js +0 -43
- package/src/components/block-list/block-crash-warning.native.js +0 -21
- package/src/components/block-list/block-invalid-warning.native.js +0 -70
- package/src/components/block-list/block-list-context.native.js +0 -172
- package/src/components/block-list/block-list-item-cell.native.js +0 -62
- package/src/components/block-list/block-list-item.native.js +0 -209
- package/src/components/block-list/block-list-item.native.scss +0 -16
- package/src/components/block-list/block-outline.native.js +0 -77
- package/src/components/block-list/block-selection-button.native.js +0 -100
- package/src/components/block-list/block-selection-button.native.scss +0 -34
- package/src/components/block-list/block.native.js +0 -716
- package/src/components/block-list/block.native.scss +0 -62
- package/src/components/block-list/grid-item.native.js +0 -58
- package/src/components/block-list/index.native.js +0 -437
- package/src/components/block-list/insertion-point.native.js +0 -36
- package/src/components/block-list/style.native.scss +0 -117
- package/src/components/block-list/test/block-invalid-warning.native.js +0 -62
- package/src/components/block-list/test/block-list-context.native.js +0 -243
- package/src/components/block-list/test/block-outline.native.js +0 -255
- package/src/components/block-list/test/fixtures/block-list-context.native.js +0 -79
- package/src/components/block-list/test/index.native.js +0 -205
- package/src/components/block-list/use-block-props/index.native.js +0 -10
- package/src/components/block-list/use-scroll-upon-insertion.native.js +0 -52
- package/src/components/block-list-appender/index.native.js +0 -70
- package/src/components/block-list-appender/style.native.scss +0 -8
- package/src/components/block-media-update-progress/README.md +0 -100
- package/src/components/block-media-update-progress/index.native.js +0 -299
- package/src/components/block-media-update-progress/styles.native.scss +0 -9
- package/src/components/block-media-update-progress/test/index.native.js +0 -543
- package/src/components/block-mover/index.native.js +0 -193
- package/src/components/block-mover/mover-description.native.js +0 -155
- package/src/components/block-mover/test/__snapshots__/index.native.js.snap +0 -218
- package/src/components/block-mover/test/index.native.js +0 -186
- package/src/components/block-settings/button.native.js +0 -41
- package/src/components/block-settings/container.native.js +0 -91
- package/src/components/block-settings/container.native.scss +0 -4
- package/src/components/block-settings/index.native.js +0 -5
- package/src/components/block-styles/index.native.js +0 -94
- package/src/components/block-styles/preview.native.js +0 -109
- package/src/components/block-styles/style.native.scss +0 -64
- package/src/components/block-switcher/block-transformations-menu.native.js +0 -91
- package/src/components/block-toolbar/block-toolbar-menu.native.js +0 -477
- package/src/components/block-toolbar/index.native.js +0 -126
- package/src/components/block-toolbar/test/__snapshots__/block-toolbar-menu.native.js.snap +0 -125
- package/src/components/block-toolbar/test/block-toolbar-menu.native.js +0 -405
- package/src/components/block-toolbar/test/index.native.js +0 -36
- package/src/components/block-types-list/index.native.js +0 -175
- package/src/components/block-types-list/style.native.scss +0 -25
- package/src/components/block-variation-picker/index.native.js +0 -107
- package/src/components/block-variation-picker/style.native.scss +0 -32
- package/src/components/button-block-appender/index.native.js +0 -92
- package/src/components/button-block-appender/styles.native.scss +0 -43
- package/src/components/caption/README.md +0 -44
- package/src/components/caption/index.native.js +0 -61
- package/src/components/colors-gradients/panel-color-gradient-settings.native.js +0 -59
- package/src/components/contrast-checker/index.native.js +0 -113
- package/src/components/contrast-checker/style.native.scss +0 -26
- package/src/components/convert-to-group-buttons/index.native.js +0 -79
- package/src/components/default-block-appender/index.native.js +0 -113
- package/src/components/default-block-appender/style.native.scss +0 -18
- package/src/components/floating-toolbar/floatingToolbar.android.scss +0 -4
- package/src/components/floating-toolbar/floatingToolbar.ios.scss +0 -3
- package/src/components/floating-toolbar/index.native.js +0 -141
- package/src/components/floating-toolbar/styles.native.scss +0 -43
- package/src/components/font-sizes/index.native.js +0 -7
- package/src/components/global-styles/color-panel.native.js +0 -207
- package/src/components/global-styles/test/use-global-styles-context.native.js +0 -435
- package/src/components/global-styles/use-global-styles-context.native.js +0 -592
- package/src/components/gradients/index.native.js +0 -2
- package/src/components/image-link-destinations/index.native.js +0 -152
- package/src/components/image-link-destinations/style.native.scss +0 -16
- package/src/components/index.native.js +0 -108
- package/src/components/inner-blocks/constants.native.js +0 -5
- package/src/components/inner-blocks/index.native.js +0 -221
- package/src/components/inner-blocks/warning-max-depth-exceeded.native.js +0 -124
- package/src/components/inserter/block-types-tab.native.js +0 -76
- package/src/components/inserter/hooks/use-block-type-impressions.native.js +0 -47
- package/src/components/inserter/hooks/use-clipboard-block.native.js +0 -40
- package/src/components/inserter/index.native.js +0 -424
- package/src/components/inserter/menu.native.js +0 -237
- package/src/components/inserter/no-results.native.js +0 -49
- package/src/components/inserter/reusable-blocks-tab.native.js +0 -45
- package/src/components/inserter/search-results.native.js +0 -67
- package/src/components/inserter/style.native.scss +0 -83
- package/src/components/inserter/tabs.native.js +0 -152
- package/src/components/inserter/test/__snapshots__/index.native.js.snap +0 -117
- package/src/components/inserter/test/fixtures/index.native.js +0 -12
- package/src/components/inserter/test/index.native.js +0 -273
- package/src/components/inserter/test/reusable-blocks-tab.native.js +0 -62
- package/src/components/inserter/test/utils.native.js +0 -37
- package/src/components/inserter/utils.native.js +0 -46
- package/src/components/inserter-button/index.native.js +0 -108
- package/src/components/inserter-button/style.native.scss +0 -72
- package/src/components/inspector-controls/fill.native.js +0 -62
- package/src/components/inspector-controls/slot.native.js +0 -35
- package/src/components/inspector-controls-tabs/advanced-controls-panel.native.js +0 -31
- package/src/components/line-height-control/index.native.js +0 -28
- package/src/components/media-placeholder/index.native.js +0 -258
- package/src/components/media-placeholder/styles.native.scss +0 -108
- package/src/components/media-replace-flow/index.native.js +0 -12
- package/src/components/media-upload/constants.native.js +0 -14
- package/src/components/media-upload/index.native.js +0 -356
- package/src/components/media-upload/style.native.scss +0 -4
- package/src/components/media-upload/test/index.native.js +0 -172
- package/src/components/media-upload-progress/README.md +0 -100
- package/src/components/media-upload-progress/constants.js +0 -6
- package/src/components/media-upload-progress/index.native.js +0 -233
- package/src/components/media-upload-progress/styles.native.scss +0 -15
- package/src/components/media-upload-progress/test/index.native.js +0 -220
- package/src/components/plain-text/index.native.js +0 -164
- package/src/components/plain-text/style.native.scss +0 -10
- package/src/components/provider/index.native.js +0 -32
- package/src/components/rich-text/embed-handler-picker.native.js +0 -65
- package/src/components/rich-text/file-paste-handler.native.js +0 -3
- package/src/components/rich-text/format-toolbar/index.native.js +0 -21
- package/src/components/rich-text/format-toolbar-container.native.js +0 -16
- package/src/components/rich-text/index.native.js +0 -701
- package/src/components/rich-text/input-event.native.js +0 -10
- package/src/components/rich-text/native/format-edit.js +0 -44
- package/src/components/rich-text/native/get-format-colors.native.js +0 -47
- package/src/components/rich-text/native/index.js +0 -1
- package/src/components/rich-text/native/index.native.js +0 -1389
- package/src/components/rich-text/native/style.native.scss +0 -28
- package/src/components/rich-text/native/test/__snapshots__/index.native.js.snap +0 -79
- package/src/components/rich-text/native/test/index.native.js +0 -345
- package/src/components/rich-text/native/test/performance/rich-text.native.js +0 -44
- package/src/components/rich-text/native/toolbar-button-with-options.native.js +0 -61
- package/src/components/rich-text/native/use-format-types.js +0 -146
- package/src/components/rich-text/remove-browser-shortcuts.native.js +0 -1
- package/src/components/rich-text/shortcut.native.js +0 -10
- package/src/components/ungroup-button/README.md +0 -23
- package/src/components/ungroup-button/index.native.js +0 -77
- package/src/components/unsupported-block-details/index.native.js +0 -187
- package/src/components/unsupported-block-details/style.native.scss +0 -56
- package/src/components/url-input/index.native.js +0 -33
- package/src/components/use-block-drop-zone/index.native.js +0 -207
- package/src/components/use-on-block-drop/index.native.js +0 -115
- package/src/components/use-unsupported-block-editor/index.native.js +0 -59
- package/src/components/video-player/gridicon-play.native.js +0 -13
- package/src/components/video-player/index.native.js +0 -133
- package/src/components/video-player/styles.native.scss +0 -29
- package/src/components/warning/index.native.js +0 -64
- package/src/components/warning/style.native.scss +0 -47
- package/src/hooks/align.native.js +0 -49
- package/src/hooks/custom-class-name.native.js +0 -70
- package/src/hooks/index.native.js +0 -36
- package/src/hooks/layout.native.js +0 -23
- package/src/hooks/test/__snapshots__/align.native.js.snap +0 -73
- package/src/hooks/test/__snapshots__/anchor.native.js.snap +0 -7
- package/src/hooks/test/align.native.js +0 -134
- package/src/hooks/test/anchor.native.js +0 -32
- package/src/hooks/test/use-editor-wrapper-styles.native.js +0 -282
- package/src/hooks/typography.native.js +0 -60
- package/src/hooks/use-editor-wrapper-styles.native.js +0 -250
- package/src/hooks/use-editor-wrapper-styles.native.scss +0 -12
- package/src/index.native.js +0 -6
- package/src/private-apis.native.js +0 -21
- package/src/store/defaults.native.js +0 -23
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/utils/dom.js"],
|
|
4
|
-
"sourcesContent": ["const BLOCK_SELECTOR = '.block-editor-block-list__block';\nconst APPENDER_SELECTOR = '.block-list-appender';\nconst BLOCK_APPENDER_CLASS = '.block-editor-button-block-appender';\n\n/**\n * Returns true if two elements are contained within the same block.\n *\n * @param {Element} a First element.\n * @param {Element} b Second element.\n *\n * @return {boolean} Whether elements are in the same block.\n */\nexport function isInSameBlock( a, b ) {\n\treturn a.closest( BLOCK_SELECTOR ) === b.closest( BLOCK_SELECTOR );\n}\n\n/**\n * Returns true if an element is considered part of the block and not its inner\n * blocks or appender.\n *\n * @param {Element} blockElement Block container element.\n * @param {Element} element Element.\n *\n * @return {boolean} Whether an element is considered part of the block and not\n * its inner blocks or appender.\n */\nexport function isInsideRootBlock( blockElement, element ) {\n\tconst parentBlock = element.closest(\n\t\t[ BLOCK_SELECTOR, APPENDER_SELECTOR, BLOCK_APPENDER_CLASS ].join( ',' )\n\t);\n\treturn parentBlock === blockElement;\n}\n\n/**\n * Finds the block client ID given any DOM node inside the block.\n *\n * @param {Node?} node DOM node.\n *\n * @return {string|undefined} Client ID or undefined if the node is not part of\n * a block.\n */\nexport function getBlockClientId( node ) {\n\twhile ( node && node.nodeType !== node.ELEMENT_NODE ) {\n\t\tnode = node.parentNode;\n\t}\n\n\tif ( ! node ) {\n\t\treturn;\n\t}\n\n\tconst elementNode = /** @type {Element} */ ( node );\n\tconst blockNode = elementNode.closest( BLOCK_SELECTOR );\n\n\tif ( ! blockNode ) {\n\t\treturn;\n\t}\n\n\treturn blockNode.id.slice( 'block-'.length );\n}\n\n/**\n * Calculates the union of two rectangles.\n *\n * @param {DOMRect} rect1 First rectangle.\n * @param {DOMRect} rect2 Second rectangle.\n * @return {DOMRect} Union of the two rectangles.\n */\nexport function rectUnion( rect1, rect2 ) {\n\tconst left = Math.min( rect1.left, rect2.left );\n\tconst right = Math.max( rect1.right, rect2.right );\n\tconst bottom = Math.max( rect1.bottom, rect2.bottom );\n\tconst top = Math.min( rect1.top, rect2.top );\n\n\treturn new window.DOMRectReadOnly( left, top, right - left, bottom - top );\n}\n\n/**\n * Returns whether an element is visible.\n *\n * @param {Element} element Element.\n * @return {boolean} Whether the element is visible.\n */\nexport function isElementVisible( element ) {\n\tconst viewport = element.ownerDocument.defaultView;\n\tif ( ! viewport ) {\n\t\treturn false;\n\t}\n\n\t// Check for <VisuallyHidden> components.\n\tif ( element.hasAttribute( 'data-visually-hidden' ) ) {\n\t\treturn false;\n\t}\n\n\tconst bounds = element.getBoundingClientRect();\n\tif ( bounds.width === 0 || bounds.height === 0 ) {\n\t\treturn false;\n\t}\n\n\t// Older browsers, e.g. Safari < 17.4 may not support the `checkVisibility` method.\n\tif ( element.checkVisibility ) {\n\t\treturn element.checkVisibility?.( {\n\t\t\topacityProperty: true,\n\t\t\tcontentVisibilityAuto: true,\n\t\t\tvisibilityProperty: true,\n\t\t} );\n\t}\n\n\tconst style = viewport.getComputedStyle( element );\n\n\tif (\n\t\tstyle.display === 'none' ||\n\t\tstyle.visibility === 'hidden' ||\n\t\tstyle.opacity === '0'\n\t) {\n\t\treturn false;\n\t}\n\n\treturn true;\n}\n\n/**\n * Checks if the element is scrollable.\n *\n * @param {Element} element Element.\n * @return {boolean} True if the element is scrollable.\n */\nfunction isScrollable( element ) {\n\tconst style = window.getComputedStyle( element );\n\treturn (\n\t\tstyle.overflowX === 'auto' ||\n\t\tstyle.overflowX === 'scroll' ||\n\t\tstyle.overflowY === 'auto' ||\n\t\tstyle.overflowY === 'scroll'\n\t);\n}\n\nexport const WITH_OVERFLOW_ELEMENT_BLOCKS = [ 'core/navigation' ];\n/**\n * Returns the bounding rectangle of an element, with special handling for blocks\n * that have visible overflowing children (defined in WITH_OVERFLOW_ELEMENT_BLOCKS).\n *\n * For blocks like Navigation that can have overflowing elements (e.g. submenus),\n * this function calculates the combined bounds of both the parent and its visible\n * children. The returned rect may extend beyond the viewport.\n * The returned rect represents the full extent of the element and its visible\n * children, which may extend beyond the viewport.\n *\n * @param {Element} element Element.\n * @return {DOMRect} Bounding client rect of the element and its visible children.\n */\nexport function getElementBounds( element ) {\n\tconst viewport = element.ownerDocument.defaultView;\n\n\tif ( ! viewport ) {\n\t\treturn new window.DOMRectReadOnly();\n\t}\n\n\tlet bounds = element.getBoundingClientRect();\n\tconst dataType = element.getAttribute( 'data-type' );\n\n\t/*\n\t * For blocks with overflowing elements (like Navigation), include the bounds\n\t * of visible children that extend beyond the parent container.\n\t */\n\tif ( dataType && WITH_OVERFLOW_ELEMENT_BLOCKS.includes( dataType ) ) {\n\t\tconst stack = [ element ];\n\t\tlet currentElement;\n\n\t\twhile ( ( currentElement = stack.pop() ) ) {\n\t\t\t// Children won
|
|
4
|
+
"sourcesContent": ["const BLOCK_SELECTOR = '.block-editor-block-list__block';\nconst APPENDER_SELECTOR = '.block-list-appender';\nconst BLOCK_APPENDER_CLASS = '.block-editor-button-block-appender';\n\n/**\n * Returns true if two elements are contained within the same block.\n *\n * @param {Element} a First element.\n * @param {Element} b Second element.\n *\n * @return {boolean} Whether elements are in the same block.\n */\nexport function isInSameBlock( a, b ) {\n\treturn a.closest( BLOCK_SELECTOR ) === b.closest( BLOCK_SELECTOR );\n}\n\n/**\n * Returns true if an element is considered part of the block and not its inner\n * blocks or appender.\n *\n * @param {Element} blockElement Block container element.\n * @param {Element} element Element.\n *\n * @return {boolean} Whether an element is considered part of the block and not\n * its inner blocks or appender.\n */\nexport function isInsideRootBlock( blockElement, element ) {\n\tconst parentBlock = element.closest(\n\t\t[ BLOCK_SELECTOR, APPENDER_SELECTOR, BLOCK_APPENDER_CLASS ].join( ',' )\n\t);\n\treturn parentBlock === blockElement;\n}\n\n/**\n * Finds the block client ID given any DOM node inside the block.\n *\n * @param {Node?} node DOM node.\n *\n * @return {string|undefined} Client ID or undefined if the node is not part of\n * a block.\n */\nexport function getBlockClientId( node ) {\n\twhile ( node && node.nodeType !== node.ELEMENT_NODE ) {\n\t\tnode = node.parentNode;\n\t}\n\n\tif ( ! node ) {\n\t\treturn;\n\t}\n\n\tconst elementNode = /** @type {Element} */ ( node );\n\tconst blockNode = elementNode.closest( BLOCK_SELECTOR );\n\n\tif ( ! blockNode ) {\n\t\treturn;\n\t}\n\n\treturn blockNode.id.slice( 'block-'.length );\n}\n\n/**\n * Calculates the union of two rectangles.\n *\n * @param {DOMRect} rect1 First rectangle.\n * @param {DOMRect} rect2 Second rectangle.\n * @return {DOMRect} Union of the two rectangles.\n */\nexport function rectUnion( rect1, rect2 ) {\n\tconst left = Math.min( rect1.left, rect2.left );\n\tconst right = Math.max( rect1.right, rect2.right );\n\tconst bottom = Math.max( rect1.bottom, rect2.bottom );\n\tconst top = Math.min( rect1.top, rect2.top );\n\n\treturn new window.DOMRectReadOnly( left, top, right - left, bottom - top );\n}\n\n/**\n * Returns whether an element is visible.\n *\n * @param {Element} element Element.\n * @return {boolean} Whether the element is visible.\n */\nexport function isElementVisible( element ) {\n\tconst viewport = element.ownerDocument.defaultView;\n\tif ( ! viewport ) {\n\t\treturn false;\n\t}\n\n\t// Check for <VisuallyHidden> components.\n\tif ( element.hasAttribute( 'data-visually-hidden' ) ) {\n\t\treturn false;\n\t}\n\n\tconst bounds = element.getBoundingClientRect();\n\tif ( bounds.width === 0 || bounds.height === 0 ) {\n\t\treturn false;\n\t}\n\n\t// Older browsers, e.g. Safari < 17.4 may not support the `checkVisibility` method.\n\tif ( element.checkVisibility ) {\n\t\treturn element.checkVisibility?.( {\n\t\t\topacityProperty: true,\n\t\t\tcontentVisibilityAuto: true,\n\t\t\tvisibilityProperty: true,\n\t\t} );\n\t}\n\n\tconst style = viewport.getComputedStyle( element );\n\n\tif (\n\t\tstyle.display === 'none' ||\n\t\tstyle.visibility === 'hidden' ||\n\t\tstyle.opacity === '0'\n\t) {\n\t\treturn false;\n\t}\n\n\treturn true;\n}\n\n/**\n * Checks if the element is scrollable.\n *\n * @param {Element} element Element.\n * @return {boolean} True if the element is scrollable.\n */\nfunction isScrollable( element ) {\n\tconst style = window.getComputedStyle( element );\n\treturn (\n\t\tstyle.overflowX === 'auto' ||\n\t\tstyle.overflowX === 'scroll' ||\n\t\tstyle.overflowY === 'auto' ||\n\t\tstyle.overflowY === 'scroll'\n\t);\n}\n\nexport const WITH_OVERFLOW_ELEMENT_BLOCKS = [ 'core/navigation' ];\n/**\n * Returns the bounding rectangle of an element, with special handling for blocks\n * that have visible overflowing children (defined in WITH_OVERFLOW_ELEMENT_BLOCKS).\n *\n * For blocks like Navigation that can have overflowing elements (e.g. submenus),\n * this function calculates the combined bounds of both the parent and its visible\n * children. The returned rect may extend beyond the viewport.\n * The returned rect represents the full extent of the element and its visible\n * children, which may extend beyond the viewport.\n *\n * @param {Element} element Element.\n * @return {DOMRect} Bounding client rect of the element and its visible children.\n */\nexport function getElementBounds( element ) {\n\tconst viewport = element.ownerDocument.defaultView;\n\n\tif ( ! viewport ) {\n\t\treturn new window.DOMRectReadOnly();\n\t}\n\n\tlet bounds = element.getBoundingClientRect();\n\tconst dataType = element.getAttribute( 'data-type' );\n\n\t/*\n\t * For blocks with overflowing elements (like Navigation), include the bounds\n\t * of visible children that extend beyond the parent container.\n\t */\n\tif ( dataType && WITH_OVERFLOW_ELEMENT_BLOCKS.includes( dataType ) ) {\n\t\tconst stack = [ element ];\n\t\tlet currentElement;\n\n\t\twhile ( ( currentElement = stack.pop() ) ) {\n\t\t\t// Children won’t affect bounds unless the element is not scrollable.\n\t\t\tif ( ! isScrollable( currentElement ) ) {\n\t\t\t\tfor ( const child of currentElement.children ) {\n\t\t\t\t\tif ( isElementVisible( child ) ) {\n\t\t\t\t\t\tconst childBounds = child.getBoundingClientRect();\n\t\t\t\t\t\tbounds = rectUnion( bounds, childBounds );\n\t\t\t\t\t\tstack.push( child );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Take into account the outer horizontal limits of the container in which\n\t * an element is supposed to be \"visible\". For example, if an element is\n\t * positioned -10px to the left of the window x value (0), this function\n\t * discounts the negative overhang because it's not visible and therefore\n\t * not to be counted in the visibility calculations. Top and bottom values\n\t * are not accounted for to accommodate vertical scroll.\n\t */\n\tconst left = Math.max( bounds.left, 0 );\n\tconst right = Math.min( bounds.right, viewport.innerWidth );\n\tbounds = new window.DOMRectReadOnly(\n\t\tleft,\n\t\tbounds.top,\n\t\tright - left,\n\t\tbounds.height\n\t);\n\n\treturn bounds;\n}\n"],
|
|
5
5
|
"mappings": ";AAAA,IAAM,iBAAiB;AACvB,IAAM,oBAAoB;AAC1B,IAAM,uBAAuB;AAUtB,SAAS,cAAe,GAAG,GAAI;AACrC,SAAO,EAAE,QAAS,cAAe,MAAM,EAAE,QAAS,cAAe;AAClE;AAYO,SAAS,kBAAmB,cAAc,SAAU;AAC1D,QAAM,cAAc,QAAQ;AAAA,IAC3B,CAAE,gBAAgB,mBAAmB,oBAAqB,EAAE,KAAM,GAAI;AAAA,EACvE;AACA,SAAO,gBAAgB;AACxB;AAUO,SAAS,iBAAkB,MAAO;AACxC,SAAQ,QAAQ,KAAK,aAAa,KAAK,cAAe;AACrD,WAAO,KAAK;AAAA,EACb;AAEA,MAAK,CAAE,MAAO;AACb;AAAA,EACD;AAEA,QAAM;AAAA;AAAA,IAAuC;AAAA;AAC7C,QAAM,YAAY,YAAY,QAAS,cAAe;AAEtD,MAAK,CAAE,WAAY;AAClB;AAAA,EACD;AAEA,SAAO,UAAU,GAAG,MAAO,SAAS,MAAO;AAC5C;AASO,SAAS,UAAW,OAAO,OAAQ;AACzC,QAAM,OAAO,KAAK,IAAK,MAAM,MAAM,MAAM,IAAK;AAC9C,QAAM,QAAQ,KAAK,IAAK,MAAM,OAAO,MAAM,KAAM;AACjD,QAAM,SAAS,KAAK,IAAK,MAAM,QAAQ,MAAM,MAAO;AACpD,QAAM,MAAM,KAAK,IAAK,MAAM,KAAK,MAAM,GAAI;AAE3C,SAAO,IAAI,OAAO,gBAAiB,MAAM,KAAK,QAAQ,MAAM,SAAS,GAAI;AAC1E;AAQO,SAAS,iBAAkB,SAAU;AAC3C,QAAM,WAAW,QAAQ,cAAc;AACvC,MAAK,CAAE,UAAW;AACjB,WAAO;AAAA,EACR;AAGA,MAAK,QAAQ,aAAc,sBAAuB,GAAI;AACrD,WAAO;AAAA,EACR;AAEA,QAAM,SAAS,QAAQ,sBAAsB;AAC7C,MAAK,OAAO,UAAU,KAAK,OAAO,WAAW,GAAI;AAChD,WAAO;AAAA,EACR;AAGA,MAAK,QAAQ,iBAAkB;AAC9B,WAAO,QAAQ,kBAAmB;AAAA,MACjC,iBAAiB;AAAA,MACjB,uBAAuB;AAAA,MACvB,oBAAoB;AAAA,IACrB,CAAE;AAAA,EACH;AAEA,QAAM,QAAQ,SAAS,iBAAkB,OAAQ;AAEjD,MACC,MAAM,YAAY,UAClB,MAAM,eAAe,YACrB,MAAM,YAAY,KACjB;AACD,WAAO;AAAA,EACR;AAEA,SAAO;AACR;AAQA,SAAS,aAAc,SAAU;AAChC,QAAM,QAAQ,OAAO,iBAAkB,OAAQ;AAC/C,SACC,MAAM,cAAc,UACpB,MAAM,cAAc,YACpB,MAAM,cAAc,UACpB,MAAM,cAAc;AAEtB;AAEO,IAAM,+BAA+B,CAAE,iBAAkB;AAczD,SAAS,iBAAkB,SAAU;AAC3C,QAAM,WAAW,QAAQ,cAAc;AAEvC,MAAK,CAAE,UAAW;AACjB,WAAO,IAAI,OAAO,gBAAgB;AAAA,EACnC;AAEA,MAAI,SAAS,QAAQ,sBAAsB;AAC3C,QAAM,WAAW,QAAQ,aAAc,WAAY;AAMnD,MAAK,YAAY,6BAA6B,SAAU,QAAS,GAAI;AACpE,UAAM,QAAQ,CAAE,OAAQ;AACxB,QAAI;AAEJ,WAAU,iBAAiB,MAAM,IAAI,GAAM;AAE1C,UAAK,CAAE,aAAc,cAAe,GAAI;AACvC,mBAAY,SAAS,eAAe,UAAW;AAC9C,cAAK,iBAAkB,KAAM,GAAI;AAChC,kBAAM,cAAc,MAAM,sBAAsB;AAChD,qBAAS,UAAW,QAAQ,WAAY;AACxC,kBAAM,KAAM,KAAM;AAAA,UACnB;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,EACD;AAUA,QAAM,OAAO,KAAK,IAAK,OAAO,MAAM,CAAE;AACtC,QAAM,QAAQ,KAAK,IAAK,OAAO,OAAO,SAAS,UAAW;AAC1D,WAAS,IAAI,OAAO;AAAA,IACnB;AAAA,IACA,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAO;AAAA,EACR;AAEA,SAAO;AACR;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// packages/block-editor/src/utils/selection.js
|
|
2
2
|
import { RichTextData } from "@wordpress/rich-text";
|
|
3
|
-
var START_OF_SELECTED_AREA = "
|
|
3
|
+
var START_OF_SELECTED_AREA = "";
|
|
4
4
|
function retrieveSelectedAttribute(blockAttributes) {
|
|
5
5
|
if (!blockAttributes) {
|
|
6
6
|
return;
|
|
@@ -153,6 +153,9 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
153
153
|
.block-editor-block-list__layout {
|
|
154
154
|
position: relative;
|
|
155
155
|
}
|
|
156
|
+
.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::-moz-selection, .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::-moz-selection {
|
|
157
|
+
background: transparent;
|
|
158
|
+
}
|
|
156
159
|
.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection, .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection {
|
|
157
160
|
background: transparent;
|
|
158
161
|
}
|
|
@@ -222,6 +225,7 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
222
225
|
}
|
|
223
226
|
.block-editor-block-list__layout [class^=components-] {
|
|
224
227
|
-webkit-user-select: text;
|
|
228
|
+
-moz-user-select: text;
|
|
225
229
|
user-select: text;
|
|
226
230
|
}
|
|
227
231
|
|
|
@@ -254,6 +258,7 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
254
258
|
.block-editor-block-list__layout .block-editor-block-list__block.has-warning > * {
|
|
255
259
|
pointer-events: none;
|
|
256
260
|
-webkit-user-select: none;
|
|
261
|
+
-moz-user-select: none;
|
|
257
262
|
user-select: none;
|
|
258
263
|
}
|
|
259
264
|
.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning {
|
|
@@ -521,6 +526,9 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
521
526
|
.block-editor-block-list__layout .is-dragging iframe {
|
|
522
527
|
pointer-events: none;
|
|
523
528
|
}
|
|
529
|
+
.block-editor-block-list__layout .is-dragging::-moz-selection {
|
|
530
|
+
background: transparent !important;
|
|
531
|
+
}
|
|
524
532
|
.block-editor-block-list__layout .is-dragging::selection {
|
|
525
533
|
background: transparent !important;
|
|
526
534
|
}
|
|
@@ -900,6 +908,10 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|
|
900
908
|
padding: 0 2px;
|
|
901
909
|
}
|
|
902
910
|
|
|
911
|
+
.rich-text [contenteditable=false]::-moz-selection {
|
|
912
|
+
background-color: transparent;
|
|
913
|
+
}
|
|
914
|
+
|
|
903
915
|
.rich-text [contenteditable=false]::selection {
|
|
904
916
|
background-color: transparent;
|
|
905
917
|
}
|
package/build-style/content.css
CHANGED
|
@@ -153,6 +153,9 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
153
153
|
.block-editor-block-list__layout {
|
|
154
154
|
position: relative;
|
|
155
155
|
}
|
|
156
|
+
.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::-moz-selection, .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::-moz-selection {
|
|
157
|
+
background: transparent;
|
|
158
|
+
}
|
|
156
159
|
.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection, .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection {
|
|
157
160
|
background: transparent;
|
|
158
161
|
}
|
|
@@ -222,6 +225,7 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
222
225
|
}
|
|
223
226
|
.block-editor-block-list__layout [class^=components-] {
|
|
224
227
|
-webkit-user-select: text;
|
|
228
|
+
-moz-user-select: text;
|
|
225
229
|
user-select: text;
|
|
226
230
|
}
|
|
227
231
|
|
|
@@ -254,6 +258,7 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
254
258
|
.block-editor-block-list__layout .block-editor-block-list__block.has-warning > * {
|
|
255
259
|
pointer-events: none;
|
|
256
260
|
-webkit-user-select: none;
|
|
261
|
+
-moz-user-select: none;
|
|
257
262
|
user-select: none;
|
|
258
263
|
}
|
|
259
264
|
.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning {
|
|
@@ -522,6 +527,9 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
522
527
|
.block-editor-block-list__layout .is-dragging iframe {
|
|
523
528
|
pointer-events: none;
|
|
524
529
|
}
|
|
530
|
+
.block-editor-block-list__layout .is-dragging::-moz-selection {
|
|
531
|
+
background: transparent !important;
|
|
532
|
+
}
|
|
525
533
|
.block-editor-block-list__layout .is-dragging::selection {
|
|
526
534
|
background: transparent !important;
|
|
527
535
|
}
|
|
@@ -901,6 +909,10 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|
|
901
909
|
padding: 0 2px;
|
|
902
910
|
}
|
|
903
911
|
|
|
912
|
+
.rich-text [contenteditable=false]::-moz-selection {
|
|
913
|
+
background-color: transparent;
|
|
914
|
+
}
|
|
915
|
+
|
|
904
916
|
.rich-text [contenteditable=false]::selection {
|
|
905
917
|
background-color: transparent;
|
|
906
918
|
}
|
|
@@ -777,7 +777,9 @@ iframe[name=editor-canvas] {
|
|
|
777
777
|
padding: 0 13px;
|
|
778
778
|
position: relative;
|
|
779
779
|
-webkit-user-select: none;
|
|
780
|
+
-moz-user-select: none;
|
|
780
781
|
user-select: none;
|
|
782
|
+
width: -moz-max-content;
|
|
781
783
|
width: max-content;
|
|
782
784
|
}
|
|
783
785
|
.block-editor-block-draggable-chip svg {
|
|
@@ -1079,6 +1081,7 @@ iframe[name=editor-canvas] {
|
|
|
1079
1081
|
.components-popover.block-editor-block-popover .components-popover__content {
|
|
1080
1082
|
margin: 0 !important;
|
|
1081
1083
|
min-width: auto;
|
|
1084
|
+
width: -moz-max-content;
|
|
1082
1085
|
width: max-content;
|
|
1083
1086
|
overflow-y: visible;
|
|
1084
1087
|
}
|
|
@@ -1195,7 +1198,8 @@ iframe[name=editor-canvas] {
|
|
|
1195
1198
|
word-break: break-all;
|
|
1196
1199
|
white-space: normal;
|
|
1197
1200
|
text-align: start;
|
|
1198
|
-
text-align-last: center;
|
|
1201
|
+
-moz-text-align-last: center;
|
|
1202
|
+
text-align-last: center;
|
|
1199
1203
|
}
|
|
1200
1204
|
|
|
1201
1205
|
.components-popover.block-editor-block-switcher__popover .components-popover__content {
|
|
@@ -1301,17 +1305,20 @@ iframe[name=editor-canvas] {
|
|
|
1301
1305
|
justify-content: center;
|
|
1302
1306
|
}
|
|
1303
1307
|
.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container {
|
|
1304
|
-
column-gap: 24px;
|
|
1308
|
+
-moz-column-gap: 24px;
|
|
1309
|
+
column-gap: 24px;
|
|
1305
1310
|
display: block;
|
|
1306
1311
|
width: 100%;
|
|
1307
1312
|
padding: 32px;
|
|
1308
1313
|
padding-bottom: 0;
|
|
1309
1314
|
padding-top: 0;
|
|
1310
|
-
column-count: 2;
|
|
1315
|
+
-moz-column-count: 2;
|
|
1316
|
+
column-count: 2;
|
|
1311
1317
|
}
|
|
1312
1318
|
@media (min-width: 1440px) {
|
|
1313
1319
|
.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container {
|
|
1314
|
-
column-count: 3;
|
|
1320
|
+
-moz-column-count: 3;
|
|
1321
|
+
column-count: 3;
|
|
1315
1322
|
}
|
|
1316
1323
|
}
|
|
1317
1324
|
.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container,
|
|
@@ -1333,7 +1340,8 @@ iframe[name=editor-canvas] {
|
|
|
1333
1340
|
color: var(--wp-admin-theme-color);
|
|
1334
1341
|
}
|
|
1335
1342
|
.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item {
|
|
1336
|
-
break-inside: avoid
|
|
1343
|
+
-moz-column-break-inside: avoid;
|
|
1344
|
+
break-inside: avoid-column;
|
|
1337
1345
|
margin-bottom: 24px;
|
|
1338
1346
|
}
|
|
1339
1347
|
.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-pattern-setup-list__item-title {
|
|
@@ -1698,7 +1706,9 @@ iframe[name=editor-canvas] {
|
|
|
1698
1706
|
}
|
|
1699
1707
|
|
|
1700
1708
|
.block-editor-global-styles__shadow-indicator {
|
|
1701
|
-
appearance: none;
|
|
1709
|
+
-webkit-appearance: none;
|
|
1710
|
+
-moz-appearance: none;
|
|
1711
|
+
appearance: none;
|
|
1702
1712
|
background: none;
|
|
1703
1713
|
color: #2f2f2f;
|
|
1704
1714
|
border: #e0e0e0 1px solid;
|
|
@@ -2467,7 +2477,8 @@ iframe[name=editor-canvas] {
|
|
|
2467
2477
|
.link-preview-button__image {
|
|
2468
2478
|
width: 100%;
|
|
2469
2479
|
height: 100%;
|
|
2470
|
-
object-fit: cover;
|
|
2480
|
+
-o-object-fit: cover;
|
|
2481
|
+
object-fit: cover;
|
|
2471
2482
|
border-radius: 2px;
|
|
2472
2483
|
}
|
|
2473
2484
|
|
|
@@ -3496,7 +3507,8 @@ iframe[name=editor-canvas] {
|
|
|
3496
3507
|
.block-editor-content-only-controls__media-thumbnail img {
|
|
3497
3508
|
width: 100% !important;
|
|
3498
3509
|
height: 100% !important;
|
|
3499
|
-
object-fit: cover;
|
|
3510
|
+
-o-object-fit: cover;
|
|
3511
|
+
object-fit: cover;
|
|
3500
3512
|
}
|
|
3501
3513
|
|
|
3502
3514
|
.block-editor-content-only-controls {
|
|
@@ -3557,12 +3569,18 @@ iframe[name=editor-canvas] {
|
|
|
3557
3569
|
box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color, #3858e9);
|
|
3558
3570
|
outline: 2px solid transparent;
|
|
3559
3571
|
}
|
|
3572
|
+
.block-editor-content-only-controls__rich-text::-moz-placeholder {
|
|
3573
|
+
color: rgba(30, 30, 30, 0.62);
|
|
3574
|
+
}
|
|
3560
3575
|
.block-editor-content-only-controls__rich-text::placeholder {
|
|
3561
3576
|
color: rgba(30, 30, 30, 0.62);
|
|
3562
3577
|
}
|
|
3563
3578
|
.block-editor-content-only-controls__rich-text {
|
|
3564
3579
|
border-color: #949494;
|
|
3565
3580
|
}
|
|
3581
|
+
.block-editor-content-only-controls__rich-text::-moz-placeholder {
|
|
3582
|
+
color: color-mix(in srgb, #1e1e1e, transparent 38%);
|
|
3583
|
+
}
|
|
3566
3584
|
.block-editor-content-only-controls__rich-text::placeholder {
|
|
3567
3585
|
color: color-mix(in srgb, #1e1e1e, transparent 38%);
|
|
3568
3586
|
}
|
package/build-style/style.css
CHANGED
|
@@ -777,7 +777,9 @@ iframe[name=editor-canvas] {
|
|
|
777
777
|
padding: 0 13px;
|
|
778
778
|
position: relative;
|
|
779
779
|
-webkit-user-select: none;
|
|
780
|
+
-moz-user-select: none;
|
|
780
781
|
user-select: none;
|
|
782
|
+
width: -moz-max-content;
|
|
781
783
|
width: max-content;
|
|
782
784
|
}
|
|
783
785
|
.block-editor-block-draggable-chip svg {
|
|
@@ -1079,6 +1081,7 @@ iframe[name=editor-canvas] {
|
|
|
1079
1081
|
.components-popover.block-editor-block-popover .components-popover__content {
|
|
1080
1082
|
margin: 0 !important;
|
|
1081
1083
|
min-width: auto;
|
|
1084
|
+
width: -moz-max-content;
|
|
1082
1085
|
width: max-content;
|
|
1083
1086
|
overflow-y: visible;
|
|
1084
1087
|
}
|
|
@@ -1195,7 +1198,8 @@ iframe[name=editor-canvas] {
|
|
|
1195
1198
|
word-break: break-all;
|
|
1196
1199
|
white-space: normal;
|
|
1197
1200
|
text-align: start;
|
|
1198
|
-
text-align-last: center;
|
|
1201
|
+
-moz-text-align-last: center;
|
|
1202
|
+
text-align-last: center;
|
|
1199
1203
|
}
|
|
1200
1204
|
|
|
1201
1205
|
.components-popover.block-editor-block-switcher__popover .components-popover__content {
|
|
@@ -1301,17 +1305,20 @@ iframe[name=editor-canvas] {
|
|
|
1301
1305
|
justify-content: center;
|
|
1302
1306
|
}
|
|
1303
1307
|
.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container {
|
|
1304
|
-
column-gap: 24px;
|
|
1308
|
+
-moz-column-gap: 24px;
|
|
1309
|
+
column-gap: 24px;
|
|
1305
1310
|
display: block;
|
|
1306
1311
|
width: 100%;
|
|
1307
1312
|
padding: 32px;
|
|
1308
1313
|
padding-bottom: 0;
|
|
1309
1314
|
padding-top: 0;
|
|
1310
|
-
column-count: 2;
|
|
1315
|
+
-moz-column-count: 2;
|
|
1316
|
+
column-count: 2;
|
|
1311
1317
|
}
|
|
1312
1318
|
@media (min-width: 1440px) {
|
|
1313
1319
|
.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container {
|
|
1314
|
-
column-count: 3;
|
|
1320
|
+
-moz-column-count: 3;
|
|
1321
|
+
column-count: 3;
|
|
1315
1322
|
}
|
|
1316
1323
|
}
|
|
1317
1324
|
.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container,
|
|
@@ -1333,7 +1340,8 @@ iframe[name=editor-canvas] {
|
|
|
1333
1340
|
color: var(--wp-admin-theme-color);
|
|
1334
1341
|
}
|
|
1335
1342
|
.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item {
|
|
1336
|
-
break-inside: avoid
|
|
1343
|
+
-moz-column-break-inside: avoid;
|
|
1344
|
+
break-inside: avoid-column;
|
|
1337
1345
|
margin-bottom: 24px;
|
|
1338
1346
|
}
|
|
1339
1347
|
.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-pattern-setup-list__item-title {
|
|
@@ -1698,7 +1706,9 @@ iframe[name=editor-canvas] {
|
|
|
1698
1706
|
}
|
|
1699
1707
|
|
|
1700
1708
|
.block-editor-global-styles__shadow-indicator {
|
|
1701
|
-
appearance: none;
|
|
1709
|
+
-webkit-appearance: none;
|
|
1710
|
+
-moz-appearance: none;
|
|
1711
|
+
appearance: none;
|
|
1702
1712
|
background: none;
|
|
1703
1713
|
color: #2f2f2f;
|
|
1704
1714
|
border: #e0e0e0 1px solid;
|
|
@@ -2468,7 +2478,8 @@ iframe[name=editor-canvas] {
|
|
|
2468
2478
|
.link-preview-button__image {
|
|
2469
2479
|
width: 100%;
|
|
2470
2480
|
height: 100%;
|
|
2471
|
-
object-fit: cover;
|
|
2481
|
+
-o-object-fit: cover;
|
|
2482
|
+
object-fit: cover;
|
|
2472
2483
|
border-radius: 2px;
|
|
2473
2484
|
}
|
|
2474
2485
|
|
|
@@ -3498,7 +3509,8 @@ iframe[name=editor-canvas] {
|
|
|
3498
3509
|
.block-editor-content-only-controls__media-thumbnail img {
|
|
3499
3510
|
width: 100% !important;
|
|
3500
3511
|
height: 100% !important;
|
|
3501
|
-
object-fit: cover;
|
|
3512
|
+
-o-object-fit: cover;
|
|
3513
|
+
object-fit: cover;
|
|
3502
3514
|
}
|
|
3503
3515
|
|
|
3504
3516
|
.block-editor-content-only-controls {
|
|
@@ -3559,12 +3571,18 @@ iframe[name=editor-canvas] {
|
|
|
3559
3571
|
box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color, #3858e9);
|
|
3560
3572
|
outline: 2px solid transparent;
|
|
3561
3573
|
}
|
|
3574
|
+
.block-editor-content-only-controls__rich-text::-moz-placeholder {
|
|
3575
|
+
color: rgba(30, 30, 30, 0.62);
|
|
3576
|
+
}
|
|
3562
3577
|
.block-editor-content-only-controls__rich-text::placeholder {
|
|
3563
3578
|
color: rgba(30, 30, 30, 0.62);
|
|
3564
3579
|
}
|
|
3565
3580
|
.block-editor-content-only-controls__rich-text {
|
|
3566
3581
|
border-color: #949494;
|
|
3567
3582
|
}
|
|
3583
|
+
.block-editor-content-only-controls__rich-text::-moz-placeholder {
|
|
3584
|
+
color: color-mix(in srgb, #1e1e1e, transparent 38%);
|
|
3585
|
+
}
|
|
3568
3586
|
.block-editor-content-only-controls__rich-text::placeholder {
|
|
3569
3587
|
color: color-mix(in srgb, #1e1e1e, transparent 38%);
|
|
3570
3588
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-editor",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.22.1-next.v.202606191442.0+17fe7db8a",
|
|
4
4
|
"description": "Generic block editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
"./package.json": "./package.json",
|
|
42
42
|
"./build-style/": "./build-style/"
|
|
43
43
|
},
|
|
44
|
-
"react-native": "src/index",
|
|
45
44
|
"wpScript": true,
|
|
46
45
|
"wpScriptModuleExports": {
|
|
47
46
|
"./utils/fit-text-frontend": "./build-module/utils/fit-text-frontend.mjs"
|
|
@@ -61,68 +60,77 @@
|
|
|
61
60
|
],
|
|
62
61
|
"dependencies": {
|
|
63
62
|
"@react-spring/web": "^9.4.5",
|
|
64
|
-
"@wordpress/a11y": "^4.48.0",
|
|
65
|
-
"@wordpress/base-styles": "^
|
|
66
|
-
"@wordpress/blob": "^4.48.0",
|
|
67
|
-
"@wordpress/block-serialization-default-parser": "^5.48.0",
|
|
68
|
-
"@wordpress/blocks": "^15.21.0",
|
|
69
|
-
"@wordpress/commands": "^1.48.0",
|
|
70
|
-
"@wordpress/components": "^35.
|
|
71
|
-
"@wordpress/compose": "^8.1.0",
|
|
72
|
-
"@wordpress/data": "^10.48.0",
|
|
73
|
-
"@wordpress/dataviews": "^
|
|
74
|
-
"@wordpress/date": "^5.48.0",
|
|
75
|
-
"@wordpress/deprecated": "^4.48.0",
|
|
76
|
-
"@wordpress/dom": "^4.48.0",
|
|
77
|
-
"@wordpress/element": "^8.0.0",
|
|
78
|
-
"@wordpress/escape-html": "^3.48.0",
|
|
79
|
-
"@wordpress/global-styles-engine": "^1.15.0",
|
|
80
|
-
"@wordpress/hooks": "^4.48.0",
|
|
81
|
-
"@wordpress/html-entities": "^4.48.0",
|
|
82
|
-
"@wordpress/i18n": "^6.21.0",
|
|
83
|
-
"@wordpress/icons": "^
|
|
84
|
-
"@wordpress/image-cropper": "^1.12.0",
|
|
85
|
-
"@wordpress/interactivity": "^6.48.0",
|
|
86
|
-
"@wordpress/is-shallow-equal": "^5.48.0",
|
|
87
|
-
"@wordpress/keyboard-shortcuts": "^5.48.0",
|
|
88
|
-
"@wordpress/keycodes": "^4.48.0",
|
|
89
|
-
"@wordpress/notices": "^5.48.0",
|
|
90
|
-
"@wordpress/preferences": "^4.48.0",
|
|
91
|
-
"@wordpress/priority-queue": "^3.48.0",
|
|
92
|
-
"@wordpress/private-apis": "^1.48.0",
|
|
93
|
-
"@wordpress/rich-text": "^7.48.0",
|
|
94
|
-
"@wordpress/style-engine": "^2.
|
|
95
|
-
"@wordpress/token-list": "^3.48.0",
|
|
96
|
-
"@wordpress/ui": "^0.
|
|
97
|
-
"@wordpress/upload-media": "^0.
|
|
98
|
-
"@wordpress/url": "^4.48.0",
|
|
99
|
-
"@wordpress/warning": "^3.48.0",
|
|
100
|
-
"@wordpress/wordcount": "^4.48.0",
|
|
63
|
+
"@wordpress/a11y": "^4.48.2-next.v.202606191442.0+17fe7db8a",
|
|
64
|
+
"@wordpress/base-styles": "^10.0.2-next.v.202606191442.0+17fe7db8a",
|
|
65
|
+
"@wordpress/blob": "^4.48.2-next.v.202606191442.0+17fe7db8a",
|
|
66
|
+
"@wordpress/block-serialization-default-parser": "^5.48.2-next.v.202606191442.0+17fe7db8a",
|
|
67
|
+
"@wordpress/blocks": "^15.21.3-next.v.202606191442.0+17fe7db8a",
|
|
68
|
+
"@wordpress/commands": "^1.48.2-next.v.202606191442.0+17fe7db8a",
|
|
69
|
+
"@wordpress/components": "^35.1.1-next.v.202606191442.0+17fe7db8a",
|
|
70
|
+
"@wordpress/compose": "^8.1.2-next.v.202606191442.0+17fe7db8a",
|
|
71
|
+
"@wordpress/data": "^10.48.2-next.v.202606191442.0+17fe7db8a",
|
|
72
|
+
"@wordpress/dataviews": "^17.0.1-next.v.202606191442.0+17fe7db8a",
|
|
73
|
+
"@wordpress/date": "^5.48.2-next.v.202606191442.0+17fe7db8a",
|
|
74
|
+
"@wordpress/deprecated": "^4.48.2-next.v.202606191442.0+17fe7db8a",
|
|
75
|
+
"@wordpress/dom": "^4.48.2-next.v.202606191442.0+17fe7db8a",
|
|
76
|
+
"@wordpress/element": "^8.0.2-next.v.202606191442.0+17fe7db8a",
|
|
77
|
+
"@wordpress/escape-html": "^3.48.2-next.v.202606191442.0+17fe7db8a",
|
|
78
|
+
"@wordpress/global-styles-engine": "^1.15.2-next.v.202606191442.0+17fe7db8a",
|
|
79
|
+
"@wordpress/hooks": "^4.48.2-next.v.202606191442.0+17fe7db8a",
|
|
80
|
+
"@wordpress/html-entities": "^4.48.2-next.v.202606191442.0+17fe7db8a",
|
|
81
|
+
"@wordpress/i18n": "^6.21.2-next.v.202606191442.0+17fe7db8a",
|
|
82
|
+
"@wordpress/icons": "^14.0.2-next.v.202606191442.0+17fe7db8a",
|
|
83
|
+
"@wordpress/image-cropper": "^1.12.2-next.v.202606191442.0+17fe7db8a",
|
|
84
|
+
"@wordpress/interactivity": "^6.48.2-next.v.202606191442.0+17fe7db8a",
|
|
85
|
+
"@wordpress/is-shallow-equal": "^5.48.2-next.v.202606191442.0+17fe7db8a",
|
|
86
|
+
"@wordpress/keyboard-shortcuts": "^5.48.2-next.v.202606191442.0+17fe7db8a",
|
|
87
|
+
"@wordpress/keycodes": "^4.48.2-next.v.202606191442.0+17fe7db8a",
|
|
88
|
+
"@wordpress/notices": "^5.48.2-next.v.202606191442.0+17fe7db8a",
|
|
89
|
+
"@wordpress/preferences": "^4.48.2-next.v.202606191442.0+17fe7db8a",
|
|
90
|
+
"@wordpress/priority-queue": "^3.48.2-next.v.202606191442.0+17fe7db8a",
|
|
91
|
+
"@wordpress/private-apis": "^1.48.2-next.v.202606191442.0+17fe7db8a",
|
|
92
|
+
"@wordpress/rich-text": "^7.48.2-next.v.202606191442.0+17fe7db8a",
|
|
93
|
+
"@wordpress/style-engine": "^2.49.1-next.v.202606191442.0+17fe7db8a",
|
|
94
|
+
"@wordpress/token-list": "^3.48.2-next.v.202606191442.0+17fe7db8a",
|
|
95
|
+
"@wordpress/ui": "^0.16.1-next.v.202606191442.0+17fe7db8a",
|
|
96
|
+
"@wordpress/upload-media": "^0.34.1-next.v.202606191442.0+17fe7db8a",
|
|
97
|
+
"@wordpress/url": "^4.48.2-next.v.202606191442.0+17fe7db8a",
|
|
98
|
+
"@wordpress/warning": "^3.48.2-next.v.202606191442.0+17fe7db8a",
|
|
99
|
+
"@wordpress/wordcount": "^4.48.2-next.v.202606191442.0+17fe7db8a",
|
|
101
100
|
"change-case": "^4.1.2",
|
|
102
101
|
"clsx": "^2.1.1",
|
|
103
|
-
"colord": "^2.
|
|
104
|
-
"deepmerge": "^4.3.
|
|
105
|
-
"diff": "^
|
|
102
|
+
"colord": "^2.9.3",
|
|
103
|
+
"deepmerge": "^4.3.1",
|
|
104
|
+
"diff": "^8.0.3",
|
|
106
105
|
"fast-deep-equal": "^3.1.3",
|
|
107
106
|
"memize": "^2.1.0",
|
|
108
107
|
"parsel-js": "^1.1.2",
|
|
109
|
-
"postcss": "^8.4.
|
|
108
|
+
"postcss": "^8.4.38",
|
|
110
109
|
"postcss-prefix-selector": "^1.16.0",
|
|
111
110
|
"postcss-urlrebase": "^1.4.0",
|
|
112
111
|
"react-autosize-textarea": "^7.1.0",
|
|
113
|
-
"react-easy-crop": "^5.
|
|
112
|
+
"react-easy-crop": "^5.4.2",
|
|
114
113
|
"remove-accents": "^0.5.0"
|
|
115
114
|
},
|
|
116
115
|
"devDependencies": {
|
|
117
116
|
"@ariakit/test": "^0.4.13",
|
|
118
|
-
"
|
|
117
|
+
"@testing-library/dom": "^10.4.1",
|
|
118
|
+
"@testing-library/react": "^16.3.2",
|
|
119
|
+
"@testing-library/user-event": "^14.6.1",
|
|
120
|
+
"deep-freeze": "^0.0.1"
|
|
119
121
|
},
|
|
120
122
|
"peerDependencies": {
|
|
123
|
+
"@types/react": "^18.3.27",
|
|
121
124
|
"react": "^18.0.0",
|
|
122
125
|
"react-dom": "^18.0.0"
|
|
123
126
|
},
|
|
127
|
+
"peerDependenciesMeta": {
|
|
128
|
+
"@types/react": {
|
|
129
|
+
"optional": true
|
|
130
|
+
}
|
|
131
|
+
},
|
|
124
132
|
"publishConfig": {
|
|
125
133
|
"access": "public"
|
|
126
134
|
},
|
|
127
|
-
"gitHead": "
|
|
135
|
+
"gitHead": "1b6a19222df5a88f161880b5789efb3171d8f425"
|
|
128
136
|
}
|
|
@@ -8,9 +8,9 @@ The block breadcrumb trail displays the hierarchy of the current block selection
|
|
|
8
8
|
|
|
9
9
|
## Development guidelines
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
### Props
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
#### rootLabelText
|
|
14
14
|
|
|
15
15
|
Label text for the root element (the first `<li />`) of the breadcrumb trail.
|
|
16
16
|
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
arrowRight,
|
|
22
22
|
arrowLeft,
|
|
23
23
|
} from '@wordpress/icons';
|
|
24
|
-
import { getBlockType
|
|
24
|
+
import { getBlockType } from '@wordpress/blocks';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Internal dependencies
|
|
@@ -110,20 +110,14 @@ function BlockCard( {
|
|
|
110
110
|
if ( parentClientId || isChild || ! allowParentNavigation ) {
|
|
111
111
|
return {};
|
|
112
112
|
}
|
|
113
|
-
const { getBlockParents, getBlockName } =
|
|
114
|
-
select( blockEditorStore );
|
|
113
|
+
const { getBlockParents, getBlockName, shouldRenderBlockListView } =
|
|
114
|
+
unlock( select( blockEditorStore ) );
|
|
115
115
|
|
|
116
|
-
// Find the top-most parent block that
|
|
117
|
-
// 1. A navigation block (special case for ad-hoc list view support)
|
|
118
|
-
// 2. Any block with listView support
|
|
116
|
+
// Find the top-most parent block that participates in List View.
|
|
119
117
|
const parents = getBlockParents( clientId, false );
|
|
120
|
-
const foundParentId = parents.find( ( parentId ) =>
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
parentName === 'core/navigation' ||
|
|
124
|
-
hasBlockSupport( parentName, 'listView' )
|
|
125
|
-
);
|
|
126
|
-
} );
|
|
118
|
+
const foundParentId = parents.find( ( parentId ) =>
|
|
119
|
+
shouldRenderBlockListView( parentId )
|
|
120
|
+
);
|
|
127
121
|
|
|
128
122
|
return {
|
|
129
123
|
parentBlockClientId: foundParentId,
|
|
@@ -5,37 +5,37 @@ of converting the block.
|
|
|
5
5
|
|
|
6
6
|
A button is present on both blocks to then select one or the other.
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
## Props
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
### block
|
|
11
11
|
|
|
12
12
|
The original object to compare against
|
|
13
13
|
|
|
14
14
|
- Type: `Object`
|
|
15
15
|
- Required: Yes
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
### convertor
|
|
18
18
|
|
|
19
19
|
A function that returns a new, converted, block when supplied an existing block. The conversion may fix or alter the block in a way that helps with an invalid block.
|
|
20
20
|
|
|
21
21
|
- Type: `func`
|
|
22
22
|
- Required: Yes
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
### convertButtonText
|
|
25
25
|
|
|
26
26
|
Text to show in the convert button
|
|
27
27
|
|
|
28
28
|
- Type: `string`
|
|
29
29
|
- Required: Yes
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
### onKeep
|
|
32
32
|
|
|
33
33
|
Callback when the original block is required
|
|
34
34
|
|
|
35
35
|
- Type: `func`
|
|
36
36
|
- Required: Yes
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
### onConvert
|
|
39
39
|
|
|
40
40
|
Callback when the converted block is required.
|
|
41
41
|
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
|
|
6
|
-
// module here, to avoid including too much of the library
|
|
7
|
-
import { diffChars } from 'diff/lib/diff/character';
|
|
5
|
+
import { diffChars } from 'diff';
|
|
8
6
|
|
|
9
7
|
/**
|
|
10
8
|
* WordPress dependencies
|
|
@@ -5,7 +5,6 @@ import { __ } from '@wordpress/i18n';
|
|
|
5
5
|
import {
|
|
6
6
|
getBlockType,
|
|
7
7
|
getUnregisteredTypeHandlerName,
|
|
8
|
-
hasBlockSupport,
|
|
9
8
|
store as blocksStore,
|
|
10
9
|
} from '@wordpress/blocks';
|
|
11
10
|
import {
|
|
@@ -208,8 +207,8 @@ function BlockInspector() {
|
|
|
208
207
|
|
|
209
208
|
const {
|
|
210
209
|
getClientIdsOfDescendants,
|
|
211
|
-
getBlockName,
|
|
212
210
|
getBlockEditingMode,
|
|
211
|
+
shouldRenderBlockListView,
|
|
213
212
|
} = unlock( select( blockEditorStore ) );
|
|
214
213
|
|
|
215
214
|
const descendants = getClientIdsOfDescendants(
|
|
@@ -220,14 +219,7 @@ function BlockInspector() {
|
|
|
220
219
|
// List View tab.
|
|
221
220
|
const listViewDescendants = new Set();
|
|
222
221
|
descendants.forEach( ( clientId ) => {
|
|
223
|
-
|
|
224
|
-
// Navigation block doesn't have List View block support, but
|
|
225
|
-
// it does have a custom implementation that is shown within
|
|
226
|
-
// patterns, so it's included in this condition.
|
|
227
|
-
if (
|
|
228
|
-
blockName === 'core/navigation' ||
|
|
229
|
-
hasBlockSupport( blockName, 'listView' )
|
|
230
|
-
) {
|
|
222
|
+
if ( shouldRenderBlockListView( clientId ) ) {
|
|
231
223
|
const listViewChildren =
|
|
232
224
|
getClientIdsOfDescendants( clientId );
|
|
233
225
|
listViewChildren.forEach( ( childId ) =>
|
|
@@ -12,7 +12,6 @@ import {
|
|
|
12
12
|
Composite,
|
|
13
13
|
__experimentalHStack as HStack,
|
|
14
14
|
} from '@wordpress/components';
|
|
15
|
-
// eslint-disable-next-line @wordpress/use-recommended-components -- `Tooltip` is not yet on the recommended `@wordpress/ui` allow-list; landing as a migration step ahead of the wider rollout.
|
|
16
15
|
import { VisuallyHidden, Text, Tooltip } from '@wordpress/ui';
|
|
17
16
|
import { useInstanceId } from '@wordpress/compose';
|
|
18
17
|
import { __ } from '@wordpress/i18n';
|
|
@@ -195,8 +194,8 @@ function BlockPatternsList(
|
|
|
195
194
|
onHover,
|
|
196
195
|
onClickPattern,
|
|
197
196
|
orientation,
|
|
198
|
-
label = __( 'Block patterns' ),
|
|
199
197
|
category,
|
|
198
|
+
label = __( 'Patterns' ),
|
|
200
199
|
showTitlesAsTooltip,
|
|
201
200
|
pagingProps,
|
|
202
201
|
},
|