@wordpress/block-editor 11.4.0 → 11.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/build/components/block-inspector/index.js +11 -10
- package/build/components/block-inspector/index.js.map +1 -1
- package/build/components/block-inspector/useBlockInspectorAnimationSettings.js +46 -0
- package/build/components/block-inspector/useBlockInspectorAnimationSettings.js.map +1 -0
- package/build/components/block-list/block-invalid-warning.js +63 -80
- package/build/components/block-list/block-invalid-warning.js.map +1 -1
- package/build/components/block-lock/modal.js +1 -0
- package/build/components/block-lock/modal.js.map +1 -1
- package/build/components/block-settings-menu/block-settings-dropdown.js +2 -2
- package/build/components/block-settings-menu/block-settings-dropdown.js.map +1 -1
- package/build/components/block-settings-menu-controls/index.js +1 -1
- package/build/components/block-settings-menu-controls/index.js.map +1 -1
- package/build/components/block-styles/index.js +2 -1
- package/build/components/block-styles/index.js.map +1 -1
- package/build/components/block-switcher/block-transformations-menu.native.js +1 -0
- package/build/components/block-switcher/block-transformations-menu.native.js.map +1 -1
- package/build/components/child-layout-control/index.js +107 -0
- package/build/components/child-layout-control/index.js.map +1 -0
- package/build/components/convert-to-group-buttons/use-convert-to-group-button-props.js +6 -3
- package/build/components/convert-to-group-buttons/use-convert-to-group-button-props.js.map +1 -1
- package/build/components/date-format-picker/index.js +3 -3
- package/build/components/date-format-picker/index.js.map +1 -1
- package/build/components/global-styles/border-panel.js +306 -0
- package/build/components/global-styles/border-panel.js.map +1 -0
- package/build/components/global-styles/dimensions-panel.js +594 -0
- package/build/components/global-styles/dimensions-panel.js.map +1 -0
- package/build/components/global-styles/hooks.js +127 -37
- package/build/components/global-styles/hooks.js.map +1 -1
- package/build/components/global-styles/index.js +36 -2
- package/build/components/global-styles/index.js.map +1 -1
- package/build/components/global-styles/typography-panel.js +87 -27
- package/build/components/global-styles/typography-panel.js.map +1 -1
- package/build/components/global-styles/use-global-styles-output.js +21 -14
- package/build/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build/components/global-styles/utils.js +2 -0
- package/build/components/global-styles/utils.js.map +1 -1
- package/build/components/index.native.js +23 -0
- package/build/components/index.native.js.map +1 -1
- package/build/components/inserter/index.js +29 -17
- package/build/components/inserter/index.js.map +1 -1
- package/build/components/inserter/media-tab/hooks.js +10 -11
- package/build/components/inserter/media-tab/hooks.js.map +1 -1
- package/build/components/inserter/media-tab/media-list.js +5 -108
- package/build/components/inserter/media-tab/media-list.js.map +1 -1
- package/build/components/inserter/media-tab/media-preview.js +242 -0
- package/build/components/inserter/media-tab/media-preview.js.map +1 -0
- package/build/components/inserter/menu.js +1 -1
- package/build/components/inserter/menu.js.map +1 -1
- package/build/components/inserter/quick-inserter.js +4 -2
- package/build/components/inserter/quick-inserter.js.map +1 -1
- package/build/components/inserter/search-results.js +10 -3
- package/build/components/inserter/search-results.js.map +1 -1
- package/build/components/inserter/tabs.js +1 -1
- package/build/components/inserter/tabs.js.map +1 -1
- package/build/components/inspector-controls/block-support-tools-panel.js +1 -1
- package/build/components/inspector-controls/block-support-tools-panel.js.map +1 -1
- package/build/components/inspector-controls/fill.js +38 -9
- package/build/components/inspector-controls/fill.js.map +1 -1
- package/build/components/link-control/index.js +1 -1
- package/build/components/link-control/index.js.map +1 -1
- package/build/components/link-control/search-item.js +5 -2
- package/build/components/link-control/search-item.js.map +1 -1
- package/build/components/link-control/settings-drawer.js +1 -1
- package/build/components/link-control/settings-drawer.js.map +1 -1
- package/build/components/link-control/settings.js +1 -0
- package/build/components/link-control/settings.js.map +1 -1
- package/build/components/list-view/block.js +17 -3
- package/build/components/list-view/block.js.map +1 -1
- package/build/components/list-view/branch.js +2 -2
- package/build/components/list-view/branch.js.map +1 -1
- package/build/components/list-view/expander.js +2 -1
- package/build/components/list-view/expander.js.map +1 -1
- package/build/components/list-view/leaf.js +10 -6
- package/build/components/list-view/leaf.js.map +1 -1
- package/build/components/list-view/use-block-selection.js +1 -2
- package/build/components/list-view/use-block-selection.js.map +1 -1
- package/build/components/list-view/use-list-view-scroll-into-view.js +51 -0
- package/build/components/list-view/use-list-view-scroll-into-view.js.map +1 -0
- package/build/components/off-canvas-editor/appender.js +33 -13
- package/build/components/off-canvas-editor/appender.js.map +1 -1
- package/build/components/off-canvas-editor/branch.js +6 -3
- package/build/components/off-canvas-editor/branch.js.map +1 -1
- package/build/components/off-canvas-editor/index.js +8 -2
- package/build/components/off-canvas-editor/index.js.map +1 -1
- package/build/components/off-canvas-editor/leaf-more-menu.js +34 -4
- package/build/components/off-canvas-editor/leaf-more-menu.js.map +1 -1
- package/build/components/provider/use-block-sync.js +17 -3
- package/build/components/provider/use-block-sync.js.map +1 -1
- package/build/components/responsive-block-control/index.js +1 -0
- package/build/components/responsive-block-control/index.js.map +1 -1
- package/build/components/rich-text/format-toolbar-container.js +0 -3
- package/build/components/rich-text/format-toolbar-container.js.map +1 -1
- package/build/components/rich-text/index.js +9 -43
- package/build/components/rich-text/index.js.map +1 -1
- package/build/components/rich-text/use-delete.js +73 -0
- package/build/components/rich-text/use-delete.js.map +1 -0
- package/build/components/rich-text/use-input-rules.js +14 -6
- package/build/components/rich-text/use-input-rules.js.map +1 -1
- package/build/components/writing-flow/use-selection-observer.js +4 -1
- package/build/components/writing-flow/use-selection-observer.js.map +1 -1
- package/build/hooks/align.js +3 -1
- package/build/hooks/align.js.map +1 -1
- package/build/hooks/border.js +91 -240
- package/build/hooks/border.js.map +1 -1
- package/build/hooks/custom-class-name.js +4 -4
- package/build/hooks/custom-class-name.js.map +1 -1
- package/build/hooks/custom-class-name.native.js +3 -4
- package/build/hooks/custom-class-name.native.js.map +1 -1
- package/build/hooks/dimensions.js +72 -190
- package/build/hooks/dimensions.js.map +1 -1
- package/build/hooks/duotone.js +94 -25
- package/build/hooks/duotone.js.map +1 -1
- package/build/hooks/gap.js +0 -202
- package/build/hooks/gap.js.map +1 -1
- package/build/hooks/layout.js +33 -27
- package/build/hooks/layout.js.map +1 -1
- package/build/hooks/margin.js +7 -163
- package/build/hooks/margin.js.map +1 -1
- package/build/hooks/padding.js +7 -163
- package/build/hooks/padding.js.map +1 -1
- package/build/hooks/supports.js +7 -1
- package/build/hooks/supports.js.map +1 -1
- package/build/hooks/typography.js +52 -66
- package/build/hooks/typography.js.map +1 -1
- package/build/hooks/utils.js +101 -0
- package/build/hooks/utils.js.map +1 -1
- package/build/layouts/constrained.js +6 -2
- package/build/layouts/constrained.js.map +1 -1
- package/build/layouts/flex.js +1 -0
- package/build/layouts/flex.js.map +1 -1
- package/build/private-apis.js +4 -1
- package/build/private-apis.js.map +1 -1
- package/build/store/actions.js +28 -14
- package/build/store/actions.js.map +1 -1
- package/build/store/defaults.js +28 -1
- package/build/store/defaults.js.map +1 -1
- package/build/store/reducer.js +53 -47
- package/build/store/reducer.js.map +1 -1
- package/build/store/selectors.js +24 -4
- package/build/store/selectors.js.map +1 -1
- package/build/utils/parse-css-unit-to-px.js +49 -10
- package/build/utils/parse-css-unit-to-px.js.map +1 -1
- package/build-module/components/block-inspector/index.js +9 -9
- package/build-module/components/block-inspector/index.js.map +1 -1
- package/build-module/components/block-inspector/useBlockInspectorAnimationSettings.js +37 -0
- package/build-module/components/block-inspector/useBlockInspectorAnimationSettings.js.map +1 -0
- package/build-module/components/block-list/block-invalid-warning.js +66 -78
- package/build-module/components/block-list/block-invalid-warning.js.map +1 -1
- package/build-module/components/block-lock/modal.js +1 -0
- package/build-module/components/block-lock/modal.js.map +1 -1
- package/build-module/components/block-settings-menu/block-settings-dropdown.js +2 -2
- package/build-module/components/block-settings-menu/block-settings-dropdown.js.map +1 -1
- package/build-module/components/block-settings-menu-controls/index.js +1 -1
- package/build-module/components/block-settings-menu-controls/index.js.map +1 -1
- package/build-module/components/block-styles/index.js +2 -1
- package/build-module/components/block-styles/index.js.map +1 -1
- package/build-module/components/block-switcher/block-transformations-menu.native.js +1 -0
- package/build-module/components/block-switcher/block-transformations-menu.native.js.map +1 -1
- package/build-module/components/child-layout-control/index.js +98 -0
- package/build-module/components/child-layout-control/index.js.map +1 -0
- package/build-module/components/convert-to-group-buttons/use-convert-to-group-button-props.js +6 -3
- package/build-module/components/convert-to-group-buttons/use-convert-to-group-button-props.js.map +1 -1
- package/build-module/components/date-format-picker/index.js +4 -4
- package/build-module/components/date-format-picker/index.js.map +1 -1
- package/build-module/components/global-styles/border-panel.js +291 -0
- package/build-module/components/global-styles/border-panel.js.map +1 -0
- package/build-module/components/global-styles/dimensions-panel.js +574 -0
- package/build-module/components/global-styles/dimensions-panel.js.map +1 -0
- package/build-module/components/global-styles/hooks.js +123 -34
- package/build-module/components/global-styles/hooks.js.map +1 -1
- package/build-module/components/global-styles/index.js +3 -1
- package/build-module/components/global-styles/index.js.map +1 -1
- package/build-module/components/global-styles/typography-panel.js +88 -27
- package/build-module/components/global-styles/typography-panel.js.map +1 -1
- package/build-module/components/global-styles/use-global-styles-output.js +21 -14
- package/build-module/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build-module/components/global-styles/utils.js +2 -0
- package/build-module/components/global-styles/utils.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/inserter/index.js +28 -16
- package/build-module/components/inserter/index.js.map +1 -1
- package/build-module/components/inserter/media-tab/hooks.js +10 -11
- package/build-module/components/inserter/media-tab/hooks.js.map +1 -1
- package/build-module/components/inserter/media-tab/media-list.js +6 -105
- package/build-module/components/inserter/media-tab/media-list.js.map +1 -1
- package/build-module/components/inserter/media-tab/media-preview.js +222 -0
- package/build-module/components/inserter/media-tab/media-preview.js.map +1 -0
- package/build-module/components/inserter/menu.js +1 -1
- package/build-module/components/inserter/menu.js.map +1 -1
- package/build-module/components/inserter/quick-inserter.js +4 -2
- package/build-module/components/inserter/quick-inserter.js.map +1 -1
- package/build-module/components/inserter/search-results.js +10 -3
- package/build-module/components/inserter/search-results.js.map +1 -1
- package/build-module/components/inserter/tabs.js +1 -1
- package/build-module/components/inserter/tabs.js.map +1 -1
- package/build-module/components/inspector-controls/block-support-tools-panel.js +1 -1
- package/build-module/components/inspector-controls/block-support-tools-panel.js.map +1 -1
- package/build-module/components/inspector-controls/fill.js +39 -9
- package/build-module/components/inspector-controls/fill.js.map +1 -1
- package/build-module/components/link-control/index.js +1 -1
- package/build-module/components/link-control/index.js.map +1 -1
- package/build-module/components/link-control/search-item.js +4 -2
- package/build-module/components/link-control/search-item.js.map +1 -1
- package/build-module/components/link-control/settings-drawer.js +1 -1
- package/build-module/components/link-control/settings-drawer.js.map +1 -1
- package/build-module/components/link-control/settings.js +1 -0
- package/build-module/components/link-control/settings.js.map +1 -1
- package/build-module/components/list-view/block.js +16 -3
- package/build-module/components/list-view/block.js.map +1 -1
- package/build-module/components/list-view/branch.js +2 -2
- package/build-module/components/list-view/branch.js.map +1 -1
- package/build-module/components/list-view/expander.js +2 -1
- package/build-module/components/list-view/expander.js.map +1 -1
- package/build-module/components/list-view/leaf.js +8 -4
- package/build-module/components/list-view/leaf.js.map +1 -1
- package/build-module/components/list-view/use-block-selection.js +1 -2
- package/build-module/components/list-view/use-block-selection.js.map +1 -1
- package/build-module/components/list-view/use-list-view-scroll-into-view.js +42 -0
- package/build-module/components/list-view/use-list-view-scroll-into-view.js.map +1 -0
- package/build-module/components/off-canvas-editor/appender.js +33 -14
- package/build-module/components/off-canvas-editor/appender.js.map +1 -1
- package/build-module/components/off-canvas-editor/branch.js +6 -3
- package/build-module/components/off-canvas-editor/branch.js.map +1 -1
- package/build-module/components/off-canvas-editor/index.js +8 -2
- package/build-module/components/off-canvas-editor/index.js.map +1 -1
- package/build-module/components/off-canvas-editor/leaf-more-menu.js +36 -7
- package/build-module/components/off-canvas-editor/leaf-more-menu.js.map +1 -1
- package/build-module/components/provider/use-block-sync.js +17 -3
- package/build-module/components/provider/use-block-sync.js.map +1 -1
- package/build-module/components/responsive-block-control/index.js +1 -0
- package/build-module/components/responsive-block-control/index.js.map +1 -1
- package/build-module/components/rich-text/format-toolbar-container.js +0 -3
- package/build-module/components/rich-text/format-toolbar-container.js.map +1 -1
- package/build-module/components/rich-text/index.js +9 -43
- package/build-module/components/rich-text/index.js.map +1 -1
- package/build-module/components/rich-text/use-delete.js +62 -0
- package/build-module/components/rich-text/use-delete.js.map +1 -0
- package/build-module/components/rich-text/use-input-rules.js +14 -6
- package/build-module/components/rich-text/use-input-rules.js.map +1 -1
- package/build-module/components/writing-flow/use-selection-observer.js +4 -1
- package/build-module/components/writing-flow/use-selection-observer.js.map +1 -1
- package/build-module/hooks/align.js +3 -1
- package/build-module/hooks/align.js.map +1 -1
- package/build-module/hooks/border.js +93 -240
- package/build-module/hooks/border.js.map +1 -1
- package/build-module/hooks/custom-class-name.js +4 -4
- package/build-module/hooks/custom-class-name.js.map +1 -1
- package/build-module/hooks/custom-class-name.native.js +3 -4
- package/build-module/hooks/custom-class-name.native.js.map +1 -1
- package/build-module/hooks/dimensions.js +75 -187
- package/build-module/hooks/dimensions.js.map +1 -1
- package/build-module/hooks/duotone.js +86 -24
- package/build-module/hooks/duotone.js.map +1 -1
- package/build-module/hooks/gap.js +0 -183
- package/build-module/hooks/gap.js.map +1 -1
- package/build-module/hooks/layout.js +33 -27
- package/build-module/hooks/layout.js.map +1 -1
- package/build-module/hooks/margin.js +4 -143
- package/build-module/hooks/margin.js.map +1 -1
- package/build-module/hooks/padding.js +4 -143
- package/build-module/hooks/padding.js.map +1 -1
- package/build-module/hooks/supports.js +7 -1
- package/build-module/hooks/supports.js.map +1 -1
- package/build-module/hooks/typography.js +54 -66
- package/build-module/hooks/typography.js.map +1 -1
- package/build-module/hooks/utils.js +96 -0
- package/build-module/hooks/utils.js.map +1 -1
- package/build-module/layouts/constrained.js +6 -2
- package/build-module/layouts/constrained.js.map +1 -1
- package/build-module/layouts/flex.js +1 -0
- package/build-module/layouts/flex.js.map +1 -1
- package/build-module/private-apis.js +3 -1
- package/build-module/private-apis.js.map +1 -1
- package/build-module/store/actions.js +28 -14
- package/build-module/store/actions.js.map +1 -1
- package/build-module/store/defaults.js +28 -1
- package/build-module/store/defaults.js.map +1 -1
- package/build-module/store/reducer.js +53 -45
- package/build-module/store/reducer.js.map +1 -1
- package/build-module/store/selectors.js +22 -4
- package/build-module/store/selectors.js.map +1 -1
- package/build-module/utils/parse-css-unit-to-px.js +49 -10
- package/build-module/utils/parse-css-unit-to-px.js.map +1 -1
- package/build-style/style-rtl.css +39 -27
- package/build-style/style.css +39 -27
- package/package.json +31 -31
- package/src/components/block-draggable/test/__snapshots__/index.native.js.snap +24 -24
- package/src/components/block-inspector/index.js +11 -14
- package/src/components/block-inspector/style.scss +3 -0
- package/src/components/block-inspector/useBlockInspectorAnimationSettings.js +53 -0
- package/src/components/block-list/block-invalid-warning.js +72 -64
- package/src/components/block-lock/modal.js +1 -0
- package/src/components/block-lock/style.scss +0 -9
- package/src/components/block-mobile-toolbar/test/__snapshots__/block-actions-menu.native.js.snap +20 -20
- package/src/components/block-mover/test/__snapshots__/index.native.js.snap +35 -17
- package/src/components/block-preview/test/index.js +0 -2
- package/src/components/block-settings-menu/block-settings-dropdown.js +4 -1
- package/src/components/block-settings-menu-controls/index.js +2 -1
- package/src/components/block-styles/index.js +5 -1
- package/src/components/block-styles/style.scss +2 -2
- package/src/components/block-switcher/block-transformations-menu.native.js +1 -0
- package/src/components/child-layout-control/index.js +106 -0
- package/src/components/color-palette/test/__snapshots__/control.js.snap +17 -15
- package/src/components/convert-to-group-buttons/use-convert-to-group-button-props.js +48 -38
- package/src/components/date-format-picker/index.js +6 -8
- package/src/components/date-format-picker/style.scss +0 -5
- package/src/components/global-styles/border-panel.js +285 -0
- package/src/components/global-styles/dimensions-panel.js +627 -0
- package/src/components/global-styles/hooks.js +160 -44
- package/src/components/global-styles/index.js +7 -1
- package/src/components/global-styles/test/use-global-styles-output.js +1 -1
- package/src/components/global-styles/typography-panel.js +81 -9
- package/src/components/global-styles/use-global-styles-output.js +17 -16
- package/src/components/global-styles/utils.js +2 -0
- package/src/components/index.native.js +5 -0
- package/src/components/inner-blocks/test/__snapshots__/index.js.snap +1 -1
- package/src/components/inserter/index.js +30 -11
- package/src/components/inserter/media-tab/hooks.js +9 -8
- package/src/components/inserter/media-tab/media-list.js +3 -122
- package/src/components/inserter/media-tab/media-preview.js +268 -0
- package/src/components/inserter/menu.js +0 -1
- package/src/components/inserter/quick-inserter.js +2 -0
- package/src/components/inserter/search-results.js +7 -1
- package/src/components/inserter/style.scss +25 -0
- package/src/components/inserter/tabs.js +1 -9
- package/src/components/inserter/test/__snapshots__/index.native.js.snap +15 -15
- package/src/components/inspector-controls/block-support-tools-panel.js +0 -1
- package/src/components/inspector-controls/fill.js +32 -8
- package/src/components/link-control/index.js +1 -1
- package/src/components/link-control/search-item.js +3 -1
- package/src/components/link-control/settings-drawer.js +2 -1
- package/src/components/link-control/settings.js +1 -0
- package/src/components/link-control/style.scss +18 -12
- package/src/components/link-control/test/index.js +3 -5
- package/src/components/list-view/block.js +19 -1
- package/src/components/list-view/branch.js +1 -2
- package/src/components/list-view/expander.js +1 -0
- package/src/components/list-view/leaf.js +43 -29
- package/src/components/list-view/use-block-selection.js +0 -2
- package/src/components/list-view/use-list-view-scroll-into-view.js +48 -0
- package/src/components/media-replace-flow/style.scss +7 -9
- package/src/components/off-canvas-editor/appender.js +44 -21
- package/src/components/off-canvas-editor/branch.js +4 -1
- package/src/components/off-canvas-editor/index.js +7 -1
- package/src/components/off-canvas-editor/leaf-more-menu.js +57 -15
- package/src/components/provider/use-block-sync.js +21 -4
- package/src/components/responsive-block-control/index.js +1 -0
- package/src/components/rich-text/format-toolbar-container.js +1 -7
- package/src/components/rich-text/index.js +8 -44
- package/src/components/rich-text/use-delete.js +59 -0
- package/src/components/rich-text/use-input-rules.js +13 -5
- package/src/components/spacing-sizes-control/style.scss +1 -1
- package/src/components/url-popover/stories/index.js +1 -0
- package/src/components/url-popover/test/index.js +0 -2
- package/src/components/writing-flow/use-selection-observer.js +5 -1
- package/src/hooks/align.js +1 -1
- package/src/hooks/border.js +94 -225
- package/src/hooks/custom-class-name.js +4 -4
- package/src/hooks/custom-class-name.native.js +3 -4
- package/src/hooks/dimensions.js +85 -269
- package/src/hooks/duotone.js +100 -30
- package/src/hooks/gap.js +0 -208
- package/src/hooks/layout.js +38 -22
- package/src/hooks/margin.js +1 -164
- package/src/hooks/padding.js +1 -163
- package/src/hooks/supports.js +6 -0
- package/src/hooks/test/__snapshots__/align.native.js.snap +24 -24
- package/src/hooks/test/duotone.js +102 -0
- package/src/hooks/test/style.js +2 -1
- package/src/hooks/test/use-typography-props.js +2 -0
- package/src/hooks/typography.js +68 -88
- package/src/hooks/utils.js +126 -0
- package/src/layouts/constrained.js +23 -17
- package/src/layouts/flex.js +1 -0
- package/src/private-apis.js +2 -0
- package/src/store/actions.js +16 -6
- package/src/store/defaults.js +14 -1
- package/src/store/reducer.js +68 -43
- package/src/store/selectors.js +28 -4
- package/src/store/test/actions.js +4 -2
- package/src/utils/parse-css-unit-to-px.js +48 -13
- package/src/utils/test/parse-css-unit-to-px.js +13 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/build/hooks/border-radius.js +0 -100
- package/build/hooks/border-radius.js.map +0 -1
- package/build/hooks/child-layout.js +0 -213
- package/build/hooks/child-layout.js.map +0 -1
- package/build/hooks/min-height.js +0 -139
- package/build/hooks/min-height.js.map +0 -1
- package/build-module/hooks/border-radius.js +0 -84
- package/build-module/hooks/border-radius.js.map +0 -1
- package/build-module/hooks/child-layout.js +0 -193
- package/build-module/hooks/child-layout.js.map +0 -1
- package/build-module/hooks/min-height.js +0 -116
- package/build-module/hooks/min-height.js.map +0 -1
- package/src/hooks/border-radius.js +0 -70
- package/src/hooks/child-layout.js +0 -195
- package/src/hooks/min-height.js +0 -104
|
@@ -5,28 +5,28 @@ exports[`BlockDraggable moves blocks: Initial order 1`] = `
|
|
|
5
5
|
<p>This is a paragraph.</p>
|
|
6
6
|
<!-- /wp:paragraph -->
|
|
7
7
|
|
|
8
|
-
<!-- wp:image {
|
|
9
|
-
<figure class
|
|
8
|
+
<!-- wp:image {"sizeSlug":"large"} -->
|
|
9
|
+
<figure class="wp-block-image size-large"><img src="https://cldup.com/cXyG__fTLN.jpg" alt=""/></figure>
|
|
10
10
|
<!-- /wp:image -->
|
|
11
11
|
|
|
12
12
|
<!-- wp:spacer -->
|
|
13
|
-
<div style
|
|
13
|
+
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
|
|
14
14
|
<!-- /wp:spacer -->
|
|
15
15
|
|
|
16
|
-
<!-- wp:gallery {
|
|
17
|
-
<figure class
|
|
18
|
-
<figure class
|
|
16
|
+
<!-- wp:gallery {"linkTo":"none"} -->
|
|
17
|
+
<figure class="wp-block-gallery has-nested-images columns-default is-cropped"><!-- wp:image {"sizeSlug":"large","linkDestination":"none"} -->
|
|
18
|
+
<figure class="wp-block-image size-large"><img src="https://cldup.com/cXyG__fTLN.jpg" alt=""/></figure>
|
|
19
19
|
<!-- /wp:image -->
|
|
20
20
|
|
|
21
|
-
<!-- wp:image {
|
|
22
|
-
<figure class
|
|
21
|
+
<!-- wp:image {"sizeSlug":"large","linkDestination":"none"} -->
|
|
22
|
+
<figure class="wp-block-image size-large"><img src="https://cldup.com/cXyG__fTLN.jpg" alt=""/></figure>
|
|
23
23
|
<!-- /wp:image --></figure>
|
|
24
24
|
<!-- /wp:gallery -->"
|
|
25
25
|
`;
|
|
26
26
|
|
|
27
27
|
exports[`BlockDraggable moves blocks: Paragraph block moved from first to second position 1`] = `
|
|
28
|
-
"<!-- wp:image {
|
|
29
|
-
<figure class
|
|
28
|
+
"<!-- wp:image {"sizeSlug":"large"} -->
|
|
29
|
+
<figure class="wp-block-image size-large"><img src="https://cldup.com/cXyG__fTLN.jpg" alt=""/></figure>
|
|
30
30
|
<!-- /wp:image -->
|
|
31
31
|
|
|
32
32
|
<!-- wp:paragraph -->
|
|
@@ -34,40 +34,40 @@ exports[`BlockDraggable moves blocks: Paragraph block moved from first to second
|
|
|
34
34
|
<!-- /wp:paragraph -->
|
|
35
35
|
|
|
36
36
|
<!-- wp:spacer -->
|
|
37
|
-
<div style
|
|
37
|
+
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
|
|
38
38
|
<!-- /wp:spacer -->
|
|
39
39
|
|
|
40
|
-
<!-- wp:gallery {
|
|
41
|
-
<figure class
|
|
42
|
-
<figure class
|
|
40
|
+
<!-- wp:gallery {"linkTo":"none"} -->
|
|
41
|
+
<figure class="wp-block-gallery has-nested-images columns-default is-cropped"><!-- wp:image {"sizeSlug":"large","linkDestination":"none"} -->
|
|
42
|
+
<figure class="wp-block-image size-large"><img src="https://cldup.com/cXyG__fTLN.jpg" alt=""/></figure>
|
|
43
43
|
<!-- /wp:image -->
|
|
44
44
|
|
|
45
|
-
<!-- wp:image {
|
|
46
|
-
<figure class
|
|
45
|
+
<!-- wp:image {"sizeSlug":"large","linkDestination":"none"} -->
|
|
46
|
+
<figure class="wp-block-image size-large"><img src="https://cldup.com/cXyG__fTLN.jpg" alt=""/></figure>
|
|
47
47
|
<!-- /wp:image --></figure>
|
|
48
48
|
<!-- /wp:gallery -->"
|
|
49
49
|
`;
|
|
50
50
|
|
|
51
51
|
exports[`BlockDraggable moves blocks: Spacer block moved from third to first position 1`] = `
|
|
52
52
|
"<!-- wp:spacer -->
|
|
53
|
-
<div style
|
|
53
|
+
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
|
|
54
54
|
<!-- /wp:spacer -->
|
|
55
55
|
|
|
56
|
-
<!-- wp:image {
|
|
57
|
-
<figure class
|
|
56
|
+
<!-- wp:image {"sizeSlug":"large"} -->
|
|
57
|
+
<figure class="wp-block-image size-large"><img src="https://cldup.com/cXyG__fTLN.jpg" alt=""/></figure>
|
|
58
58
|
<!-- /wp:image -->
|
|
59
59
|
|
|
60
60
|
<!-- wp:paragraph -->
|
|
61
61
|
<p>This is a paragraph.</p>
|
|
62
62
|
<!-- /wp:paragraph -->
|
|
63
63
|
|
|
64
|
-
<!-- wp:gallery {
|
|
65
|
-
<figure class
|
|
66
|
-
<figure class
|
|
64
|
+
<!-- wp:gallery {"linkTo":"none"} -->
|
|
65
|
+
<figure class="wp-block-gallery has-nested-images columns-default is-cropped"><!-- wp:image {"sizeSlug":"large","linkDestination":"none"} -->
|
|
66
|
+
<figure class="wp-block-image size-large"><img src="https://cldup.com/cXyG__fTLN.jpg" alt=""/></figure>
|
|
67
67
|
<!-- /wp:image -->
|
|
68
68
|
|
|
69
|
-
<!-- wp:image {
|
|
70
|
-
<figure class
|
|
69
|
+
<!-- wp:image {"sizeSlug":"large","linkDestination":"none"} -->
|
|
70
|
+
<figure class="wp-block-image size-large"><img src="https://cldup.com/cXyG__fTLN.jpg" alt=""/></figure>
|
|
71
71
|
<!-- /wp:image --></figure>
|
|
72
72
|
<!-- /wp:gallery -->"
|
|
73
73
|
`;
|
|
@@ -36,6 +36,7 @@ import { default as InspectorControlsTabs } from '../inspector-controls-tabs';
|
|
|
36
36
|
import useInspectorControlsTabs from '../inspector-controls-tabs/use-inspector-controls-tabs';
|
|
37
37
|
import AdvancedControls from '../inspector-controls-tabs/advanced-controls-panel';
|
|
38
38
|
import PositionControls from '../inspector-controls-tabs/position-controls-panel';
|
|
39
|
+
import useBlockInspectorAnimationSettings from './useBlockInspectorAnimationSettings';
|
|
39
40
|
|
|
40
41
|
function useContentBlocks( blockTypes, block ) {
|
|
41
42
|
const contentBlocksObjectAux = useMemo( () => {
|
|
@@ -56,7 +57,7 @@ function useContentBlocks( blockTypes, block ) {
|
|
|
56
57
|
( blockName ) => {
|
|
57
58
|
return !! contentBlocksObjectAux[ blockName ];
|
|
58
59
|
},
|
|
59
|
-
[
|
|
60
|
+
[ contentBlocksObjectAux ]
|
|
60
61
|
);
|
|
61
62
|
return useMemo( () => {
|
|
62
63
|
return getContentBlocks( [ block ], isContentBlock );
|
|
@@ -173,19 +174,15 @@ const BlockInspector = ( { showNoBlockSelectedMessage = true } ) => {
|
|
|
173
174
|
const availableTabs = useInspectorControlsTabs( blockType?.name );
|
|
174
175
|
const showTabs = availableTabs?.length > 1;
|
|
175
176
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}
|
|
186
|
-
return null;
|
|
187
|
-
},
|
|
188
|
-
[ selectedBlockClientId, blockType ]
|
|
177
|
+
// The block inspector animation settings will be completely
|
|
178
|
+
// removed in the future to create an API which allows the block
|
|
179
|
+
// inspector to transition between what it
|
|
180
|
+
// displays based on the relationship between the selected block
|
|
181
|
+
// and its parent, and only enable it if the parent is controlling
|
|
182
|
+
// its children blocks.
|
|
183
|
+
const blockInspectorAnimationSettings = useBlockInspectorAnimationSettings(
|
|
184
|
+
blockType,
|
|
185
|
+
selectedBlockClientId
|
|
189
186
|
);
|
|
190
187
|
|
|
191
188
|
if ( count > 1 ) {
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress dependencies
|
|
3
|
+
*/
|
|
4
|
+
import { useSelect } from '@wordpress/data';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Internal dependencies
|
|
8
|
+
*/
|
|
9
|
+
import { store as blockEditorStore } from '../../store';
|
|
10
|
+
|
|
11
|
+
export default function useBlockInspectorAnimationSettings(
|
|
12
|
+
blockType,
|
|
13
|
+
selectedBlockClientId
|
|
14
|
+
) {
|
|
15
|
+
return useSelect(
|
|
16
|
+
( select ) => {
|
|
17
|
+
if ( blockType ) {
|
|
18
|
+
const globalBlockInspectorAnimationSettings =
|
|
19
|
+
select( blockEditorStore ).getSettings()
|
|
20
|
+
.blockInspectorAnimation;
|
|
21
|
+
|
|
22
|
+
// Get the name of the block that will allow it's children to be animated.
|
|
23
|
+
const animationParent =
|
|
24
|
+
globalBlockInspectorAnimationSettings?.animationParent;
|
|
25
|
+
|
|
26
|
+
// Determine whether the animationParent block is a parent of the selected block.
|
|
27
|
+
const { getSelectedBlockClientId, getBlockParentsByBlockName } =
|
|
28
|
+
select( blockEditorStore );
|
|
29
|
+
const _selectedBlockClientId = getSelectedBlockClientId();
|
|
30
|
+
const animationParentBlockClientId = getBlockParentsByBlockName(
|
|
31
|
+
_selectedBlockClientId,
|
|
32
|
+
animationParent,
|
|
33
|
+
true
|
|
34
|
+
)[ 0 ];
|
|
35
|
+
|
|
36
|
+
// If the selected block is not a child of the animationParent block,
|
|
37
|
+
// and not an animationParent block itself, don't animate.
|
|
38
|
+
if (
|
|
39
|
+
! animationParentBlockClientId &&
|
|
40
|
+
blockType.name !== animationParent
|
|
41
|
+
) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return globalBlockInspectorAnimationSettings?.[
|
|
46
|
+
blockType.name
|
|
47
|
+
];
|
|
48
|
+
}
|
|
49
|
+
return null;
|
|
50
|
+
},
|
|
51
|
+
[ selectedBlockClientId, blockType ]
|
|
52
|
+
);
|
|
53
|
+
}
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
import { __, _x } from '@wordpress/i18n';
|
|
5
5
|
import { Button, Modal } from '@wordpress/components';
|
|
6
6
|
import { useState, useCallback, useMemo } from '@wordpress/element';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { withDispatch, withSelect } from '@wordpress/data';
|
|
7
|
+
import { createBlock, rawHandler } from '@wordpress/blocks';
|
|
8
|
+
import { useDispatch, useSelect } from '@wordpress/data';
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* Internal dependencies
|
|
@@ -15,38 +14,86 @@ import Warning from '../warning';
|
|
|
15
14
|
import BlockCompare from '../block-compare';
|
|
16
15
|
import { store as blockEditorStore } from '../../store';
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
const blockToBlocks = ( block ) =>
|
|
18
|
+
rawHandler( {
|
|
19
|
+
HTML: block.originalContent,
|
|
20
|
+
} );
|
|
21
|
+
|
|
22
|
+
export default function BlockInvalidWarning( { clientId } ) {
|
|
23
|
+
const { block, canInsertHTMLBlock, canInsertClassicBlock } = useSelect(
|
|
24
|
+
( select ) => {
|
|
25
|
+
const { canInsertBlockType, getBlock, getBlockRootClientId } =
|
|
26
|
+
select( blockEditorStore );
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
const rootClientId = getBlockRootClientId( clientId );
|
|
29
|
+
|
|
30
|
+
return {
|
|
31
|
+
block: getBlock( clientId ),
|
|
32
|
+
canInsertHTMLBlock: canInsertBlockType(
|
|
33
|
+
'core/html',
|
|
34
|
+
rootClientId
|
|
35
|
+
),
|
|
36
|
+
canInsertClassicBlock: canInsertBlockType(
|
|
37
|
+
'core/freeform',
|
|
38
|
+
rootClientId
|
|
39
|
+
),
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
[ clientId ]
|
|
43
|
+
);
|
|
44
|
+
const { replaceBlock } = useDispatch( blockEditorStore );
|
|
45
|
+
|
|
46
|
+
const [ compare, setCompare ] = useState( false );
|
|
29
47
|
const onCompareClose = useCallback( () => setCompare( false ), [] );
|
|
30
48
|
|
|
31
|
-
|
|
32
|
-
|
|
49
|
+
const convert = useMemo(
|
|
50
|
+
() => ( {
|
|
51
|
+
toClassic() {
|
|
52
|
+
const classicBlock = createBlock( 'core/freeform', {
|
|
53
|
+
content: block.originalContent,
|
|
54
|
+
} );
|
|
55
|
+
return replaceBlock( block.clientId, classicBlock );
|
|
56
|
+
},
|
|
57
|
+
toHTML() {
|
|
58
|
+
const htmlBlock = createBlock( 'core/html', {
|
|
59
|
+
content: block.originalContent,
|
|
60
|
+
} );
|
|
61
|
+
return replaceBlock( block.clientId, htmlBlock );
|
|
62
|
+
},
|
|
63
|
+
toBlocks() {
|
|
64
|
+
const newBlocks = blockToBlocks( block );
|
|
65
|
+
return replaceBlock( block.clientId, newBlocks );
|
|
66
|
+
},
|
|
67
|
+
toRecoveredBlock() {
|
|
68
|
+
const recoveredBlock = createBlock(
|
|
69
|
+
block.name,
|
|
70
|
+
block.attributes,
|
|
71
|
+
block.innerBlocks
|
|
72
|
+
);
|
|
73
|
+
return replaceBlock( block.clientId, recoveredBlock );
|
|
74
|
+
},
|
|
75
|
+
} ),
|
|
76
|
+
[ block, replaceBlock ]
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
const secondaryActions = useMemo(
|
|
33
80
|
() =>
|
|
34
81
|
[
|
|
35
82
|
{
|
|
36
83
|
// translators: Button to fix block content
|
|
37
84
|
title: _x( 'Resolve', 'imperative verb' ),
|
|
38
|
-
onClick:
|
|
85
|
+
onClick: () => setCompare( true ),
|
|
39
86
|
},
|
|
40
|
-
|
|
87
|
+
canInsertHTMLBlock && {
|
|
41
88
|
title: __( 'Convert to HTML' ),
|
|
42
|
-
onClick:
|
|
89
|
+
onClick: convert.toHTML,
|
|
43
90
|
},
|
|
44
|
-
{
|
|
91
|
+
canInsertClassicBlock && {
|
|
45
92
|
title: __( 'Convert to Classic Block' ),
|
|
46
|
-
onClick:
|
|
93
|
+
onClick: convert.toClassic,
|
|
47
94
|
},
|
|
48
95
|
].filter( Boolean ),
|
|
49
|
-
[
|
|
96
|
+
[ canInsertHTMLBlock, canInsertClassicBlock, convert ]
|
|
50
97
|
);
|
|
51
98
|
|
|
52
99
|
return (
|
|
@@ -55,13 +102,13 @@ export function BlockInvalidWarning( {
|
|
|
55
102
|
actions={ [
|
|
56
103
|
<Button
|
|
57
104
|
key="recover"
|
|
58
|
-
onClick={
|
|
105
|
+
onClick={ convert.toRecoveredBlock }
|
|
59
106
|
variant="primary"
|
|
60
107
|
>
|
|
61
108
|
{ __( 'Attempt Block Recovery' ) }
|
|
62
109
|
</Button>,
|
|
63
110
|
] }
|
|
64
|
-
secondaryActions={
|
|
111
|
+
secondaryActions={ secondaryActions }
|
|
65
112
|
>
|
|
66
113
|
{ __( 'This block contains unexpected or invalid content.' ) }
|
|
67
114
|
</Warning>
|
|
@@ -76,8 +123,8 @@ export function BlockInvalidWarning( {
|
|
|
76
123
|
>
|
|
77
124
|
<BlockCompare
|
|
78
125
|
block={ block }
|
|
79
|
-
onKeep={
|
|
80
|
-
onConvert={
|
|
126
|
+
onKeep={ convert.toHTML }
|
|
127
|
+
onConvert={ convert.toBlocks }
|
|
81
128
|
convertor={ blockToBlocks }
|
|
82
129
|
convertButtonText={ __( 'Convert to Blocks' ) }
|
|
83
130
|
/>
|
|
@@ -86,42 +133,3 @@ export function BlockInvalidWarning( {
|
|
|
86
133
|
</>
|
|
87
134
|
);
|
|
88
135
|
}
|
|
89
|
-
|
|
90
|
-
const blockToClassic = ( block ) =>
|
|
91
|
-
createBlock( 'core/freeform', {
|
|
92
|
-
content: block.originalContent,
|
|
93
|
-
} );
|
|
94
|
-
const blockToHTML = ( block ) =>
|
|
95
|
-
createBlock( 'core/html', {
|
|
96
|
-
content: block.originalContent,
|
|
97
|
-
} );
|
|
98
|
-
const blockToBlocks = ( block ) =>
|
|
99
|
-
rawHandler( {
|
|
100
|
-
HTML: block.originalContent,
|
|
101
|
-
} );
|
|
102
|
-
const recoverBlock = ( { name, attributes, innerBlocks } ) =>
|
|
103
|
-
createBlock( name, attributes, innerBlocks );
|
|
104
|
-
|
|
105
|
-
export default compose( [
|
|
106
|
-
withSelect( ( select, { clientId } ) => ( {
|
|
107
|
-
block: select( blockEditorStore ).getBlock( clientId ),
|
|
108
|
-
} ) ),
|
|
109
|
-
withDispatch( ( dispatch, { block } ) => {
|
|
110
|
-
const { replaceBlock } = dispatch( blockEditorStore );
|
|
111
|
-
|
|
112
|
-
return {
|
|
113
|
-
convertToClassic() {
|
|
114
|
-
replaceBlock( block.clientId, blockToClassic( block ) );
|
|
115
|
-
},
|
|
116
|
-
convertToHTML() {
|
|
117
|
-
replaceBlock( block.clientId, blockToHTML( block ) );
|
|
118
|
-
},
|
|
119
|
-
convertToBlocks() {
|
|
120
|
-
replaceBlock( block.clientId, blockToBlocks( block ) );
|
|
121
|
-
},
|
|
122
|
-
attemptBlockRecovery() {
|
|
123
|
-
replaceBlock( block.clientId, recoverBlock( block ) );
|
|
124
|
-
},
|
|
125
|
-
};
|
|
126
|
-
} ),
|
|
127
|
-
] )( BlockInvalidWarning );
|
|
@@ -187,6 +187,7 @@ export default function BlockLockModal( { clientId, onClose } ) {
|
|
|
187
187
|
</ul>
|
|
188
188
|
{ hasTemplateLock && (
|
|
189
189
|
<ToggleControl
|
|
190
|
+
__nextHasNoMarginBottom
|
|
190
191
|
className="block-editor-block-lock-modal__template-lock"
|
|
191
192
|
label={ __( 'Apply to all blocks inside' ) }
|
|
192
193
|
checked={ applyTemplateLock }
|
|
@@ -18,11 +18,6 @@
|
|
|
18
18
|
.components-checkbox-control__label {
|
|
19
19
|
font-weight: 600;
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
.components-base-control__field {
|
|
23
|
-
align-items: center;
|
|
24
|
-
display: flex;
|
|
25
|
-
}
|
|
26
21
|
}
|
|
27
22
|
.block-editor-block-lock-modal__checklist-item {
|
|
28
23
|
display: flex;
|
|
@@ -48,10 +43,6 @@
|
|
|
48
43
|
border-top: $border-width solid $gray-300;
|
|
49
44
|
margin-top: $grid-unit-20;
|
|
50
45
|
padding: $grid-unit-15 0;
|
|
51
|
-
|
|
52
|
-
.components-base-control__field {
|
|
53
|
-
margin: 0;
|
|
54
|
-
}
|
|
55
46
|
}
|
|
56
47
|
|
|
57
48
|
.block-editor-block-lock-modal__actions {
|
package/src/components/block-mobile-toolbar/test/__snapshots__/block-actions-menu.native.js.snap
CHANGED
|
@@ -6,25 +6,25 @@ exports[`Block Actions Menu block options copies and pastes a block 1`] = `
|
|
|
6
6
|
<!-- /wp:paragraph -->
|
|
7
7
|
|
|
8
8
|
<!-- wp:heading -->
|
|
9
|
-
<h2 class
|
|
9
|
+
<h2 class="wp-block-heading"></h2>
|
|
10
10
|
<!-- /wp:heading -->
|
|
11
11
|
|
|
12
12
|
<!-- wp:spacer -->
|
|
13
|
-
<div style
|
|
13
|
+
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
|
|
14
14
|
<!-- /wp:spacer -->
|
|
15
15
|
|
|
16
16
|
<!-- wp:heading -->
|
|
17
|
-
<h2 class
|
|
17
|
+
<h2 class="wp-block-heading"></h2>
|
|
18
18
|
<!-- /wp:heading -->"
|
|
19
19
|
`;
|
|
20
20
|
|
|
21
21
|
exports[`Block Actions Menu block options cuts and pastes a block 1`] = `
|
|
22
22
|
"<!-- wp:spacer -->
|
|
23
|
-
<div style
|
|
23
|
+
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
|
|
24
24
|
<!-- /wp:spacer -->
|
|
25
25
|
|
|
26
26
|
<!-- wp:heading -->
|
|
27
|
-
<h2 class
|
|
27
|
+
<h2 class="wp-block-heading"></h2>
|
|
28
28
|
<!-- /wp:heading -->
|
|
29
29
|
|
|
30
30
|
<!-- wp:paragraph -->
|
|
@@ -38,15 +38,15 @@ exports[`Block Actions Menu block options does not replace a non empty Paragraph
|
|
|
38
38
|
<!-- /wp:paragraph -->
|
|
39
39
|
|
|
40
40
|
<!-- wp:heading -->
|
|
41
|
-
<h2 class
|
|
41
|
+
<h2 class="wp-block-heading"></h2>
|
|
42
42
|
<!-- /wp:heading -->
|
|
43
43
|
|
|
44
44
|
<!-- wp:spacer -->
|
|
45
|
-
<div style
|
|
45
|
+
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
|
|
46
46
|
<!-- /wp:spacer -->
|
|
47
47
|
|
|
48
48
|
<!-- wp:heading -->
|
|
49
|
-
<h2 class
|
|
49
|
+
<h2 class="wp-block-heading"></h2>
|
|
50
50
|
<!-- /wp:heading -->"
|
|
51
51
|
`;
|
|
52
52
|
|
|
@@ -56,29 +56,29 @@ exports[`Block Actions Menu block options duplicates a block 1`] = `
|
|
|
56
56
|
<!-- /wp:paragraph -->
|
|
57
57
|
|
|
58
58
|
<!-- wp:spacer -->
|
|
59
|
-
<div style
|
|
59
|
+
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
|
|
60
60
|
<!-- /wp:spacer -->
|
|
61
61
|
|
|
62
62
|
<!-- wp:spacer -->
|
|
63
|
-
<div style
|
|
63
|
+
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
|
|
64
64
|
<!-- /wp:spacer -->
|
|
65
65
|
|
|
66
66
|
<!-- wp:heading -->
|
|
67
|
-
<h2 class
|
|
67
|
+
<h2 class="wp-block-heading"></h2>
|
|
68
68
|
<!-- /wp:heading -->"
|
|
69
69
|
`;
|
|
70
70
|
|
|
71
71
|
exports[`Block Actions Menu block options transforms a Paragraph block into a Pullquote block 1`] = `
|
|
72
72
|
"<!-- wp:pullquote -->
|
|
73
|
-
<figure class
|
|
73
|
+
<figure class="wp-block-pullquote"><blockquote><p>Hello!</p></blockquote></figure>
|
|
74
74
|
<!-- /wp:pullquote -->
|
|
75
75
|
|
|
76
76
|
<!-- wp:spacer -->
|
|
77
|
-
<div style
|
|
77
|
+
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
|
|
78
78
|
<!-- /wp:spacer -->
|
|
79
79
|
|
|
80
80
|
<!-- wp:heading -->
|
|
81
|
-
<h2 class
|
|
81
|
+
<h2 class="wp-block-heading"></h2>
|
|
82
82
|
<!-- /wp:heading -->"
|
|
83
83
|
`;
|
|
84
84
|
|
|
@@ -88,11 +88,11 @@ exports[`Block Actions Menu moving blocks disables the Move Down button for the
|
|
|
88
88
|
<!-- /wp:paragraph -->
|
|
89
89
|
|
|
90
90
|
<!-- wp:spacer -->
|
|
91
|
-
<div style
|
|
91
|
+
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
|
|
92
92
|
<!-- /wp:spacer -->
|
|
93
93
|
|
|
94
94
|
<!-- wp:heading -->
|
|
95
|
-
<h2 class
|
|
95
|
+
<h2 class="wp-block-heading"></h2>
|
|
96
96
|
<!-- /wp:heading -->"
|
|
97
97
|
`;
|
|
98
98
|
|
|
@@ -102,17 +102,17 @@ exports[`Block Actions Menu moving blocks disables the Move Up button for the fi
|
|
|
102
102
|
<!-- /wp:paragraph -->
|
|
103
103
|
|
|
104
104
|
<!-- wp:spacer -->
|
|
105
|
-
<div style
|
|
105
|
+
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
|
|
106
106
|
<!-- /wp:spacer -->
|
|
107
107
|
|
|
108
108
|
<!-- wp:heading -->
|
|
109
|
-
<h2 class
|
|
109
|
+
<h2 class="wp-block-heading"></h2>
|
|
110
110
|
<!-- /wp:heading -->"
|
|
111
111
|
`;
|
|
112
112
|
|
|
113
113
|
exports[`Block Actions Menu moving blocks moves blocks up and down 1`] = `
|
|
114
114
|
"<!-- wp:heading -->
|
|
115
|
-
<h2 class
|
|
115
|
+
<h2 class="wp-block-heading"></h2>
|
|
116
116
|
<!-- /wp:heading -->
|
|
117
117
|
|
|
118
118
|
<!-- wp:paragraph -->
|
|
@@ -120,6 +120,6 @@ exports[`Block Actions Menu moving blocks moves blocks up and down 1`] = `
|
|
|
120
120
|
<!-- /wp:paragraph -->
|
|
121
121
|
|
|
122
122
|
<!-- wp:spacer -->
|
|
123
|
-
<div style
|
|
123
|
+
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
|
|
124
124
|
<!-- /wp:spacer -->"
|
|
125
125
|
`;
|