@wordpress/block-editor 14.3.6 → 14.5.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 +4 -0
- package/README.md +6 -2
- package/build/autocompleters/block.js.map +1 -1
- package/build/autocompleters/link.js +2 -1
- package/build/autocompleters/link.js.map +1 -1
- package/build/components/background-image-control/index.js +1 -1
- package/build/components/background-image-control/index.js.map +1 -1
- package/build/components/block-actions/index.js +1 -13
- package/build/components/block-actions/index.js.map +1 -1
- package/build/components/block-controls/slot.js.map +1 -1
- package/build/components/block-controls/slot.native.js.map +1 -1
- package/build/components/block-draggable/draggable-chip.js +1 -1
- package/build/components/block-draggable/draggable-chip.js.map +1 -1
- package/build/components/block-inspector/index.js +56 -75
- package/build/components/block-inspector/index.js.map +1 -1
- package/build/components/block-list/block-invalid-warning.native.js +1 -1
- package/build/components/block-list/block-invalid-warning.native.js.map +1 -1
- package/build/components/block-list/block-list-item.native.js.map +1 -1
- package/build/components/block-list/block.js +5 -16
- package/build/components/block-list/block.js.map +1 -1
- package/build/components/block-list/index.js +6 -8
- package/build/components/block-list/index.js.map +1 -1
- package/build/components/block-list/index.native.js.map +1 -1
- package/build/components/block-list/use-block-props/index.js +3 -8
- package/build/components/block-list/use-block-props/index.js.map +1 -1
- package/build/components/block-list/use-block-props/use-selected-block-event-handlers.js +14 -6
- package/build/components/block-list/use-block-props/use-selected-block-event-handlers.js.map +1 -1
- package/build/components/block-list/use-in-between-inserter.js +5 -3
- package/build/components/block-list/use-in-between-inserter.js.map +1 -1
- package/build/components/block-list/zoom-out-separator.js +24 -13
- package/build/components/block-list/zoom-out-separator.js.map +1 -1
- package/build/components/block-lock/modal.js +1 -1
- package/build/components/block-lock/modal.js.map +1 -1
- package/build/components/block-mover/button.js.map +1 -1
- package/build/components/block-navigation/dropdown.js +2 -4
- package/build/components/block-navigation/dropdown.js.map +1 -1
- package/build/components/block-parent-selector/index.js +14 -11
- package/build/components/block-parent-selector/index.js.map +1 -1
- package/build/components/block-pattern-setup/index.js.map +1 -1
- package/build/components/block-pattern-setup/setup-toolbar.js +10 -20
- package/build/components/block-pattern-setup/setup-toolbar.js.map +1 -1
- package/build/components/block-patterns-list/index.js.map +1 -1
- package/build/components/block-patterns-paging/index.js +11 -13
- package/build/components/block-patterns-paging/index.js.map +1 -1
- package/build/components/block-popover/index.js +45 -2
- package/build/components/block-popover/index.js.map +1 -1
- package/build/components/block-preview/auto.js +1 -4
- package/build/components/block-preview/auto.js.map +1 -1
- package/build/components/block-preview/index.js.map +1 -1
- package/build/components/block-quick-navigation/index.js +2 -4
- package/build/components/block-quick-navigation/index.js.map +1 -1
- package/build/components/block-rename/modal.js +2 -2
- package/build/components/block-rename/modal.js.map +1 -1
- package/build/components/block-settings-menu/block-parent-selector-menu-item.js +1 -1
- package/build/components/block-settings-menu/block-parent-selector-menu-item.js.map +1 -1
- package/build/components/block-settings-menu/block-settings-dropdown.js +79 -76
- package/build/components/block-settings-menu/block-settings-dropdown.js.map +1 -1
- package/build/components/block-settings-menu-controls/index.js +1 -6
- package/build/components/block-settings-menu-controls/index.js.map +1 -1
- package/build/components/block-switcher/block-transformations-menu.native.js +1 -1
- package/build/components/block-switcher/block-transformations-menu.native.js.map +1 -1
- package/build/components/block-switcher/index.js +19 -15
- package/build/components/block-switcher/index.js.map +1 -1
- package/build/components/block-switcher/pattern-transformations-menu.js.map +1 -1
- package/build/components/block-switcher/use-transformed-patterns.js +1 -0
- package/build/components/block-switcher/use-transformed-patterns.js.map +1 -1
- package/build/components/block-switcher/utils.js +1 -0
- package/build/components/block-switcher/utils.js.map +1 -1
- package/build/components/block-toolbar/index.js +16 -19
- package/build/components/block-toolbar/index.js.map +1 -1
- package/build/components/block-toolbar/use-has-block-toolbar.js +3 -5
- package/build/components/block-toolbar/use-has-block-toolbar.js.map +1 -1
- package/build/components/block-tools/index.js +8 -18
- package/build/components/block-tools/index.js.map +1 -1
- package/build/components/block-tools/insertion-point.js +1 -4
- package/build/components/block-tools/insertion-point.js.map +1 -1
- package/build/components/block-tools/use-show-block-tools.js +8 -7
- package/build/components/block-tools/use-show-block-tools.js.map +1 -1
- package/build/components/block-tools/zoom-out-mode-inserter-button.js +1 -12
- package/build/components/block-tools/zoom-out-mode-inserter-button.js.map +1 -1
- package/build/components/block-tools/zoom-out-mode-inserters.js +14 -17
- package/build/components/block-tools/zoom-out-mode-inserters.js.map +1 -1
- package/build/components/block-tools/zoom-out-popover.js +3 -2
- package/build/components/block-tools/zoom-out-popover.js.map +1 -1
- package/build/components/block-tools/zoom-out-toolbar.js +5 -32
- package/build/components/block-tools/zoom-out-toolbar.js.map +1 -1
- package/build/components/block-types-list/index.js.map +1 -1
- package/build/components/block-types-list/index.native.js.map +1 -1
- package/build/components/block-variation-transforms/index.js +3 -2
- package/build/components/block-variation-transforms/index.js.map +1 -1
- package/build/components/border-radius-control/index.js.map +1 -1
- package/build/components/border-radius-control/utils.js.map +1 -1
- package/build/components/button-block-appender/index.js.map +1 -1
- package/build/components/color-style-selector/index.js.map +1 -1
- package/build/components/colors/utils.js.map +1 -1
- package/build/components/colors/with-colors.js.map +1 -1
- package/build/components/colors-gradients/panel-color-gradient-settings.native.js.map +1 -1
- package/build/components/date-format-picker/index.js +1 -0
- package/build/components/date-format-picker/index.js.map +1 -1
- package/build/components/duotone/utils.js.map +1 -1
- package/build/components/duotone-control/index.js.map +1 -1
- package/build/components/font-sizes/fluid-utils.js.map +1 -1
- package/build/components/font-sizes/utils.js.map +1 -1
- package/build/components/font-sizes/with-font-sizes.js.map +1 -1
- package/build/components/global-styles/border-panel.js +1 -1
- package/build/components/global-styles/border-panel.js.map +1 -1
- package/build/components/global-styles/color-panel.js +1 -1
- package/build/components/global-styles/color-panel.js.map +1 -1
- package/build/components/global-styles/dimensions-panel.js +3 -3
- package/build/components/global-styles/dimensions-panel.js.map +1 -1
- package/build/components/global-styles/filters-panel.js.map +1 -1
- package/build/components/global-styles/get-block-css-selector.js.map +1 -1
- package/build/components/global-styles/get-global-styles-changes.js +2 -1
- package/build/components/global-styles/get-global-styles-changes.js.map +1 -1
- package/build/components/global-styles/hooks.js.map +1 -1
- package/build/components/global-styles/typography-panel.js.map +1 -1
- package/build/components/global-styles/use-global-styles-context.native.js.map +1 -1
- package/build/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build/components/global-styles/utils.js.map +1 -1
- package/build/components/gradients/use-gradient.js.map +1 -1
- package/build/components/grid/grid-item-movers.js.map +1 -1
- package/build/components/grid/grid-visualizer.js.map +1 -1
- package/build/components/iframe/index.js +44 -9
- package/build/components/iframe/index.js.map +1 -1
- package/build/components/image-editor/use-save-image.js +1 -1
- package/build/components/image-editor/use-save-image.js.map +1 -1
- package/build/components/inner-blocks/index.js +1 -9
- package/build/components/inner-blocks/index.js.map +1 -1
- package/build/components/inner-blocks/use-nested-settings-update.js +15 -8
- package/build/components/inner-blocks/use-nested-settings-update.js.map +1 -1
- package/build/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.js +1 -1
- package/build/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.js.map +1 -1
- package/build/components/inserter/block-patterns-explorer/pattern-list.js +2 -2
- package/build/components/inserter/block-patterns-explorer/pattern-list.js.map +1 -1
- package/build/components/inserter/block-patterns-tab/use-pattern-categories.js +1 -1
- package/build/components/inserter/block-patterns-tab/use-pattern-categories.js.map +1 -1
- package/build/components/inserter/block-types-tab.js +1 -1
- package/build/components/inserter/block-types-tab.js.map +1 -1
- package/build/components/inserter/block-types-tab.native.js.map +1 -1
- package/build/components/inserter/category-tabs/index.js +1 -10
- package/build/components/inserter/category-tabs/index.js.map +1 -1
- package/build/components/inserter/hooks/use-block-types-state.js +24 -5
- package/build/components/inserter/hooks/use-block-types-state.js.map +1 -1
- package/build/components/inserter/hooks/use-insertion-point.js +22 -12
- package/build/components/inserter/hooks/use-insertion-point.js.map +1 -1
- package/build/components/inserter/hooks/use-patterns-state.js +24 -11
- package/build/components/inserter/hooks/use-patterns-state.js.map +1 -1
- package/build/components/inserter/media-tab/media-panel.js.map +1 -1
- package/build/components/inserter/media-tab/media-preview.js +36 -14
- package/build/components/inserter/media-tab/media-preview.js.map +1 -1
- package/build/components/inserter/media-tab/media-tab.js.map +1 -1
- package/build/components/inserter/media-tab/utils.js.map +1 -1
- package/build/components/inserter/menu.js +4 -4
- package/build/components/inserter/menu.js.map +1 -1
- package/build/components/inserter/mobile-tab-navigation.js +5 -5
- package/build/components/inserter/mobile-tab-navigation.js.map +1 -1
- package/build/components/inserter/preview-panel.js.map +1 -1
- package/build/components/inserter/quick-inserter.js +5 -5
- package/build/components/inserter/quick-inserter.js.map +1 -1
- package/build/components/inserter/search-results.js +1 -1
- package/build/components/inserter/search-results.js.map +1 -1
- package/build/components/inserter/tabs.native.js.map +1 -1
- package/build/components/inspector-controls/block-support-tools-panel.js.map +1 -1
- package/build/components/inspector-controls/fill.js.map +1 -1
- package/build/components/inspector-controls/fill.native.js.map +1 -1
- package/build/components/inspector-controls/slot.js.map +1 -1
- package/build/components/inspector-controls/slot.native.js.map +1 -1
- package/build/components/line-height-control/index.js.map +1 -1
- package/build/components/link-control/index.js +1 -2
- package/build/components/link-control/index.js.map +1 -1
- package/build/components/link-control/is-url-like.js.map +1 -1
- package/build/components/link-control/search-create-button.js +1 -1
- package/build/components/link-control/search-create-button.js.map +1 -1
- package/build/components/link-control/search-input.js +3 -5
- package/build/components/link-control/search-input.js.map +1 -1
- package/build/components/link-control/search-results.js +5 -15
- package/build/components/link-control/search-results.js.map +1 -1
- package/build/components/link-control/settings-drawer.js.map +1 -1
- package/build/components/link-control/use-rich-url-data.js.map +1 -1
- package/build/components/list-view/appender.js +1 -1
- package/build/components/list-view/appender.js.map +1 -1
- package/build/components/list-view/block-contents.js +1 -25
- package/build/components/list-view/block-contents.js.map +1 -1
- package/build/components/list-view/block-select-button.js.map +1 -1
- package/build/components/list-view/block.js.map +1 -1
- package/build/components/list-view/branch.js.map +1 -1
- package/build/components/list-view/drop-indicator.js.map +1 -1
- package/build/components/list-view/index.js.map +1 -1
- package/build/components/list-view/use-block-selection.js +2 -2
- package/build/components/list-view/use-block-selection.js.map +1 -1
- package/build/components/list-view/utils.js +1 -1
- package/build/components/list-view/utils.js.map +1 -1
- package/build/components/media-placeholder/index.native.js +1 -1
- package/build/components/media-placeholder/index.native.js.map +1 -1
- package/build/components/media-replace-flow/index.js.map +1 -1
- package/build/components/multi-selection-inspector/index.js +2 -2
- package/build/components/multi-selection-inspector/index.js.map +1 -1
- package/build/components/observe-typing/index.js +1 -0
- package/build/components/observe-typing/index.js.map +1 -1
- package/build/components/recursion-provider/index.js +1 -0
- package/build/components/recursion-provider/index.js.map +1 -1
- package/build/components/responsive-block-control/index.js +3 -3
- package/build/components/responsive-block-control/index.js.map +1 -1
- package/build/components/responsive-block-control/label.js +1 -1
- package/build/components/responsive-block-control/label.js.map +1 -1
- package/build/components/rich-text/content.js.map +1 -1
- package/build/components/rich-text/file-paste-handler.native.js.map +1 -1
- package/build/components/rich-text/format-toolbar/index.js.map +1 -1
- package/build/components/rich-text/format-toolbar/index.native.js.map +1 -1
- package/build/components/rich-text/index.js +3 -2
- package/build/components/rich-text/index.js.map +1 -1
- package/build/components/rich-text/multiline.js.map +1 -1
- package/build/components/rich-text/native/get-format-colors.native.js.map +1 -1
- package/build/components/rich-text/native/index.native.js.map +1 -1
- package/build/components/rich-text/native/use-format-types.js +1 -0
- package/build/components/rich-text/native/use-format-types.js.map +1 -1
- package/build/components/rich-text/toolbar-button.js.map +1 -1
- package/build/components/rich-text/use-format-types.js +1 -0
- package/build/components/rich-text/use-format-types.js.map +1 -1
- package/build/components/spacing-sizes-control/input-controls/axial.js.map +1 -1
- package/build/components/spacing-sizes-control/input-controls/separated.js.map +1 -1
- package/build/components/spacing-sizes-control/input-controls/spacing-input-control.js.map +1 -1
- package/build/components/spacing-sizes-control/utils.js +1 -0
- package/build/components/spacing-sizes-control/utils.js.map +1 -1
- package/build/components/tool-selector/index.js +13 -8
- package/build/components/tool-selector/index.js.map +1 -1
- package/build/components/typewriter/index.js +1 -0
- package/build/components/typewriter/index.js.map +1 -1
- package/build/components/unsupported-block-details/index.native.js.map +1 -1
- package/build/components/url-input/index.js +1 -1
- package/build/components/url-input/index.js.map +1 -1
- package/build/components/use-block-commands/index.js +0 -61
- package/build/components/use-block-commands/index.js.map +1 -1
- package/build/components/use-block-drop-zone/index.js.map +1 -1
- package/build/components/use-flash-editable-blocks/index.js.map +1 -1
- package/build/components/use-moving-animation/index.js.map +1 -1
- package/build/components/writing-flow/use-tab-nav.js +23 -30
- package/build/components/writing-flow/use-tab-nav.js.map +1 -1
- package/build/hooks/align.js.map +1 -1
- package/build/hooks/block-hooks.js +1 -1
- package/build/hooks/block-hooks.js.map +1 -1
- package/build/hooks/block-style-variation.js.map +1 -1
- package/build/hooks/duotone.js +4 -1
- package/build/hooks/duotone.js.map +1 -1
- package/build/hooks/font-family.js.map +1 -1
- package/build/hooks/gap.js.map +1 -1
- package/build/hooks/generated-class-name.js +1 -0
- package/build/hooks/generated-class-name.js.map +1 -1
- package/build/hooks/layout-child.js +3 -1
- package/build/hooks/layout-child.js.map +1 -1
- package/build/hooks/layout.js.map +1 -1
- package/build/hooks/position.js +4 -3
- package/build/hooks/position.js.map +1 -1
- package/build/hooks/spacing-visualizer.js.map +1 -1
- package/build/hooks/style.js.map +1 -1
- package/build/hooks/text-align.js.map +1 -1
- package/build/hooks/use-typography-props.js.map +1 -1
- package/build/hooks/use-zoom-out.js +24 -16
- package/build/hooks/use-zoom-out.js.map +1 -1
- package/build/layouts/constrained.js.map +1 -1
- package/build/layouts/flex.js.map +1 -1
- package/build/layouts/grid.js.map +1 -1
- package/build/layouts/utils.js.map +1 -1
- package/build/store/actions.js +18 -20
- package/build/store/actions.js.map +1 -1
- package/build/store/private-actions.js +15 -0
- package/build/store/private-actions.js.map +1 -1
- package/build/store/private-selectors.js +104 -7
- package/build/store/private-selectors.js.map +1 -1
- package/build/store/reducer.js +24 -44
- package/build/store/reducer.js.map +1 -1
- package/build/store/selectors.js +149 -71
- package/build/store/selectors.js.map +1 -1
- package/build/store/utils.js +4 -3
- package/build/store/utils.js.map +1 -1
- package/build/utils/block-bindings.js +2 -0
- package/build/utils/block-bindings.js.map +1 -1
- package/build/utils/get-font-styles-and-weights.js +1 -1
- package/build/utils/get-font-styles-and-weights.js.map +1 -1
- package/build/utils/object.js +1 -0
- package/build/utils/object.js.map +1 -1
- package/build/utils/pasting.js.map +1 -1
- package/build-module/autocompleters/block.js +1 -3
- package/build-module/autocompleters/block.js.map +1 -1
- package/build-module/autocompleters/link.js +3 -4
- package/build-module/autocompleters/link.js.map +1 -1
- package/build-module/components/audio-player/index.native.js +1 -2
- package/build-module/components/audio-player/index.native.js.map +1 -1
- package/build-module/components/background-image-control/index.js +2 -3
- package/build-module/components/background-image-control/index.js.map +1 -1
- package/build-module/components/block-actions/index.js +1 -13
- package/build-module/components/block-actions/index.js.map +1 -1
- package/build-module/components/block-alignment-control/ui.js +1 -2
- package/build-module/components/block-alignment-control/ui.js.map +1 -1
- package/build-module/components/block-breadcrumb/index.js +1 -2
- package/build-module/components/block-breadcrumb/index.js.map +1 -1
- package/build-module/components/block-canvas/index.js +1 -2
- package/build-module/components/block-canvas/index.js.map +1 -1
- package/build-module/components/block-card/index.js +1 -2
- package/build-module/components/block-card/index.js.map +1 -1
- package/build-module/components/block-compare/block-view.js +1 -2
- package/build-module/components/block-compare/block-view.js.map +1 -1
- package/build-module/components/block-compare/index.js +1 -2
- package/build-module/components/block-compare/index.js.map +1 -1
- package/build-module/components/block-controls/fill.js +1 -3
- package/build-module/components/block-controls/fill.js.map +1 -1
- package/build-module/components/block-controls/slot.js.map +1 -1
- package/build-module/components/block-controls/slot.native.js.map +1 -1
- package/build-module/components/block-draggable/draggable-chip.js +2 -3
- package/build-module/components/block-draggable/draggable-chip.js.map +1 -1
- package/build-module/components/block-draggable/draggable-chip.native.js +1 -2
- package/build-module/components/block-draggable/draggable-chip.native.js.map +1 -1
- package/build-module/components/block-draggable/index.native.js +1 -3
- package/build-module/components/block-draggable/index.native.js.map +1 -1
- package/build-module/components/block-edit/index.js +1 -2
- package/build-module/components/block-edit/index.js.map +1 -1
- package/build-module/components/block-edit/multiple-usage-warning.js +1 -2
- package/build-module/components/block-edit/multiple-usage-warning.js.map +1 -1
- package/build-module/components/block-inspector/index.js +57 -78
- package/build-module/components/block-inspector/index.js.map +1 -1
- package/build-module/components/block-list/block-crash-warning.js +1 -1
- package/build-module/components/block-list/block-crash-warning.js.map +1 -1
- package/build-module/components/block-list/block-crash-warning.native.js +1 -1
- package/build-module/components/block-list/block-crash-warning.native.js.map +1 -1
- package/build-module/components/block-list/block-invalid-warning.js +1 -3
- package/build-module/components/block-list/block-invalid-warning.js.map +1 -1
- package/build-module/components/block-list/block-invalid-warning.native.js +1 -1
- package/build-module/components/block-list/block-invalid-warning.native.js.map +1 -1
- package/build-module/components/block-list/block-list-item.native.js +1 -2
- package/build-module/components/block-list/block-list-item.native.js.map +1 -1
- package/build-module/components/block-list/block-selection-button.native.js +1 -2
- package/build-module/components/block-list/block-selection-button.native.js.map +1 -1
- package/build-module/components/block-list/block.js +6 -19
- package/build-module/components/block-list/block.js.map +1 -1
- package/build-module/components/block-list/block.native.js +1 -2
- package/build-module/components/block-list/block.native.js.map +1 -1
- package/build-module/components/block-list/index.js +7 -10
- package/build-module/components/block-list/index.js.map +1 -1
- package/build-module/components/block-list/index.native.js +1 -3
- package/build-module/components/block-list/index.native.js.map +1 -1
- package/build-module/components/block-list/insertion-point.native.js +1 -2
- package/build-module/components/block-list/insertion-point.native.js.map +1 -1
- package/build-module/components/block-list/use-block-props/index.js +3 -8
- package/build-module/components/block-list/use-block-props/index.js.map +1 -1
- package/build-module/components/block-list/use-block-props/use-selected-block-event-handlers.js +14 -6
- package/build-module/components/block-list/use-block-props/use-selected-block-event-handlers.js.map +1 -1
- package/build-module/components/block-list/use-in-between-inserter.js +5 -3
- package/build-module/components/block-list/use-in-between-inserter.js.map +1 -1
- package/build-module/components/block-list/zoom-out-separator.js +24 -13
- package/build-module/components/block-list/zoom-out-separator.js.map +1 -1
- package/build-module/components/block-lock/menu-item.js +1 -3
- package/build-module/components/block-lock/menu-item.js.map +1 -1
- package/build-module/components/block-lock/modal.js +2 -3
- package/build-module/components/block-lock/modal.js.map +1 -1
- package/build-module/components/block-lock/toolbar.js +1 -3
- package/build-module/components/block-lock/toolbar.js.map +1 -1
- package/build-module/components/block-media-update-progress/index.native.js +1 -2
- package/build-module/components/block-media-update-progress/index.native.js.map +1 -1
- package/build-module/components/block-mover/button.js +1 -3
- package/build-module/components/block-mover/button.js.map +1 -1
- package/build-module/components/block-mover/index.js +1 -2
- package/build-module/components/block-mover/index.js.map +1 -1
- package/build-module/components/block-mover/index.native.js +1 -2
- package/build-module/components/block-mover/index.native.js.map +1 -1
- package/build-module/components/block-navigation/dropdown.js +3 -6
- package/build-module/components/block-navigation/dropdown.js.map +1 -1
- package/build-module/components/block-parent-selector/index.js +14 -11
- package/build-module/components/block-parent-selector/index.js.map +1 -1
- package/build-module/components/block-pattern-setup/index.js +1 -3
- package/build-module/components/block-pattern-setup/index.js.map +1 -1
- package/build-module/components/block-pattern-setup/setup-toolbar.js +11 -22
- package/build-module/components/block-pattern-setup/setup-toolbar.js.map +1 -1
- package/build-module/components/block-patterns-list/index.js +1 -3
- package/build-module/components/block-patterns-list/index.js.map +1 -1
- package/build-module/components/block-patterns-paging/index.js +12 -15
- package/build-module/components/block-patterns-paging/index.js.map +1 -1
- package/build-module/components/block-popover/index.js +45 -2
- package/build-module/components/block-popover/index.js.map +1 -1
- package/build-module/components/block-preview/auto.js +2 -7
- package/build-module/components/block-preview/auto.js.map +1 -1
- package/build-module/components/block-preview/index.js +1 -2
- package/build-module/components/block-preview/index.js.map +1 -1
- package/build-module/components/block-quick-navigation/index.js +3 -6
- package/build-module/components/block-quick-navigation/index.js.map +1 -1
- package/build-module/components/block-removal-warning-modal/index.js +1 -2
- package/build-module/components/block-removal-warning-modal/index.js.map +1 -1
- package/build-module/components/block-rename/modal.js +3 -4
- package/build-module/components/block-rename/modal.js.map +1 -1
- package/build-module/components/block-rename/rename-control.js +1 -3
- package/build-module/components/block-rename/rename-control.js.map +1 -1
- package/build-module/components/block-settings/container.native.js +1 -3
- package/build-module/components/block-settings/container.native.js.map +1 -1
- package/build-module/components/block-settings-menu/block-parent-selector-menu-item.js +1 -1
- package/build-module/components/block-settings-menu/block-parent-selector-menu-item.js.map +1 -1
- package/build-module/components/block-settings-menu/block-settings-dropdown.js +80 -79
- package/build-module/components/block-settings-menu/block-settings-dropdown.js.map +1 -1
- package/build-module/components/block-settings-menu-controls/index.js +3 -9
- package/build-module/components/block-settings-menu-controls/index.js.map +1 -1
- package/build-module/components/block-styles/index.js +1 -2
- package/build-module/components/block-styles/index.js.map +1 -1
- package/build-module/components/block-styles/menu-items.js +1 -2
- package/build-module/components/block-styles/menu-items.js.map +1 -1
- package/build-module/components/block-styles/preview.native.js +1 -2
- package/build-module/components/block-styles/preview.native.js.map +1 -1
- package/build-module/components/block-switcher/block-transformations-menu.js +1 -3
- package/build-module/components/block-switcher/block-transformations-menu.js.map +1 -1
- package/build-module/components/block-switcher/block-transformations-menu.native.js +1 -1
- package/build-module/components/block-switcher/block-transformations-menu.native.js.map +1 -1
- package/build-module/components/block-switcher/block-variation-transformations.js +1 -3
- package/build-module/components/block-switcher/block-variation-transformations.js.map +1 -1
- package/build-module/components/block-switcher/index.js +20 -18
- package/build-module/components/block-switcher/index.js.map +1 -1
- package/build-module/components/block-switcher/pattern-transformations-menu.js +1 -2
- package/build-module/components/block-switcher/pattern-transformations-menu.js.map +1 -1
- package/build-module/components/block-switcher/preview-block-popover.js +1 -2
- package/build-module/components/block-switcher/preview-block-popover.js.map +1 -1
- package/build-module/components/block-switcher/use-transformed-patterns.js +1 -0
- package/build-module/components/block-switcher/use-transformed-patterns.js.map +1 -1
- package/build-module/components/block-switcher/utils.js +1 -0
- package/build-module/components/block-switcher/utils.js.map +1 -1
- package/build-module/components/block-toolbar/block-toolbar-menu.native.js +1 -2
- package/build-module/components/block-toolbar/block-toolbar-menu.native.js.map +1 -1
- package/build-module/components/block-toolbar/index.js +17 -22
- package/build-module/components/block-toolbar/index.js.map +1 -1
- package/build-module/components/block-toolbar/index.native.js +1 -3
- package/build-module/components/block-toolbar/index.native.js.map +1 -1
- package/build-module/components/block-toolbar/use-has-block-toolbar.js +3 -5
- package/build-module/components/block-toolbar/use-has-block-toolbar.js.map +1 -1
- package/build-module/components/block-tools/index.js +9 -20
- package/build-module/components/block-tools/index.js.map +1 -1
- package/build-module/components/block-tools/insertion-point.js +2 -6
- package/build-module/components/block-tools/insertion-point.js.map +1 -1
- package/build-module/components/block-tools/use-show-block-tools.js +8 -7
- package/build-module/components/block-tools/use-show-block-tools.js.map +1 -1
- package/build-module/components/block-tools/zoom-out-mode-inserter-button.js +1 -12
- package/build-module/components/block-tools/zoom-out-mode-inserter-button.js.map +1 -1
- package/build-module/components/block-tools/zoom-out-mode-inserters.js +14 -17
- package/build-module/components/block-tools/zoom-out-mode-inserters.js.map +1 -1
- package/build-module/components/block-tools/zoom-out-popover.js +2 -1
- package/build-module/components/block-tools/zoom-out-popover.js.map +1 -1
- package/build-module/components/block-tools/zoom-out-toolbar.js +7 -35
- package/build-module/components/block-tools/zoom-out-toolbar.js.map +1 -1
- package/build-module/components/block-types-list/index.js +1 -2
- package/build-module/components/block-types-list/index.js.map +1 -1
- package/build-module/components/block-types-list/index.native.js +1 -2
- package/build-module/components/block-types-list/index.native.js.map +1 -1
- package/build-module/components/block-variation-picker/index.js +1 -2
- package/build-module/components/block-variation-picker/index.js.map +1 -1
- package/build-module/components/block-variation-picker/index.native.js +1 -2
- package/build-module/components/block-variation-picker/index.native.js.map +1 -1
- package/build-module/components/block-variation-transforms/index.js +4 -4
- package/build-module/components/block-variation-transforms/index.js.map +1 -1
- package/build-module/components/border-radius-control/index.js +1 -3
- package/build-module/components/border-radius-control/index.js.map +1 -1
- package/build-module/components/border-radius-control/utils.js.map +1 -1
- package/build-module/components/button-block-appender/index.js.map +1 -1
- package/build-module/components/button-block-appender/index.native.js +1 -2
- package/build-module/components/button-block-appender/index.native.js.map +1 -1
- package/build-module/components/child-layout-control/index.js +1 -3
- package/build-module/components/child-layout-control/index.js.map +1 -1
- package/build-module/components/color-style-selector/index.js.map +1 -1
- package/build-module/components/colors/utils.js.map +1 -1
- package/build-module/components/colors/with-colors.js.map +1 -1
- package/build-module/components/colors-gradients/control.js +1 -2
- package/build-module/components/colors-gradients/control.js.map +1 -1
- package/build-module/components/colors-gradients/dropdown.js +1 -3
- package/build-module/components/colors-gradients/dropdown.js.map +1 -1
- package/build-module/components/colors-gradients/panel-color-gradient-settings.js +1 -3
- package/build-module/components/colors-gradients/panel-color-gradient-settings.js.map +1 -1
- package/build-module/components/colors-gradients/panel-color-gradient-settings.native.js +1 -3
- package/build-module/components/colors-gradients/panel-color-gradient-settings.native.js.map +1 -1
- package/build-module/components/contrast-checker/index.native.js +1 -2
- package/build-module/components/contrast-checker/index.native.js.map +1 -1
- package/build-module/components/convert-to-group-buttons/index.js +1 -3
- package/build-module/components/convert-to-group-buttons/index.js.map +1 -1
- package/build-module/components/convert-to-group-buttons/toolbar.js +1 -2
- package/build-module/components/convert-to-group-buttons/toolbar.js.map +1 -1
- package/build-module/components/date-format-picker/index.js +2 -2
- package/build-module/components/date-format-picker/index.js.map +1 -1
- package/build-module/components/default-block-appender/index.js +1 -2
- package/build-module/components/default-block-appender/index.js.map +1 -1
- package/build-module/components/dimensions-tool/index.js +1 -3
- package/build-module/components/dimensions-tool/index.js.map +1 -1
- package/build-module/components/dimensions-tool/width-height-tool.js +1 -3
- package/build-module/components/dimensions-tool/width-height-tool.js.map +1 -1
- package/build-module/components/duotone/utils.js.map +1 -1
- package/build-module/components/duotone-control/index.js +1 -2
- package/build-module/components/duotone-control/index.js.map +1 -1
- package/build-module/components/editor-styles/index.js +1 -3
- package/build-module/components/editor-styles/index.js.map +1 -1
- package/build-module/components/floating-toolbar/index.native.js +1 -2
- package/build-module/components/floating-toolbar/index.native.js.map +1 -1
- package/build-module/components/floating-toolbar/nav-up-icon.js +1 -2
- package/build-module/components/floating-toolbar/nav-up-icon.js.map +1 -1
- package/build-module/components/font-sizes/fluid-utils.js.map +1 -1
- package/build-module/components/font-sizes/utils.js.map +1 -1
- package/build-module/components/font-sizes/with-font-sizes.js +2 -2
- package/build-module/components/font-sizes/with-font-sizes.js.map +1 -1
- package/build-module/components/global-styles/advanced-panel.js +1 -2
- package/build-module/components/global-styles/advanced-panel.js.map +1 -1
- package/build-module/components/global-styles/border-panel.js +2 -3
- package/build-module/components/global-styles/border-panel.js.map +1 -1
- package/build-module/components/global-styles/color-panel.js +2 -3
- package/build-module/components/global-styles/color-panel.js.map +1 -1
- package/build-module/components/global-styles/dimensions-panel.js +2 -3
- package/build-module/components/global-styles/dimensions-panel.js.map +1 -1
- package/build-module/components/global-styles/filters-panel.js +1 -2
- package/build-module/components/global-styles/filters-panel.js.map +1 -1
- package/build-module/components/global-styles/get-block-css-selector.js.map +1 -1
- package/build-module/components/global-styles/get-global-styles-changes.js +2 -1
- package/build-module/components/global-styles/get-global-styles-changes.js.map +1 -1
- package/build-module/components/global-styles/hooks.js.map +1 -1
- package/build-module/components/global-styles/image-settings-panel.js +1 -2
- package/build-module/components/global-styles/image-settings-panel.js.map +1 -1
- package/build-module/components/global-styles/shadow-panel-components.js +1 -2
- package/build-module/components/global-styles/shadow-panel-components.js.map +1 -1
- package/build-module/components/global-styles/typography-panel.js +1 -2
- package/build-module/components/global-styles/typography-panel.js.map +1 -1
- package/build-module/components/global-styles/use-global-styles-context.native.js.map +1 -1
- package/build-module/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build-module/components/global-styles/utils.js.map +1 -1
- package/build-module/components/gradients/use-gradient.js.map +1 -1
- package/build-module/components/grid/grid-item-movers.js +1 -3
- package/build-module/components/grid/grid-item-movers.js.map +1 -1
- package/build-module/components/grid/grid-visualizer.js.map +1 -1
- package/build-module/components/height-control/index.js +1 -2
- package/build-module/components/height-control/index.js.map +1 -1
- package/build-module/components/iframe/index.js +45 -12
- package/build-module/components/iframe/index.js.map +1 -1
- package/build-module/components/image-editor/aspect-ratio-dropdown.js +1 -3
- package/build-module/components/image-editor/aspect-ratio-dropdown.js.map +1 -1
- package/build-module/components/image-editor/cropper.js +1 -3
- package/build-module/components/image-editor/cropper.js.map +1 -1
- package/build-module/components/image-editor/form-controls.js +1 -3
- package/build-module/components/image-editor/form-controls.js.map +1 -1
- package/build-module/components/image-editor/index.js +1 -2
- package/build-module/components/image-editor/index.js.map +1 -1
- package/build-module/components/image-editor/use-save-image.js +1 -1
- package/build-module/components/image-editor/use-save-image.js.map +1 -1
- package/build-module/components/image-link-destinations/index.native.js +1 -3
- package/build-module/components/image-link-destinations/index.native.js.map +1 -1
- package/build-module/components/image-size-control/index.js +1 -3
- package/build-module/components/image-size-control/index.js.map +1 -1
- package/build-module/components/inner-blocks/index.js +1 -9
- package/build-module/components/inner-blocks/index.js.map +1 -1
- package/build-module/components/inner-blocks/use-nested-settings-update.js +16 -9
- package/build-module/components/inner-blocks/use-nested-settings-update.js.map +1 -1
- package/build-module/components/inner-blocks/warning-max-depth-exceeded.native.js +1 -2
- package/build-module/components/inner-blocks/warning-max-depth-exceeded.native.js.map +1 -1
- package/build-module/components/inserter/block-patterns-explorer/index.js +1 -2
- package/build-module/components/inserter/block-patterns-explorer/index.js.map +1 -1
- package/build-module/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.js +2 -3
- package/build-module/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.js.map +1 -1
- package/build-module/components/inserter/block-patterns-explorer/pattern-list.js +3 -5
- package/build-module/components/inserter/block-patterns-explorer/pattern-list.js.map +1 -1
- package/build-module/components/inserter/block-patterns-tab/index.js +1 -3
- package/build-module/components/inserter/block-patterns-tab/index.js.map +1 -1
- package/build-module/components/inserter/block-patterns-tab/pattern-category-previews.js +1 -3
- package/build-module/components/inserter/block-patterns-tab/pattern-category-previews.js.map +1 -1
- package/build-module/components/inserter/block-patterns-tab/patterns-filter.js +1 -3
- package/build-module/components/inserter/block-patterns-tab/patterns-filter.js.map +1 -1
- package/build-module/components/inserter/block-patterns-tab/use-pattern-categories.js +1 -1
- package/build-module/components/inserter/block-patterns-tab/use-pattern-categories.js.map +1 -1
- package/build-module/components/inserter/block-types-tab.js +2 -4
- package/build-module/components/inserter/block-types-tab.js.map +1 -1
- package/build-module/components/inserter/block-types-tab.native.js.map +1 -1
- package/build-module/components/inserter/category-tabs/index.js +3 -13
- package/build-module/components/inserter/category-tabs/index.js.map +1 -1
- package/build-module/components/inserter/hooks/use-block-types-state.js +27 -8
- package/build-module/components/inserter/hooks/use-block-types-state.js.map +1 -1
- package/build-module/components/inserter/hooks/use-insertion-point.js +22 -12
- package/build-module/components/inserter/hooks/use-insertion-point.js.map +1 -1
- package/build-module/components/inserter/hooks/use-patterns-state.js +24 -11
- package/build-module/components/inserter/hooks/use-patterns-state.js.map +1 -1
- package/build-module/components/inserter/index.native.js +1 -3
- package/build-module/components/inserter/index.native.js.map +1 -1
- package/build-module/components/inserter/media-tab/media-panel.js +1 -2
- package/build-module/components/inserter/media-tab/media-panel.js.map +1 -1
- package/build-module/components/inserter/media-tab/media-preview.js +37 -17
- package/build-module/components/inserter/media-tab/media-preview.js.map +1 -1
- package/build-module/components/inserter/media-tab/media-tab.js +1 -3
- package/build-module/components/inserter/media-tab/media-tab.js.map +1 -1
- package/build-module/components/inserter/media-tab/utils.js.map +1 -1
- package/build-module/components/inserter/menu.js +5 -7
- package/build-module/components/inserter/menu.js.map +1 -1
- package/build-module/components/inserter/menu.native.js +1 -3
- package/build-module/components/inserter/menu.native.js.map +1 -1
- package/build-module/components/inserter/mobile-tab-navigation.js +7 -8
- package/build-module/components/inserter/mobile-tab-navigation.js.map +1 -1
- package/build-module/components/inserter/no-results.js +1 -2
- package/build-module/components/inserter/no-results.js.map +1 -1
- package/build-module/components/inserter/no-results.native.js +1 -2
- package/build-module/components/inserter/no-results.native.js.map +1 -1
- package/build-module/components/inserter/panel.js +1 -3
- package/build-module/components/inserter/panel.js.map +1 -1
- package/build-module/components/inserter/preview-panel.js +1 -2
- package/build-module/components/inserter/preview-panel.js.map +1 -1
- package/build-module/components/inserter/quick-inserter.js +6 -7
- package/build-module/components/inserter/quick-inserter.js.map +1 -1
- package/build-module/components/inserter/search-results.js +2 -3
- package/build-module/components/inserter/search-results.js.map +1 -1
- package/build-module/components/inserter/tabs.native.js.map +1 -1
- package/build-module/components/inserter-button/index.native.js +1 -2
- package/build-module/components/inserter-button/index.native.js.map +1 -1
- package/build-module/components/inserter-list-item/index.js +1 -2
- package/build-module/components/inserter-list-item/index.js.map +1 -1
- package/build-module/components/inserter-listbox/index.js +1 -2
- package/build-module/components/inserter-listbox/index.js.map +1 -1
- package/build-module/components/inspector-controls/block-support-tools-panel.js.map +1 -1
- package/build-module/components/inspector-controls/fill.js.map +1 -1
- package/build-module/components/inspector-controls/fill.native.js +1 -3
- package/build-module/components/inspector-controls/fill.native.js.map +1 -1
- package/build-module/components/inspector-controls/slot.js.map +1 -1
- package/build-module/components/inspector-controls/slot.native.js.map +1 -1
- package/build-module/components/inspector-controls-tabs/index.js +1 -2
- package/build-module/components/inspector-controls-tabs/index.js.map +1 -1
- package/build-module/components/inspector-controls-tabs/settings-tab.js +1 -3
- package/build-module/components/inspector-controls-tabs/settings-tab.js.map +1 -1
- package/build-module/components/inspector-controls-tabs/styles-tab.js +1 -3
- package/build-module/components/inspector-controls-tabs/styles-tab.js.map +1 -1
- package/build-module/components/inspector-popover-header/index.js +1 -2
- package/build-module/components/inspector-popover-header/index.js.map +1 -1
- package/build-module/components/line-height-control/index.js.map +1 -1
- package/build-module/components/link-control/index.js +2 -5
- package/build-module/components/link-control/index.js.map +1 -1
- package/build-module/components/link-control/is-url-like.js.map +1 -1
- package/build-module/components/link-control/link-preview.js +1 -3
- package/build-module/components/link-control/link-preview.js.map +1 -1
- package/build-module/components/link-control/search-create-button.js +1 -1
- package/build-module/components/link-control/search-create-button.js.map +1 -1
- package/build-module/components/link-control/search-input.js +4 -7
- package/build-module/components/link-control/search-input.js.map +1 -1
- package/build-module/components/link-control/search-results.js +6 -17
- package/build-module/components/link-control/search-results.js.map +1 -1
- package/build-module/components/link-control/settings-drawer.js +1 -3
- package/build-module/components/link-control/settings-drawer.js.map +1 -1
- package/build-module/components/link-control/settings.js +1 -2
- package/build-module/components/link-control/settings.js.map +1 -1
- package/build-module/components/link-control/use-rich-url-data.js.map +1 -1
- package/build-module/components/list-view/appender.js +2 -3
- package/build-module/components/list-view/appender.js.map +1 -1
- package/build-module/components/list-view/block-contents.js +2 -28
- package/build-module/components/list-view/block-contents.js.map +1 -1
- package/build-module/components/list-view/block-select-button.js +1 -2
- package/build-module/components/list-view/block-select-button.js.map +1 -1
- package/build-module/components/list-view/block.js +1 -3
- package/build-module/components/list-view/block.js.map +1 -1
- package/build-module/components/list-view/branch.js +1 -3
- package/build-module/components/list-view/branch.js.map +1 -1
- package/build-module/components/list-view/drop-indicator.js +1 -2
- package/build-module/components/list-view/drop-indicator.js.map +1 -1
- package/build-module/components/list-view/index.js +1 -2
- package/build-module/components/list-view/index.js.map +1 -1
- package/build-module/components/list-view/use-block-selection.js +2 -2
- package/build-module/components/list-view/use-block-selection.js.map +1 -1
- package/build-module/components/list-view/utils.js +1 -1
- package/build-module/components/list-view/utils.js.map +1 -1
- package/build-module/components/media-placeholder/index.js +1 -3
- package/build-module/components/media-placeholder/index.js.map +1 -1
- package/build-module/components/media-placeholder/index.native.js +2 -4
- package/build-module/components/media-placeholder/index.native.js.map +1 -1
- package/build-module/components/media-replace-flow/index.js +1 -3
- package/build-module/components/media-replace-flow/index.js.map +1 -1
- package/build-module/components/media-upload/index.native.js +1 -3
- package/build-module/components/media-upload/index.native.js.map +1 -1
- package/build-module/components/media-upload-progress/index.native.js +1 -2
- package/build-module/components/media-upload-progress/index.native.js.map +1 -1
- package/build-module/components/multi-selection-inspector/index.js +3 -4
- package/build-module/components/multi-selection-inspector/index.js.map +1 -1
- package/build-module/components/observe-typing/index.js +1 -0
- package/build-module/components/observe-typing/index.js.map +1 -1
- package/build-module/components/provider/index.js +1 -2
- package/build-module/components/provider/index.js.map +1 -1
- package/build-module/components/publish-date-time-picker/index.js +1 -2
- package/build-module/components/publish-date-time-picker/index.js.map +1 -1
- package/build-module/components/recursion-provider/index.js +1 -0
- package/build-module/components/recursion-provider/index.js.map +1 -1
- package/build-module/components/responsive-block-control/index.js +4 -5
- package/build-module/components/responsive-block-control/index.js.map +1 -1
- package/build-module/components/responsive-block-control/label.js +2 -4
- package/build-module/components/responsive-block-control/label.js.map +1 -1
- package/build-module/components/rich-text/content.js.map +1 -1
- package/build-module/components/rich-text/event-listeners/before-input-rules.js +2 -2
- package/build-module/components/rich-text/event-listeners/before-input-rules.js.map +1 -1
- package/build-module/components/rich-text/event-listeners/delete.js +2 -2
- package/build-module/components/rich-text/event-listeners/delete.js.map +1 -1
- package/build-module/components/rich-text/event-listeners/enter.js +2 -2
- package/build-module/components/rich-text/event-listeners/enter.js.map +1 -1
- package/build-module/components/rich-text/event-listeners/firefox-compat.js +2 -2
- package/build-module/components/rich-text/event-listeners/firefox-compat.js.map +1 -1
- package/build-module/components/rich-text/event-listeners/input-events.js +2 -2
- package/build-module/components/rich-text/event-listeners/input-events.js.map +1 -1
- package/build-module/components/rich-text/event-listeners/input-rules.js +2 -2
- package/build-module/components/rich-text/event-listeners/input-rules.js.map +1 -1
- package/build-module/components/rich-text/event-listeners/insert-replacement-text.js +2 -2
- package/build-module/components/rich-text/event-listeners/insert-replacement-text.js.map +1 -1
- package/build-module/components/rich-text/event-listeners/paste-handler.js +2 -2
- package/build-module/components/rich-text/event-listeners/paste-handler.js.map +1 -1
- package/build-module/components/rich-text/event-listeners/remove-browser-shortcuts.js +2 -2
- package/build-module/components/rich-text/event-listeners/remove-browser-shortcuts.js.map +1 -1
- package/build-module/components/rich-text/event-listeners/shortcuts.js +2 -2
- package/build-module/components/rich-text/event-listeners/shortcuts.js.map +1 -1
- package/build-module/components/rich-text/event-listeners/undo-automatic-change.js +2 -2
- package/build-module/components/rich-text/event-listeners/undo-automatic-change.js.map +1 -1
- package/build-module/components/rich-text/file-paste-handler.native.js.map +1 -1
- package/build-module/components/rich-text/format-toolbar/index.js +1 -3
- package/build-module/components/rich-text/format-toolbar/index.js.map +1 -1
- package/build-module/components/rich-text/format-toolbar/index.native.js +1 -3
- package/build-module/components/rich-text/format-toolbar/index.native.js.map +1 -1
- package/build-module/components/rich-text/index.js +4 -5
- package/build-module/components/rich-text/index.js.map +1 -1
- package/build-module/components/rich-text/index.native.js +1 -3
- package/build-module/components/rich-text/index.native.js.map +1 -1
- package/build-module/components/rich-text/multiline.js.map +1 -1
- package/build-module/components/rich-text/native/get-format-colors.native.js.map +1 -1
- package/build-module/components/rich-text/native/index.js +1 -1
- package/build-module/components/rich-text/native/index.js.map +1 -1
- package/build-module/components/rich-text/native/index.native.js +1 -3
- package/build-module/components/rich-text/native/index.native.js.map +1 -1
- package/build-module/components/rich-text/native/toolbar-button-with-options.native.js +1 -3
- package/build-module/components/rich-text/native/toolbar-button-with-options.native.js.map +1 -1
- package/build-module/components/rich-text/native/use-format-types.js +1 -0
- package/build-module/components/rich-text/native/use-format-types.js.map +1 -1
- package/build-module/components/rich-text/toolbar-button.js.map +1 -1
- package/build-module/components/rich-text/use-format-types.js +1 -0
- package/build-module/components/rich-text/use-format-types.js.map +1 -1
- package/build-module/components/spacing-sizes-control/index.js +1 -2
- package/build-module/components/spacing-sizes-control/index.js.map +1 -1
- package/build-module/components/spacing-sizes-control/input-controls/axial.js +1 -2
- package/build-module/components/spacing-sizes-control/input-controls/axial.js.map +1 -1
- package/build-module/components/spacing-sizes-control/input-controls/separated.js +1 -2
- package/build-module/components/spacing-sizes-control/input-controls/separated.js.map +1 -1
- package/build-module/components/spacing-sizes-control/input-controls/spacing-input-control.js +1 -3
- package/build-module/components/spacing-sizes-control/input-controls/spacing-input-control.js.map +1 -1
- package/build-module/components/spacing-sizes-control/utils.js +1 -0
- package/build-module/components/spacing-sizes-control/utils.js.map +1 -1
- package/build-module/components/tabbed-sidebar/index.js +1 -2
- package/build-module/components/tabbed-sidebar/index.js.map +1 -1
- package/build-module/components/tool-selector/index.js +14 -11
- package/build-module/components/tool-selector/index.js.map +1 -1
- package/build-module/components/typewriter/index.js +1 -0
- package/build-module/components/typewriter/index.js.map +1 -1
- package/build-module/components/unsupported-block-details/index.native.js +1 -2
- package/build-module/components/unsupported-block-details/index.native.js.map +1 -1
- package/build-module/components/url-input/button.js +1 -2
- package/build-module/components/url-input/button.js.map +1 -1
- package/build-module/components/url-input/index.js +2 -4
- package/build-module/components/url-input/index.js.map +1 -1
- package/build-module/components/url-popover/image-url-input-ui.js +1 -3
- package/build-module/components/url-popover/image-url-input-ui.js.map +1 -1
- package/build-module/components/url-popover/index.js +1 -2
- package/build-module/components/url-popover/index.js.map +1 -1
- package/build-module/components/url-popover/link-editor.js +1 -2
- package/build-module/components/url-popover/link-editor.js.map +1 -1
- package/build-module/components/url-popover/link-viewer.js +1 -2
- package/build-module/components/url-popover/link-viewer.js.map +1 -1
- package/build-module/components/use-block-commands/index.js +1 -62
- package/build-module/components/use-block-commands/index.js.map +1 -1
- package/build-module/components/use-block-drop-zone/index.js.map +1 -1
- package/build-module/components/use-flash-editable-blocks/index.js.map +1 -1
- package/build-module/components/use-moving-animation/index.js.map +1 -1
- package/build-module/components/video-player/index.native.js +1 -2
- package/build-module/components/video-player/index.native.js.map +1 -1
- package/build-module/components/warning/index.js +1 -2
- package/build-module/components/warning/index.js.map +1 -1
- package/build-module/components/warning/index.native.js +1 -2
- package/build-module/components/warning/index.native.js.map +1 -1
- package/build-module/components/writing-flow/index.js +1 -3
- package/build-module/components/writing-flow/index.js.map +1 -1
- package/build-module/components/writing-flow/use-tab-nav.js +24 -31
- package/build-module/components/writing-flow/use-tab-nav.js.map +1 -1
- package/build-module/hooks/align.js.map +1 -1
- package/build-module/hooks/anchor.js +1 -3
- package/build-module/hooks/anchor.js.map +1 -1
- package/build-module/hooks/block-bindings.js +1 -3
- package/build-module/hooks/block-bindings.js.map +1 -1
- package/build-module/hooks/block-hooks.js +2 -3
- package/build-module/hooks/block-hooks.js.map +1 -1
- package/build-module/hooks/block-style-variation.js +1 -2
- package/build-module/hooks/block-style-variation.js.map +1 -1
- package/build-module/hooks/dimensions.js +1 -3
- package/build-module/hooks/dimensions.js.map +1 -1
- package/build-module/hooks/duotone.js +5 -4
- package/build-module/hooks/duotone.js.map +1 -1
- package/build-module/hooks/font-family.js.map +1 -1
- package/build-module/hooks/gap.js.map +1 -1
- package/build-module/hooks/generated-class-name.js +1 -0
- package/build-module/hooks/generated-class-name.js.map +1 -1
- package/build-module/hooks/grid-visualizer.js +1 -3
- package/build-module/hooks/grid-visualizer.js.map +1 -1
- package/build-module/hooks/layout-child.js +5 -4
- package/build-module/hooks/layout-child.js.map +1 -1
- package/build-module/hooks/layout.js +1 -3
- package/build-module/hooks/layout.js.map +1 -1
- package/build-module/hooks/position.js +5 -2
- package/build-module/hooks/position.js.map +1 -1
- package/build-module/hooks/spacing-visualizer.js.map +1 -1
- package/build-module/hooks/style.js +1 -3
- package/build-module/hooks/style.js.map +1 -1
- package/build-module/hooks/text-align.js.map +1 -1
- package/build-module/hooks/typography.native.js +1 -2
- package/build-module/hooks/typography.native.js.map +1 -1
- package/build-module/hooks/use-bindings-attributes.js +1 -2
- package/build-module/hooks/use-bindings-attributes.js.map +1 -1
- package/build-module/hooks/use-typography-props.js.map +1 -1
- package/build-module/hooks/use-zoom-out.js +24 -17
- package/build-module/hooks/use-zoom-out.js.map +1 -1
- package/build-module/layouts/constrained.js +1 -3
- package/build-module/layouts/constrained.js.map +1 -1
- package/build-module/layouts/flex.js +1 -3
- package/build-module/layouts/flex.js.map +1 -1
- package/build-module/layouts/grid.js +1 -3
- package/build-module/layouts/grid.js.map +1 -1
- package/build-module/layouts/utils.js.map +1 -1
- package/build-module/store/actions.js +17 -18
- package/build-module/store/actions.js.map +1 -1
- package/build-module/store/private-actions.js +14 -0
- package/build-module/store/private-actions.js.map +1 -1
- package/build-module/store/private-selectors.js +98 -7
- package/build-module/store/private-selectors.js.map +1 -1
- package/build-module/store/reducer.js +22 -41
- package/build-module/store/reducer.js.map +1 -1
- package/build-module/store/selectors.js +150 -70
- package/build-module/store/selectors.js.map +1 -1
- package/build-module/store/utils.js +3 -2
- package/build-module/store/utils.js.map +1 -1
- package/build-module/utils/block-bindings.js +2 -0
- package/build-module/utils/block-bindings.js.map +1 -1
- package/build-module/utils/get-font-styles-and-weights.js +1 -1
- package/build-module/utils/get-font-styles-and-weights.js.map +1 -1
- package/build-module/utils/get-px-from-css-unit.js +1 -1
- package/build-module/utils/get-px-from-css-unit.js.map +1 -1
- package/build-module/utils/object.js +1 -0
- package/build-module/utils/object.js.map +1 -1
- package/build-module/utils/pasting.js.map +1 -1
- package/build-style/content-rtl.css +22 -73
- package/build-style/content.css +22 -73
- package/build-style/default-editor-styles-rtl.css +10 -1
- package/build-style/default-editor-styles.css +10 -1
- package/build-style/style-rtl.css +48 -165
- package/build-style/style.css +48 -165
- package/package.json +33 -33
- package/src/autocompleters/link.js +2 -1
- package/src/components/block-actions/index.js +1 -13
- package/src/components/block-canvas/style.scss +0 -1
- package/src/components/block-draggable/style.scss +2 -2
- package/src/components/block-inspector/index.js +79 -95
- package/src/components/block-list/block.js +7 -25
- package/src/components/block-list/content.scss +4 -63
- package/src/components/block-list/index.js +21 -29
- package/src/components/block-list/use-block-props/index.js +2 -8
- package/src/components/block-list/use-block-props/use-selected-block-event-handlers.js +25 -4
- package/src/components/block-list/use-in-between-inserter.js +5 -2
- package/src/components/block-list/zoom-out-separator.js +32 -14
- package/src/components/block-navigation/dropdown.js +1 -2
- package/src/components/block-parent-selector/index.js +13 -10
- package/src/components/block-pattern-setup/setup-toolbar.js +5 -10
- package/src/components/block-patterns-paging/index.js +8 -7
- package/src/components/block-patterns-paging/style.scss +10 -27
- package/src/components/block-popover/index.js +64 -2
- package/src/components/block-preview/auto.js +1 -4
- package/src/components/block-quick-navigation/index.js +1 -2
- package/src/components/block-settings-menu/block-settings-dropdown.js +120 -106
- package/src/components/block-settings-menu-controls/index.js +0 -15
- package/src/components/block-switcher/index.js +37 -30
- package/src/components/block-toolbar/index.js +22 -34
- package/src/components/block-toolbar/style.scss +10 -1
- package/src/components/block-toolbar/use-has-block-toolbar.js +19 -31
- package/src/components/block-tools/index.js +7 -27
- package/src/components/block-tools/insertion-point.js +1 -4
- package/src/components/block-tools/style.scss +0 -90
- package/src/components/block-tools/use-show-block-tools.js +10 -13
- package/src/components/block-tools/zoom-out-mode-inserter-button.js +2 -17
- package/src/components/block-tools/zoom-out-mode-inserters.js +11 -19
- package/src/components/block-tools/zoom-out-popover.js +2 -1
- package/src/components/block-tools/zoom-out-toolbar.js +4 -36
- package/src/components/font-family/README.md +5 -1
- package/src/components/global-styles/border-panel.js +1 -1
- package/src/components/global-styles/dimensions-panel.js +1 -1
- package/src/components/iframe/content.scss +20 -24
- package/src/components/iframe/index.js +56 -12
- package/src/components/iframe/style.scss +6 -5
- package/src/components/inner-blocks/index.js +1 -16
- package/src/components/inner-blocks/use-nested-settings-update.js +16 -10
- package/src/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.js +1 -1
- package/src/components/inserter/block-types-tab.js +1 -1
- package/src/components/inserter/category-tabs/index.js +1 -11
- package/src/components/inserter/hooks/use-block-types-state.js +34 -14
- package/src/components/inserter/hooks/use-insertion-point.js +35 -13
- package/src/components/inserter/hooks/use-patterns-state.js +46 -9
- package/src/components/inserter/media-tab/media-preview.js +38 -12
- package/src/components/inserter/menu.js +4 -4
- package/src/components/inserter/mobile-tab-navigation.js +10 -13
- package/src/components/inserter/quick-inserter.js +6 -5
- package/src/components/inserter/style.scss +1 -69
- package/src/components/inspector-controls-tabs/style.scss +2 -6
- package/src/components/link-control/index.js +0 -1
- package/src/components/link-control/search-input.js +4 -5
- package/src/components/link-control/search-results.js +2 -13
- package/src/components/link-control/test/index.js +84 -46
- package/src/components/list-view/block-contents.js +1 -28
- package/src/components/list-view/style.scss +0 -14
- package/src/components/media-replace-flow/test/index.js +1 -1
- package/src/components/responsive-block-control/style.scss +0 -1
- package/src/components/rich-text/style.scss +5 -0
- package/src/components/tool-selector/index.js +15 -7
- package/src/components/tool-selector/style.scss +5 -0
- package/src/components/use-block-commands/index.js +0 -58
- package/src/components/writing-flow/use-tab-nav.js +32 -40
- package/src/content.scss +0 -1
- package/src/hooks/duotone.js +4 -1
- package/src/hooks/layout-child.js +4 -1
- package/src/hooks/position.js +4 -1
- package/src/hooks/use-zoom-out.js +36 -20
- package/src/store/actions.js +17 -15
- package/src/store/private-actions.js +14 -0
- package/src/store/private-selectors.js +120 -16
- package/src/store/reducer.js +22 -45
- package/src/store/selectors.js +218 -118
- package/src/store/test/private-actions.js +15 -0
- package/src/store/test/private-selectors.js +41 -1
- package/src/store/test/reducer.js +40 -4
- package/src/store/test/selectors.js +195 -21
- package/src/store/utils.js +4 -2
- package/src/style.scss +1 -0
- package/src/utils/block-bindings.js +2 -0
- package/build/components/block-controls/use-has-block-controls.js +0 -43
- package/build/components/block-controls/use-has-block-controls.js.map +0 -1
- package/build/components/block-list/use-block-props/use-nav-mode-exit.js +0 -54
- package/build/components/block-list/use-block-props/use-nav-mode-exit.js.map +0 -1
- package/build/components/block-tools/block-selection-button.js +0 -259
- package/build/components/block-tools/block-selection-button.js.map +0 -1
- package/build/components/block-tools/block-toolbar-breadcrumb.js +0 -57
- package/build/components/block-tools/block-toolbar-breadcrumb.js.map +0 -1
- package/build/components/inserter/tabs.js +0 -78
- package/build/components/inserter/tabs.js.map +0 -1
- package/build-module/components/block-controls/use-has-block-controls.js +0 -34
- package/build-module/components/block-controls/use-has-block-controls.js.map +0 -1
- package/build-module/components/block-list/use-block-props/use-nav-mode-exit.js +0 -48
- package/build-module/components/block-list/use-block-props/use-nav-mode-exit.js.map +0 -1
- package/build-module/components/block-tools/block-selection-button.js +0 -254
- package/build-module/components/block-tools/block-selection-button.js.map +0 -1
- package/build-module/components/block-tools/block-toolbar-breadcrumb.js +0 -49
- package/build-module/components/block-tools/block-toolbar-breadcrumb.js.map +0 -1
- package/build-module/components/inserter/tabs.js +0 -72
- package/build-module/components/inserter/tabs.js.map +0 -1
- package/src/components/block-controls/use-has-block-controls.js +0 -35
- package/src/components/block-list/use-block-props/use-nav-mode-exit.js +0 -46
- package/src/components/block-tools/block-selection-button.js +0 -302
- package/src/components/block-tools/block-toolbar-breadcrumb.js +0 -51
- package/src/components/inner-blocks/content.scss +0 -13
- package/src/components/inserter/tabs.js +0 -78
- package/src/components/inserter/test/block-types-tab.native.js +0 -67
|
@@ -19,14 +19,12 @@ import {
|
|
|
19
19
|
default as InsertionPoint,
|
|
20
20
|
} from './insertion-point';
|
|
21
21
|
import BlockToolbarPopover from './block-toolbar-popover';
|
|
22
|
-
import BlockToolbarBreadcrumb from './block-toolbar-breadcrumb';
|
|
23
22
|
import ZoomOutPopover from './zoom-out-popover';
|
|
24
23
|
import { store as blockEditorStore } from '../../store';
|
|
25
24
|
import usePopoverScroll from '../block-popover/use-popover-scroll';
|
|
26
25
|
import ZoomOutModeInserters from './zoom-out-mode-inserters';
|
|
27
26
|
import { useShowBlockTools } from './use-show-block-tools';
|
|
28
27
|
import { unlock } from '../../lock-unlock';
|
|
29
|
-
import getEditorRegion from '../../utils/get-editor-region';
|
|
30
28
|
|
|
31
29
|
function selector( select ) {
|
|
32
30
|
const {
|
|
@@ -35,7 +33,8 @@ function selector( select ) {
|
|
|
35
33
|
getSettings,
|
|
36
34
|
__unstableGetEditorMode,
|
|
37
35
|
isTyping,
|
|
38
|
-
|
|
36
|
+
isDragging,
|
|
37
|
+
} = unlock( select( blockEditorStore ) );
|
|
39
38
|
|
|
40
39
|
const clientId =
|
|
41
40
|
getSelectedBlockClientId() || getFirstMultiSelectedBlockClientId();
|
|
@@ -47,6 +46,7 @@ function selector( select ) {
|
|
|
47
46
|
hasFixedToolbar: getSettings().hasFixedToolbar,
|
|
48
47
|
isTyping: isTyping(),
|
|
49
48
|
isZoomOutMode: editorMode === 'zoom-out',
|
|
49
|
+
isDragging: isDragging(),
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
|
|
@@ -64,10 +64,9 @@ export default function BlockTools( {
|
|
|
64
64
|
__unstableContentRef,
|
|
65
65
|
...props
|
|
66
66
|
} ) {
|
|
67
|
-
const { clientId, hasFixedToolbar, isTyping, isZoomOutMode } =
|
|
68
|
-
selector,
|
|
69
|
-
|
|
70
|
-
);
|
|
67
|
+
const { clientId, hasFixedToolbar, isTyping, isZoomOutMode, isDragging } =
|
|
68
|
+
useSelect( selector, [] );
|
|
69
|
+
|
|
71
70
|
const isMatch = useShortcutEventMatch();
|
|
72
71
|
const {
|
|
73
72
|
getBlocksByClientId,
|
|
@@ -78,13 +77,11 @@ export default function BlockTools( {
|
|
|
78
77
|
const { getGroupingBlockName } = useSelect( blocksStore );
|
|
79
78
|
const {
|
|
80
79
|
showEmptyBlockSideInserter,
|
|
81
|
-
showBreadcrumb,
|
|
82
80
|
showBlockToolbarPopover,
|
|
83
81
|
showZoomOutToolbar,
|
|
84
82
|
} = useShowBlockTools();
|
|
85
83
|
|
|
86
84
|
const {
|
|
87
|
-
clearSelectedBlock,
|
|
88
85
|
duplicateBlocks,
|
|
89
86
|
removeBlocks,
|
|
90
87
|
replaceBlocks,
|
|
@@ -96,8 +93,6 @@ export default function BlockTools( {
|
|
|
96
93
|
expandBlock,
|
|
97
94
|
} = unlock( useDispatch( blockEditorStore ) );
|
|
98
95
|
|
|
99
|
-
const blockSelectionButtonRef = useRef();
|
|
100
|
-
|
|
101
96
|
function onKeyDown( event ) {
|
|
102
97
|
if ( event.defaultPrevented ) {
|
|
103
98
|
return;
|
|
@@ -158,13 +153,6 @@ export default function BlockTools( {
|
|
|
158
153
|
// block so that focus is directed back to the beginning of the selection.
|
|
159
154
|
// In effect, to the user this feels like deselecting the multi-selection.
|
|
160
155
|
selectBlock( clientIds[ 0 ] );
|
|
161
|
-
} else if (
|
|
162
|
-
clientIds.length === 1 &&
|
|
163
|
-
event.target === blockSelectionButtonRef?.current
|
|
164
|
-
) {
|
|
165
|
-
event.preventDefault();
|
|
166
|
-
clearSelectedBlock();
|
|
167
|
-
getEditorRegion( __unstableContentRef.current )?.focus();
|
|
168
156
|
}
|
|
169
157
|
} else if ( isMatch( 'core/block-editor/collapse-list-view', event ) ) {
|
|
170
158
|
// If focus is currently within a text field, such as a rich text block or other editable field,
|
|
@@ -223,14 +211,6 @@ export default function BlockTools( {
|
|
|
223
211
|
/>
|
|
224
212
|
) }
|
|
225
213
|
|
|
226
|
-
{ showBreadcrumb && (
|
|
227
|
-
<BlockToolbarBreadcrumb
|
|
228
|
-
ref={ blockSelectionButtonRef }
|
|
229
|
-
__unstableContentRef={ __unstableContentRef }
|
|
230
|
-
clientId={ clientId }
|
|
231
|
-
/>
|
|
232
|
-
) }
|
|
233
|
-
|
|
234
214
|
{ showZoomOutToolbar && (
|
|
235
215
|
<ZoomOutPopover
|
|
236
216
|
__unstableContentRef={ __unstableContentRef }
|
|
@@ -251,7 +231,7 @@ export default function BlockTools( {
|
|
|
251
231
|
name="__unstable-block-tools-after"
|
|
252
232
|
ref={ blockToolbarAfterRef }
|
|
253
233
|
/>
|
|
254
|
-
{ isZoomOutMode && (
|
|
234
|
+
{ isZoomOutMode && ! isDragging && (
|
|
255
235
|
<ZoomOutModeInserters
|
|
256
236
|
__unstableContentRef={ __unstableContentRef }
|
|
257
237
|
/>
|
|
@@ -37,7 +37,6 @@ function InbetweenInsertionPointPopover( {
|
|
|
37
37
|
rootClientId,
|
|
38
38
|
isInserterShown,
|
|
39
39
|
isDistractionFree,
|
|
40
|
-
isNavigationMode,
|
|
41
40
|
isZoomOutMode,
|
|
42
41
|
} = useSelect( ( select ) => {
|
|
43
42
|
const {
|
|
@@ -48,7 +47,6 @@ function InbetweenInsertionPointPopover( {
|
|
|
48
47
|
getPreviousBlockClientId,
|
|
49
48
|
getNextBlockClientId,
|
|
50
49
|
getSettings,
|
|
51
|
-
isNavigationMode: _isNavigationMode,
|
|
52
50
|
__unstableGetEditorMode,
|
|
53
51
|
} = select( blockEditorStore );
|
|
54
52
|
const insertionPoint = getBlockInsertionPoint();
|
|
@@ -78,7 +76,6 @@ function InbetweenInsertionPointPopover( {
|
|
|
78
76
|
getBlockListSettings( insertionPoint.rootClientId )
|
|
79
77
|
?.orientation || 'vertical',
|
|
80
78
|
rootClientId: insertionPoint.rootClientId,
|
|
81
|
-
isNavigationMode: _isNavigationMode(),
|
|
82
79
|
isDistractionFree: settings.isDistractionFree,
|
|
83
80
|
isInserterShown: insertionPoint?.__unstableWithInserter,
|
|
84
81
|
isZoomOutMode: __unstableGetEditorMode() === 'zoom-out',
|
|
@@ -144,7 +141,7 @@ function InbetweenInsertionPointPopover( {
|
|
|
144
141
|
},
|
|
145
142
|
};
|
|
146
143
|
|
|
147
|
-
if ( isDistractionFree
|
|
144
|
+
if ( isDistractionFree ) {
|
|
148
145
|
return null;
|
|
149
146
|
}
|
|
150
147
|
|
|
@@ -84,84 +84,6 @@
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
/**
|
|
88
|
-
* Block Label for Navigation/Selection Mode
|
|
89
|
-
*/
|
|
90
|
-
|
|
91
|
-
.block-editor-block-list__block-selection-button {
|
|
92
|
-
display: inline-flex;
|
|
93
|
-
padding: 0 $grid-unit-15;
|
|
94
|
-
z-index: z-index(".block-editor-block-list__block-selection-button");
|
|
95
|
-
|
|
96
|
-
// Dark block UI appearance.
|
|
97
|
-
border-radius: $radius-small;
|
|
98
|
-
background-color: $gray-900;
|
|
99
|
-
|
|
100
|
-
font-size: $default-font-size;
|
|
101
|
-
height: $block-toolbar-height;
|
|
102
|
-
|
|
103
|
-
.block-editor-block-list__block-selection-button__content {
|
|
104
|
-
margin: auto;
|
|
105
|
-
display: inline-flex;
|
|
106
|
-
align-items: center;
|
|
107
|
-
|
|
108
|
-
> .components-flex__item {
|
|
109
|
-
margin-right: $grid-unit-15 * 0.5;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
.components-button.has-icon.block-selection-button_drag-handle {
|
|
113
|
-
cursor: grab;
|
|
114
|
-
padding: 0;
|
|
115
|
-
height: $grid-unit-30;
|
|
116
|
-
min-width: $grid-unit-30;
|
|
117
|
-
margin-left: -2px;
|
|
118
|
-
|
|
119
|
-
// Drag handle is smaller than the others.
|
|
120
|
-
svg {
|
|
121
|
-
min-width: 18px;
|
|
122
|
-
min-height: 18px;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.block-editor-block-icon {
|
|
127
|
-
font-size: $default-font-size;
|
|
128
|
-
color: $white;
|
|
129
|
-
height: $block-toolbar-height;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
// The button here has a special style to appear as a toolbar.
|
|
133
|
-
.components-button {
|
|
134
|
-
min-width: $button-size;
|
|
135
|
-
color: $white;
|
|
136
|
-
height: $block-toolbar-height;
|
|
137
|
-
|
|
138
|
-
// When button is focused, it receives a box-shadow instead of the border.
|
|
139
|
-
&:focus {
|
|
140
|
-
box-shadow: none;
|
|
141
|
-
border: none;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
&:active {
|
|
145
|
-
color: $white;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
// Make sure the button has no hover style when it's disabled.
|
|
149
|
-
&[aria-disabled="true"]:hover {
|
|
150
|
-
color: $white;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
display: flex;
|
|
154
|
-
}
|
|
155
|
-
.block-selection-button_select-button.components-button {
|
|
156
|
-
padding: 0;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.block-editor-block-mover {
|
|
160
|
-
background: unset;
|
|
161
|
-
border: none;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
87
|
// Hide the popover block editor list while dragging.
|
|
166
88
|
// Using a hacky animation to delay hiding the element.
|
|
167
89
|
// It's needed because if we hide the element immediately upon dragging,
|
|
@@ -178,14 +100,10 @@
|
|
|
178
100
|
.components-popover.block-editor-block-list__block-popover {
|
|
179
101
|
|
|
180
102
|
// Position the block toolbar.
|
|
181
|
-
.block-editor-block-list__block-selection-button,
|
|
182
103
|
.block-editor-block-contextual-toolbar {
|
|
183
104
|
pointer-events: all;
|
|
184
105
|
margin-top: $grid-unit-10;
|
|
185
106
|
margin-bottom: $grid-unit-10;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.block-editor-block-contextual-toolbar {
|
|
189
107
|
border: $border-width solid $gray-900;
|
|
190
108
|
border-radius: $radius-small;
|
|
191
109
|
overflow: visible; // allow the parent selector to be visible
|
|
@@ -289,11 +207,3 @@
|
|
|
289
207
|
height: $button-size-next-default-40px;
|
|
290
208
|
}
|
|
291
209
|
}
|
|
292
|
-
|
|
293
|
-
.block-editor-block-tools__zoom-out-mode-inserter-button {
|
|
294
|
-
visibility: hidden;
|
|
295
|
-
|
|
296
|
-
&.is-visible {
|
|
297
|
-
visibility: visible;
|
|
298
|
-
}
|
|
299
|
-
}
|
|
@@ -8,6 +8,7 @@ import { isUnmodifiedDefaultBlock } from '@wordpress/blocks';
|
|
|
8
8
|
* Internal dependencies
|
|
9
9
|
*/
|
|
10
10
|
import { store as blockEditorStore } from '../../store';
|
|
11
|
+
import { unlock } from '../../lock-unlock';
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* Source of truth for which block tools are showing in the block editor.
|
|
@@ -22,10 +23,11 @@ export function useShowBlockTools() {
|
|
|
22
23
|
getBlock,
|
|
23
24
|
getBlockMode,
|
|
24
25
|
getSettings,
|
|
25
|
-
hasMultiSelection,
|
|
26
26
|
__unstableGetEditorMode,
|
|
27
27
|
isTyping,
|
|
28
|
-
|
|
28
|
+
getBlockOrder,
|
|
29
|
+
getSectionRootClientId,
|
|
30
|
+
} = unlock( select( blockEditorStore ) );
|
|
29
31
|
|
|
30
32
|
const clientId =
|
|
31
33
|
getSelectedBlockClientId() || getFirstMultiSelectedBlockClientId();
|
|
@@ -42,29 +44,24 @@ export function useShowBlockTools() {
|
|
|
42
44
|
! isTyping() &&
|
|
43
45
|
editorMode === 'edit' &&
|
|
44
46
|
isEmptyDefaultBlock;
|
|
45
|
-
const maybeShowBreadcrumb =
|
|
46
|
-
hasSelectedBlock &&
|
|
47
|
-
! hasMultiSelection() &&
|
|
48
|
-
editorMode === 'navigation';
|
|
49
|
-
|
|
50
47
|
const isZoomOut = editorMode === 'zoom-out';
|
|
48
|
+
const isSectionSelected = getBlockOrder(
|
|
49
|
+
getSectionRootClientId()
|
|
50
|
+
).includes( clientId );
|
|
51
51
|
const _showZoomOutToolbar =
|
|
52
|
+
clientId &&
|
|
52
53
|
isZoomOut &&
|
|
53
|
-
block?.attributes?.align === 'full' &&
|
|
54
54
|
! _showEmptyBlockSideInserter &&
|
|
55
|
-
|
|
55
|
+
isSectionSelected;
|
|
56
56
|
const _showBlockToolbarPopover =
|
|
57
57
|
! _showZoomOutToolbar &&
|
|
58
58
|
! getSettings().hasFixedToolbar &&
|
|
59
59
|
! _showEmptyBlockSideInserter &&
|
|
60
60
|
hasSelectedBlock &&
|
|
61
|
-
! isEmptyDefaultBlock
|
|
62
|
-
! maybeShowBreadcrumb;
|
|
61
|
+
! isEmptyDefaultBlock;
|
|
63
62
|
|
|
64
63
|
return {
|
|
65
64
|
showEmptyBlockSideInserter: _showEmptyBlockSideInserter,
|
|
66
|
-
showBreadcrumb:
|
|
67
|
-
! _showEmptyBlockSideInserter && maybeShowBreadcrumb,
|
|
68
65
|
showBlockToolbarPopover: _showBlockToolbarPopover,
|
|
69
66
|
showZoomOutToolbar: _showZoomOutToolbar,
|
|
70
67
|
};
|
|
@@ -6,17 +6,11 @@ import clsx from 'clsx';
|
|
|
6
6
|
/**
|
|
7
7
|
* WordPress dependencies
|
|
8
8
|
*/
|
|
9
|
-
import { useState } from '@wordpress/element';
|
|
10
9
|
import { Button } from '@wordpress/components';
|
|
11
10
|
import { plus } from '@wordpress/icons';
|
|
12
11
|
import { _x } from '@wordpress/i18n';
|
|
13
12
|
|
|
14
|
-
function ZoomOutModeInserterButton( {
|
|
15
|
-
const [
|
|
16
|
-
zoomOutModeInserterButtonHovered,
|
|
17
|
-
setZoomOutModeInserterButtonHovered,
|
|
18
|
-
] = useState( false );
|
|
19
|
-
|
|
13
|
+
function ZoomOutModeInserterButton( { onClick } ) {
|
|
20
14
|
return (
|
|
21
15
|
<Button
|
|
22
16
|
variant="primary"
|
|
@@ -24,18 +18,9 @@ function ZoomOutModeInserterButton( { isVisible, onClick } ) {
|
|
|
24
18
|
size="compact"
|
|
25
19
|
className={ clsx(
|
|
26
20
|
'block-editor-button-pattern-inserter__button',
|
|
27
|
-
'block-editor-block-tools__zoom-out-mode-inserter-button'
|
|
28
|
-
{
|
|
29
|
-
'is-visible': isVisible || zoomOutModeInserterButtonHovered,
|
|
30
|
-
}
|
|
21
|
+
'block-editor-block-tools__zoom-out-mode-inserter-button'
|
|
31
22
|
) }
|
|
32
23
|
onClick={ onClick }
|
|
33
|
-
onMouseOver={ () => {
|
|
34
|
-
setZoomOutModeInserterButtonHovered( true );
|
|
35
|
-
} }
|
|
36
|
-
onMouseOut={ () => {
|
|
37
|
-
setZoomOutModeInserterButtonHovered( false );
|
|
38
|
-
} }
|
|
39
24
|
label={ _x(
|
|
40
25
|
'Add pattern',
|
|
41
26
|
'Generic label for pattern inserter button'
|
|
@@ -16,41 +16,39 @@ function ZoomOutModeInserters() {
|
|
|
16
16
|
const [ isReady, setIsReady ] = useState( false );
|
|
17
17
|
const {
|
|
18
18
|
hasSelection,
|
|
19
|
-
|
|
19
|
+
insertionPoint,
|
|
20
20
|
blockOrder,
|
|
21
21
|
blockInsertionPointVisible,
|
|
22
22
|
setInserterIsOpened,
|
|
23
23
|
sectionRootClientId,
|
|
24
24
|
selectedBlockClientId,
|
|
25
|
-
hoveredBlockClientId,
|
|
26
25
|
} = useSelect( ( select ) => {
|
|
27
26
|
const {
|
|
28
27
|
getSettings,
|
|
29
|
-
|
|
28
|
+
getInsertionPoint,
|
|
30
29
|
getBlockOrder,
|
|
31
30
|
getSelectionStart,
|
|
32
31
|
getSelectedBlockClientId,
|
|
33
|
-
getHoveredBlockClientId,
|
|
34
|
-
isBlockInsertionPointVisible,
|
|
35
32
|
getSectionRootClientId,
|
|
33
|
+
isBlockInsertionPointVisible,
|
|
36
34
|
} = unlock( select( blockEditorStore ) );
|
|
37
35
|
|
|
38
36
|
const root = getSectionRootClientId();
|
|
39
37
|
|
|
40
38
|
return {
|
|
41
39
|
hasSelection: !! getSelectionStart().clientId,
|
|
42
|
-
|
|
40
|
+
insertionPoint: getInsertionPoint(),
|
|
43
41
|
blockOrder: getBlockOrder( root ),
|
|
44
42
|
blockInsertionPointVisible: isBlockInsertionPointVisible(),
|
|
45
43
|
sectionRootClientId: root,
|
|
46
44
|
setInserterIsOpened:
|
|
47
45
|
getSettings().__experimentalSetIsInserterOpened,
|
|
48
46
|
selectedBlockClientId: getSelectedBlockClientId(),
|
|
49
|
-
hoveredBlockClientId: getHoveredBlockClientId(),
|
|
50
47
|
};
|
|
51
48
|
}, [] );
|
|
52
49
|
|
|
53
|
-
|
|
50
|
+
// eslint-disable-next-line @wordpress/no-unused-vars-before-return
|
|
51
|
+
const { showInsertionPoint } = unlock( useDispatch( blockEditorStore ) );
|
|
54
52
|
|
|
55
53
|
// Defer the initial rendering to avoid the jumps due to the animation.
|
|
56
54
|
useEffect( () => {
|
|
@@ -62,25 +60,20 @@ function ZoomOutModeInserters() {
|
|
|
62
60
|
};
|
|
63
61
|
}, [] );
|
|
64
62
|
|
|
65
|
-
if ( ! isReady ) {
|
|
63
|
+
if ( ! isReady || ! hasSelection ) {
|
|
66
64
|
return null;
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
return [ undefined, ...blockOrder ].map( ( clientId, index ) => {
|
|
70
68
|
const shouldRenderInsertionPoint =
|
|
71
|
-
blockInsertionPointVisible &&
|
|
69
|
+
blockInsertionPointVisible && insertionPoint?.index === index;
|
|
72
70
|
|
|
73
71
|
const previousClientId = clientId;
|
|
74
72
|
const nextClientId = blockOrder[ index ];
|
|
75
73
|
|
|
76
74
|
const isSelected =
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
selectedBlockClientId === nextClientId );
|
|
80
|
-
|
|
81
|
-
const isHovered =
|
|
82
|
-
hoveredBlockClientId === previousClientId ||
|
|
83
|
-
hoveredBlockClientId === nextClientId;
|
|
75
|
+
selectedBlockClientId === previousClientId ||
|
|
76
|
+
selectedBlockClientId === nextClientId;
|
|
84
77
|
|
|
85
78
|
return (
|
|
86
79
|
<BlockPopoverInbetween
|
|
@@ -88,9 +81,8 @@ function ZoomOutModeInserters() {
|
|
|
88
81
|
previousClientId={ previousClientId }
|
|
89
82
|
nextClientId={ nextClientId }
|
|
90
83
|
>
|
|
91
|
-
{ ! shouldRenderInsertionPoint && (
|
|
84
|
+
{ ! shouldRenderInsertionPoint && isSelected && (
|
|
92
85
|
<ZoomOutModeInserterButton
|
|
93
|
-
isVisible={ isSelected || isHovered }
|
|
94
86
|
onClick={ () => {
|
|
95
87
|
setInserterIsOpened( {
|
|
96
88
|
rootClientId: sectionRootClientId,
|
|
@@ -5,7 +5,7 @@ import clsx from 'clsx';
|
|
|
5
5
|
/**
|
|
6
6
|
* Internal dependencies
|
|
7
7
|
*/
|
|
8
|
-
import BlockPopover from '../block-popover';
|
|
8
|
+
import { PrivateBlockPopover as BlockPopover } from '../block-popover';
|
|
9
9
|
import useBlockToolbarPopoverProps from './use-block-toolbar-popover-props';
|
|
10
10
|
import useSelectedBlockToolProps from './use-selected-block-tool-props';
|
|
11
11
|
import ZoomOutToolbar from './zoom-out-toolbar';
|
|
@@ -29,6 +29,7 @@ export default function ZoomOutPopover( { clientId, __unstableContentRef } ) {
|
|
|
29
29
|
|
|
30
30
|
return (
|
|
31
31
|
<BlockPopover
|
|
32
|
+
__unstableContentRef={ __unstableContentRef }
|
|
32
33
|
clientId={ capturingClientId || clientId }
|
|
33
34
|
bottomClientId={ lastClientId }
|
|
34
35
|
className={ clsx( 'zoom-out-toolbar-popover', {
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import clsx from 'clsx';
|
|
5
|
-
|
|
6
1
|
/**
|
|
7
2
|
* WordPress dependencies
|
|
8
3
|
*/
|
|
9
|
-
import { dragHandle, trash
|
|
4
|
+
import { dragHandle, trash } from '@wordpress/icons';
|
|
10
5
|
import { Button, ToolbarButton } from '@wordpress/components';
|
|
11
6
|
import { useSelect, useDispatch } from '@wordpress/data';
|
|
12
7
|
import { store as blocksStore } from '@wordpress/blocks';
|
|
@@ -20,14 +15,12 @@ import BlockDraggable from '../block-draggable';
|
|
|
20
15
|
import BlockMover from '../block-mover';
|
|
21
16
|
import Shuffle from '../block-toolbar/shuffle';
|
|
22
17
|
import NavigableToolbar from '../navigable-toolbar';
|
|
23
|
-
import { unlock } from '../../lock-unlock';
|
|
24
18
|
|
|
25
19
|
export default function ZoomOutToolbar( { clientId, __unstableContentRef } ) {
|
|
26
20
|
const selected = useSelect(
|
|
27
21
|
( select ) => {
|
|
28
22
|
const {
|
|
29
23
|
getBlock,
|
|
30
|
-
hasBlockMovingClientId,
|
|
31
24
|
getNextBlockClientId,
|
|
32
25
|
getPreviousBlockClientId,
|
|
33
26
|
canRemoveBlock,
|
|
@@ -63,7 +56,6 @@ export default function ZoomOutToolbar( { clientId, __unstableContentRef } ) {
|
|
|
63
56
|
}
|
|
64
57
|
|
|
65
58
|
return {
|
|
66
|
-
blockMovingMode: hasBlockMovingClientId(),
|
|
67
59
|
isBlockTemplatePart,
|
|
68
60
|
isNextBlockTemplatePart,
|
|
69
61
|
isPrevBlockTemplatePart,
|
|
@@ -76,28 +68,20 @@ export default function ZoomOutToolbar( { clientId, __unstableContentRef } ) {
|
|
|
76
68
|
);
|
|
77
69
|
|
|
78
70
|
const {
|
|
79
|
-
blockMovingMode,
|
|
80
71
|
isBlockTemplatePart,
|
|
81
72
|
isNextBlockTemplatePart,
|
|
82
73
|
isPrevBlockTemplatePart,
|
|
83
74
|
canRemove,
|
|
84
75
|
canMove,
|
|
85
|
-
setIsInserterOpened,
|
|
86
76
|
} = selected;
|
|
87
77
|
|
|
88
|
-
const { removeBlock
|
|
89
|
-
useDispatch( blockEditorStore )
|
|
90
|
-
);
|
|
91
|
-
|
|
92
|
-
const classNames = clsx( 'zoom-out-toolbar', {
|
|
93
|
-
'is-block-moving-mode': !! blockMovingMode,
|
|
94
|
-
} );
|
|
78
|
+
const { removeBlock } = useDispatch( blockEditorStore );
|
|
95
79
|
|
|
96
80
|
const showBlockDraggable = canMove && ! isBlockTemplatePart;
|
|
97
81
|
|
|
98
82
|
return (
|
|
99
83
|
<NavigableToolbar
|
|
100
|
-
className=
|
|
84
|
+
className="zoom-out-toolbar"
|
|
101
85
|
/* translators: accessibility text for the block toolbar */
|
|
102
86
|
aria-label={ __( 'Block tools' ) }
|
|
103
87
|
// The variant is applied as "toolbar" when undefined, which is the black border style of the dropdown from the toolbar popover.
|
|
@@ -135,23 +119,6 @@ export default function ZoomOutToolbar( { clientId, __unstableContentRef } ) {
|
|
|
135
119
|
<Shuffle clientId={ clientId } as={ ToolbarButton } />
|
|
136
120
|
) }
|
|
137
121
|
|
|
138
|
-
{ ! isBlockTemplatePart && (
|
|
139
|
-
<ToolbarButton
|
|
140
|
-
className="zoom-out-toolbar-button"
|
|
141
|
-
icon={ edit }
|
|
142
|
-
label={ __( 'Edit' ) }
|
|
143
|
-
onClick={ () => {
|
|
144
|
-
// Setting may be undefined.
|
|
145
|
-
if ( typeof setIsInserterOpened === 'function' ) {
|
|
146
|
-
setIsInserterOpened( false );
|
|
147
|
-
}
|
|
148
|
-
__unstableSetEditorMode( 'edit' );
|
|
149
|
-
resetZoomLevel();
|
|
150
|
-
__unstableContentRef.current?.focus();
|
|
151
|
-
} }
|
|
152
|
-
/>
|
|
153
|
-
) }
|
|
154
|
-
|
|
155
122
|
{ canRemove && ! isBlockTemplatePart && (
|
|
156
123
|
<ToolbarButton
|
|
157
124
|
className="zoom-out-toolbar-button"
|
|
@@ -159,6 +126,7 @@ export default function ZoomOutToolbar( { clientId, __unstableContentRef } ) {
|
|
|
159
126
|
label={ __( 'Delete' ) }
|
|
160
127
|
onClick={ () => {
|
|
161
128
|
removeBlock( clientId );
|
|
129
|
+
__unstableContentRef.current?.focus();
|
|
162
130
|
} }
|
|
163
131
|
/>
|
|
164
132
|
) }
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# FontFamilyControl
|
|
2
2
|
|
|
3
|
+
<div class="callout callout-alert">
|
|
4
|
+
This feature is still experimental. “Experimental” means this is an early implementation subject to drastic and breaking changes.
|
|
5
|
+
</div>
|
|
6
|
+
|
|
3
7
|
FontFamilyControl is a React component that renders a UI that allows users to select a font family.
|
|
4
8
|
The component renders a user interface that allows the user to select from a set of predefined font families as defined by the `typography.fontFamilies` presets.
|
|
5
9
|
Optionally, you can provide a `fontFamilies` prop that overrides the predefined font families.
|
|
@@ -10,7 +14,7 @@ Optionally, you can provide a `fontFamilies` prop that overrides the predefined
|
|
|
10
14
|
|
|
11
15
|
```jsx
|
|
12
16
|
import { useState } from 'react';
|
|
13
|
-
import { FontFamilyControl } from '@wordpress/block-editor';
|
|
17
|
+
import { __experimentalFontFamilyControl as FontFamilyControl } from '@wordpress/block-editor';
|
|
14
18
|
import { __ } from '@wordpress/i18n';
|
|
15
19
|
|
|
16
20
|
// ...
|
|
@@ -10,7 +10,7 @@ import { __ } from '@wordpress/i18n';
|
|
|
10
10
|
import {
|
|
11
11
|
__experimentalToolsPanel as ToolsPanel,
|
|
12
12
|
__experimentalToolsPanelItem as ToolsPanelItem,
|
|
13
|
-
|
|
13
|
+
BoxControl,
|
|
14
14
|
__experimentalUnitControl as UnitControl,
|
|
15
15
|
__experimentalUseCustomUnits as useCustomUnits,
|
|
16
16
|
__experimentalInputControlPrefixWrapper as InputControlPrefixWrapper,
|
|
@@ -3,28 +3,23 @@
|
|
|
3
3
|
border: 0.01px solid transparent;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.block-editor-iframe__container {
|
|
7
|
-
width: 100%;
|
|
8
|
-
height: 100%;
|
|
9
|
-
overflow-x: hidden;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.block-editor-iframe__scale-container {
|
|
13
|
-
width: 100%;
|
|
14
|
-
height: 100%;
|
|
15
|
-
display: flex;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.block-editor-iframe__scale-container.is-zoomed-out {
|
|
19
|
-
$container-width: var(--wp-block-editor-iframe-zoom-out-container-width, 100vw);
|
|
20
|
-
$prev-container-width: var(--wp-block-editor-iframe-zoom-out-prev-container-width, 100vw);
|
|
21
|
-
width: $prev-container-width;
|
|
22
|
-
margin-left: calc(-1 * (#{$prev-container-width} - #{$container-width}) / 2);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
6
|
.block-editor-iframe__html {
|
|
26
7
|
transform-origin: top center;
|
|
27
|
-
|
|
8
|
+
// 400ms should match the animation speed used in iframe/index.js
|
|
9
|
+
$zoomOutAnimation: all 400ms cubic-bezier(0.46, 0.03, 0.52, 0.96);
|
|
10
|
+
|
|
11
|
+
// We don't want to animate the transform of the translateX because it is used
|
|
12
|
+
// to "center" the canvas. Leaving it on causes the canvas to slide around in
|
|
13
|
+
// odd ways.
|
|
14
|
+
transition: $zoomOutAnimation, transform 0s scale 0s;
|
|
15
|
+
@include reduce-motion("transition");
|
|
16
|
+
|
|
17
|
+
&.zoom-out-animation {
|
|
18
|
+
// we only want to animate the scaling when entering zoom out. When sidebars
|
|
19
|
+
// are toggled, the resizing of the iframe handles scaling the canvas as well,
|
|
20
|
+
// and the doubled animations cause very odd animations.
|
|
21
|
+
transition: $zoomOutAnimation, transform 0s;
|
|
22
|
+
}
|
|
28
23
|
}
|
|
29
24
|
|
|
30
25
|
.block-editor-iframe__html.is-zoomed-out {
|
|
@@ -32,10 +27,11 @@
|
|
|
32
27
|
$frame-size: var(--wp-block-editor-iframe-zoom-out-frame-size);
|
|
33
28
|
$inner-height: var(--wp-block-editor-iframe-zoom-out-inner-height);
|
|
34
29
|
$content-height: var(--wp-block-editor-iframe-zoom-out-content-height);
|
|
35
|
-
$
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
$outer-container-width: var(--wp-block-editor-iframe-zoom-out-outer-container-width);
|
|
31
|
+
$container-width: var(--wp-block-editor-iframe-zoom-out-container-width, 100vw);
|
|
32
|
+
// Apply an X translation to center the scaled content within the available space.
|
|
33
|
+
transform: translateX(calc(( #{$outer-container-width} - #{ $container-width }) / 2 / #{$scale}));
|
|
34
|
+
scale: #{$scale};
|
|
39
35
|
background-color: $gray-300;
|
|
40
36
|
|
|
41
37
|
// Chrome seems to respect that transform scale shouldn't affect the layout size of the element,
|