@wordpress/block-editor 12.16.0 → 12.16.1-next.79a6196f.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/LICENSE.md +1 -1
- package/README.md +3 -6
- package/build/components/block-canvas/index.js +0 -2
- package/build/components/block-canvas/index.js.map +1 -1
- package/build/components/block-card/index.js +1 -1
- package/build/components/block-card/index.js.map +1 -1
- package/build/components/block-draggable/draggable-chip.js +6 -1
- package/build/components/block-draggable/draggable-chip.js.map +1 -1
- package/build/components/block-draggable/index.js +76 -6
- package/build/components/block-draggable/index.js.map +1 -1
- package/build/components/block-draggable/index.native.js +0 -6
- package/build/components/block-draggable/index.native.js.map +1 -1
- package/build/components/block-draggable/use-scroll-when-dragging.native.js +1 -1
- package/build/components/block-draggable/use-scroll-when-dragging.native.js.map +1 -1
- package/build/components/block-editing-mode/index.js +2 -3
- package/build/components/block-editing-mode/index.js.map +1 -1
- package/build/components/block-inspector/index.js +1 -1
- package/build/components/block-inspector/index.js.map +1 -1
- package/build/components/block-list/block-list-item-cell.native.js +1 -0
- package/build/components/block-list/block-list-item-cell.native.js.map +1 -1
- package/build/components/block-list/block.js +245 -102
- package/build/components/block-list/block.js.map +1 -1
- package/build/components/block-list/block.native.js +46 -20
- package/build/components/block-list/block.native.js.map +1 -1
- package/build/components/block-list/index.native.js +3 -5
- package/build/components/block-list/index.native.js.map +1 -1
- package/build/components/block-list/private-block-context.js +14 -0
- package/build/components/block-list/private-block-context.js.map +1 -0
- package/build/components/block-list/use-block-props/index.js +33 -96
- package/build/components/block-list/use-block-props/index.js.map +1 -1
- package/build/components/block-list/use-in-between-inserter.js +3 -2
- package/build/components/block-list/use-in-between-inserter.js.map +1 -1
- package/build/components/block-list/use-scroll-upon-insertion.native.js +41 -0
- package/build/components/block-list/use-scroll-upon-insertion.native.js.map +1 -0
- package/build/components/block-lock/toolbar.js +21 -27
- package/build/components/block-lock/toolbar.js.map +1 -1
- package/build/components/block-mover/index.js +2 -1
- package/build/components/block-mover/index.js.map +1 -1
- package/build/components/block-patterns-list/index.js +4 -4
- package/build/components/block-patterns-list/index.js.map +1 -1
- package/build/components/block-switcher/index.js +4 -4
- package/build/components/block-switcher/index.js.map +1 -1
- package/build/components/block-toolbar/index.js +1 -2
- package/build/components/block-toolbar/index.js.map +1 -1
- package/build/components/block-tools/block-toolbar-popover.js +0 -2
- package/build/components/block-tools/block-toolbar-popover.js.map +1 -1
- package/build/components/block-variation-transforms/index.js +29 -2
- package/build/components/block-variation-transforms/index.js.map +1 -1
- package/build/components/border-radius-control/linked-button.js +1 -1
- package/build/components/border-radius-control/linked-button.js.map +1 -1
- package/build/components/colors/utils.js +10 -2
- package/build/components/colors/utils.js.map +1 -1
- package/build/components/colors/with-colors.js +6 -2
- package/build/components/colors/with-colors.js.map +1 -1
- package/build/components/font-sizes/utils.js +10 -2
- package/build/components/font-sizes/utils.js.map +1 -1
- package/build/components/global-styles/border-panel.js +2 -1
- package/build/components/global-styles/border-panel.js.map +1 -1
- package/build/components/global-styles/color-panel.js +2 -1
- package/build/components/global-styles/color-panel.js.map +1 -1
- package/build/components/global-styles/dimensions-panel.js +4 -3
- package/build/components/global-styles/dimensions-panel.js.map +1 -1
- package/build/components/global-styles/effects-panel.js +2 -1
- package/build/components/global-styles/effects-panel.js.map +1 -1
- package/build/components/global-styles/filters-panel.js +1 -4
- package/build/components/global-styles/filters-panel.js.map +1 -1
- package/build/components/global-styles/get-global-styles-changes.js +192 -0
- package/build/components/global-styles/get-global-styles-changes.js.map +1 -0
- package/build/components/global-styles/hooks.js +3 -2
- package/build/components/global-styles/hooks.js.map +1 -1
- package/build/components/global-styles/image-settings-panel.js +7 -1
- package/build/components/global-styles/image-settings-panel.js.map +1 -1
- package/build/components/global-styles/index.js +7 -0
- package/build/components/global-styles/index.js.map +1 -1
- package/build/components/global-styles/typography-panel.js +33 -15
- package/build/components/global-styles/typography-panel.js.map +1 -1
- package/build/components/global-styles/use-global-styles-output.js +22 -8
- package/build/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build/components/global-styles/utils.js +8 -1
- package/build/components/global-styles/utils.js.map +1 -1
- package/build/components/height-control/index.js +6 -2
- package/build/components/height-control/index.js.map +1 -1
- package/build/components/image-size-control/index.js +2 -2
- package/build/components/image-size-control/index.js.map +1 -1
- package/build/components/index.native.js +6 -5
- package/build/components/index.native.js.map +1 -1
- package/build/components/inner-blocks/index.js +61 -22
- package/build/components/inner-blocks/index.js.map +1 -1
- package/build/components/inner-blocks/index.native.js +18 -4
- package/build/components/inner-blocks/index.native.js.map +1 -1
- package/build/components/inner-blocks/use-inner-block-template-sync.js +5 -6
- package/build/components/inner-blocks/use-inner-block-template-sync.js.map +1 -1
- package/build/components/inner-blocks/use-nested-settings-update.js +5 -9
- package/build/components/inner-blocks/use-nested-settings-update.js.map +1 -1
- package/build/components/inserter/block-patterns-explorer/pattern-list.js +1 -1
- package/build/components/inserter/block-patterns-explorer/pattern-list.js.map +1 -1
- package/build/components/inserter/block-patterns-tab/pattern-category-previews.js +10 -9
- package/build/components/inserter/block-patterns-tab/pattern-category-previews.js.map +1 -1
- package/build/components/inserter/block-patterns-tab/patterns-filter.js +10 -10
- package/build/components/inserter/block-patterns-tab/patterns-filter.js.map +1 -1
- package/build/components/inserter/block-patterns-tab/use-pattern-categories.js +9 -9
- package/build/components/inserter/block-patterns-tab/use-pattern-categories.js.map +1 -1
- package/build/components/inserter/block-patterns-tab/utils.js +10 -14
- package/build/components/inserter/block-patterns-tab/utils.js.map +1 -1
- package/build/components/inserter/hooks/use-block-types-state.js +4 -14
- package/build/components/inserter/hooks/use-block-types-state.js.map +1 -1
- package/build/components/inserter/hooks/use-patterns-state.js +1 -1
- package/build/components/inserter/hooks/use-patterns-state.js.map +1 -1
- package/build/components/inserter/index.js +1 -2
- package/build/components/inserter/index.js.map +1 -1
- package/build/components/inserter/library.js +3 -7
- package/build/components/inserter/library.js.map +1 -1
- package/build/components/inserter/menu.js +14 -28
- package/build/components/inserter/menu.js.map +1 -1
- package/build/components/inserter/tabs.js +21 -21
- package/build/components/inserter/tabs.js.map +1 -1
- package/build/components/inserter-draggable-blocks/index.js +1 -1
- package/build/components/inserter-draggable-blocks/index.js.map +1 -1
- package/build/components/inserter-list-item/index.js +2 -4
- package/build/components/inserter-list-item/index.js.map +1 -1
- package/build/components/inspector-controls/block-support-tools-panel.js +3 -1
- package/build/components/inspector-controls/block-support-tools-panel.js.map +1 -1
- package/build/components/inspector-controls-tabs/index.js +34 -23
- package/build/components/inspector-controls-tabs/index.js.map +1 -1
- package/build/components/list-view/block-select-button.js +4 -0
- package/build/components/list-view/block-select-button.js.map +1 -1
- package/build/components/list-view/block.js +57 -3
- package/build/components/list-view/block.js.map +1 -1
- package/build/components/media-upload-progress/constants.js +19 -0
- package/build/components/media-upload-progress/constants.js.map +1 -0
- package/build/components/media-upload-progress/index.native.js +42 -17
- package/build/components/media-upload-progress/index.native.js.map +1 -1
- package/build/components/navigable-toolbar/index.js +9 -14
- package/build/components/navigable-toolbar/index.js.map +1 -1
- package/build/components/plain-text/index.native.js +8 -3
- package/build/components/plain-text/index.native.js.map +1 -1
- package/build/components/provider/index.js +3 -1
- package/build/components/provider/index.js.map +1 -1
- package/build/components/provider/use-block-sync.js +7 -1
- package/build/components/provider/use-block-sync.js.map +1 -1
- package/build/components/rich-text/index.js +17 -7
- package/build/components/rich-text/index.js.map +1 -1
- package/build/components/rich-text/native/index.native.js +16 -24
- package/build/components/rich-text/native/index.native.js.map +1 -1
- package/build/components/rich-text/use-input-rules.js +2 -2
- package/build/components/rich-text/use-input-rules.js.map +1 -1
- package/build/components/rich-text/use-mark-persistent.js +1 -1
- package/build/components/rich-text/use-mark-persistent.js.map +1 -1
- package/build/components/spacing-sizes-control/input-controls/spacing-input-control.js +1 -1
- package/build/components/spacing-sizes-control/input-controls/spacing-input-control.js.map +1 -1
- package/build/components/url-input/index.js +9 -6
- package/build/components/url-input/index.js.map +1 -1
- package/build/components/use-block-commands/index.js +14 -18
- package/build/components/use-block-commands/index.js.map +1 -1
- package/build/components/use-block-drop-zone/index.js +51 -22
- package/build/components/use-block-drop-zone/index.js.map +1 -1
- package/build/components/use-moving-animation/index.js +100 -92
- package/build/components/use-moving-animation/index.js.map +1 -1
- package/build/components/use-on-block-drop/index.js +8 -11
- package/build/components/use-on-block-drop/index.js.map +1 -1
- package/build/components/writing-flow/index.js +0 -1
- package/build/components/writing-flow/index.js.map +1 -1
- package/build/components/writing-flow/use-drag-selection.js +15 -4
- package/build/components/writing-flow/use-drag-selection.js.map +1 -1
- package/build/components/writing-flow/use-selection-observer.js +73 -27
- package/build/components/writing-flow/use-selection-observer.js.map +1 -1
- package/build/components/writing-flow/use-tab-nav.js +7 -4
- package/build/components/writing-flow/use-tab-nav.js.map +1 -1
- package/build/hooks/align.js +1 -1
- package/build/hooks/align.js.map +1 -1
- package/build/hooks/anchor.js +1 -1
- package/build/hooks/anchor.js.map +1 -1
- package/build/hooks/aria-label.js +9 -1
- package/build/hooks/aria-label.js.map +1 -1
- package/build/hooks/background.js +185 -20
- package/build/hooks/background.js.map +1 -1
- package/build/hooks/border.js +5 -10
- package/build/hooks/border.js.map +1 -1
- package/build/hooks/color.js +13 -11
- package/build/hooks/color.js.map +1 -1
- package/build/hooks/custom-class-name.js +1 -1
- package/build/hooks/custom-class-name.js.map +1 -1
- package/build/hooks/custom-class-name.native.js +9 -1
- package/build/hooks/custom-class-name.native.js.map +1 -1
- package/build/hooks/dimensions.js +4 -9
- package/build/hooks/dimensions.js.map +1 -1
- package/build/hooks/font-family.js +7 -3
- package/build/hooks/font-family.js.map +1 -1
- package/build/hooks/font-size.js +1 -1
- package/build/hooks/font-size.js.map +1 -1
- package/build/hooks/index.js +4 -4
- package/build/hooks/index.js.map +1 -1
- package/build/hooks/index.native.js +5 -3
- package/build/hooks/index.native.js.map +1 -1
- package/build/hooks/layout.js +10 -4
- package/build/hooks/layout.js.map +1 -1
- package/build/hooks/style.js +1 -1
- package/build/hooks/style.js.map +1 -1
- package/build/hooks/typography.js +4 -9
- package/build/hooks/typography.js.map +1 -1
- package/build/hooks/typography.native.js +43 -18
- package/build/hooks/typography.native.js.map +1 -1
- package/build/hooks/use-typography-props.js +10 -2
- package/build/hooks/use-typography-props.js.map +1 -1
- package/build/hooks/utils.js +48 -5
- package/build/hooks/utils.js.map +1 -1
- package/build/private-apis.js +2 -4
- package/build/private-apis.js.map +1 -1
- package/build/private-apis.native.js +0 -2
- package/build/private-apis.native.js.map +1 -1
- package/build/store/actions.js +0 -16
- package/build/store/actions.js.map +1 -1
- package/build/store/private-actions.js +51 -5
- package/build/store/private-actions.js.map +1 -1
- package/build/store/private-selectors.js +12 -0
- package/build/store/private-selectors.js.map +1 -1
- package/build/store/reducer.js +14 -6
- package/build/store/reducer.js.map +1 -1
- package/build/store/selectors.js +1 -13
- package/build/store/selectors.js.map +1 -1
- package/build/store/undo-ignore.js +12 -0
- package/build/store/undo-ignore.js.map +1 -0
- package/build/store/utils.js +1 -1
- package/build/store/utils.js.map +1 -1
- package/build/utils/get-px-from-css-unit.js +16 -0
- package/build/utils/get-px-from-css-unit.js.map +1 -0
- package/build/utils/index.js +2 -2
- package/build/utils/index.js.map +1 -1
- package/build/utils/object.js +17 -38
- package/build/utils/object.js.map +1 -1
- package/build/utils/use-can-block-toolbar-be-focused.js +46 -0
- package/build/utils/use-can-block-toolbar-be-focused.js.map +1 -0
- package/build-module/components/block-canvas/index.js +0 -2
- package/build-module/components/block-canvas/index.js.map +1 -1
- package/build-module/components/block-card/index.js +1 -1
- package/build-module/components/block-card/index.js.map +1 -1
- package/build-module/components/block-draggable/draggable-chip.js +6 -1
- package/build-module/components/block-draggable/draggable-chip.js.map +1 -1
- package/build-module/components/block-draggable/index.js +76 -6
- package/build-module/components/block-draggable/index.js.map +1 -1
- package/build-module/components/block-draggable/index.native.js +1 -7
- package/build-module/components/block-draggable/index.native.js.map +1 -1
- package/build-module/components/block-draggable/use-scroll-when-dragging.native.js +1 -1
- package/build-module/components/block-draggable/use-scroll-when-dragging.native.js.map +1 -1
- package/build-module/components/block-editing-mode/index.js +3 -4
- package/build-module/components/block-editing-mode/index.js.map +1 -1
- package/build-module/components/block-inspector/index.js +1 -1
- package/build-module/components/block-inspector/index.js.map +1 -1
- package/build-module/components/block-list/block-list-item-cell.native.js +1 -0
- package/build-module/components/block-list/block-list-item-cell.native.js.map +1 -1
- package/build-module/components/block-list/block.js +249 -106
- package/build-module/components/block-list/block.js.map +1 -1
- package/build-module/components/block-list/block.native.js +48 -22
- package/build-module/components/block-list/block.native.js.map +1 -1
- package/build-module/components/block-list/index.native.js +3 -5
- package/build-module/components/block-list/index.native.js.map +1 -1
- package/build-module/components/block-list/private-block-context.js +6 -0
- package/build-module/components/block-list/private-block-context.js.map +1 -0
- package/build-module/components/block-list/use-block-props/index.js +34 -97
- package/build-module/components/block-list/use-block-props/index.js.map +1 -1
- package/build-module/components/block-list/use-in-between-inserter.js +3 -2
- package/build-module/components/block-list/use-in-between-inserter.js.map +1 -1
- package/build-module/components/block-list/use-scroll-upon-insertion.native.js +33 -0
- package/build-module/components/block-list/use-scroll-upon-insertion.native.js.map +1 -0
- package/build-module/components/block-lock/toolbar.js +22 -28
- package/build-module/components/block-lock/toolbar.js.map +1 -1
- package/build-module/components/block-mover/index.js +2 -1
- package/build-module/components/block-mover/index.js.map +1 -1
- package/build-module/components/block-patterns-list/index.js +5 -5
- package/build-module/components/block-patterns-list/index.js.map +1 -1
- package/build-module/components/block-switcher/index.js +4 -4
- package/build-module/components/block-switcher/index.js.map +1 -1
- package/build-module/components/block-toolbar/index.js +1 -2
- package/build-module/components/block-toolbar/index.js.map +1 -1
- package/build-module/components/block-tools/block-toolbar-popover.js +0 -2
- package/build-module/components/block-tools/block-toolbar-popover.js.map +1 -1
- package/build-module/components/block-variation-transforms/index.js +30 -3
- package/build-module/components/block-variation-transforms/index.js.map +1 -1
- package/build-module/components/border-radius-control/linked-button.js +1 -1
- package/build-module/components/border-radius-control/linked-button.js.map +1 -1
- package/build-module/components/colors/utils.js +9 -1
- package/build-module/components/colors/utils.js.map +1 -1
- package/build-module/components/colors/with-colors.js +5 -1
- package/build-module/components/colors/with-colors.js.map +1 -1
- package/build-module/components/font-sizes/utils.js +9 -1
- package/build-module/components/font-sizes/utils.js.map +1 -1
- package/build-module/components/global-styles/border-panel.js +3 -2
- package/build-module/components/global-styles/border-panel.js.map +1 -1
- package/build-module/components/global-styles/color-panel.js +3 -2
- package/build-module/components/global-styles/color-panel.js.map +1 -1
- package/build-module/components/global-styles/dimensions-panel.js +5 -4
- package/build-module/components/global-styles/dimensions-panel.js.map +1 -1
- package/build-module/components/global-styles/effects-panel.js +3 -2
- package/build-module/components/global-styles/effects-panel.js.map +1 -1
- package/build-module/components/global-styles/filters-panel.js +2 -5
- package/build-module/components/global-styles/filters-panel.js.map +1 -1
- package/build-module/components/global-styles/get-global-styles-changes.js +184 -0
- package/build-module/components/global-styles/get-global-styles-changes.js.map +1 -0
- package/build-module/components/global-styles/hooks.js +3 -2
- package/build-module/components/global-styles/hooks.js.map +1 -1
- package/build-module/components/global-styles/image-settings-panel.js +7 -1
- package/build-module/components/global-styles/image-settings-panel.js.map +1 -1
- package/build-module/components/global-styles/index.js +1 -0
- package/build-module/components/global-styles/index.js.map +1 -1
- package/build-module/components/global-styles/typography-panel.js +35 -17
- package/build-module/components/global-styles/typography-panel.js.map +1 -1
- package/build-module/components/global-styles/use-global-styles-output.js +15 -1
- package/build-module/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build-module/components/global-styles/utils.js +7 -0
- package/build-module/components/global-styles/utils.js.map +1 -1
- package/build-module/components/height-control/index.js +6 -2
- package/build-module/components/height-control/index.js.map +1 -1
- package/build-module/components/image-size-control/index.js +2 -2
- package/build-module/components/image-size-control/index.js.map +1 -1
- package/build-module/components/index.native.js +2 -1
- package/build-module/components/index.native.js.map +1 -1
- package/build-module/components/inner-blocks/index.js +62 -23
- package/build-module/components/inner-blocks/index.js.map +1 -1
- package/build-module/components/inner-blocks/index.native.js +18 -4
- package/build-module/components/inner-blocks/index.native.js.map +1 -1
- package/build-module/components/inner-blocks/use-inner-block-template-sync.js +5 -6
- package/build-module/components/inner-blocks/use-inner-block-template-sync.js.map +1 -1
- package/build-module/components/inner-blocks/use-nested-settings-update.js +6 -10
- package/build-module/components/inner-blocks/use-nested-settings-update.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/pattern-category-previews.js +11 -10
- package/build-module/components/inserter/block-patterns-tab/pattern-category-previews.js.map +1 -1
- package/build-module/components/inserter/block-patterns-tab/patterns-filter.js +11 -11
- package/build-module/components/inserter/block-patterns-tab/patterns-filter.js.map +1 -1
- package/build-module/components/inserter/block-patterns-tab/use-pattern-categories.js +11 -11
- 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 +7 -11
- package/build-module/components/inserter/block-patterns-tab/utils.js.map +1 -1
- package/build-module/components/inserter/hooks/use-block-types-state.js +4 -14
- package/build-module/components/inserter/hooks/use-block-types-state.js.map +1 -1
- package/build-module/components/inserter/hooks/use-patterns-state.js +2 -2
- package/build-module/components/inserter/hooks/use-patterns-state.js.map +1 -1
- package/build-module/components/inserter/index.js +1 -2
- package/build-module/components/inserter/index.js.map +1 -1
- package/build-module/components/inserter/library.js +3 -7
- package/build-module/components/inserter/library.js.map +1 -1
- package/build-module/components/inserter/menu.js +14 -28
- package/build-module/components/inserter/menu.js.map +1 -1
- package/build-module/components/inserter/tabs.js +22 -22
- package/build-module/components/inserter/tabs.js.map +1 -1
- package/build-module/components/inserter-draggable-blocks/index.js +2 -2
- package/build-module/components/inserter-draggable-blocks/index.js.map +1 -1
- package/build-module/components/inserter-list-item/index.js +2 -4
- package/build-module/components/inserter-list-item/index.js.map +1 -1
- package/build-module/components/inspector-controls/block-support-tools-panel.js +3 -1
- package/build-module/components/inspector-controls/block-support-tools-panel.js.map +1 -1
- package/build-module/components/inspector-controls-tabs/index.js +35 -24
- package/build-module/components/inspector-controls-tabs/index.js.map +1 -1
- package/build-module/components/list-view/block-select-button.js +4 -0
- package/build-module/components/list-view/block-select-button.js.map +1 -1
- package/build-module/components/list-view/block.js +58 -4
- package/build-module/components/list-view/block.js.map +1 -1
- package/build-module/components/media-upload-progress/constants.js +7 -0
- package/build-module/components/media-upload-progress/constants.js.map +1 -0
- package/build-module/components/media-upload-progress/index.native.js +37 -8
- package/build-module/components/media-upload-progress/index.native.js.map +1 -1
- package/build-module/components/navigable-toolbar/index.js +9 -14
- package/build-module/components/navigable-toolbar/index.js.map +1 -1
- package/build-module/components/plain-text/index.native.js +6 -1
- package/build-module/components/plain-text/index.native.js.map +1 -1
- package/build-module/components/provider/index.js +3 -1
- package/build-module/components/provider/index.js.map +1 -1
- package/build-module/components/provider/use-block-sync.js +7 -1
- package/build-module/components/provider/use-block-sync.js.map +1 -1
- package/build-module/components/rich-text/index.js +17 -7
- package/build-module/components/rich-text/index.js.map +1 -1
- package/build-module/components/rich-text/native/index.native.js +16 -23
- package/build-module/components/rich-text/native/index.native.js.map +1 -1
- package/build-module/components/rich-text/use-input-rules.js +2 -2
- package/build-module/components/rich-text/use-input-rules.js.map +1 -1
- package/build-module/components/rich-text/use-mark-persistent.js +1 -1
- package/build-module/components/rich-text/use-mark-persistent.js.map +1 -1
- package/build-module/components/spacing-sizes-control/input-controls/spacing-input-control.js +1 -1
- package/build-module/components/spacing-sizes-control/input-controls/spacing-input-control.js.map +1 -1
- package/build-module/components/url-input/index.js +9 -6
- package/build-module/components/url-input/index.js.map +1 -1
- package/build-module/components/use-block-commands/index.js +14 -18
- package/build-module/components/use-block-commands/index.js.map +1 -1
- package/build-module/components/use-block-drop-zone/index.js +51 -23
- package/build-module/components/use-block-drop-zone/index.js.map +1 -1
- package/build-module/components/use-moving-animation/index.js +102 -94
- package/build-module/components/use-moving-animation/index.js.map +1 -1
- package/build-module/components/use-on-block-drop/index.js +8 -11
- package/build-module/components/use-on-block-drop/index.js.map +1 -1
- package/build-module/components/writing-flow/index.js +0 -1
- package/build-module/components/writing-flow/index.js.map +1 -1
- package/build-module/components/writing-flow/use-drag-selection.js +15 -4
- package/build-module/components/writing-flow/use-drag-selection.js.map +1 -1
- package/build-module/components/writing-flow/use-selection-observer.js +73 -27
- package/build-module/components/writing-flow/use-selection-observer.js.map +1 -1
- package/build-module/components/writing-flow/use-tab-nav.js +7 -4
- package/build-module/components/writing-flow/use-tab-nav.js.map +1 -1
- package/build-module/hooks/align.js +1 -1
- package/build-module/hooks/align.js.map +1 -1
- package/build-module/hooks/anchor.js +1 -1
- package/build-module/hooks/anchor.js.map +1 -1
- package/build-module/hooks/aria-label.js +7 -1
- package/build-module/hooks/aria-label.js.map +1 -1
- package/build-module/hooks/background.js +181 -19
- package/build-module/hooks/background.js.map +1 -1
- package/build-module/hooks/border.js +2 -8
- package/build-module/hooks/border.js.map +1 -1
- package/build-module/hooks/color.js +11 -9
- package/build-module/hooks/color.js.map +1 -1
- package/build-module/hooks/custom-class-name.js +1 -1
- package/build-module/hooks/custom-class-name.js.map +1 -1
- package/build-module/hooks/custom-class-name.native.js +7 -1
- package/build-module/hooks/custom-class-name.native.js.map +1 -1
- package/build-module/hooks/dimensions.js +1 -7
- package/build-module/hooks/dimensions.js.map +1 -1
- package/build-module/hooks/font-family.js +6 -2
- package/build-module/hooks/font-family.js.map +1 -1
- package/build-module/hooks/font-size.js +1 -1
- package/build-module/hooks/font-size.js.map +1 -1
- package/build-module/hooks/index.js +5 -5
- package/build-module/hooks/index.js.map +1 -1
- package/build-module/hooks/index.native.js +6 -4
- package/build-module/hooks/index.native.js.map +1 -1
- package/build-module/hooks/layout.js +9 -3
- package/build-module/hooks/layout.js.map +1 -1
- package/build-module/hooks/style.js +1 -1
- package/build-module/hooks/style.js.map +1 -1
- package/build-module/hooks/typography.js +1 -7
- package/build-module/hooks/typography.js.map +1 -1
- package/build-module/hooks/typography.native.js +43 -17
- package/build-module/hooks/typography.native.js.map +1 -1
- package/build-module/hooks/use-typography-props.js +9 -1
- package/build-module/hooks/use-typography-props.js.map +1 -1
- package/build-module/hooks/utils.js +47 -5
- package/build-module/hooks/utils.js.map +1 -1
- package/build-module/private-apis.js +2 -4
- package/build-module/private-apis.js.map +1 -1
- package/build-module/private-apis.native.js +0 -2
- package/build-module/private-apis.native.js.map +1 -1
- package/build-module/store/actions.js +0 -15
- package/build-module/store/actions.js.map +1 -1
- package/build-module/store/private-actions.js +49 -4
- package/build-module/store/private-actions.js.map +1 -1
- package/build-module/store/private-selectors.js +11 -0
- package/build-module/store/private-selectors.js.map +1 -1
- package/build-module/store/reducer.js +14 -6
- package/build-module/store/reducer.js.map +1 -1
- package/build-module/store/selectors.js +1 -12
- package/build-module/store/selectors.js.map +1 -1
- package/build-module/store/undo-ignore.js +5 -0
- package/build-module/store/undo-ignore.js.map +1 -0
- package/build-module/store/utils.js +2 -2
- package/build-module/store/utils.js.map +1 -1
- package/build-module/utils/get-px-from-css-unit.js +9 -0
- package/build-module/utils/get-px-from-css-unit.js.map +1 -0
- package/build-module/utils/index.js +1 -1
- package/build-module/utils/index.js.map +1 -1
- package/build-module/utils/object.js +16 -37
- package/build-module/utils/object.js.map +1 -1
- package/build-module/utils/use-can-block-toolbar-be-focused.js +40 -0
- package/build-module/utils/use-can-block-toolbar-be-focused.js.map +1 -0
- package/build-style/content-rtl.css +7 -6
- package/build-style/content.css +7 -6
- package/build-style/style-rtl.css +51 -8
- package/build-style/style.css +51 -8
- package/package.json +31 -31
- package/src/components/alignment-control/README.md +0 -5
- package/src/components/block-alignment-control/README.md +0 -5
- package/src/components/block-alignment-matrix-control/README.md +0 -10
- package/src/components/block-breadcrumb/README.md +0 -5
- package/src/components/block-canvas/index.js +0 -2
- package/src/components/block-canvas/style.scss +6 -0
- package/src/components/block-caption/README.md +0 -5
- package/src/components/block-card/README.md +0 -5
- package/src/components/block-card/index.js +1 -1
- package/src/components/block-draggable/draggable-chip.js +11 -1
- package/src/components/block-draggable/index.js +116 -4
- package/src/components/block-draggable/index.native.js +0 -5
- package/src/components/block-draggable/style.scss +35 -0
- package/src/components/block-draggable/test/helpers.native.js +8 -7
- package/src/components/block-draggable/use-scroll-when-dragging.native.js +1 -1
- package/src/components/block-editing-mode/index.js +3 -3
- package/src/components/block-icon/README.md +0 -5
- package/src/components/block-inspector/README.md +0 -5
- package/src/components/block-inspector/index.js +3 -1
- package/src/components/block-list/block-list-item-cell.native.js +5 -1
- package/src/components/block-list/block.js +290 -119
- package/src/components/block-list/block.native.js +55 -21
- package/src/components/block-list/content.scss +14 -10
- package/src/components/block-list/index.native.js +3 -5
- package/src/components/block-list/{block-list-block-context.js → private-block-context.js} +1 -1
- package/src/components/block-list/use-block-props/index.js +32 -128
- package/src/components/block-list/use-in-between-inserter.js +4 -1
- package/src/components/block-list/use-scroll-upon-insertion.native.js +52 -0
- package/src/components/block-lock/toolbar.js +23 -34
- package/src/components/block-mover/README.md +0 -5
- package/src/components/block-mover/index.js +1 -1
- package/src/components/block-parent-selector/README.md +0 -5
- package/src/components/block-patterns-list/README.md +0 -5
- package/src/components/block-patterns-list/index.js +8 -5
- package/src/components/block-switcher/index.js +49 -59
- package/src/components/block-toolbar/README.md +0 -5
- package/src/components/block-toolbar/index.js +1 -2
- package/src/components/block-tools/block-toolbar-popover.js +4 -10
- package/src/components/block-types-list/README.md +0 -5
- package/src/components/block-variation-picker/README.md +0 -5
- package/src/components/block-variation-transforms/README.md +0 -5
- package/src/components/block-variation-transforms/index.js +49 -3
- package/src/components/border-radius-control/linked-button.js +1 -1
- package/src/components/caption/README.md +0 -5
- package/src/components/color-palette/test/__snapshots__/control.js.snap +0 -1
- package/src/components/colors/utils.js +8 -1
- package/src/components/colors/with-colors.js +3 -1
- package/src/components/contrast-checker/README.md +0 -4
- package/src/components/copy-handler/README.md +0 -10
- package/src/components/font-sizes/utils.js +7 -1
- package/src/components/global-styles/border-panel.js +2 -1
- package/src/components/global-styles/color-panel.js +2 -1
- package/src/components/global-styles/dimensions-panel.js +4 -3
- package/src/components/global-styles/effects-panel.js +2 -1
- package/src/components/global-styles/filters-panel.js +2 -5
- package/src/components/global-styles/get-global-styles-changes.js +210 -0
- package/src/components/global-styles/hooks.js +5 -0
- package/src/components/global-styles/image-settings-panel.js +6 -0
- package/src/components/global-styles/index.js +1 -0
- package/src/components/global-styles/test/get-global-styles-changes.js +234 -0
- package/src/components/global-styles/typography-panel.js +47 -14
- package/src/components/global-styles/use-global-styles-output.js +9 -5
- package/src/components/global-styles/utils.js +7 -0
- package/src/components/height-control/README.md +2 -7
- package/src/components/height-control/index.js +4 -0
- package/src/components/image-size-control/index.js +5 -2
- package/src/components/index.native.js +2 -2
- package/src/components/inner-blocks/index.js +68 -29
- package/src/components/inner-blocks/index.native.js +19 -7
- package/src/components/inner-blocks/use-inner-block-template-sync.js +5 -7
- package/src/components/inner-blocks/use-nested-settings-update.js +6 -13
- package/src/components/inserter/block-patterns-explorer/pattern-list.js +2 -2
- package/src/components/inserter/block-patterns-tab/pattern-category-previews.js +15 -15
- package/src/components/inserter/block-patterns-tab/patterns-filter.js +15 -13
- package/src/components/inserter/block-patterns-tab/use-pattern-categories.js +15 -18
- package/src/components/inserter/block-patterns-tab/utils.js +11 -12
- package/src/components/inserter/hooks/use-block-types-state.js +9 -11
- package/src/components/inserter/hooks/use-patterns-state.js +2 -2
- package/src/components/inserter/index.js +0 -1
- package/src/components/inserter/library.js +2 -8
- package/src/components/inserter/menu.js +13 -31
- package/src/components/inserter/style.scss +6 -4
- package/src/components/inserter/tabs.js +34 -25
- package/src/components/inserter-draggable-blocks/index.js +2 -2
- package/src/components/inserter-list-item/index.js +6 -6
- package/src/components/inspector-controls/block-support-tools-panel.js +2 -0
- package/src/components/inspector-controls-tabs/index.js +39 -28
- package/src/components/inspector-controls-tabs/style.scss +3 -2
- package/src/components/letter-spacing-control/README.md +0 -5
- package/src/components/line-height-control/README.md +0 -5
- package/src/components/list-view/README.md +0 -5
- package/src/components/list-view/block-select-button.js +4 -0
- package/src/components/list-view/block.js +73 -2
- package/src/components/list-view/style.scss +6 -0
- package/src/components/media-upload-progress/constants.js +6 -0
- package/src/components/media-upload-progress/index.native.js +66 -14
- package/src/components/media-upload-progress/test/index.native.js +2 -2
- package/src/components/multi-selection-inspector/README.md +0 -5
- package/src/components/navigable-toolbar/index.js +13 -11
- package/src/components/plain-text/index.native.js +6 -1
- package/src/components/provider/index.js +1 -1
- package/src/components/provider/test/use-block-sync.js +20 -17
- package/src/components/provider/use-block-sync.js +6 -0
- package/src/components/rich-text/index.js +18 -6
- package/src/components/rich-text/native/index.native.js +16 -24
- package/src/components/rich-text/native/test/__snapshots__/index.native.js.snap +3 -3
- package/src/components/rich-text/native/test/index.native.js +72 -5
- package/src/components/rich-text/use-input-rules.js +2 -2
- package/src/components/rich-text/use-mark-persistent.js +1 -2
- package/src/components/spacing-sizes-control/input-controls/spacing-input-control.js +1 -1
- package/src/components/text-decoration-control/README.md +40 -0
- package/src/components/text-transform-control/README.md +0 -4
- package/src/components/ungroup-button/README.md +0 -5
- package/src/components/unit-control/README.md +0 -4
- package/src/components/url-input/index.js +11 -11
- package/src/components/use-block-commands/index.js +18 -21
- package/src/components/use-block-drop-zone/index.js +85 -34
- package/src/components/use-moving-animation/index.js +107 -103
- package/src/components/use-on-block-drop/index.js +7 -23
- package/src/components/use-on-block-drop/test/index.js +12 -26
- package/src/components/use-resize-canvas/README.md +0 -4
- package/src/components/use-settings/README.md +0 -4
- package/src/components/writing-flow/index.js +0 -1
- package/src/components/writing-flow/use-drag-selection.js +18 -4
- package/src/components/writing-flow/use-selection-observer.js +99 -37
- package/src/components/writing-flow/use-tab-nav.js +7 -7
- package/src/hooks/align.js +1 -5
- package/src/hooks/anchor.js +1 -5
- package/src/hooks/aria-label.js +8 -5
- package/src/hooks/background.js +253 -21
- package/src/hooks/border.js +2 -13
- package/src/hooks/color.js +19 -14
- package/src/hooks/custom-class-name.js +1 -5
- package/src/hooks/custom-class-name.native.js +8 -5
- package/src/hooks/dimensions.js +1 -7
- package/src/hooks/font-family.js +4 -7
- package/src/hooks/font-size.js +1 -6
- package/src/hooks/index.js +19 -5
- package/src/hooks/index.native.js +17 -4
- package/src/hooks/layout.js +5 -2
- package/src/hooks/style.js +1 -6
- package/src/hooks/test/anchor.js +4 -9
- package/src/hooks/test/custom-class-name.js +3 -8
- package/src/hooks/test/style.js +4 -14
- package/src/hooks/typography.js +1 -7
- package/src/hooks/typography.native.js +31 -33
- package/src/hooks/use-typography-props.js +7 -1
- package/src/hooks/utils.js +76 -6
- package/src/private-apis.js +2 -4
- package/src/private-apis.native.js +0 -2
- package/src/store/actions.js +0 -15
- package/src/store/private-actions.js +44 -4
- package/src/store/private-selectors.js +11 -0
- package/src/store/reducer.js +16 -5
- package/src/store/selectors.js +5 -13
- package/src/store/undo-ignore.js +4 -0
- package/src/store/utils.js +2 -2
- package/src/style.scss +1 -0
- package/src/utils/get-px-from-css-unit.js +8 -0
- package/src/utils/index.js +1 -1
- package/src/utils/object.js +16 -35
- package/src/utils/test/object.js +1 -96
- package/src/utils/use-can-block-toolbar-be-focused.js +48 -0
- package/build/components/block-list/block-list-block-context.js +0 -14
- package/build/components/block-list/block-list-block-context.js.map +0 -1
- package/build/hooks/custom-fields.js +0 -106
- package/build/hooks/custom-fields.js.map +0 -1
- package/build/utils/parse-css-unit-to-px.js +0 -302
- package/build/utils/parse-css-unit-to-px.js.map +0 -1
- package/build/utils/use-should-contextual-toolbar-show.js +0 -63
- package/build/utils/use-should-contextual-toolbar-show.js.map +0 -1
- package/build-module/components/block-list/block-list-block-context.js +0 -6
- package/build-module/components/block-list/block-list-block-context.js.map +0 -1
- package/build-module/hooks/custom-fields.js +0 -99
- package/build-module/hooks/custom-fields.js.map +0 -1
- package/build-module/utils/parse-css-unit-to-px.js +0 -294
- package/build-module/utils/parse-css-unit-to-px.js.map +0 -1
- package/build-module/utils/use-should-contextual-toolbar-show.js +0 -57
- package/build-module/utils/use-should-contextual-toolbar-show.js.map +0 -1
- package/src/hooks/custom-fields.js +0 -115
- package/src/utils/parse-css-unit-to-px.js +0 -329
- package/src/utils/test/parse-css-unit-to-px.js +0 -172
- package/src/utils/use-should-contextual-toolbar-show.js +0 -85
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import { TabPanel } from '@wordpress/components';
|
|
4
|
+
import { privateApis as componentsPrivateApis } from '@wordpress/components';
|
|
6
5
|
import { __ } from '@wordpress/i18n';
|
|
7
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Internal dependencies
|
|
9
|
+
*/
|
|
10
|
+
import { unlock } from '../../lock-unlock';
|
|
11
|
+
|
|
12
|
+
const { Tabs } = unlock( componentsPrivateApis );
|
|
13
|
+
|
|
8
14
|
const blocksTab = {
|
|
9
15
|
name: 'blocks',
|
|
10
16
|
/* translators: Blocks tab title in the block inserter. */
|
|
@@ -23,35 +29,38 @@ const mediaTab = {
|
|
|
23
29
|
};
|
|
24
30
|
|
|
25
31
|
function InserterTabs( {
|
|
26
|
-
children,
|
|
27
32
|
showPatterns = false,
|
|
28
33
|
showMedia = false,
|
|
29
34
|
onSelect,
|
|
30
|
-
|
|
35
|
+
tabsContents,
|
|
31
36
|
} ) {
|
|
32
|
-
const tabs =
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
tempTabs.push( blocksTab );
|
|
38
|
-
if ( ! prioritizePatterns && showPatterns ) {
|
|
39
|
-
tempTabs.push( patternsTab );
|
|
40
|
-
}
|
|
41
|
-
if ( showMedia ) {
|
|
42
|
-
tempTabs.push( mediaTab );
|
|
43
|
-
}
|
|
44
|
-
return tempTabs;
|
|
45
|
-
}, [ prioritizePatterns, showPatterns, showMedia ] );
|
|
37
|
+
const tabs = [
|
|
38
|
+
blocksTab,
|
|
39
|
+
showPatterns && patternsTab,
|
|
40
|
+
showMedia && mediaTab,
|
|
41
|
+
].filter( Boolean );
|
|
46
42
|
|
|
47
43
|
return (
|
|
48
|
-
<
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
44
|
+
<div className="block-editor-inserter__tabs">
|
|
45
|
+
<Tabs onSelect={ onSelect }>
|
|
46
|
+
<Tabs.TabList>
|
|
47
|
+
{ tabs.map( ( tab ) => (
|
|
48
|
+
<Tabs.Tab key={ tab.name } tabId={ tab.name }>
|
|
49
|
+
{ tab.title }
|
|
50
|
+
</Tabs.Tab>
|
|
51
|
+
) ) }
|
|
52
|
+
</Tabs.TabList>
|
|
53
|
+
{ tabs.map( ( tab ) => (
|
|
54
|
+
<Tabs.TabPanel
|
|
55
|
+
key={ tab.name }
|
|
56
|
+
tabId={ tab.name }
|
|
57
|
+
focusable={ false }
|
|
58
|
+
>
|
|
59
|
+
{ tabsContents[ tab.name ] }
|
|
60
|
+
</Tabs.TabPanel>
|
|
61
|
+
) ) }
|
|
62
|
+
</Tabs>
|
|
63
|
+
</div>
|
|
55
64
|
);
|
|
56
65
|
}
|
|
57
66
|
|
|
@@ -12,7 +12,7 @@ import { useSelect } from '@wordpress/data';
|
|
|
12
12
|
* Internal dependencies
|
|
13
13
|
*/
|
|
14
14
|
import BlockDraggableChip from '../block-draggable/draggable-chip';
|
|
15
|
-
import {
|
|
15
|
+
import { INSERTER_PATTERN_TYPES } from '../inserter/block-patterns-tab/utils';
|
|
16
16
|
|
|
17
17
|
const InserterDraggableBlocks = ( {
|
|
18
18
|
isEnabled,
|
|
@@ -42,7 +42,7 @@ const InserterDraggableBlocks = ( {
|
|
|
42
42
|
transferData={ transferData }
|
|
43
43
|
onDragStart={ ( event ) => {
|
|
44
44
|
const parsedBlocks =
|
|
45
|
-
pattern?.type ===
|
|
45
|
+
pattern?.type === INSERTER_PATTERN_TYPES.user &&
|
|
46
46
|
pattern?.syncStatus !== 'unsynced'
|
|
47
47
|
? [ createBlock( 'core/block', { ref: pattern.id } ) ]
|
|
48
48
|
: blocks;
|
|
@@ -39,15 +39,16 @@ function InserterListItem( {
|
|
|
39
39
|
color: item.icon.foreground,
|
|
40
40
|
}
|
|
41
41
|
: {};
|
|
42
|
-
const blocks = useMemo(
|
|
43
|
-
|
|
42
|
+
const blocks = useMemo(
|
|
43
|
+
() => [
|
|
44
44
|
createBlock(
|
|
45
45
|
item.name,
|
|
46
46
|
item.initialAttributes,
|
|
47
47
|
createBlocksFromInnerBlocksTemplate( item.innerBlocks )
|
|
48
48
|
),
|
|
49
|
-
]
|
|
50
|
-
|
|
49
|
+
],
|
|
50
|
+
[ item.name, item.initialAttributes, item.innerBlocks ]
|
|
51
|
+
);
|
|
51
52
|
|
|
52
53
|
const isSynced =
|
|
53
54
|
( isReusableBlock( item ) && item.syncStatus !== 'unsynced' ) ||
|
|
@@ -55,7 +56,7 @@ function InserterListItem( {
|
|
|
55
56
|
|
|
56
57
|
return (
|
|
57
58
|
<InserterDraggableBlocks
|
|
58
|
-
isEnabled={ isDraggable && ! item.
|
|
59
|
+
isEnabled={ isDraggable && ! item.isDisabled }
|
|
59
60
|
blocks={ blocks }
|
|
60
61
|
icon={ item.icon }
|
|
61
62
|
>
|
|
@@ -63,7 +64,6 @@ function InserterListItem( {
|
|
|
63
64
|
<div
|
|
64
65
|
className={ classnames(
|
|
65
66
|
'block-editor-block-types-list__list-item',
|
|
66
|
-
|
|
67
67
|
{
|
|
68
68
|
'is-synced': isSynced,
|
|
69
69
|
}
|
|
@@ -10,6 +10,7 @@ import { useCallback } from '@wordpress/element';
|
|
|
10
10
|
*/
|
|
11
11
|
import { store as blockEditorStore } from '../../store';
|
|
12
12
|
import { cleanEmptyObject } from '../../hooks/utils';
|
|
13
|
+
import { TOOLSPANEL_DROPDOWNMENU_PROPS } from '../global-styles/utils';
|
|
13
14
|
|
|
14
15
|
export default function BlockSupportToolsPanel( { children, group, label } ) {
|
|
15
16
|
const { updateBlockAttributes } = useDispatch( blockEditorStore );
|
|
@@ -71,6 +72,7 @@ export default function BlockSupportToolsPanel( { children, group, label } ) {
|
|
|
71
72
|
shouldRenderPlaceholderItems={ true } // Required to maintain fills ordering.
|
|
72
73
|
__experimentalFirstVisibleItemClass="first"
|
|
73
74
|
__experimentalLastVisibleItemClass="last"
|
|
75
|
+
dropdownMenuProps={ TOOLSPANEL_DROPDOWNMENU_PROPS }
|
|
74
76
|
>
|
|
75
77
|
{ children }
|
|
76
78
|
</ToolsPanel>
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
Button,
|
|
6
|
+
privateApis as componentsPrivateApis,
|
|
7
|
+
} from '@wordpress/components';
|
|
5
8
|
|
|
6
9
|
/**
|
|
7
10
|
* Internal dependencies
|
|
@@ -11,6 +14,9 @@ import SettingsTab from './settings-tab';
|
|
|
11
14
|
import StylesTab from './styles-tab';
|
|
12
15
|
import InspectorControls from '../inspector-controls';
|
|
13
16
|
import useIsListViewTabDisabled from './use-is-list-view-tab-disabled';
|
|
17
|
+
import { unlock } from '../../lock-unlock';
|
|
18
|
+
|
|
19
|
+
const { Tabs } = unlock( componentsPrivateApis );
|
|
14
20
|
|
|
15
21
|
export default function InspectorControlsTabs( {
|
|
16
22
|
blockName,
|
|
@@ -26,34 +32,39 @@ export default function InspectorControlsTabs( {
|
|
|
26
32
|
const initialTabName = ! useIsListViewTabDisabled( blockName )
|
|
27
33
|
? TAB_LIST_VIEW.name
|
|
28
34
|
: undefined;
|
|
29
|
-
return (
|
|
30
|
-
<TabPanel
|
|
31
|
-
className="block-editor-block-inspector__tabs"
|
|
32
|
-
tabs={ tabs }
|
|
33
|
-
initialTabName={ initialTabName }
|
|
34
|
-
key={ clientId }
|
|
35
|
-
>
|
|
36
|
-
{ ( tab ) => {
|
|
37
|
-
if ( tab.name === TAB_SETTINGS.name ) {
|
|
38
|
-
return (
|
|
39
|
-
<SettingsTab showAdvancedControls={ !! blockName } />
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
35
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
36
|
+
return (
|
|
37
|
+
<div className="block-editor-block-inspector__tabs">
|
|
38
|
+
<Tabs initialTabId={ initialTabName } key={ clientId }>
|
|
39
|
+
<Tabs.TabList>
|
|
40
|
+
{ tabs.map( ( tab ) => (
|
|
41
|
+
<Tabs.Tab
|
|
42
|
+
key={ tab.name }
|
|
43
|
+
tabId={ tab.name }
|
|
44
|
+
render={
|
|
45
|
+
<Button
|
|
46
|
+
icon={ tab.icon }
|
|
47
|
+
label={ tab.title }
|
|
48
|
+
className={ tab.className }
|
|
49
|
+
/>
|
|
50
|
+
}
|
|
49
51
|
/>
|
|
50
|
-
)
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
52
|
+
) ) }
|
|
53
|
+
</Tabs.TabList>
|
|
54
|
+
<Tabs.TabPanel tabId={ TAB_SETTINGS.name } focusable={ false }>
|
|
55
|
+
<SettingsTab showAdvancedControls={ !! blockName } />
|
|
56
|
+
</Tabs.TabPanel>
|
|
57
|
+
<Tabs.TabPanel tabId={ TAB_STYLES.name } focusable={ false }>
|
|
58
|
+
<StylesTab
|
|
59
|
+
blockName={ blockName }
|
|
60
|
+
clientId={ clientId }
|
|
61
|
+
hasBlockStyles={ hasBlockStyles }
|
|
62
|
+
/>
|
|
63
|
+
</Tabs.TabPanel>
|
|
64
|
+
<Tabs.TabPanel tabId={ TAB_LIST_VIEW.name } focusable={ false }>
|
|
65
|
+
<InspectorControls.Slot group="list" />
|
|
66
|
+
</Tabs.TabPanel>
|
|
67
|
+
</Tabs>
|
|
68
|
+
</div>
|
|
58
69
|
);
|
|
59
70
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.show-icon-labels {
|
|
2
|
-
.block-editor-block-inspector__tabs
|
|
2
|
+
.block-editor-block-inspector__tabs [role="tablist"] {
|
|
3
3
|
.components-button.has-icon {
|
|
4
4
|
// Hide the button icons when labels are set to display...
|
|
5
5
|
svg {
|
|
@@ -15,13 +15,14 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.block-editor-inspector-controls-tabs__hint {
|
|
18
|
-
align-items:
|
|
18
|
+
align-items: flex-start;
|
|
19
19
|
background: $gray-100;
|
|
20
20
|
border-radius: $radius-block-ui;
|
|
21
21
|
color: $gray-900;
|
|
22
22
|
display: flex;
|
|
23
23
|
flex-direction: row;
|
|
24
24
|
margin: $grid-unit-20;
|
|
25
|
+
font-size: $default-font-size;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
.block-editor-inspector-controls-tabs__hint-content {
|
|
@@ -5,11 +5,6 @@ The `LetterSpacingControl` component renders a [`UnitControl`](https://github.co
|
|
|
5
5
|
This component is used for blocks that display text, commonly inside a
|
|
6
6
|
[`ToolsPanelItem`](https://github.com/WordPress/gutenberg/blob/trunk/packages/components/src/tools-panel/tools-panel-item/README.md).
|
|
7
7
|
|
|
8
|
-
## Table of contents
|
|
9
|
-
|
|
10
|
-
1. [Development guidelines](#development-guidelines)
|
|
11
|
-
2. [Related components](#related-components)
|
|
12
|
-
|
|
13
8
|
## Development guidelines
|
|
14
9
|
|
|
15
10
|
### Usage
|
|
@@ -6,11 +6,6 @@ The `LineHeightControl` component adds a lineHeight attribute to the core Paragr
|
|
|
6
6
|
|
|
7
7
|
_Note:_ It is worth noting that the line height setting option is an opt-in feature. [Themes need to declare support for it](/docs/how-to-guides/themes/theme-support.md#supporting-custom-line-heights) before it'll be available.
|
|
8
8
|
|
|
9
|
-
## Table of contents
|
|
10
|
-
|
|
11
|
-
1. [Development guidelines](#development-guidelines)
|
|
12
|
-
2. [Related components](#related-components)
|
|
13
|
-
|
|
14
9
|
## Development guidelines
|
|
15
10
|
|
|
16
11
|
### Usage
|
|
@@ -11,11 +11,6 @@ In addition to presenting the structure of the blocks in the editor, the ListVie
|
|
|
11
11
|

|
|
12
12
|

|
|
13
13
|
|
|
14
|
-
## Table of contents
|
|
15
|
-
|
|
16
|
-
1. [Development guidelines](#development-guidelines)
|
|
17
|
-
2. [Related components](#related-components)
|
|
18
|
-
|
|
19
14
|
## Development guidelines
|
|
20
15
|
|
|
21
16
|
### Usage
|
|
@@ -38,6 +38,8 @@ function ListViewBlockSelectButton(
|
|
|
38
38
|
className,
|
|
39
39
|
block: { clientId },
|
|
40
40
|
onClick,
|
|
41
|
+
onContextMenu,
|
|
42
|
+
onMouseDown,
|
|
41
43
|
onToggleExpanded,
|
|
42
44
|
tabIndex,
|
|
43
45
|
onFocus,
|
|
@@ -237,7 +239,9 @@ function ListViewBlockSelectButton(
|
|
|
237
239
|
className
|
|
238
240
|
) }
|
|
239
241
|
onClick={ onClick }
|
|
242
|
+
onContextMenu={ onContextMenu }
|
|
240
243
|
onKeyDown={ onKeyDownHandler }
|
|
244
|
+
onMouseDown={ onMouseDown }
|
|
241
245
|
ref={ ref }
|
|
242
246
|
tabIndex={ tabIndex }
|
|
243
247
|
onFocus={ onFocus }
|
|
@@ -13,7 +13,13 @@ import {
|
|
|
13
13
|
} from '@wordpress/components';
|
|
14
14
|
import { useInstanceId } from '@wordpress/compose';
|
|
15
15
|
import { moreVertical } from '@wordpress/icons';
|
|
16
|
-
import {
|
|
16
|
+
import {
|
|
17
|
+
useCallback,
|
|
18
|
+
useMemo,
|
|
19
|
+
useState,
|
|
20
|
+
useRef,
|
|
21
|
+
memo,
|
|
22
|
+
} from '@wordpress/element';
|
|
17
23
|
import { useDispatch, useSelect } from '@wordpress/data';
|
|
18
24
|
import { sprintf, __ } from '@wordpress/i18n';
|
|
19
25
|
import { ESCAPE } from '@wordpress/keycodes';
|
|
@@ -53,9 +59,11 @@ function ListViewBlock( {
|
|
|
53
59
|
} ) {
|
|
54
60
|
const cellRef = useRef( null );
|
|
55
61
|
const rowRef = useRef( null );
|
|
62
|
+
const settingsRef = useRef( null );
|
|
56
63
|
const [ isHovered, setIsHovered ] = useState( false );
|
|
64
|
+
const [ settingsAnchorRect, setSettingsAnchorRect ] = useState();
|
|
57
65
|
|
|
58
|
-
const { isLocked, canEdit } = useBlockLock( clientId );
|
|
66
|
+
const { isLocked, canEdit, canMove } = useBlockLock( clientId );
|
|
59
67
|
|
|
60
68
|
const isFirstSelectedBlock =
|
|
61
69
|
isSelected && selectedClientIds[ 0 ] === clientId;
|
|
@@ -82,6 +90,11 @@ function ListViewBlock( {
|
|
|
82
90
|
},
|
|
83
91
|
[ clientId ]
|
|
84
92
|
);
|
|
93
|
+
const allowRightClickOverrides = useSelect(
|
|
94
|
+
( select ) =>
|
|
95
|
+
select( blockEditorStore ).getSettings().allowRightClickOverrides,
|
|
96
|
+
[]
|
|
97
|
+
);
|
|
85
98
|
|
|
86
99
|
const showBlockActions =
|
|
87
100
|
// When a block hides its toolbar it also hides the block settings menu,
|
|
@@ -190,6 +203,56 @@ function ListViewBlock( {
|
|
|
190
203
|
[ clientId, expand, collapse, isExpanded ]
|
|
191
204
|
);
|
|
192
205
|
|
|
206
|
+
// Allow right-clicking an item in the List View to open up the block settings dropdown.
|
|
207
|
+
const onContextMenu = useCallback(
|
|
208
|
+
( event ) => {
|
|
209
|
+
if ( showBlockActions && allowRightClickOverrides ) {
|
|
210
|
+
settingsRef.current?.click();
|
|
211
|
+
// Ensure the position of the settings dropdown is at the cursor.
|
|
212
|
+
setSettingsAnchorRect(
|
|
213
|
+
new window.DOMRect( event.clientX, event.clientY, 0, 0 )
|
|
214
|
+
);
|
|
215
|
+
event.preventDefault();
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
[ allowRightClickOverrides, settingsRef, showBlockActions ]
|
|
219
|
+
);
|
|
220
|
+
|
|
221
|
+
const onMouseDown = useCallback(
|
|
222
|
+
( event ) => {
|
|
223
|
+
// Prevent right-click from focusing the block,
|
|
224
|
+
// because focus will be handled when opening the block settings dropdown.
|
|
225
|
+
if ( allowRightClickOverrides && event.button === 2 ) {
|
|
226
|
+
event.preventDefault();
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
[ allowRightClickOverrides ]
|
|
230
|
+
);
|
|
231
|
+
|
|
232
|
+
const settingsPopoverAnchor = useMemo( () => {
|
|
233
|
+
const { ownerDocument } = rowRef?.current || {};
|
|
234
|
+
|
|
235
|
+
// If no custom position is set, the settings dropdown will be anchored to the
|
|
236
|
+
// DropdownMenu toggle button.
|
|
237
|
+
if ( ! settingsAnchorRect || ! ownerDocument ) {
|
|
238
|
+
return undefined;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// Position the settings dropdown at the cursor when right-clicking a block.
|
|
242
|
+
return {
|
|
243
|
+
ownerDocument,
|
|
244
|
+
getBoundingClientRect() {
|
|
245
|
+
return settingsAnchorRect;
|
|
246
|
+
},
|
|
247
|
+
};
|
|
248
|
+
}, [ settingsAnchorRect ] );
|
|
249
|
+
|
|
250
|
+
const clearSettingsAnchorRect = useCallback( () => {
|
|
251
|
+
// Clear the custom position for the settings dropdown so that it is restored back
|
|
252
|
+
// to being anchored to the DropdownMenu toggle button.
|
|
253
|
+
setSettingsAnchorRect( undefined );
|
|
254
|
+
}, [ setSettingsAnchorRect ] );
|
|
255
|
+
|
|
193
256
|
let colSpan;
|
|
194
257
|
if ( hasRenderedMovers ) {
|
|
195
258
|
colSpan = 2;
|
|
@@ -206,6 +269,7 @@ function ListViewBlock( {
|
|
|
206
269
|
'is-dragging': isDragged,
|
|
207
270
|
'has-single-cell': ! showBlockActions,
|
|
208
271
|
'is-synced': blockInformation?.isSynced,
|
|
272
|
+
'is-draggable': canMove,
|
|
209
273
|
} );
|
|
210
274
|
|
|
211
275
|
// Only include all selected blocks if the currently clicked on block
|
|
@@ -257,6 +321,8 @@ function ListViewBlock( {
|
|
|
257
321
|
<ListViewBlockContents
|
|
258
322
|
block={ block }
|
|
259
323
|
onClick={ selectEditorBlock }
|
|
324
|
+
onContextMenu={ onContextMenu }
|
|
325
|
+
onMouseDown={ onMouseDown }
|
|
260
326
|
onToggleExpanded={ toggleExpanded }
|
|
261
327
|
isSelected={ isSelected }
|
|
262
328
|
position={ position }
|
|
@@ -315,6 +381,7 @@ function ListViewBlock( {
|
|
|
315
381
|
<TreeGridCell
|
|
316
382
|
className={ listViewBlockSettingsClassName }
|
|
317
383
|
aria-selected={ !! isSelected }
|
|
384
|
+
ref={ settingsRef }
|
|
318
385
|
>
|
|
319
386
|
{ ( { ref, tabIndex, onFocus } ) => (
|
|
320
387
|
<BlockSettingsMenu
|
|
@@ -322,10 +389,14 @@ function ListViewBlock( {
|
|
|
322
389
|
block={ block }
|
|
323
390
|
icon={ moreVertical }
|
|
324
391
|
label={ settingsAriaLabel }
|
|
392
|
+
popoverProps={ {
|
|
393
|
+
anchor: settingsPopoverAnchor, // Used to position the settings at the cursor on right-click.
|
|
394
|
+
} }
|
|
325
395
|
toggleProps={ {
|
|
326
396
|
ref,
|
|
327
397
|
className: 'block-editor-list-view-block__menu',
|
|
328
398
|
tabIndex,
|
|
399
|
+
onClick: clearSettingsAnchorRect,
|
|
329
400
|
onFocus,
|
|
330
401
|
} }
|
|
331
402
|
disableOpenOnArrowDown
|
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
// Use position relative for row animation.
|
|
16
16
|
position: relative;
|
|
17
17
|
|
|
18
|
+
&.is-draggable,
|
|
19
|
+
&.is-draggable .block-editor-list-view-block-contents {
|
|
20
|
+
cursor: grab;
|
|
21
|
+
}
|
|
22
|
+
|
|
18
23
|
.block-editor-list-view-block-select-button {
|
|
19
24
|
// When a row is expanded, retain the dark color.
|
|
20
25
|
&[aria-expanded="true"] {
|
|
@@ -378,6 +383,7 @@
|
|
|
378
383
|
height: $icon-size;
|
|
379
384
|
margin-left: $grid-unit-05;
|
|
380
385
|
width: $icon-size;
|
|
386
|
+
cursor: pointer;
|
|
381
387
|
}
|
|
382
388
|
|
|
383
389
|
// First level of indentation is aria-level 2, max indent is 8.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export const MEDIA_UPLOAD_STATE_IDLE = 0;
|
|
2
|
+
export const MEDIA_UPLOAD_STATE_UPLOADING = 1;
|
|
3
|
+
export const MEDIA_UPLOAD_STATE_SUCCEEDED = 2;
|
|
4
|
+
export const MEDIA_UPLOAD_STATE_FAILED = 3;
|
|
5
|
+
export const MEDIA_UPLOAD_STATE_RESET = 4;
|
|
6
|
+
export const MEDIA_UPLOAD_STATE_PAUSED = 11;
|
|
@@ -15,23 +15,28 @@ import { subscribeMediaUpload } from '@wordpress/react-native-bridge';
|
|
|
15
15
|
* Internal dependencies
|
|
16
16
|
*/
|
|
17
17
|
import styles from './styles.scss';
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
import {
|
|
19
|
+
MEDIA_UPLOAD_STATE_IDLE,
|
|
20
|
+
MEDIA_UPLOAD_STATE_UPLOADING,
|
|
21
|
+
MEDIA_UPLOAD_STATE_SUCCEEDED,
|
|
22
|
+
MEDIA_UPLOAD_STATE_FAILED,
|
|
23
|
+
MEDIA_UPLOAD_STATE_RESET,
|
|
24
|
+
MEDIA_UPLOAD_STATE_PAUSED,
|
|
25
|
+
} from './constants';
|
|
23
26
|
|
|
24
27
|
export class MediaUploadProgress extends Component {
|
|
25
28
|
constructor( props ) {
|
|
26
29
|
super( props );
|
|
27
30
|
|
|
28
31
|
this.state = {
|
|
32
|
+
uploadState: MEDIA_UPLOAD_STATE_IDLE,
|
|
29
33
|
progress: 0,
|
|
30
34
|
isUploadInProgress: false,
|
|
31
35
|
isUploadFailed: false,
|
|
32
36
|
};
|
|
33
37
|
|
|
34
38
|
this.mediaUpload = this.mediaUpload.bind( this );
|
|
39
|
+
this.getRetryMessage = this.getRetryMessage.bind( this );
|
|
35
40
|
}
|
|
36
41
|
|
|
37
42
|
componentDidMount() {
|
|
@@ -45,7 +50,11 @@ export class MediaUploadProgress extends Component {
|
|
|
45
50
|
mediaUpload( payload ) {
|
|
46
51
|
const { mediaId } = this.props;
|
|
47
52
|
|
|
48
|
-
if (
|
|
53
|
+
if (
|
|
54
|
+
payload.mediaId !== mediaId ||
|
|
55
|
+
( payload.state === this.state.uploadState &&
|
|
56
|
+
payload.progress === this.state.progress )
|
|
57
|
+
) {
|
|
49
58
|
return;
|
|
50
59
|
}
|
|
51
60
|
|
|
@@ -56,6 +65,9 @@ export class MediaUploadProgress extends Component {
|
|
|
56
65
|
case MEDIA_UPLOAD_STATE_SUCCEEDED:
|
|
57
66
|
this.finishMediaUploadWithSuccess( payload );
|
|
58
67
|
break;
|
|
68
|
+
case MEDIA_UPLOAD_STATE_PAUSED:
|
|
69
|
+
this.finishMediaUploadWithPause( payload );
|
|
70
|
+
break;
|
|
59
71
|
case MEDIA_UPLOAD_STATE_FAILED:
|
|
60
72
|
this.finishMediaUploadWithFailure( payload );
|
|
61
73
|
break;
|
|
@@ -68,6 +80,7 @@ export class MediaUploadProgress extends Component {
|
|
|
68
80
|
updateMediaProgress( payload ) {
|
|
69
81
|
this.setState( {
|
|
70
82
|
progress: payload.progress,
|
|
83
|
+
uploadState: payload.state,
|
|
71
84
|
isUploadInProgress: true,
|
|
72
85
|
isUploadFailed: false,
|
|
73
86
|
} );
|
|
@@ -77,21 +90,48 @@ export class MediaUploadProgress extends Component {
|
|
|
77
90
|
}
|
|
78
91
|
|
|
79
92
|
finishMediaUploadWithSuccess( payload ) {
|
|
80
|
-
this.setState( {
|
|
93
|
+
this.setState( {
|
|
94
|
+
uploadState: payload.state,
|
|
95
|
+
isUploadInProgress: false,
|
|
96
|
+
} );
|
|
81
97
|
if ( this.props.onFinishMediaUploadWithSuccess ) {
|
|
82
98
|
this.props.onFinishMediaUploadWithSuccess( payload );
|
|
83
99
|
}
|
|
84
100
|
}
|
|
85
101
|
|
|
102
|
+
finishMediaUploadWithPause( payload ) {
|
|
103
|
+
if ( ! this.props.enablePausedUploads ) {
|
|
104
|
+
this.finishMediaUploadWithFailure( payload );
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
this.setState( {
|
|
109
|
+
uploadState: payload.state,
|
|
110
|
+
isUploadInProgress: true,
|
|
111
|
+
isUploadFailed: false,
|
|
112
|
+
} );
|
|
113
|
+
if ( this.props.onFinishMediaUploadWithFailure ) {
|
|
114
|
+
this.props.onFinishMediaUploadWithFailure( payload );
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
86
118
|
finishMediaUploadWithFailure( payload ) {
|
|
87
|
-
this.setState( {
|
|
119
|
+
this.setState( {
|
|
120
|
+
uploadState: payload.state,
|
|
121
|
+
isUploadInProgress: false,
|
|
122
|
+
isUploadFailed: true,
|
|
123
|
+
} );
|
|
88
124
|
if ( this.props.onFinishMediaUploadWithFailure ) {
|
|
89
125
|
this.props.onFinishMediaUploadWithFailure( payload );
|
|
90
126
|
}
|
|
91
127
|
}
|
|
92
128
|
|
|
93
129
|
mediaUploadStateReset( payload ) {
|
|
94
|
-
this.setState( {
|
|
130
|
+
this.setState( {
|
|
131
|
+
uploadState: payload.state,
|
|
132
|
+
isUploadInProgress: false,
|
|
133
|
+
isUploadFailed: false,
|
|
134
|
+
} );
|
|
95
135
|
if ( this.props.onMediaUploadStateReset ) {
|
|
96
136
|
this.props.onMediaUploadStateReset( payload );
|
|
97
137
|
}
|
|
@@ -115,15 +155,24 @@ export class MediaUploadProgress extends Component {
|
|
|
115
155
|
}
|
|
116
156
|
}
|
|
117
157
|
|
|
158
|
+
getRetryMessage() {
|
|
159
|
+
if (
|
|
160
|
+
this.state.uploadState === MEDIA_UPLOAD_STATE_PAUSED &&
|
|
161
|
+
this.props.enablePausedUploads
|
|
162
|
+
) {
|
|
163
|
+
return __( 'Waiting for connection' );
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// eslint-disable-next-line @wordpress/i18n-no-collapsible-whitespace
|
|
167
|
+
return __( 'Failed to insert media.\nTap for more info.' );
|
|
168
|
+
}
|
|
169
|
+
|
|
118
170
|
render() {
|
|
119
171
|
const { renderContent = () => null } = this.props;
|
|
120
|
-
const { isUploadInProgress, isUploadFailed } = this.state;
|
|
172
|
+
const { isUploadInProgress, isUploadFailed, uploadState } = this.state;
|
|
121
173
|
const showSpinner = this.state.isUploadInProgress;
|
|
122
174
|
const progress = this.state.progress * 100;
|
|
123
|
-
|
|
124
|
-
const retryMessage = __(
|
|
125
|
-
'Failed to insert media.\nTap for more info.'
|
|
126
|
-
);
|
|
175
|
+
const retryMessage = this.getRetryMessage();
|
|
127
176
|
|
|
128
177
|
const progressBarStyle = [
|
|
129
178
|
styles.progressBar,
|
|
@@ -149,6 +198,9 @@ export class MediaUploadProgress extends Component {
|
|
|
149
198
|
) }
|
|
150
199
|
</View>
|
|
151
200
|
{ renderContent( {
|
|
201
|
+
isUploadPaused:
|
|
202
|
+
uploadState === MEDIA_UPLOAD_STATE_PAUSED &&
|
|
203
|
+
this.props.enablePausedUploads,
|
|
152
204
|
isUploadInProgress,
|
|
153
205
|
isUploadFailed,
|
|
154
206
|
retryMessage,
|
|
@@ -14,13 +14,13 @@ import {
|
|
|
14
14
|
/**
|
|
15
15
|
* Internal dependencies
|
|
16
16
|
*/
|
|
17
|
+
import { MediaUploadProgress } from '../';
|
|
17
18
|
import {
|
|
18
|
-
MediaUploadProgress,
|
|
19
19
|
MEDIA_UPLOAD_STATE_UPLOADING,
|
|
20
20
|
MEDIA_UPLOAD_STATE_SUCCEEDED,
|
|
21
21
|
MEDIA_UPLOAD_STATE_FAILED,
|
|
22
22
|
MEDIA_UPLOAD_STATE_RESET,
|
|
23
|
-
} from '../';
|
|
23
|
+
} from '../constants';
|
|
24
24
|
|
|
25
25
|
let uploadCallBack;
|
|
26
26
|
subscribeMediaUpload.mockImplementation( ( callback ) => {
|
|
@@ -6,11 +6,6 @@ This card contains information on the number of blocks selected, and in the case
|
|
|
6
6
|
|
|
7
7
|

|
|
8
8
|
|
|
9
|
-
## Table of contents
|
|
10
|
-
|
|
11
|
-
1. [Development guidelines](#development-guidelines)
|
|
12
|
-
2. [Related components](#related-components)
|
|
13
|
-
|
|
14
9
|
## Development guidelines
|
|
15
10
|
|
|
16
11
|
### Usage
|