@wordpress/block-editor 8.0.12-next.33ec3857e2.0 → 8.0.15
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/README.md +0 -4
- package/build/components/block-caption/index.native.js +3 -14
- package/build/components/block-caption/index.native.js.map +1 -1
- package/build/components/block-inspector/index.js +33 -12
- package/build/components/block-inspector/index.js.map +1 -1
- package/build/components/block-list/block.js +1 -1
- package/build/components/block-list/block.js.map +1 -1
- package/build/components/block-list/block.native.js +2 -3
- package/build/components/block-list/block.native.js.map +1 -1
- package/build/components/block-list/use-block-props/index.js +1 -3
- package/build/components/block-list/use-block-props/index.js.map +1 -1
- package/build/components/block-list/use-in-between-inserter.js +1 -1
- package/build/components/block-list/use-in-between-inserter.js.map +1 -1
- package/build/components/block-list-appender/index.js +11 -3
- package/build/components/block-list-appender/index.js.map +1 -1
- package/build/components/block-mobile-toolbar/block-actions-menu.native.js +2 -2
- package/build/components/block-mobile-toolbar/block-actions-menu.native.js.map +1 -1
- package/build/components/block-mover/button.js +2 -2
- package/build/components/block-mover/button.js.map +1 -1
- package/build/components/block-mover/index.js +2 -2
- package/build/components/block-mover/index.js.map +1 -1
- package/build/components/block-mover/index.native.js +2 -2
- package/build/components/block-mover/index.native.js.map +1 -1
- package/build/components/block-preview/auto.js +2 -10
- package/build/components/block-preview/auto.js.map +1 -1
- package/build/components/block-settings/container.native.js +1 -2
- package/build/components/block-settings/container.native.js.map +1 -1
- package/build/components/block-styles/index.js +134 -110
- package/build/components/block-styles/index.js.map +1 -1
- package/build/components/block-styles/utils.js +0 -39
- package/build/components/block-styles/utils.js.map +1 -1
- package/build/components/block-switcher/block-styles-menu.js +23 -3
- package/build/components/block-switcher/block-styles-menu.js.map +1 -1
- package/build/components/block-tools/back-compat.js +1 -2
- package/build/components/block-tools/back-compat.js.map +1 -1
- package/build/components/block-tools/block-selection-button.js +3 -3
- package/build/components/block-tools/block-selection-button.js.map +1 -1
- package/build/components/block-tools/index.js +9 -0
- package/build/components/block-tools/index.js.map +1 -1
- package/build/components/block-tools/insertion-point.js +1 -11
- package/build/components/block-tools/insertion-point.js.map +1 -1
- package/build/components/button-block-appender/index.js +1 -2
- package/build/components/button-block-appender/index.js.map +1 -1
- package/build/components/colors-gradients/panel-color-gradient-settings.js +10 -51
- package/build/components/colors-gradients/panel-color-gradient-settings.js.map +1 -1
- package/build/components/default-block-appender/index.js +19 -16
- package/build/components/default-block-appender/index.js.map +1 -1
- package/build/components/default-style-picker/index.js +3 -18
- package/build/components/default-style-picker/index.js.map +1 -1
- package/build/components/font-appearance-control/index.js +11 -11
- package/build/components/font-appearance-control/index.js.map +1 -1
- package/build/components/gradients/use-gradient.js +4 -4
- package/build/components/gradients/use-gradient.js.map +1 -1
- package/build/components/iframe/index.js +6 -7
- package/build/components/iframe/index.js.map +1 -1
- package/build/components/index.js +9 -9
- package/build/components/index.js.map +1 -1
- package/build/components/inner-blocks/default-block-appender.js +4 -2
- package/build/components/inner-blocks/default-block-appender.js.map +1 -1
- package/build/components/inserter/hooks/use-insertion-point.js +2 -2
- package/build/components/inserter/hooks/use-insertion-point.js.map +1 -1
- package/build/components/inserter/index.js +2 -2
- package/build/components/inserter/index.js.map +1 -1
- package/build/components/inserter/index.native.js +3 -3
- package/build/components/inserter/index.native.js.map +1 -1
- package/build/components/inserter/quick-inserter.js +1 -1
- package/build/components/inserter/quick-inserter.js.map +1 -1
- package/build/components/inserter/tabs.native.js +4 -7
- package/build/components/inserter/tabs.native.js.map +1 -1
- package/build/components/inspector-controls/block-support-slot-container.js +1 -2
- package/build/components/inspector-controls/block-support-slot-container.js.map +1 -1
- package/build/components/inspector-controls/block-support-tools-panel.js +50 -22
- package/build/components/inspector-controls/block-support-tools-panel.js.map +1 -1
- package/build/components/inspector-controls/fill.native.js +5 -3
- package/build/components/inspector-controls/fill.native.js.map +1 -1
- package/build/components/inspector-controls/groups.js +0 -2
- package/build/components/inspector-controls/groups.js.map +1 -1
- package/build/components/inspector-controls/slot.js +3 -1
- package/build/components/inspector-controls/slot.js.map +1 -1
- package/build/components/letter-spacing-control/index.js +6 -6
- package/build/components/letter-spacing-control/index.js.map +1 -1
- package/build/components/list-view/block-select-button.js +3 -23
- package/build/components/list-view/block-select-button.js.map +1 -1
- package/build/components/list-view/use-list-view-drop-zone.js +1 -1
- package/build/components/list-view/use-list-view-drop-zone.js.map +1 -1
- package/build/components/media-placeholder/index.js +0 -2
- package/build/components/media-placeholder/index.js.map +1 -1
- package/build/components/media-replace-flow/index.js +0 -2
- package/build/components/media-replace-flow/index.js.map +1 -1
- package/build/components/provider/use-block-sync.js +37 -10
- package/build/components/provider/use-block-sync.js.map +1 -1
- package/build/components/rich-text/file-paste-handler.js +1 -1
- package/build/components/rich-text/file-paste-handler.js.map +1 -1
- package/build/components/rich-text/use-input-rules.js +1 -3
- package/build/components/rich-text/use-input-rules.js.map +1 -1
- package/build/components/selection-scroll-into-view/index.js +1 -2
- package/build/components/selection-scroll-into-view/index.js.map +1 -1
- package/build/components/use-canvas-click-redirect/index.js +66 -0
- package/build/components/use-canvas-click-redirect/index.js.map +1 -0
- package/build/components/use-on-block-drop/index.js +4 -8
- package/build/components/use-on-block-drop/index.js.map +1 -1
- package/build/components/use-setting/index.js +7 -0
- package/build/components/use-setting/index.js.map +1 -1
- package/build/components/writing-flow/use-multi-selection.js +1 -3
- package/build/components/writing-flow/use-multi-selection.js.map +1 -1
- package/build/hooks/border-color.js +5 -63
- package/build/hooks/border-color.js.map +1 -1
- package/build/hooks/border-radius.js +0 -47
- package/build/hooks/border-radius.js.map +1 -1
- package/build/hooks/border-style.js +0 -41
- package/build/hooks/border-style.js.map +1 -1
- package/build/hooks/border-width.js +31 -70
- package/build/hooks/border-width.js.map +1 -1
- package/build/hooks/border.js +11 -81
- package/build/hooks/border.js.map +1 -1
- package/build/hooks/color.js +6 -5
- package/build/hooks/color.js.map +1 -1
- package/build/hooks/layout.js +2 -1
- package/build/hooks/layout.js.map +1 -1
- package/build/hooks/letter-spacing.js +1 -1
- package/build/hooks/letter-spacing.js.map +1 -1
- package/build/hooks/style.js +2 -1
- package/build/hooks/style.js.map +1 -1
- package/build/hooks/typography.js +1 -1
- package/build/hooks/typography.js.map +1 -1
- package/build/layouts/flex.js +9 -29
- package/build/layouts/flex.js.map +1 -1
- package/build/layouts/flow.js +10 -6
- package/build/layouts/flow.js.map +1 -1
- package/build/store/actions.js +5 -4
- package/build/store/actions.js.map +1 -1
- package/build/store/defaults.js +1 -5
- package/build/store/defaults.js.map +1 -1
- package/build/store/reducer.js +24 -1
- package/build/store/reducer.js.map +1 -1
- package/build/store/selectors.js +2 -2
- package/build/store/selectors.js.map +1 -1
- package/build/utils/get-paste-event-data.js +1 -1
- package/build/utils/get-paste-event-data.js.map +1 -1
- package/build/utils/parse-css-unit-to-px.js +1 -1
- package/build/utils/parse-css-unit-to-px.js.map +1 -1
- package/build-module/components/block-caption/index.native.js +3 -13
- package/build-module/components/block-caption/index.native.js.map +1 -1
- package/build-module/components/block-inspector/index.js +33 -12
- package/build-module/components/block-inspector/index.js.map +1 -1
- package/build-module/components/block-list/block.js +1 -1
- package/build-module/components/block-list/block.js.map +1 -1
- package/build-module/components/block-list/block.native.js +2 -3
- package/build-module/components/block-list/block.native.js.map +1 -1
- package/build-module/components/block-list/use-block-props/index.js +1 -3
- package/build-module/components/block-list/use-block-props/index.js.map +1 -1
- package/build-module/components/block-list/use-in-between-inserter.js +1 -1
- package/build-module/components/block-list/use-in-between-inserter.js.map +1 -1
- package/build-module/components/block-list-appender/index.js +10 -3
- package/build-module/components/block-list-appender/index.js.map +1 -1
- package/build-module/components/block-mobile-toolbar/block-actions-menu.native.js +2 -2
- package/build-module/components/block-mobile-toolbar/block-actions-menu.native.js.map +1 -1
- package/build-module/components/block-mover/button.js +2 -2
- package/build-module/components/block-mover/button.js.map +1 -1
- package/build-module/components/block-mover/index.js +2 -2
- package/build-module/components/block-mover/index.js.map +1 -1
- package/build-module/components/block-mover/index.native.js +2 -2
- package/build-module/components/block-mover/index.native.js.map +1 -1
- package/build-module/components/block-preview/auto.js +2 -10
- package/build-module/components/block-preview/auto.js.map +1 -1
- package/build-module/components/block-settings/container.native.js +1 -2
- package/build-module/components/block-settings/container.native.js.map +1 -1
- package/build-module/components/block-styles/index.js +133 -112
- package/build-module/components/block-styles/index.js.map +1 -1
- package/build-module/components/block-styles/utils.js +0 -34
- package/build-module/components/block-styles/utils.js.map +1 -1
- package/build-module/components/block-switcher/block-styles-menu.js +21 -3
- package/build-module/components/block-switcher/block-styles-menu.js.map +1 -1
- package/build-module/components/block-tools/back-compat.js +1 -2
- package/build-module/components/block-tools/back-compat.js.map +1 -1
- package/build-module/components/block-tools/block-selection-button.js +3 -3
- package/build-module/components/block-tools/block-selection-button.js.map +1 -1
- package/build-module/components/block-tools/index.js +9 -0
- package/build-module/components/block-tools/index.js.map +1 -1
- package/build-module/components/block-tools/insertion-point.js +1 -11
- package/build-module/components/block-tools/insertion-point.js.map +1 -1
- package/build-module/components/button-block-appender/index.js +1 -2
- package/build-module/components/button-block-appender/index.js.map +1 -1
- package/build-module/components/colors-gradients/panel-color-gradient-settings.js +13 -54
- package/build-module/components/colors-gradients/panel-color-gradient-settings.js.map +1 -1
- package/build-module/components/default-block-appender/index.js +18 -15
- package/build-module/components/default-block-appender/index.js.map +1 -1
- package/build-module/components/default-style-picker/index.js +3 -17
- package/build-module/components/default-style-picker/index.js.map +1 -1
- package/build-module/components/font-appearance-control/index.js +12 -12
- package/build-module/components/font-appearance-control/index.js.map +1 -1
- package/build-module/components/gradients/use-gradient.js +4 -3
- package/build-module/components/gradients/use-gradient.js.map +1 -1
- package/build-module/components/iframe/index.js +6 -7
- package/build-module/components/iframe/index.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/inner-blocks/default-block-appender.js +4 -2
- package/build-module/components/inner-blocks/default-block-appender.js.map +1 -1
- package/build-module/components/inserter/hooks/use-insertion-point.js +2 -2
- package/build-module/components/inserter/hooks/use-insertion-point.js.map +1 -1
- package/build-module/components/inserter/index.js +2 -2
- package/build-module/components/inserter/index.js.map +1 -1
- package/build-module/components/inserter/index.native.js +4 -4
- package/build-module/components/inserter/index.native.js.map +1 -1
- package/build-module/components/inserter/quick-inserter.js +1 -1
- package/build-module/components/inserter/quick-inserter.js.map +1 -1
- package/build-module/components/inserter/tabs.native.js +4 -7
- package/build-module/components/inserter/tabs.native.js.map +1 -1
- package/build-module/components/inspector-controls/block-support-slot-container.js +1 -2
- package/build-module/components/inspector-controls/block-support-slot-container.js.map +1 -1
- package/build-module/components/inspector-controls/block-support-tools-panel.js +50 -22
- package/build-module/components/inspector-controls/block-support-tools-panel.js.map +1 -1
- package/build-module/components/inspector-controls/fill.native.js +5 -3
- package/build-module/components/inspector-controls/fill.native.js.map +1 -1
- package/build-module/components/inspector-controls/groups.js +0 -2
- package/build-module/components/inspector-controls/groups.js.map +1 -1
- package/build-module/components/inspector-controls/slot.js +3 -1
- package/build-module/components/inspector-controls/slot.js.map +1 -1
- package/build-module/components/letter-spacing-control/index.js +6 -6
- package/build-module/components/letter-spacing-control/index.js.map +1 -1
- package/build-module/components/list-view/block-select-button.js +3 -22
- package/build-module/components/list-view/block-select-button.js.map +1 -1
- package/build-module/components/list-view/use-list-view-drop-zone.js +1 -1
- package/build-module/components/list-view/use-list-view-drop-zone.js.map +1 -1
- package/build-module/components/media-placeholder/index.js +0 -2
- package/build-module/components/media-placeholder/index.js.map +1 -1
- package/build-module/components/media-replace-flow/index.js +0 -2
- package/build-module/components/media-replace-flow/index.js.map +1 -1
- package/build-module/components/provider/use-block-sync.js +41 -14
- package/build-module/components/provider/use-block-sync.js.map +1 -1
- package/build-module/components/rich-text/file-paste-handler.js +1 -1
- package/build-module/components/rich-text/file-paste-handler.js.map +1 -1
- package/build-module/components/rich-text/use-input-rules.js +1 -2
- package/build-module/components/rich-text/use-input-rules.js.map +1 -1
- package/build-module/components/selection-scroll-into-view/index.js +1 -2
- package/build-module/components/selection-scroll-into-view/index.js.map +1 -1
- package/build-module/components/use-canvas-click-redirect/index.js +54 -0
- package/build-module/components/use-canvas-click-redirect/index.js.map +1 -0
- package/build-module/components/use-on-block-drop/index.js +4 -8
- package/build-module/components/use-on-block-drop/index.js.map +1 -1
- package/build-module/components/use-setting/index.js +7 -0
- package/build-module/components/use-setting/index.js.map +1 -1
- package/build-module/components/writing-flow/use-multi-selection.js +4 -3
- package/build-module/components/writing-flow/use-multi-selection.js.map +1 -1
- package/build-module/hooks/border-color.js +7 -61
- package/build-module/hooks/border-color.js.map +1 -1
- package/build-module/hooks/border-radius.js +0 -42
- package/build-module/hooks/border-radius.js.map +1 -1
- package/build-module/hooks/border-style.js +0 -36
- package/build-module/hooks/border-style.js.map +1 -1
- package/build-module/hooks/border-width.js +32 -66
- package/build-module/hooks/border-width.js.map +1 -1
- package/build-module/hooks/border.js +12 -80
- package/build-module/hooks/border.js.map +1 -1
- package/build-module/hooks/color.js +6 -5
- package/build-module/hooks/color.js.map +1 -1
- package/build-module/hooks/layout.js +2 -1
- package/build-module/hooks/layout.js.map +1 -1
- package/build-module/hooks/letter-spacing.js +1 -1
- package/build-module/hooks/letter-spacing.js.map +1 -1
- package/build-module/hooks/style.js +2 -1
- package/build-module/hooks/style.js.map +1 -1
- package/build-module/hooks/typography.js +1 -1
- package/build-module/hooks/typography.js.map +1 -1
- package/build-module/layouts/flex.js +9 -29
- package/build-module/layouts/flex.js.map +1 -1
- package/build-module/layouts/flow.js +10 -6
- package/build-module/layouts/flow.js.map +1 -1
- package/build-module/store/actions.js +5 -4
- package/build-module/store/actions.js.map +1 -1
- package/build-module/store/defaults.js +1 -5
- package/build-module/store/defaults.js.map +1 -1
- package/build-module/store/reducer.js +24 -1
- package/build-module/store/reducer.js.map +1 -1
- package/build-module/store/selectors.js +2 -2
- package/build-module/store/selectors.js.map +1 -1
- package/build-module/utils/get-paste-event-data.js +1 -1
- package/build-module/utils/get-paste-event-data.js.map +1 -1
- package/build-module/utils/parse-css-unit-to-px.js +1 -1
- package/build-module/utils/parse-css-unit-to-px.js.map +1 -1
- package/build-style/style-rtl.css +180 -212
- package/build-style/style.css +180 -212
- package/package.json +27 -27
- package/src/components/block-caption/index.native.js +4 -22
- package/src/components/block-inspector/index.js +32 -13
- package/src/components/block-list/block.js +1 -1
- package/src/components/block-list/block.native.js +2 -2
- package/src/components/block-list/use-block-props/index.js +1 -3
- package/src/components/block-list/use-in-between-inserter.js +1 -1
- package/src/components/block-list-appender/index.js +21 -5
- package/src/components/block-mobile-toolbar/block-actions-menu.native.js +2 -5
- package/src/components/block-mover/button.js +2 -6
- package/src/components/block-mover/index.js +2 -5
- package/src/components/block-mover/index.native.js +2 -5
- package/src/components/block-preview/auto.js +2 -7
- package/src/components/block-settings/container.native.js +0 -1
- package/src/components/block-styles/index.js +145 -125
- package/src/components/block-styles/style.scss +51 -59
- package/src/components/block-styles/test/{utils.js → index.js} +1 -60
- package/src/components/block-styles/utils.js +0 -39
- package/src/components/block-switcher/block-styles-menu.js +38 -3
- package/src/components/block-tools/back-compat.js +0 -1
- package/src/components/block-tools/block-selection-button.js +3 -9
- package/src/components/block-tools/index.js +11 -0
- package/src/components/block-tools/insertion-point.js +1 -10
- package/src/components/border-style-control/style.scss +1 -0
- package/src/components/button-block-appender/index.js +0 -1
- package/src/components/colors-gradients/panel-color-gradient-settings.js +19 -75
- package/src/components/colors-gradients/style.scss +5 -42
- package/src/components/default-block-appender/index.js +24 -17
- package/src/components/default-block-appender/style.scss +0 -4
- package/src/components/default-block-appender/test/__snapshots__/index.js.snap +24 -12
- package/src/components/default-block-appender/test/index.js +14 -4
- package/src/components/default-style-picker/index.js +6 -18
- package/src/components/font-appearance-control/index.js +12 -12
- package/src/components/gradients/use-gradient.js +7 -7
- package/src/components/iframe/index.js +6 -13
- package/src/components/index.js +1 -1
- package/src/components/inner-blocks/README.md +0 -2
- package/src/components/inner-blocks/default-block-appender.js +7 -2
- package/src/components/inserter/hooks/use-insertion-point.js +2 -9
- package/src/components/inserter/index.js +2 -2
- package/src/components/inserter/index.native.js +4 -7
- package/src/components/inserter/quick-inserter.js +1 -1
- package/src/components/inserter/tabs.native.js +4 -5
- package/src/components/inspector-controls/block-support-slot-container.js +1 -3
- package/src/components/inspector-controls/block-support-tools-panel.js +57 -21
- package/src/components/inspector-controls/fill.native.js +3 -4
- package/src/components/inspector-controls/groups.js +0 -2
- package/src/components/inspector-controls/slot.js +7 -2
- package/src/components/letter-spacing-control/index.js +6 -6
- package/src/components/link-control/README.md +1 -1
- package/src/components/link-control/test/index.js +0 -2
- package/src/components/list-view/block-select-button.js +1 -20
- package/src/components/list-view/use-list-view-drop-zone.js +1 -1
- package/src/components/media-placeholder/index.js +0 -2
- package/src/components/media-replace-flow/index.js +0 -2
- package/src/components/provider/use-block-sync.js +45 -11
- package/src/components/rich-text/file-paste-handler.js +1 -3
- package/src/components/rich-text/use-input-rules.js +1 -2
- package/src/components/selection-scroll-into-view/index.js +0 -1
- package/src/components/url-input/README.md +0 -5
- package/src/components/use-canvas-click-redirect/index.js +57 -0
- package/src/components/use-on-block-drop/index.js +4 -11
- package/src/components/use-setting/index.js +9 -0
- package/src/components/writing-flow/use-multi-selection.js +9 -12
- package/src/hooks/border-color.js +3 -55
- package/src/hooks/border-radius.js +0 -32
- package/src/hooks/border-style.js +0 -26
- package/src/hooks/border-width.js +32 -56
- package/src/hooks/border.js +20 -115
- package/src/hooks/border.scss +17 -3
- package/src/hooks/color.js +13 -14
- package/src/hooks/layout.js +1 -0
- package/src/hooks/letter-spacing.js +1 -1
- package/src/hooks/style.js +2 -1
- package/src/hooks/test/style.js +0 -2
- package/src/hooks/typography.js +1 -1
- package/src/layouts/flex.js +8 -31
- package/src/layouts/flow.js +8 -6
- package/src/store/actions.js +5 -5
- package/src/store/defaults.js +0 -2
- package/src/store/reducer.js +23 -1
- package/src/store/selectors.js +2 -2
- package/src/store/test/reducer.js +35 -0
- package/src/store/test/selectors.js +1 -1
- package/src/style.scss +3 -4
- package/src/utils/get-paste-event-data.js +1 -1
- package/src/utils/parse-css-unit-to-px.js +1 -1
- package/src/utils/test/parse-css-unit-to-px.js +0 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/build/components/block-styles/menu-items.js +0 -63
- package/build/components/block-styles/menu-items.js.map +0 -1
- package/build/components/block-styles/preview-panel.js +0 -45
- package/build/components/block-styles/preview-panel.js.map +0 -1
- package/build/components/block-styles/use-styles-for-block.js +0 -119
- package/build/components/block-styles/use-styles-for-block.js.map +0 -1
- package/build/components/rich-text/prevent-event-discovery.js +0 -33
- package/build/components/rich-text/prevent-event-discovery.js.map +0 -1
- package/build/components/use-display-block-controls/index.native.js +0 -45
- package/build/components/use-display-block-controls/index.native.js.map +0 -1
- package/build-module/components/block-styles/menu-items.js +0 -50
- package/build-module/components/block-styles/menu-items.js.map +0 -1
- package/build-module/components/block-styles/preview-panel.js +0 -35
- package/build-module/components/block-styles/preview-panel.js.map +0 -1
- package/build-module/components/block-styles/use-styles-for-block.js +0 -107
- package/build-module/components/block-styles/use-styles-for-block.js.map +0 -1
- package/build-module/components/rich-text/prevent-event-discovery.js +0 -25
- package/build-module/components/rich-text/prevent-event-discovery.js.map +0 -1
- package/build-module/components/use-display-block-controls/index.native.js +0 -34
- package/build-module/components/use-display-block-controls/index.native.js.map +0 -1
- package/src/components/block-styles/menu-items.js +0 -49
- package/src/components/block-styles/preview-panel.js +0 -36
- package/src/components/block-styles/use-styles-for-block.js +0 -99
- package/src/components/rich-text/prevent-event-discovery.js +0 -23
- package/src/components/use-display-block-controls/index.native.js +0 -38
- package/src/components/writing-flow/test/use-multi-selection.js +0 -36
- package/src/hooks/dimensions.scss +0 -5
package/build-style/style.css
CHANGED
|
@@ -1206,65 +1206,62 @@
|
|
|
1206
1206
|
padding: 0;
|
|
1207
1207
|
}
|
|
1208
1208
|
|
|
1209
|
-
.block-editor-block-styles
|
|
1210
|
-
|
|
1209
|
+
.block-editor-block-styles {
|
|
1210
|
+
display: flex;
|
|
1211
|
+
flex-wrap: wrap;
|
|
1212
|
+
justify-content: space-between;
|
|
1211
1213
|
}
|
|
1212
1214
|
|
|
1213
|
-
.block-editor-block-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1215
|
+
.block-editor-block-styles__item {
|
|
1216
|
+
width: calc(50% - 4px);
|
|
1217
|
+
margin: 4px 0;
|
|
1218
|
+
flex-shrink: 0;
|
|
1219
|
+
cursor: pointer;
|
|
1220
|
+
overflow: hidden;
|
|
1221
|
+
border-radius: 2px;
|
|
1222
|
+
padding: 6px;
|
|
1223
|
+
display: flex;
|
|
1224
|
+
flex-direction: column;
|
|
1219
1225
|
}
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
}
|
|
1226
|
+
.block-editor-block-styles__item:focus {
|
|
1227
|
+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
1228
|
+
outline: 2px solid transparent;
|
|
1224
1229
|
}
|
|
1225
|
-
.block-editor-block-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
+
.block-editor-block-styles__item:hover .block-editor-block-styles__item-preview {
|
|
1231
|
+
border-color: var(--wp-admin-theme-color);
|
|
1232
|
+
}
|
|
1233
|
+
.block-editor-block-styles__item.is-active .block-editor-block-styles__item-label {
|
|
1234
|
+
font-weight: bold;
|
|
1230
1235
|
}
|
|
1231
|
-
.block-editor-block-
|
|
1236
|
+
.block-editor-block-styles__item.is-active .block-editor-block-styles__item-preview {
|
|
1232
1237
|
margin: 0;
|
|
1238
|
+
border: 2px solid #1e1e1e;
|
|
1233
1239
|
}
|
|
1234
|
-
.block-editor-block-
|
|
1235
|
-
|
|
1240
|
+
.block-editor-block-styles__item .block-editor-block-preview__container {
|
|
1241
|
+
cursor: inherit;
|
|
1236
1242
|
}
|
|
1237
1243
|
|
|
1238
|
-
.block-editor-block-
|
|
1244
|
+
.block-editor-block-styles__item-preview {
|
|
1245
|
+
outline: 1px solid transparent;
|
|
1246
|
+
padding: 0;
|
|
1247
|
+
margin: 2px;
|
|
1248
|
+
border-radius: 2px;
|
|
1239
1249
|
display: flex;
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
box-shadow: inset 0 0 0 1px #ccc;
|
|
1247
|
-
display: inline-block;
|
|
1248
|
-
width: calc(50% - 4px);
|
|
1249
|
-
}
|
|
1250
|
-
.block-editor-block-styles__variants .block-editor-block-styles__item:focus, .block-editor-block-styles__variants .block-editor-block-styles__item:hover {
|
|
1251
|
-
color: var(--wp-admin-theme-color);
|
|
1252
|
-
box-shadow: inset 0 0 0 2px var(--wp-admin-theme-color);
|
|
1253
|
-
}
|
|
1254
|
-
.block-editor-block-styles__variants .block-editor-block-styles__item.is-active, .block-editor-block-styles__variants .block-editor-block-styles__item.is-active:hover {
|
|
1255
|
-
background-color: #2f2f2f;
|
|
1256
|
-
box-shadow: none;
|
|
1257
|
-
}
|
|
1258
|
-
.block-editor-block-styles__variants .block-editor-block-styles__item.is-active .block-editor-block-styles__item-text, .block-editor-block-styles__variants .block-editor-block-styles__item.is-active:hover .block-editor-block-styles__item-text {
|
|
1259
|
-
color: #fff;
|
|
1250
|
+
overflow: hidden;
|
|
1251
|
+
background: #fff;
|
|
1252
|
+
align-items: center;
|
|
1253
|
+
flex-grow: 1;
|
|
1254
|
+
min-height: 80px;
|
|
1255
|
+
max-height: 160px;
|
|
1260
1256
|
}
|
|
1261
|
-
|
|
1262
|
-
|
|
1257
|
+
|
|
1258
|
+
.block-editor-block-switcher__styles__menugroup {
|
|
1259
|
+
position: relative;
|
|
1263
1260
|
}
|
|
1264
1261
|
|
|
1265
|
-
.block-editor-block-
|
|
1266
|
-
|
|
1267
|
-
|
|
1262
|
+
.block-editor-block-styles__item-label {
|
|
1263
|
+
text-align: center;
|
|
1264
|
+
padding: 4px 0;
|
|
1268
1265
|
}
|
|
1269
1266
|
|
|
1270
1267
|
.block-editor-block-switcher {
|
|
@@ -1721,6 +1718,7 @@
|
|
|
1721
1718
|
}
|
|
1722
1719
|
.components-border-style-control .components-border-style-control__buttons {
|
|
1723
1720
|
display: inline-flex;
|
|
1721
|
+
margin-bottom: 24px;
|
|
1724
1722
|
}
|
|
1725
1723
|
.components-border-style-control .components-border-style-control__buttons .components-button.has-icon {
|
|
1726
1724
|
min-width: 30px;
|
|
@@ -1759,14 +1757,11 @@
|
|
|
1759
1757
|
margin-bottom: 12px;
|
|
1760
1758
|
}
|
|
1761
1759
|
|
|
1762
|
-
.block-editor-panel-color-gradient-settings .
|
|
1763
|
-
|
|
1764
|
-
gap: 12px;
|
|
1760
|
+
.block-editor-panel-color-gradient-settings .component-color-indicator {
|
|
1761
|
+
vertical-align: text-bottom;
|
|
1765
1762
|
}
|
|
1766
|
-
.block-editor-panel-color-gradient-
|
|
1767
|
-
|
|
1768
|
-
height: 12px;
|
|
1769
|
-
align-self: center;
|
|
1763
|
+
.block-editor-panel-color-gradient-settings__panel-title .component-color-indicator {
|
|
1764
|
+
display: inline-block;
|
|
1770
1765
|
}
|
|
1771
1766
|
.block-editor-panel-color-gradient-settings.is-opened .block-editor-panel-color-gradient-settings__panel-title .component-color-indicator {
|
|
1772
1767
|
display: none;
|
|
@@ -1781,35 +1776,6 @@
|
|
|
1781
1776
|
.block-editor-block-inspector .block-editor-panel-color-gradient-settings .components-base-control {
|
|
1782
1777
|
margin-bottom: inherit;
|
|
1783
1778
|
}
|
|
1784
|
-
.block-editor-panel-color-gradient-settings .block-editor-panel-color-gradient-settings__dropdown {
|
|
1785
|
-
display: block;
|
|
1786
|
-
}
|
|
1787
|
-
|
|
1788
|
-
.block-editor-panel-color-gradient-settings__dropdown-content .components-popover__content > div {
|
|
1789
|
-
width: 280px;
|
|
1790
|
-
}
|
|
1791
|
-
|
|
1792
|
-
@media (min-width: 782px) {
|
|
1793
|
-
.block-editor-panel-color-gradient-settings__dropdown-content .components-popover__content {
|
|
1794
|
-
margin-right: 156px !important;
|
|
1795
|
-
margin-top: -60px !important;
|
|
1796
|
-
}
|
|
1797
|
-
}
|
|
1798
|
-
.block-editor-panel-color-gradient-settings__dropdown:last-child > div {
|
|
1799
|
-
border-bottom-width: 0;
|
|
1800
|
-
}
|
|
1801
|
-
|
|
1802
|
-
.block-editor-panel-color-gradient-settings__item {
|
|
1803
|
-
padding-top: 12px !important;
|
|
1804
|
-
padding-bottom: 12px !important;
|
|
1805
|
-
}
|
|
1806
|
-
.block-editor-panel-color-gradient-settings__item .block-editor-panel-color-gradient-settings__color-indicator {
|
|
1807
|
-
background: linear-gradient(-45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%);
|
|
1808
|
-
}
|
|
1809
|
-
.block-editor-panel-color-gradient-settings__item.is-open {
|
|
1810
|
-
background: #f0f0f0;
|
|
1811
|
-
color: var(--wp-admin-theme-color);
|
|
1812
|
-
}
|
|
1813
1779
|
|
|
1814
1780
|
.block-editor-contrast-checker > .components-notice {
|
|
1815
1781
|
margin: 0;
|
|
@@ -1907,10 +1873,6 @@
|
|
|
1907
1873
|
display: flex;
|
|
1908
1874
|
}
|
|
1909
1875
|
|
|
1910
|
-
.block-editor-default-block-appender__content {
|
|
1911
|
-
cursor: text;
|
|
1912
|
-
}
|
|
1913
|
-
|
|
1914
1876
|
.block-editor-duotone-control__popover > .components-popover__content > div {
|
|
1915
1877
|
padding: 16px;
|
|
1916
1878
|
width: 280px;
|
|
@@ -1945,119 +1907,6 @@
|
|
|
1945
1907
|
text-transform: capitalize;
|
|
1946
1908
|
}
|
|
1947
1909
|
|
|
1948
|
-
.block-editor-image-size-control {
|
|
1949
|
-
margin-bottom: 1em;
|
|
1950
|
-
}
|
|
1951
|
-
.block-editor-image-size-control .block-editor-image-size-control__row {
|
|
1952
|
-
display: flex;
|
|
1953
|
-
justify-content: space-between;
|
|
1954
|
-
}
|
|
1955
|
-
.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width,
|
|
1956
|
-
.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height {
|
|
1957
|
-
margin-bottom: 0.5em;
|
|
1958
|
-
}
|
|
1959
|
-
.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width input,
|
|
1960
|
-
.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height input {
|
|
1961
|
-
line-height: 1.25;
|
|
1962
|
-
}
|
|
1963
|
-
.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width {
|
|
1964
|
-
margin-right: 5px;
|
|
1965
|
-
}
|
|
1966
|
-
.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height {
|
|
1967
|
-
margin-left: 5px;
|
|
1968
|
-
}
|
|
1969
|
-
|
|
1970
|
-
.block-editor-block-list__layout.has-overlay::after {
|
|
1971
|
-
content: "";
|
|
1972
|
-
position: absolute;
|
|
1973
|
-
top: 0;
|
|
1974
|
-
right: 0;
|
|
1975
|
-
bottom: 0;
|
|
1976
|
-
left: 0;
|
|
1977
|
-
z-index: 60;
|
|
1978
|
-
}
|
|
1979
|
-
|
|
1980
|
-
.block-editor-block-types-list__list-item {
|
|
1981
|
-
display: block;
|
|
1982
|
-
width: 33.33%;
|
|
1983
|
-
padding: 0;
|
|
1984
|
-
margin: 0;
|
|
1985
|
-
}
|
|
1986
|
-
|
|
1987
|
-
.components-button.block-editor-block-types-list__item {
|
|
1988
|
-
display: flex;
|
|
1989
|
-
flex-direction: column;
|
|
1990
|
-
width: 100%;
|
|
1991
|
-
font-size: 13px;
|
|
1992
|
-
color: #1e1e1e;
|
|
1993
|
-
padding: 8px;
|
|
1994
|
-
align-items: stretch;
|
|
1995
|
-
justify-content: center;
|
|
1996
|
-
cursor: pointer;
|
|
1997
|
-
background: transparent;
|
|
1998
|
-
word-break: break-word;
|
|
1999
|
-
border-radius: 2px;
|
|
2000
|
-
transition: all 0.05s ease-in-out;
|
|
2001
|
-
position: relative;
|
|
2002
|
-
height: auto;
|
|
2003
|
-
}
|
|
2004
|
-
@media (prefers-reduced-motion: reduce) {
|
|
2005
|
-
.components-button.block-editor-block-types-list__item {
|
|
2006
|
-
transition-duration: 0s;
|
|
2007
|
-
transition-delay: 0s;
|
|
2008
|
-
}
|
|
2009
|
-
}
|
|
2010
|
-
.components-button.block-editor-block-types-list__item:disabled {
|
|
2011
|
-
opacity: 0.6;
|
|
2012
|
-
cursor: default;
|
|
2013
|
-
}
|
|
2014
|
-
.components-button.block-editor-block-types-list__item:not(:disabled):hover {
|
|
2015
|
-
color: var(--wp-admin-theme-color) !important;
|
|
2016
|
-
}
|
|
2017
|
-
.components-button.block-editor-block-types-list__item:not(:disabled):focus {
|
|
2018
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
2019
|
-
}
|
|
2020
|
-
.components-button.block-editor-block-types-list__item:not(:disabled).is-active {
|
|
2021
|
-
color: #fff;
|
|
2022
|
-
background: #1e1e1e;
|
|
2023
|
-
outline: 2px solid transparent;
|
|
2024
|
-
outline-offset: -2px;
|
|
2025
|
-
}
|
|
2026
|
-
|
|
2027
|
-
.block-editor-block-types-list__item-icon {
|
|
2028
|
-
padding: 12px 20px;
|
|
2029
|
-
border-radius: 2px;
|
|
2030
|
-
color: #1e1e1e;
|
|
2031
|
-
transition: all 0.05s ease-in-out;
|
|
2032
|
-
}
|
|
2033
|
-
@media (prefers-reduced-motion: reduce) {
|
|
2034
|
-
.block-editor-block-types-list__item-icon {
|
|
2035
|
-
transition-duration: 0s;
|
|
2036
|
-
transition-delay: 0s;
|
|
2037
|
-
}
|
|
2038
|
-
}
|
|
2039
|
-
.block-editor-block-types-list__item-icon .block-editor-block-icon {
|
|
2040
|
-
margin-left: auto;
|
|
2041
|
-
margin-right: auto;
|
|
2042
|
-
}
|
|
2043
|
-
.block-editor-block-types-list__item-icon svg {
|
|
2044
|
-
transition: all 0.15s ease-out;
|
|
2045
|
-
}
|
|
2046
|
-
@media (prefers-reduced-motion: reduce) {
|
|
2047
|
-
.block-editor-block-types-list__item-icon svg {
|
|
2048
|
-
transition-duration: 0s;
|
|
2049
|
-
transition-delay: 0s;
|
|
2050
|
-
}
|
|
2051
|
-
}
|
|
2052
|
-
.block-editor-block-types-list__list-item[draggable=true] .block-editor-block-types-list__item-icon {
|
|
2053
|
-
cursor: grab;
|
|
2054
|
-
}
|
|
2055
|
-
|
|
2056
|
-
.block-editor-block-types-list__item-title {
|
|
2057
|
-
padding: 4px 2px 8px;
|
|
2058
|
-
font-size: 12px;
|
|
2059
|
-
}
|
|
2060
|
-
|
|
2061
1910
|
.items-justified-left {
|
|
2062
1911
|
justify-content: flex-start;
|
|
2063
1912
|
}
|
|
@@ -2074,14 +1923,6 @@
|
|
|
2074
1923
|
justify-content: space-between;
|
|
2075
1924
|
}
|
|
2076
1925
|
|
|
2077
|
-
.block-editor-line-height-control {
|
|
2078
|
-
margin-bottom: 24px;
|
|
2079
|
-
}
|
|
2080
|
-
.block-editor-line-height-control input {
|
|
2081
|
-
display: block;
|
|
2082
|
-
max-width: 60px;
|
|
2083
|
-
}
|
|
2084
|
-
|
|
2085
1926
|
@keyframes loadingpulse {
|
|
2086
1927
|
0% {
|
|
2087
1928
|
opacity: 1;
|
|
@@ -2537,6 +2378,127 @@
|
|
|
2537
2378
|
flex-shrink: 0;
|
|
2538
2379
|
}
|
|
2539
2380
|
|
|
2381
|
+
.block-editor-line-height-control {
|
|
2382
|
+
margin-bottom: 24px;
|
|
2383
|
+
}
|
|
2384
|
+
.block-editor-line-height-control input {
|
|
2385
|
+
display: block;
|
|
2386
|
+
max-width: 60px;
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
.block-editor-image-size-control {
|
|
2390
|
+
margin-bottom: 1em;
|
|
2391
|
+
}
|
|
2392
|
+
.block-editor-image-size-control .block-editor-image-size-control__row {
|
|
2393
|
+
display: flex;
|
|
2394
|
+
justify-content: space-between;
|
|
2395
|
+
}
|
|
2396
|
+
.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width,
|
|
2397
|
+
.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height {
|
|
2398
|
+
margin-bottom: 0.5em;
|
|
2399
|
+
}
|
|
2400
|
+
.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width input,
|
|
2401
|
+
.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height input {
|
|
2402
|
+
line-height: 1.25;
|
|
2403
|
+
}
|
|
2404
|
+
.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width {
|
|
2405
|
+
margin-right: 5px;
|
|
2406
|
+
}
|
|
2407
|
+
.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height {
|
|
2408
|
+
margin-left: 5px;
|
|
2409
|
+
}
|
|
2410
|
+
|
|
2411
|
+
.block-editor-block-list__layout.has-overlay::after {
|
|
2412
|
+
content: "";
|
|
2413
|
+
position: absolute;
|
|
2414
|
+
top: 0;
|
|
2415
|
+
right: 0;
|
|
2416
|
+
bottom: 0;
|
|
2417
|
+
left: 0;
|
|
2418
|
+
z-index: 60;
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2421
|
+
.block-editor-block-types-list__list-item {
|
|
2422
|
+
display: block;
|
|
2423
|
+
width: 33.33%;
|
|
2424
|
+
padding: 0;
|
|
2425
|
+
margin: 0;
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
.components-button.block-editor-block-types-list__item {
|
|
2429
|
+
display: flex;
|
|
2430
|
+
flex-direction: column;
|
|
2431
|
+
width: 100%;
|
|
2432
|
+
font-size: 13px;
|
|
2433
|
+
color: #1e1e1e;
|
|
2434
|
+
padding: 8px;
|
|
2435
|
+
align-items: stretch;
|
|
2436
|
+
justify-content: center;
|
|
2437
|
+
cursor: pointer;
|
|
2438
|
+
background: transparent;
|
|
2439
|
+
word-break: break-word;
|
|
2440
|
+
border-radius: 2px;
|
|
2441
|
+
transition: all 0.05s ease-in-out;
|
|
2442
|
+
position: relative;
|
|
2443
|
+
height: auto;
|
|
2444
|
+
}
|
|
2445
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2446
|
+
.components-button.block-editor-block-types-list__item {
|
|
2447
|
+
transition-duration: 0s;
|
|
2448
|
+
transition-delay: 0s;
|
|
2449
|
+
}
|
|
2450
|
+
}
|
|
2451
|
+
.components-button.block-editor-block-types-list__item:disabled {
|
|
2452
|
+
opacity: 0.6;
|
|
2453
|
+
cursor: default;
|
|
2454
|
+
}
|
|
2455
|
+
.components-button.block-editor-block-types-list__item:not(:disabled):hover {
|
|
2456
|
+
color: var(--wp-admin-theme-color) !important;
|
|
2457
|
+
}
|
|
2458
|
+
.components-button.block-editor-block-types-list__item:not(:disabled):focus {
|
|
2459
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
2460
|
+
}
|
|
2461
|
+
.components-button.block-editor-block-types-list__item:not(:disabled).is-active {
|
|
2462
|
+
color: #fff;
|
|
2463
|
+
background: #1e1e1e;
|
|
2464
|
+
outline: 2px solid transparent;
|
|
2465
|
+
outline-offset: -2px;
|
|
2466
|
+
}
|
|
2467
|
+
|
|
2468
|
+
.block-editor-block-types-list__item-icon {
|
|
2469
|
+
padding: 12px 20px;
|
|
2470
|
+
border-radius: 2px;
|
|
2471
|
+
color: #1e1e1e;
|
|
2472
|
+
transition: all 0.05s ease-in-out;
|
|
2473
|
+
}
|
|
2474
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2475
|
+
.block-editor-block-types-list__item-icon {
|
|
2476
|
+
transition-duration: 0s;
|
|
2477
|
+
transition-delay: 0s;
|
|
2478
|
+
}
|
|
2479
|
+
}
|
|
2480
|
+
.block-editor-block-types-list__item-icon .block-editor-block-icon {
|
|
2481
|
+
margin-left: auto;
|
|
2482
|
+
margin-right: auto;
|
|
2483
|
+
}
|
|
2484
|
+
.block-editor-block-types-list__item-icon svg {
|
|
2485
|
+
transition: all 0.15s ease-out;
|
|
2486
|
+
}
|
|
2487
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2488
|
+
.block-editor-block-types-list__item-icon svg {
|
|
2489
|
+
transition-duration: 0s;
|
|
2490
|
+
transition-delay: 0s;
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
.block-editor-block-types-list__list-item[draggable=true] .block-editor-block-types-list__item-icon {
|
|
2494
|
+
cursor: grab;
|
|
2495
|
+
}
|
|
2496
|
+
|
|
2497
|
+
.block-editor-block-types-list__item-title {
|
|
2498
|
+
padding: 4px 2px 8px;
|
|
2499
|
+
font-size: 12px;
|
|
2500
|
+
}
|
|
2501
|
+
|
|
2540
2502
|
.block-editor-list-view-tree {
|
|
2541
2503
|
width: 100%;
|
|
2542
2504
|
border-collapse: collapse;
|
|
@@ -3566,12 +3528,18 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|
|
3566
3528
|
margin-bottom: 8px;
|
|
3567
3529
|
}
|
|
3568
3530
|
|
|
3569
|
-
.
|
|
3570
|
-
|
|
3531
|
+
.block-editor-hooks__border-controls .block-editor-hooks__border-controls-row {
|
|
3532
|
+
display: flex;
|
|
3533
|
+
justify-content: space-between;
|
|
3571
3534
|
}
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3535
|
+
.block-editor-hooks__border-controls .block-editor-hooks__border-controls-row > * {
|
|
3536
|
+
width: calc(50% - 8px);
|
|
3537
|
+
}
|
|
3538
|
+
.block-editor-hooks__border-controls .components-unit-control-wrapper {
|
|
3539
|
+
margin-bottom: 24px;
|
|
3540
|
+
}
|
|
3541
|
+
.block-editor-hooks__border-controls .components-unit-control-wrapper:last-child {
|
|
3542
|
+
margin-bottom: 8px;
|
|
3575
3543
|
}
|
|
3576
3544
|
|
|
3577
3545
|
.typography-block-support-panel .components-font-appearance-control,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-editor",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.15",
|
|
4
4
|
"description": "Generic block editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -33,31 +33,31 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.16.0",
|
|
35
35
|
"@react-spring/web": "^9.2.4",
|
|
36
|
-
"@wordpress/a11y": "^3.2.
|
|
37
|
-
"@wordpress/api-fetch": "^5.2.
|
|
38
|
-
"@wordpress/blob": "^3.2.
|
|
39
|
-
"@wordpress/block-serialization-default-parser": "^4.2.
|
|
40
|
-
"@wordpress/blocks": "^11.1.5
|
|
41
|
-
"@wordpress/components": "^19.2.
|
|
42
|
-
"@wordpress/compose": "^5.0.7
|
|
43
|
-
"@wordpress/data": "^6.1.
|
|
44
|
-
"@wordpress/deprecated": "^3.2.
|
|
45
|
-
"@wordpress/dom": "^3.2.
|
|
46
|
-
"@wordpress/element": "^4.0.
|
|
47
|
-
"@wordpress/hooks": "^3.2.
|
|
48
|
-
"@wordpress/html-entities": "^3.2.
|
|
49
|
-
"@wordpress/i18n": "^4.2.
|
|
50
|
-
"@wordpress/icons": "^6.1.
|
|
51
|
-
"@wordpress/is-shallow-equal": "^4.2.
|
|
52
|
-
"@wordpress/keyboard-shortcuts": "^3.0.7
|
|
53
|
-
"@wordpress/keycodes": "^3.2.
|
|
54
|
-
"@wordpress/notices": "^3.2.8
|
|
55
|
-
"@wordpress/rich-text": "^5.0.
|
|
56
|
-
"@wordpress/shortcode": "^3.2.
|
|
57
|
-
"@wordpress/token-list": "^2.2.
|
|
58
|
-
"@wordpress/url": "^3.3.
|
|
59
|
-
"@wordpress/warning": "^2.2.
|
|
60
|
-
"@wordpress/wordcount": "^3.2.
|
|
36
|
+
"@wordpress/a11y": "^3.2.4",
|
|
37
|
+
"@wordpress/api-fetch": "^5.2.6",
|
|
38
|
+
"@wordpress/blob": "^3.2.2",
|
|
39
|
+
"@wordpress/block-serialization-default-parser": "^4.2.3",
|
|
40
|
+
"@wordpress/blocks": "^11.1.5",
|
|
41
|
+
"@wordpress/components": "^19.2.2",
|
|
42
|
+
"@wordpress/compose": "^5.0.7",
|
|
43
|
+
"@wordpress/data": "^6.1.5",
|
|
44
|
+
"@wordpress/deprecated": "^3.2.3",
|
|
45
|
+
"@wordpress/dom": "^3.2.7",
|
|
46
|
+
"@wordpress/element": "^4.0.4",
|
|
47
|
+
"@wordpress/hooks": "^3.2.2",
|
|
48
|
+
"@wordpress/html-entities": "^3.2.3",
|
|
49
|
+
"@wordpress/i18n": "^4.2.4",
|
|
50
|
+
"@wordpress/icons": "^6.1.1",
|
|
51
|
+
"@wordpress/is-shallow-equal": "^4.2.1",
|
|
52
|
+
"@wordpress/keyboard-shortcuts": "^3.0.7",
|
|
53
|
+
"@wordpress/keycodes": "^3.2.4",
|
|
54
|
+
"@wordpress/notices": "^3.2.8",
|
|
55
|
+
"@wordpress/rich-text": "^5.0.8",
|
|
56
|
+
"@wordpress/shortcode": "^3.2.3",
|
|
57
|
+
"@wordpress/token-list": "^2.2.2",
|
|
58
|
+
"@wordpress/url": "^3.3.1",
|
|
59
|
+
"@wordpress/warning": "^2.2.2",
|
|
60
|
+
"@wordpress/wordcount": "^3.2.3",
|
|
61
61
|
"classnames": "^2.3.1",
|
|
62
62
|
"colord": "^2.7.0",
|
|
63
63
|
"css-mediaquery": "^0.1.2",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "8c2cd6a5fd8781266da858a2e7d1bdd9a3a279e4"
|
|
79
79
|
}
|
|
@@ -9,7 +9,6 @@ import { View } from 'react-native';
|
|
|
9
9
|
import { Caption, RichText } from '@wordpress/block-editor';
|
|
10
10
|
import { compose } from '@wordpress/compose';
|
|
11
11
|
import { withDispatch, withSelect } from '@wordpress/data';
|
|
12
|
-
import { hasBlockSupport } from '@wordpress/blocks';
|
|
13
12
|
|
|
14
13
|
/**
|
|
15
14
|
* Internal dependencies
|
|
@@ -45,33 +44,16 @@ const BlockCaption = ( {
|
|
|
45
44
|
|
|
46
45
|
export default compose( [
|
|
47
46
|
withSelect( ( select, { clientId } ) => {
|
|
48
|
-
const {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
getBlockName,
|
|
52
|
-
getBlockRootClientId,
|
|
53
|
-
} = select( blockEditorStore );
|
|
47
|
+
const { getBlockAttributes, getSelectedBlockClientId } = select(
|
|
48
|
+
blockEditorStore
|
|
49
|
+
);
|
|
54
50
|
const { caption } = getBlockAttributes( clientId ) || {};
|
|
55
51
|
const isBlockSelected = getSelectedBlockClientId() === clientId;
|
|
56
52
|
|
|
57
|
-
// Detect whether the block is an inner block by checking if it has a parent block.
|
|
58
|
-
// getBlockRootClientId() will return an empty string for all top-level blocks.
|
|
59
|
-
// If the block is an inner block, its parent may explicitly hide child block controls.
|
|
60
|
-
// See: https://github.com/wordpress-mobile/gutenberg-mobile/pull/4256
|
|
61
|
-
const parentId = getBlockRootClientId( clientId );
|
|
62
|
-
const parentBlockName = getBlockName( parentId );
|
|
63
|
-
|
|
64
|
-
const hideCaption = hasBlockSupport(
|
|
65
|
-
parentBlockName,
|
|
66
|
-
'__experimentalHideChildBlockControls',
|
|
67
|
-
false
|
|
68
|
-
);
|
|
69
|
-
|
|
70
53
|
// We'll render the caption so that the soft keyboard is not forced to close on Android
|
|
71
54
|
// but still hide it by setting its display style to none. See wordpress-mobile/gutenberg-mobile#1221
|
|
72
55
|
const shouldDisplay =
|
|
73
|
-
!
|
|
74
|
-
( ! RichText.isEmpty( caption ) > 0 || isBlockSelected );
|
|
56
|
+
! RichText.isEmpty( caption ) > 0 || isBlockSelected;
|
|
75
57
|
|
|
76
58
|
return {
|
|
77
59
|
shouldDisplay,
|
|
@@ -30,7 +30,10 @@ import BlockVariationTransforms from '../block-variation-transforms';
|
|
|
30
30
|
import useBlockDisplayInformation from '../use-block-display-information';
|
|
31
31
|
import { store as blockEditorStore } from '../../store';
|
|
32
32
|
|
|
33
|
-
const BlockInspector = ( {
|
|
33
|
+
const BlockInspector = ( {
|
|
34
|
+
showNoBlockSelectedMessage = true,
|
|
35
|
+
bubblesVirtually = true,
|
|
36
|
+
} ) => {
|
|
34
37
|
const {
|
|
35
38
|
count,
|
|
36
39
|
hasBlockStyles,
|
|
@@ -67,6 +70,18 @@ const BlockInspector = ( { showNoBlockSelectedMessage = true } ) => {
|
|
|
67
70
|
<div className="block-editor-block-inspector">
|
|
68
71
|
<MultiSelectionInspector />
|
|
69
72
|
<InspectorControls.Slot />
|
|
73
|
+
<InspectorControls.Slot
|
|
74
|
+
__experimentalGroup="typography"
|
|
75
|
+
label={ __( 'Typography' ) }
|
|
76
|
+
/>
|
|
77
|
+
<InspectorControls.Slot
|
|
78
|
+
__experimentalGroup="dimensions"
|
|
79
|
+
label={ __( 'Dimensions' ) }
|
|
80
|
+
/>
|
|
81
|
+
<InspectorControls.Slot
|
|
82
|
+
__experimentalGroup="border"
|
|
83
|
+
label={ __( 'Border' ) }
|
|
84
|
+
/>
|
|
70
85
|
</div>
|
|
71
86
|
);
|
|
72
87
|
}
|
|
@@ -97,6 +112,7 @@ const BlockInspector = ( { showNoBlockSelectedMessage = true } ) => {
|
|
|
97
112
|
clientId={ selectedBlockClientId }
|
|
98
113
|
blockName={ blockType.name }
|
|
99
114
|
hasBlockStyles={ hasBlockStyles }
|
|
115
|
+
bubblesVirtually={ bubblesVirtually }
|
|
100
116
|
/>
|
|
101
117
|
);
|
|
102
118
|
};
|
|
@@ -105,6 +121,7 @@ const BlockInspectorSingleBlock = ( {
|
|
|
105
121
|
clientId,
|
|
106
122
|
blockName,
|
|
107
123
|
hasBlockStyles,
|
|
124
|
+
bubblesVirtually,
|
|
108
125
|
} ) => {
|
|
109
126
|
const blockInformation = useBlockDisplayInformation( clientId );
|
|
110
127
|
return (
|
|
@@ -114,10 +131,7 @@ const BlockInspectorSingleBlock = ( {
|
|
|
114
131
|
{ hasBlockStyles && (
|
|
115
132
|
<div>
|
|
116
133
|
<PanelBody title={ __( 'Styles' ) }>
|
|
117
|
-
<BlockStyles
|
|
118
|
-
scope="core/block-inspector"
|
|
119
|
-
clientId={ clientId }
|
|
120
|
-
/>
|
|
134
|
+
<BlockStyles clientId={ clientId } />
|
|
121
135
|
{ hasBlockSupport(
|
|
122
136
|
blockName,
|
|
123
137
|
'defaultStylePicker',
|
|
@@ -126,28 +140,30 @@ const BlockInspectorSingleBlock = ( {
|
|
|
126
140
|
</PanelBody>
|
|
127
141
|
</div>
|
|
128
142
|
) }
|
|
129
|
-
<InspectorControls.Slot />
|
|
143
|
+
<InspectorControls.Slot bubblesVirtually={ bubblesVirtually } />
|
|
130
144
|
<InspectorControls.Slot
|
|
131
145
|
__experimentalGroup="typography"
|
|
146
|
+
bubblesVirtually={ bubblesVirtually }
|
|
132
147
|
label={ __( 'Typography' ) }
|
|
133
148
|
/>
|
|
134
|
-
<InspectorControls.Slot
|
|
135
|
-
__experimentalGroup="border"
|
|
136
|
-
label={ __( 'Border' ) }
|
|
137
|
-
/>
|
|
138
149
|
<InspectorControls.Slot
|
|
139
150
|
__experimentalGroup="dimensions"
|
|
151
|
+
bubblesVirtually={ bubblesVirtually }
|
|
140
152
|
label={ __( 'Dimensions' ) }
|
|
141
153
|
/>
|
|
154
|
+
<InspectorControls.Slot
|
|
155
|
+
__experimentalGroup="border"
|
|
156
|
+
label={ __( 'Border' ) }
|
|
157
|
+
/>
|
|
142
158
|
<div>
|
|
143
|
-
<AdvancedControls />
|
|
159
|
+
<AdvancedControls bubblesVirtually={ bubblesVirtually } />
|
|
144
160
|
</div>
|
|
145
161
|
<SkipToSelectedBlock key="back" />
|
|
146
162
|
</div>
|
|
147
163
|
);
|
|
148
164
|
};
|
|
149
165
|
|
|
150
|
-
const AdvancedControls = () => {
|
|
166
|
+
const AdvancedControls = ( { bubblesVirtually } ) => {
|
|
151
167
|
const slot = useSlot( InspectorAdvancedControls.slotName );
|
|
152
168
|
const hasFills = Boolean( slot.fills && slot.fills.length );
|
|
153
169
|
|
|
@@ -161,7 +177,10 @@ const AdvancedControls = () => {
|
|
|
161
177
|
title={ __( 'Advanced' ) }
|
|
162
178
|
initialOpen={ false }
|
|
163
179
|
>
|
|
164
|
-
<InspectorControls.Slot
|
|
180
|
+
<InspectorControls.Slot
|
|
181
|
+
__experimentalGroup="advanced"
|
|
182
|
+
bubblesVirtually={ bubblesVirtually }
|
|
183
|
+
/>
|
|
165
184
|
</PanelBody>
|
|
166
185
|
);
|
|
167
186
|
};
|