@wordpress/block-editor 15.16.1-next.v.202604091042.0 → 15.18.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/autocomplete/index.cjs.map +3 -3
- package/build/components/background-image-control/index.cjs +2 -1
- package/build/components/background-image-control/index.cjs.map +2 -2
- package/build/components/block-allowed-blocks/modal.cjs.map +2 -2
- package/build/components/block-bindings/attribute-control.cjs.map +3 -3
- package/build/components/block-card/index.cjs +2 -2
- package/build/components/block-card/index.cjs.map +3 -3
- package/build/components/block-mover/button.cjs +9 -3
- package/build/components/block-mover/button.cjs.map +2 -2
- package/build/components/block-pattern-setup/index.cjs +3 -2
- package/build/components/block-pattern-setup/index.cjs.map +2 -2
- package/build/components/block-patterns-list/index.cjs +2 -1
- package/build/components/block-patterns-list/index.cjs.map +2 -2
- package/build/components/block-patterns-paging/index.cjs.map +3 -3
- package/build/components/block-settings-menu/block-settings-dropdown.cjs +2 -2
- package/build/components/block-settings-menu/block-settings-dropdown.cjs.map +3 -3
- package/build/components/block-settings-menu/index.cjs +2 -2
- package/build/components/block-settings-menu/index.cjs.map +3 -3
- package/build/components/block-styles/menu-items.cjs.map +3 -3
- package/build/components/block-switcher/index.cjs.map +3 -3
- package/build/components/block-switcher/pattern-transformations-menu.cjs +2 -1
- package/build/components/block-switcher/pattern-transformations-menu.cjs.map +2 -2
- package/build/components/block-toolbar/pattern-overrides-dropdown.cjs.map +3 -3
- package/build/components/block-variation-transforms/index.cjs +2 -1
- package/build/components/block-variation-transforms/index.cjs.map +2 -2
- package/build/components/block-visibility/viewport-visibility-info.cjs +4 -4
- package/build/components/block-visibility/viewport-visibility-info.cjs.map +3 -3
- package/build/components/collab/{block-comment-icon-slot.cjs → note-icon-slot.cjs} +8 -8
- package/build/components/collab/note-icon-slot.cjs.map +7 -0
- package/build/components/collab/{block-comment-icon-toolbar-slot.cjs → note-icon-toolbar-slot.cjs} +9 -9
- package/build/components/collab/note-icon-toolbar-slot.cjs.map +7 -0
- package/build/components/copy-handler/index.cjs.map +2 -2
- package/build/components/date-format-picker/index.cjs +2 -1
- package/build/components/date-format-picker/index.cjs.map +2 -2
- package/build/components/global-styles/color-panel.cjs.map +2 -2
- package/build/components/global-styles/dimensions-panel.cjs +87 -62
- package/build/components/global-styles/dimensions-panel.cjs.map +2 -2
- package/build/components/global-styles/filters-panel.cjs.map +2 -2
- package/build/components/global-styles/hooks.cjs +9 -7
- package/build/components/global-styles/hooks.cjs.map +2 -2
- package/build/components/grid/grid-item-movers.cjs +2 -1
- package/build/components/grid/grid-item-movers.cjs.map +2 -2
- package/build/components/inserter/block-patterns-tab/pattern-category-previews.cjs.map +2 -2
- package/build/components/inserter/menu.cjs +2 -1
- package/build/components/inserter/menu.cjs.map +2 -2
- package/build/components/inserter/search-results.cjs +3 -3
- package/build/components/inserter/search-results.cjs.map +2 -2
- package/build/components/inspector-popover-header/index.cjs.map +3 -3
- package/build/components/link-control/link-preview.cjs +5 -3
- package/build/components/link-control/link-preview.cjs.map +2 -2
- package/build/components/link-control/settings.cjs +2 -1
- package/build/components/link-control/settings.cjs.map +2 -2
- package/build/components/link-picker/link-picker.cjs +3 -2
- package/build/components/link-picker/link-picker.cjs.map +2 -2
- package/build/components/link-picker/link-preview.cjs +2 -2
- package/build/components/link-picker/link-preview.cjs.map +2 -2
- package/build/components/list-view/block-select-button.cjs +2 -2
- package/build/components/list-view/block-select-button.cjs.map +2 -2
- package/build/components/list-view/index.cjs +2 -1
- package/build/components/list-view/index.cjs.map +2 -2
- package/build/components/preset-input-control/index.cjs +7 -4
- package/build/components/preset-input-control/index.cjs.map +2 -2
- package/build/components/provider/index.cjs +80 -7
- package/build/components/provider/index.cjs.map +2 -2
- package/build/components/responsive-block-control/label.cjs +9 -2
- package/build/components/responsive-block-control/label.cjs.map +2 -2
- package/build/components/rich-text/event-listeners/index.cjs.map +2 -2
- package/build/components/rich-text/event-listeners/paste-handler.cjs +12 -5
- package/build/components/rich-text/event-listeners/paste-handler.cjs.map +3 -3
- package/build/components/spacing-sizes-control/utils.cjs +1 -1
- package/build/components/spacing-sizes-control/utils.cjs.map +2 -2
- package/build/components/url-popover/image-url-input-ui.cjs +1 -1
- package/build/components/url-popover/image-url-input-ui.cjs.map +2 -2
- package/build/components/writing-flow/use-arrow-nav.cjs +1 -1
- package/build/components/writing-flow/use-arrow-nav.cjs.map +2 -2
- package/build/components/writing-flow/use-selection-observer.cjs +23 -1
- package/build/components/writing-flow/use-selection-observer.cjs.map +2 -2
- package/build/hooks/block-bindings.cjs.map +3 -3
- package/build/hooks/block-fields/link/index.cjs +1 -1
- package/build/hooks/block-fields/link/index.cjs.map +1 -1
- package/build/hooks/custom-css.cjs +21 -0
- package/build/hooks/custom-css.cjs.map +3 -3
- package/build/hooks/dimensions.cjs +5 -1
- package/build/hooks/dimensions.cjs.map +2 -2
- package/build/hooks/grid-visualizer.cjs +1 -1
- package/build/hooks/grid-visualizer.cjs.map +1 -1
- package/build/hooks/layout-child.cjs +1 -1
- package/build/hooks/layout-child.cjs.map +1 -1
- package/build/hooks/style.cjs +54 -52
- package/build/hooks/style.cjs.map +2 -2
- package/build/hooks/utils.cjs +4 -0
- package/build/hooks/utils.cjs.map +2 -2
- package/build/layouts/flex.cjs +5 -8
- package/build/layouts/flex.cjs.map +3 -3
- package/build/layouts/grid.cjs +5 -5
- package/build/layouts/grid.cjs.map +2 -2
- package/build/private-apis.cjs +5 -4
- package/build/private-apis.cjs.map +3 -3
- package/build/store/private-keys.cjs +3 -0
- package/build/store/private-keys.cjs.map +2 -2
- package/build/utils/dom.cjs +3 -1
- package/build/utils/dom.cjs.map +2 -2
- package/build-module/components/autocomplete/index.mjs +2 -2
- package/build-module/components/autocomplete/index.mjs.map +2 -2
- package/build-module/components/background-image-control/index.mjs +2 -2
- package/build-module/components/background-image-control/index.mjs.map +2 -2
- package/build-module/components/block-allowed-blocks/modal.mjs +2 -2
- package/build-module/components/block-allowed-blocks/modal.mjs.map +2 -2
- package/build-module/components/block-bindings/attribute-control.mjs +3 -3
- package/build-module/components/block-bindings/attribute-control.mjs.map +2 -2
- package/build-module/components/block-card/index.mjs +4 -4
- package/build-module/components/block-card/index.mjs.map +2 -2
- package/build-module/components/block-mover/button.mjs +11 -5
- package/build-module/components/block-mover/button.mjs.map +2 -2
- package/build-module/components/block-pattern-setup/index.mjs +2 -1
- package/build-module/components/block-pattern-setup/index.mjs.map +2 -2
- package/build-module/components/block-patterns-list/index.mjs +1 -1
- package/build-module/components/block-patterns-list/index.mjs.map +2 -2
- package/build-module/components/block-patterns-paging/index.mjs +3 -3
- package/build-module/components/block-patterns-paging/index.mjs.map +2 -2
- package/build-module/components/block-settings-menu/block-settings-dropdown.mjs +2 -2
- package/build-module/components/block-settings-menu/block-settings-dropdown.mjs.map +2 -2
- package/build-module/components/block-settings-menu/index.mjs +2 -2
- package/build-module/components/block-settings-menu/index.mjs.map +2 -2
- package/build-module/components/block-styles/menu-items.mjs +2 -2
- package/build-module/components/block-styles/menu-items.mjs.map +2 -2
- package/build-module/components/block-switcher/index.mjs +2 -2
- package/build-module/components/block-switcher/index.mjs.map +2 -2
- package/build-module/components/block-switcher/pattern-transformations-menu.mjs +2 -7
- package/build-module/components/block-switcher/pattern-transformations-menu.mjs.map +2 -2
- package/build-module/components/block-toolbar/pattern-overrides-dropdown.mjs +2 -2
- package/build-module/components/block-toolbar/pattern-overrides-dropdown.mjs.map +2 -2
- package/build-module/components/block-variation-transforms/index.mjs +2 -2
- package/build-module/components/block-variation-transforms/index.mjs.map +2 -2
- package/build-module/components/block-visibility/viewport-visibility-info.mjs +6 -6
- package/build-module/components/block-visibility/viewport-visibility-info.mjs.map +2 -2
- package/build-module/components/collab/note-icon-slot.mjs +8 -0
- package/build-module/components/collab/note-icon-slot.mjs.map +7 -0
- package/build-module/components/collab/note-icon-toolbar-slot.mjs +10 -0
- package/build-module/components/collab/note-icon-toolbar-slot.mjs.map +7 -0
- package/build-module/components/copy-handler/index.mjs.map +2 -2
- package/build-module/components/date-format-picker/index.mjs +2 -2
- package/build-module/components/date-format-picker/index.mjs.map +2 -2
- package/build-module/components/global-styles/color-panel.mjs.map +2 -2
- package/build-module/components/global-styles/dimensions-panel.mjs +87 -62
- package/build-module/components/global-styles/dimensions-panel.mjs.map +2 -2
- package/build-module/components/global-styles/filters-panel.mjs.map +2 -2
- package/build-module/components/global-styles/hooks.mjs +9 -7
- package/build-module/components/global-styles/hooks.mjs.map +2 -2
- package/build-module/components/grid/grid-item-movers.mjs +2 -5
- package/build-module/components/grid/grid-item-movers.mjs.map +2 -2
- package/build-module/components/inserter/block-patterns-tab/pattern-category-previews.mjs +3 -3
- package/build-module/components/inserter/block-patterns-tab/pattern-category-previews.mjs.map +1 -1
- package/build-module/components/inserter/menu.mjs +3 -2
- package/build-module/components/inserter/menu.mjs.map +2 -2
- package/build-module/components/inserter/search-results.mjs +1 -1
- package/build-module/components/inserter/search-results.mjs.map +1 -1
- package/build-module/components/inspector-popover-header/index.mjs +2 -2
- package/build-module/components/inspector-popover-header/index.mjs.map +2 -2
- package/build-module/components/link-control/link-preview.mjs +5 -3
- package/build-module/components/link-control/link-preview.mjs.map +2 -2
- package/build-module/components/link-control/settings.mjs +3 -2
- package/build-module/components/link-control/settings.mjs.map +2 -2
- package/build-module/components/link-picker/link-picker.mjs +1 -1
- package/build-module/components/link-picker/link-picker.mjs.map +2 -2
- package/build-module/components/link-picker/link-preview.mjs +2 -2
- package/build-module/components/link-picker/link-preview.mjs.map +2 -2
- package/build-module/components/list-view/block-select-button.mjs +2 -2
- package/build-module/components/list-view/block-select-button.mjs.map +2 -2
- package/build-module/components/list-view/index.mjs +2 -4
- package/build-module/components/list-view/index.mjs.map +2 -2
- package/build-module/components/preset-input-control/index.mjs +7 -4
- package/build-module/components/preset-input-control/index.mjs.map +2 -2
- package/build-module/components/provider/index.mjs +82 -8
- package/build-module/components/provider/index.mjs.map +2 -2
- package/build-module/components/responsive-block-control/label.mjs +9 -2
- package/build-module/components/responsive-block-control/label.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/index.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/paste-handler.mjs +12 -5
- package/build-module/components/rich-text/event-listeners/paste-handler.mjs.map +2 -2
- package/build-module/components/spacing-sizes-control/utils.mjs +1 -1
- package/build-module/components/spacing-sizes-control/utils.mjs.map +2 -2
- package/build-module/components/url-popover/image-url-input-ui.mjs +1 -1
- package/build-module/components/url-popover/image-url-input-ui.mjs.map +2 -2
- package/build-module/components/writing-flow/use-arrow-nav.mjs +1 -1
- package/build-module/components/writing-flow/use-arrow-nav.mjs.map +2 -2
- package/build-module/components/writing-flow/use-selection-observer.mjs +23 -1
- package/build-module/components/writing-flow/use-selection-observer.mjs.map +2 -2
- package/build-module/hooks/block-bindings.mjs +2 -2
- package/build-module/hooks/block-bindings.mjs.map +2 -2
- package/build-module/hooks/block-fields/link/index.mjs +1 -1
- package/build-module/hooks/block-fields/link/index.mjs.map +1 -1
- package/build-module/hooks/custom-css.mjs +23 -2
- package/build-module/hooks/custom-css.mjs.map +2 -2
- package/build-module/hooks/dimensions.mjs +5 -1
- package/build-module/hooks/dimensions.mjs.map +2 -2
- package/build-module/hooks/grid-visualizer.mjs +1 -1
- package/build-module/hooks/grid-visualizer.mjs.map +1 -1
- package/build-module/hooks/layout-child.mjs +1 -1
- package/build-module/hooks/layout-child.mjs.map +1 -1
- package/build-module/hooks/style.mjs +54 -52
- package/build-module/hooks/style.mjs.map +2 -2
- package/build-module/hooks/utils.mjs +4 -0
- package/build-module/hooks/utils.mjs.map +2 -2
- package/build-module/layouts/flex.mjs +4 -7
- package/build-module/layouts/flex.mjs.map +2 -2
- package/build-module/layouts/grid.mjs +4 -4
- package/build-module/layouts/grid.mjs.map +2 -2
- package/build-module/private-apis.mjs +7 -5
- package/build-module/private-apis.mjs.map +2 -2
- package/build-module/store/private-keys.mjs +2 -0
- package/build-module/store/private-keys.mjs.map +2 -2
- package/build-module/utils/dom.mjs +2 -1
- package/build-module/utils/dom.mjs.map +2 -2
- package/build-style/content-rtl.css +1 -4
- package/build-style/content.css +1 -4
- package/build-style/style-rtl.css +12 -12
- package/build-style/style.css +12 -12
- package/build-types/utils/dom.d.ts +7 -0
- package/build-types/utils/dom.d.ts.map +1 -1
- package/package.json +39 -38
- package/src/components/autocomplete/index.js +4 -2
- package/src/components/background-image-control/index.js +2 -2
- package/src/components/background-image-control/style.scss +1 -1
- package/src/components/block-allowed-blocks/modal.js +3 -3
- package/src/components/block-bindings/attribute-control.js +4 -4
- package/src/components/block-card/index.js +5 -5
- package/src/components/block-list/content.scss +0 -4
- package/src/components/block-mover/button.js +17 -7
- package/src/components/block-pattern-setup/index.js +2 -1
- package/src/components/block-pattern-setup/style.scss +2 -2
- package/src/components/block-patterns-list/index.js +1 -1
- package/src/components/block-patterns-list/style.scss +1 -1
- package/src/components/block-patterns-paging/index.js +5 -6
- package/src/components/block-settings-menu/block-settings-dropdown.js +2 -2
- package/src/components/block-settings-menu/index.js +2 -2
- package/src/components/block-styles/menu-items.js +3 -3
- package/src/components/block-switcher/index.js +3 -3
- package/src/components/block-switcher/pattern-transformations-menu.js +2 -7
- package/src/components/block-switcher/style.scss +2 -2
- package/src/components/block-toolbar/pattern-overrides-dropdown.js +2 -2
- package/src/components/block-variation-transforms/index.js +2 -2
- package/src/components/block-visibility/viewport-visibility-info.js +7 -7
- package/src/components/collab/note-icon-slot.js +8 -0
- package/src/components/collab/note-icon-toolbar-slot.js +10 -0
- package/src/components/copy-handler/index.js +1 -0
- package/src/components/date-format-picker/index.js +4 -2
- package/src/components/global-styles/color-panel.js +0 -2
- package/src/components/global-styles/dimensions-panel.js +100 -73
- package/src/components/global-styles/filters-panel.js +0 -2
- package/src/components/global-styles/hooks.js +9 -7
- package/src/components/global-styles/style.scss +1 -1
- package/src/components/grid/grid-item-movers.js +2 -5
- package/src/components/inserter/block-patterns-tab/pattern-category-previews.js +5 -5
- package/src/components/inserter/menu.js +3 -2
- package/src/components/inserter/search-results.js +1 -1
- package/src/components/inserter/style.scss +2 -2
- package/src/components/inserter-list-item/style.scss +1 -1
- package/src/components/inspector-popover-header/index.js +2 -2
- package/src/components/link-control/link-preview.js +6 -4
- package/src/components/link-control/settings.js +3 -2
- package/src/components/link-picker/link-picker.js +1 -1
- package/src/components/link-picker/link-preview.js +3 -3
- package/src/components/list-view/block-select-button.js +3 -3
- package/src/components/list-view/index.js +2 -4
- package/src/components/list-view/style.scss +1 -1
- package/src/components/media-placeholder/content.scss +1 -1
- package/src/components/preset-input-control/index.js +10 -4
- package/src/components/preset-input-control/test/index.js +70 -0
- package/src/components/provider/index.js +149 -8
- package/src/components/responsive-block-control/label.js +5 -2
- package/src/components/rich-text/event-listeners/index.js +1 -0
- package/src/components/rich-text/event-listeners/paste-handler.js +18 -4
- package/src/components/spacing-sizes-control/utils.js +1 -1
- package/src/components/url-input/style.scss +1 -1
- package/src/components/url-popover/image-url-input-ui.js +1 -1
- package/src/components/writing-flow/use-arrow-nav.js +9 -2
- package/src/components/writing-flow/use-selection-observer.js +39 -1
- package/src/hooks/block-bindings.js +3 -3
- package/src/hooks/block-fields/link/index.js +1 -1
- package/src/hooks/custom-css.js +30 -9
- package/src/hooks/dimensions.js +6 -1
- package/src/hooks/grid-visualizer.js +1 -1
- package/src/hooks/layout-child.js +1 -1
- package/src/hooks/style.js +75 -61
- package/src/hooks/test/dimensions.js +16 -0
- package/src/hooks/test/style.js +2 -0
- package/src/hooks/utils.js +4 -0
- package/src/layouts/flex.js +7 -9
- package/src/layouts/grid.js +7 -4
- package/src/private-apis.js +6 -4
- package/src/store/private-keys.js +1 -0
- package/src/utils/dom.js +3 -3
- package/src/utils/test/dom.js +47 -4
- package/build/components/collab/block-comment-icon-slot.cjs.map +0 -7
- package/build/components/collab/block-comment-icon-toolbar-slot.cjs.map +0 -7
- package/build-module/components/collab/block-comment-icon-slot.mjs +0 -8
- package/build-module/components/collab/block-comment-icon-slot.mjs.map +0 -7
- package/build-module/components/collab/block-comment-icon-toolbar-slot.mjs +0 -10
- package/build-module/components/collab/block-comment-icon-toolbar-slot.mjs.map +0 -7
- package/src/components/collab/block-comment-icon-slot.js +0 -8
- package/src/components/collab/block-comment-icon-toolbar-slot.js +0 -10
|
@@ -236,9 +236,6 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
236
236
|
.block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.is-selected, .block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.has-child-selected {
|
|
237
237
|
z-index: 20;
|
|
238
238
|
}
|
|
239
|
-
.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel * {
|
|
240
|
-
z-index: 1;
|
|
241
|
-
}
|
|
242
239
|
.block-editor-block-list__layout .block-editor-block-list__block {
|
|
243
240
|
/**
|
|
244
241
|
* Notices
|
|
@@ -835,7 +832,7 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
835
832
|
min-height: 0;
|
|
836
833
|
}
|
|
837
834
|
.block-editor-media-placeholder.is-appender:hover {
|
|
838
|
-
cursor: pointer;
|
|
835
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
839
836
|
box-shadow: 0 0 0 1px var(--wp-admin-theme-color);
|
|
840
837
|
}
|
|
841
838
|
|
package/build-style/content.css
CHANGED
|
@@ -236,9 +236,6 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
236
236
|
.block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.is-selected, .block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.has-child-selected {
|
|
237
237
|
z-index: 20;
|
|
238
238
|
}
|
|
239
|
-
.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel * {
|
|
240
|
-
z-index: 1;
|
|
241
|
-
}
|
|
242
239
|
.block-editor-block-list__layout .block-editor-block-list__block {
|
|
243
240
|
/**
|
|
244
241
|
* Notices
|
|
@@ -836,7 +833,7 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
836
833
|
min-height: 0;
|
|
837
834
|
}
|
|
838
835
|
.block-editor-media-placeholder.is-appender:hover {
|
|
839
|
-
cursor: pointer;
|
|
836
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
840
837
|
box-shadow: 0 0 0 1px var(--wp-admin-theme-color);
|
|
841
838
|
}
|
|
842
839
|
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
.block-editor-global-styles-background-panel__dropdown-toggle {
|
|
176
|
-
cursor: pointer;
|
|
176
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
177
177
|
background: transparent;
|
|
178
178
|
border: none;
|
|
179
179
|
height: 100%;
|
|
@@ -980,7 +980,7 @@ iframe[name=editor-canvas] {
|
|
|
980
980
|
}
|
|
981
981
|
|
|
982
982
|
.block-editor-block-patterns-list__list-item {
|
|
983
|
-
cursor: pointer;
|
|
983
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
984
984
|
margin-bottom: 16px;
|
|
985
985
|
position: relative;
|
|
986
986
|
}
|
|
@@ -1230,7 +1230,7 @@ iframe[name=editor-canvas] {
|
|
|
1230
1230
|
margin-top: 16px;
|
|
1231
1231
|
}
|
|
1232
1232
|
.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-preview__container {
|
|
1233
|
-
cursor: pointer;
|
|
1233
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
1234
1234
|
}
|
|
1235
1235
|
.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item {
|
|
1236
1236
|
height: 100%;
|
|
@@ -1256,7 +1256,7 @@ iframe[name=editor-canvas] {
|
|
|
1256
1256
|
padding: 4px;
|
|
1257
1257
|
font-size: 12px;
|
|
1258
1258
|
text-align: center;
|
|
1259
|
-
cursor: pointer;
|
|
1259
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
1260
1260
|
}
|
|
1261
1261
|
|
|
1262
1262
|
.block-editor-block-switcher__no-transforms {
|
|
@@ -1306,7 +1306,7 @@ iframe[name=editor-canvas] {
|
|
|
1306
1306
|
}
|
|
1307
1307
|
.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container,
|
|
1308
1308
|
.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container div[role=button] {
|
|
1309
|
-
cursor: pointer;
|
|
1309
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
1310
1310
|
}
|
|
1311
1311
|
.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item {
|
|
1312
1312
|
scroll-margin: 5px 0;
|
|
@@ -1330,7 +1330,7 @@ iframe[name=editor-canvas] {
|
|
|
1330
1330
|
padding-top: 8px;
|
|
1331
1331
|
font-size: 12px;
|
|
1332
1332
|
text-align: center;
|
|
1333
|
-
cursor: pointer;
|
|
1333
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
1334
1334
|
}
|
|
1335
1335
|
.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__container {
|
|
1336
1336
|
min-height: 100px;
|
|
@@ -1685,7 +1685,7 @@ iframe[name=editor-canvas] {
|
|
|
1685
1685
|
color: #2f2f2f;
|
|
1686
1686
|
border: #e0e0e0 1px solid;
|
|
1687
1687
|
border-radius: 2px;
|
|
1688
|
-
cursor: pointer;
|
|
1688
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
1689
1689
|
display: inline-flex;
|
|
1690
1690
|
align-items: center;
|
|
1691
1691
|
padding: 0;
|
|
@@ -1999,7 +1999,7 @@ iframe[name=editor-canvas] {
|
|
|
1999
1999
|
padding: 8px;
|
|
2000
2000
|
align-items: stretch;
|
|
2001
2001
|
justify-content: center;
|
|
2002
|
-
cursor: pointer;
|
|
2002
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
2003
2003
|
background: transparent;
|
|
2004
2004
|
word-break: break-word;
|
|
2005
2005
|
}
|
|
@@ -2855,7 +2855,7 @@ iframe[name=editor-canvas] {
|
|
|
2855
2855
|
.block-editor-list-view__expander {
|
|
2856
2856
|
height: 24px;
|
|
2857
2857
|
width: 24px;
|
|
2858
|
-
cursor: pointer;
|
|
2858
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
2859
2859
|
}
|
|
2860
2860
|
|
|
2861
2861
|
.block-editor-list-view-leaf[aria-level] .block-editor-list-view__expander {
|
|
@@ -3265,7 +3265,7 @@ iframe[name=editor-canvas] {
|
|
|
3265
3265
|
color: #757575;
|
|
3266
3266
|
display: block;
|
|
3267
3267
|
font-size: 13px;
|
|
3268
|
-
cursor: pointer;
|
|
3268
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
3269
3269
|
background: #fff;
|
|
3270
3270
|
width: 100%;
|
|
3271
3271
|
border: none;
|
|
@@ -4006,7 +4006,7 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
4006
4006
|
.block-editor-inserter__toggle.components-button {
|
|
4007
4007
|
display: inline-flex;
|
|
4008
4008
|
align-items: center;
|
|
4009
|
-
cursor: pointer;
|
|
4009
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
4010
4010
|
border: none;
|
|
4011
4011
|
outline: none;
|
|
4012
4012
|
padding: 0;
|
|
@@ -4379,7 +4379,7 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
4379
4379
|
|
|
4380
4380
|
.block-editor-inserter__media-list__list-item {
|
|
4381
4381
|
position: relative;
|
|
4382
|
-
cursor: pointer;
|
|
4382
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
4383
4383
|
margin-bottom: 24px;
|
|
4384
4384
|
}
|
|
4385
4385
|
.block-editor-inserter__media-list__list-item.is-placeholder {
|
package/build-style/style.css
CHANGED
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
.block-editor-global-styles-background-panel__dropdown-toggle {
|
|
176
|
-
cursor: pointer;
|
|
176
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
177
177
|
background: transparent;
|
|
178
178
|
border: none;
|
|
179
179
|
height: 100%;
|
|
@@ -980,7 +980,7 @@ iframe[name=editor-canvas] {
|
|
|
980
980
|
}
|
|
981
981
|
|
|
982
982
|
.block-editor-block-patterns-list__list-item {
|
|
983
|
-
cursor: pointer;
|
|
983
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
984
984
|
margin-bottom: 16px;
|
|
985
985
|
position: relative;
|
|
986
986
|
}
|
|
@@ -1230,7 +1230,7 @@ iframe[name=editor-canvas] {
|
|
|
1230
1230
|
margin-top: 16px;
|
|
1231
1231
|
}
|
|
1232
1232
|
.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-preview__container {
|
|
1233
|
-
cursor: pointer;
|
|
1233
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
1234
1234
|
}
|
|
1235
1235
|
.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item {
|
|
1236
1236
|
height: 100%;
|
|
@@ -1256,7 +1256,7 @@ iframe[name=editor-canvas] {
|
|
|
1256
1256
|
padding: 4px;
|
|
1257
1257
|
font-size: 12px;
|
|
1258
1258
|
text-align: center;
|
|
1259
|
-
cursor: pointer;
|
|
1259
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
1260
1260
|
}
|
|
1261
1261
|
|
|
1262
1262
|
.block-editor-block-switcher__no-transforms {
|
|
@@ -1306,7 +1306,7 @@ iframe[name=editor-canvas] {
|
|
|
1306
1306
|
}
|
|
1307
1307
|
.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container,
|
|
1308
1308
|
.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container div[role=button] {
|
|
1309
|
-
cursor: pointer;
|
|
1309
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
1310
1310
|
}
|
|
1311
1311
|
.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item {
|
|
1312
1312
|
scroll-margin: 5px 0;
|
|
@@ -1330,7 +1330,7 @@ iframe[name=editor-canvas] {
|
|
|
1330
1330
|
padding-top: 8px;
|
|
1331
1331
|
font-size: 12px;
|
|
1332
1332
|
text-align: center;
|
|
1333
|
-
cursor: pointer;
|
|
1333
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
1334
1334
|
}
|
|
1335
1335
|
.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__container {
|
|
1336
1336
|
min-height: 100px;
|
|
@@ -1685,7 +1685,7 @@ iframe[name=editor-canvas] {
|
|
|
1685
1685
|
color: #2f2f2f;
|
|
1686
1686
|
border: #e0e0e0 1px solid;
|
|
1687
1687
|
border-radius: 2px;
|
|
1688
|
-
cursor: pointer;
|
|
1688
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
1689
1689
|
display: inline-flex;
|
|
1690
1690
|
align-items: center;
|
|
1691
1691
|
padding: 0;
|
|
@@ -2000,7 +2000,7 @@ iframe[name=editor-canvas] {
|
|
|
2000
2000
|
padding: 8px;
|
|
2001
2001
|
align-items: stretch;
|
|
2002
2002
|
justify-content: center;
|
|
2003
|
-
cursor: pointer;
|
|
2003
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
2004
2004
|
background: transparent;
|
|
2005
2005
|
word-break: break-word;
|
|
2006
2006
|
}
|
|
@@ -2856,7 +2856,7 @@ iframe[name=editor-canvas] {
|
|
|
2856
2856
|
.block-editor-list-view__expander {
|
|
2857
2857
|
height: 24px;
|
|
2858
2858
|
width: 24px;
|
|
2859
|
-
cursor: pointer;
|
|
2859
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
2860
2860
|
}
|
|
2861
2861
|
|
|
2862
2862
|
.block-editor-list-view-leaf[aria-level] .block-editor-list-view__expander {
|
|
@@ -3267,7 +3267,7 @@ iframe[name=editor-canvas] {
|
|
|
3267
3267
|
color: #757575;
|
|
3268
3268
|
display: block;
|
|
3269
3269
|
font-size: 13px;
|
|
3270
|
-
cursor: pointer;
|
|
3270
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
3271
3271
|
background: #fff;
|
|
3272
3272
|
width: 100%;
|
|
3273
3273
|
border: none;
|
|
@@ -4008,7 +4008,7 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
4008
4008
|
.block-editor-inserter__toggle.components-button {
|
|
4009
4009
|
display: inline-flex;
|
|
4010
4010
|
align-items: center;
|
|
4011
|
-
cursor: pointer;
|
|
4011
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
4012
4012
|
border: none;
|
|
4013
4013
|
outline: none;
|
|
4014
4014
|
padding: 0;
|
|
@@ -4381,7 +4381,7 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
4381
4381
|
|
|
4382
4382
|
.block-editor-inserter__media-list__list-item {
|
|
4383
4383
|
position: relative;
|
|
4384
|
-
cursor: pointer;
|
|
4384
|
+
cursor: var(--wpds-cursor-control, pointer);
|
|
4385
4385
|
margin-bottom: 24px;
|
|
4386
4386
|
}
|
|
4387
4387
|
.block-editor-inserter__media-list__list-item.is-placeholder {
|
|
@@ -35,6 +35,13 @@ export function getBlockClientId(node: Node | null): string | undefined;
|
|
|
35
35
|
* @return {DOMRect} Union of the two rectangles.
|
|
36
36
|
*/
|
|
37
37
|
export function rectUnion(rect1: DOMRect, rect2: DOMRect): DOMRect;
|
|
38
|
+
/**
|
|
39
|
+
* Returns whether an element is visible.
|
|
40
|
+
*
|
|
41
|
+
* @param {Element} element Element.
|
|
42
|
+
* @return {boolean} Whether the element is visible.
|
|
43
|
+
*/
|
|
44
|
+
export function isElementVisible(element: Element): boolean;
|
|
38
45
|
/**
|
|
39
46
|
* Returns the bounding rectangle of an element, with special handling for blocks
|
|
40
47
|
* that have visible overflowing children (defined in WITH_OVERFLOW_ELEMENT_BLOCKS).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/utils/dom.js"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,iCALW,OAAO,KACP,OAAO,GAEN,OAAO,CAIlB;AAED;;;;;;;;;GASG;AACH,gDANW,OAAO,WACP,OAAO,GAEN,OAAO,CAQlB;AAED;;;;;;;GAOG;AACH,uCALW,IAAI,OAAC,GAEJ,MAAM,GAAC,SAAS,CAoB3B;AAED;;;;;;GAMG;AACH,iCAJW,OAAO,SACP,OAAO,GACN,OAAO,CASlB;
|
|
1
|
+
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/utils/dom.js"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,iCALW,OAAO,KACP,OAAO,GAEN,OAAO,CAIlB;AAED;;;;;;;;;GASG;AACH,gDANW,OAAO,WACP,OAAO,GAEN,OAAO,CAQlB;AAED;;;;;;;GAOG;AACH,uCALW,IAAI,OAAC,GAEJ,MAAM,GAAC,SAAS,CAoB3B;AAED;;;;;;GAMG;AACH,iCAJW,OAAO,SACP,OAAO,GACN,OAAO,CASlB;AAED;;;;;GAKG;AACH,0CAHW,OAAO,GACN,OAAO,CAsClB;AAmBD;;;;;;;;;;;;GAYG;AACH,0CAHW,OAAO,GACN,OAAO,CAoDlB;AAhED,oDAAkE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-editor",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.18.0",
|
|
4
4
|
"description": "Generic block editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -61,42 +61,43 @@
|
|
|
61
61
|
],
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@react-spring/web": "^9.4.5",
|
|
64
|
-
"@wordpress/a11y": "^4.
|
|
65
|
-
"@wordpress/base-styles": "^
|
|
66
|
-
"@wordpress/blob": "^4.
|
|
67
|
-
"@wordpress/block-serialization-default-parser": "^5.
|
|
68
|
-
"@wordpress/blocks": "^15.
|
|
69
|
-
"@wordpress/commands": "^1.
|
|
70
|
-
"@wordpress/components": "^
|
|
71
|
-
"@wordpress/compose": "^7.
|
|
72
|
-
"@wordpress/data": "^10.
|
|
73
|
-
"@wordpress/dataviews": "^14.
|
|
74
|
-
"@wordpress/date": "^5.
|
|
75
|
-
"@wordpress/deprecated": "^4.
|
|
76
|
-
"@wordpress/dom": "^4.
|
|
77
|
-
"@wordpress/element": "^6.
|
|
78
|
-
"@wordpress/escape-html": "^3.
|
|
79
|
-
"@wordpress/global-styles-engine": "^1.
|
|
80
|
-
"@wordpress/hooks": "^4.
|
|
81
|
-
"@wordpress/html-entities": "^4.
|
|
82
|
-
"@wordpress/i18n": "^6.
|
|
83
|
-
"@wordpress/icons": "^
|
|
84
|
-
"@wordpress/image-cropper": "^1.
|
|
85
|
-
"@wordpress/interactivity": "^6.
|
|
86
|
-
"@wordpress/is-shallow-equal": "^5.
|
|
87
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
88
|
-
"@wordpress/keycodes": "^4.
|
|
89
|
-
"@wordpress/notices": "^5.
|
|
90
|
-
"@wordpress/preferences": "^4.
|
|
91
|
-
"@wordpress/priority-queue": "^3.
|
|
92
|
-
"@wordpress/private-apis": "^1.
|
|
93
|
-
"@wordpress/rich-text": "^7.
|
|
94
|
-
"@wordpress/style-engine": "^2.
|
|
95
|
-
"@wordpress/token-list": "^3.
|
|
96
|
-
"@wordpress/
|
|
97
|
-
"@wordpress/
|
|
98
|
-
"@wordpress/
|
|
99
|
-
"@wordpress/
|
|
64
|
+
"@wordpress/a11y": "^4.45.0",
|
|
65
|
+
"@wordpress/base-styles": "^7.0.0",
|
|
66
|
+
"@wordpress/blob": "^4.45.0",
|
|
67
|
+
"@wordpress/block-serialization-default-parser": "^5.45.0",
|
|
68
|
+
"@wordpress/blocks": "^15.18.0",
|
|
69
|
+
"@wordpress/commands": "^1.45.0",
|
|
70
|
+
"@wordpress/components": "^33.0.0",
|
|
71
|
+
"@wordpress/compose": "^7.45.0",
|
|
72
|
+
"@wordpress/data": "^10.45.0",
|
|
73
|
+
"@wordpress/dataviews": "^14.2.0",
|
|
74
|
+
"@wordpress/date": "^5.45.0",
|
|
75
|
+
"@wordpress/deprecated": "^4.45.0",
|
|
76
|
+
"@wordpress/dom": "^4.45.0",
|
|
77
|
+
"@wordpress/element": "^6.45.0",
|
|
78
|
+
"@wordpress/escape-html": "^3.45.0",
|
|
79
|
+
"@wordpress/global-styles-engine": "^1.12.0",
|
|
80
|
+
"@wordpress/hooks": "^4.45.0",
|
|
81
|
+
"@wordpress/html-entities": "^4.45.0",
|
|
82
|
+
"@wordpress/i18n": "^6.18.0",
|
|
83
|
+
"@wordpress/icons": "^13.0.0",
|
|
84
|
+
"@wordpress/image-cropper": "^1.9.0",
|
|
85
|
+
"@wordpress/interactivity": "^6.45.0",
|
|
86
|
+
"@wordpress/is-shallow-equal": "^5.45.0",
|
|
87
|
+
"@wordpress/keyboard-shortcuts": "^5.45.0",
|
|
88
|
+
"@wordpress/keycodes": "^4.45.0",
|
|
89
|
+
"@wordpress/notices": "^5.45.0",
|
|
90
|
+
"@wordpress/preferences": "^4.45.0",
|
|
91
|
+
"@wordpress/priority-queue": "^3.45.0",
|
|
92
|
+
"@wordpress/private-apis": "^1.45.0",
|
|
93
|
+
"@wordpress/rich-text": "^7.45.0",
|
|
94
|
+
"@wordpress/style-engine": "^2.45.0",
|
|
95
|
+
"@wordpress/token-list": "^3.45.0",
|
|
96
|
+
"@wordpress/ui": "^0.12.0",
|
|
97
|
+
"@wordpress/upload-media": "^0.30.0",
|
|
98
|
+
"@wordpress/url": "^4.45.0",
|
|
99
|
+
"@wordpress/warning": "^3.45.0",
|
|
100
|
+
"@wordpress/wordcount": "^4.45.0",
|
|
100
101
|
"change-case": "^4.1.2",
|
|
101
102
|
"clsx": "^2.1.1",
|
|
102
103
|
"colord": "^2.7.0",
|
|
@@ -123,5 +124,5 @@
|
|
|
123
124
|
"publishConfig": {
|
|
124
125
|
"access": "public"
|
|
125
126
|
},
|
|
126
|
-
"gitHead": "
|
|
127
|
+
"gitHead": "8c229eaed0e88c9827e2da3d73a78f9ddd77714b"
|
|
127
128
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { applyFilters, hasFilter } from '@wordpress/hooks';
|
|
5
5
|
import {
|
|
6
|
-
Autocomplete,
|
|
6
|
+
Autocomplete as WCAutocomplete,
|
|
7
7
|
__unstableUseAutocompleteProps as useAutocompleteProps,
|
|
8
8
|
} from '@wordpress/components';
|
|
9
9
|
import { useMemo } from '@wordpress/element';
|
|
@@ -68,7 +68,9 @@ export function useBlockEditorAutocompleteProps( props ) {
|
|
|
68
68
|
* @type {React.FC}
|
|
69
69
|
*/
|
|
70
70
|
function BlockEditorAutocomplete( props ) {
|
|
71
|
-
return
|
|
71
|
+
return (
|
|
72
|
+
<WCAutocomplete { ...props } completers={ useCompleters( props ) } />
|
|
73
|
+
);
|
|
72
74
|
}
|
|
73
75
|
|
|
74
76
|
/**
|
|
@@ -16,7 +16,6 @@ import {
|
|
|
16
16
|
FlexBlock,
|
|
17
17
|
FocalPointPicker,
|
|
18
18
|
MenuItem,
|
|
19
|
-
VisuallyHidden,
|
|
20
19
|
__experimentalHStack as HStack,
|
|
21
20
|
__experimentalTruncate as Truncate,
|
|
22
21
|
Dropdown,
|
|
@@ -25,6 +24,7 @@ import {
|
|
|
25
24
|
__experimentalDropdownContentWrapper as DropdownContentWrapper,
|
|
26
25
|
Button,
|
|
27
26
|
} from '@wordpress/components';
|
|
27
|
+
import { VisuallyHidden } from '@wordpress/ui';
|
|
28
28
|
import { reset as resetIcon } from '@wordpress/icons';
|
|
29
29
|
import { __, _x, sprintf } from '@wordpress/i18n';
|
|
30
30
|
import { store as noticesStore } from '@wordpress/notices';
|
|
@@ -162,7 +162,7 @@ function InspectorImagePreviewItem( {
|
|
|
162
162
|
>
|
|
163
163
|
{ label }
|
|
164
164
|
</Truncate>
|
|
165
|
-
<VisuallyHidden
|
|
165
|
+
<VisuallyHidden render={ <span /> }>
|
|
166
166
|
{ imgUrl
|
|
167
167
|
? sprintf(
|
|
168
168
|
/* translators: %s: file name */
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
Flex,
|
|
7
7
|
FlexItem,
|
|
8
8
|
Modal,
|
|
9
|
-
__experimentalText as
|
|
9
|
+
__experimentalText as WCText,
|
|
10
10
|
__experimentalVStack as VStack,
|
|
11
11
|
} from '@wordpress/components';
|
|
12
12
|
import { useState } from '@wordpress/element';
|
|
@@ -58,11 +58,11 @@ export default function BlockAllowedBlocksModal( {
|
|
|
58
58
|
} }
|
|
59
59
|
spacing="4"
|
|
60
60
|
>
|
|
61
|
-
<
|
|
61
|
+
<WCText>
|
|
62
62
|
{ __(
|
|
63
63
|
'Select which blocks can be added inside this container.'
|
|
64
64
|
) }
|
|
65
|
-
</
|
|
65
|
+
</WCText>
|
|
66
66
|
<BlockManager
|
|
67
67
|
blockTypes={ blockTypes }
|
|
68
68
|
selectedBlockTypes={ currentSelectedBlockTypes }
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from '@wordpress/blocks';
|
|
14
14
|
import {
|
|
15
15
|
__experimentalItem as Item,
|
|
16
|
-
__experimentalText as
|
|
16
|
+
__experimentalText as WCText,
|
|
17
17
|
__experimentalToolsPanelItem as ToolsPanelItem,
|
|
18
18
|
__experimentalVStack as VStack,
|
|
19
19
|
privateApis as componentsPrivateApis,
|
|
@@ -142,14 +142,14 @@ export default function BlockBindingsAttributeControl( {
|
|
|
142
142
|
className="block-editor-bindings__item"
|
|
143
143
|
spacing={ 0 }
|
|
144
144
|
>
|
|
145
|
-
<
|
|
146
|
-
<
|
|
145
|
+
<WCText truncate>{ attribute }</WCText>
|
|
146
|
+
<WCText
|
|
147
147
|
truncate
|
|
148
148
|
variant={ isValid ? 'muted' : undefined }
|
|
149
149
|
isDestructive={ ! isValid }
|
|
150
150
|
>
|
|
151
151
|
{ displayText }
|
|
152
|
-
</
|
|
152
|
+
</WCText>
|
|
153
153
|
</VStack>
|
|
154
154
|
</Menu.TriggerButton>
|
|
155
155
|
{ ! isAttributeReadOnly && (
|
|
@@ -9,7 +9,7 @@ import clsx from 'clsx';
|
|
|
9
9
|
import {
|
|
10
10
|
Button,
|
|
11
11
|
Icon,
|
|
12
|
-
__experimentalText as
|
|
12
|
+
__experimentalText as WCText,
|
|
13
13
|
__experimentalVStack as VStack,
|
|
14
14
|
__experimentalHStack as HStack,
|
|
15
15
|
privateApis as componentsPrivateApis,
|
|
@@ -32,7 +32,7 @@ import { unlock } from '../../lock-unlock';
|
|
|
32
32
|
import { store as blockEditorStore } from '../../store';
|
|
33
33
|
import BlockIcon from '../block-icon';
|
|
34
34
|
|
|
35
|
-
const { Badge } = unlock( componentsPrivateApis );
|
|
35
|
+
const { Badge: WCBadge } = unlock( componentsPrivateApis );
|
|
36
36
|
|
|
37
37
|
function OptionalParentSelectButton( { children, onClick } ) {
|
|
38
38
|
if ( ! onClick ) {
|
|
@@ -197,7 +197,7 @@ function BlockCard( {
|
|
|
197
197
|
{ ! parentClientId &&
|
|
198
198
|
! isChild &&
|
|
199
199
|
!! name?.length && (
|
|
200
|
-
<
|
|
200
|
+
<WCBadge>{ title }</WCBadge>
|
|
201
201
|
) }
|
|
202
202
|
</TitleElement>
|
|
203
203
|
{ children }
|
|
@@ -205,9 +205,9 @@ function BlockCard( {
|
|
|
205
205
|
</OptionalParentSelectButton>
|
|
206
206
|
</HStack>
|
|
207
207
|
{ ! parentClientId && ! isChild && description && (
|
|
208
|
-
<
|
|
208
|
+
<WCText className="block-editor-block-card__description">
|
|
209
209
|
{ description }
|
|
210
|
-
</
|
|
210
|
+
</WCText>
|
|
211
211
|
) }
|
|
212
212
|
</VStack>
|
|
213
213
|
</div>
|
|
@@ -153,10 +153,6 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection="true"] .b
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
.reusable-block-edit-panel * {
|
|
157
|
-
z-index: z-index(".block-editor-block-list__block .reusable-block-edit-panel *");
|
|
158
|
-
}
|
|
159
|
-
|
|
160
156
|
/**
|
|
161
157
|
* Notices
|
|
162
158
|
*/
|
|
@@ -7,10 +7,11 @@ import clsx from 'clsx';
|
|
|
7
7
|
* WordPress dependencies
|
|
8
8
|
*/
|
|
9
9
|
import { getBlockType } from '@wordpress/blocks';
|
|
10
|
-
import { Button
|
|
11
|
-
import {
|
|
10
|
+
import { Button } from '@wordpress/components';
|
|
11
|
+
import { VisuallyHidden } from '@wordpress/ui';
|
|
12
|
+
import { useInstanceId, useViewportMatch } from '@wordpress/compose';
|
|
12
13
|
import { useSelect, useDispatch } from '@wordpress/data';
|
|
13
|
-
import { forwardRef } from '@wordpress/element';
|
|
14
|
+
import { forwardRef, useMemo } from '@wordpress/element';
|
|
14
15
|
import { __, isRTL } from '@wordpress/i18n';
|
|
15
16
|
import { displayShortcut } from '@wordpress/keycodes';
|
|
16
17
|
|
|
@@ -62,10 +63,12 @@ const BlockMoverButton = forwardRef(
|
|
|
62
63
|
ref
|
|
63
64
|
) => {
|
|
64
65
|
const instanceId = useInstanceId( BlockMoverButton );
|
|
65
|
-
const normalizedClientIds =
|
|
66
|
-
? clientIds
|
|
67
|
-
|
|
66
|
+
const normalizedClientIds = useMemo(
|
|
67
|
+
() => ( Array.isArray( clientIds ) ? clientIds : [ clientIds ] ),
|
|
68
|
+
[ clientIds ]
|
|
69
|
+
);
|
|
68
70
|
const blocksCount = normalizedClientIds.length;
|
|
71
|
+
const isMobileViewport = useViewportMatch( 'small', '<' );
|
|
69
72
|
|
|
70
73
|
const {
|
|
71
74
|
blockType,
|
|
@@ -107,7 +110,7 @@ const BlockMoverButton = forwardRef(
|
|
|
107
110
|
orientation: moverOrientation || blockListOrientation,
|
|
108
111
|
};
|
|
109
112
|
},
|
|
110
|
-
[
|
|
113
|
+
[ direction, moverOrientation, normalizedClientIds ]
|
|
111
114
|
);
|
|
112
115
|
|
|
113
116
|
const { moveBlocksDown, moveBlocksUp } =
|
|
@@ -138,6 +141,13 @@ const BlockMoverButton = forwardRef(
|
|
|
138
141
|
direction,
|
|
139
142
|
orientation
|
|
140
143
|
) }
|
|
144
|
+
tooltipPosition={
|
|
145
|
+
! isMobileViewport &&
|
|
146
|
+
direction === 'down' &&
|
|
147
|
+
orientation === 'vertical'
|
|
148
|
+
? 'bottom'
|
|
149
|
+
: 'top'
|
|
150
|
+
}
|
|
141
151
|
aria-describedby={ descriptionId }
|
|
142
152
|
{ ...props }
|
|
143
153
|
onClick={ isDisabled ? null : onClick }
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { useDispatch } from '@wordpress/data';
|
|
5
5
|
import { cloneBlock } from '@wordpress/blocks';
|
|
6
|
-
import { Composite
|
|
6
|
+
import { Composite } from '@wordpress/components';
|
|
7
|
+
import { VisuallyHidden } from '@wordpress/ui';
|
|
7
8
|
|
|
8
9
|
import { useState } from '@wordpress/element';
|
|
9
10
|
import { useInstanceId } from '@wordpress/compose';
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
.block-editor-block-preview__container,
|
|
35
35
|
div[role="button"] {
|
|
36
|
-
cursor:
|
|
36
|
+
cursor: var(--wpds-cursor-control);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.block-editor-block-pattern-setup-list__item {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
padding-top: $grid-unit-10;
|
|
61
61
|
font-size: 12px;
|
|
62
62
|
text-align: center;
|
|
63
|
-
cursor:
|
|
63
|
+
cursor: var(--wpds-cursor-control);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
.block-editor-block-preview__container {
|
|
@@ -10,10 +10,10 @@ import { cloneBlock } from '@wordpress/blocks';
|
|
|
10
10
|
import { useEffect, useState, forwardRef, useMemo } from '@wordpress/element';
|
|
11
11
|
import {
|
|
12
12
|
Composite,
|
|
13
|
-
VisuallyHidden,
|
|
14
13
|
Tooltip,
|
|
15
14
|
__experimentalHStack as HStack,
|
|
16
15
|
} from '@wordpress/components';
|
|
16
|
+
import { VisuallyHidden } from '@wordpress/ui';
|
|
17
17
|
import { useInstanceId } from '@wordpress/compose';
|
|
18
18
|
import { __ } from '@wordpress/i18n';
|
|
19
19
|
import { Icon, symbol } from '@wordpress/icons';
|