@wordpress/block-editor 14.4.0 → 14.6.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 +4 -8
- package/build/autocompleters/block.js +13 -5
- package/build/autocompleters/block.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-canvas/index.js +10 -0
- package/build/components/block-canvas/index.js.map +1 -1
- package/build/components/block-card/index.js +2 -2
- package/build/components/block-card/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-full-height-alignment-control/index.js +1 -1
- package/build/components/block-full-height-alignment-control/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 +1 -1
- package/build/components/block-list/block.js.map +1 -1
- package/build/components/block-list/block.native.js +1 -7
- package/build/components/block-list/block.native.js.map +1 -1
- package/build/components/block-list/index.js +6 -5
- 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 +1 -2
- package/build/components/block-list/use-block-props/index.js.map +1 -1
- package/build/components/block-list/use-block-props/use-focus-first-element.js +4 -3
- package/build/components/block-list/use-block-props/use-focus-first-element.js.map +1 -1
- package/build/components/block-list/use-block-props/use-selected-block-event-handlers.js +11 -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 +1 -1
- package/build/components/block-list/use-in-between-inserter.js.map +1 -1
- package/build/components/block-list/zoom-out-separator.js +10 -7
- 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-parent-selector/index.js +1 -1
- 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-patterns-list/index.js.map +1 -1
- package/build/components/block-patterns-paging/index.js +1 -1
- package/build/components/block-patterns-paging/index.js.map +1 -1
- package/build/components/block-popover/index.js +1 -1
- 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 +2 -2
- package/build/components/block-preview/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 +5 -0
- package/build/components/block-settings-menu/block-settings-dropdown.js.map +1 -1
- package/build/components/block-settings-menu/index.js +4 -3
- package/build/components/block-settings-menu/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 +2 -1
- 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/change-design.js +122 -0
- package/build/components/block-toolbar/change-design.js.map +1 -0
- package/build/components/block-toolbar/index.js +19 -7
- package/build/components/block-toolbar/index.js.map +1 -1
- package/build/components/block-tools/index.js +4 -17
- package/build/components/block-tools/index.js.map +1 -1
- package/build/components/block-tools/insertion-point.js +4 -3
- package/build/components/block-tools/insertion-point.js.map +1 -1
- package/build/components/block-tools/use-show-block-tools.js +4 -6
- package/build/components/block-tools/use-show-block-tools.js.map +1 -1
- package/build/components/block-tools/zoom-out-mode-inserters.js +20 -29
- package/build/components/block-tools/zoom-out-mode-inserters.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/block-vertical-alignment-control/ui.js +6 -10
- package/build/components/block-vertical-alignment-control/ui.js.map +1 -1
- package/build/components/border-radius-control/index.js.map +1 -1
- package/build/components/border-radius-control/linked-button.js +7 -10
- package/build/components/border-radius-control/linked-button.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/collab/block-comment-icon-slot.js +18 -0
- package/build/components/collab/block-comment-icon-slot.js.map +1 -0
- package/build/components/collab/block-comment-icon-toolbar-slot.js +18 -0
- package/build/components/collab/block-comment-icon-toolbar-slot.js.map +1 -0
- 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/colors-gradients/use-multiple-origin-colors-and-gradients.js +7 -1
- package/build/components/colors-gradients/use-multiple-origin-colors-and-gradients.js.map +1 -1
- package/build/components/convert-to-group-buttons/toolbar.js +4 -4
- package/build/components/convert-to-group-buttons/toolbar.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.map +1 -1
- package/build/components/global-styles/color-panel.js +1 -4
- package/build/components/global-styles/color-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 +6 -0
- 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 +46 -11
- 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/image-size-control/index.js +61 -20
- package/build/components/image-size-control/index.js.map +1 -1
- package/build/components/inner-blocks/index.js +9 -5
- 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/pattern-category-previews.js +2 -2
- package/build/components/inserter/block-patterns-tab/pattern-category-previews.js.map +1 -1
- package/build/components/inserter/block-patterns-tab/patterns-filter.js +1 -1
- package/build/components/inserter/block-patterns-tab/patterns-filter.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.native.js.map +1 -1
- package/build/components/inserter/category-tabs/index.js +16 -12
- package/build/components/inserter/category-tabs/index.js.map +1 -1
- package/build/components/inserter/hooks/use-block-types-state.js +1 -1
- package/build/components/inserter/hooks/use-block-types-state.js.map +1 -1
- package/build/components/inserter/hooks/use-patterns-state.js +1 -1
- 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 +1 -1
- 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 +8 -3
- package/build/components/inserter/menu.js.map +1 -1
- 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 +1 -1
- 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/inserter-button/index.native.js +1 -1
- package/build/components/inserter-button/index.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/inspector-controls-tabs/index.js +0 -2
- package/build/components/inspector-controls-tabs/index.js.map +1 -1
- package/build/components/inspector-controls-tabs/utils.js +3 -6
- package/build/components/inspector-controls-tabs/utils.js.map +1 -1
- package/build/components/line-height-control/index.js.map +1 -1
- package/build/components/link-control/is-url-like.js.map +1 -1
- package/build/components/link-control/link-preview.js +12 -9
- package/build/components/link-control/link-preview.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 +5 -4
- package/build/components/list-view/appender.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 +6 -5
- 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 +1 -2
- 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/provider/index.js +1 -1
- package/build/components/provider/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/event-listeners/index.js +3 -1
- package/build/components/rich-text/event-listeners/index.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/index.native.js +2 -6
- package/build/components/rich-text/index.native.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/index.js +2 -2
- package/build/components/spacing-sizes-control/index.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 +3 -3
- package/build/components/spacing-sizes-control/input-controls/spacing-input-control.js.map +1 -1
- package/build/components/spacing-sizes-control/linked-button.js +1 -5
- package/build/components/spacing-sizes-control/linked-button.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 +8 -5
- 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 +1 -1
- package/build/components/use-block-commands/index.js.map +1 -1
- package/build/components/use-block-drop-zone/index.js +5 -5
- package/build/components/use-block-drop-zone/index.js.map +1 -1
- package/build/components/use-block-drop-zone/index.native.js +0 -1
- package/build/components/use-block-drop-zone/index.native.js.map +1 -1
- package/build/components/use-flash-editable-blocks/index.js.map +1 -1
- package/build/components/use-moving-animation/index.js +1 -3
- package/build/components/use-moving-animation/index.js.map +1 -1
- package/build/components/use-resize-canvas/index.js +1 -2
- package/build/components/use-resize-canvas/index.js.map +1 -1
- package/build/components/use-settings/index.js +1 -3
- package/build/components/use-settings/index.js.map +1 -1
- package/build/components/writing-flow/index.js +5 -3
- package/build/components/writing-flow/index.js.map +1 -1
- package/build/components/writing-flow/use-tab-nav.js +20 -5
- package/build/components/writing-flow/use-tab-nav.js.map +1 -1
- package/build/hooks/align.js.map +1 -1
- package/build/hooks/block-bindings.js +19 -8
- package/build/hooks/block-bindings.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/contrast-checker.js +0 -1
- package/build/hooks/contrast-checker.js.map +1 -1
- package/build/hooks/duotone.js +2 -2
- 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/grid-visualizer.js +13 -11
- package/build/hooks/grid-visualizer.js.map +1 -1
- package/build/hooks/layout-child.js +41 -3
- package/build/hooks/layout-child.js.map +1 -1
- package/build/hooks/layout.js.map +1 -1
- package/build/hooks/position.js +1 -1
- package/build/hooks/position.js.map +1 -1
- package/build/hooks/spacing-visualizer.js.map +1 -1
- package/build/hooks/style.js +4 -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 +17 -18
- package/build/hooks/use-zoom-out.js.map +1 -1
- package/build/index.js +0 -7
- package/build/index.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/private-apis.js +6 -1
- package/build/private-apis.js.map +1 -1
- package/build/store/actions.js +6 -38
- package/build/store/actions.js.map +1 -1
- package/build/store/defaults.js +1 -1
- package/build/store/defaults.js.map +1 -1
- package/build/store/private-actions.js +57 -8
- package/build/store/private-actions.js.map +1 -1
- package/build/store/private-selectors.js +9 -21
- package/build/store/private-selectors.js.map +1 -1
- package/build/store/reducer.js +18 -24
- package/build/store/reducer.js.map +1 -1
- package/build/store/selectors.js +66 -22
- package/build/store/selectors.js.map +1 -1
- package/build/utils/block-bindings.js +9 -6
- package/build/utils/block-bindings.js.map +1 -1
- package/build/utils/dom.js +16 -1
- package/build/utils/dom.js.map +1 -1
- package/build/utils/get-font-styles-and-weights.js +2 -2
- 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/utils/transform-styles/index.js +4 -3
- package/build/utils/transform-styles/index.js.map +1 -1
- package/build-module/autocompleters/block.js +15 -9
- package/build-module/autocompleters/block.js.map +1 -1
- package/build-module/autocompleters/link.js +1 -3
- 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-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 +12 -3
- package/build-module/components/block-canvas/index.js.map +1 -1
- package/build-module/components/block-card/index.js +4 -5
- 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-full-height-alignment-control/index.js +1 -1
- package/build-module/components/block-full-height-alignment-control/index.js.map +1 -1
- package/build-module/components/block-inspector/index.js +1 -3
- 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 +2 -4
- package/build-module/components/block-list/block.js.map +1 -1
- package/build-module/components/block-list/block.native.js +2 -9
- package/build-module/components/block-list/block.native.js.map +1 -1
- package/build-module/components/block-list/index.js +7 -7
- 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 +1 -2
- package/build-module/components/block-list/use-block-props/index.js.map +1 -1
- package/build-module/components/block-list/use-block-props/use-focus-first-element.js +4 -3
- package/build-module/components/block-list/use-block-props/use-focus-first-element.js.map +1 -1
- package/build-module/components/block-list/use-block-props/use-selected-block-event-handlers.js +11 -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 +1 -1
- package/build-module/components/block-list/use-in-between-inserter.js.map +1 -1
- package/build-module/components/block-list/zoom-out-separator.js +10 -7
- 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 +1 -2
- package/build-module/components/block-navigation/dropdown.js.map +1 -1
- package/build-module/components/block-parent-selector/index.js +1 -1
- 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 +1 -2
- 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 +2 -3
- package/build-module/components/block-patterns-paging/index.js.map +1 -1
- package/build-module/components/block-popover/index.js +1 -1
- 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 +3 -4
- package/build-module/components/block-preview/index.js.map +1 -1
- package/build-module/components/block-quick-navigation/index.js +1 -2
- 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 +6 -3
- package/build-module/components/block-settings-menu/block-settings-dropdown.js.map +1 -1
- package/build-module/components/block-settings-menu/index.js +5 -4
- package/build-module/components/block-settings-menu/index.js.map +1 -1
- package/build-module/components/block-settings-menu-controls/index.js +1 -2
- 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 +3 -4
- 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/change-design.js +114 -0
- package/build-module/components/block-toolbar/change-design.js.map +1 -0
- package/build-module/components/block-toolbar/index.js +20 -10
- 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-tools/index.js +5 -19
- package/build-module/components/block-tools/index.js.map +1 -1
- package/build-module/components/block-tools/insertion-point.js +5 -5
- package/build-module/components/block-tools/insertion-point.js.map +1 -1
- package/build-module/components/block-tools/use-show-block-tools.js +4 -6
- package/build-module/components/block-tools/use-show-block-tools.js.map +1 -1
- package/build-module/components/block-tools/zoom-out-mode-inserters.js +20 -29
- package/build-module/components/block-tools/zoom-out-mode-inserters.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/block-vertical-alignment-control/ui.js +6 -10
- package/build-module/components/block-vertical-alignment-control/ui.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/linked-button.js +8 -11
- package/build-module/components/border-radius-control/linked-button.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/collab/block-comment-icon-slot.js +11 -0
- package/build-module/components/collab/block-comment-icon-slot.js.map +1 -0
- package/build-module/components/collab/block-comment-icon-toolbar-slot.js +11 -0
- package/build-module/components/collab/block-comment-icon-toolbar-slot.js.map +1 -0
- 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/colors-gradients/use-multiple-origin-colors-and-gradients.js +7 -1
- package/build-module/components/colors-gradients/use-multiple-origin-colors-and-gradients.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 +5 -6
- 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 +1 -2
- package/build-module/components/global-styles/border-panel.js.map +1 -1
- package/build-module/components/global-styles/color-panel.js +3 -7
- package/build-module/components/global-styles/color-panel.js.map +1 -1
- package/build-module/components/global-styles/dimensions-panel.js +1 -2
- 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 +6 -0
- 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 +47 -14
- 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 +63 -24
- package/build-module/components/image-size-control/index.js.map +1 -1
- package/build-module/components/inner-blocks/index.js +9 -5
- 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 +3 -5
- 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 +2 -4
- 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 +1 -3
- 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 +18 -15
- package/build-module/components/inserter/category-tabs/index.js.map +1 -1
- package/build-module/components/inserter/hooks/use-block-types-state.js +1 -1
- package/build-module/components/inserter/hooks/use-block-types-state.js.map +1 -1
- package/build-module/components/inserter/hooks/use-patterns-state.js +1 -1
- 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 +2 -4
- 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 +10 -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 +1 -2
- 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 +2 -3
- 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 +2 -3
- 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 -4
- 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-controls-tabs/utils.js +3 -6
- package/build-module/components/inspector-controls-tabs/utils.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 +1 -3
- 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 +14 -13
- 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 +6 -6
- package/build-module/components/list-view/appender.js.map +1 -1
- package/build-module/components/list-view/block-contents.js +1 -3
- 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 +8 -9
- 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 +2 -4
- 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 +2 -3
- 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/index.js +4 -2
- package/build-module/components/rich-text/event-listeners/index.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 +3 -9
- 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 +4 -5
- 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 +5 -7
- package/build-module/components/spacing-sizes-control/input-controls/spacing-input-control.js.map +1 -1
- package/build-module/components/spacing-sizes-control/linked-button.js +2 -6
- package/build-module/components/spacing-sizes-control/linked-button.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 +9 -8
- 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 -1
- package/build-module/components/use-block-commands/index.js.map +1 -1
- package/build-module/components/use-block-drop-zone/index.js +5 -5
- package/build-module/components/use-block-drop-zone/index.js.map +1 -1
- package/build-module/components/use-block-drop-zone/index.native.js +0 -1
- package/build-module/components/use-block-drop-zone/index.native.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 +1 -3
- package/build-module/components/use-moving-animation/index.js.map +1 -1
- package/build-module/components/use-resize-canvas/index.js +1 -2
- package/build-module/components/use-resize-canvas/index.js.map +1 -1
- package/build-module/components/use-settings/index.js +1 -3
- package/build-module/components/use-settings/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 +6 -6
- package/build-module/components/writing-flow/index.js.map +1 -1
- package/build-module/components/writing-flow/use-tab-nav.js +20 -5
- 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 +21 -12
- 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/contrast-checker.js +0 -1
- package/build-module/hooks/contrast-checker.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 +3 -5
- 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 +14 -14
- package/build-module/hooks/grid-visualizer.js.map +1 -1
- package/build-module/hooks/layout-child.js +42 -6
- 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 +1 -1
- 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 +5 -4
- 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 +18 -19
- package/build-module/hooks/use-zoom-out.js.map +1 -1
- package/build-module/index.js +1 -1
- package/build-module/index.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/private-apis.js +7 -3
- package/build-module/private-apis.js.map +1 -1
- package/build-module/store/actions.js +6 -38
- package/build-module/store/actions.js.map +1 -1
- package/build-module/store/defaults.js +1 -1
- package/build-module/store/defaults.js.map +1 -1
- package/build-module/store/private-actions.js +54 -7
- package/build-module/store/private-actions.js.map +1 -1
- package/build-module/store/private-selectors.js +9 -20
- package/build-module/store/private-selectors.js.map +1 -1
- package/build-module/store/reducer.js +17 -22
- package/build-module/store/reducer.js.map +1 -1
- package/build-module/store/selectors.js +66 -20
- package/build-module/store/selectors.js.map +1 -1
- package/build-module/utils/block-bindings.js +9 -6
- package/build-module/utils/block-bindings.js.map +1 -1
- package/build-module/utils/dom.js +16 -1
- package/build-module/utils/dom.js.map +1 -1
- package/build-module/utils/get-font-styles-and-weights.js +3 -3
- 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-module/utils/transform-styles/index.js +3 -2
- package/build-module/utils/transform-styles/index.js.map +1 -1
- package/build-style/content-rtl.css +19 -27
- package/build-style/content.css +19 -27
- package/build-style/style-rtl.css +47 -54
- package/build-style/style.css +47 -54
- package/build-types/utils/dom.d.ts.map +1 -1
- package/package.json +34 -33
- package/src/autocompleters/block.js +16 -7
- package/src/components/block-canvas/index.js +17 -1
- package/src/components/block-canvas/style.scss +1 -0
- package/src/components/block-card/index.js +3 -3
- package/src/components/block-full-height-alignment-control/index.js +1 -1
- package/src/components/block-inspector/style.scss +0 -6
- package/src/components/block-list/block.js +1 -2
- package/src/components/block-list/block.native.js +0 -4
- package/src/components/block-list/content.scss +4 -3
- package/src/components/block-list/index.js +4 -4
- package/src/components/block-list/use-block-props/index.js +0 -2
- package/src/components/block-list/use-block-props/use-focus-first-element.js +5 -3
- package/src/components/block-list/use-block-props/use-selected-block-event-handlers.js +12 -4
- package/src/components/block-list/use-in-between-inserter.js +1 -1
- package/src/components/block-list/zoom-out-separator.js +8 -6
- package/src/components/block-patterns-list/stories/fixtures.js +834 -0
- package/src/components/block-patterns-list/stories/index.story.js +81 -0
- package/src/components/block-patterns-list/style.scss +2 -0
- package/src/components/block-patterns-paging/index.js +1 -1
- package/src/components/block-popover/index.js +2 -2
- package/src/components/block-preview/auto.js +1 -4
- package/src/components/block-preview/index.js +2 -2
- package/src/components/block-settings-menu/block-settings-dropdown.js +4 -0
- package/src/components/block-settings-menu/index.js +3 -0
- package/src/components/block-toolbar/change-design.js +133 -0
- package/src/components/block-toolbar/index.js +25 -8
- package/src/components/block-toolbar/style.scss +16 -0
- package/src/components/block-tools/index.js +4 -28
- package/src/components/block-tools/insertion-point.js +4 -3
- package/src/components/block-tools/style.scss +0 -20
- package/src/components/block-tools/use-show-block-tools.js +2 -8
- package/src/components/block-tools/zoom-out-mode-inserters.js +25 -40
- package/src/components/block-variation-transforms/index.js +2 -2
- package/src/components/block-vertical-alignment-control/ui.js +11 -15
- package/src/components/border-radius-control/linked-button.js +9 -11
- package/src/components/collab/block-comment-icon-slot.js +12 -0
- package/src/components/collab/block-comment-icon-toolbar-slot.js +12 -0
- package/src/components/colors-gradients/use-multiple-origin-colors-and-gradients.js +7 -1
- package/src/components/convert-to-group-buttons/toolbar.js +4 -4
- package/src/components/global-styles/color-panel.js +2 -10
- package/src/components/global-styles/test/use-global-styles-context.native.js +1 -0
- package/src/components/global-styles/use-global-styles-context.native.js +6 -0
- package/src/components/iframe/content.scss +22 -32
- package/src/components/iframe/index.js +62 -15
- package/src/components/iframe/style.scss +17 -0
- package/src/components/image-size-control/index.js +74 -43
- package/src/components/image-size-control/test/index.js +5 -63
- package/src/components/inner-blocks/index.js +12 -6
- 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-patterns-tab/pattern-category-previews.js +2 -3
- package/src/components/inserter/block-patterns-tab/patterns-filter.js +1 -1
- package/src/components/inserter/category-tabs/index.js +17 -13
- package/src/components/inserter/menu.js +12 -5
- package/src/components/inserter/quick-inserter.js +1 -1
- package/src/components/inserter/style.scss +14 -41
- package/src/components/inserter-button/index.native.js +1 -1
- package/src/components/inspector-controls-tabs/index.js +1 -6
- package/src/components/inspector-controls-tabs/utils.js +0 -3
- package/src/components/link-control/link-preview.js +15 -8
- 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 +147 -70
- package/src/components/list-view/appender.js +5 -6
- package/src/components/list-view/branch.js +8 -6
- package/src/components/list-view/index.js +1 -2
- package/src/components/media-replace-flow/test/index.js +1 -1
- package/src/components/provider/index.js +1 -3
- package/src/components/provider/test/experimental-provider.js +43 -1
- package/src/components/responsive-block-control/style.scss +0 -1
- package/src/components/rich-text/event-listeners/index.js +4 -2
- package/src/components/rich-text/index.native.js +0 -2
- package/src/components/rich-text/style.scss +5 -0
- package/src/components/spacing-sizes-control/index.js +3 -3
- package/src/components/spacing-sizes-control/input-controls/spacing-input-control.js +4 -4
- package/src/components/spacing-sizes-control/linked-button.js +2 -12
- package/src/components/tool-selector/index.js +6 -5
- package/src/components/url-input/index.js +1 -1
- package/src/components/use-block-commands/index.js +1 -1
- package/src/components/use-block-drop-zone/index.js +5 -5
- package/src/components/use-block-drop-zone/index.native.js +0 -1
- package/src/components/use-moving-animation/index.js +0 -1
- package/src/components/use-resize-canvas/index.js +1 -3
- package/src/components/use-settings/index.js +0 -1
- package/src/components/writing-flow/index.js +5 -3
- package/src/components/writing-flow/use-tab-nav.js +27 -4
- package/src/hooks/block-bindings.js +48 -31
- package/src/hooks/contrast-checker.js +0 -1
- package/src/hooks/duotone.js +2 -2
- package/src/hooks/grid-visualizer.js +23 -9
- package/src/hooks/layout-child.js +48 -3
- package/src/hooks/style.js +7 -3
- package/src/hooks/use-zoom-out.js +20 -24
- package/src/index.js +0 -1
- package/src/private-apis.js +6 -1
- package/src/store/actions.js +5 -53
- package/src/store/defaults.js +2 -1
- package/src/store/private-actions.js +71 -8
- package/src/store/private-selectors.js +9 -19
- package/src/store/reducer.js +25 -28
- package/src/store/selectors.js +82 -20
- package/src/store/test/actions.js +41 -0
- package/src/store/test/private-selectors.js +7 -1
- package/src/store/test/reducer.js +23 -0
- package/src/store/test/selectors.js +13 -2
- package/src/style.scss +1 -0
- package/src/utils/block-bindings.js +9 -6
- package/src/utils/dom.js +22 -2
- package/src/utils/get-font-styles-and-weights.js +2 -2
- package/src/utils/test/use-block-bindings-utils.js +174 -0
- package/src/utils/transform-styles/index.js +3 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/build/components/block-list/use-block-props/use-zoom-out-mode-exit.js +0 -57
- package/build/components/block-list/use-block-props/use-zoom-out-mode-exit.js.map +0 -1
- package/build/components/block-toolbar/shuffle.js +0 -110
- package/build/components/block-toolbar/shuffle.js.map +0 -1
- package/build/components/block-tools/zoom-out-popover.js +0 -57
- package/build/components/block-tools/zoom-out-popover.js.map +0 -1
- package/build/components/block-tools/zoom-out-toolbar.js +0 -149
- package/build/components/block-tools/zoom-out-toolbar.js.map +0 -1
- package/build/components/block-vertical-alignment-control/icons.js +0 -48
- package/build/components/block-vertical-alignment-control/icons.js.map +0 -1
- package/build-module/components/block-list/use-block-props/use-zoom-out-mode-exit.js +0 -51
- package/build-module/components/block-list/use-block-props/use-zoom-out-mode-exit.js.map +0 -1
- package/build-module/components/block-toolbar/shuffle.js +0 -103
- package/build-module/components/block-toolbar/shuffle.js.map +0 -1
- package/build-module/components/block-tools/zoom-out-popover.js +0 -48
- package/build-module/components/block-tools/zoom-out-popover.js.map +0 -1
- package/build-module/components/block-tools/zoom-out-toolbar.js +0 -142
- package/build-module/components/block-tools/zoom-out-toolbar.js.map +0 -1
- package/build-module/components/block-vertical-alignment-control/icons.js +0 -41
- package/build-module/components/block-vertical-alignment-control/icons.js.map +0 -1
- package/src/components/block-list/use-block-props/use-zoom-out-mode-exit.js +0 -65
- package/src/components/block-toolbar/shuffle.js +0 -111
- package/src/components/block-tools/zoom-out-popover.js +0 -46
- package/src/components/block-tools/zoom-out-toolbar.js +0 -156
- package/src/components/block-vertical-alignment-control/icons.js +0 -34
|
@@ -279,7 +279,7 @@ iframe[name=editor-canvas] {
|
|
|
279
279
|
height: 100%;
|
|
280
280
|
display: block;
|
|
281
281
|
background-color: transparent;
|
|
282
|
-
transition: all
|
|
282
|
+
transition: all 400ms cubic-bezier(0.46, 0.03, 0.52, 0.96);
|
|
283
283
|
}
|
|
284
284
|
@media (prefers-reduced-motion: reduce) {
|
|
285
285
|
iframe[name=editor-canvas] {
|
|
@@ -346,12 +346,6 @@ iframe[name=editor-canvas] {
|
|
|
346
346
|
border-top: 1px solid #ddd;
|
|
347
347
|
}
|
|
348
348
|
|
|
349
|
-
.block-editor-block-inspector__tab-item {
|
|
350
|
-
flex: 1 1 0px;
|
|
351
|
-
display: flex;
|
|
352
|
-
justify-content: center;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
349
|
/**
|
|
356
350
|
* Insertion Point.
|
|
357
351
|
*/
|
|
@@ -500,20 +494,6 @@ iframe[name=editor-canvas] {
|
|
|
500
494
|
right: 50%;
|
|
501
495
|
}
|
|
502
496
|
|
|
503
|
-
.zoom-out-toolbar .block-editor-block-mover-button.block-editor-block-mover-button:focus-visible::before,
|
|
504
|
-
.zoom-out-toolbar .zoom-out-toolbar-button:focus::before,
|
|
505
|
-
.zoom-out-toolbar .block-editor-block-toolbar-shuffle:focus::before,
|
|
506
|
-
.zoom-out-toolbar .block-selection-button_drag-handle:focus::before {
|
|
507
|
-
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
508
|
-
}
|
|
509
|
-
.zoom-out-toolbar .block-editor-block-mover {
|
|
510
|
-
background: none;
|
|
511
|
-
border: none;
|
|
512
|
-
}
|
|
513
|
-
.zoom-out-toolbar .components-button {
|
|
514
|
-
height: 40px;
|
|
515
|
-
}
|
|
516
|
-
|
|
517
497
|
.block-editor-block-lock-modal {
|
|
518
498
|
z-index: 1000001;
|
|
519
499
|
}
|
|
@@ -891,6 +871,7 @@ iframe[name=editor-canvas] {
|
|
|
891
871
|
height: 100%;
|
|
892
872
|
scroll-margin-top: 24px;
|
|
893
873
|
scroll-margin-bottom: 56px;
|
|
874
|
+
outline: 0;
|
|
894
875
|
}
|
|
895
876
|
.block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title {
|
|
896
877
|
flex-grow: 1;
|
|
@@ -1845,6 +1826,21 @@ iframe[name=editor-canvas] {
|
|
|
1845
1826
|
padding: 0;
|
|
1846
1827
|
}
|
|
1847
1828
|
|
|
1829
|
+
.block-editor-iframe__container {
|
|
1830
|
+
width: 100%;
|
|
1831
|
+
height: 100%;
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
.block-editor-iframe__scale-container {
|
|
1835
|
+
height: 100%;
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
.block-editor-iframe__scale-container.is-zoomed-out {
|
|
1839
|
+
width: var(--wp-block-editor-iframe-zoom-out-scale-container-width, 100vw);
|
|
1840
|
+
position: absolute;
|
|
1841
|
+
left: 0;
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1848
1844
|
.block-editor-image-size-control {
|
|
1849
1845
|
margin-bottom: 1em;
|
|
1850
1846
|
}
|
|
@@ -1959,8 +1955,7 @@ iframe[name=editor-canvas] {
|
|
|
1959
1955
|
.block-editor-block-types-list__item-title {
|
|
1960
1956
|
padding: 4px 2px 8px;
|
|
1961
1957
|
font-size: 12px;
|
|
1962
|
-
|
|
1963
|
-
hyphens: auto;
|
|
1958
|
+
hyphens: auto;
|
|
1964
1959
|
}
|
|
1965
1960
|
|
|
1966
1961
|
.block-editor-block-inspector__tabs [role=tablist] {
|
|
@@ -2957,7 +2952,6 @@ iframe[name=editor-canvas] {
|
|
|
2957
2952
|
|
|
2958
2953
|
.block-editor-responsive-block-control .components-base-control__help {
|
|
2959
2954
|
border: 0;
|
|
2960
|
-
clip: rect(1px, 1px, 1px, 1px);
|
|
2961
2955
|
clip-path: inset(50%);
|
|
2962
2956
|
height: 1px;
|
|
2963
2957
|
margin: -1px;
|
|
@@ -2977,10 +2971,14 @@ iframe[name=editor-canvas] {
|
|
|
2977
2971
|
margin-bottom: 8px;
|
|
2978
2972
|
box-shadow: none;
|
|
2979
2973
|
outline: none;
|
|
2974
|
+
border-radius: 2px;
|
|
2980
2975
|
}
|
|
2981
2976
|
.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar {
|
|
2982
2977
|
border-radius: 2px;
|
|
2983
2978
|
}
|
|
2979
|
+
.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar-group {
|
|
2980
|
+
background: none;
|
|
2981
|
+
}
|
|
2984
2982
|
.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control,
|
|
2985
2983
|
.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle {
|
|
2986
2984
|
min-width: 48px;
|
|
@@ -3585,6 +3583,22 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
3585
3583
|
margin-right: 6px;
|
|
3586
3584
|
}
|
|
3587
3585
|
|
|
3586
|
+
.block-editor-block-toolbar-change-design-content-wrapper {
|
|
3587
|
+
padding: 12px;
|
|
3588
|
+
width: 320px;
|
|
3589
|
+
}
|
|
3590
|
+
.block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list {
|
|
3591
|
+
display: grid;
|
|
3592
|
+
grid-template-columns: 1fr 1fr;
|
|
3593
|
+
grid-gap: 12px;
|
|
3594
|
+
}
|
|
3595
|
+
.block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item {
|
|
3596
|
+
margin-bottom: 0;
|
|
3597
|
+
}
|
|
3598
|
+
.block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item {
|
|
3599
|
+
min-height: 100px;
|
|
3600
|
+
}
|
|
3601
|
+
|
|
3588
3602
|
.block-editor-inserter {
|
|
3589
3603
|
display: inline-block;
|
|
3590
3604
|
background: none;
|
|
@@ -3699,6 +3713,7 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
3699
3713
|
}
|
|
3700
3714
|
|
|
3701
3715
|
.block-editor-inserter__panel-header {
|
|
3716
|
+
position: relative;
|
|
3702
3717
|
display: inline-flex;
|
|
3703
3718
|
align-items: center;
|
|
3704
3719
|
padding: 16px 16px 0;
|
|
@@ -3787,45 +3802,16 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
3787
3802
|
|
|
3788
3803
|
.block-editor-inserter__media-tabs-container,
|
|
3789
3804
|
.block-editor-inserter__block-patterns-tabs-container {
|
|
3805
|
+
flex-grow: 1;
|
|
3790
3806
|
padding: 16px;
|
|
3791
|
-
height: 100%;
|
|
3792
3807
|
display: flex;
|
|
3793
3808
|
flex-direction: column;
|
|
3794
3809
|
justify-content: space-between;
|
|
3795
3810
|
}
|
|
3796
3811
|
|
|
3797
3812
|
.block-editor-inserter__category-tablist {
|
|
3798
|
-
display: flex;
|
|
3799
|
-
flex-direction: column;
|
|
3800
|
-
border: none;
|
|
3801
3813
|
margin-bottom: 8px;
|
|
3802
3814
|
}
|
|
3803
|
-
.block-editor-inserter__category-tablist div[role=listitem]:last-child {
|
|
3804
|
-
margin-top: auto;
|
|
3805
|
-
}
|
|
3806
|
-
.block-editor-inserter__category-tablist[aria-orientation=vertical]::after {
|
|
3807
|
-
content: none;
|
|
3808
|
-
}
|
|
3809
|
-
.block-editor-inserter__category-tablist .block-editor-inserter__category-tab {
|
|
3810
|
-
padding: 8px 12px 8px 4px;
|
|
3811
|
-
text-align: right;
|
|
3812
|
-
font-weight: inherit;
|
|
3813
|
-
display: block;
|
|
3814
|
-
position: relative;
|
|
3815
|
-
height: auto;
|
|
3816
|
-
}
|
|
3817
|
-
.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true] {
|
|
3818
|
-
color: var(--wp-admin-theme-color);
|
|
3819
|
-
}
|
|
3820
|
-
.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true] .components-flex-item {
|
|
3821
|
-
filter: brightness(0.95);
|
|
3822
|
-
}
|
|
3823
|
-
.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true] svg {
|
|
3824
|
-
fill: var(--wp-admin-theme-color);
|
|
3825
|
-
}
|
|
3826
|
-
.block-editor-inserter__category-tablist .block-editor-inserter__category-tab::before {
|
|
3827
|
-
display: none;
|
|
3828
|
-
}
|
|
3829
3815
|
|
|
3830
3816
|
.block-editor-inserter__category-panel {
|
|
3831
3817
|
outline: 1px solid transparent;
|
|
@@ -3864,6 +3850,13 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
3864
3850
|
margin-top: 24px;
|
|
3865
3851
|
}
|
|
3866
3852
|
|
|
3853
|
+
.block-editor-inserter__patterns-filter-help {
|
|
3854
|
+
padding: 16px;
|
|
3855
|
+
border-top: 1px solid #ddd;
|
|
3856
|
+
color: #757575;
|
|
3857
|
+
min-width: 280px;
|
|
3858
|
+
}
|
|
3859
|
+
|
|
3867
3860
|
.block-editor-inserter__media-list,
|
|
3868
3861
|
.block-editor-block-patterns-list {
|
|
3869
3862
|
overflow-y: auto;
|
package/build-style/style.css
CHANGED
|
@@ -279,7 +279,7 @@ iframe[name=editor-canvas] {
|
|
|
279
279
|
height: 100%;
|
|
280
280
|
display: block;
|
|
281
281
|
background-color: transparent;
|
|
282
|
-
transition: all
|
|
282
|
+
transition: all 400ms cubic-bezier(0.46, 0.03, 0.52, 0.96);
|
|
283
283
|
}
|
|
284
284
|
@media (prefers-reduced-motion: reduce) {
|
|
285
285
|
iframe[name=editor-canvas] {
|
|
@@ -346,12 +346,6 @@ iframe[name=editor-canvas] {
|
|
|
346
346
|
border-top: 1px solid #ddd;
|
|
347
347
|
}
|
|
348
348
|
|
|
349
|
-
.block-editor-block-inspector__tab-item {
|
|
350
|
-
flex: 1 1 0px;
|
|
351
|
-
display: flex;
|
|
352
|
-
justify-content: center;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
349
|
/**
|
|
356
350
|
* Insertion Point.
|
|
357
351
|
*/
|
|
@@ -500,20 +494,6 @@ iframe[name=editor-canvas] {
|
|
|
500
494
|
left: 50%;
|
|
501
495
|
}
|
|
502
496
|
|
|
503
|
-
.zoom-out-toolbar .block-editor-block-mover-button.block-editor-block-mover-button:focus-visible::before,
|
|
504
|
-
.zoom-out-toolbar .zoom-out-toolbar-button:focus::before,
|
|
505
|
-
.zoom-out-toolbar .block-editor-block-toolbar-shuffle:focus::before,
|
|
506
|
-
.zoom-out-toolbar .block-selection-button_drag-handle:focus::before {
|
|
507
|
-
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
508
|
-
}
|
|
509
|
-
.zoom-out-toolbar .block-editor-block-mover {
|
|
510
|
-
background: none;
|
|
511
|
-
border: none;
|
|
512
|
-
}
|
|
513
|
-
.zoom-out-toolbar .components-button {
|
|
514
|
-
height: 40px;
|
|
515
|
-
}
|
|
516
|
-
|
|
517
497
|
.block-editor-block-lock-modal {
|
|
518
498
|
z-index: 1000001;
|
|
519
499
|
}
|
|
@@ -891,6 +871,7 @@ iframe[name=editor-canvas] {
|
|
|
891
871
|
height: 100%;
|
|
892
872
|
scroll-margin-top: 24px;
|
|
893
873
|
scroll-margin-bottom: 56px;
|
|
874
|
+
outline: 0;
|
|
894
875
|
}
|
|
895
876
|
.block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title {
|
|
896
877
|
flex-grow: 1;
|
|
@@ -1846,6 +1827,21 @@ iframe[name=editor-canvas] {
|
|
|
1846
1827
|
padding: 0;
|
|
1847
1828
|
}
|
|
1848
1829
|
|
|
1830
|
+
.block-editor-iframe__container {
|
|
1831
|
+
width: 100%;
|
|
1832
|
+
height: 100%;
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
.block-editor-iframe__scale-container {
|
|
1836
|
+
height: 100%;
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
.block-editor-iframe__scale-container.is-zoomed-out {
|
|
1840
|
+
width: var(--wp-block-editor-iframe-zoom-out-scale-container-width, 100vw);
|
|
1841
|
+
position: absolute;
|
|
1842
|
+
right: 0;
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1849
1845
|
.block-editor-image-size-control {
|
|
1850
1846
|
margin-bottom: 1em;
|
|
1851
1847
|
}
|
|
@@ -1960,8 +1956,7 @@ iframe[name=editor-canvas] {
|
|
|
1960
1956
|
.block-editor-block-types-list__item-title {
|
|
1961
1957
|
padding: 4px 2px 8px;
|
|
1962
1958
|
font-size: 12px;
|
|
1963
|
-
|
|
1964
|
-
hyphens: auto;
|
|
1959
|
+
hyphens: auto;
|
|
1965
1960
|
}
|
|
1966
1961
|
|
|
1967
1962
|
.block-editor-block-inspector__tabs [role=tablist] {
|
|
@@ -2958,7 +2953,6 @@ iframe[name=editor-canvas] {
|
|
|
2958
2953
|
|
|
2959
2954
|
.block-editor-responsive-block-control .components-base-control__help {
|
|
2960
2955
|
border: 0;
|
|
2961
|
-
clip: rect(1px, 1px, 1px, 1px);
|
|
2962
2956
|
clip-path: inset(50%);
|
|
2963
2957
|
height: 1px;
|
|
2964
2958
|
margin: -1px;
|
|
@@ -2978,10 +2972,14 @@ iframe[name=editor-canvas] {
|
|
|
2978
2972
|
margin-bottom: 8px;
|
|
2979
2973
|
box-shadow: none;
|
|
2980
2974
|
outline: none;
|
|
2975
|
+
border-radius: 2px;
|
|
2981
2976
|
}
|
|
2982
2977
|
.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar {
|
|
2983
2978
|
border-radius: 2px;
|
|
2984
2979
|
}
|
|
2980
|
+
.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar-group {
|
|
2981
|
+
background: none;
|
|
2982
|
+
}
|
|
2985
2983
|
.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control,
|
|
2986
2984
|
.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle {
|
|
2987
2985
|
min-width: 48px;
|
|
@@ -3586,6 +3584,22 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
3586
3584
|
margin-left: 6px;
|
|
3587
3585
|
}
|
|
3588
3586
|
|
|
3587
|
+
.block-editor-block-toolbar-change-design-content-wrapper {
|
|
3588
|
+
padding: 12px;
|
|
3589
|
+
width: 320px;
|
|
3590
|
+
}
|
|
3591
|
+
.block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list {
|
|
3592
|
+
display: grid;
|
|
3593
|
+
grid-template-columns: 1fr 1fr;
|
|
3594
|
+
grid-gap: 12px;
|
|
3595
|
+
}
|
|
3596
|
+
.block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item {
|
|
3597
|
+
margin-bottom: 0;
|
|
3598
|
+
}
|
|
3599
|
+
.block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item {
|
|
3600
|
+
min-height: 100px;
|
|
3601
|
+
}
|
|
3602
|
+
|
|
3589
3603
|
.block-editor-inserter {
|
|
3590
3604
|
display: inline-block;
|
|
3591
3605
|
background: none;
|
|
@@ -3700,6 +3714,7 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
3700
3714
|
}
|
|
3701
3715
|
|
|
3702
3716
|
.block-editor-inserter__panel-header {
|
|
3717
|
+
position: relative;
|
|
3703
3718
|
display: inline-flex;
|
|
3704
3719
|
align-items: center;
|
|
3705
3720
|
padding: 16px 16px 0;
|
|
@@ -3788,45 +3803,16 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
3788
3803
|
|
|
3789
3804
|
.block-editor-inserter__media-tabs-container,
|
|
3790
3805
|
.block-editor-inserter__block-patterns-tabs-container {
|
|
3806
|
+
flex-grow: 1;
|
|
3791
3807
|
padding: 16px;
|
|
3792
|
-
height: 100%;
|
|
3793
3808
|
display: flex;
|
|
3794
3809
|
flex-direction: column;
|
|
3795
3810
|
justify-content: space-between;
|
|
3796
3811
|
}
|
|
3797
3812
|
|
|
3798
3813
|
.block-editor-inserter__category-tablist {
|
|
3799
|
-
display: flex;
|
|
3800
|
-
flex-direction: column;
|
|
3801
|
-
border: none;
|
|
3802
3814
|
margin-bottom: 8px;
|
|
3803
3815
|
}
|
|
3804
|
-
.block-editor-inserter__category-tablist div[role=listitem]:last-child {
|
|
3805
|
-
margin-top: auto;
|
|
3806
|
-
}
|
|
3807
|
-
.block-editor-inserter__category-tablist[aria-orientation=vertical]::after {
|
|
3808
|
-
content: none;
|
|
3809
|
-
}
|
|
3810
|
-
.block-editor-inserter__category-tablist .block-editor-inserter__category-tab {
|
|
3811
|
-
padding: 8px 4px 8px 12px;
|
|
3812
|
-
text-align: left;
|
|
3813
|
-
font-weight: inherit;
|
|
3814
|
-
display: block;
|
|
3815
|
-
position: relative;
|
|
3816
|
-
height: auto;
|
|
3817
|
-
}
|
|
3818
|
-
.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true] {
|
|
3819
|
-
color: var(--wp-admin-theme-color);
|
|
3820
|
-
}
|
|
3821
|
-
.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true] .components-flex-item {
|
|
3822
|
-
filter: brightness(0.95);
|
|
3823
|
-
}
|
|
3824
|
-
.block-editor-inserter__category-tablist .block-editor-inserter__category-tab[aria-selected=true] svg {
|
|
3825
|
-
fill: var(--wp-admin-theme-color);
|
|
3826
|
-
}
|
|
3827
|
-
.block-editor-inserter__category-tablist .block-editor-inserter__category-tab::before {
|
|
3828
|
-
display: none;
|
|
3829
|
-
}
|
|
3830
3816
|
|
|
3831
3817
|
.block-editor-inserter__category-panel {
|
|
3832
3818
|
outline: 1px solid transparent;
|
|
@@ -3865,6 +3851,13 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
3865
3851
|
margin-top: 24px;
|
|
3866
3852
|
}
|
|
3867
3853
|
|
|
3854
|
+
.block-editor-inserter__patterns-filter-help {
|
|
3855
|
+
padding: 16px;
|
|
3856
|
+
border-top: 1px solid #ddd;
|
|
3857
|
+
color: #757575;
|
|
3858
|
+
min-width: 280px;
|
|
3859
|
+
}
|
|
3860
|
+
|
|
3868
3861
|
.block-editor-inserter__media-list,
|
|
3869
3862
|
.block-editor-block-patterns-list {
|
|
3870
3863
|
overflow-y: auto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/utils/dom.js"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,iCALW,OAAO,KACP,OAAO,GAEN,OAAO,CAIlB;AAED;;;;;;;;;GASG;AACH,gDANW,OAAO,WACP,OAAO,GAEN,OAAO,CAQlB;AAED;;;;;;;GAOG;AACH,uCALW,IAAI,OAAC,GAEJ,MAAM,GAAC,SAAS,CAoB3B;AAED;;;;;;GAMG;AACH,iCAJW,OAAO,SACP,OAAO,GACN,OAAO,CASlB;
|
|
1
|
+
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/utils/dom.js"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,iCALW,OAAO,KACP,OAAO,GAEN,OAAO,CAIlB;AAED;;;;;;;;;GASG;AACH,gDANW,OAAO,WACP,OAAO,GAEN,OAAO,CAQlB;AAED;;;;;;;GAOG;AACH,uCALW,IAAI,OAAC,GAEJ,MAAM,GAAC,SAAS,CAoB3B;AAED;;;;;;GAMG;AACH,iCAJW,OAAO,SACP,OAAO,GACN,OAAO,CASlB;AA8DD;;;;;;;;;;;;;;;GAeG;AACH,iDAHW,OAAO,GACN,OAAO,CA6ClB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-editor",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.6.0",
|
|
4
4
|
"description": "Generic block editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -32,40 +32,40 @@
|
|
|
32
32
|
"{src,build,build-module}/{index.js,store/index.js,hooks/**}"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@babel/runtime": "
|
|
35
|
+
"@babel/runtime": "7.25.7",
|
|
36
36
|
"@emotion/react": "^11.7.1",
|
|
37
37
|
"@emotion/styled": "^11.6.0",
|
|
38
38
|
"@react-spring/web": "^9.4.5",
|
|
39
|
-
"@wordpress/a11y": "
|
|
40
|
-
"@wordpress/api-fetch": "
|
|
41
|
-
"@wordpress/blob": "
|
|
42
|
-
"@wordpress/block-serialization-default-parser": "
|
|
43
|
-
"@wordpress/blocks": "
|
|
44
|
-
"@wordpress/commands": "
|
|
45
|
-
"@wordpress/components": "
|
|
46
|
-
"@wordpress/compose": "
|
|
47
|
-
"@wordpress/data": "
|
|
48
|
-
"@wordpress/date": "
|
|
49
|
-
"@wordpress/deprecated": "
|
|
50
|
-
"@wordpress/dom": "
|
|
51
|
-
"@wordpress/element": "
|
|
52
|
-
"@wordpress/escape-html": "
|
|
53
|
-
"@wordpress/hooks": "
|
|
54
|
-
"@wordpress/html-entities": "
|
|
55
|
-
"@wordpress/i18n": "
|
|
56
|
-
"@wordpress/icons": "
|
|
57
|
-
"@wordpress/is-shallow-equal": "
|
|
58
|
-
"@wordpress/keyboard-shortcuts": "
|
|
59
|
-
"@wordpress/keycodes": "
|
|
60
|
-
"@wordpress/notices": "
|
|
61
|
-
"@wordpress/preferences": "
|
|
62
|
-
"@wordpress/private-apis": "
|
|
63
|
-
"@wordpress/rich-text": "
|
|
64
|
-
"@wordpress/style-engine": "
|
|
65
|
-
"@wordpress/token-list": "
|
|
66
|
-
"@wordpress/url": "
|
|
67
|
-
"@wordpress/warning": "
|
|
68
|
-
"@wordpress/wordcount": "
|
|
39
|
+
"@wordpress/a11y": "*",
|
|
40
|
+
"@wordpress/api-fetch": "*",
|
|
41
|
+
"@wordpress/blob": "*",
|
|
42
|
+
"@wordpress/block-serialization-default-parser": "*",
|
|
43
|
+
"@wordpress/blocks": "*",
|
|
44
|
+
"@wordpress/commands": "*",
|
|
45
|
+
"@wordpress/components": "*",
|
|
46
|
+
"@wordpress/compose": "*",
|
|
47
|
+
"@wordpress/data": "*",
|
|
48
|
+
"@wordpress/date": "*",
|
|
49
|
+
"@wordpress/deprecated": "*",
|
|
50
|
+
"@wordpress/dom": "*",
|
|
51
|
+
"@wordpress/element": "*",
|
|
52
|
+
"@wordpress/escape-html": "*",
|
|
53
|
+
"@wordpress/hooks": "*",
|
|
54
|
+
"@wordpress/html-entities": "*",
|
|
55
|
+
"@wordpress/i18n": "*",
|
|
56
|
+
"@wordpress/icons": "*",
|
|
57
|
+
"@wordpress/is-shallow-equal": "*",
|
|
58
|
+
"@wordpress/keyboard-shortcuts": "*",
|
|
59
|
+
"@wordpress/keycodes": "*",
|
|
60
|
+
"@wordpress/notices": "*",
|
|
61
|
+
"@wordpress/preferences": "*",
|
|
62
|
+
"@wordpress/private-apis": "*",
|
|
63
|
+
"@wordpress/rich-text": "*",
|
|
64
|
+
"@wordpress/style-engine": "*",
|
|
65
|
+
"@wordpress/token-list": "*",
|
|
66
|
+
"@wordpress/url": "*",
|
|
67
|
+
"@wordpress/warning": "*",
|
|
68
|
+
"@wordpress/wordcount": "*",
|
|
69
69
|
"change-case": "^4.1.2",
|
|
70
70
|
"clsx": "^2.1.1",
|
|
71
71
|
"colord": "^2.7.0",
|
|
@@ -88,5 +88,6 @@
|
|
|
88
88
|
"publishConfig": {
|
|
89
89
|
"access": "public"
|
|
90
90
|
},
|
|
91
|
-
"
|
|
91
|
+
"wpScript": true,
|
|
92
|
+
"gitHead": "dcf4613b33b0eda14e203ac30f700ed0db70347f"
|
|
92
93
|
}
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
createBlock,
|
|
7
7
|
createBlocksFromInnerBlocksTemplate,
|
|
8
8
|
parse,
|
|
9
|
+
store as blocksStore,
|
|
9
10
|
} from '@wordpress/blocks';
|
|
10
11
|
import { useMemo } from '@wordpress/element';
|
|
11
12
|
|
|
@@ -36,22 +37,30 @@ function createBlockCompleter() {
|
|
|
36
37
|
triggerPrefix: '/',
|
|
37
38
|
|
|
38
39
|
useItems( filterValue ) {
|
|
39
|
-
const { rootClientId,
|
|
40
|
+
const { rootClientId, selectedBlockId, prioritizedBlocks } =
|
|
40
41
|
useSelect( ( select ) => {
|
|
41
42
|
const {
|
|
42
43
|
getSelectedBlockClientId,
|
|
43
|
-
|
|
44
|
+
getBlock,
|
|
44
45
|
getBlockListSettings,
|
|
45
46
|
getBlockRootClientId,
|
|
46
47
|
} = select( blockEditorStore );
|
|
48
|
+
const { getActiveBlockVariation } = select( blocksStore );
|
|
47
49
|
const selectedBlockClientId = getSelectedBlockClientId();
|
|
50
|
+
const { name: blockName, attributes } = getBlock(
|
|
51
|
+
selectedBlockClientId
|
|
52
|
+
);
|
|
53
|
+
const activeBlockVariation = getActiveBlockVariation(
|
|
54
|
+
blockName,
|
|
55
|
+
attributes
|
|
56
|
+
);
|
|
48
57
|
const _rootClientId = getBlockRootClientId(
|
|
49
58
|
selectedBlockClientId
|
|
50
59
|
);
|
|
51
60
|
return {
|
|
52
|
-
|
|
53
|
-
?
|
|
54
|
-
:
|
|
61
|
+
selectedBlockId: activeBlockVariation
|
|
62
|
+
? `${ blockName }/${ activeBlockVariation.name }`
|
|
63
|
+
: blockName,
|
|
55
64
|
rootClientId: _rootClientId,
|
|
56
65
|
prioritizedBlocks:
|
|
57
66
|
getBlockListSettings( _rootClientId )
|
|
@@ -78,11 +87,11 @@ function createBlockCompleter() {
|
|
|
78
87
|
);
|
|
79
88
|
|
|
80
89
|
return initialFilteredItems
|
|
81
|
-
.filter( ( item ) => item.
|
|
90
|
+
.filter( ( item ) => item.id !== selectedBlockId )
|
|
82
91
|
.slice( 0, SHOWN_BLOCK_TYPES );
|
|
83
92
|
}, [
|
|
84
93
|
filterValue,
|
|
85
|
-
|
|
94
|
+
selectedBlockId,
|
|
86
95
|
items,
|
|
87
96
|
categories,
|
|
88
97
|
collections,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import { useMergeRefs } from '@wordpress/compose';
|
|
4
|
+
import { useMergeRefs, useViewportMatch } from '@wordpress/compose';
|
|
5
5
|
import { useRef } from '@wordpress/element';
|
|
6
|
+
import { useSelect } from '@wordpress/data';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Internal dependencies
|
|
@@ -15,6 +16,8 @@ import WritingFlow from '../writing-flow';
|
|
|
15
16
|
import { useMouseMoveTypingReset } from '../observe-typing';
|
|
16
17
|
import { useBlockSelectionClearer } from '../block-selection-clearer';
|
|
17
18
|
import { useBlockCommands } from '../use-block-commands';
|
|
19
|
+
import { store as blockEditorStore } from '../../store';
|
|
20
|
+
import { unlock } from '../../lock-unlock';
|
|
18
21
|
|
|
19
22
|
// EditorStyles is a memoized component, so avoid passing a new
|
|
20
23
|
// object reference on each render.
|
|
@@ -32,10 +35,22 @@ export function ExperimentalBlockCanvas( {
|
|
|
32
35
|
iframeProps,
|
|
33
36
|
} ) {
|
|
34
37
|
useBlockCommands();
|
|
38
|
+
const isTabletViewport = useViewportMatch( 'medium', '<' );
|
|
35
39
|
const resetTypingRef = useMouseMoveTypingReset();
|
|
36
40
|
const clearerRef = useBlockSelectionClearer();
|
|
37
41
|
const localRef = useRef();
|
|
38
42
|
const contentRef = useMergeRefs( [ contentRefProp, clearerRef, localRef ] );
|
|
43
|
+
const zoomLevel = useSelect(
|
|
44
|
+
( select ) => unlock( select( blockEditorStore ) ).getZoomLevel(),
|
|
45
|
+
[]
|
|
46
|
+
);
|
|
47
|
+
const zoomOutIframeProps =
|
|
48
|
+
zoomLevel !== 100 && ! isTabletViewport
|
|
49
|
+
? {
|
|
50
|
+
scale: zoomLevel,
|
|
51
|
+
frameSize: '40px',
|
|
52
|
+
}
|
|
53
|
+
: {};
|
|
39
54
|
|
|
40
55
|
if ( ! shouldIframe ) {
|
|
41
56
|
return (
|
|
@@ -70,6 +85,7 @@ export function ExperimentalBlockCanvas( {
|
|
|
70
85
|
>
|
|
71
86
|
<Iframe
|
|
72
87
|
{ ...iframeProps }
|
|
88
|
+
{ ...zoomOutIframeProps }
|
|
73
89
|
ref={ resetTypingRef }
|
|
74
90
|
contentRef={ contentRef }
|
|
75
91
|
style={ {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__experimentalVStack as VStack,
|
|
14
14
|
} from '@wordpress/components';
|
|
15
15
|
import { chevronLeft, chevronRight } from '@wordpress/icons';
|
|
16
|
-
import { __, isRTL, sprintf } from '@wordpress/i18n';
|
|
16
|
+
import { __, _x, isRTL, sprintf } from '@wordpress/i18n';
|
|
17
17
|
import { useSelect, useDispatch } from '@wordpress/data';
|
|
18
18
|
|
|
19
19
|
/**
|
|
@@ -68,8 +68,8 @@ function BlockCard( { title, icon, description, blockType, className, name } ) {
|
|
|
68
68
|
<h2 className="block-editor-block-card__title">
|
|
69
69
|
{ name?.length
|
|
70
70
|
? sprintf(
|
|
71
|
-
// translators:
|
|
72
|
-
|
|
71
|
+
// translators: 1: Custom block name. 2: Block title.
|
|
72
|
+
_x( '%1$s (%2$s)', 'block label' ),
|
|
73
73
|
name,
|
|
74
74
|
title
|
|
75
75
|
)
|
|
@@ -629,8 +629,7 @@ function BlockListBlockProvider( props ) {
|
|
|
629
629
|
const attributes = getBlockAttributes( clientId );
|
|
630
630
|
const { name: blockName, isValid } = blockWithoutAttributes;
|
|
631
631
|
const blockType = getBlockType( blockName );
|
|
632
|
-
const { supportsLayout,
|
|
633
|
-
getSettings();
|
|
632
|
+
const { supportsLayout, isPreviewMode } = getSettings();
|
|
634
633
|
const hasLightBlockWrapper = blockType?.apiVersion > 1;
|
|
635
634
|
const previewContext = {
|
|
636
635
|
isPreviewMode,
|
|
@@ -320,7 +320,6 @@ function BlockListBlock( {
|
|
|
320
320
|
name,
|
|
321
321
|
fontSizes || EMPTY_ARRAY
|
|
322
322
|
);
|
|
323
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
324
323
|
}, [
|
|
325
324
|
// It is crucial to keep the dependencies array minimal to prevent unnecessary calls that could negatively impact performance.
|
|
326
325
|
// JSON.stringify is used for the following purposes:
|
|
@@ -329,11 +328,8 @@ function BlockListBlock( {
|
|
|
329
328
|
// 2. To filter the attributes object, ensuring that only the relevant attributes (included in
|
|
330
329
|
// GlobalStylesContext.BLOCK_STYLE_ATTRIBUTES) are considered as dependencies. This reduces the likelihood of
|
|
331
330
|
// unnecessary useMemo calls when other, unrelated attributes change.
|
|
332
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
333
331
|
JSON.stringify( globalStyle ),
|
|
334
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
335
332
|
JSON.stringify( wrapperProps?.style ),
|
|
336
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
337
333
|
JSON.stringify(
|
|
338
334
|
Object.fromEntries(
|
|
339
335
|
Object.entries( attributes ?? {} ).filter( ( [ key ] ) =>
|