@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
package/src/store/selectors.js
CHANGED
|
@@ -12,7 +12,6 @@ import {
|
|
|
12
12
|
store as blocksStore,
|
|
13
13
|
privateApis as blocksPrivateApis,
|
|
14
14
|
} from '@wordpress/blocks';
|
|
15
|
-
import { Platform } from '@wordpress/element';
|
|
16
15
|
import { applyFilters } from '@wordpress/hooks';
|
|
17
16
|
import { symbol } from '@wordpress/icons';
|
|
18
17
|
import { create, remove, toHTMLString } from '@wordpress/rich-text';
|
|
@@ -44,6 +43,8 @@ import {
|
|
|
44
43
|
getParentSectionBlock,
|
|
45
44
|
isZoomOut,
|
|
46
45
|
isContainerInsertableToInContentOnlyMode,
|
|
46
|
+
getClientIdWithClientIdsTree,
|
|
47
|
+
getClientIdsTree,
|
|
47
48
|
} from './private-selectors';
|
|
48
49
|
|
|
49
50
|
const { isContentBlock } = unlock( blocksPrivateApis );
|
|
@@ -107,14 +108,6 @@ const DEFAULT_INSERTER_OPTIONS = {
|
|
|
107
108
|
*/
|
|
108
109
|
export function getBlockName( state, clientId ) {
|
|
109
110
|
const block = state.blocks.byClientId.get( clientId );
|
|
110
|
-
const socialLinkName = 'core/social-link';
|
|
111
|
-
|
|
112
|
-
if ( Platform.OS !== 'web' && block?.name === socialLinkName ) {
|
|
113
|
-
const attributes = state.blocks.attributes.get( clientId );
|
|
114
|
-
const { service } = attributes ?? {};
|
|
115
|
-
|
|
116
|
-
return service ? `${ socialLinkName }-${ service }` : socialLinkName;
|
|
117
|
-
}
|
|
118
111
|
return block ? block.name : null;
|
|
119
112
|
}
|
|
120
113
|
|
|
@@ -225,22 +218,16 @@ export function getBlocks( state, rootClientId ) {
|
|
|
225
218
|
*
|
|
226
219
|
* @return {Object} Client IDs of the post blocks.
|
|
227
220
|
*/
|
|
228
|
-
export
|
|
229
|
-
(
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
clientId,
|
|
239
|
-
innerBlocks: __unstableGetClientIdsTree( state, clientId ),
|
|
240
|
-
};
|
|
241
|
-
},
|
|
242
|
-
( state ) => [ state.blocks.order ]
|
|
243
|
-
);
|
|
221
|
+
export function __unstableGetClientIdWithClientIdsTree( state, clientId ) {
|
|
222
|
+
deprecated(
|
|
223
|
+
"wp.data.select( 'core/block-editor' ).__unstableGetClientIdWithClientIdsTree",
|
|
224
|
+
{
|
|
225
|
+
since: '6.3',
|
|
226
|
+
version: '6.5',
|
|
227
|
+
}
|
|
228
|
+
);
|
|
229
|
+
return getClientIdWithClientIdsTree( state, clientId );
|
|
230
|
+
}
|
|
244
231
|
|
|
245
232
|
/**
|
|
246
233
|
* Returns the block tree represented in the block-editor store from the
|
|
@@ -254,21 +241,16 @@ export const __unstableGetClientIdWithClientIdsTree = createSelector(
|
|
|
254
241
|
*
|
|
255
242
|
* @return {Object[]} Client IDs of the post blocks.
|
|
256
243
|
*/
|
|
257
|
-
export
|
|
258
|
-
(
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
__unstableGetClientIdWithClientIdsTree( state, clientId )
|
|
268
|
-
);
|
|
269
|
-
},
|
|
270
|
-
( state ) => [ state.blocks.order ]
|
|
271
|
-
);
|
|
244
|
+
export function __unstableGetClientIdsTree( state, rootClientId ) {
|
|
245
|
+
deprecated(
|
|
246
|
+
"wp.data.select( 'core/block-editor' ).__unstableGetClientIdsTree",
|
|
247
|
+
{
|
|
248
|
+
since: '6.3',
|
|
249
|
+
version: '6.5',
|
|
250
|
+
}
|
|
251
|
+
);
|
|
252
|
+
return getClientIdsTree( state, rootClientId );
|
|
253
|
+
}
|
|
272
254
|
|
|
273
255
|
/**
|
|
274
256
|
* Returns an array containing the clientIds of all descendants of the blocks
|
|
@@ -2303,6 +2285,19 @@ const buildBlockTypeItem =
|
|
|
2303
2285
|
};
|
|
2304
2286
|
};
|
|
2305
2287
|
|
|
2288
|
+
const buildBlockVariationItem = ( state, item ) => ( variation ) => {
|
|
2289
|
+
const variationId = `${ item.id }/${ variation.name }`;
|
|
2290
|
+
const { time, count = 0 } = getInsertUsage( state, variationId ) || {};
|
|
2291
|
+
return {
|
|
2292
|
+
...item,
|
|
2293
|
+
id: variationId,
|
|
2294
|
+
icon: variation.icon || item.icon,
|
|
2295
|
+
title: variation.title || item.title,
|
|
2296
|
+
frecency: calculateFrecency( time, count ),
|
|
2297
|
+
variationName: variation.name,
|
|
2298
|
+
};
|
|
2299
|
+
};
|
|
2300
|
+
|
|
2306
2301
|
/**
|
|
2307
2302
|
* Determines the items that appear in the inserter. Includes both static
|
|
2308
2303
|
* items (e.g. a regular block type) and dynamic items (e.g. a reusable block).
|
|
@@ -2483,20 +2478,21 @@ export const getInserterItems = createRegistrySelector( ( select ) =>
|
|
|
2483
2478
|
*
|
|
2484
2479
|
* Items are returned ordered descendingly by their 'frecency'.
|
|
2485
2480
|
*
|
|
2486
|
-
* @param {Object} state
|
|
2487
|
-
* @param {Object|Object[]} blocks
|
|
2488
|
-
* @param {?string} rootClientId
|
|
2481
|
+
* @param {Object} state Editor state.
|
|
2482
|
+
* @param {Object|Object[]} blocks Block object or array objects.
|
|
2483
|
+
* @param {?string} rootClientId Optional root client ID of block list.
|
|
2489
2484
|
*
|
|
2490
2485
|
* @return {WPEditorTransformItem[]} Items that appear in inserter.
|
|
2491
2486
|
*
|
|
2492
2487
|
* @typedef {Object} WPEditorTransformItem
|
|
2493
|
-
* @property {string} id
|
|
2494
|
-
* @property {string} name
|
|
2495
|
-
* @property {string}
|
|
2496
|
-
* @property {string}
|
|
2497
|
-
* @property {
|
|
2498
|
-
*
|
|
2499
|
-
*
|
|
2488
|
+
* @property {string} id Unique identifier for the item.
|
|
2489
|
+
* @property {string} name The type of block to create.
|
|
2490
|
+
* @property {?string} variationName The target block variation name.
|
|
2491
|
+
* @property {string} title Title of the item, as it appears in the inserter.
|
|
2492
|
+
* @property {string} icon Dashicon for the item, as it appears in the inserter.
|
|
2493
|
+
* @property {boolean} isDisabled Whether or not the user should be prevented from inserting
|
|
2494
|
+
* this item.
|
|
2495
|
+
* @property {number} frecency Heuristic that combines frequency and recency.
|
|
2500
2496
|
*/
|
|
2501
2497
|
export const getBlockTransformItems = createRegistrySelector( ( select ) =>
|
|
2502
2498
|
createSelector(
|
|
@@ -2526,14 +2522,37 @@ export const getBlockTransformItems = createRegistrySelector( ( select ) =>
|
|
|
2526
2522
|
const possibleTransforms = getPossibleBlockTransformations(
|
|
2527
2523
|
normalizedBlocks
|
|
2528
2524
|
).reduce( ( accumulator, block ) => {
|
|
2529
|
-
|
|
2530
|
-
|
|
2525
|
+
const item = itemsByName[ block?.name ];
|
|
2526
|
+
|
|
2527
|
+
if ( ! item ) {
|
|
2528
|
+
return accumulator;
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
const { variationName } = block;
|
|
2532
|
+
|
|
2533
|
+
if ( ! variationName ) {
|
|
2534
|
+
accumulator.push( item );
|
|
2535
|
+
return accumulator;
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2538
|
+
const variation = getBlockVariations(
|
|
2539
|
+
item.name,
|
|
2540
|
+
'transform'
|
|
2541
|
+
)?.find( ( { name } ) => name === variationName );
|
|
2542
|
+
|
|
2543
|
+
if ( ! variation ) {
|
|
2544
|
+
accumulator.push( item );
|
|
2545
|
+
return accumulator;
|
|
2531
2546
|
}
|
|
2547
|
+
|
|
2548
|
+
accumulator.push(
|
|
2549
|
+
buildBlockVariationItem( state, item )( variation )
|
|
2550
|
+
);
|
|
2532
2551
|
return accumulator;
|
|
2533
2552
|
}, [] );
|
|
2534
2553
|
return orderBy(
|
|
2535
2554
|
possibleTransforms,
|
|
2536
|
-
( block ) =>
|
|
2555
|
+
( block ) => block.frecency,
|
|
2537
2556
|
'desc'
|
|
2538
2557
|
);
|
|
2539
2558
|
},
|
|
@@ -2902,6 +2921,25 @@ export function isLastBlockChangePersistent( state ) {
|
|
|
2902
2921
|
return state.blocks.isPersistentChange;
|
|
2903
2922
|
}
|
|
2904
2923
|
|
|
2924
|
+
/**
|
|
2925
|
+
* Returns how the most recent block change interacts with undo history.
|
|
2926
|
+
*
|
|
2927
|
+
* - `persistent` changes create a new undo level.
|
|
2928
|
+
* - `merge` changes do not create a new undo level, but may merge into the
|
|
2929
|
+
* prior stack item history.
|
|
2930
|
+
* - `ignore` changes should never be captured by undo history.
|
|
2931
|
+
*
|
|
2932
|
+
* @param {Object} state Block editor state.
|
|
2933
|
+
*
|
|
2934
|
+
* @return {'persistent'|'merge'|'ignore'} Block change history behavior.
|
|
2935
|
+
*/
|
|
2936
|
+
export function __unstableGetLastBlockChangeHistoryMode( state ) {
|
|
2937
|
+
if ( state.blocks.lastBlockChangeHistoryMode ) {
|
|
2938
|
+
return state.blocks.lastBlockChangeHistoryMode;
|
|
2939
|
+
}
|
|
2940
|
+
return state.blocks.isPersistentChange === false ? 'merge' : 'persistent';
|
|
2941
|
+
}
|
|
2942
|
+
|
|
2905
2943
|
/**
|
|
2906
2944
|
* Returns the block list settings for an array of blocks, if any exist.
|
|
2907
2945
|
*
|
|
@@ -53,6 +53,7 @@ const {
|
|
|
53
53
|
updateBlockListSettings,
|
|
54
54
|
updateSettings,
|
|
55
55
|
validateBlocksToTemplate,
|
|
56
|
+
__unstableMarkNextChangeAsNotPersistent,
|
|
56
57
|
registerInserterMediaCategory,
|
|
57
58
|
setBlockEditingMode,
|
|
58
59
|
unsetBlockEditingMode,
|
|
@@ -814,6 +815,26 @@ describe( 'actions', () => {
|
|
|
814
815
|
} );
|
|
815
816
|
} );
|
|
816
817
|
|
|
818
|
+
describe( '__unstableMarkNextChangeAsNotPersistent', () => {
|
|
819
|
+
it( 'should use merge history by default', () => {
|
|
820
|
+
expect( __unstableMarkNextChangeAsNotPersistent() ).toEqual( {
|
|
821
|
+
type: 'MARK_NEXT_CHANGE_AS_NOT_PERSISTENT',
|
|
822
|
+
history: 'merge',
|
|
823
|
+
} );
|
|
824
|
+
} );
|
|
825
|
+
|
|
826
|
+
it( 'should allow ignoring history for the next change', () => {
|
|
827
|
+
expect(
|
|
828
|
+
__unstableMarkNextChangeAsNotPersistent( {
|
|
829
|
+
history: 'ignore',
|
|
830
|
+
} )
|
|
831
|
+
).toEqual( {
|
|
832
|
+
type: 'MARK_NEXT_CHANGE_AS_NOT_PERSISTENT',
|
|
833
|
+
history: 'ignore',
|
|
834
|
+
} );
|
|
835
|
+
} );
|
|
836
|
+
} );
|
|
837
|
+
|
|
817
838
|
describe( 'mergeBlocks', () => {
|
|
818
839
|
afterEach( () => {
|
|
819
840
|
getBlockTypes().forEach( ( block ) => {
|
|
@@ -27,6 +27,7 @@ import {
|
|
|
27
27
|
getSelectedBlockStyleState,
|
|
28
28
|
hasSelectedStyleState,
|
|
29
29
|
isSelectedBlockStyleStateShownOnCanvas,
|
|
30
|
+
shouldRenderBlockListView,
|
|
30
31
|
} from '../private-selectors';
|
|
31
32
|
import { getBlockEditingMode } from '../selectors';
|
|
32
33
|
import { deviceTypeKey } from '../private-keys';
|
|
@@ -75,6 +76,143 @@ describe( 'private selectors', () => {
|
|
|
75
76
|
} );
|
|
76
77
|
} );
|
|
77
78
|
|
|
79
|
+
describe( 'shouldRenderBlockListView', () => {
|
|
80
|
+
const blockWithListViewSupport = 'core/test-list-view-support';
|
|
81
|
+
const blockWithoutListViewSupport = 'core/test-no-list-view-support';
|
|
82
|
+
|
|
83
|
+
const createState = (
|
|
84
|
+
blockName,
|
|
85
|
+
{ allowedBlocks, innerBlocks = [] } = {}
|
|
86
|
+
) => {
|
|
87
|
+
const blockListSettings = new Map();
|
|
88
|
+
if ( allowedBlocks !== undefined ) {
|
|
89
|
+
blockListSettings.set( 'client-1', { allowedBlocks } );
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
blocks: {
|
|
94
|
+
byClientId: new Map( [
|
|
95
|
+
[ 'client-1', { name: blockName } ],
|
|
96
|
+
] ),
|
|
97
|
+
order: new Map( [ [ 'client-1', innerBlocks ] ] ),
|
|
98
|
+
parents: new Map(),
|
|
99
|
+
},
|
|
100
|
+
blockListSettings,
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
beforeAll( () => {
|
|
105
|
+
registerBlockType( blockWithListViewSupport, {
|
|
106
|
+
apiVersion: 3,
|
|
107
|
+
title: 'List View support',
|
|
108
|
+
category: 'text',
|
|
109
|
+
supports: {
|
|
110
|
+
listView: true,
|
|
111
|
+
},
|
|
112
|
+
} );
|
|
113
|
+
registerBlockType( blockWithoutListViewSupport, {
|
|
114
|
+
apiVersion: 3,
|
|
115
|
+
title: 'No List View support',
|
|
116
|
+
category: 'text',
|
|
117
|
+
} );
|
|
118
|
+
} );
|
|
119
|
+
|
|
120
|
+
afterAll( () => {
|
|
121
|
+
unregisterBlockType( blockWithListViewSupport );
|
|
122
|
+
unregisterBlockType( blockWithoutListViewSupport );
|
|
123
|
+
} );
|
|
124
|
+
|
|
125
|
+
it( 'returns true for blocks with list view support', () => {
|
|
126
|
+
const state = createState( blockWithListViewSupport );
|
|
127
|
+
|
|
128
|
+
expect( shouldRenderBlockListView( state, 'client-1' ) ).toBe(
|
|
129
|
+
true
|
|
130
|
+
);
|
|
131
|
+
} );
|
|
132
|
+
|
|
133
|
+
it( 'returns false when empty and insertion is disallowed via `allowedBlocks: []`', () => {
|
|
134
|
+
const state = createState( blockWithListViewSupport, {
|
|
135
|
+
allowedBlocks: [],
|
|
136
|
+
} );
|
|
137
|
+
|
|
138
|
+
expect( shouldRenderBlockListView( state, 'client-1' ) ).toBe(
|
|
139
|
+
false
|
|
140
|
+
);
|
|
141
|
+
} );
|
|
142
|
+
|
|
143
|
+
it( 'returns false when empty and insertion is disallowed via `allowedBlocks: false`', () => {
|
|
144
|
+
const state = createState( blockWithListViewSupport, {
|
|
145
|
+
allowedBlocks: false,
|
|
146
|
+
} );
|
|
147
|
+
|
|
148
|
+
expect( shouldRenderBlockListView( state, 'client-1' ) ).toBe(
|
|
149
|
+
false
|
|
150
|
+
);
|
|
151
|
+
} );
|
|
152
|
+
|
|
153
|
+
it( 'returns true when empty but insertion is allowed', () => {
|
|
154
|
+
// e.g. a static, still-empty gallery: nothing yet, but the user can
|
|
155
|
+
// start inserting, so its List View stays available.
|
|
156
|
+
const state = createState( blockWithListViewSupport, {
|
|
157
|
+
allowedBlocks: [ 'core/image' ],
|
|
158
|
+
} );
|
|
159
|
+
|
|
160
|
+
expect( shouldRenderBlockListView( state, 'client-1' ) ).toBe(
|
|
161
|
+
true
|
|
162
|
+
);
|
|
163
|
+
} );
|
|
164
|
+
|
|
165
|
+
it( 'returns true when empty with no allowedBlocks restriction', () => {
|
|
166
|
+
const state = createState( blockWithListViewSupport );
|
|
167
|
+
|
|
168
|
+
expect( shouldRenderBlockListView( state, 'client-1' ) ).toBe(
|
|
169
|
+
true
|
|
170
|
+
);
|
|
171
|
+
} );
|
|
172
|
+
|
|
173
|
+
it( 'returns true when insertion is disallowed but the block still has inner blocks', () => {
|
|
174
|
+
const state = createState( blockWithListViewSupport, {
|
|
175
|
+
allowedBlocks: [],
|
|
176
|
+
innerBlocks: [ 'child-1' ],
|
|
177
|
+
} );
|
|
178
|
+
|
|
179
|
+
expect( shouldRenderBlockListView( state, 'client-1' ) ).toBe(
|
|
180
|
+
true
|
|
181
|
+
);
|
|
182
|
+
} );
|
|
183
|
+
|
|
184
|
+
it( 'does not grant list view support to unsupported block types', () => {
|
|
185
|
+
const state = createState( blockWithoutListViewSupport, {
|
|
186
|
+
allowedBlocks: [],
|
|
187
|
+
} );
|
|
188
|
+
|
|
189
|
+
expect( shouldRenderBlockListView( state, 'client-1' ) ).toBe(
|
|
190
|
+
false
|
|
191
|
+
);
|
|
192
|
+
} );
|
|
193
|
+
|
|
194
|
+
it( 'preserves the navigation block special case', () => {
|
|
195
|
+
const state = createState( 'core/navigation' );
|
|
196
|
+
|
|
197
|
+
expect( shouldRenderBlockListView( state, 'client-1' ) ).toBe(
|
|
198
|
+
true
|
|
199
|
+
);
|
|
200
|
+
} );
|
|
201
|
+
|
|
202
|
+
it( 'keeps navigation in list view even when empty and insertion is disallowed', () => {
|
|
203
|
+
// The navigation special case takes precedence over the
|
|
204
|
+
// `allowedBlocks` exclusion: even with nothing to show and no
|
|
205
|
+
// insertion allowed, navigation still participates in List View.
|
|
206
|
+
const state = createState( 'core/navigation', {
|
|
207
|
+
allowedBlocks: [],
|
|
208
|
+
} );
|
|
209
|
+
|
|
210
|
+
expect( shouldRenderBlockListView( state, 'client-1' ) ).toBe(
|
|
211
|
+
true
|
|
212
|
+
);
|
|
213
|
+
} );
|
|
214
|
+
} );
|
|
215
|
+
|
|
78
216
|
describe( 'getSelectedBlockStyleState', () => {
|
|
79
217
|
it( 'returns default when the block has no selected state', () => {
|
|
80
218
|
const state = {};
|
|
@@ -2236,6 +2236,52 @@ describe( 'state', () => {
|
|
|
2236
2236
|
expect( subsequentState.isPersistentChange ).toBe( true );
|
|
2237
2237
|
} );
|
|
2238
2238
|
|
|
2239
|
+
it( 'should flag ignored history for an explicitly marked not persistent change', () => {
|
|
2240
|
+
let original = deepFreeze(
|
|
2241
|
+
blocks( undefined, {
|
|
2242
|
+
type: 'RESET_BLOCKS',
|
|
2243
|
+
blocks: [
|
|
2244
|
+
{
|
|
2245
|
+
clientId: 'kumquat',
|
|
2246
|
+
attributes: {},
|
|
2247
|
+
innerBlocks: [],
|
|
2248
|
+
},
|
|
2249
|
+
],
|
|
2250
|
+
} )
|
|
2251
|
+
);
|
|
2252
|
+
original = blocks( original, {
|
|
2253
|
+
type: 'MARK_NEXT_CHANGE_AS_NOT_PERSISTENT',
|
|
2254
|
+
history: 'ignore',
|
|
2255
|
+
} );
|
|
2256
|
+
|
|
2257
|
+
const nextState = blocks( original, {
|
|
2258
|
+
type: 'UPDATE_BLOCK_ATTRIBUTES',
|
|
2259
|
+
clientIds: [ 'kumquat' ],
|
|
2260
|
+
attributes: {
|
|
2261
|
+
updated: true,
|
|
2262
|
+
},
|
|
2263
|
+
} );
|
|
2264
|
+
|
|
2265
|
+
expect( nextState.isPersistentChange ).toBe( false );
|
|
2266
|
+
expect( nextState.lastBlockChangeHistoryMode ).toBe(
|
|
2267
|
+
'ignore'
|
|
2268
|
+
);
|
|
2269
|
+
|
|
2270
|
+
// A subsequent change should clear the ignored history.
|
|
2271
|
+
const subsequentState = blocks( nextState, {
|
|
2272
|
+
type: 'UPDATE_BLOCK_ATTRIBUTES',
|
|
2273
|
+
clientIds: [ 'kumquat' ],
|
|
2274
|
+
attributes: {
|
|
2275
|
+
other: true,
|
|
2276
|
+
},
|
|
2277
|
+
} );
|
|
2278
|
+
|
|
2279
|
+
expect( subsequentState.isPersistentChange ).toBe( true );
|
|
2280
|
+
expect(
|
|
2281
|
+
subsequentState.lastBlockChangeHistoryMode
|
|
2282
|
+
).toBeUndefined();
|
|
2283
|
+
} );
|
|
2284
|
+
|
|
2239
2285
|
it( 'should retain reference for same state, same persistence', () => {
|
|
2240
2286
|
const original = deepFreeze(
|
|
2241
2287
|
blocks( undefined, {
|
|
@@ -4031,6 +4031,82 @@ describe( 'selectors', () => {
|
|
|
4031
4031
|
} )
|
|
4032
4032
|
);
|
|
4033
4033
|
} );
|
|
4034
|
+
|
|
4035
|
+
it( 'should use variation metadata for transformation items', () => {
|
|
4036
|
+
registerBlockType( 'core/variation-transform-source', {
|
|
4037
|
+
apiVersion: 3,
|
|
4038
|
+
category: 'text',
|
|
4039
|
+
title: 'Variation Transform Source',
|
|
4040
|
+
edit: () => {},
|
|
4041
|
+
save: () => {},
|
|
4042
|
+
transforms: {
|
|
4043
|
+
to: [
|
|
4044
|
+
{
|
|
4045
|
+
type: 'block',
|
|
4046
|
+
blocks: [ 'core/variation-transform-target' ],
|
|
4047
|
+
variationName: 'grid',
|
|
4048
|
+
transform: () => {},
|
|
4049
|
+
},
|
|
4050
|
+
],
|
|
4051
|
+
},
|
|
4052
|
+
} );
|
|
4053
|
+
registerBlockType( 'core/variation-transform-target', {
|
|
4054
|
+
apiVersion: 3,
|
|
4055
|
+
category: 'design',
|
|
4056
|
+
title: 'Group',
|
|
4057
|
+
icon: 'group',
|
|
4058
|
+
edit: () => {},
|
|
4059
|
+
save: () => {},
|
|
4060
|
+
variations: [
|
|
4061
|
+
{
|
|
4062
|
+
name: 'grid',
|
|
4063
|
+
title: 'Grid',
|
|
4064
|
+
icon: 'grid',
|
|
4065
|
+
attributes: { layout: { type: 'grid' } },
|
|
4066
|
+
scope: [ 'transform' ],
|
|
4067
|
+
},
|
|
4068
|
+
],
|
|
4069
|
+
} );
|
|
4070
|
+
|
|
4071
|
+
const state = {
|
|
4072
|
+
blocks: {
|
|
4073
|
+
byClientId: new Map(),
|
|
4074
|
+
attributes: new Map(),
|
|
4075
|
+
order: new Map(),
|
|
4076
|
+
parents: new Map(),
|
|
4077
|
+
cache: {},
|
|
4078
|
+
blockEditingModes: new Map(),
|
|
4079
|
+
},
|
|
4080
|
+
preferences: {
|
|
4081
|
+
insertUsage: {
|
|
4082
|
+
'core/variation-transform-target/grid': {
|
|
4083
|
+
count: 10,
|
|
4084
|
+
time: 1000,
|
|
4085
|
+
},
|
|
4086
|
+
},
|
|
4087
|
+
},
|
|
4088
|
+
blockListSettings: new Map(),
|
|
4089
|
+
settings: {},
|
|
4090
|
+
};
|
|
4091
|
+
const blocks = [ { name: 'core/variation-transform-source' } ];
|
|
4092
|
+
|
|
4093
|
+
try {
|
|
4094
|
+
const items = getBlockTransformItems( state, blocks );
|
|
4095
|
+
|
|
4096
|
+
expect( items ).toHaveLength( 1 );
|
|
4097
|
+
expect( items[ 0 ] ).toMatchObject( {
|
|
4098
|
+
id: 'core/variation-transform-target/grid',
|
|
4099
|
+
name: 'core/variation-transform-target',
|
|
4100
|
+
variationName: 'grid',
|
|
4101
|
+
title: 'Grid',
|
|
4102
|
+
icon: 'grid',
|
|
4103
|
+
frecency: 2.5,
|
|
4104
|
+
} );
|
|
4105
|
+
} finally {
|
|
4106
|
+
unregisterBlockType( 'core/variation-transform-source' );
|
|
4107
|
+
unregisterBlockType( 'core/variation-transform-target' );
|
|
4108
|
+
}
|
|
4109
|
+
} );
|
|
4034
4110
|
} );
|
|
4035
4111
|
|
|
4036
4112
|
describe( 'isValidTemplate', () => {
|
|
@@ -5005,6 +5081,7 @@ describe( '__unstableGetClientIdsTree', () => {
|
|
|
5005
5081
|
},
|
|
5006
5082
|
{ clientId: 'baz', innerBlocks: [] },
|
|
5007
5083
|
] );
|
|
5084
|
+
expect( console ).toHaveWarned();
|
|
5008
5085
|
} );
|
|
5009
5086
|
|
|
5010
5087
|
it( "should return the full content tree starting from the root, consisting of stripped down block object containing only its client ID and its inner blocks' client IDs", () => {
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// packages/block-editor/src/components/media-upload-progress/constants.js
|
|
21
|
-
var constants_exports = {};
|
|
22
|
-
__export(constants_exports, {
|
|
23
|
-
MEDIA_UPLOAD_STATE_FAILED: () => MEDIA_UPLOAD_STATE_FAILED,
|
|
24
|
-
MEDIA_UPLOAD_STATE_IDLE: () => MEDIA_UPLOAD_STATE_IDLE,
|
|
25
|
-
MEDIA_UPLOAD_STATE_PAUSED: () => MEDIA_UPLOAD_STATE_PAUSED,
|
|
26
|
-
MEDIA_UPLOAD_STATE_RESET: () => MEDIA_UPLOAD_STATE_RESET,
|
|
27
|
-
MEDIA_UPLOAD_STATE_SUCCEEDED: () => MEDIA_UPLOAD_STATE_SUCCEEDED,
|
|
28
|
-
MEDIA_UPLOAD_STATE_UPLOADING: () => MEDIA_UPLOAD_STATE_UPLOADING
|
|
29
|
-
});
|
|
30
|
-
module.exports = __toCommonJS(constants_exports);
|
|
31
|
-
var MEDIA_UPLOAD_STATE_IDLE = 0;
|
|
32
|
-
var MEDIA_UPLOAD_STATE_UPLOADING = 1;
|
|
33
|
-
var MEDIA_UPLOAD_STATE_SUCCEEDED = 2;
|
|
34
|
-
var MEDIA_UPLOAD_STATE_FAILED = 3;
|
|
35
|
-
var MEDIA_UPLOAD_STATE_RESET = 4;
|
|
36
|
-
var MEDIA_UPLOAD_STATE_PAUSED = 11;
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {
|
|
39
|
-
MEDIA_UPLOAD_STATE_FAILED,
|
|
40
|
-
MEDIA_UPLOAD_STATE_IDLE,
|
|
41
|
-
MEDIA_UPLOAD_STATE_PAUSED,
|
|
42
|
-
MEDIA_UPLOAD_STATE_RESET,
|
|
43
|
-
MEDIA_UPLOAD_STATE_SUCCEEDED,
|
|
44
|
-
MEDIA_UPLOAD_STATE_UPLOADING
|
|
45
|
-
});
|
|
46
|
-
//# sourceMappingURL=constants.cjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/media-upload-progress/constants.js"],
|
|
4
|
-
"sourcesContent": ["export const MEDIA_UPLOAD_STATE_IDLE = 0;\nexport const MEDIA_UPLOAD_STATE_UPLOADING = 1;\nexport const MEDIA_UPLOAD_STATE_SUCCEEDED = 2;\nexport const MEDIA_UPLOAD_STATE_FAILED = 3;\nexport const MEDIA_UPLOAD_STATE_RESET = 4;\nexport const MEDIA_UPLOAD_STATE_PAUSED = 11;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAM,0BAA0B;AAChC,IAAM,+BAA+B;AACrC,IAAM,+BAA+B;AACrC,IAAM,4BAA4B;AAClC,IAAM,2BAA2B;AACjC,IAAM,4BAA4B;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// packages/block-editor/src/components/rich-text/native/format-edit.js
|
|
21
|
-
var format_edit_exports = {};
|
|
22
|
-
__export(format_edit_exports, {
|
|
23
|
-
default: () => FormatEdit
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(format_edit_exports);
|
|
26
|
-
var import_rich_text = require("@wordpress/rich-text");
|
|
27
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
28
|
-
function FormatEdit({
|
|
29
|
-
formatTypes,
|
|
30
|
-
onChange,
|
|
31
|
-
onFocus,
|
|
32
|
-
value,
|
|
33
|
-
forwardedRef
|
|
34
|
-
}) {
|
|
35
|
-
return formatTypes.map((settings) => {
|
|
36
|
-
const { name, edit: Edit } = settings;
|
|
37
|
-
if (!Edit) {
|
|
38
|
-
return null;
|
|
39
|
-
}
|
|
40
|
-
const activeFormat = (0, import_rich_text.getActiveFormat)(value, name);
|
|
41
|
-
const isActive = activeFormat !== void 0;
|
|
42
|
-
const activeObject = (0, import_rich_text.getActiveObject)(value);
|
|
43
|
-
const isObjectActive = activeObject !== void 0 && activeObject.type === name;
|
|
44
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
45
|
-
Edit,
|
|
46
|
-
{
|
|
47
|
-
isActive,
|
|
48
|
-
activeAttributes: isActive ? activeFormat.attributes || {} : {},
|
|
49
|
-
isObjectActive,
|
|
50
|
-
activeObjectAttributes: isObjectActive ? activeObject.attributes || {} : {},
|
|
51
|
-
value,
|
|
52
|
-
onChange,
|
|
53
|
-
onFocus,
|
|
54
|
-
contentRef: forwardedRef
|
|
55
|
-
},
|
|
56
|
-
name
|
|
57
|
-
);
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=format-edit.cjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/components/rich-text/native/format-edit.js"],
|
|
4
|
-
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { getActiveFormat, getActiveObject } from '@wordpress/rich-text';\n\nexport default function FormatEdit( {\n\tformatTypes,\n\tonChange,\n\tonFocus,\n\tvalue,\n\tforwardedRef,\n} ) {\n\treturn formatTypes.map( ( settings ) => {\n\t\tconst { name, edit: Edit } = settings;\n\n\t\tif ( ! Edit ) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst activeFormat = getActiveFormat( value, name );\n\t\tconst isActive = activeFormat !== undefined;\n\t\tconst activeObject = getActiveObject( value );\n\t\tconst isObjectActive =\n\t\t\tactiveObject !== undefined && activeObject.type === name;\n\n\t\treturn (\n\t\t\t<Edit\n\t\t\t\tkey={ name }\n\t\t\t\tisActive={ isActive }\n\t\t\t\tactiveAttributes={\n\t\t\t\t\tisActive ? activeFormat.attributes || {} : {}\n\t\t\t\t}\n\t\t\t\tisObjectActive={ isObjectActive }\n\t\t\t\tactiveObjectAttributes={\n\t\t\t\t\tisObjectActive ? activeObject.attributes || {} : {}\n\t\t\t\t}\n\t\t\t\tvalue={ value }\n\t\t\t\tonChange={ onChange }\n\t\t\t\tonFocus={ onFocus }\n\t\t\t\tcontentRef={ forwardedRef }\n\t\t\t/>\n\t\t);\n\t} );\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,uBAAiD;AAuB9C;AArBY,SAAR,WAA6B;AAAA,EACnC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,GAAI;AACH,SAAO,YAAY,IAAK,CAAE,aAAc;AACvC,UAAM,EAAE,MAAM,MAAM,KAAK,IAAI;AAE7B,QAAK,CAAE,MAAO;AACb,aAAO;AAAA,IACR;AAEA,UAAM,mBAAe,kCAAiB,OAAO,IAAK;AAClD,UAAM,WAAW,iBAAiB;AAClC,UAAM,mBAAe,kCAAiB,KAAM;AAC5C,UAAM,iBACL,iBAAiB,UAAa,aAAa,SAAS;AAErD,WACC;AAAA,MAAC;AAAA;AAAA,QAEA;AAAA,QACA,kBACC,WAAW,aAAa,cAAc,CAAC,IAAI,CAAC;AAAA,QAE7C;AAAA,QACA,wBACC,iBAAiB,aAAa,cAAc,CAAC,IAAI,CAAC;AAAA,QAEnD;AAAA,QACA;AAAA,QACA;AAAA,QACA,YAAa;AAAA;AAAA,MAZP;AAAA,IAaP;AAAA,EAEF,CAAE;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|