@wordpress/block-editor 13.4.0 → 14.1.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 +13 -0
- package/README.md +20 -15
- package/build/autocompleters/block.js +1 -1
- package/build/autocompleters/block.js.map +1 -1
- package/build/components/block-breadcrumb/index.js +3 -1
- package/build/components/block-breadcrumb/index.js.map +1 -1
- package/build/components/block-draggable/index.js +2 -2
- package/build/components/block-draggable/index.js.map +1 -1
- package/build/components/block-list/use-block-props/index.js +2 -2
- package/build/components/block-list/use-block-props/index.js.map +1 -1
- package/build/components/block-list/use-block-props/use-block-refs.js +24 -32
- package/build/components/block-list/use-block-props/use-block-refs.js.map +1 -1
- package/build/components/block-list/use-in-between-inserter.js +11 -4
- package/build/components/block-list/use-in-between-inserter.js.map +1 -1
- package/build/components/block-mover/index.js +1 -2
- package/build/components/block-mover/index.js.map +1 -1
- package/build/components/block-popover/cover.js +1 -1
- package/build/components/block-popover/cover.js.map +1 -1
- package/build/components/block-popover/inbetween.js +2 -2
- package/build/components/block-popover/inbetween.js.map +1 -1
- package/build/components/block-popover/index.js +2 -2
- package/build/components/block-popover/index.js.map +1 -1
- package/build/components/block-settings-menu/block-mode-toggle.js +28 -34
- package/build/components/block-settings-menu/block-mode-toggle.js.map +1 -1
- package/build/components/block-tools/block-selection-button.js +1 -2
- package/build/components/block-tools/block-selection-button.js.map +1 -1
- package/build/components/block-tools/index.js +1 -1
- package/build/components/block-tools/index.js.map +1 -1
- package/build/components/block-tools/insertion-point.js +14 -3
- package/build/components/block-tools/insertion-point.js.map +1 -1
- package/build/components/block-tools/use-block-toolbar-popover-props.js +1 -1
- package/build/components/block-tools/use-block-toolbar-popover-props.js.map +1 -1
- package/build/components/block-tools/use-show-block-tools.js +2 -1
- package/build/components/block-tools/use-show-block-tools.js.map +1 -1
- package/build/components/block-tools/zoom-out-mode-inserters.js +22 -19
- package/build/components/block-tools/zoom-out-mode-inserters.js.map +1 -1
- package/build/components/block-tools/zoom-out-toolbar.js +0 -1
- package/build/components/block-tools/zoom-out-toolbar.js.map +1 -1
- package/build/components/border-radius-control/index.js +1 -0
- package/build/components/border-radius-control/index.js.map +1 -1
- package/build/components/child-layout-control/index.js +3 -1
- package/build/components/child-layout-control/index.js.map +1 -1
- package/build/components/convert-to-group-buttons/index.js +1 -1
- package/build/components/convert-to-group-buttons/index.js.map +1 -1
- package/build/components/date-format-picker/index.js +2 -0
- package/build/components/date-format-picker/index.js.map +1 -1
- package/build/components/dimensions-tool/scale-tool.js +1 -0
- package/build/components/dimensions-tool/scale-tool.js.map +1 -1
- package/build/components/font-appearance-control/index.js +3 -0
- package/build/components/font-appearance-control/index.js.map +1 -1
- package/build/components/font-family/index.js +15 -0
- package/build/components/font-family/index.js.map +1 -1
- package/build/components/global-styles/background-panel.js +153 -77
- package/build/components/global-styles/background-panel.js.map +1 -1
- package/build/components/global-styles/get-global-styles-changes.js +3 -1
- package/build/components/global-styles/get-global-styles-changes.js.map +1 -1
- package/build/components/global-styles/hooks.js +0 -7
- package/build/components/global-styles/hooks.js.map +1 -1
- package/build/components/global-styles/image-settings-panel.js +1 -0
- package/build/components/global-styles/image-settings-panel.js.map +1 -1
- package/build/components/global-styles/index.js +0 -6
- package/build/components/global-styles/index.js.map +1 -1
- package/build/components/global-styles/typography-panel.js +0 -1
- package/build/components/global-styles/typography-panel.js.map +1 -1
- package/build/components/global-styles/use-global-styles-output.js +59 -40
- package/build/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build/components/global-styles/utils.js +80 -0
- package/build/components/global-styles/utils.js.map +1 -1
- package/build/components/grid/grid-item-movers.js +30 -26
- package/build/components/grid/grid-item-movers.js.map +1 -1
- package/build/components/grid/grid-item-resizer.js +14 -15
- package/build/components/grid/grid-item-resizer.js.map +1 -1
- package/build/components/grid/grid-visualizer.js +21 -6
- package/build/components/grid/grid-visualizer.js.map +1 -1
- package/build/components/grid/use-grid-layout-sync.js +56 -20
- package/build/components/grid/use-grid-layout-sync.js.map +1 -1
- package/build/components/height-control/index.js +1 -0
- package/build/components/height-control/index.js.map +1 -1
- package/build/components/iframe/index.js +2 -4
- package/build/components/iframe/index.js.map +1 -1
- package/build/components/image-editor/zoom-dropdown.js +11 -7
- package/build/components/image-editor/zoom-dropdown.js.map +1 -1
- package/build/components/inner-blocks/button-block-appender.js +8 -8
- package/build/components/inner-blocks/button-block-appender.js.map +1 -1
- package/build/components/inner-blocks/default-block-appender.js +7 -25
- package/build/components/inner-blocks/default-block-appender.js.map +1 -1
- package/build/components/inner-blocks/index.js +9 -11
- package/build/components/inner-blocks/index.js.map +1 -1
- package/build/components/inserter/category-tabs/index.js +29 -2
- package/build/components/inserter/category-tabs/index.js.map +1 -1
- package/build/components/inserter/library.js +4 -2
- package/build/components/inserter/library.js.map +1 -1
- package/build/components/inserter/menu.js +32 -14
- package/build/components/inserter/menu.js.map +1 -1
- package/build/components/inserter/quick-inserter.js +4 -0
- package/build/components/inserter/quick-inserter.js.map +1 -1
- package/build/components/line-height-control/index.js +3 -15
- package/build/components/line-height-control/index.js.map +1 -1
- package/build/components/link-control/search-input.js +0 -1
- package/build/components/link-control/search-input.js.map +1 -1
- package/build/components/media-placeholder/index.js +9 -4
- package/build/components/media-placeholder/index.js.map +1 -1
- package/build/components/media-replace-flow/index.js +3 -1
- package/build/components/media-replace-flow/index.js.map +1 -1
- package/build/components/media-upload/index.native.js +4 -1
- package/build/components/media-upload/index.native.js.map +1 -1
- package/build/components/multi-selection-inspector/index.js +12 -12
- package/build/components/multi-selection-inspector/index.js.map +1 -1
- package/build/components/resolution-tool/index.js +1 -0
- package/build/components/resolution-tool/index.js.map +1 -1
- package/build/components/skip-to-selected-block/index.js +4 -2
- package/build/components/skip-to-selected-block/index.js.map +1 -1
- package/build/components/spacing-sizes-control/input-controls/spacing-input-control.js +8 -8
- package/build/components/spacing-sizes-control/input-controls/spacing-input-control.js.map +1 -1
- package/build/components/text-alignment-control/index.js +13 -8
- package/build/components/text-alignment-control/index.js.map +1 -1
- package/build/components/text-decoration-control/index.js +13 -8
- package/build/components/text-decoration-control/index.js.map +1 -1
- package/build/components/text-transform-control/index.js +13 -8
- package/build/components/text-transform-control/index.js.map +1 -1
- package/build/components/url-input/button.js +0 -1
- package/build/components/url-input/button.js.map +1 -1
- package/build/components/url-input/index.js +1 -11
- package/build/components/url-input/index.js.map +1 -1
- package/build/components/url-popover/image-url-input-ui.js +2 -0
- package/build/components/url-popover/image-url-input-ui.js.map +1 -1
- package/build/components/url-popover/link-editor.js +0 -1
- package/build/components/url-popover/link-editor.js.map +1 -1
- package/build/components/use-block-drop-zone/index.js +42 -4
- package/build/components/use-block-drop-zone/index.js.map +1 -1
- package/build/components/use-on-block-drop/index.js +3 -6
- package/build/components/use-on-block-drop/index.js.map +1 -1
- package/build/components/use-resize-canvas/index.js +1 -3
- package/build/components/use-resize-canvas/index.js.map +1 -1
- package/build/components/use-settings/index.js +2 -1
- package/build/components/use-settings/index.js.map +1 -1
- package/build/components/writing-mode-control/index.js +13 -8
- package/build/components/writing-mode-control/index.js.map +1 -1
- package/build/hooks/background.js +19 -23
- package/build/hooks/background.js.map +1 -1
- package/build/hooks/block-bindings.js +209 -39
- package/build/hooks/block-bindings.js.map +1 -1
- package/build/hooks/block-hooks.js +1 -0
- package/build/hooks/block-hooks.js.map +1 -1
- package/build/hooks/block-style-variation.js +2 -2
- package/build/hooks/block-style-variation.js.map +1 -1
- package/build/hooks/contrast-checker.js +6 -6
- package/build/hooks/contrast-checker.js.map +1 -1
- package/build/hooks/duotone.js +3 -3
- package/build/hooks/duotone.js.map +1 -1
- package/build/hooks/index.js +7 -1
- package/build/hooks/index.js.map +1 -1
- package/build/hooks/line-height.js +0 -1
- package/build/hooks/line-height.js.map +1 -1
- package/build/hooks/spacing-visualizer.js +1 -1
- package/build/hooks/spacing-visualizer.js.map +1 -1
- package/build/hooks/use-bindings-attributes.js +4 -0
- package/build/hooks/use-bindings-attributes.js.map +1 -1
- package/build/hooks/use-zoom-out.js +1 -1
- package/build/hooks/use-zoom-out.js.map +1 -1
- package/build/hooks/utils.js +20 -0
- package/build/hooks/utils.js.map +1 -1
- package/build/index.js +7 -0
- package/build/index.js.map +1 -1
- package/build/layouts/constrained.js +1 -0
- package/build/layouts/constrained.js.map +1 -1
- package/build/layouts/flex.js +2 -0
- package/build/layouts/flex.js.map +1 -1
- package/build/layouts/grid.js +3 -0
- package/build/layouts/grid.js.map +1 -1
- package/build/private-apis.js +3 -2
- package/build/private-apis.js.map +1 -1
- package/build/store/actions.js +9 -1
- package/build/store/actions.js.map +1 -1
- package/build/store/private-selectors.js +30 -0
- package/build/store/private-selectors.js.map +1 -1
- package/build/store/reducer.js +10 -1
- package/build/store/reducer.js.map +1 -1
- package/build/store/selectors.js +4 -4
- package/build/store/selectors.js.map +1 -1
- package/build/utils/block-bindings.js +112 -0
- package/build/utils/block-bindings.js.map +1 -0
- package/build/utils/get-editor-region.js +1 -1
- package/build/utils/get-editor-region.js.map +1 -1
- package/build/utils/get-px-from-css-unit.js +1 -1
- package/build/utils/get-px-from-css-unit.js.map +1 -1
- package/build-module/autocompleters/block.js +1 -1
- package/build-module/autocompleters/block.js.map +1 -1
- package/build-module/components/block-breadcrumb/index.js +4 -2
- package/build-module/components/block-breadcrumb/index.js.map +1 -1
- package/build-module/components/block-draggable/index.js +3 -3
- package/build-module/components/block-draggable/index.js.map +1 -1
- package/build-module/components/block-list/use-block-props/index.js +2 -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-block-refs.js +24 -34
- package/build-module/components/block-list/use-block-props/use-block-refs.js.map +1 -1
- package/build-module/components/block-list/use-in-between-inserter.js +11 -4
- package/build-module/components/block-list/use-in-between-inserter.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-popover/cover.js +1 -1
- package/build-module/components/block-popover/cover.js.map +1 -1
- package/build-module/components/block-popover/inbetween.js +1 -1
- package/build-module/components/block-popover/inbetween.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-settings-menu/block-mode-toggle.js +29 -34
- package/build-module/components/block-settings-menu/block-mode-toggle.js.map +1 -1
- package/build-module/components/block-tools/block-selection-button.js +1 -2
- package/build-module/components/block-tools/block-selection-button.js.map +1 -1
- package/build-module/components/block-tools/index.js +1 -1
- package/build-module/components/block-tools/index.js.map +1 -1
- package/build-module/components/block-tools/insertion-point.js +14 -3
- package/build-module/components/block-tools/insertion-point.js.map +1 -1
- package/build-module/components/block-tools/use-block-toolbar-popover-props.js +1 -1
- package/build-module/components/block-tools/use-block-toolbar-popover-props.js.map +1 -1
- package/build-module/components/block-tools/use-show-block-tools.js +2 -1
- 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 +23 -20
- package/build-module/components/block-tools/zoom-out-mode-inserters.js.map +1 -1
- package/build-module/components/block-tools/zoom-out-toolbar.js +0 -1
- package/build-module/components/block-tools/zoom-out-toolbar.js.map +1 -1
- package/build-module/components/border-radius-control/index.js +1 -0
- package/build-module/components/border-radius-control/index.js.map +1 -1
- package/build-module/components/child-layout-control/index.js +3 -1
- package/build-module/components/child-layout-control/index.js.map +1 -1
- package/build-module/components/convert-to-group-buttons/index.js +1 -1
- package/build-module/components/convert-to-group-buttons/index.js.map +1 -1
- package/build-module/components/date-format-picker/index.js +2 -0
- package/build-module/components/date-format-picker/index.js.map +1 -1
- package/build-module/components/dimensions-tool/scale-tool.js +1 -0
- package/build-module/components/dimensions-tool/scale-tool.js.map +1 -1
- package/build-module/components/font-appearance-control/index.js +3 -0
- package/build-module/components/font-appearance-control/index.js.map +1 -1
- package/build-module/components/font-family/index.js +14 -0
- package/build-module/components/font-family/index.js.map +1 -1
- package/build-module/components/global-styles/background-panel.js +156 -80
- package/build-module/components/global-styles/background-panel.js.map +1 -1
- package/build-module/components/global-styles/get-global-styles-changes.js +3 -1
- package/build-module/components/global-styles/get-global-styles-changes.js.map +1 -1
- package/build-module/components/global-styles/hooks.js +0 -6
- package/build-module/components/global-styles/hooks.js.map +1 -1
- package/build-module/components/global-styles/image-settings-panel.js +1 -0
- package/build-module/components/global-styles/image-settings-panel.js.map +1 -1
- package/build-module/components/global-styles/index.js +1 -1
- package/build-module/components/global-styles/index.js.map +1 -1
- package/build-module/components/global-styles/typography-panel.js +0 -1
- package/build-module/components/global-styles/typography-panel.js.map +1 -1
- package/build-module/components/global-styles/use-global-styles-output.js +61 -42
- package/build-module/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build-module/components/global-styles/utils.js +77 -0
- package/build-module/components/global-styles/utils.js.map +1 -1
- package/build-module/components/grid/grid-item-movers.js +30 -26
- package/build-module/components/grid/grid-item-movers.js.map +1 -1
- package/build-module/components/grid/grid-item-resizer.js +14 -15
- package/build-module/components/grid/grid-item-resizer.js.map +1 -1
- package/build-module/components/grid/grid-visualizer.js +21 -6
- package/build-module/components/grid/grid-visualizer.js.map +1 -1
- package/build-module/components/grid/use-grid-layout-sync.js +56 -20
- package/build-module/components/grid/use-grid-layout-sync.js.map +1 -1
- package/build-module/components/height-control/index.js +1 -0
- package/build-module/components/height-control/index.js.map +1 -1
- package/build-module/components/iframe/index.js +2 -4
- package/build-module/components/iframe/index.js.map +1 -1
- package/build-module/components/image-editor/zoom-dropdown.js +12 -8
- package/build-module/components/image-editor/zoom-dropdown.js.map +1 -1
- package/build-module/components/inner-blocks/button-block-appender.js +7 -6
- package/build-module/components/inner-blocks/button-block-appender.js.map +1 -1
- package/build-module/components/inner-blocks/default-block-appender.js +6 -23
- package/build-module/components/inner-blocks/default-block-appender.js.map +1 -1
- package/build-module/components/inner-blocks/index.js +9 -11
- package/build-module/components/inner-blocks/index.js.map +1 -1
- package/build-module/components/inserter/category-tabs/index.js +30 -3
- package/build-module/components/inserter/category-tabs/index.js.map +1 -1
- package/build-module/components/inserter/library.js +4 -2
- package/build-module/components/inserter/library.js.map +1 -1
- package/build-module/components/inserter/menu.js +32 -14
- package/build-module/components/inserter/menu.js.map +1 -1
- package/build-module/components/inserter/quick-inserter.js +5 -1
- package/build-module/components/inserter/quick-inserter.js.map +1 -1
- package/build-module/components/line-height-control/index.js +3 -14
- package/build-module/components/line-height-control/index.js.map +1 -1
- package/build-module/components/link-control/search-input.js +0 -1
- package/build-module/components/link-control/search-input.js.map +1 -1
- package/build-module/components/media-placeholder/index.js +9 -4
- package/build-module/components/media-placeholder/index.js.map +1 -1
- package/build-module/components/media-replace-flow/index.js +3 -1
- package/build-module/components/media-replace-flow/index.js.map +1 -1
- package/build-module/components/media-upload/index.native.js +4 -1
- package/build-module/components/media-upload/index.native.js.map +1 -1
- package/build-module/components/multi-selection-inspector/index.js +12 -12
- package/build-module/components/multi-selection-inspector/index.js.map +1 -1
- package/build-module/components/resolution-tool/index.js +1 -0
- package/build-module/components/resolution-tool/index.js.map +1 -1
- package/build-module/components/skip-to-selected-block/index.js +5 -3
- package/build-module/components/skip-to-selected-block/index.js.map +1 -1
- package/build-module/components/spacing-sizes-control/input-controls/spacing-input-control.js +8 -8
- package/build-module/components/spacing-sizes-control/input-controls/spacing-input-control.js.map +1 -1
- package/build-module/components/text-alignment-control/index.js +13 -8
- package/build-module/components/text-alignment-control/index.js.map +1 -1
- package/build-module/components/text-decoration-control/index.js +13 -8
- package/build-module/components/text-decoration-control/index.js.map +1 -1
- package/build-module/components/text-transform-control/index.js +13 -8
- package/build-module/components/text-transform-control/index.js.map +1 -1
- package/build-module/components/url-input/button.js +0 -1
- package/build-module/components/url-input/button.js.map +1 -1
- package/build-module/components/url-input/index.js +1 -11
- package/build-module/components/url-input/index.js.map +1 -1
- package/build-module/components/url-popover/image-url-input-ui.js +2 -0
- package/build-module/components/url-popover/image-url-input-ui.js.map +1 -1
- package/build-module/components/url-popover/link-editor.js +0 -1
- package/build-module/components/url-popover/link-editor.js.map +1 -1
- package/build-module/components/use-block-drop-zone/index.js +42 -4
- package/build-module/components/use-block-drop-zone/index.js.map +1 -1
- package/build-module/components/use-on-block-drop/index.js +3 -6
- package/build-module/components/use-on-block-drop/index.js.map +1 -1
- package/build-module/components/use-resize-canvas/index.js +1 -3
- package/build-module/components/use-resize-canvas/index.js.map +1 -1
- package/build-module/components/use-settings/index.js +2 -1
- package/build-module/components/use-settings/index.js.map +1 -1
- package/build-module/components/writing-mode-control/index.js +13 -8
- package/build-module/components/writing-mode-control/index.js.map +1 -1
- package/build-module/hooks/background.js +19 -23
- package/build-module/hooks/background.js.map +1 -1
- package/build-module/hooks/block-bindings.js +214 -43
- package/build-module/hooks/block-bindings.js.map +1 -1
- package/build-module/hooks/block-hooks.js +1 -0
- package/build-module/hooks/block-hooks.js.map +1 -1
- package/build-module/hooks/block-style-variation.js +3 -3
- package/build-module/hooks/block-style-variation.js.map +1 -1
- package/build-module/hooks/contrast-checker.js +7 -7
- package/build-module/hooks/contrast-checker.js.map +1 -1
- package/build-module/hooks/duotone.js +4 -4
- package/build-module/hooks/duotone.js.map +1 -1
- package/build-module/hooks/index.js +2 -1
- package/build-module/hooks/index.js.map +1 -1
- package/build-module/hooks/line-height.js +0 -1
- package/build-module/hooks/line-height.js.map +1 -1
- package/build-module/hooks/spacing-visualizer.js +1 -1
- package/build-module/hooks/spacing-visualizer.js.map +1 -1
- package/build-module/hooks/use-bindings-attributes.js +3 -0
- package/build-module/hooks/use-bindings-attributes.js.map +1 -1
- package/build-module/hooks/use-zoom-out.js +1 -1
- package/build-module/hooks/use-zoom-out.js.map +1 -1
- package/build-module/hooks/utils.js +19 -0
- package/build-module/hooks/utils.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 -0
- package/build-module/layouts/constrained.js.map +1 -1
- package/build-module/layouts/flex.js +2 -0
- package/build-module/layouts/flex.js.map +1 -1
- package/build-module/layouts/grid.js +3 -0
- package/build-module/layouts/grid.js.map +1 -1
- package/build-module/private-apis.js +4 -3
- package/build-module/private-apis.js.map +1 -1
- package/build-module/store/actions.js +9 -1
- package/build-module/store/actions.js.map +1 -1
- package/build-module/store/private-selectors.js +27 -0
- package/build-module/store/private-selectors.js.map +1 -1
- package/build-module/store/reducer.js +9 -1
- package/build-module/store/reducer.js.map +1 -1
- package/build-module/store/selectors.js +4 -4
- package/build-module/store/selectors.js.map +1 -1
- package/build-module/utils/block-bindings.js +105 -0
- package/build-module/utils/block-bindings.js.map +1 -0
- package/build-module/utils/get-editor-region.js +1 -1
- package/build-module/utils/get-editor-region.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-style/content-rtl.css +12 -26
- package/build-style/content.css +12 -26
- package/build-style/default-editor-styles-rtl.css +5 -2
- package/build-style/default-editor-styles.css +5 -2
- package/build-style/style-rtl.css +123 -83
- package/build-style/style.css +123 -83
- package/package.json +32 -32
- package/src/autocompleters/block.js +2 -1
- package/src/autocompleters/style.scss +4 -0
- package/src/components/block-breadcrumb/index.js +4 -2
- package/src/components/block-canvas/style.scss +1 -0
- package/src/components/block-draggable/index.js +3 -3
- package/src/components/block-list/content.scss +5 -13
- package/src/components/block-list/use-block-props/index.js +2 -2
- package/src/components/block-list/use-block-props/use-block-refs.js +27 -43
- package/src/components/block-list/use-in-between-inserter.js +17 -5
- package/src/components/block-mover/index.js +5 -2
- package/src/components/block-popover/cover.js +1 -1
- package/src/components/block-popover/inbetween.js +1 -1
- package/src/components/block-popover/index.js +1 -1
- package/src/components/block-settings-menu/block-mode-toggle.js +28 -31
- package/src/components/block-settings-menu/test/block-mode-toggle.js +26 -23
- package/src/components/block-tools/block-selection-button.js +1 -2
- package/src/components/block-tools/index.js +5 -6
- package/src/components/block-tools/insertion-point.js +11 -0
- package/src/components/block-tools/style.scss +1 -1
- package/src/components/block-tools/use-block-toolbar-popover-props.js +1 -1
- package/src/components/block-tools/use-show-block-tools.js +4 -1
- package/src/components/block-tools/zoom-out-mode-inserters.js +21 -19
- package/src/components/block-tools/zoom-out-toolbar.js +0 -1
- package/src/components/block-variation-transforms/style.scss +1 -1
- package/src/components/border-radius-control/index.js +1 -0
- package/src/components/border-radius-control/style.scss +0 -10
- package/src/components/button-block-appender/content.scss +1 -1
- package/src/components/child-layout-control/index.js +2 -0
- package/src/components/color-palette/test/__snapshots__/control.js.snap +2 -2
- package/src/components/colors-gradients/test/control.js +3 -2
- package/src/components/convert-to-group-buttons/index.js +1 -1
- package/src/components/date-format-picker/index.js +2 -0
- package/src/components/dimensions-tool/scale-tool.js +1 -0
- package/src/components/font-appearance-control/index.js +3 -0
- package/src/components/font-family/README.md +17 -0
- package/src/components/font-family/index.js +19 -0
- package/src/components/font-family/stories/index.story.js +54 -0
- package/src/components/global-styles/background-panel.js +180 -93
- package/src/components/global-styles/get-global-styles-changes.js +4 -1
- package/src/components/global-styles/hooks.js +0 -5
- package/src/components/global-styles/image-settings-panel.js +1 -0
- package/src/components/global-styles/index.js +0 -1
- package/src/components/global-styles/style.scss +13 -12
- package/src/components/global-styles/test/use-global-styles-output.js +68 -7
- package/src/components/global-styles/test/utils.js +120 -0
- package/src/components/global-styles/typography-panel.js +0 -1
- package/src/components/global-styles/use-global-styles-output.js +71 -53
- package/src/components/global-styles/utils.js +90 -0
- package/src/components/grid/grid-item-movers.js +46 -44
- package/src/components/grid/grid-item-resizer.js +11 -17
- package/src/components/grid/grid-visualizer.js +23 -8
- package/src/components/grid/style.scss +60 -10
- package/src/components/grid/use-grid-layout-sync.js +68 -14
- package/src/components/height-control/index.js +1 -0
- package/src/components/iframe/content.scss +2 -2
- package/src/components/iframe/index.js +1 -3
- package/src/components/image-editor/zoom-dropdown.js +17 -9
- package/src/components/inner-blocks/button-block-appender.js +5 -7
- package/src/components/inner-blocks/default-block-appender.js +4 -23
- package/src/components/inner-blocks/index.js +10 -9
- package/src/components/inserter/category-tabs/index.js +35 -2
- package/src/components/inserter/library.js +2 -0
- package/src/components/inserter/menu.js +34 -29
- package/src/components/inserter/quick-inserter.js +4 -1
- package/src/components/inserter/style.scss +17 -12
- package/src/components/inserter-list-item/style.scss +1 -0
- package/src/components/inspector-controls/README.md +5 -0
- package/src/components/line-height-control/README.md +4 -5
- package/src/components/line-height-control/index.js +4 -21
- package/src/components/line-height-control/stories/index.story.js +0 -1
- package/src/components/line-height-control/test/index.js +1 -7
- package/src/components/link-control/search-input.js +0 -1
- package/src/components/link-control/style.scss +1 -1
- package/src/components/media-placeholder/index.js +12 -7
- package/src/components/media-replace-flow/README.md +7 -0
- package/src/components/media-replace-flow/index.js +3 -1
- package/src/components/media-upload/README.md +2 -0
- package/src/components/media-upload/index.native.js +2 -0
- package/src/components/multi-selection-inspector/index.js +8 -9
- package/src/components/resolution-tool/index.js +1 -0
- package/src/components/responsive-block-control/README.md +1 -0
- package/src/components/responsive-block-control/test/index.js +6 -1
- package/src/components/skip-to-selected-block/index.js +5 -3
- package/src/components/spacing-sizes-control/input-controls/spacing-input-control.js +11 -10
- package/src/components/spacing-sizes-control/style.scss +16 -16
- package/src/components/tabbed-sidebar/style.scss +1 -19
- package/src/components/text-alignment-control/index.js +20 -8
- package/src/components/text-decoration-control/index.js +20 -8
- package/src/components/text-decoration-control/stories/index.story.js +0 -4
- package/src/components/text-transform-control/index.js +20 -8
- package/src/components/text-transform-control/stories/index.story.js +0 -4
- package/src/components/url-input/README.md +0 -5
- package/src/components/url-input/button.js +0 -1
- package/src/components/url-input/index.js +1 -15
- package/src/components/url-input/style.scss +2 -2
- package/src/components/url-popover/image-url-input-ui.js +2 -0
- package/src/components/url-popover/link-editor.js +0 -1
- package/src/components/use-block-drop-zone/index.js +86 -16
- package/src/components/use-on-block-drop/index.js +1 -9
- package/src/components/use-resize-canvas/index.js +1 -3
- package/src/components/use-settings/index.js +2 -1
- package/src/components/writing-mode-control/index.js +20 -8
- package/src/hooks/background.js +21 -27
- package/src/hooks/block-bindings.js +248 -54
- package/src/hooks/block-bindings.scss +13 -2
- package/src/hooks/block-hooks.js +1 -0
- package/src/hooks/block-hooks.scss +1 -0
- package/src/hooks/block-style-variation.js +3 -3
- package/src/hooks/contrast-checker.js +7 -7
- package/src/hooks/duotone.js +4 -4
- package/src/hooks/index.js +2 -1
- package/src/hooks/line-height.js +0 -1
- package/src/hooks/spacing-visualizer.js +1 -1
- package/src/hooks/test/background.js +60 -0
- package/src/hooks/use-bindings-attributes.js +4 -0
- package/src/hooks/use-editor-wrapper-styles.native.scss +1 -0
- package/src/hooks/use-zoom-out.js +1 -1
- package/src/hooks/utils.js +14 -1
- package/src/index.js +1 -0
- package/src/layouts/constrained.js +1 -0
- package/src/layouts/flex.js +2 -0
- package/src/layouts/grid.js +3 -0
- package/src/private-apis.js +3 -2
- package/src/store/actions.js +13 -5
- package/src/store/private-selectors.js +36 -0
- package/src/store/reducer.js +7 -0
- package/src/store/selectors.js +4 -4
- package/src/store/test/private-selectors.js +89 -0
- package/src/style.scss +1 -2
- package/src/utils/block-bindings.js +98 -0
- package/src/utils/get-editor-region.js +1 -1
- package/src/utils/get-px-from-css-unit.js +1 -1
- package/src/utils/test/transform-styles.js +49 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/build/components/global-styles/theme-file-uri-utils.js +0 -80
- package/build/components/global-styles/theme-file-uri-utils.js.map +0 -1
- package/build/components/inner-blocks/with-client-id.js +0 -28
- package/build/components/inner-blocks/with-client-id.js.map +0 -1
- package/build/components/inserter/block-patterns-tab/pattern-category-preview-panel.js +0 -30
- package/build/components/inserter/block-patterns-tab/pattern-category-preview-panel.js.map +0 -1
- package/build/components/segmented-text-control/index.js +0 -63
- package/build/components/segmented-text-control/index.js.map +0 -1
- package/build-module/components/global-styles/theme-file-uri-utils.js +0 -73
- package/build-module/components/global-styles/theme-file-uri-utils.js.map +0 -1
- package/build-module/components/inner-blocks/with-client-id.js +0 -21
- package/build-module/components/inner-blocks/with-client-id.js.map +0 -1
- package/build-module/components/inserter/block-patterns-tab/pattern-category-preview-panel.js +0 -23
- package/build-module/components/inserter/block-patterns-tab/pattern-category-preview-panel.js.map +0 -1
- package/build-module/components/segmented-text-control/index.js +0 -58
- package/build-module/components/segmented-text-control/index.js.map +0 -1
- package/src/components/global-styles/test/theme-file-uri-utils.js +0 -66
- package/src/components/global-styles/theme-file-uri-utils.js +0 -77
- package/src/components/inner-blocks/with-client-id.js +0 -19
- package/src/components/inserter/block-patterns-tab/pattern-category-preview-panel.js +0 -25
- package/src/components/segmented-text-control/index.js +0 -63
- package/src/components/segmented-text-control/style.scss +0 -15
package/build-style/style.css
CHANGED
|
@@ -34,10 +34,13 @@
|
|
|
34
34
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
35
35
|
*/
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Radius scale.
|
|
38
38
|
*/
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Elevation scale.
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* Dimensions.
|
|
41
44
|
*/
|
|
42
45
|
/**
|
|
43
46
|
* Editor widths.
|
|
@@ -110,6 +113,9 @@
|
|
|
110
113
|
.block-editor-autocompleters__block .block-editor-block-icon {
|
|
111
114
|
margin-right: 8px;
|
|
112
115
|
}
|
|
116
|
+
.block-editor-autocompleters__block[aria-selected=true] .block-editor-block-icon {
|
|
117
|
+
color: inherit !important;
|
|
118
|
+
}
|
|
113
119
|
|
|
114
120
|
.block-editor-autocompleters__link {
|
|
115
121
|
white-space: nowrap;
|
|
@@ -128,6 +134,13 @@ iframe[name=editor-canvas] {
|
|
|
128
134
|
height: 100%;
|
|
129
135
|
display: block;
|
|
130
136
|
background-color: transparent;
|
|
137
|
+
transition: all 0.5s cubic-bezier(0.65, 0, 0.45, 1);
|
|
138
|
+
}
|
|
139
|
+
@media (prefers-reduced-motion: reduce) {
|
|
140
|
+
iframe[name=editor-canvas] {
|
|
141
|
+
transition-duration: 0s;
|
|
142
|
+
transition-delay: 0s;
|
|
143
|
+
}
|
|
131
144
|
}
|
|
132
145
|
|
|
133
146
|
.block-editor-block-icon {
|
|
@@ -1403,14 +1416,6 @@ iframe[name=editor-canvas] {
|
|
|
1403
1416
|
flex: 1;
|
|
1404
1417
|
margin-right: 12px;
|
|
1405
1418
|
}
|
|
1406
|
-
.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__range-control > div {
|
|
1407
|
-
height: 40px;
|
|
1408
|
-
display: flex;
|
|
1409
|
-
align-items: center;
|
|
1410
|
-
}
|
|
1411
|
-
.components-border-radius-control .components-border-radius-control__wrapper > span {
|
|
1412
|
-
flex: 0 0 auto;
|
|
1413
|
-
}
|
|
1414
1419
|
.components-border-radius-control .components-border-radius-control__input-controls-wrapper {
|
|
1415
1420
|
display: grid;
|
|
1416
1421
|
gap: 16px;
|
|
@@ -1654,6 +1659,16 @@ iframe[name=editor-canvas] {
|
|
|
1654
1659
|
.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button:focus {
|
|
1655
1660
|
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
1656
1661
|
}
|
|
1662
|
+
.block-editor-global-styles-background-panel__image-tools-panel-item .block-editor-global-styles-background-panel__loading {
|
|
1663
|
+
height: 100%;
|
|
1664
|
+
position: absolute;
|
|
1665
|
+
z-index: 1;
|
|
1666
|
+
width: 100%;
|
|
1667
|
+
padding: 10px 0 0 0;
|
|
1668
|
+
}
|
|
1669
|
+
.block-editor-global-styles-background-panel__image-tools-panel-item .block-editor-global-styles-background-panel__loading svg {
|
|
1670
|
+
margin: 0;
|
|
1671
|
+
}
|
|
1657
1672
|
|
|
1658
1673
|
.block-editor-global-styles-background-panel__image-preview-content,
|
|
1659
1674
|
.block-editor-global-styles-background-panel__dropdown-toggle {
|
|
@@ -1707,10 +1722,6 @@ iframe[name=editor-canvas] {
|
|
|
1707
1722
|
min-width: 260px;
|
|
1708
1723
|
overflow-x: hidden;
|
|
1709
1724
|
}
|
|
1710
|
-
.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-base-control__help,
|
|
1711
|
-
.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-toggle-control {
|
|
1712
|
-
margin-bottom: 0;
|
|
1713
|
-
}
|
|
1714
1725
|
.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker-wrapper {
|
|
1715
1726
|
background-color: #f0f0f0;
|
|
1716
1727
|
width: 100%;
|
|
@@ -1724,12 +1735,6 @@ iframe[name=editor-canvas] {
|
|
|
1724
1735
|
content: none;
|
|
1725
1736
|
}
|
|
1726
1737
|
|
|
1727
|
-
.block-editor-global-styles-background-panel__hidden-tools-panel-item {
|
|
1728
|
-
height: 0;
|
|
1729
|
-
width: 0;
|
|
1730
|
-
position: absolute;
|
|
1731
|
-
}
|
|
1732
|
-
|
|
1733
1738
|
.modal-open .block-editor-global-styles-background-panel__popover {
|
|
1734
1739
|
z-index: 159890;
|
|
1735
1740
|
}
|
|
@@ -1827,7 +1832,6 @@ iframe[name=editor-canvas] {
|
|
|
1827
1832
|
.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button {
|
|
1828
1833
|
width: 24px;
|
|
1829
1834
|
min-width: 0 !important;
|
|
1830
|
-
overflow: hidden;
|
|
1831
1835
|
padding-left: 0;
|
|
1832
1836
|
padding-right: 0;
|
|
1833
1837
|
}
|
|
@@ -1871,7 +1875,7 @@ iframe[name=editor-canvas] {
|
|
|
1871
1875
|
justify-content: space-around;
|
|
1872
1876
|
}
|
|
1873
1877
|
.block-editor-grid-item-mover__move-vertical-button-container > .block-editor-grid-item-mover-button.block-editor-grid-item-mover-button {
|
|
1874
|
-
height: 20px;
|
|
1878
|
+
height: 20px !important;
|
|
1875
1879
|
width: 100%;
|
|
1876
1880
|
min-width: 0 !important;
|
|
1877
1881
|
}
|
|
@@ -1885,13 +1889,43 @@ iframe[name=editor-canvas] {
|
|
|
1885
1889
|
}
|
|
1886
1890
|
}
|
|
1887
1891
|
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1892
|
+
@media (min-width: 600px) {
|
|
1893
|
+
.editor-collapsible-block-toolbar .block-editor-grid-item-mover__move-vertical-button-container {
|
|
1894
|
+
height: 40px;
|
|
1895
|
+
position: relative;
|
|
1896
|
+
top: -5px;
|
|
1897
|
+
}
|
|
1891
1898
|
}
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1899
|
+
|
|
1900
|
+
.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container {
|
|
1901
|
+
position: relative;
|
|
1902
|
+
}
|
|
1903
|
+
@media (min-width: 600px) {
|
|
1904
|
+
.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container::before {
|
|
1905
|
+
content: "";
|
|
1906
|
+
height: 100%;
|
|
1907
|
+
width: 1px;
|
|
1908
|
+
background: #e0e0e0;
|
|
1909
|
+
position: absolute;
|
|
1910
|
+
top: 0;
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
@media (min-width: 782px) {
|
|
1914
|
+
.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container::before {
|
|
1915
|
+
background: #1e1e1e;
|
|
1916
|
+
}
|
|
1917
|
+
}
|
|
1918
|
+
.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-left {
|
|
1919
|
+
padding-right: 6px;
|
|
1920
|
+
}
|
|
1921
|
+
.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-left::before {
|
|
1922
|
+
right: 0;
|
|
1923
|
+
}
|
|
1924
|
+
.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-right {
|
|
1925
|
+
padding-left: 6px;
|
|
1926
|
+
}
|
|
1927
|
+
.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-right::before {
|
|
1928
|
+
left: 0;
|
|
1895
1929
|
}
|
|
1896
1930
|
@media (min-width: 600px) {
|
|
1897
1931
|
.show-icon-labels .block-editor-grid-item-mover__move-vertical-button-container::before {
|
|
@@ -1911,6 +1945,18 @@ iframe[name=editor-canvas] {
|
|
|
1911
1945
|
background: #1e1e1e;
|
|
1912
1946
|
}
|
|
1913
1947
|
}
|
|
1948
|
+
.show-icon-labels .block-editor-grid-item-mover-button {
|
|
1949
|
+
white-space: nowrap;
|
|
1950
|
+
}
|
|
1951
|
+
.show-icon-labels .editor-collapsible-block-toolbar .block-editor-grid-item-mover__move-horizontal-button-container::before {
|
|
1952
|
+
height: 24px;
|
|
1953
|
+
background: #ddd;
|
|
1954
|
+
top: 4px;
|
|
1955
|
+
}
|
|
1956
|
+
.show-icon-labels .editor-collapsible-block-toolbar .block-editor-grid-item-mover__move-vertical-button-container::before {
|
|
1957
|
+
background: #ddd;
|
|
1958
|
+
width: calc(100% - 24px);
|
|
1959
|
+
}
|
|
1914
1960
|
|
|
1915
1961
|
.block-editor-height-control {
|
|
1916
1962
|
border: 0;
|
|
@@ -2034,6 +2080,8 @@ iframe[name=editor-canvas] {
|
|
|
2034
2080
|
.block-editor-block-types-list__item-title {
|
|
2035
2081
|
padding: 4px 2px 8px;
|
|
2036
2082
|
font-size: 12px;
|
|
2083
|
+
-webkit-hyphens: auto;
|
|
2084
|
+
hyphens: auto;
|
|
2037
2085
|
}
|
|
2038
2086
|
|
|
2039
2087
|
.show-icon-labels .block-editor-block-inspector__tabs [role=tablist] .components-button {
|
|
@@ -3132,19 +3180,6 @@ iframe[name=editor-canvas] {
|
|
|
3132
3180
|
content: attr(aria-label);
|
|
3133
3181
|
}
|
|
3134
3182
|
|
|
3135
|
-
.block-editor-segmented-text-control {
|
|
3136
|
-
border: 0;
|
|
3137
|
-
margin: 0;
|
|
3138
|
-
padding: 0;
|
|
3139
|
-
}
|
|
3140
|
-
.block-editor-segmented-text-control .block-editor-segmented-text-control__buttons {
|
|
3141
|
-
padding: 4px 0;
|
|
3142
|
-
display: flex;
|
|
3143
|
-
}
|
|
3144
|
-
.block-editor-segmented-text-control .components-button.has-icon {
|
|
3145
|
-
margin-right: 4px;
|
|
3146
|
-
}
|
|
3147
|
-
|
|
3148
3183
|
.block-editor-skip-to-selected-block {
|
|
3149
3184
|
position: absolute;
|
|
3150
3185
|
top: -9999em;
|
|
@@ -3166,17 +3201,13 @@ iframe[name=editor-canvas] {
|
|
|
3166
3201
|
}
|
|
3167
3202
|
|
|
3168
3203
|
.block-editor-tabbed-sidebar {
|
|
3204
|
+
background-color: #fff;
|
|
3169
3205
|
height: 100%;
|
|
3170
3206
|
display: flex;
|
|
3171
3207
|
flex-direction: column;
|
|
3172
3208
|
flex-grow: 1;
|
|
3173
3209
|
overflow: hidden;
|
|
3174
3210
|
}
|
|
3175
|
-
@media (min-width: 782px) {
|
|
3176
|
-
.block-editor-tabbed-sidebar {
|
|
3177
|
-
width: 350px;
|
|
3178
|
-
}
|
|
3179
|
-
}
|
|
3180
3211
|
|
|
3181
3212
|
.block-editor-tabbed-sidebar__tablist-and-close-button {
|
|
3182
3213
|
border-bottom: 1px solid #ddd;
|
|
@@ -3193,20 +3224,7 @@ iframe[name=editor-canvas] {
|
|
|
3193
3224
|
}
|
|
3194
3225
|
|
|
3195
3226
|
.block-editor-tabbed-sidebar__tablist {
|
|
3196
|
-
box-sizing: border-box;
|
|
3197
|
-
flex-grow: 1;
|
|
3198
3227
|
margin-bottom: -1px;
|
|
3199
|
-
width: 100%;
|
|
3200
|
-
}
|
|
3201
|
-
|
|
3202
|
-
.block-editor-tabbed-sidebar__tab {
|
|
3203
|
-
flex-grow: 1;
|
|
3204
|
-
margin-bottom: -1px;
|
|
3205
|
-
}
|
|
3206
|
-
.block-editor-tabbed-sidebar__tab[id$=reusable] {
|
|
3207
|
-
flex-grow: inherit;
|
|
3208
|
-
padding-left: 16px;
|
|
3209
|
-
padding-right: 16px;
|
|
3210
3228
|
}
|
|
3211
3229
|
|
|
3212
3230
|
.block-editor-tabbed-sidebar__tabpanel {
|
|
@@ -3497,10 +3515,6 @@ iframe[name=editor-canvas] {
|
|
|
3497
3515
|
font-size: 12px;
|
|
3498
3516
|
}
|
|
3499
3517
|
|
|
3500
|
-
.components-panel__block-bindings-panel .components-item__block-bindings-source {
|
|
3501
|
-
color: #757575;
|
|
3502
|
-
}
|
|
3503
|
-
|
|
3504
3518
|
.block-editor-hooks__block-hooks {
|
|
3505
3519
|
/**
|
|
3506
3520
|
* Since we're displaying the block icon alongside the block name,
|
|
@@ -3511,6 +3525,7 @@ iframe[name=editor-canvas] {
|
|
|
3511
3525
|
*/
|
|
3512
3526
|
}
|
|
3513
3527
|
.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack {
|
|
3528
|
+
/* stylelint-disable-next-line declaration-property-value-allowed-list -- This should be refactored to not use the row-reverse value. */
|
|
3514
3529
|
flex-direction: row-reverse;
|
|
3515
3530
|
}
|
|
3516
3531
|
.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack .components-h-stack {
|
|
@@ -3522,6 +3537,18 @@ iframe[name=editor-canvas] {
|
|
|
3522
3537
|
margin-bottom: 16px;
|
|
3523
3538
|
}
|
|
3524
3539
|
|
|
3540
|
+
div.block-editor-bindings__panel {
|
|
3541
|
+
grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
|
|
3542
|
+
}
|
|
3543
|
+
div.block-editor-bindings__panel button:hover .block-editor-bindings__item-explanation {
|
|
3544
|
+
color: inherit;
|
|
3545
|
+
}
|
|
3546
|
+
|
|
3547
|
+
.block-editor-bindings__popover .block-editor-bindings__source-label {
|
|
3548
|
+
grid-column: 2;
|
|
3549
|
+
margin: 8px 0;
|
|
3550
|
+
}
|
|
3551
|
+
|
|
3525
3552
|
.border-block-support-panel .single-column {
|
|
3526
3553
|
grid-column: span 1;
|
|
3527
3554
|
}
|
|
@@ -3860,6 +3887,11 @@ iframe[name=editor-canvas] {
|
|
|
3860
3887
|
.block-editor-inserter__main-area.show-as-tabs {
|
|
3861
3888
|
gap: 0;
|
|
3862
3889
|
}
|
|
3890
|
+
@media (min-width: 782px) {
|
|
3891
|
+
.block-editor-inserter__main-area .block-editor-tabbed-sidebar {
|
|
3892
|
+
width: 350px;
|
|
3893
|
+
}
|
|
3894
|
+
}
|
|
3863
3895
|
|
|
3864
3896
|
.block-editor-inserter__popover.is-quick .components-popover__content {
|
|
3865
3897
|
border: none;
|
|
@@ -3917,6 +3949,11 @@ iframe[name=editor-canvas] {
|
|
|
3917
3949
|
position: relative;
|
|
3918
3950
|
overflow: visible;
|
|
3919
3951
|
}
|
|
3952
|
+
@media (min-width: 782px) {
|
|
3953
|
+
.block-editor-inserter__menu.show-panel {
|
|
3954
|
+
width: 630px;
|
|
3955
|
+
}
|
|
3956
|
+
}
|
|
3920
3957
|
|
|
3921
3958
|
.block-editor-inserter__inline-elements {
|
|
3922
3959
|
margin-top: -1px;
|
|
@@ -4111,14 +4148,13 @@ iframe[name=editor-canvas] {
|
|
|
4111
4148
|
.block-editor-inserter__category-panel {
|
|
4112
4149
|
border-left: 1px solid #e0e0e0;
|
|
4113
4150
|
padding: 0;
|
|
4114
|
-
left:
|
|
4115
|
-
width:
|
|
4151
|
+
left: 350px;
|
|
4152
|
+
width: 280px;
|
|
4116
4153
|
position: absolute;
|
|
4117
4154
|
top: -1px;
|
|
4118
4155
|
height: calc(100% + 1px);
|
|
4119
4156
|
background: #f0f0f0;
|
|
4120
4157
|
border-top: 1px solid #e0e0e0;
|
|
4121
|
-
box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.133);
|
|
4122
4158
|
}
|
|
4123
4159
|
.block-editor-inserter__category-panel .block-editor-inserter__media-list,
|
|
4124
4160
|
.block-editor-inserter__category-panel .block-editor-block-patterns-list {
|
|
@@ -4447,9 +4483,6 @@ iframe[name=editor-canvas] {
|
|
|
4447
4483
|
height: 100%;
|
|
4448
4484
|
}
|
|
4449
4485
|
}
|
|
4450
|
-
.block-editor-inserter__menu.is-zoom-out .block-editor-inserter__category-panel {
|
|
4451
|
-
box-shadow: none;
|
|
4452
|
-
}
|
|
4453
4486
|
|
|
4454
4487
|
@media (max-width: 959px) {
|
|
4455
4488
|
.show-icon-labels .block-editor-block-patterns-explorer .block-editor-patterns__grid-pagination {
|
|
@@ -4472,32 +4505,39 @@ iframe[name=editor-canvas] {
|
|
|
4472
4505
|
.spacing-sizes-control .spacing-sizes-control__label {
|
|
4473
4506
|
margin-bottom: 0;
|
|
4474
4507
|
}
|
|
4508
|
+
.spacing-sizes-control .is-marked .components-range-control__track {
|
|
4509
|
+
transition: width ease 0.1s;
|
|
4510
|
+
}
|
|
4511
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4512
|
+
.spacing-sizes-control .is-marked .components-range-control__track {
|
|
4513
|
+
transition-duration: 0s;
|
|
4514
|
+
transition-delay: 0s;
|
|
4515
|
+
}
|
|
4516
|
+
}
|
|
4517
|
+
.spacing-sizes-control .is-marked .components-range-control__thumb-wrapper {
|
|
4518
|
+
transition: left ease 0.1s;
|
|
4519
|
+
}
|
|
4520
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4521
|
+
.spacing-sizes-control .is-marked .components-range-control__thumb-wrapper {
|
|
4522
|
+
transition-duration: 0s;
|
|
4523
|
+
transition-delay: 0s;
|
|
4524
|
+
}
|
|
4525
|
+
}
|
|
4475
4526
|
.spacing-sizes-control .spacing-sizes-control__range-control,
|
|
4476
4527
|
.spacing-sizes-control .spacing-sizes-control__custom-value-range {
|
|
4477
|
-
height: 40px;
|
|
4478
|
-
/* Vertically center the RangeControl until it has true 40px height. */
|
|
4479
|
-
display: flex;
|
|
4480
|
-
align-items: center;
|
|
4481
|
-
margin-bottom: 0;
|
|
4482
|
-
flex: 1;
|
|
4483
|
-
}
|
|
4484
|
-
.spacing-sizes-control .spacing-sizes-control__range-control > .components-base-control__field,
|
|
4485
|
-
.spacing-sizes-control .spacing-sizes-control__custom-value-range > .components-base-control__field {
|
|
4486
|
-
/* Fixes RangeControl contents when the outer wrapper is flex */
|
|
4487
4528
|
flex: 1;
|
|
4488
4529
|
}
|
|
4489
4530
|
.spacing-sizes-control .components-range-control__mark {
|
|
4531
|
+
transform: translateX(-50%);
|
|
4490
4532
|
height: 4px;
|
|
4491
|
-
width:
|
|
4533
|
+
width: 2px;
|
|
4492
4534
|
background-color: #fff;
|
|
4493
4535
|
z-index: 1;
|
|
4536
|
+
top: -4px;
|
|
4494
4537
|
}
|
|
4495
4538
|
.spacing-sizes-control .components-range-control__marks {
|
|
4496
4539
|
margin-top: 17px;
|
|
4497
4540
|
}
|
|
4498
|
-
.spacing-sizes-control .components-range-control__marks :first-child {
|
|
4499
|
-
display: none;
|
|
4500
|
-
}
|
|
4501
4541
|
.spacing-sizes-control .components-range-control__thumb-wrapper {
|
|
4502
4542
|
z-index: 3;
|
|
4503
4543
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-editor",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.1.0",
|
|
4
4
|
"description": "Generic block editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -36,35 +36,35 @@
|
|
|
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": "^4.
|
|
40
|
-
"@wordpress/api-fetch": "^7.
|
|
41
|
-
"@wordpress/blob": "^4.
|
|
42
|
-
"@wordpress/blocks": "^13.
|
|
43
|
-
"@wordpress/commands": "^1.
|
|
44
|
-
"@wordpress/components": "^28.
|
|
45
|
-
"@wordpress/compose": "^7.
|
|
46
|
-
"@wordpress/data": "^10.
|
|
47
|
-
"@wordpress/date": "^5.
|
|
48
|
-
"@wordpress/deprecated": "^4.
|
|
49
|
-
"@wordpress/dom": "^4.
|
|
50
|
-
"@wordpress/element": "^6.
|
|
51
|
-
"@wordpress/escape-html": "^3.
|
|
52
|
-
"@wordpress/hooks": "^4.
|
|
53
|
-
"@wordpress/html-entities": "^4.
|
|
54
|
-
"@wordpress/i18n": "^5.
|
|
55
|
-
"@wordpress/icons": "^10.
|
|
56
|
-
"@wordpress/is-shallow-equal": "^5.
|
|
57
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
58
|
-
"@wordpress/keycodes": "^4.
|
|
59
|
-
"@wordpress/notices": "^5.
|
|
60
|
-
"@wordpress/preferences": "^4.
|
|
61
|
-
"@wordpress/private-apis": "^1.
|
|
62
|
-
"@wordpress/rich-text": "^7.
|
|
63
|
-
"@wordpress/style-engine": "^2.
|
|
64
|
-
"@wordpress/token-list": "^3.
|
|
65
|
-
"@wordpress/url": "^4.
|
|
66
|
-
"@wordpress/warning": "^3.
|
|
67
|
-
"@wordpress/wordcount": "^4.
|
|
39
|
+
"@wordpress/a11y": "^4.6.0",
|
|
40
|
+
"@wordpress/api-fetch": "^7.6.0",
|
|
41
|
+
"@wordpress/blob": "^4.6.0",
|
|
42
|
+
"@wordpress/blocks": "^13.6.0",
|
|
43
|
+
"@wordpress/commands": "^1.6.0",
|
|
44
|
+
"@wordpress/components": "^28.6.0",
|
|
45
|
+
"@wordpress/compose": "^7.6.0",
|
|
46
|
+
"@wordpress/data": "^10.6.0",
|
|
47
|
+
"@wordpress/date": "^5.6.0",
|
|
48
|
+
"@wordpress/deprecated": "^4.6.0",
|
|
49
|
+
"@wordpress/dom": "^4.6.0",
|
|
50
|
+
"@wordpress/element": "^6.6.0",
|
|
51
|
+
"@wordpress/escape-html": "^3.6.0",
|
|
52
|
+
"@wordpress/hooks": "^4.6.0",
|
|
53
|
+
"@wordpress/html-entities": "^4.6.0",
|
|
54
|
+
"@wordpress/i18n": "^5.6.0",
|
|
55
|
+
"@wordpress/icons": "^10.6.0",
|
|
56
|
+
"@wordpress/is-shallow-equal": "^5.6.0",
|
|
57
|
+
"@wordpress/keyboard-shortcuts": "^5.6.0",
|
|
58
|
+
"@wordpress/keycodes": "^4.6.0",
|
|
59
|
+
"@wordpress/notices": "^5.6.0",
|
|
60
|
+
"@wordpress/preferences": "^4.6.0",
|
|
61
|
+
"@wordpress/private-apis": "^1.6.0",
|
|
62
|
+
"@wordpress/rich-text": "^7.6.0",
|
|
63
|
+
"@wordpress/style-engine": "^2.6.0",
|
|
64
|
+
"@wordpress/token-list": "^3.6.0",
|
|
65
|
+
"@wordpress/url": "^4.6.0",
|
|
66
|
+
"@wordpress/warning": "^3.6.0",
|
|
67
|
+
"@wordpress/wordcount": "^4.6.0",
|
|
68
68
|
"change-case": "^4.1.2",
|
|
69
69
|
"clsx": "^2.1.1",
|
|
70
70
|
"colord": "^2.7.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"fast-deep-equal": "^3.1.3",
|
|
74
74
|
"memize": "^2.1.0",
|
|
75
75
|
"postcss": "^8.4.21",
|
|
76
|
-
"postcss-prefixwrap": "^1.
|
|
76
|
+
"postcss-prefixwrap": "^1.51.0",
|
|
77
77
|
"postcss-urlrebase": "^1.4.0",
|
|
78
78
|
"react-autosize-textarea": "^7.1.0",
|
|
79
79
|
"react-easy-crop": "^5.0.6",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "ab9564947967bb3f00343130954b9efacba6cdd7"
|
|
90
90
|
}
|
|
@@ -5,6 +5,7 @@ import { Button } from '@wordpress/components';
|
|
|
5
5
|
import { useSelect, useDispatch } from '@wordpress/data';
|
|
6
6
|
import { __ } from '@wordpress/i18n';
|
|
7
7
|
import { chevronRightSmall, Icon } from '@wordpress/icons';
|
|
8
|
+
import { useRef } from '@wordpress/element';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* Internal dependencies
|
|
@@ -12,7 +13,7 @@ import { chevronRightSmall, Icon } from '@wordpress/icons';
|
|
|
12
13
|
import BlockTitle from '../block-title';
|
|
13
14
|
import { store as blockEditorStore } from '../../store';
|
|
14
15
|
import { unlock } from '../../lock-unlock';
|
|
15
|
-
import {
|
|
16
|
+
import { useBlockElementRef } from '../block-list/use-block-props/use-block-refs';
|
|
16
17
|
import getEditorRegion from '../../utils/get-editor-region';
|
|
17
18
|
|
|
18
19
|
/**
|
|
@@ -41,7 +42,8 @@ function BlockBreadcrumb( { rootLabelText } ) {
|
|
|
41
42
|
|
|
42
43
|
// We don't care about this specific ref, but this is a way
|
|
43
44
|
// to get a ref within the editor canvas so we can focus it later.
|
|
44
|
-
const blockRef =
|
|
45
|
+
const blockRef = useRef();
|
|
46
|
+
useBlockElementRef( clientId, blockRef );
|
|
45
47
|
|
|
46
48
|
/*
|
|
47
49
|
* Disable reason: The `list` ARIA role is redundant but
|
|
@@ -13,7 +13,7 @@ import { throttle } from '@wordpress/compose';
|
|
|
13
13
|
import BlockDraggableChip from './draggable-chip';
|
|
14
14
|
import useScrollWhenDragging from './use-scroll-when-dragging';
|
|
15
15
|
import { store as blockEditorStore } from '../../store';
|
|
16
|
-
import {
|
|
16
|
+
import { useBlockElement } from '../block-list/use-block-props/use-block-refs';
|
|
17
17
|
import { isDropTargetValid } from '../use-block-drop-zone';
|
|
18
18
|
|
|
19
19
|
const BlockDraggable = ( {
|
|
@@ -82,8 +82,8 @@ const BlockDraggable = ( {
|
|
|
82
82
|
}, [] );
|
|
83
83
|
|
|
84
84
|
// Find the root of the editor iframe.
|
|
85
|
-
const
|
|
86
|
-
const editorRoot =
|
|
85
|
+
const blockEl = useBlockElement( clientIds[ 0 ] );
|
|
86
|
+
const editorRoot = blockEl?.closest( 'body' );
|
|
87
87
|
|
|
88
88
|
/*
|
|
89
89
|
* Add a dragover event listener to the editor root to track the blocks being dragged over.
|
|
@@ -89,11 +89,6 @@ _::-webkit-full-page-media, _:future, :root .has-multi-selection .block-editor-b
|
|
|
89
89
|
&::after {
|
|
90
90
|
@include selected-block-focus();
|
|
91
91
|
z-index: 1;
|
|
92
|
-
|
|
93
|
-
// Show a light color for dark themes.
|
|
94
|
-
.is-dark-theme & {
|
|
95
|
-
outline-color: $dark-theme-focus;
|
|
96
|
-
}
|
|
97
92
|
}
|
|
98
93
|
}
|
|
99
94
|
|
|
@@ -255,11 +250,13 @@ _::-webkit-full-page-media, _:future, :root .has-multi-selection .block-editor-b
|
|
|
255
250
|
|
|
256
251
|
.is-outline-mode .block-editor-block-list__block:not(.remove-outline) {
|
|
257
252
|
|
|
258
|
-
&.is-selected
|
|
253
|
+
&.is-selected,
|
|
254
|
+
&.is-hovered {
|
|
259
255
|
cursor: default;
|
|
260
256
|
|
|
261
|
-
&.rich-text
|
|
262
|
-
|
|
257
|
+
&.rich-text,
|
|
258
|
+
.rich-text {
|
|
259
|
+
cursor: auto;
|
|
263
260
|
}
|
|
264
261
|
}
|
|
265
262
|
|
|
@@ -285,11 +282,6 @@ _::-webkit-full-page-media, _:future, :root .has-multi-selection .block-editor-b
|
|
|
285
282
|
&.block-editor-block-list__block:not([contenteditable]):focus {
|
|
286
283
|
&::after {
|
|
287
284
|
outline-color: var(--wp-block-synced-color);
|
|
288
|
-
|
|
289
|
-
// Show a light color for dark themes.
|
|
290
|
-
.is-dark-theme & {
|
|
291
|
-
outline-color: $dark-theme-focus;
|
|
292
|
-
}
|
|
293
285
|
}
|
|
294
286
|
}
|
|
295
287
|
}
|
|
@@ -49,13 +49,13 @@ import { canBindBlock } from '../../../hooks/use-bindings-attributes';
|
|
|
49
49
|
*
|
|
50
50
|
* export default function Edit() {
|
|
51
51
|
*
|
|
52
|
-
* const blockProps = useBlockProps(
|
|
52
|
+
* const blockProps = useBlockProps( {
|
|
53
53
|
* className: 'my-custom-class',
|
|
54
54
|
* style: {
|
|
55
55
|
* color: '#222222',
|
|
56
56
|
* backgroundColor: '#eeeeee'
|
|
57
57
|
* }
|
|
58
|
-
* )
|
|
58
|
+
* } )
|
|
59
59
|
*
|
|
60
60
|
* return (
|
|
61
61
|
* <div { ...blockProps }>
|