@wordpress/block-editor 14.6.0 → 14.7.1-next.082ed6819.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 +2 -0
- package/build/components/block-controls/slot.js +6 -3
- package/build/components/block-controls/slot.js.map +1 -1
- package/build/components/block-inspector/index.js +1 -2
- package/build/components/block-inspector/index.js.map +1 -1
- package/build/components/block-list/block.js +14 -28
- package/build/components/block-list/block.js.map +1 -1
- package/build/components/block-lock/modal.js +1 -1
- package/build/components/block-lock/modal.js.map +1 -1
- package/build/components/block-manager/category.js +79 -0
- package/build/components/block-manager/category.js.map +1 -0
- package/build/components/block-manager/checklist.js +40 -0
- package/build/components/block-manager/checklist.js.map +1 -0
- package/build/components/block-manager/index.js +108 -0
- package/build/components/block-manager/index.js.map +1 -0
- package/build/components/block-patterns-list/index.js +23 -26
- package/build/components/block-patterns-list/index.js.map +1 -1
- package/build/components/block-popover/index.js +1 -1
- package/build/components/block-popover/index.js.map +1 -1
- package/build/components/block-preview/async.js +51 -0
- package/build/components/block-preview/async.js.map +1 -0
- package/build/components/block-preview/index.js +4 -1
- package/build/components/block-preview/index.js.map +1 -1
- package/build/components/block-settings-menu/block-settings-dropdown.js.map +1 -1
- package/build/components/block-settings-menu/index.js.map +1 -1
- package/build/components/block-toolbar/change-design.js +1 -4
- package/build/components/block-toolbar/change-design.js.map +1 -1
- package/build/components/block-toolbar/index.js +7 -2
- package/build/components/block-toolbar/index.js.map +1 -1
- package/build/components/block-toolbar/switch-section-style.js +105 -0
- package/build/components/block-toolbar/switch-section-style.js.map +1 -0
- package/build/components/block-tools/index.js +12 -9
- package/build/components/block-tools/index.js.map +1 -1
- package/build/components/block-tools/use-block-toolbar-popover-props.js +1 -1
- package/build/components/block-tools/use-block-toolbar-popover-props.js.map +1 -1
- package/build/components/block-tools/use-show-block-tools.js +4 -1
- package/build/components/block-tools/use-show-block-tools.js.map +1 -1
- package/build/components/collab/block-comment-icon-slot.js +2 -6
- package/build/components/collab/block-comment-icon-slot.js.map +1 -1
- package/build/components/collab/block-comment-icon-toolbar-slot.js +2 -6
- package/build/components/collab/block-comment-icon-toolbar-slot.js.map +1 -1
- package/build/components/color-palette/with-color-context.js +4 -2
- package/build/components/color-palette/with-color-context.js.map +1 -1
- package/build/components/font-family/index.js +14 -13
- package/build/components/font-family/index.js.map +1 -1
- package/build/components/global-styles/dimensions-panel.js +26 -14
- package/build/components/global-styles/dimensions-panel.js.map +1 -1
- package/build/components/global-styles/use-global-styles-output.js +1 -1
- package/build/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build/components/iframe/get-compatibility-styles.js +4 -4
- package/build/components/iframe/get-compatibility-styles.js.map +1 -1
- package/build/components/iframe/index.js +156 -23
- package/build/components/iframe/index.js.map +1 -1
- package/build/components/inserter/block-patterns-explorer/pattern-list.js +2 -2
- package/build/components/inserter/block-patterns-explorer/pattern-list.js.map +1 -1
- package/build/components/inserter/block-patterns-tab/index.js +1 -2
- package/build/components/inserter/block-patterns-tab/index.js.map +1 -1
- package/build/components/inserter/block-patterns-tab/pattern-category-previews.js +4 -6
- package/build/components/inserter/block-patterns-tab/pattern-category-previews.js.map +1 -1
- package/build/components/inserter/block-patterns-tab/use-pattern-categories.js +3 -0
- package/build/components/inserter/block-patterns-tab/use-pattern-categories.js.map +1 -1
- package/build/components/inserter/block-patterns-tab/utils.js +5 -1
- package/build/components/inserter/block-patterns-tab/utils.js.map +1 -1
- package/build/components/inserter/category-tabs/index.js +7 -8
- package/build/components/inserter/category-tabs/index.js.map +1 -1
- package/build/components/inserter/hooks/use-block-types-state.js +1 -1
- package/build/components/inserter/hooks/use-block-types-state.js.map +1 -1
- package/build/components/inserter/hooks/use-patterns-paging.js +0 -5
- package/build/components/inserter/hooks/use-patterns-paging.js.map +1 -1
- package/build/components/inserter/search-results.js +0 -2
- package/build/components/inserter/search-results.js.map +1 -1
- package/build/components/inserter-draggable-blocks/index.js +2 -1
- package/build/components/inserter-draggable-blocks/index.js.map +1 -1
- package/build/components/inspector-controls/slot.js +7 -4
- package/build/components/inspector-controls/slot.js.map +1 -1
- package/build/components/inspector-controls-tabs/position-controls-panel.js +1 -1
- package/build/components/inspector-controls-tabs/position-controls-panel.js.map +1 -1
- package/build/components/inspector-controls-tabs/use-inspector-controls-tabs.js +4 -4
- package/build/components/inspector-controls-tabs/use-inspector-controls-tabs.js.map +1 -1
- package/build/components/media-placeholder/index.js +33 -25
- package/build/components/media-placeholder/index.js.map +1 -1
- package/build/components/rich-text/index.js +1 -1
- package/build/components/rich-text/index.js.map +1 -1
- package/build/components/tabbed-sidebar/index.js +1 -1
- package/build/components/tabbed-sidebar/index.js.map +1 -1
- package/build/components/url-input/index.js +3 -1
- package/build/components/url-input/index.js.map +1 -1
- package/build/components/use-block-commands/index.js +5 -6
- package/build/components/use-block-commands/index.js.map +1 -1
- package/build/hooks/border.js +3 -3
- package/build/hooks/border.js.map +1 -1
- package/build/hooks/color.js +1 -1
- package/build/hooks/color.js.map +1 -1
- package/build/hooks/dimensions.js +2 -2
- package/build/hooks/dimensions.js.map +1 -1
- package/build/hooks/font-family.js +1 -1
- package/build/hooks/font-family.js.map +1 -1
- package/build/hooks/style.js +6 -6
- package/build/hooks/style.js.map +1 -1
- package/build/hooks/supports.js +7 -7
- package/build/hooks/supports.js.map +1 -1
- package/build/hooks/typography.js +6 -6
- package/build/hooks/typography.js.map +1 -1
- package/build/hooks/utils.js +3 -3
- package/build/hooks/utils.js.map +1 -1
- package/build/layouts/flex.js +11 -9
- package/build/layouts/flex.js.map +1 -1
- package/build/lock-unlock.js.map +1 -1
- package/build/private-apis.js +4 -4
- package/build/private-apis.js.map +1 -1
- package/build/store/private-selectors.js +3 -3
- package/build/store/private-selectors.js.map +1 -1
- package/build/store/selectors.js +12 -8
- package/build/store/selectors.js.map +1 -1
- package/build/store/utils.js +5 -4
- package/build/store/utils.js.map +1 -1
- package/build/utils/dom.js +27 -22
- package/build/utils/dom.js.map +1 -1
- package/build-module/components/block-controls/slot.js +6 -3
- package/build-module/components/block-controls/slot.js.map +1 -1
- package/build-module/components/block-inspector/index.js +1 -2
- package/build-module/components/block-inspector/index.js.map +1 -1
- package/build-module/components/block-list/block.js +15 -27
- package/build-module/components/block-list/block.js.map +1 -1
- package/build-module/components/block-lock/modal.js +1 -1
- package/build-module/components/block-lock/modal.js.map +1 -1
- package/build-module/components/block-manager/category.js +71 -0
- package/build-module/components/block-manager/category.js.map +1 -0
- package/build-module/components/block-manager/checklist.js +32 -0
- package/build-module/components/block-manager/checklist.js.map +1 -0
- package/build-module/components/block-manager/index.js +102 -0
- package/build-module/components/block-manager/index.js.map +1 -0
- package/build-module/components/block-patterns-list/index.js +23 -26
- package/build-module/components/block-patterns-list/index.js.map +1 -1
- package/build-module/components/block-popover/index.js +2 -2
- package/build-module/components/block-popover/index.js.map +1 -1
- package/build-module/components/block-preview/async.js +44 -0
- package/build-module/components/block-preview/async.js.map +1 -0
- package/build-module/components/block-preview/index.js +4 -1
- package/build-module/components/block-preview/index.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/index.js +2 -2
- package/build-module/components/block-settings-menu/index.js.map +1 -1
- package/build-module/components/block-toolbar/change-design.js +1 -4
- package/build-module/components/block-toolbar/change-design.js.map +1 -1
- package/build-module/components/block-toolbar/index.js +7 -2
- package/build-module/components/block-toolbar/index.js.map +1 -1
- package/build-module/components/block-toolbar/switch-section-style.js +97 -0
- package/build-module/components/block-toolbar/switch-section-style.js.map +1 -0
- package/build-module/components/block-tools/index.js +13 -10
- package/build-module/components/block-tools/index.js.map +1 -1
- package/build-module/components/block-tools/use-block-toolbar-popover-props.js +2 -2
- package/build-module/components/block-tools/use-block-toolbar-popover-props.js.map +1 -1
- package/build-module/components/block-tools/use-show-block-tools.js +4 -1
- package/build-module/components/block-tools/use-show-block-tools.js.map +1 -1
- package/build-module/components/collab/block-comment-icon-slot.js +2 -6
- package/build-module/components/collab/block-comment-icon-slot.js.map +1 -1
- package/build-module/components/collab/block-comment-icon-toolbar-slot.js +2 -6
- package/build-module/components/collab/block-comment-icon-toolbar-slot.js.map +1 -1
- package/build-module/components/color-palette/with-color-context.js +4 -2
- package/build-module/components/color-palette/with-color-context.js.map +1 -1
- package/build-module/components/font-family/index.js +15 -14
- package/build-module/components/font-family/index.js.map +1 -1
- package/build-module/components/global-styles/dimensions-panel.js +26 -14
- package/build-module/components/global-styles/dimensions-panel.js.map +1 -1
- package/build-module/components/global-styles/use-global-styles-output.js +1 -1
- package/build-module/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build-module/components/iframe/get-compatibility-styles.js +4 -4
- package/build-module/components/iframe/get-compatibility-styles.js.map +1 -1
- package/build-module/components/iframe/index.js +157 -24
- package/build-module/components/iframe/index.js.map +1 -1
- package/build-module/components/inserter/block-patterns-explorer/pattern-list.js +2 -2
- package/build-module/components/inserter/block-patterns-explorer/pattern-list.js.map +1 -1
- package/build-module/components/inserter/block-patterns-tab/index.js +1 -2
- package/build-module/components/inserter/block-patterns-tab/index.js.map +1 -1
- package/build-module/components/inserter/block-patterns-tab/pattern-category-previews.js +5 -7
- package/build-module/components/inserter/block-patterns-tab/pattern-category-previews.js.map +1 -1
- package/build-module/components/inserter/block-patterns-tab/use-pattern-categories.js +4 -1
- package/build-module/components/inserter/block-patterns-tab/use-pattern-categories.js.map +1 -1
- package/build-module/components/inserter/block-patterns-tab/utils.js +4 -0
- package/build-module/components/inserter/block-patterns-tab/utils.js.map +1 -1
- package/build-module/components/inserter/category-tabs/index.js +8 -9
- package/build-module/components/inserter/category-tabs/index.js.map +1 -1
- package/build-module/components/inserter/hooks/use-block-types-state.js +1 -1
- package/build-module/components/inserter/hooks/use-block-types-state.js.map +1 -1
- package/build-module/components/inserter/hooks/use-patterns-paging.js +1 -6
- package/build-module/components/inserter/hooks/use-patterns-paging.js.map +1 -1
- package/build-module/components/inserter/search-results.js +0 -2
- package/build-module/components/inserter/search-results.js.map +1 -1
- package/build-module/components/inserter-draggable-blocks/index.js +2 -1
- package/build-module/components/inserter-draggable-blocks/index.js.map +1 -1
- package/build-module/components/inspector-controls/slot.js +7 -4
- package/build-module/components/inspector-controls/slot.js.map +1 -1
- package/build-module/components/inspector-controls-tabs/position-controls-panel.js +1 -1
- package/build-module/components/inspector-controls-tabs/position-controls-panel.js.map +1 -1
- package/build-module/components/inspector-controls-tabs/use-inspector-controls-tabs.js +4 -4
- package/build-module/components/inspector-controls-tabs/use-inspector-controls-tabs.js.map +1 -1
- package/build-module/components/media-placeholder/index.js +33 -25
- package/build-module/components/media-placeholder/index.js.map +1 -1
- package/build-module/components/rich-text/index.js +1 -1
- package/build-module/components/rich-text/index.js.map +1 -1
- package/build-module/components/tabbed-sidebar/index.js +1 -1
- package/build-module/components/tabbed-sidebar/index.js.map +1 -1
- package/build-module/components/url-input/index.js +3 -1
- package/build-module/components/url-input/index.js.map +1 -1
- package/build-module/components/use-block-commands/index.js +4 -4
- package/build-module/components/use-block-commands/index.js.map +1 -1
- package/build-module/hooks/border.js +3 -3
- package/build-module/hooks/border.js.map +1 -1
- package/build-module/hooks/color.js +1 -1
- package/build-module/hooks/color.js.map +1 -1
- package/build-module/hooks/dimensions.js +2 -2
- package/build-module/hooks/dimensions.js.map +1 -1
- package/build-module/hooks/font-family.js +1 -1
- package/build-module/hooks/font-family.js.map +1 -1
- package/build-module/hooks/style.js +6 -6
- package/build-module/hooks/style.js.map +1 -1
- package/build-module/hooks/supports.js +7 -7
- package/build-module/hooks/supports.js.map +1 -1
- package/build-module/hooks/typography.js +6 -6
- package/build-module/hooks/typography.js.map +1 -1
- package/build-module/hooks/utils.js +3 -3
- package/build-module/hooks/utils.js.map +1 -1
- package/build-module/layouts/flex.js +11 -9
- package/build-module/layouts/flex.js.map +1 -1
- package/build-module/lock-unlock.js.map +1 -1
- package/build-module/private-apis.js +6 -6
- package/build-module/private-apis.js.map +1 -1
- package/build-module/store/private-selectors.js +3 -3
- package/build-module/store/private-selectors.js.map +1 -1
- package/build-module/store/selectors.js +12 -8
- package/build-module/store/selectors.js.map +1 -1
- package/build-module/store/utils.js +3 -3
- package/build-module/store/utils.js.map +1 -1
- package/build-module/utils/dom.js +25 -21
- package/build-module/utils/dom.js.map +1 -1
- package/build-style/content-rtl.css +30 -15
- package/build-style/content.css +30 -15
- package/build-style/style-rtl.css +92 -3
- package/build-style/style.css +92 -3
- package/build-types/utils/dom.d.ts +7 -9
- package/build-types/utils/dom.d.ts.map +1 -1
- package/package.json +32 -31
- package/src/components/block-canvas/style.scss +1 -1
- package/src/components/block-controls/slot.js +5 -3
- package/src/components/block-inspector/index.js +0 -2
- package/src/components/block-inspector/style.scss +2 -1
- package/src/components/block-list/block.js +28 -48
- package/src/components/block-lock/modal.js +1 -1
- package/src/components/block-manager/category.js +102 -0
- package/src/components/block-manager/checklist.js +34 -0
- package/src/components/block-manager/index.js +127 -0
- package/src/components/block-manager/style.scss +82 -0
- package/src/components/block-mover/README.md +15 -8
- package/src/components/block-mover/stories/index.story.js +73 -71
- package/src/components/block-mover/style.scss +3 -0
- package/src/components/block-patterns-list/README.md +8 -8
- package/src/components/block-patterns-list/index.js +35 -51
- package/src/components/block-patterns-list/stories/index.story.js +2 -19
- package/src/components/block-popover/index.js +4 -4
- package/src/components/block-preview/async.js +43 -0
- package/src/components/block-preview/index.js +6 -1
- 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-toolbar/change-design.js +1 -7
- package/src/components/block-toolbar/index.js +6 -0
- package/src/components/block-toolbar/switch-section-style.js +115 -0
- package/src/components/block-tools/index.js +26 -10
- package/src/components/block-tools/style.scss +12 -0
- package/src/components/block-tools/use-block-toolbar-popover-props.js +2 -2
- package/src/components/block-tools/use-show-block-tools.js +3 -1
- package/src/components/collab/block-comment-icon-slot.js +2 -6
- package/src/components/collab/block-comment-icon-toolbar-slot.js +3 -5
- package/src/components/color-palette/with-color-context.js +25 -7
- package/src/components/default-block-appender/content.scss +13 -19
- package/src/components/font-family/index.js +13 -13
- package/src/components/global-styles/dimensions-panel.js +22 -16
- package/src/components/global-styles/test/use-global-styles-output.js +1 -1
- package/src/components/global-styles/use-global-styles-output.js +1 -1
- package/src/components/iframe/content.scss +16 -3
- package/src/components/iframe/get-compatibility-styles.js +4 -9
- package/src/components/iframe/index.js +204 -44
- package/src/components/inserter/block-patterns-explorer/pattern-list.js +3 -6
- package/src/components/inserter/block-patterns-tab/index.js +0 -1
- package/src/components/inserter/block-patterns-tab/pattern-category-previews.js +15 -17
- package/src/components/inserter/block-patterns-tab/use-pattern-categories.js +8 -0
- package/src/components/inserter/block-patterns-tab/utils.js +5 -0
- package/src/components/inserter/category-tabs/index.js +8 -9
- package/src/components/inserter/hooks/use-block-types-state.js +6 -1
- package/src/components/inserter/hooks/use-patterns-paging.js +1 -6
- package/src/components/inserter/search-results.js +0 -6
- package/src/components/inserter-draggable-blocks/index.js +10 -1
- package/src/components/inspector-controls/README.md +2 -0
- package/src/components/inspector-controls/slot.js +6 -4
- package/src/components/inspector-controls-tabs/position-controls-panel.js +1 -3
- package/src/components/inspector-controls-tabs/use-inspector-controls-tabs.js +10 -10
- package/src/components/media-placeholder/index.js +41 -37
- package/src/components/provider/test/use-block-sync.js +3 -1
- package/src/components/rich-text/content.scss +15 -10
- package/src/components/rich-text/index.js +8 -1
- package/src/components/tabbed-sidebar/index.js +1 -1
- package/src/components/tabbed-sidebar/style.scss +1 -1
- package/src/components/url-input/index.js +3 -4
- package/src/components/use-block-commands/index.js +245 -234
- package/src/hooks/border.js +3 -9
- package/src/hooks/color.js +1 -1
- package/src/hooks/dimensions.js +2 -2
- package/src/hooks/font-family.js +1 -1
- package/src/hooks/style.js +6 -12
- package/src/hooks/supports.js +7 -7
- package/src/hooks/test/style.js +1 -2
- package/src/hooks/typography.js +6 -6
- package/src/hooks/utils.js +8 -3
- package/src/layouts/flex.js +26 -18
- package/src/private-apis.js +6 -6
- package/src/store/private-selectors.js +6 -7
- package/src/store/selectors.js +60 -45
- package/src/store/test/private-selectors.js +5 -0
- package/src/store/test/selectors.js +87 -58
- package/src/store/utils.js +12 -11
- package/src/style.scss +1 -0
- package/src/utils/dom.js +26 -21
- package/src/utils/test/dom.js +224 -0
- package/tsconfig.json +1 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/build/components/block-info-slot-fill/index.js +0 -39
- package/build/components/block-info-slot-fill/index.js.map +0 -1
- package/build-module/components/block-info-slot-fill/index.js +0 -32
- package/build-module/components/block-info-slot-fill/index.js.map +0 -1
- package/src/components/block-info-slot-fill/index.js +0 -27
- /package/src/{lock-unlock.js → lock-unlock.ts} +0 -0
|
@@ -87,7 +87,7 @@ export const checkAllowListRecursive = (blocks, allowedBlockTypes) => {
|
|
|
87
87
|
export const getAllPatternsDependants = select => state => {
|
|
88
88
|
return [state.settings.__experimentalBlockPatterns, state.settings.__experimentalUserPatternCategories, state.settings.__experimentalReusableBlocks, state.settings[selectBlockPatternsKey]?.(select), state.blockPatterns, unlock(select(STORE_NAME)).getReusableBlocks()];
|
|
89
89
|
};
|
|
90
|
-
export
|
|
91
|
-
return [state.blockListSettings[rootClientId], state.blocks.byClientId.get(rootClientId), state.settings.allowedBlockTypes, state.settings.templateLock, state.blockEditingModes, state
|
|
92
|
-
}
|
|
90
|
+
export const getInsertBlockTypeDependants = select => (state, rootClientId) => {
|
|
91
|
+
return [state.blockListSettings[rootClientId], state.blocks.byClientId.get(rootClientId), state.settings.allowedBlockTypes, state.settings.templateLock, state.blockEditingModes, select(STORE_NAME).__unstableGetEditorMode(state), getSectionRootClientId(state)];
|
|
92
|
+
};
|
|
93
93
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["parse","grammarParse","selectBlockPatternsKey","unlock","STORE_NAME","getSectionRootClientId","isFiltered","Symbol","parsedPatternCache","WeakMap","grammarMapCache","parsePattern","pattern","blocks","content","__unstableSkipMigrationLogs","length","attributes","metadata","categories","patternName","name","title","getParsedPattern","parsedPattern","get","set","getGrammar","grammarMap","filter","block","blockName","checkAllowList","list","item","defaultResult","Array","isArray","includes","checkAllowListRecursive","allowedBlockTypes","blocksQueue","shift","isAllowed","innerBlocks","forEach","innerBlock","push","getAllPatternsDependants","select","state","settings","__experimentalBlockPatterns","__experimentalUserPatternCategories","__experimentalReusableBlocks","blockPatterns","getReusableBlocks","getInsertBlockTypeDependants","rootClientId","blockListSettings","byClientId","templateLock","blockEditingModes","
|
|
1
|
+
{"version":3,"names":["parse","grammarParse","selectBlockPatternsKey","unlock","STORE_NAME","getSectionRootClientId","isFiltered","Symbol","parsedPatternCache","WeakMap","grammarMapCache","parsePattern","pattern","blocks","content","__unstableSkipMigrationLogs","length","attributes","metadata","categories","patternName","name","title","getParsedPattern","parsedPattern","get","set","getGrammar","grammarMap","filter","block","blockName","checkAllowList","list","item","defaultResult","Array","isArray","includes","checkAllowListRecursive","allowedBlockTypes","blocksQueue","shift","isAllowed","innerBlocks","forEach","innerBlock","push","getAllPatternsDependants","select","state","settings","__experimentalBlockPatterns","__experimentalUserPatternCategories","__experimentalReusableBlocks","blockPatterns","getReusableBlocks","getInsertBlockTypeDependants","rootClientId","blockListSettings","byClientId","templateLock","blockEditingModes","__unstableGetEditorMode"],"sources":["@wordpress/block-editor/src/store/utils.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { parse } from '@wordpress/blocks';\nimport { parse as grammarParse } from '@wordpress/block-serialization-default-parser';\n\n/**\n * Internal dependencies\n */\nimport { selectBlockPatternsKey } from './private-keys';\nimport { unlock } from '../lock-unlock';\nimport { STORE_NAME } from './constants';\nimport { getSectionRootClientId } from './private-selectors';\n\nexport const isFiltered = Symbol( 'isFiltered' );\nconst parsedPatternCache = new WeakMap();\nconst grammarMapCache = new WeakMap();\n\nfunction parsePattern( pattern ) {\n\tconst blocks = parse( pattern.content, {\n\t\t__unstableSkipMigrationLogs: true,\n\t} );\n\tif ( blocks.length === 1 ) {\n\t\tblocks[ 0 ].attributes = {\n\t\t\t...blocks[ 0 ].attributes,\n\t\t\tmetadata: {\n\t\t\t\t...( blocks[ 0 ].attributes.metadata || {} ),\n\t\t\t\tcategories: pattern.categories,\n\t\t\t\tpatternName: pattern.name,\n\t\t\t\tname: blocks[ 0 ].attributes.metadata?.name || pattern.title,\n\t\t\t},\n\t\t};\n\t}\n\treturn {\n\t\t...pattern,\n\t\tblocks,\n\t};\n}\n\nexport function getParsedPattern( pattern ) {\n\tlet parsedPattern = parsedPatternCache.get( pattern );\n\tif ( ! parsedPattern ) {\n\t\tparsedPattern = parsePattern( pattern );\n\t\tparsedPatternCache.set( pattern, parsedPattern );\n\t}\n\treturn parsedPattern;\n}\n\nexport function getGrammar( pattern ) {\n\tlet grammarMap = grammarMapCache.get( pattern );\n\tif ( ! grammarMap ) {\n\t\tgrammarMap = grammarParse( pattern.content );\n\t\t// Block names are null only at the top level for whitespace.\n\t\tgrammarMap = grammarMap.filter( ( block ) => block.blockName !== null );\n\t\tgrammarMapCache.set( pattern, grammarMap );\n\t}\n\treturn grammarMap;\n}\n\nexport const checkAllowList = ( list, item, defaultResult = null ) => {\n\tif ( typeof list === 'boolean' ) {\n\t\treturn list;\n\t}\n\tif ( Array.isArray( list ) ) {\n\t\t// TODO: when there is a canonical way to detect that we are editing a post\n\t\t// the following check should be changed to something like:\n\t\t// if ( list.includes( 'core/post-content' ) && getEditorMode() === 'post-content' && item === null )\n\t\tif ( list.includes( 'core/post-content' ) && item === null ) {\n\t\t\treturn true;\n\t\t}\n\t\treturn list.includes( item );\n\t}\n\treturn defaultResult;\n};\n\nexport const checkAllowListRecursive = ( blocks, allowedBlockTypes ) => {\n\tif ( typeof allowedBlockTypes === 'boolean' ) {\n\t\treturn allowedBlockTypes;\n\t}\n\n\tconst blocksQueue = [ ...blocks ];\n\twhile ( blocksQueue.length > 0 ) {\n\t\tconst block = blocksQueue.shift();\n\n\t\tconst isAllowed = checkAllowList(\n\t\t\tallowedBlockTypes,\n\t\t\tblock.name || block.blockName,\n\t\t\ttrue\n\t\t);\n\t\tif ( ! isAllowed ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tblock.innerBlocks?.forEach( ( innerBlock ) => {\n\t\t\tblocksQueue.push( innerBlock );\n\t\t} );\n\t}\n\n\treturn true;\n};\n\nexport const getAllPatternsDependants = ( select ) => ( state ) => {\n\treturn [\n\t\tstate.settings.__experimentalBlockPatterns,\n\t\tstate.settings.__experimentalUserPatternCategories,\n\t\tstate.settings.__experimentalReusableBlocks,\n\t\tstate.settings[ selectBlockPatternsKey ]?.( select ),\n\t\tstate.blockPatterns,\n\t\tunlock( select( STORE_NAME ) ).getReusableBlocks(),\n\t];\n};\n\nexport const getInsertBlockTypeDependants =\n\t( select ) => ( state, rootClientId ) => {\n\t\treturn [\n\t\t\tstate.blockListSettings[ rootClientId ],\n\t\t\tstate.blocks.byClientId.get( rootClientId ),\n\t\t\tstate.settings.allowedBlockTypes,\n\t\t\tstate.settings.templateLock,\n\t\t\tstate.blockEditingModes,\n\t\t\tselect( STORE_NAME ).__unstableGetEditorMode( state ),\n\t\t\tgetSectionRootClientId( state ),\n\t\t];\n\t};\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,KAAK,QAAQ,mBAAmB;AACzC,SAASA,KAAK,IAAIC,YAAY,QAAQ,+CAA+C;;AAErF;AACA;AACA;AACA,SAASC,sBAAsB,QAAQ,gBAAgB;AACvD,SAASC,MAAM,QAAQ,gBAAgB;AACvC,SAASC,UAAU,QAAQ,aAAa;AACxC,SAASC,sBAAsB,QAAQ,qBAAqB;AAE5D,OAAO,MAAMC,UAAU,GAAGC,MAAM,CAAE,YAAa,CAAC;AAChD,MAAMC,kBAAkB,GAAG,IAAIC,OAAO,CAAC,CAAC;AACxC,MAAMC,eAAe,GAAG,IAAID,OAAO,CAAC,CAAC;AAErC,SAASE,YAAYA,CAAEC,OAAO,EAAG;EAChC,MAAMC,MAAM,GAAGb,K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AACC,QAAQ,CAACE,mCAAmC,EAClDH,KAAK,CAACC,QAAQ,CAACG,4BAA4B,EAC3CJ,KAAK,CAACC,QAAQ,CAAEjD,sBAAsB,CAAE,GAAI+C,MAAO,CAAC,EACpDC,KAAK,CAACK,aAAa,EACnBpD,MAAM,CAAE8C,MAAM,CAAE7C,UAAW,CAAE,CAAC,CAACoD,iBAAiB,CAAC,CAAC,CAClD;AACF,CAAC;AAED,OAAO,MAAMC,4BAA4B,GACtCR,MAAM,IAAM,CAAEC,KAAK,EAAEQ,YAAY,KAAM;EACxC,OAAO,CACNR,KAAK,CAACS,iBAAiB,CAAED,YAAY,CAAE,EACvCR,KAAK,CAACrC,MAAM,CAAC+C,UAAU,CAACnC,GAAG,CAAEiC,YAAa,CAAC,EAC3CR,KAAK,CAACC,QAAQ,CAACX,iBAAiB,EAChCU,KAAK,CAACC,QAAQ,CAACU,YAAY,EAC3BX,KAAK,CAACY,iBAAiB,EACvBb,MAAM,CAAE7C,UAAW,CAAC,CAAC2D,uBAAuB,CAAEb,KAAM,CAAC,EACrD7C,sBAAsB,CAAE6C,KAAM,CAAC,CAC/B;AACF,CAAC","ignoreList":[]}
|
|
@@ -113,41 +113,45 @@ function isScrollable(element) {
|
|
|
113
113
|
const style = window.getComputedStyle(element);
|
|
114
114
|
return style.overflowX === 'auto' || style.overflowX === 'scroll' || style.overflowY === 'auto' || style.overflowY === 'scroll';
|
|
115
115
|
}
|
|
116
|
-
|
|
116
|
+
export const WITH_OVERFLOW_ELEMENT_BLOCKS = ['core/navigation'];
|
|
117
117
|
/**
|
|
118
|
-
* Returns the
|
|
119
|
-
*
|
|
120
|
-
* Visible nested elements, including elements that overflow the parent, are
|
|
121
|
-
* taken into account.
|
|
122
|
-
*
|
|
123
|
-
* This function is useful for calculating the visible area of a block that
|
|
124
|
-
* contains nested elements that overflow the block, e.g. the Navigation block,
|
|
125
|
-
* which can contain overflowing Submenu blocks.
|
|
118
|
+
* Returns the bounding rectangle of an element, with special handling for blocks
|
|
119
|
+
* that have visible overflowing children (defined in WITH_OVERFLOW_ELEMENT_BLOCKS).
|
|
126
120
|
*
|
|
121
|
+
* For blocks like Navigation that can have overflowing elements (e.g. submenus),
|
|
122
|
+
* this function calculates the combined bounds of both the parent and its visible
|
|
123
|
+
* children. The returned rect may extend beyond the viewport.
|
|
127
124
|
* The returned rect represents the full extent of the element and its visible
|
|
128
125
|
* children, which may extend beyond the viewport.
|
|
129
126
|
*
|
|
130
127
|
* @param {Element} element Element.
|
|
131
128
|
* @return {DOMRect} Bounding client rect of the element and its visible children.
|
|
132
129
|
*/
|
|
133
|
-
export function
|
|
130
|
+
export function getElementBounds(element) {
|
|
134
131
|
const viewport = element.ownerDocument.defaultView;
|
|
135
132
|
if (!viewport) {
|
|
136
133
|
return new window.DOMRectReadOnly();
|
|
137
134
|
}
|
|
138
135
|
let bounds = element.getBoundingClientRect();
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
136
|
+
const dataType = element.getAttribute('data-type');
|
|
137
|
+
|
|
138
|
+
/*
|
|
139
|
+
* For blocks with overflowing elements (like Navigation), include the bounds
|
|
140
|
+
* of visible children that extend beyond the parent container.
|
|
141
|
+
*/
|
|
142
|
+
if (dataType && WITH_OVERFLOW_ELEMENT_BLOCKS.includes(dataType)) {
|
|
143
|
+
const stack = [element];
|
|
144
|
+
let currentElement;
|
|
145
|
+
while (currentElement = stack.pop()) {
|
|
146
|
+
// Children won’t affect bounds unless the element is not scrollable.
|
|
147
|
+
if (!isScrollable(currentElement)) {
|
|
148
|
+
for (const child of currentElement.children) {
|
|
149
|
+
if (isElementVisible(child)) {
|
|
150
|
+
const childBounds = child.getBoundingClientRect();
|
|
151
|
+
bounds = rectUnion(bounds, childBounds);
|
|
152
|
+
stack.push(child);
|
|
153
|
+
}
|
|
148
154
|
}
|
|
149
|
-
bounds = rectUnion(bounds, childBounds);
|
|
150
|
-
stack.push(child);
|
|
151
155
|
}
|
|
152
156
|
}
|
|
153
157
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BLOCK_SELECTOR","APPENDER_SELECTOR","BLOCK_APPENDER_CLASS","isInSameBlock","a","b","closest","isInsideRootBlock","blockElement","element","parentBlock","join","getBlockClientId","node","nodeType","ELEMENT_NODE","parentNode","elementNode","blockNode","id","slice","length","rectUnion","rect1","rect2","left","Math","min","right","max","bottom","top","window","DOMRectReadOnly","isElementVisible","viewport","ownerDocument","defaultView","classList","contains","bounds","getBoundingClientRect","width","height","checkVisibility","opacityProperty","contentVisibilityAuto","visibilityProperty","style","getComputedStyle","display","visibility","opacity","isScrollable","overflowX","overflowY","getVisibleElementBounds","stack","currentElement","pop","child","children","childBounds","push","innerWidth"],"sources":["@wordpress/block-editor/src/utils/dom.js"],"sourcesContent":["const BLOCK_SELECTOR = '.block-editor-block-list__block';\nconst APPENDER_SELECTOR = '.block-list-appender';\nconst BLOCK_APPENDER_CLASS = '.block-editor-button-block-appender';\n\n/**\n * Returns true if two elements are contained within the same block.\n *\n * @param {Element} a First element.\n * @param {Element} b Second element.\n *\n * @return {boolean} Whether elements are in the same block.\n */\nexport function isInSameBlock( a, b ) {\n\treturn a.closest( BLOCK_SELECTOR ) === b.closest( BLOCK_SELECTOR );\n}\n\n/**\n * Returns true if an element is considered part of the block and not its inner\n * blocks or appender.\n *\n * @param {Element} blockElement Block container element.\n * @param {Element} element Element.\n *\n * @return {boolean} Whether an element is considered part of the block and not\n * its inner blocks or appender.\n */\nexport function isInsideRootBlock( blockElement, element ) {\n\tconst parentBlock = element.closest(\n\t\t[ BLOCK_SELECTOR, APPENDER_SELECTOR, BLOCK_APPENDER_CLASS ].join( ',' )\n\t);\n\treturn parentBlock === blockElement;\n}\n\n/**\n * Finds the block client ID given any DOM node inside the block.\n *\n * @param {Node?} node DOM node.\n *\n * @return {string|undefined} Client ID or undefined if the node is not part of\n * a block.\n */\nexport function getBlockClientId( node ) {\n\twhile ( node && node.nodeType !== node.ELEMENT_NODE ) {\n\t\tnode = node.parentNode;\n\t}\n\n\tif ( ! node ) {\n\t\treturn;\n\t}\n\n\tconst elementNode = /** @type {Element} */ ( node );\n\tconst blockNode = elementNode.closest( BLOCK_SELECTOR );\n\n\tif ( ! blockNode ) {\n\t\treturn;\n\t}\n\n\treturn blockNode.id.slice( 'block-'.length );\n}\n\n/**\n * Calculates the union of two rectangles.\n *\n * @param {DOMRect} rect1 First rectangle.\n * @param {DOMRect} rect2 Second rectangle.\n * @return {DOMRect} Union of the two rectangles.\n */\nexport function rectUnion( rect1, rect2 ) {\n\tconst left = Math.min( rect1.left, rect2.left );\n\tconst right = Math.max( rect1.right, rect2.right );\n\tconst bottom = Math.max( rect1.bottom, rect2.bottom );\n\tconst top = Math.min( rect1.top, rect2.top );\n\n\treturn new window.DOMRectReadOnly( left, top, right - left, bottom - top );\n}\n\n/**\n * Returns whether an element is visible.\n *\n * @param {Element} element Element.\n * @return {boolean} Whether the element is visible.\n */\nfunction isElementVisible( element ) {\n\tconst viewport = element.ownerDocument.defaultView;\n\tif ( ! viewport ) {\n\t\treturn false;\n\t}\n\n\t// Check for <VisuallyHidden> component.\n\tif ( element.classList.contains( 'components-visually-hidden' ) ) {\n\t\treturn false;\n\t}\n\n\tconst bounds = element.getBoundingClientRect();\n\tif ( bounds.width === 0 || bounds.height === 0 ) {\n\t\treturn false;\n\t}\n\n\t// Older browsers, e.g. Safari < 17.4 may not support the `checkVisibility` method.\n\tif ( element.checkVisibility ) {\n\t\treturn element.checkVisibility?.( {\n\t\t\topacityProperty: true,\n\t\t\tcontentVisibilityAuto: true,\n\t\t\tvisibilityProperty: true,\n\t\t} );\n\t}\n\n\tconst style = viewport.getComputedStyle( element );\n\n\tif (\n\t\tstyle.display === 'none' ||\n\t\tstyle.visibility === 'hidden' ||\n\t\tstyle.opacity === '0'\n\t) {\n\t\treturn false;\n\t}\n\n\treturn true;\n}\n\n/**\n * Checks if the element is scrollable.\n *\n * @param {Element} element Element.\n * @return {boolean} True if the element is scrollable.\n */\nfunction isScrollable( element ) {\n\tconst style = window.getComputedStyle( element );\n\treturn (\n\t\tstyle.overflowX === 'auto' ||\n\t\tstyle.overflowX === 'scroll' ||\n\t\tstyle.overflowY === 'auto' ||\n\t\tstyle.overflowY === 'scroll'\n\t);\n}\n\n/**\n * Returns the rect of the element including all visible nested elements.\n *\n * Visible nested elements, including elements that overflow the parent, are\n * taken into account.\n *\n * This function is useful for calculating the visible area of a block that\n * contains nested elements that overflow the block, e.g. the Navigation block,\n * which can contain overflowing Submenu blocks.\n *\n * The returned rect represents the full extent of the element and its visible\n * children, which may extend beyond the viewport.\n *\n * @param {Element} element Element.\n * @return {DOMRect} Bounding client rect of the element and its visible children.\n */\nexport function getVisibleElementBounds( element ) {\n\tconst viewport = element.ownerDocument.defaultView;\n\n\tif ( ! viewport ) {\n\t\treturn new window.DOMRectReadOnly();\n\t}\n\n\tlet bounds = element.getBoundingClientRect();\n\tconst stack = [ element ];\n\tlet currentElement;\n\n\twhile ( ( currentElement = stack.pop() ) ) {\n\t\tfor ( const child of currentElement.children ) {\n\t\t\tif ( isElementVisible( child ) ) {\n\t\t\t\tlet childBounds = child.getBoundingClientRect();\n\t\t\t\t// If the parent is scrollable, use parent's scrollable bounds.\n\t\t\t\tif ( isScrollable( currentElement ) ) {\n\t\t\t\t\tchildBounds = currentElement.getBoundingClientRect();\n\t\t\t\t}\n\t\t\t\tbounds = rectUnion( bounds, childBounds );\n\t\t\t\tstack.push( child );\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Take into account the outer horizontal limits of the container in which\n\t * an element is supposed to be \"visible\". For example, if an element is\n\t * positioned -10px to the left of the window x value (0), this function\n\t * discounts the negative overhang because it's not visible and therefore\n\t * not to be counted in the visibility calculations. Top and bottom values\n\t * are not accounted for to accommodate vertical scroll.\n\t */\n\tconst left = Math.max( bounds.left, 0 );\n\tconst right = Math.min( bounds.right, viewport.innerWidth );\n\tbounds = new window.DOMRectReadOnly(\n\t\tleft,\n\t\tbounds.top,\n\t\tright - left,\n\t\tbounds.height\n\t);\n\n\treturn bounds;\n}\n"],"mappings":"AAAA,MAAMA,cAAc,GAAG,iCAAiC;AACxD,MAAMC,iBAAiB,GAAG,sBAAsB;AAChD,MAAMC,oBAAoB,GAAG,qCAAqC;;AAElE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAAEC,CAAC,EAAEC,CAAC,EAAG;EACrC,OAAOD,CAAC,CAACE,OAAO,CAAEN,cAAe,CAAC,KAAKK,CAAC,CAACC,OAAO,CAAEN,cAAe,CAAC;AACnE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASO,iBAAiBA,CAAEC,YAAY,EAAEC,OAAO,EAAG;EAC1D,MAAMC,WAAW,GAAGD,OAAO,CAACH,OAAO,CAClC,CAAEN,cAAc,EAAEC,iBAAiB,EAAEC,oBAAoB,CAAE,CAACS,IAAI,CAAE,GAAI,CACvE,CAAC;EACD,OAAOD,WAAW,KAAKF,YAAY;AACpC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASI,gBAAgBA,CAAEC,IAAI,EAAG;EACxC,OAAQA,IAAI,IAAIA,IAAI,CAACC,QAAQ,KAAKD,IAAI,CAACE,YAAY,EAAG;IACrDF,IAAI,GAAGA,IAAI,CAACG,UAAU;EACvB;EAEA,IAAK,CAAEH,IAAI,EAAG;IACb;EACD;EAEA,MAAMI,WAAW,GAAG,sBAAyBJ,IAAM;EACnD,MAAMK,SAAS,GAAGD,WAAW,CAACX,OAAO,CAAEN,cAAe,CAAC;EAEvD,IAAK,CAAEkB,SAAS,EAAG;IAClB;EACD;EAEA,OAAOA,SAAS,CAACC,EAAE,CAACC,KAAK,CAAE,QAAQ,CAACC,MAAO,CAAC;AAC7C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,O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Ae,CAAC,EAAG;UACrCI,WAAW,GAAGJ,cAAc,CAACjB,qBAAqB,CAAC,CAAC;QACrD;QACAD,MAAM,GAAGlB,SAAS,CAAEkB,MAAM,EAAEsB,WAAY,CAAC;QACzCL,KAAK,CAACM,IAAI,CAAEH,KAAM,CAAC;MACpB;IACD;EACD;;EAEA;AACD;AACA;AACA;AACA;AACA;AACA;AACA;EACC,MAAMnC,IAAI,GAAGC,IAAI,CAACG,GAAG,CAAEW,MAAM,CAACf,IAAI,EAAE,CAAE,CAAC;EACvC,MAAMG,KAAK,GAAGF,IAAI,CAACC,GAAG,CAAEa,MAAM,CAACZ,KAAK,EAAEO,QAAQ,CAAC6B,UAAW,CAAC;EAC3DxB,MAAM,GAAG,IAAIR,MAAM,CAACC,eAAe,CAClCR,IAAI,EACJe,MAAM,CAACT,GAAG,EACVH,KAAK,GAAGH,IAAI,EACZe,MAAM,CAACG,MACR,CAAC;EAED,OAAOH,MAAM;AACd","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["BLOCK_SELECTOR","APPENDER_SELECTOR","BLOCK_APPENDER_CLASS","isInSameBlock","a","b","closest","isInsideRootBlock","blockElement","element","parentBlock","join","getBlockClientId","node","nodeType","ELEMENT_NODE","parentNode","elementNode","blockNode","id","slice","length","rectUnion","rect1","rect2","left","Math","min","right","max","bottom","top","window","DOMRectReadOnly","isElementVisible","viewport","ownerDocument","defaultView","classList","contains","bounds","getBoundingClientRect","width","height","checkVisibility","opacityProperty","contentVisibilityAuto","visibilityProperty","style","getComputedStyle","display","visibility","opacity","isScrollable","overflowX","overflowY","WITH_OVERFLOW_ELEMENT_BLOCKS","getElementBounds","dataType","getAttribute","includes","stack","currentElement","pop","child","children","childBounds","push","innerWidth"],"sources":["@wordpress/block-editor/src/utils/dom.js"],"sourcesContent":["const BLOCK_SELECTOR = '.block-editor-block-list__block';\nconst APPENDER_SELECTOR = '.block-list-appender';\nconst BLOCK_APPENDER_CLASS = '.block-editor-button-block-appender';\n\n/**\n * Returns true if two elements are contained within the same block.\n *\n * @param {Element} a First element.\n * @param {Element} b Second element.\n *\n * @return {boolean} Whether elements are in the same block.\n */\nexport function isInSameBlock( a, b ) {\n\treturn a.closest( BLOCK_SELECTOR ) === b.closest( BLOCK_SELECTOR );\n}\n\n/**\n * Returns true if an element is considered part of the block and not its inner\n * blocks or appender.\n *\n * @param {Element} blockElement Block container element.\n * @param {Element} element Element.\n *\n * @return {boolean} Whether an element is considered part of the block and not\n * its inner blocks or appender.\n */\nexport function isInsideRootBlock( blockElement, element ) {\n\tconst parentBlock = element.closest(\n\t\t[ BLOCK_SELECTOR, APPENDER_SELECTOR, BLOCK_APPENDER_CLASS ].join( ',' )\n\t);\n\treturn parentBlock === blockElement;\n}\n\n/**\n * Finds the block client ID given any DOM node inside the block.\n *\n * @param {Node?} node DOM node.\n *\n * @return {string|undefined} Client ID or undefined if the node is not part of\n * a block.\n */\nexport function getBlockClientId( node ) {\n\twhile ( node && node.nodeType !== node.ELEMENT_NODE ) {\n\t\tnode = node.parentNode;\n\t}\n\n\tif ( ! node ) {\n\t\treturn;\n\t}\n\n\tconst elementNode = /** @type {Element} */ ( node );\n\tconst blockNode = elementNode.closest( BLOCK_SELECTOR );\n\n\tif ( ! blockNode ) {\n\t\treturn;\n\t}\n\n\treturn blockNode.id.slice( 'block-'.length );\n}\n\n/**\n * Calculates the union of two rectangles.\n *\n * @param {DOMRect} rect1 First rectangle.\n * @param {DOMRect} rect2 Second rectangle.\n * @return {DOMRect} Union of the two rectangles.\n */\nexport function rectUnion( rect1, rect2 ) {\n\tconst left = Math.min( rect1.left, rect2.left );\n\tconst right = Math.max( rect1.right, rect2.right );\n\tconst bottom = Math.max( rect1.bottom, rect2.bottom );\n\tconst top = Math.min( rect1.top, rect2.top );\n\n\treturn new window.DOMRectReadOnly( left, top, right - left, bottom - top );\n}\n\n/**\n * Returns whether an element is visible.\n *\n * @param {Element} element Element.\n * @return {boolean} Whether the element is visible.\n */\nfunction isElementVisible( element ) {\n\tconst viewport = element.ownerDocument.defaultView;\n\tif ( ! viewport ) {\n\t\treturn false;\n\t}\n\n\t// Check for <VisuallyHidden> component.\n\tif ( element.classList.contains( 'components-visually-hidden' ) ) {\n\t\treturn false;\n\t}\n\n\tconst bounds = element.getBoundingClientRect();\n\tif ( bounds.width === 0 || bounds.height === 0 ) {\n\t\treturn false;\n\t}\n\n\t// Older browsers, e.g. Safari < 17.4 may not support the `checkVisibility` method.\n\tif ( element.checkVisibility ) {\n\t\treturn element.checkVisibility?.( {\n\t\t\topacityProperty: true,\n\t\t\tcontentVisibilityAuto: true,\n\t\t\tvisibilityProperty: true,\n\t\t} );\n\t}\n\n\tconst style = viewport.getComputedStyle( element );\n\n\tif (\n\t\tstyle.display === 'none' ||\n\t\tstyle.visibility === 'hidden' ||\n\t\tstyle.opacity === '0'\n\t) {\n\t\treturn false;\n\t}\n\n\treturn true;\n}\n\n/**\n * Checks if the element is scrollable.\n *\n * @param {Element} element Element.\n * @return {boolean} True if the element is scrollable.\n */\nfunction isScrollable( element ) {\n\tconst style = window.getComputedStyle( element );\n\treturn (\n\t\tstyle.overflowX === 'auto' ||\n\t\tstyle.overflowX === 'scroll' ||\n\t\tstyle.overflowY === 'auto' ||\n\t\tstyle.overflowY === 'scroll'\n\t);\n}\n\nexport const WITH_OVERFLOW_ELEMENT_BLOCKS = [ 'core/navigation' ];\n/**\n * Returns the bounding rectangle of an element, with special handling for blocks\n * that have visible overflowing children (defined in WITH_OVERFLOW_ELEMENT_BLOCKS).\n *\n * For blocks like Navigation that can have overflowing elements (e.g. submenus),\n * this function calculates the combined bounds of both the parent and its visible\n * children. The returned rect may extend beyond the viewport.\n * The returned rect represents the full extent of the element and its visible\n * children, which may extend beyond the viewport.\n *\n * @param {Element} element Element.\n * @return {DOMRect} Bounding client rect of the element and its visible children.\n */\nexport function getElementBounds( element ) {\n\tconst viewport = element.ownerDocument.defaultView;\n\n\tif ( ! viewport ) {\n\t\treturn new window.DOMRectReadOnly();\n\t}\n\n\tlet bounds = element.getBoundingClientRect();\n\tconst dataType = element.getAttribute( 'data-type' );\n\n\t/*\n\t * For blocks with overflowing elements (like Navigation), include the bounds\n\t * of visible children that extend beyond the parent container.\n\t */\n\tif ( dataType && WITH_OVERFLOW_ELEMENT_BLOCKS.includes( dataType ) ) {\n\t\tconst stack = [ element ];\n\t\tlet currentElement;\n\n\t\twhile ( ( currentElement = stack.pop() ) ) {\n\t\t\t// Children won’t affect bounds unless the element is not scrollable.\n\t\t\tif ( ! isScrollable( currentElement ) ) {\n\t\t\t\tfor ( const child of currentElement.children ) {\n\t\t\t\t\tif ( isElementVisible( child ) ) {\n\t\t\t\t\t\tconst childBounds = child.getBoundingClientRect();\n\t\t\t\t\t\tbounds = rectUnion( bounds, childBounds );\n\t\t\t\t\t\tstack.push( child );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Take into account the outer horizontal limits of the container in which\n\t * an element is supposed to be \"visible\". For example, if an element is\n\t * positioned -10px to the left of the window x value (0), this function\n\t * discounts the negative overhang because it's not visible and therefore\n\t * not to be counted in the visibility calculations. Top and bottom values\n\t * are not accounted for to accommodate vertical scroll.\n\t */\n\tconst left = Math.max( bounds.left, 0 );\n\tconst right = Math.min( bounds.right, viewport.innerWidth );\n\tbounds = new window.DOMRectReadOnly(\n\t\tleft,\n\t\tbounds.top,\n\t\tright - left,\n\t\tbounds.height\n\t);\n\n\treturn bounds;\n}\n"],"mappings":"AAAA,MAAMA,cAAc,GAAG,iCAAiC;AACxD,MAAMC,iBAAiB,GAAG,sBAAsB;AAChD,MAAMC,oBAAoB,GAAG,qCAAqC;;AAElE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAAEC,CAAC,EAAEC,CAAC,EAAG;EACrC,OAAOD,CAAC,CAACE,OAAO,CAAEN,cAAe,CAAC,KAAKK,CAAC,CAACC,OAAO,CAAEN,cAAe,CAAC;AACnE;;AAEA;AACA;AAC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AAEW,MAAM,CAACf,IAAI,EAAE,CAAE,CAAC;EACvC,MAAMG,KAAK,GAAGF,IAAI,CAACC,GAAG,CAAEa,MAAM,CAACZ,KAAK,EAAEO,QAAQ,CAACiC,UAAW,CAAC;EAC3D5B,MAAM,GAAG,IAAIR,MAAM,CAACC,eAAe,CAClCR,IAAI,EACJe,MAAM,CAACT,GAAG,EACVH,KAAK,GAAGH,IAAI,EACZe,MAAM,CAACG,MACR,CAAC;EAED,OAAOH,MAAM;AACd","ignoreList":[]}
|
|
@@ -677,8 +677,6 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
677
677
|
}
|
|
678
678
|
.block-editor-default-block-appender .block-editor-default-block-appender__content {
|
|
679
679
|
opacity: 0.62;
|
|
680
|
-
}
|
|
681
|
-
:where(body .is-layout-constrained) .block-editor-default-block-appender > :first-child, :where(.wp-site-blocks) .block-editor-default-block-appender > :first-child {
|
|
682
680
|
margin-block-start: 0;
|
|
683
681
|
margin-block-end: 0;
|
|
684
682
|
}
|
|
@@ -697,21 +695,21 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
697
695
|
background: var(--wp-admin-theme-color);
|
|
698
696
|
}
|
|
699
697
|
|
|
700
|
-
.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,
|
|
701
698
|
.block-editor-default-block-appender .block-editor-inserter {
|
|
702
699
|
position: absolute;
|
|
703
700
|
top: 0;
|
|
704
701
|
left: 0;
|
|
705
702
|
line-height: 0;
|
|
706
703
|
}
|
|
707
|
-
.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter:disabled,
|
|
708
704
|
.block-editor-default-block-appender .block-editor-inserter:disabled {
|
|
709
705
|
display: none;
|
|
710
706
|
}
|
|
711
707
|
|
|
712
708
|
/**
|
|
713
|
-
* Fixed position appender.
|
|
714
|
-
*
|
|
709
|
+
* Fixed position appender (right bottom corner).
|
|
710
|
+
*
|
|
711
|
+
* These styles apply to all in-canvas inserters. All in-canvas inserters always
|
|
712
|
+
* exist within a block.
|
|
715
713
|
*/
|
|
716
714
|
.block-editor-block-list__block .block-list-appender {
|
|
717
715
|
position: absolute;
|
|
@@ -725,6 +723,9 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
725
723
|
margin: 0;
|
|
726
724
|
line-height: 0;
|
|
727
725
|
}
|
|
726
|
+
.block-editor-block-list__block .block-list-appender .block-editor-inserter:disabled {
|
|
727
|
+
display: none;
|
|
728
|
+
}
|
|
728
729
|
.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender {
|
|
729
730
|
height: 24px;
|
|
730
731
|
}
|
|
@@ -776,7 +777,7 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
776
777
|
|
|
777
778
|
.block-editor-iframe__html {
|
|
778
779
|
transform-origin: top center;
|
|
779
|
-
transition: all 400ms cubic-bezier(0.46, 0.03, 0.52, 0.96), transform 0s, scale 0s, padding 0s;
|
|
780
|
+
transition: all 400ms cubic-bezier(0.46, 0.03, 0.52, 0.96), transform 0s, scale 0s, padding 0s, translate 0s;
|
|
780
781
|
}
|
|
781
782
|
@media (prefers-reduced-motion: reduce) {
|
|
782
783
|
.block-editor-iframe__html {
|
|
@@ -785,7 +786,14 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
785
786
|
}
|
|
786
787
|
}
|
|
787
788
|
.block-editor-iframe__html.zoom-out-animation {
|
|
788
|
-
|
|
789
|
+
position: fixed;
|
|
790
|
+
right: 0;
|
|
791
|
+
left: 0;
|
|
792
|
+
top: calc(-1 * var(--wp-block-editor-iframe-zoom-out-scroll-top, 0));
|
|
793
|
+
bottom: 0;
|
|
794
|
+
translate: 0 calc(var(--wp-block-editor-iframe-zoom-out-scroll-top, 0) - var(--wp-block-editor-iframe-zoom-out-scroll-top-next, 0));
|
|
795
|
+
overflow-y: scroll;
|
|
796
|
+
transition: all 400ms cubic-bezier(0.46, 0.03, 0.52, 0.96), transform 0s, top 0s, bottom 0s, left 0s, right 0s;
|
|
789
797
|
}
|
|
790
798
|
@media (prefers-reduced-motion: reduce) {
|
|
791
799
|
.block-editor-iframe__html.zoom-out-animation {
|
|
@@ -859,13 +867,6 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
859
867
|
.rich-text:focus {
|
|
860
868
|
outline: none;
|
|
861
869
|
}
|
|
862
|
-
.rich-text:focus [data-rich-text-format-boundary] {
|
|
863
|
-
border-radius: 2px;
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
.block-editor-rich-text__editable > p:first-child {
|
|
867
|
-
margin-top: 0;
|
|
868
|
-
}
|
|
869
870
|
|
|
870
871
|
figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before {
|
|
871
872
|
opacity: 0.8;
|
|
@@ -879,6 +880,20 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|
|
879
880
|
background: yellow;
|
|
880
881
|
}
|
|
881
882
|
|
|
883
|
+
[data-rich-text-comment],
|
|
884
|
+
[data-rich-text-format-boundary] {
|
|
885
|
+
border-radius: 2px;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
[data-rich-text-comment] {
|
|
889
|
+
background-color: currentColor;
|
|
890
|
+
}
|
|
891
|
+
[data-rich-text-comment] span {
|
|
892
|
+
filter: invert(100%);
|
|
893
|
+
color: currentColor;
|
|
894
|
+
padding: 0 2px;
|
|
895
|
+
}
|
|
896
|
+
|
|
882
897
|
.block-editor-warning {
|
|
883
898
|
align-items: center;
|
|
884
899
|
display: flex;
|
package/build-style/content.css
CHANGED
|
@@ -677,8 +677,6 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
677
677
|
}
|
|
678
678
|
.block-editor-default-block-appender .block-editor-default-block-appender__content {
|
|
679
679
|
opacity: 0.62;
|
|
680
|
-
}
|
|
681
|
-
:where(body .is-layout-constrained) .block-editor-default-block-appender > :first-child, :where(.wp-site-blocks) .block-editor-default-block-appender > :first-child {
|
|
682
680
|
margin-block-start: 0;
|
|
683
681
|
margin-block-end: 0;
|
|
684
682
|
}
|
|
@@ -697,21 +695,21 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
697
695
|
background: var(--wp-admin-theme-color);
|
|
698
696
|
}
|
|
699
697
|
|
|
700
|
-
.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,
|
|
701
698
|
.block-editor-default-block-appender .block-editor-inserter {
|
|
702
699
|
position: absolute;
|
|
703
700
|
top: 0;
|
|
704
701
|
right: 0;
|
|
705
702
|
line-height: 0;
|
|
706
703
|
}
|
|
707
|
-
.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter:disabled,
|
|
708
704
|
.block-editor-default-block-appender .block-editor-inserter:disabled {
|
|
709
705
|
display: none;
|
|
710
706
|
}
|
|
711
707
|
|
|
712
708
|
/**
|
|
713
|
-
* Fixed position appender.
|
|
714
|
-
*
|
|
709
|
+
* Fixed position appender (right bottom corner).
|
|
710
|
+
*
|
|
711
|
+
* These styles apply to all in-canvas inserters. All in-canvas inserters always
|
|
712
|
+
* exist within a block.
|
|
715
713
|
*/
|
|
716
714
|
.block-editor-block-list__block .block-list-appender {
|
|
717
715
|
position: absolute;
|
|
@@ -725,6 +723,9 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
725
723
|
margin: 0;
|
|
726
724
|
line-height: 0;
|
|
727
725
|
}
|
|
726
|
+
.block-editor-block-list__block .block-list-appender .block-editor-inserter:disabled {
|
|
727
|
+
display: none;
|
|
728
|
+
}
|
|
728
729
|
.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender {
|
|
729
730
|
height: 24px;
|
|
730
731
|
}
|
|
@@ -776,7 +777,7 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
776
777
|
|
|
777
778
|
.block-editor-iframe__html {
|
|
778
779
|
transform-origin: top center;
|
|
779
|
-
transition: all 400ms cubic-bezier(0.46, 0.03, 0.52, 0.96), transform 0s, scale 0s, padding 0s;
|
|
780
|
+
transition: all 400ms cubic-bezier(0.46, 0.03, 0.52, 0.96), transform 0s, scale 0s, padding 0s, translate 0s;
|
|
780
781
|
}
|
|
781
782
|
@media (prefers-reduced-motion: reduce) {
|
|
782
783
|
.block-editor-iframe__html {
|
|
@@ -785,7 +786,14 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
785
786
|
}
|
|
786
787
|
}
|
|
787
788
|
.block-editor-iframe__html.zoom-out-animation {
|
|
788
|
-
|
|
789
|
+
position: fixed;
|
|
790
|
+
left: 0;
|
|
791
|
+
right: 0;
|
|
792
|
+
top: calc(-1 * var(--wp-block-editor-iframe-zoom-out-scroll-top, 0));
|
|
793
|
+
bottom: 0;
|
|
794
|
+
translate: 0 calc(var(--wp-block-editor-iframe-zoom-out-scroll-top, 0) - var(--wp-block-editor-iframe-zoom-out-scroll-top-next, 0));
|
|
795
|
+
overflow-y: scroll;
|
|
796
|
+
transition: all 400ms cubic-bezier(0.46, 0.03, 0.52, 0.96), transform 0s, top 0s, bottom 0s, right 0s, left 0s;
|
|
789
797
|
}
|
|
790
798
|
@media (prefers-reduced-motion: reduce) {
|
|
791
799
|
.block-editor-iframe__html.zoom-out-animation {
|
|
@@ -859,13 +867,6 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
859
867
|
.rich-text:focus {
|
|
860
868
|
outline: none;
|
|
861
869
|
}
|
|
862
|
-
.rich-text:focus [data-rich-text-format-boundary] {
|
|
863
|
-
border-radius: 2px;
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
.block-editor-rich-text__editable > p:first-child {
|
|
867
|
-
margin-top: 0;
|
|
868
|
-
}
|
|
869
870
|
|
|
870
871
|
figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before {
|
|
871
872
|
opacity: 0.8;
|
|
@@ -879,6 +880,20 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|
|
879
880
|
background: yellow;
|
|
880
881
|
}
|
|
881
882
|
|
|
883
|
+
[data-rich-text-comment],
|
|
884
|
+
[data-rich-text-format-boundary] {
|
|
885
|
+
border-radius: 2px;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
[data-rich-text-comment] {
|
|
889
|
+
background-color: currentColor;
|
|
890
|
+
}
|
|
891
|
+
[data-rich-text-comment] span {
|
|
892
|
+
filter: invert(100%);
|
|
893
|
+
color: currentColor;
|
|
894
|
+
padding: 0 2px;
|
|
895
|
+
}
|
|
896
|
+
|
|
882
897
|
.block-editor-warning {
|
|
883
898
|
align-items: center;
|
|
884
899
|
display: flex;
|
|
@@ -278,8 +278,8 @@ iframe[name=editor-canvas] {
|
|
|
278
278
|
width: 100%;
|
|
279
279
|
height: 100%;
|
|
280
280
|
display: block;
|
|
281
|
-
background-color: transparent;
|
|
282
281
|
transition: all 400ms cubic-bezier(0.46, 0.03, 0.52, 0.96);
|
|
282
|
+
background-color: #ddd;
|
|
283
283
|
}
|
|
284
284
|
@media (prefers-reduced-motion: reduce) {
|
|
285
285
|
iframe[name=editor-canvas] {
|
|
@@ -319,7 +319,8 @@ iframe[name=editor-canvas] {
|
|
|
319
319
|
color: #1e1e1e;
|
|
320
320
|
margin-bottom: 1.5em;
|
|
321
321
|
}
|
|
322
|
-
.block-editor-block-inspector .components-base-control:where(:not(:last-child))
|
|
322
|
+
.block-editor-block-inspector .components-base-control:where(:not(:last-child)),
|
|
323
|
+
.block-editor-block-inspector .components-radio-control:where(:not(:last-child)) {
|
|
323
324
|
margin-bottom: 16px;
|
|
324
325
|
}
|
|
325
326
|
.block-editor-block-inspector .components-focal-point-picker-control .components-base-control,
|
|
@@ -398,6 +399,16 @@ iframe[name=editor-canvas] {
|
|
|
398
399
|
pointer-events: all;
|
|
399
400
|
}
|
|
400
401
|
|
|
402
|
+
.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter {
|
|
403
|
+
position: absolute;
|
|
404
|
+
top: 0;
|
|
405
|
+
left: 0;
|
|
406
|
+
line-height: 0;
|
|
407
|
+
}
|
|
408
|
+
.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter:disabled {
|
|
409
|
+
display: none;
|
|
410
|
+
}
|
|
411
|
+
|
|
401
412
|
.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,
|
|
402
413
|
.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon {
|
|
403
414
|
background: #1e1e1e;
|
|
@@ -755,6 +766,81 @@ iframe[name=editor-canvas] {
|
|
|
755
766
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 3px rgba(0, 0, 0, 0.04), 0 6px 6px rgba(0, 0, 0, 0.03), 0 8px 8px rgba(0, 0, 0, 0.02);
|
|
756
767
|
}
|
|
757
768
|
|
|
769
|
+
.block-editor-block-manager__no-results {
|
|
770
|
+
font-style: italic;
|
|
771
|
+
padding: 24px 0;
|
|
772
|
+
text-align: center;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.block-editor-block-manager__search {
|
|
776
|
+
margin: 16px 0;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
.block-editor-block-manager__disabled-blocks-count {
|
|
780
|
+
border: 1px solid #ddd;
|
|
781
|
+
border-width: 1px 0;
|
|
782
|
+
box-shadow: 32px 0 0 0 #fff, -32px 0 0 0 #fff;
|
|
783
|
+
padding: 8px;
|
|
784
|
+
background-color: #fff;
|
|
785
|
+
text-align: center;
|
|
786
|
+
position: sticky;
|
|
787
|
+
top: -5px;
|
|
788
|
+
z-index: 2;
|
|
789
|
+
}
|
|
790
|
+
.block-editor-block-manager__disabled-blocks-count ~ .block-editor-block-manager__results .block-editor-block-manager__category-title {
|
|
791
|
+
top: 31px;
|
|
792
|
+
}
|
|
793
|
+
.block-editor-block-manager__disabled-blocks-count .is-link {
|
|
794
|
+
margin-right: 12px;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
.block-editor-block-manager__category {
|
|
798
|
+
margin: 0 0 24px 0;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
.block-editor-block-manager__category-title {
|
|
802
|
+
position: sticky;
|
|
803
|
+
top: -4px;
|
|
804
|
+
padding: 16px 0;
|
|
805
|
+
background-color: #fff;
|
|
806
|
+
z-index: 1;
|
|
807
|
+
}
|
|
808
|
+
.block-editor-block-manager__category-title .components-checkbox-control__label {
|
|
809
|
+
font-weight: 600;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
.block-editor-block-manager__checklist {
|
|
813
|
+
margin-top: 0;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
.block-editor-block-manager__category-title,
|
|
817
|
+
.block-editor-block-manager__checklist-item {
|
|
818
|
+
border-bottom: 1px solid #ddd;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
.block-editor-block-manager__checklist-item {
|
|
822
|
+
display: flex;
|
|
823
|
+
justify-content: space-between;
|
|
824
|
+
align-items: center;
|
|
825
|
+
margin-bottom: 0;
|
|
826
|
+
padding: 8px 16px 8px 0;
|
|
827
|
+
}
|
|
828
|
+
.components-modal__content .block-editor-block-manager__checklist-item.components-checkbox-control__input-container {
|
|
829
|
+
margin: 0 8px;
|
|
830
|
+
}
|
|
831
|
+
.block-editor-block-manager__checklist-item .block-editor-block-icon {
|
|
832
|
+
margin-left: 10px;
|
|
833
|
+
fill: #1e1e1e;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
.block-editor-block-manager__results {
|
|
837
|
+
border-top: 1px solid #ddd;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
.block-editor-block-manager__disabled-blocks-count + .block-editor-block-manager__results {
|
|
841
|
+
border-top-width: 0;
|
|
842
|
+
}
|
|
843
|
+
|
|
758
844
|
.block-editor-block-mover__move-button-container {
|
|
759
845
|
display: flex;
|
|
760
846
|
padding: 0;
|
|
@@ -816,6 +902,9 @@ iframe[name=editor-canvas] {
|
|
|
816
902
|
}
|
|
817
903
|
}
|
|
818
904
|
|
|
905
|
+
.components-button.block-editor-block-mover-button {
|
|
906
|
+
overflow: hidden;
|
|
907
|
+
}
|
|
819
908
|
.components-button.block-editor-block-mover-button::before {
|
|
820
909
|
content: "";
|
|
821
910
|
position: absolute;
|
|
@@ -3025,7 +3114,7 @@ iframe[name=editor-canvas] {
|
|
|
3025
3114
|
border-bottom: 1px solid #ddd;
|
|
3026
3115
|
display: flex;
|
|
3027
3116
|
justify-content: space-between;
|
|
3028
|
-
padding-left:
|
|
3117
|
+
padding-left: 8px;
|
|
3029
3118
|
}
|
|
3030
3119
|
|
|
3031
3120
|
.block-editor-tabbed-sidebar__close-button {
|
package/build-style/style.css
CHANGED
|
@@ -278,8 +278,8 @@ iframe[name=editor-canvas] {
|
|
|
278
278
|
width: 100%;
|
|
279
279
|
height: 100%;
|
|
280
280
|
display: block;
|
|
281
|
-
background-color: transparent;
|
|
282
281
|
transition: all 400ms cubic-bezier(0.46, 0.03, 0.52, 0.96);
|
|
282
|
+
background-color: #ddd;
|
|
283
283
|
}
|
|
284
284
|
@media (prefers-reduced-motion: reduce) {
|
|
285
285
|
iframe[name=editor-canvas] {
|
|
@@ -319,7 +319,8 @@ iframe[name=editor-canvas] {
|
|
|
319
319
|
color: #1e1e1e;
|
|
320
320
|
margin-bottom: 1.5em;
|
|
321
321
|
}
|
|
322
|
-
.block-editor-block-inspector .components-base-control:where(:not(:last-child))
|
|
322
|
+
.block-editor-block-inspector .components-base-control:where(:not(:last-child)),
|
|
323
|
+
.block-editor-block-inspector .components-radio-control:where(:not(:last-child)) {
|
|
323
324
|
margin-bottom: 16px;
|
|
324
325
|
}
|
|
325
326
|
.block-editor-block-inspector .components-focal-point-picker-control .components-base-control,
|
|
@@ -398,6 +399,16 @@ iframe[name=editor-canvas] {
|
|
|
398
399
|
pointer-events: all;
|
|
399
400
|
}
|
|
400
401
|
|
|
402
|
+
.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter {
|
|
403
|
+
position: absolute;
|
|
404
|
+
top: 0;
|
|
405
|
+
right: 0;
|
|
406
|
+
line-height: 0;
|
|
407
|
+
}
|
|
408
|
+
.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter:disabled {
|
|
409
|
+
display: none;
|
|
410
|
+
}
|
|
411
|
+
|
|
401
412
|
.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,
|
|
402
413
|
.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon {
|
|
403
414
|
background: #1e1e1e;
|
|
@@ -755,6 +766,81 @@ iframe[name=editor-canvas] {
|
|
|
755
766
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 3px rgba(0, 0, 0, 0.04), 0 6px 6px rgba(0, 0, 0, 0.03), 0 8px 8px rgba(0, 0, 0, 0.02);
|
|
756
767
|
}
|
|
757
768
|
|
|
769
|
+
.block-editor-block-manager__no-results {
|
|
770
|
+
font-style: italic;
|
|
771
|
+
padding: 24px 0;
|
|
772
|
+
text-align: center;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.block-editor-block-manager__search {
|
|
776
|
+
margin: 16px 0;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
.block-editor-block-manager__disabled-blocks-count {
|
|
780
|
+
border: 1px solid #ddd;
|
|
781
|
+
border-width: 1px 0;
|
|
782
|
+
box-shadow: -32px 0 0 0 #fff, 32px 0 0 0 #fff;
|
|
783
|
+
padding: 8px;
|
|
784
|
+
background-color: #fff;
|
|
785
|
+
text-align: center;
|
|
786
|
+
position: sticky;
|
|
787
|
+
top: -5px;
|
|
788
|
+
z-index: 2;
|
|
789
|
+
}
|
|
790
|
+
.block-editor-block-manager__disabled-blocks-count ~ .block-editor-block-manager__results .block-editor-block-manager__category-title {
|
|
791
|
+
top: 31px;
|
|
792
|
+
}
|
|
793
|
+
.block-editor-block-manager__disabled-blocks-count .is-link {
|
|
794
|
+
margin-left: 12px;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
.block-editor-block-manager__category {
|
|
798
|
+
margin: 0 0 24px 0;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
.block-editor-block-manager__category-title {
|
|
802
|
+
position: sticky;
|
|
803
|
+
top: -4px;
|
|
804
|
+
padding: 16px 0;
|
|
805
|
+
background-color: #fff;
|
|
806
|
+
z-index: 1;
|
|
807
|
+
}
|
|
808
|
+
.block-editor-block-manager__category-title .components-checkbox-control__label {
|
|
809
|
+
font-weight: 600;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
.block-editor-block-manager__checklist {
|
|
813
|
+
margin-top: 0;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
.block-editor-block-manager__category-title,
|
|
817
|
+
.block-editor-block-manager__checklist-item {
|
|
818
|
+
border-bottom: 1px solid #ddd;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
.block-editor-block-manager__checklist-item {
|
|
822
|
+
display: flex;
|
|
823
|
+
justify-content: space-between;
|
|
824
|
+
align-items: center;
|
|
825
|
+
margin-bottom: 0;
|
|
826
|
+
padding: 8px 0 8px 16px;
|
|
827
|
+
}
|
|
828
|
+
.components-modal__content .block-editor-block-manager__checklist-item.components-checkbox-control__input-container {
|
|
829
|
+
margin: 0 8px;
|
|
830
|
+
}
|
|
831
|
+
.block-editor-block-manager__checklist-item .block-editor-block-icon {
|
|
832
|
+
margin-right: 10px;
|
|
833
|
+
fill: #1e1e1e;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
.block-editor-block-manager__results {
|
|
837
|
+
border-top: 1px solid #ddd;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
.block-editor-block-manager__disabled-blocks-count + .block-editor-block-manager__results {
|
|
841
|
+
border-top-width: 0;
|
|
842
|
+
}
|
|
843
|
+
|
|
758
844
|
.block-editor-block-mover__move-button-container {
|
|
759
845
|
display: flex;
|
|
760
846
|
padding: 0;
|
|
@@ -816,6 +902,9 @@ iframe[name=editor-canvas] {
|
|
|
816
902
|
}
|
|
817
903
|
}
|
|
818
904
|
|
|
905
|
+
.components-button.block-editor-block-mover-button {
|
|
906
|
+
overflow: hidden;
|
|
907
|
+
}
|
|
819
908
|
.components-button.block-editor-block-mover-button::before {
|
|
820
909
|
content: "";
|
|
821
910
|
position: absolute;
|
|
@@ -3026,7 +3115,7 @@ iframe[name=editor-canvas] {
|
|
|
3026
3115
|
border-bottom: 1px solid #ddd;
|
|
3027
3116
|
display: flex;
|
|
3028
3117
|
justify-content: space-between;
|
|
3029
|
-
padding-right:
|
|
3118
|
+
padding-right: 8px;
|
|
3030
3119
|
}
|
|
3031
3120
|
|
|
3032
3121
|
.block-editor-tabbed-sidebar__close-button {
|