@wordpress/block-editor 12.9.1-next.5a1d1283.0 → 12.10.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 +6 -0
- package/README.md +33 -3
- package/build/components/block-canvas/index.js +107 -0
- package/build/components/block-canvas/index.js.map +1 -0
- package/build/components/block-inspector/index.js +4 -1
- package/build/components/block-inspector/index.js.map +1 -1
- package/build/components/block-patterns-list/index.js +19 -4
- package/build/components/block-patterns-list/index.js.map +1 -1
- package/build/components/block-patterns-paging/index.js +66 -0
- package/build/components/block-patterns-paging/index.js.map +1 -0
- package/build/components/block-settings-menu/block-settings-dropdown.js +28 -0
- package/build/components/block-settings-menu/block-settings-dropdown.js.map +1 -1
- package/build/components/block-settings-menu-controls/index.js +4 -7
- package/build/components/block-settings-menu-controls/index.js.map +1 -1
- package/build/components/block-styles/index.js +1 -0
- package/build/components/block-styles/index.js.map +1 -1
- package/build/components/block-toolbar/block-toolbar-menu.native.js +3 -7
- package/build/components/block-toolbar/block-toolbar-menu.native.js.map +1 -1
- package/build/components/block-tools/block-contextual-toolbar.js +18 -7
- package/build/components/block-tools/block-contextual-toolbar.js.map +1 -1
- package/build/components/block-tools/block-selection-button.js +5 -1
- package/build/components/block-tools/block-selection-button.js.map +1 -1
- package/build/components/border-radius-control/input-controls.js +1 -1
- package/build/components/border-radius-control/input-controls.js.map +1 -1
- package/build/components/border-radius-control/linked-button.js +2 -4
- package/build/components/border-radius-control/linked-button.js.map +1 -1
- package/build/components/colors/with-colors.js.map +1 -1
- package/build/components/convert-to-group-buttons/use-convert-to-group-button-props.js +8 -21
- package/build/components/convert-to-group-buttons/use-convert-to-group-button-props.js.map +1 -1
- package/build/components/default-block-appender/index.native.js +20 -1
- package/build/components/default-block-appender/index.native.js.map +1 -1
- package/build/components/duotone/utils.js +68 -0
- package/build/components/duotone/utils.js.map +1 -1
- package/build/components/editor-styles/index.js +28 -9
- package/build/components/editor-styles/index.js.map +1 -1
- package/build/components/global-styles/hooks.js +2 -101
- package/build/components/global-styles/hooks.js.map +1 -1
- package/build/components/global-styles/image-settings-panel.js +61 -0
- package/build/components/global-styles/image-settings-panel.js.map +1 -0
- package/build/components/global-styles/index.js +11 -17
- package/build/components/global-styles/index.js.map +1 -1
- package/build/components/global-styles/use-global-styles-output.js +19 -15
- package/build/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build/components/global-styles/utils.js +1 -1
- package/build/components/global-styles/utils.js.map +1 -1
- package/build/components/iframe/index.js +67 -33
- package/build/components/iframe/index.js.map +1 -1
- package/build/components/image-editor/use-save-image.js +2 -5
- package/build/components/image-editor/use-save-image.js.map +1 -1
- package/build/components/image-editor/use-transform-image.js +9 -9
- package/build/components/image-editor/use-transform-image.js.map +1 -1
- package/build/components/index.js +8 -12
- package/build/components/index.js.map +1 -1
- package/build/components/index.native.js +6 -5
- package/build/components/index.native.js.map +1 -1
- package/build/components/inner-blocks/use-nested-settings-update.js +13 -7
- package/build/components/inner-blocks/use-nested-settings-update.js.map +1 -1
- package/build/components/inserter/block-patterns-explorer/explorer.js +12 -6
- package/build/components/inserter/block-patterns-explorer/explorer.js.map +1 -1
- package/build/components/inserter/block-patterns-explorer/patterns-list.js +57 -23
- package/build/components/inserter/block-patterns-explorer/patterns-list.js.map +1 -1
- package/build/components/inserter/block-patterns-explorer/sidebar.js +24 -9
- package/build/components/inserter/block-patterns-explorer/sidebar.js.map +1 -1
- package/build/components/inserter/block-patterns-source-filter.js +54 -0
- package/build/components/inserter/block-patterns-source-filter.js.map +1 -0
- package/build/components/inserter/block-patterns-sync-filter.js +46 -0
- package/build/components/inserter/block-patterns-sync-filter.js.map +1 -0
- package/build/components/inserter/block-patterns-tab.js +91 -45
- package/build/components/inserter/block-patterns-tab.js.map +1 -1
- package/build/components/inserter/hooks/use-patterns-paging.js +57 -0
- package/build/components/inserter/hooks/use-patterns-paging.js.map +1 -0
- package/build/components/inserter/hooks/use-patterns-state.js +21 -10
- package/build/components/inserter/hooks/use-patterns-state.js.map +1 -1
- package/build/components/inserter/menu.js +13 -11
- package/build/components/inserter/menu.js.map +1 -1
- package/build/components/inserter/search-results.js +4 -3
- package/build/components/inserter/search-results.js.map +1 -1
- package/build/components/inserter/tabs.js +1 -12
- package/build/components/inserter/tabs.js.map +1 -1
- package/build/components/inspector-controls/block-support-slot-container.js +12 -1
- package/build/components/inspector-controls/block-support-slot-container.js.map +1 -1
- package/build/components/inspector-controls/fill.js +24 -13
- package/build/components/inspector-controls/fill.js.map +1 -1
- package/build/components/inspector-controls/groups.js +5 -3
- package/build/components/inspector-controls/groups.js.map +1 -1
- package/build/components/inspector-controls/slot.js +13 -0
- package/build/components/inspector-controls/slot.js.map +1 -1
- package/build/components/inspector-controls-tabs/styles-tab.js +3 -0
- package/build/components/inspector-controls-tabs/styles-tab.js.map +1 -1
- package/build/components/link-control/index.js +12 -2
- package/build/components/link-control/index.js.map +1 -1
- package/build/components/list-view/block-select-button.js +1 -3
- package/build/components/list-view/block-select-button.js.map +1 -1
- package/build/components/list-view/block.js +13 -1
- package/build/components/list-view/block.js.map +1 -1
- package/build/components/list-view/use-block-selection.js +29 -24
- package/build/components/list-view/use-block-selection.js.map +1 -1
- package/build/components/media-placeholder/index.js +2 -2
- package/build/components/media-placeholder/index.js.map +1 -1
- package/build/components/media-placeholder/index.native.js +11 -11
- package/build/components/media-placeholder/index.native.js.map +1 -1
- package/build/components/media-replace-flow/index.js +2 -3
- package/build/components/media-replace-flow/index.js.map +1 -1
- package/build/components/media-upload/constants.js +30 -0
- package/build/components/media-upload/constants.js.map +1 -0
- package/build/components/media-upload/index.native.js +63 -53
- package/build/components/media-upload/index.native.js.map +1 -1
- package/build/components/preview-options/index.js +1 -1
- package/build/components/preview-options/index.js.map +1 -1
- package/build/components/rich-text/index.js +34 -35
- package/build/components/rich-text/index.js.map +1 -1
- package/build/components/rich-text/index.native.js +14 -32
- package/build/components/rich-text/index.native.js.map +1 -1
- package/build/components/rich-text/multiline.js +95 -0
- package/build/components/rich-text/multiline.js.map +1 -0
- package/build/components/rich-text/split-value.js +10 -16
- package/build/components/rich-text/split-value.js.map +1 -1
- package/build/components/rich-text/use-enter.js +31 -40
- package/build/components/rich-text/use-enter.js.map +1 -1
- package/build/components/rich-text/use-paste-handler.js +18 -33
- package/build/components/rich-text/use-paste-handler.js.map +1 -1
- package/build/components/spacing-sizes-control/utils.js +1 -1
- package/build/components/spacing-sizes-control/utils.js.map +1 -1
- package/build/components/use-block-commands/index.js +30 -18
- package/build/components/use-block-commands/index.js.map +1 -1
- package/build/components/use-block-display-information/index.js +5 -2
- package/build/components/use-block-display-information/index.js.map +1 -1
- package/build/hooks/background.js +258 -0
- package/build/hooks/background.js.map +1 -0
- package/build/hooks/block-hooks.js +188 -0
- package/build/hooks/block-hooks.js.map +1 -0
- package/build/hooks/block-rename-ui.js +160 -0
- package/build/hooks/block-rename-ui.js.map +1 -0
- package/build/hooks/duotone.js +29 -42
- package/build/hooks/duotone.js.map +1 -1
- package/build/hooks/index.js +2 -2
- package/build/hooks/index.js.map +1 -1
- package/build/hooks/layout.js +31 -14
- package/build/hooks/layout.js.map +1 -1
- package/build/hooks/position.js +4 -2
- package/build/hooks/position.js.map +1 -1
- package/build/hooks/style.js +10 -3
- package/build/hooks/style.js.map +1 -1
- package/build/private-apis.js +2 -0
- package/build/private-apis.js.map +1 -1
- package/build/store/actions.js +33 -10
- package/build/store/actions.js.map +1 -1
- package/build/store/private-actions.js +42 -8
- package/build/store/private-actions.js.map +1 -1
- package/build/store/private-selectors.js +23 -0
- package/build/store/private-selectors.js.map +1 -1
- package/build/store/reducer.js +43 -1
- package/build/store/reducer.js.map +1 -1
- package/build/store/selectors.js +84 -23
- package/build/store/selectors.js.map +1 -1
- package/build/store/utils.js +0 -4
- package/build/store/utils.js.map +1 -1
- package/build-module/components/block-canvas/index.js +97 -0
- package/build-module/components/block-canvas/index.js.map +1 -0
- package/build-module/components/block-inspector/index.js +4 -1
- package/build-module/components/block-inspector/index.js.map +1 -1
- package/build-module/components/block-patterns-list/index.js +20 -5
- package/build-module/components/block-patterns-list/index.js.map +1 -1
- package/build-module/components/block-patterns-paging/index.js +59 -0
- package/build-module/components/block-patterns-paging/index.js.map +1 -0
- package/build-module/components/block-settings-menu/block-settings-dropdown.js +28 -0
- package/build-module/components/block-settings-menu/block-settings-dropdown.js.map +1 -1
- package/build-module/components/block-settings-menu-controls/index.js +4 -7
- package/build-module/components/block-settings-menu-controls/index.js.map +1 -1
- package/build-module/components/block-styles/index.js +1 -0
- package/build-module/components/block-styles/index.js.map +1 -1
- package/build-module/components/block-toolbar/block-toolbar-menu.native.js +3 -7
- package/build-module/components/block-toolbar/block-toolbar-menu.native.js.map +1 -1
- package/build-module/components/block-tools/block-contextual-toolbar.js +18 -7
- package/build-module/components/block-tools/block-contextual-toolbar.js.map +1 -1
- package/build-module/components/block-tools/block-selection-button.js +5 -1
- package/build-module/components/block-tools/block-selection-button.js.map +1 -1
- package/build-module/components/border-radius-control/input-controls.js +1 -1
- package/build-module/components/border-radius-control/input-controls.js.map +1 -1
- package/build-module/components/border-radius-control/linked-button.js +2 -4
- package/build-module/components/border-radius-control/linked-button.js.map +1 -1
- package/build-module/components/colors/with-colors.js.map +1 -1
- package/build-module/components/convert-to-group-buttons/use-convert-to-group-button-props.js +8 -21
- package/build-module/components/convert-to-group-buttons/use-convert-to-group-button-props.js.map +1 -1
- package/build-module/components/default-block-appender/index.native.js +20 -1
- package/build-module/components/default-block-appender/index.native.js.map +1 -1
- package/build-module/components/duotone/utils.js +65 -0
- package/build-module/components/duotone/utils.js.map +1 -1
- package/build-module/components/editor-styles/index.js +28 -9
- package/build-module/components/editor-styles/index.js.map +1 -1
- package/build-module/components/global-styles/hooks.js +3 -100
- package/build-module/components/global-styles/hooks.js.map +1 -1
- package/build-module/components/global-styles/image-settings-panel.js +53 -0
- package/build-module/components/global-styles/image-settings-panel.js.map +1 -0
- package/build-module/components/global-styles/index.js +2 -2
- package/build-module/components/global-styles/index.js.map +1 -1
- package/build-module/components/global-styles/use-global-styles-output.js +18 -16
- package/build-module/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build-module/components/global-styles/utils.js +1 -1
- package/build-module/components/global-styles/utils.js.map +1 -1
- package/build-module/components/iframe/index.js +66 -33
- package/build-module/components/iframe/index.js.map +1 -1
- package/build-module/components/image-editor/use-save-image.js +2 -5
- package/build-module/components/image-editor/use-save-image.js.map +1 -1
- package/build-module/components/image-editor/use-transform-image.js +9 -9
- package/build-module/components/image-editor/use-transform-image.js.map +1 -1
- package/build-module/components/index.js +1 -1
- package/build-module/components/index.js.map +1 -1
- package/build-module/components/index.native.js +2 -1
- package/build-module/components/index.native.js.map +1 -1
- package/build-module/components/inner-blocks/use-nested-settings-update.js +14 -8
- package/build-module/components/inner-blocks/use-nested-settings-update.js.map +1 -1
- package/build-module/components/inserter/block-patterns-explorer/explorer.js +12 -6
- package/build-module/components/inserter/block-patterns-explorer/explorer.js.map +1 -1
- package/build-module/components/inserter/block-patterns-explorer/patterns-list.js +59 -25
- package/build-module/components/inserter/block-patterns-explorer/patterns-list.js.map +1 -1
- package/build-module/components/inserter/block-patterns-explorer/sidebar.js +23 -9
- package/build-module/components/inserter/block-patterns-explorer/sidebar.js.map +1 -1
- package/build-module/components/inserter/block-patterns-source-filter.js +44 -0
- package/build-module/components/inserter/block-patterns-source-filter.js.map +1 -0
- package/build-module/components/inserter/block-patterns-sync-filter.js +38 -0
- package/build-module/components/inserter/block-patterns-sync-filter.js.map +1 -0
- package/build-module/components/inserter/block-patterns-tab.js +87 -46
- package/build-module/components/inserter/block-patterns-tab.js.map +1 -1
- package/build-module/components/inserter/hooks/use-patterns-paging.js +50 -0
- package/build-module/components/inserter/hooks/use-patterns-paging.js.map +1 -0
- package/build-module/components/inserter/hooks/use-patterns-state.js +22 -10
- package/build-module/components/inserter/hooks/use-patterns-state.js.map +1 -1
- package/build-module/components/inserter/menu.js +13 -11
- package/build-module/components/inserter/menu.js.map +1 -1
- package/build-module/components/inserter/search-results.js +4 -3
- package/build-module/components/inserter/search-results.js.map +1 -1
- package/build-module/components/inserter/tabs.js +1 -12
- package/build-module/components/inserter/tabs.js.map +1 -1
- package/build-module/components/inspector-controls/block-support-slot-container.js +13 -2
- package/build-module/components/inspector-controls/block-support-slot-container.js.map +1 -1
- package/build-module/components/inspector-controls/fill.js +25 -14
- package/build-module/components/inspector-controls/fill.js.map +1 -1
- package/build-module/components/inspector-controls/groups.js +5 -3
- package/build-module/components/inspector-controls/groups.js.map +1 -1
- package/build-module/components/inspector-controls/slot.js +15 -1
- package/build-module/components/inspector-controls/slot.js.map +1 -1
- package/build-module/components/inspector-controls-tabs/styles-tab.js +3 -0
- package/build-module/components/inspector-controls-tabs/styles-tab.js.map +1 -1
- package/build-module/components/link-control/index.js +12 -2
- package/build-module/components/link-control/index.js.map +1 -1
- package/build-module/components/list-view/block-select-button.js +1 -3
- package/build-module/components/list-view/block-select-button.js.map +1 -1
- package/build-module/components/list-view/block.js +13 -1
- package/build-module/components/list-view/block.js.map +1 -1
- package/build-module/components/list-view/use-block-selection.js +30 -25
- package/build-module/components/list-view/use-block-selection.js.map +1 -1
- package/build-module/components/media-placeholder/index.js +2 -2
- package/build-module/components/media-placeholder/index.js.map +1 -1
- package/build-module/components/media-placeholder/index.native.js +7 -7
- package/build-module/components/media-placeholder/index.native.js.map +1 -1
- package/build-module/components/media-replace-flow/index.js +2 -3
- package/build-module/components/media-replace-flow/index.js.map +1 -1
- package/build-module/components/media-upload/constants.js +14 -0
- package/build-module/components/media-upload/constants.js.map +1 -0
- package/build-module/components/media-upload/index.native.js +53 -34
- package/build-module/components/media-upload/index.native.js.map +1 -1
- package/build-module/components/preview-options/index.js +1 -1
- package/build-module/components/preview-options/index.js.map +1 -1
- package/build-module/components/rich-text/index.js +35 -37
- package/build-module/components/rich-text/index.js.map +1 -1
- package/build-module/components/rich-text/index.native.js +15 -33
- package/build-module/components/rich-text/index.native.js.map +1 -1
- package/build-module/components/rich-text/multiline.js +87 -0
- package/build-module/components/rich-text/multiline.js.map +1 -0
- package/build-module/components/rich-text/split-value.js +10 -16
- package/build-module/components/rich-text/split-value.js.map +1 -1
- package/build-module/components/rich-text/use-enter.js +33 -42
- package/build-module/components/rich-text/use-enter.js.map +1 -1
- package/build-module/components/rich-text/use-paste-handler.js +19 -34
- package/build-module/components/rich-text/use-paste-handler.js.map +1 -1
- package/build-module/components/spacing-sizes-control/utils.js +2 -2
- package/build-module/components/spacing-sizes-control/utils.js.map +1 -1
- package/build-module/components/use-block-commands/index.js +28 -16
- package/build-module/components/use-block-commands/index.js.map +1 -1
- package/build-module/components/use-block-display-information/index.js +5 -2
- package/build-module/components/use-block-display-information/index.js.map +1 -1
- package/build-module/hooks/background.js +244 -0
- package/build-module/hooks/background.js.map +1 -0
- package/build-module/hooks/block-hooks.js +181 -0
- package/build-module/hooks/block-hooks.js.map +1 -0
- package/build-module/hooks/block-rename-ui.js +153 -0
- package/build-module/hooks/block-rename-ui.js.map +1 -0
- package/build-module/hooks/duotone.js +26 -39
- package/build-module/hooks/duotone.js.map +1 -1
- package/build-module/hooks/index.js +2 -2
- package/build-module/hooks/index.js.map +1 -1
- package/build-module/hooks/layout.js +33 -16
- package/build-module/hooks/layout.js.map +1 -1
- package/build-module/hooks/position.js +4 -2
- package/build-module/hooks/position.js.map +1 -1
- package/build-module/hooks/style.js +10 -3
- package/build-module/hooks/style.js.map +1 -1
- package/build-module/private-apis.js +2 -0
- package/build-module/private-apis.js.map +1 -1
- package/build-module/store/actions.js +33 -10
- package/build-module/store/actions.js.map +1 -1
- package/build-module/store/private-actions.js +39 -8
- package/build-module/store/private-actions.js.map +1 -1
- package/build-module/store/private-selectors.js +21 -0
- package/build-module/store/private-selectors.js.map +1 -1
- package/build-module/store/reducer.js +41 -1
- package/build-module/store/reducer.js.map +1 -1
- package/build-module/store/selectors.js +78 -22
- package/build-module/store/selectors.js.map +1 -1
- package/build-module/store/utils.js +0 -4
- package/build-module/store/utils.js.map +1 -1
- package/build-style/content-rtl.css +0 -1
- package/build-style/content.css +0 -1
- package/build-style/style-rtl.css +170 -127
- package/build-style/style.css +170 -127
- package/package.json +32 -32
- package/src/components/block-canvas/index.js +108 -0
- package/src/components/block-inspector/index.js +5 -1
- package/src/components/block-list/content.scss +0 -1
- package/src/components/block-patterns-list/index.js +32 -7
- package/src/components/block-patterns-list/style.scss +26 -9
- package/src/components/block-patterns-paging/index.js +92 -0
- package/src/components/block-patterns-paging/style.scss +42 -0
- package/src/components/block-settings-menu/block-settings-dropdown.js +44 -0
- package/src/components/block-settings-menu-controls/index.js +4 -9
- package/src/components/block-styles/index.js +1 -0
- package/src/components/block-styles/style.scss +3 -3
- package/src/components/block-toolbar/block-toolbar-menu.native.js +1 -6
- package/src/components/block-tools/block-contextual-toolbar.js +16 -5
- package/src/components/block-tools/block-selection-button.js +9 -1
- package/src/components/block-tools/style.scss +0 -98
- package/src/components/border-radius-control/input-controls.js +1 -1
- package/src/components/border-radius-control/linked-button.js +8 -11
- package/src/components/color-palette/test/__snapshots__/control.js.snap +34 -21
- package/src/components/colors/with-colors.js +3 -2
- package/src/components/convert-to-group-buttons/use-convert-to-group-button-props.js +8 -35
- package/src/components/default-block-appender/index.native.js +26 -3
- package/src/components/duotone/utils.js +65 -0
- package/src/components/editor-styles/index.js +32 -23
- package/src/components/global-styles/hooks.js +4 -112
- package/src/components/global-styles/image-settings-panel.js +71 -0
- package/src/components/global-styles/index.js +4 -3
- package/src/components/global-styles/use-global-styles-output.js +25 -16
- package/src/components/global-styles/utils.js +1 -2
- package/src/components/iframe/index.js +72 -33
- package/src/components/image-editor/use-save-image.js +2 -9
- package/src/components/image-editor/use-transform-image.js +9 -9
- package/src/components/index.js +1 -1
- package/src/components/index.native.js +2 -2
- package/src/components/inner-blocks/use-nested-settings-update.js +15 -10
- package/src/components/inserter/block-patterns-explorer/explorer.js +17 -5
- package/src/components/inserter/block-patterns-explorer/patterns-list.js +109 -40
- package/src/components/inserter/block-patterns-explorer/sidebar.js +23 -8
- package/src/components/inserter/block-patterns-source-filter.js +40 -0
- package/src/components/inserter/block-patterns-sync-filter.js +35 -0
- package/src/components/inserter/block-patterns-tab.js +168 -57
- package/src/components/inserter/hooks/use-patterns-paging.js +65 -0
- package/src/components/inserter/hooks/use-patterns-state.js +27 -16
- package/src/components/inserter/menu.js +15 -17
- package/src/components/inserter/search-results.js +6 -4
- package/src/components/inserter/style.scss +23 -2
- package/src/components/inserter/tabs.js +2 -12
- package/src/components/inserter/test/index.native.js +8 -12
- package/src/components/inspector-controls/block-support-slot-container.js +19 -3
- package/src/components/inspector-controls/fill.js +28 -14
- package/src/components/inspector-controls/groups.js +6 -2
- package/src/components/inspector-controls/slot.js +28 -3
- package/src/components/inspector-controls-tabs/styles-tab.js +4 -0
- package/src/components/link-control/index.js +13 -0
- package/src/components/link-control/style.scss +23 -2
- package/src/components/link-control/test/index.js +88 -6
- package/src/components/list-view/block-select-button.js +1 -3
- package/src/components/list-view/block.js +19 -1
- package/src/components/list-view/style.scss +1 -2
- package/src/components/list-view/use-block-selection.js +38 -32
- package/src/components/media-placeholder/README.md +2 -2
- package/src/components/media-placeholder/index.js +2 -2
- package/src/components/media-placeholder/index.native.js +11 -12
- package/src/components/media-replace-flow/index.js +2 -2
- package/src/components/media-replace-flow/test/index.js +5 -23
- package/src/components/media-upload/README.md +3 -2
- package/src/components/media-upload/constants.js +15 -0
- package/src/components/media-upload/index.native.js +66 -40
- package/src/components/media-upload/style.native.scss +4 -0
- package/src/components/media-upload/test/index.native.js +2 -2
- package/src/components/preview-options/README.md +7 -0
- package/src/components/preview-options/index.js +1 -1
- package/src/components/rich-text/index.js +48 -44
- package/src/components/rich-text/index.native.js +14 -42
- package/src/components/rich-text/multiline.js +121 -0
- package/src/components/rich-text/split-value.js +10 -35
- package/src/components/rich-text/use-enter.js +32 -42
- package/src/components/rich-text/use-paste-handler.js +16 -40
- package/src/components/spacing-sizes-control/style.scss +5 -7
- package/src/components/spacing-sizes-control/utils.js +1 -2
- package/src/components/use-block-commands/index.js +28 -20
- package/src/components/use-block-display-information/index.js +3 -0
- package/src/hooks/background.js +288 -0
- package/src/hooks/background.scss +57 -0
- package/src/hooks/block-hooks.js +257 -0
- package/src/hooks/block-hooks.scss +16 -0
- package/src/hooks/block-rename-ui.js +230 -0
- package/src/hooks/block-rename-ui.scss +3 -0
- package/src/hooks/duotone.js +42 -43
- package/src/hooks/index.js +2 -2
- package/src/hooks/layout.js +31 -33
- package/src/hooks/position.js +4 -3
- package/src/hooks/style.js +11 -2
- package/src/hooks/test/align.native.js +4 -3
- package/src/private-apis.js +2 -0
- package/src/store/actions.js +52 -10
- package/src/store/private-actions.js +37 -6
- package/src/store/private-selectors.js +21 -0
- package/src/store/reducer.js +38 -0
- package/src/store/selectors.js +107 -26
- package/src/store/test/actions.js +19 -8
- package/src/store/test/private-actions.js +17 -0
- package/src/store/test/reducer.js +25 -0
- package/src/store/test/selectors.js +130 -123
- package/src/store/utils.js +3 -10
- package/src/style.scss +4 -0
- package/build/components/duotone/components.js +0 -135
- package/build/components/duotone/components.js.map +0 -1
- package/build/components/duotone/index.js +0 -38
- package/build/components/duotone/index.js.map +0 -1
- package/build/components/global-styles/behaviors-panel.js +0 -64
- package/build/components/global-styles/behaviors-panel.js.map +0 -1
- package/build/components/inserter/reusable-blocks-tab.js +0 -85
- package/build/components/inserter/reusable-blocks-tab.js.map +0 -1
- package/build/hooks/auto-inserting-blocks.js +0 -174
- package/build/hooks/auto-inserting-blocks.js.map +0 -1
- package/build/hooks/behaviors.js +0 -173
- package/build/hooks/behaviors.js.map +0 -1
- package/build-module/components/duotone/components.js +0 -126
- package/build-module/components/duotone/components.js.map +0 -1
- package/build-module/components/duotone/index.js +0 -3
- package/build-module/components/duotone/index.js.map +0 -1
- package/build-module/components/global-styles/behaviors-panel.js +0 -57
- package/build-module/components/global-styles/behaviors-panel.js.map +0 -1
- package/build-module/components/inserter/reusable-blocks-tab.js +0 -76
- package/build-module/components/inserter/reusable-blocks-tab.js.map +0 -1
- package/build-module/hooks/auto-inserting-blocks.js +0 -167
- package/build-module/hooks/auto-inserting-blocks.js.map +0 -1
- package/build-module/hooks/behaviors.js +0 -166
- package/build-module/hooks/behaviors.js.map +0 -1
- package/src/components/duotone/components.js +0 -133
- package/src/components/duotone/index.js +0 -7
- package/src/components/global-styles/behaviors-panel.js +0 -71
- package/src/components/inserter/reusable-blocks-tab.js +0 -84
- package/src/components/inserter/test/reusable-blocks-tab.js +0 -73
- package/src/hooks/auto-inserting-blocks.js +0 -232
- package/src/hooks/behaviors.js +0 -206
|
@@ -7,13 +7,9 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export function mapRichTextSettings(attributeDefinition) {
|
|
9
9
|
const {
|
|
10
|
-
multiline: multilineTag,
|
|
11
|
-
__unstableMultilineWrapperTags: multilineWrapperTags,
|
|
12
10
|
__unstablePreserveWhiteSpace: preserveWhiteSpace
|
|
13
11
|
} = attributeDefinition;
|
|
14
12
|
return {
|
|
15
|
-
multilineTag,
|
|
16
|
-
multilineWrapperTags,
|
|
17
13
|
preserveWhiteSpace
|
|
18
14
|
};
|
|
19
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["mapRichTextSettings","attributeDefinition","
|
|
1
|
+
{"version":3,"names":["mapRichTextSettings","attributeDefinition","__unstablePreserveWhiteSpace","preserveWhiteSpace"],"sources":["@wordpress/block-editor/src/store/utils.js"],"sourcesContent":["/**\n * Helper function that maps attribute definition properties to the\n * ones used by RichText utils like `create, toHTMLString, etc..`.\n *\n * @param {Object} attributeDefinition A block's attribute definition object.\n * @return {Object} The mapped object.\n */\nexport function mapRichTextSettings( attributeDefinition ) {\n\tconst { __unstablePreserveWhiteSpace: preserveWhiteSpace } =\n\t\tattributeDefinition;\n\treturn { preserveWhiteSpace };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,mBAAmBA,CAAEC,mBAAmB,EAAG;EAC1D,MAAM;IAAEC,4BAA4B,EAAEC;EAAmB,CAAC,GACzDF,mBAAmB;EACpB,OAAO;IAAEE;EAAmB,CAAC;AAC9B"}
|
package/build-style/content.css
CHANGED
|
@@ -267,44 +267,6 @@
|
|
|
267
267
|
/**
|
|
268
268
|
* Block Toolbar when contextual.
|
|
269
269
|
*/
|
|
270
|
-
.block-editor-block-contextual-toolbar.is-fixed {
|
|
271
|
-
/* Set left position when auto-fold is not on the body element. */
|
|
272
|
-
right: 0;
|
|
273
|
-
}
|
|
274
|
-
@media (min-width: 783px) {
|
|
275
|
-
.block-editor-block-contextual-toolbar.is-fixed {
|
|
276
|
-
right: 160px;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
.auto-fold .block-editor-block-contextual-toolbar.is-fixed {
|
|
281
|
-
/* Auto fold is when on smaller breakpoints, nav menu auto collapses. */
|
|
282
|
-
}
|
|
283
|
-
@media (min-width: 783px) {
|
|
284
|
-
.auto-fold .block-editor-block-contextual-toolbar.is-fixed {
|
|
285
|
-
right: 36px;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
@media (min-width: 961px) {
|
|
289
|
-
.auto-fold .block-editor-block-contextual-toolbar.is-fixed {
|
|
290
|
-
right: 160px;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
/* Sidebar manually collapsed. */
|
|
295
|
-
.folded .block-editor-block-contextual-toolbar.is-fixed {
|
|
296
|
-
right: 0;
|
|
297
|
-
}
|
|
298
|
-
@media (min-width: 783px) {
|
|
299
|
-
.folded .block-editor-block-contextual-toolbar.is-fixed {
|
|
300
|
-
right: 36px;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
305
|
-
right: 0 !important;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
270
|
.block-editor-block-contextual-toolbar {
|
|
309
271
|
display: inline-flex;
|
|
310
272
|
border: 1px solid #1e1e1e;
|
|
@@ -316,11 +278,6 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
316
278
|
border-left-color: #1e1e1e;
|
|
317
279
|
}
|
|
318
280
|
.block-editor-block-contextual-toolbar.is-fixed {
|
|
319
|
-
position: sticky;
|
|
320
|
-
top: 0;
|
|
321
|
-
z-index: 31;
|
|
322
|
-
display: block;
|
|
323
|
-
width: 100%;
|
|
324
281
|
overflow: hidden;
|
|
325
282
|
border: none;
|
|
326
283
|
border-bottom: 1px solid #e0e0e0;
|
|
@@ -343,32 +300,6 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
343
300
|
background: linear-gradient(to left, #fff, transparent);
|
|
344
301
|
}
|
|
345
302
|
@media (min-width: 782px) {
|
|
346
|
-
.block-editor-block-contextual-toolbar.is-fixed {
|
|
347
|
-
margin-right: 180px;
|
|
348
|
-
position: fixed;
|
|
349
|
-
top: 32px;
|
|
350
|
-
min-height: initial;
|
|
351
|
-
border-bottom: none;
|
|
352
|
-
display: flex;
|
|
353
|
-
height: 60px;
|
|
354
|
-
align-items: center;
|
|
355
|
-
}
|
|
356
|
-
.block-editor-block-contextual-toolbar.is-fixed.is-collapsed {
|
|
357
|
-
width: initial;
|
|
358
|
-
}
|
|
359
|
-
.block-editor-block-contextual-toolbar.is-fixed:empty {
|
|
360
|
-
width: initial;
|
|
361
|
-
}
|
|
362
|
-
.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
363
|
-
margin-right: 240px;
|
|
364
|
-
top: 0;
|
|
365
|
-
}
|
|
366
|
-
.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed.is-collapsed {
|
|
367
|
-
width: initial;
|
|
368
|
-
}
|
|
369
|
-
.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed:empty {
|
|
370
|
-
width: initial;
|
|
371
|
-
}
|
|
372
303
|
.block-editor-block-contextual-toolbar.is-fixed > .block-editor-block-toolbar {
|
|
373
304
|
flex-grow: initial;
|
|
374
305
|
width: initial;
|
|
@@ -429,12 +360,6 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
429
360
|
height: 24px;
|
|
430
361
|
top: -1px;
|
|
431
362
|
}
|
|
432
|
-
.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed {
|
|
433
|
-
margin-right: 80px;
|
|
434
|
-
}
|
|
435
|
-
.is-fullscreen-mode .show-icon-labels .block-editor-block-contextual-toolbar.is-fixed {
|
|
436
|
-
margin-right: 144px;
|
|
437
|
-
}
|
|
438
363
|
.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-parent-selector .block-editor-block-parent-selector__button::after {
|
|
439
364
|
right: 0;
|
|
440
365
|
}
|
|
@@ -449,12 +374,6 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
449
374
|
background-color: #ddd;
|
|
450
375
|
position: relative;
|
|
451
376
|
}
|
|
452
|
-
.blocks-widgets-container .block-editor-block-contextual-toolbar.is-fixed {
|
|
453
|
-
margin-right: 153.6px;
|
|
454
|
-
}
|
|
455
|
-
.blocks-widgets-container .block-editor-block-contextual-toolbar.is-fixed.is-collapsed {
|
|
456
|
-
margin-right: 268.8px;
|
|
457
|
-
}
|
|
458
377
|
.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-parent-selector .block-editor-block-parent-selector__button {
|
|
459
378
|
position: relative;
|
|
460
379
|
top: -1px;
|
|
@@ -484,25 +403,6 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
484
403
|
margin-bottom: -1px;
|
|
485
404
|
}
|
|
486
405
|
}
|
|
487
|
-
@media (min-width: 782px) {
|
|
488
|
-
.block-editor-block-contextual-toolbar.is-fixed {
|
|
489
|
-
width: calc(100% - 180px);
|
|
490
|
-
}
|
|
491
|
-
.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed {
|
|
492
|
-
width: calc(100% + 40px - 180px);
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
@media (min-width: 960px) {
|
|
496
|
-
.block-editor-block-contextual-toolbar.is-fixed {
|
|
497
|
-
width: auto;
|
|
498
|
-
}
|
|
499
|
-
.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed {
|
|
500
|
-
width: auto;
|
|
501
|
-
}
|
|
502
|
-
.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
503
|
-
width: calc(100% - 280px - 256px);
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
406
|
|
|
507
407
|
/**
|
|
508
408
|
* Block Label for Navigation/Selection Mode
|
|
@@ -963,7 +863,7 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
963
863
|
.block-editor-block-patterns-list__list-item.is-placeholder {
|
|
964
864
|
min-height: 100px;
|
|
965
865
|
}
|
|
966
|
-
.block-editor-block-patterns-list__list-item[draggable=true]
|
|
866
|
+
.block-editor-block-patterns-list__list-item[draggable=true] {
|
|
967
867
|
cursor: grab;
|
|
968
868
|
}
|
|
969
869
|
|
|
@@ -977,20 +877,65 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
977
877
|
border-radius: 4px;
|
|
978
878
|
}
|
|
979
879
|
.block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title {
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
text-align: center;
|
|
880
|
+
text-align: right;
|
|
881
|
+
flex-grow: 1;
|
|
983
882
|
}
|
|
984
883
|
.block-editor-block-patterns-list__item:hover .block-editor-block-preview__container {
|
|
985
|
-
box-shadow: 0 0 0 2px
|
|
884
|
+
box-shadow: 0 0 0 2px #1e1e1e;
|
|
986
885
|
}
|
|
987
886
|
.block-editor-block-patterns-list__item:focus .block-editor-block-preview__container {
|
|
988
|
-
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) #fff, 0 0 0 calc(2 * var(--wp-admin-border-width-focus))
|
|
887
|
+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) #fff, 0 0 0 calc(2 * var(--wp-admin-border-width-focus)) #1e1e1e;
|
|
989
888
|
outline: 2px solid transparent;
|
|
990
889
|
outline-offset: 2px;
|
|
991
890
|
}
|
|
992
|
-
.block-editor-block-patterns-list__item:hover .block-editor-block-
|
|
993
|
-
|
|
891
|
+
.block-editor-block-patterns-list__item.block-editor-block-patterns-list__list-item-synced:hover .block-editor-block-preview__container, .block-editor-block-patterns-list__item.block-editor-block-patterns-list__list-item-synced:focus .block-editor-block-preview__container {
|
|
892
|
+
box-shadow: 0 0 0 2px var(--wp-block-synced-color), 0 15px 25px rgba(0, 0, 0, 0.07);
|
|
893
|
+
}
|
|
894
|
+
.block-editor-block-patterns-list__item .block-editor-patterns__pattern-details {
|
|
895
|
+
align-items: center;
|
|
896
|
+
margin-top: 8px;
|
|
897
|
+
}
|
|
898
|
+
.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper {
|
|
899
|
+
min-width: 24px;
|
|
900
|
+
height: 24px;
|
|
901
|
+
}
|
|
902
|
+
.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper .block-editor-patterns__pattern-icon {
|
|
903
|
+
fill: var(--wp-block-synced-color);
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
.block-editor-patterns__grid-pagination {
|
|
907
|
+
border-top: 1px solid #2f2f2f;
|
|
908
|
+
padding: 4px;
|
|
909
|
+
}
|
|
910
|
+
.block-editor-patterns__grid-pagination .components-button.is-tertiary {
|
|
911
|
+
width: auto;
|
|
912
|
+
height: 32px;
|
|
913
|
+
justify-content: center;
|
|
914
|
+
}
|
|
915
|
+
.block-editor-patterns__grid-pagination .components-button.is-tertiary:disabled {
|
|
916
|
+
color: #949494;
|
|
917
|
+
background: none;
|
|
918
|
+
}
|
|
919
|
+
.block-editor-patterns__grid-pagination .components-button.is-tertiary:hover:not(:disabled) {
|
|
920
|
+
color: #fff;
|
|
921
|
+
background-color: #757575;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
.show-icon-labels .block-editor-patterns__grid-pagination {
|
|
925
|
+
flex-direction: column;
|
|
926
|
+
}
|
|
927
|
+
.show-icon-labels .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous,
|
|
928
|
+
.show-icon-labels .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next {
|
|
929
|
+
flex-direction: column;
|
|
930
|
+
}
|
|
931
|
+
.show-icon-labels .block-editor-patterns__grid-pagination .components-button {
|
|
932
|
+
width: auto;
|
|
933
|
+
}
|
|
934
|
+
.show-icon-labels .block-editor-patterns__grid-pagination .components-button span {
|
|
935
|
+
display: none;
|
|
936
|
+
}
|
|
937
|
+
.show-icon-labels .block-editor-patterns__grid-pagination .components-button::before {
|
|
938
|
+
content: attr(aria-label);
|
|
994
939
|
}
|
|
995
940
|
|
|
996
941
|
.components-popover.block-editor-block-popover {
|
|
@@ -1100,13 +1045,13 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
1100
1045
|
}
|
|
1101
1046
|
.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item {
|
|
1102
1047
|
color: #1e1e1e;
|
|
1103
|
-
box-shadow: inset 0 0 0 1px #
|
|
1048
|
+
box-shadow: inset 0 0 0 1px #ddd;
|
|
1104
1049
|
display: inline-block;
|
|
1105
1050
|
width: calc(50% - 4px);
|
|
1106
1051
|
}
|
|
1107
1052
|
.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:hover {
|
|
1108
1053
|
color: var(--wp-admin-theme-color);
|
|
1109
|
-
box-shadow: inset 0 0 0 1px #
|
|
1054
|
+
box-shadow: inset 0 0 0 1px #ddd;
|
|
1110
1055
|
}
|
|
1111
1056
|
.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active, .block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover {
|
|
1112
1057
|
background-color: #1e1e1e;
|
|
@@ -1116,8 +1061,7 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
1116
1061
|
color: #fff;
|
|
1117
1062
|
}
|
|
1118
1063
|
.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:focus, .block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:focus {
|
|
1119
|
-
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
1120
|
-
outline: 2px solid transparent;
|
|
1064
|
+
box-shadow: inset 0 0 0 1px var(--wp-components-color-background, #fff), 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
|
|
1121
1065
|
}
|
|
1122
1066
|
.block-editor-block-styles__variants .block-editor-block-styles__item-text {
|
|
1123
1067
|
word-break: break-all;
|
|
@@ -1928,7 +1872,8 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
1928
1872
|
position: relative;
|
|
1929
1873
|
}
|
|
1930
1874
|
|
|
1931
|
-
.block-editor-link-control__search-input-container
|
|
1875
|
+
.block-editor-link-control__search-input-container,
|
|
1876
|
+
.block-editor-link-control__search-input-wrapper {
|
|
1932
1877
|
position: relative;
|
|
1933
1878
|
}
|
|
1934
1879
|
|
|
@@ -1974,7 +1919,7 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
1974
1919
|
}
|
|
1975
1920
|
.block-editor-link-control__field input[type=text]:focus, .block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input:focus {
|
|
1976
1921
|
border-color: var(--wp-admin-theme-color);
|
|
1977
|
-
box-shadow: 0 0 0
|
|
1922
|
+
box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color);
|
|
1978
1923
|
outline: 2px solid transparent;
|
|
1979
1924
|
}
|
|
1980
1925
|
.block-editor-link-control__field input[type=text]::-webkit-input-placeholder, .block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input::-webkit-input-placeholder {
|
|
@@ -1992,6 +1937,16 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
1992
1937
|
margin: -8px 16px 16px;
|
|
1993
1938
|
}
|
|
1994
1939
|
|
|
1940
|
+
.block-editor-link-control__search-enter {
|
|
1941
|
+
position: absolute;
|
|
1942
|
+
left: 19px;
|
|
1943
|
+
top: 3px;
|
|
1944
|
+
}
|
|
1945
|
+
.block-editor-link-control__search-enter svg {
|
|
1946
|
+
position: relative;
|
|
1947
|
+
top: -2px;
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1995
1950
|
.block-editor-link-control__search-actions {
|
|
1996
1951
|
display: flex;
|
|
1997
1952
|
flex-direction: row-reverse;
|
|
@@ -2277,6 +2232,9 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
2277
2232
|
padding-right: 0;
|
|
2278
2233
|
gap: 0;
|
|
2279
2234
|
}
|
|
2235
|
+
.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] {
|
|
2236
|
+
color: #1e1e1e;
|
|
2237
|
+
}
|
|
2280
2238
|
.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg {
|
|
2281
2239
|
visibility: visible;
|
|
2282
2240
|
transition: transform 0.1s ease;
|
|
@@ -2308,7 +2266,12 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
2308
2266
|
right: auto;
|
|
2309
2267
|
bottom: auto;
|
|
2310
2268
|
top: calc(50% - 16px / 2);
|
|
2311
|
-
left:
|
|
2269
|
+
left: 40px;
|
|
2270
|
+
}
|
|
2271
|
+
|
|
2272
|
+
.block-editor-link-control .block-editor-link-control__search-input-wrapper.has-actions .components-spinner {
|
|
2273
|
+
top: calc(50% + 16px / 4);
|
|
2274
|
+
left: 12px;
|
|
2312
2275
|
}
|
|
2313
2276
|
|
|
2314
2277
|
.block-editor-link-control__search-item-action {
|
|
@@ -2582,8 +2545,7 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
2582
2545
|
.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__anchor {
|
|
2583
2546
|
background: rgba(0, 0, 0, 0.3);
|
|
2584
2547
|
}
|
|
2585
|
-
.block-editor-list-view-leaf .block-editor-list-view-block-select-button__lock
|
|
2586
|
-
.block-editor-list-view-leaf .block-editor-list-view-block-select-button__sticky {
|
|
2548
|
+
.block-editor-list-view-leaf .block-editor-list-view-block-select-button__lock {
|
|
2587
2549
|
line-height: 0;
|
|
2588
2550
|
}
|
|
2589
2551
|
.block-editor-list-view-leaf .block-editor-list-view-block-select-button__images {
|
|
@@ -3044,7 +3006,7 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
3044
3006
|
}
|
|
3045
3007
|
.block-editor-url-input__input[type=text]:focus {
|
|
3046
3008
|
border-color: var(--wp-admin-theme-color);
|
|
3047
|
-
box-shadow: 0 0 0
|
|
3009
|
+
box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color);
|
|
3048
3010
|
outline: 2px solid transparent;
|
|
3049
3011
|
}
|
|
3050
3012
|
.block-editor-url-input__input[type=text]::-webkit-input-placeholder {
|
|
@@ -3221,6 +3183,69 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
3221
3183
|
margin-top: 8px;
|
|
3222
3184
|
}
|
|
3223
3185
|
|
|
3186
|
+
.block-editor-hooks__block-hooks {
|
|
3187
|
+
/**
|
|
3188
|
+
* Since we're displaying the block icon alongside the block name,
|
|
3189
|
+
* we need to right-align the toggle.
|
|
3190
|
+
*/
|
|
3191
|
+
/**
|
|
3192
|
+
* Un-reverse the flex direction for the toggle's label.
|
|
3193
|
+
*/
|
|
3194
|
+
}
|
|
3195
|
+
.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack {
|
|
3196
|
+
flex-direction: row-reverse;
|
|
3197
|
+
}
|
|
3198
|
+
.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack .components-h-stack {
|
|
3199
|
+
flex-direction: row;
|
|
3200
|
+
}
|
|
3201
|
+
|
|
3202
|
+
.block-editor-hooks__background__inspector-upload-container {
|
|
3203
|
+
position: relative;
|
|
3204
|
+
}
|
|
3205
|
+
.block-editor-hooks__background__inspector-upload-container .components-drop-zone__content-icon {
|
|
3206
|
+
display: none;
|
|
3207
|
+
}
|
|
3208
|
+
|
|
3209
|
+
.block-editor-hooks__background__inspector-upload-container button.components-button,
|
|
3210
|
+
.block-editor-hooks__background__inspector-media-replace-container button.components-button {
|
|
3211
|
+
color: #1e1e1e;
|
|
3212
|
+
box-shadow: inset 0 0 0 1px #ccc;
|
|
3213
|
+
width: 100%;
|
|
3214
|
+
display: block;
|
|
3215
|
+
height: 40px;
|
|
3216
|
+
}
|
|
3217
|
+
.block-editor-hooks__background__inspector-upload-container button.components-button:hover,
|
|
3218
|
+
.block-editor-hooks__background__inspector-media-replace-container button.components-button:hover {
|
|
3219
|
+
color: var(--wp-admin-theme-color);
|
|
3220
|
+
}
|
|
3221
|
+
.block-editor-hooks__background__inspector-upload-container button.components-button:focus,
|
|
3222
|
+
.block-editor-hooks__background__inspector-media-replace-container button.components-button:focus {
|
|
3223
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
3224
|
+
}
|
|
3225
|
+
.block-editor-hooks__background__inspector-upload-container .block-editor-hooks__background__inspector-media-replace-title,
|
|
3226
|
+
.block-editor-hooks__background__inspector-media-replace-container .block-editor-hooks__background__inspector-media-replace-title {
|
|
3227
|
+
word-break: break-all;
|
|
3228
|
+
white-space: normal;
|
|
3229
|
+
text-align: start;
|
|
3230
|
+
text-align-last: center;
|
|
3231
|
+
}
|
|
3232
|
+
|
|
3233
|
+
.block-editor-hooks__background__inspector-media-replace-container .components-dropdown {
|
|
3234
|
+
display: block;
|
|
3235
|
+
}
|
|
3236
|
+
.block-editor-hooks__background__inspector-media-replace-container img {
|
|
3237
|
+
width: 20px;
|
|
3238
|
+
min-width: 20px;
|
|
3239
|
+
aspect-ratio: 1;
|
|
3240
|
+
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
|
|
3241
|
+
border-radius: 50% !important;
|
|
3242
|
+
}
|
|
3243
|
+
.block-editor-hooks__background__inspector-media-replace-container .block-editor-hooks__background__inspector-readonly-logo-preview {
|
|
3244
|
+
padding: 6px 12px;
|
|
3245
|
+
display: flex;
|
|
3246
|
+
height: 40px;
|
|
3247
|
+
}
|
|
3248
|
+
|
|
3224
3249
|
.border-block-support-panel .single-column {
|
|
3225
3250
|
grid-column: span 1;
|
|
3226
3251
|
}
|
|
@@ -3329,6 +3354,10 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
3329
3354
|
grid-column: span 1;
|
|
3330
3355
|
}
|
|
3331
3356
|
|
|
3357
|
+
.block-editor-block-rename-modal {
|
|
3358
|
+
z-index: 1000001;
|
|
3359
|
+
}
|
|
3360
|
+
|
|
3332
3361
|
/**
|
|
3333
3362
|
* Block Toolbar
|
|
3334
3363
|
*/
|
|
@@ -3775,12 +3804,18 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
3775
3804
|
background: var(--wp-admin-theme-color);
|
|
3776
3805
|
}
|
|
3777
3806
|
|
|
3778
|
-
.block-editor-inserter__block-patterns-tabs-container
|
|
3807
|
+
.block-editor-inserter__block-patterns-tabs-container,
|
|
3808
|
+
.block-editor-block-patterns-explorer__sidebar {
|
|
3779
3809
|
height: 100%;
|
|
3780
3810
|
}
|
|
3781
|
-
.block-editor-inserter__block-patterns-tabs-container nav
|
|
3811
|
+
.block-editor-inserter__block-patterns-tabs-container nav,
|
|
3812
|
+
.block-editor-block-patterns-explorer__sidebar nav {
|
|
3782
3813
|
height: 100%;
|
|
3783
3814
|
}
|
|
3815
|
+
.block-editor-inserter__block-patterns-tabs-container .block-editor-block-patterns__source-filter select.components-select-control__input,
|
|
3816
|
+
.block-editor-block-patterns-explorer__sidebar .block-editor-block-patterns__source-filter select.components-select-control__input {
|
|
3817
|
+
height: 40px;
|
|
3818
|
+
}
|
|
3784
3819
|
|
|
3785
3820
|
.block-editor-inserter__block-patterns-tabs {
|
|
3786
3821
|
display: flex;
|
|
@@ -3816,10 +3851,11 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
3816
3851
|
.block-editor-inserter__patterns-category-dialog .block-editor-block-patterns-list {
|
|
3817
3852
|
margin-top: 24px;
|
|
3818
3853
|
}
|
|
3819
|
-
|
|
3854
|
+
|
|
3855
|
+
.block-editor-block-patterns-list__list-item .block-editor-block-preview__container {
|
|
3820
3856
|
box-shadow: 0 15px 25px rgba(0, 0, 0, 0.07);
|
|
3821
3857
|
}
|
|
3822
|
-
.block-editor-
|
|
3858
|
+
.block-editor-block-patterns-list__list-item:hover .block-editor-block-preview__container {
|
|
3823
3859
|
box-shadow: 0 0 0 2px #1e1e1e, 0 15px 25px rgba(0, 0, 0, 0.07);
|
|
3824
3860
|
}
|
|
3825
3861
|
|
|
@@ -3944,6 +3980,9 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
3944
3980
|
margin-right: 280px;
|
|
3945
3981
|
padding: 24px 0 32px;
|
|
3946
3982
|
}
|
|
3983
|
+
.block-editor-block-patterns-explorer__list .block-editor-patterns__sync-status-filter .components-input-control__container {
|
|
3984
|
+
width: 380px;
|
|
3985
|
+
}
|
|
3947
3986
|
.block-editor-block-patterns-explorer .block-editor-block-patterns-list {
|
|
3948
3987
|
display: grid;
|
|
3949
3988
|
grid-gap: 32px;
|
|
@@ -4183,6 +4222,10 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
4183
4222
|
margin: 0;
|
|
4184
4223
|
}
|
|
4185
4224
|
|
|
4225
|
+
.block-editor-patterns__sync-status-filter .components-input-control__container select.components-select-control__input {
|
|
4226
|
+
height: 40px;
|
|
4227
|
+
}
|
|
4228
|
+
|
|
4186
4229
|
.block-editor-post-preview__dropdown {
|
|
4187
4230
|
padding: 0;
|
|
4188
4231
|
}
|
|
@@ -4271,13 +4314,9 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
4271
4314
|
z-index: 3;
|
|
4272
4315
|
}
|
|
4273
4316
|
|
|
4274
|
-
.spacing-sizes-control__wrapper + .spacing-sizes-control__wrapper {
|
|
4275
|
-
margin-top: 8px;
|
|
4276
|
-
}
|
|
4277
|
-
|
|
4278
4317
|
.spacing-sizes-control__header {
|
|
4279
4318
|
height: 16px;
|
|
4280
|
-
margin-bottom:
|
|
4319
|
+
margin-bottom: 12px;
|
|
4281
4320
|
}
|
|
4282
4321
|
|
|
4283
4322
|
.spacing-sizes-control__dropdown {
|
|
@@ -4294,6 +4333,10 @@ body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed {
|
|
|
4294
4333
|
flex: 0 0 auto;
|
|
4295
4334
|
}
|
|
4296
4335
|
|
|
4336
|
+
.spacing-sizes-control__icon {
|
|
4337
|
+
margin-right: -4px;
|
|
4338
|
+
}
|
|
4339
|
+
|
|
4297
4340
|
body.admin-color-light {
|
|
4298
4341
|
--wp-admin-theme-color: #0085ba;
|
|
4299
4342
|
--wp-admin-theme-color--rgb: 0, 133, 186;
|