@wordpress/block-editor 12.15.0 → 12.16.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/README.md +9 -4
- package/build/components/block-canvas/index.js +22 -6
- 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-controls/hook.js +3 -23
- package/build/components/block-controls/hook.js.map +1 -1
- package/build/components/block-edit/context.js +5 -1
- package/build/components/block-edit/context.js.map +1 -1
- package/build/components/block-edit/index.js +18 -9
- package/build/components/block-edit/index.js.map +1 -1
- package/build/components/block-info-slot-fill/index.js +3 -4
- package/build/components/block-info-slot-fill/index.js.map +1 -1
- package/build/components/block-list/block.js +28 -9
- package/build/components/block-list/block.js.map +1 -1
- package/build/components/block-list/block.native.js +14 -5
- package/build/components/block-list/block.native.js.map +1 -1
- package/build/components/block-list/use-block-props/index.js +61 -18
- package/build/components/block-list/use-block-props/index.js.map +1 -1
- package/build/components/block-list/use-block-props/use-focus-first-element.js +4 -29
- package/build/components/block-list/use-block-props/use-focus-first-element.js.map +1 -1
- package/build/components/block-list/use-block-props/use-is-hovered.js +4 -14
- package/build/components/block-list/use-block-props/use-is-hovered.js.map +1 -1
- package/build/components/block-list/use-block-props/use-selected-block-event-handlers.js +4 -2
- package/build/components/block-list/use-block-props/use-selected-block-event-handlers.js.map +1 -1
- package/build/components/block-patterns-list/index.js +1 -1
- package/build/components/block-patterns-list/index.js.map +1 -1
- package/build/components/block-removal-warning-modal/index.js +2 -9
- package/build/components/block-removal-warning-modal/index.js.map +1 -1
- package/build/components/block-rename/modal.js +3 -0
- package/build/components/block-rename/modal.js.map +1 -1
- package/build/components/block-settings/container.native.js +6 -4
- package/build/components/block-settings/container.native.js.map +1 -1
- package/build/components/block-styles/index.js +1 -1
- package/build/components/block-styles/index.js.map +1 -1
- package/build/components/block-styles/index.native.js +3 -2
- package/build/components/block-styles/index.native.js.map +1 -1
- package/build/components/block-toolbar/index.js +89 -27
- package/build/components/block-toolbar/index.js.map +1 -1
- package/build/components/block-tools/block-toolbar-breadcrumb.js +49 -0
- package/build/components/block-tools/block-toolbar-breadcrumb.js.map +1 -0
- package/build/components/block-tools/block-toolbar-popover.js +86 -0
- package/build/components/block-tools/block-toolbar-popover.js.map +1 -0
- package/build/components/block-tools/index.js +27 -24
- package/build/components/block-tools/index.js.map +1 -1
- package/build/components/block-types-list/index.native.js +4 -3
- package/build/components/block-types-list/index.native.js.map +1 -1
- package/build/components/block-variation-picker/index.native.js +2 -1
- package/build/components/block-variation-picker/index.native.js.map +1 -1
- package/build/components/colors-gradients/control.js +28 -17
- package/build/components/colors-gradients/control.js.map +1 -1
- package/build/components/duotone-control/index.js +1 -4
- package/build/components/duotone-control/index.js.map +1 -1
- package/build/components/global-styles/color-panel.js +22 -20
- package/build/components/global-styles/color-panel.js.map +1 -1
- package/build/components/global-styles/filters-panel.js +9 -3
- package/build/components/global-styles/filters-panel.js.map +1 -1
- package/build/components/global-styles/typography-panel.js +20 -31
- package/build/components/global-styles/typography-panel.js.map +1 -1
- package/build/components/image-link-destinations/index.native.js +118 -0
- package/build/components/image-link-destinations/index.native.js.map +1 -0
- package/build/components/index.native.js +8 -0
- package/build/components/index.native.js.map +1 -1
- package/build/components/inserter/media-tab/media-panel.js +2 -2
- package/build/components/inserter/media-tab/media-panel.js.map +1 -1
- package/build/components/inserter/menu.js +14 -7
- package/build/components/inserter/menu.js.map +1 -1
- package/build/components/inserter/preview-panel.js +2 -2
- package/build/components/inserter/preview-panel.js.map +1 -1
- package/build/components/inserter-button/index.native.js +98 -0
- package/build/components/inserter-button/index.native.js.map +1 -0
- package/build/components/inserter-button/sparkles.js +23 -0
- package/build/components/inserter-button/sparkles.js.map +1 -0
- package/build/components/inserter-draggable-blocks/index.js +8 -4
- package/build/components/inserter-draggable-blocks/index.js.map +1 -1
- package/build/components/inspector-controls/fill.js +3 -3
- package/build/components/inspector-controls/fill.js.map +1 -1
- package/build/components/inspector-controls/fill.native.js +3 -3
- package/build/components/inspector-controls/fill.native.js.map +1 -1
- package/build/components/navigable-toolbar/index.js +2 -2
- package/build/components/navigable-toolbar/index.js.map +1 -1
- package/build/components/preview-options/index.js +6 -62
- package/build/components/preview-options/index.js.map +1 -1
- package/build/components/rich-text/content.js +26 -23
- package/build/components/rich-text/content.js.map +1 -1
- package/build/components/rich-text/get-rich-text-values.js +2 -1
- package/build/components/rich-text/get-rich-text-values.js.map +1 -1
- package/build/components/rich-text/index.js +2 -30
- package/build/components/rich-text/index.js.map +1 -1
- package/build/components/rich-text/index.native.js +9 -16
- package/build/components/rich-text/index.native.js.map +1 -1
- package/build/components/rich-text/native/get-format-colors.native.js +22 -24
- package/build/components/rich-text/native/get-format-colors.native.js.map +1 -1
- package/build/components/rich-text/native/index.native.js +7 -34
- package/build/components/rich-text/native/index.native.js.map +1 -1
- package/build/components/rich-text/use-input-rules.js +5 -1
- package/build/components/rich-text/use-input-rules.js.map +1 -1
- package/build/components/rich-text/with-deprecations.js +50 -0
- package/build/components/rich-text/with-deprecations.js.map +1 -0
- package/build/components/use-block-drop-zone/index.js +70 -8
- package/build/components/use-block-drop-zone/index.js.map +1 -1
- package/build/components/use-on-block-drop/index.js +1 -1
- package/build/components/use-on-block-drop/index.js.map +1 -1
- package/build/components/use-resize-canvas/index.js +4 -1
- package/build/components/use-resize-canvas/index.js.map +1 -1
- package/build/components/use-settings/index.js +14 -0
- package/build/components/use-settings/index.js.map +1 -1
- package/build/hooks/align.js +20 -68
- package/build/hooks/align.js.map +1 -1
- package/build/hooks/align.native.js +11 -1
- package/build/hooks/align.native.js.map +1 -1
- package/build/hooks/anchor.js +13 -29
- package/build/hooks/anchor.js.map +1 -1
- package/build/hooks/background.js +28 -31
- package/build/hooks/background.js.map +1 -1
- package/build/hooks/block-hooks.js +24 -32
- package/build/hooks/block-hooks.js.map +1 -1
- package/build/hooks/block-renaming.js +18 -22
- package/build/hooks/block-renaming.js.map +1 -1
- package/build/hooks/border.js +58 -80
- package/build/hooks/border.js.map +1 -1
- package/build/hooks/color.js +76 -89
- package/build/hooks/color.js.map +1 -1
- package/build/hooks/content-lock-ui.js +29 -29
- package/build/hooks/content-lock-ui.js.map +1 -1
- package/build/hooks/custom-class-name.js +12 -29
- package/build/hooks/custom-class-name.js.map +1 -1
- package/build/hooks/custom-fields.js +24 -38
- package/build/hooks/custom-fields.js.map +1 -1
- package/build/hooks/dimensions.js +21 -17
- package/build/hooks/dimensions.js.map +1 -1
- package/build/hooks/duotone.js +31 -61
- package/build/hooks/duotone.js.map +1 -1
- package/build/hooks/font-family.js +16 -25
- package/build/hooks/font-family.js.map +1 -1
- package/build/hooks/font-size.js +51 -119
- package/build/hooks/font-size.js.map +1 -1
- package/build/hooks/index.js +25 -14
- package/build/hooks/index.js.map +1 -1
- package/build/hooks/index.native.js +10 -3
- package/build/hooks/index.native.js.map +1 -1
- package/build/hooks/layout-child.js +68 -0
- package/build/hooks/layout-child.js.map +1 -0
- package/build/hooks/layout.js +16 -101
- package/build/hooks/layout.js.map +1 -1
- package/build/hooks/padding.js +2 -2
- package/build/hooks/padding.js.map +1 -1
- package/build/hooks/position.js +40 -62
- package/build/hooks/position.js.map +1 -1
- package/build/hooks/style.js +51 -88
- package/build/hooks/style.js.map +1 -1
- package/build/hooks/typography.js +34 -14
- package/build/hooks/typography.js.map +1 -1
- package/build/hooks/utils.js +154 -7
- package/build/hooks/utils.js.map +1 -1
- package/build/private-apis.js +0 -2
- package/build/private-apis.js.map +1 -1
- package/build/store/private-actions.js +8 -0
- package/build/store/private-actions.js.map +1 -1
- package/build/store/private-selectors.js +34 -0
- package/build/store/private-selectors.js.map +1 -1
- package/build/store/reducer.js +8 -0
- package/build/store/reducer.js.map +1 -1
- package/build/store/selectors.js +10 -60
- package/build/store/selectors.js.map +1 -1
- package/build/store/utils.js +66 -0
- package/build/store/utils.js.map +1 -0
- package/build/utils/object.js +21 -61
- package/build/utils/object.js.map +1 -1
- package/build/utils/selection.js +9 -1
- package/build/utils/selection.js.map +1 -1
- package/build-module/components/block-canvas/index.js +23 -7
- 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-controls/hook.js +4 -24
- package/build-module/components/block-controls/hook.js.map +1 -1
- package/build-module/components/block-edit/context.js +2 -0
- package/build-module/components/block-edit/context.js.map +1 -1
- package/build-module/components/block-edit/index.js +19 -10
- package/build-module/components/block-edit/index.js.map +1 -1
- package/build-module/components/block-info-slot-fill/index.js +3 -3
- package/build-module/components/block-info-slot-fill/index.js.map +1 -1
- package/build-module/components/block-list/block.js +29 -10
- package/build-module/components/block-list/block.js.map +1 -1
- package/build-module/components/block-list/block.native.js +14 -5
- package/build-module/components/block-list/block.native.js.map +1 -1
- package/build-module/components/block-list/use-block-props/index.js +62 -19
- package/build-module/components/block-list/use-block-props/index.js.map +1 -1
- package/build-module/components/block-list/use-block-props/use-focus-first-element.js +4 -29
- package/build-module/components/block-list/use-block-props/use-focus-first-element.js.map +1 -1
- package/build-module/components/block-list/use-block-props/use-is-hovered.js +4 -14
- package/build-module/components/block-list/use-block-props/use-is-hovered.js.map +1 -1
- package/build-module/components/block-list/use-block-props/use-selected-block-event-handlers.js +4 -2
- package/build-module/components/block-list/use-block-props/use-selected-block-event-handlers.js.map +1 -1
- package/build-module/components/block-patterns-list/index.js +1 -1
- package/build-module/components/block-patterns-list/index.js.map +1 -1
- package/build-module/components/block-removal-warning-modal/index.js +3 -10
- package/build-module/components/block-removal-warning-modal/index.js.map +1 -1
- package/build-module/components/block-rename/modal.js +3 -0
- package/build-module/components/block-rename/modal.js.map +1 -1
- package/build-module/components/block-settings/container.native.js +4 -2
- package/build-module/components/block-settings/container.native.js.map +1 -1
- package/build-module/components/block-styles/index.js +1 -1
- package/build-module/components/block-styles/index.js.map +1 -1
- package/build-module/components/block-styles/index.native.js +3 -2
- package/build-module/components/block-styles/index.native.js.map +1 -1
- package/build-module/components/block-toolbar/index.js +88 -25
- package/build-module/components/block-toolbar/index.js.map +1 -1
- package/build-module/components/block-tools/block-toolbar-breadcrumb.js +41 -0
- package/build-module/components/block-tools/block-toolbar-breadcrumb.js.map +1 -0
- package/build-module/components/block-tools/block-toolbar-popover.js +76 -0
- package/build-module/components/block-tools/block-toolbar-popover.js.map +1 -0
- package/build-module/components/block-tools/index.js +27 -24
- package/build-module/components/block-tools/index.js.map +1 -1
- package/build-module/components/block-types-list/index.native.js +2 -1
- package/build-module/components/block-types-list/index.native.js.map +1 -1
- package/build-module/components/block-variation-picker/index.native.js +2 -1
- package/build-module/components/block-variation-picker/index.native.js.map +1 -1
- package/build-module/components/colors-gradients/control.js +29 -18
- package/build-module/components/colors-gradients/control.js.map +1 -1
- package/build-module/components/duotone-control/index.js +1 -4
- package/build-module/components/duotone-control/index.js.map +1 -1
- package/build-module/components/global-styles/color-panel.js +23 -21
- package/build-module/components/global-styles/color-panel.js.map +1 -1
- package/build-module/components/global-styles/filters-panel.js +10 -4
- package/build-module/components/global-styles/filters-panel.js.map +1 -1
- package/build-module/components/global-styles/typography-panel.js +20 -31
- package/build-module/components/global-styles/typography-panel.js.map +1 -1
- package/build-module/components/image-link-destinations/index.native.js +109 -0
- package/build-module/components/image-link-destinations/index.native.js.map +1 -0
- package/build-module/components/index.native.js +1 -0
- package/build-module/components/index.native.js.map +1 -1
- package/build-module/components/inserter/media-tab/media-panel.js +1 -1
- package/build-module/components/inserter/media-tab/media-panel.js.map +1 -1
- package/build-module/components/inserter/menu.js +14 -7
- package/build-module/components/inserter/menu.js.map +1 -1
- package/build-module/components/inserter/preview-panel.js +2 -2
- package/build-module/components/inserter/preview-panel.js.map +1 -1
- package/build-module/components/inserter-button/index.native.js +89 -0
- package/build-module/components/inserter-button/index.native.js.map +1 -0
- package/build-module/components/inserter-button/sparkles.js +15 -0
- package/build-module/components/inserter-button/sparkles.js.map +1 -0
- package/build-module/components/inserter-draggable-blocks/index.js +9 -5
- package/build-module/components/inserter-draggable-blocks/index.js.map +1 -1
- package/build-module/components/inspector-controls/fill.js +3 -3
- package/build-module/components/inspector-controls/fill.js.map +1 -1
- package/build-module/components/inspector-controls/fill.native.js +3 -3
- package/build-module/components/inspector-controls/fill.native.js.map +1 -1
- package/build-module/components/navigable-toolbar/index.js +2 -2
- package/build-module/components/navigable-toolbar/index.js.map +1 -1
- package/build-module/components/preview-options/index.js +6 -62
- package/build-module/components/preview-options/index.js.map +1 -1
- package/build-module/components/rich-text/content.js +25 -21
- package/build-module/components/rich-text/content.js.map +1 -1
- package/build-module/components/rich-text/get-rich-text-values.js +2 -1
- package/build-module/components/rich-text/get-rich-text-values.js.map +1 -1
- package/build-module/components/rich-text/index.js +4 -32
- package/build-module/components/rich-text/index.js.map +1 -1
- package/build-module/components/rich-text/index.native.js +10 -18
- package/build-module/components/rich-text/index.native.js.map +1 -1
- package/build-module/components/rich-text/native/get-format-colors.native.js +22 -24
- package/build-module/components/rich-text/native/get-format-colors.native.js.map +1 -1
- package/build-module/components/rich-text/native/index.native.js +7 -34
- package/build-module/components/rich-text/native/index.native.js.map +1 -1
- package/build-module/components/rich-text/use-input-rules.js +5 -1
- package/build-module/components/rich-text/use-input-rules.js.map +1 -1
- package/build-module/components/rich-text/with-deprecations.js +42 -0
- package/build-module/components/rich-text/with-deprecations.js.map +1 -0
- package/build-module/components/use-block-drop-zone/index.js +69 -8
- package/build-module/components/use-block-drop-zone/index.js.map +1 -1
- package/build-module/components/use-on-block-drop/index.js +1 -1
- package/build-module/components/use-on-block-drop/index.js.map +1 -1
- package/build-module/components/use-resize-canvas/index.js +4 -1
- package/build-module/components/use-resize-canvas/index.js.map +1 -1
- package/build-module/components/use-settings/index.js +13 -1
- package/build-module/components/use-settings/index.js.map +1 -1
- package/build-module/hooks/align.js +19 -66
- package/build-module/hooks/align.js.map +1 -1
- package/build-module/hooks/align.native.js +1 -0
- package/build-module/hooks/align.native.js.map +1 -1
- package/build-module/hooks/anchor.js +11 -26
- package/build-module/hooks/anchor.js.map +1 -1
- package/build-module/hooks/background.js +26 -28
- package/build-module/hooks/background.js.map +1 -1
- package/build-module/hooks/block-hooks.js +22 -30
- package/build-module/hooks/block-hooks.js.map +1 -1
- package/build-module/hooks/block-renaming.js +17 -21
- package/build-module/hooks/block-renaming.js.map +1 -1
- package/build-module/hooks/border.js +57 -78
- package/build-module/hooks/border.js.map +1 -1
- package/build-module/hooks/color.js +74 -86
- package/build-module/hooks/color.js.map +1 -1
- package/build-module/hooks/content-lock-ui.js +27 -27
- package/build-module/hooks/content-lock-ui.js.map +1 -1
- package/build-module/hooks/custom-class-name.js +11 -27
- package/build-module/hooks/custom-class-name.js.map +1 -1
- package/build-module/hooks/custom-fields.js +20 -39
- package/build-module/hooks/custom-fields.js.map +1 -1
- package/build-module/hooks/dimensions.js +21 -16
- package/build-module/hooks/dimensions.js.map +1 -1
- package/build-module/hooks/duotone.js +30 -61
- package/build-module/hooks/duotone.js.map +1 -1
- package/build-module/hooks/font-family.js +14 -23
- package/build-module/hooks/font-family.js.map +1 -1
- package/build-module/hooks/font-size.js +49 -119
- package/build-module/hooks/font-size.js.map +1 -1
- package/build-module/hooks/index.js +18 -14
- package/build-module/hooks/index.js.map +1 -1
- package/build-module/hooks/index.native.js +5 -3
- package/build-module/hooks/index.native.js.map +1 -1
- package/build-module/hooks/layout-child.js +60 -0
- package/build-module/hooks/layout-child.js.map +1 -0
- package/build-module/hooks/layout.js +13 -98
- package/build-module/hooks/layout.js.map +1 -1
- package/build-module/hooks/padding.js +2 -2
- package/build-module/hooks/padding.js.map +1 -1
- package/build-module/hooks/position.js +38 -59
- package/build-module/hooks/position.js.map +1 -1
- package/build-module/hooks/style.js +51 -84
- package/build-module/hooks/style.js.map +1 -1
- package/build-module/hooks/typography.js +33 -12
- package/build-module/hooks/typography.js.map +1 -1
- package/build-module/hooks/utils.js +149 -6
- package/build-module/hooks/utils.js.map +1 -1
- package/build-module/private-apis.js +0 -2
- package/build-module/private-apis.js.map +1 -1
- package/build-module/store/private-actions.js +7 -0
- package/build-module/store/private-actions.js.map +1 -1
- package/build-module/store/private-selectors.js +33 -1
- package/build-module/store/private-selectors.js.map +1 -1
- package/build-module/store/reducer.js +8 -0
- package/build-module/store/reducer.js.map +1 -1
- package/build-module/store/selectors.js +3 -53
- package/build-module/store/selectors.js.map +1 -1
- package/build-module/store/utils.js +56 -0
- package/build-module/store/utils.js.map +1 -0
- package/build-module/utils/object.js +21 -60
- package/build-module/utils/object.js.map +1 -1
- package/build-module/utils/selection.js +9 -1
- package/build-module/utils/selection.js.map +1 -1
- package/build-style/style-rtl.css +113 -293
- package/build-style/style.css +113 -293
- package/package.json +31 -31
- package/src/components/block-canvas/index.js +31 -17
- package/src/components/block-caption/README.md +2 -2
- package/src/components/block-card/index.js +5 -3
- package/src/components/block-card/style.scss +7 -3
- package/src/components/block-controls/hook.js +8 -30
- package/src/components/block-controls/test/index.js +3 -3
- package/src/components/block-edit/context.js +3 -0
- package/src/components/block-edit/index.js +36 -10
- package/src/components/block-info-slot-fill/index.js +6 -3
- package/src/components/block-inspector/style.scss +0 -4
- package/src/components/block-list/block.js +39 -5
- package/src/components/block-list/block.native.js +18 -4
- package/src/components/block-list/use-block-props/index.js +74 -21
- package/src/components/block-list/use-block-props/use-focus-first-element.js +1 -34
- package/src/components/block-list/use-block-props/use-is-hovered.js +2 -13
- package/src/components/block-list/use-block-props/use-selected-block-event-handlers.js +1 -5
- package/src/components/block-patterns-list/index.js +1 -1
- package/src/components/block-removal-warning-modal/index.js +7 -14
- package/src/components/block-rename/modal.js +7 -1
- package/src/components/block-settings/container.native.js +3 -5
- package/src/components/block-styles/index.js +1 -1
- package/src/components/block-styles/index.native.js +4 -2
- package/src/components/block-styles/style.scss +0 -11
- package/src/components/block-switcher/test/__snapshots__/index.js.snap +3 -1
- package/src/components/block-toolbar/index.js +180 -95
- package/src/components/block-toolbar/style.scss +50 -66
- package/src/components/block-tools/block-toolbar-breadcrumb.js +46 -0
- package/src/components/block-tools/block-toolbar-popover.js +90 -0
- package/src/components/block-tools/index.js +42 -29
- package/src/components/block-tools/style.scss +60 -172
- package/src/components/block-types-list/index.native.js +2 -1
- package/src/components/block-variation-picker/index.native.js +1 -1
- package/src/components/colors-gradients/control.js +49 -30
- package/src/components/colors-gradients/style.scss +0 -7
- package/src/components/duotone-control/index.js +2 -5
- package/src/components/duotone-control/style.scss +1 -6
- package/src/components/global-styles/color-panel.js +34 -25
- package/src/components/global-styles/filters-panel.js +8 -4
- package/src/components/global-styles/typography-panel.js +23 -43
- package/src/components/image-link-destinations/index.native.js +152 -0
- package/src/components/image-link-destinations/style.native.scss +16 -0
- package/src/components/index.native.js +1 -0
- package/src/components/inner-blocks/README.md +13 -2
- package/src/components/inserter/media-tab/media-panel.js +1 -1
- package/src/components/inserter/menu.js +16 -8
- package/src/components/inserter/preview-panel.js +2 -2
- package/src/components/inserter/style.scss +15 -17
- package/src/components/inserter-button/README.md +62 -0
- package/src/components/inserter-button/index.native.js +116 -0
- package/src/components/inserter-button/sparkles.js +15 -0
- package/src/components/inserter-button/style.native.scss +72 -0
- package/src/components/inserter-draggable-blocks/index.js +18 -5
- package/src/components/inspector-controls/fill.js +6 -3
- package/src/components/inspector-controls/fill.native.js +6 -3
- package/src/components/link-control/style.scss +1 -1
- package/src/components/link-control/test/index.js +1 -1
- package/src/components/navigable-toolbar/README.md +2 -0
- package/src/components/navigable-toolbar/index.js +2 -2
- package/src/components/preview-options/index.js +6 -86
- package/src/components/rich-text/content.js +27 -20
- package/src/components/rich-text/get-rich-text-values.js +6 -1
- package/src/components/rich-text/index.js +5 -46
- package/src/components/rich-text/index.native.js +8 -25
- package/src/components/rich-text/native/get-format-colors.native.js +33 -40
- package/src/components/rich-text/native/index.native.js +7 -48
- package/src/components/rich-text/use-input-rules.js +6 -1
- package/src/components/rich-text/with-deprecations.js +51 -0
- package/src/components/use-block-drop-zone/index.js +114 -14
- package/src/components/use-on-block-drop/index.js +2 -1
- package/src/components/use-resize-canvas/README.md +3 -3
- package/src/components/use-resize-canvas/index.js +4 -1
- package/src/components/use-settings/index.js +15 -1
- package/src/hooks/align.js +15 -76
- package/src/hooks/align.native.js +1 -0
- package/src/hooks/anchor.js +13 -33
- package/src/hooks/background.js +28 -23
- package/src/hooks/block-hooks.js +22 -51
- package/src/hooks/block-renaming.js +23 -37
- package/src/hooks/border.js +67 -118
- package/src/hooks/color.js +100 -132
- package/src/hooks/content-lock-ui.js +110 -122
- package/src/hooks/custom-class-name.js +8 -40
- package/src/hooks/custom-fields.js +20 -47
- package/src/hooks/dimensions.js +20 -16
- package/src/hooks/duotone.js +70 -127
- package/src/hooks/font-family.js +10 -29
- package/src/hooks/font-size.js +66 -162
- package/src/hooks/index.js +42 -14
- package/src/hooks/index.native.js +6 -3
- package/src/hooks/layout-child.js +53 -0
- package/src/hooks/layout.js +13 -102
- package/src/hooks/padding.js +2 -2
- package/src/hooks/position.js +50 -90
- package/src/hooks/style.js +117 -187
- package/src/hooks/test/align.js +1 -178
- package/src/hooks/typography.js +20 -16
- package/src/hooks/utils.js +187 -6
- package/src/private-apis.js +0 -2
- package/src/store/private-actions.js +8 -0
- package/src/store/private-selectors.js +45 -0
- package/src/store/reducer.js +8 -0
- package/src/store/selectors.js +5 -69
- package/src/store/utils.js +74 -0
- package/src/style.scss +0 -2
- package/src/utils/object.js +18 -69
- package/src/utils/selection.js +9 -2
- package/build/components/block-list/use-block-props/use-block-class-names.js +0 -67
- package/build/components/block-list/use-block-props/use-block-class-names.js.map +0 -1
- package/build/components/block-list/use-block-props/use-block-custom-class-name.js +0 -46
- package/build/components/block-list/use-block-props/use-block-custom-class-name.js.map +0 -1
- package/build/components/block-list/use-block-props/use-block-default-class-name.js +0 -37
- package/build/components/block-list/use-block-props/use-block-default-class-name.js.map +0 -1
- package/build/components/block-tools/back-compat.js +0 -45
- package/build/components/block-tools/back-compat.js.map +0 -1
- package/build/components/block-tools/block-contextual-toolbar.js +0 -91
- package/build/components/block-tools/block-contextual-toolbar.js.map +0 -1
- package/build/components/block-tools/selected-block-tools.js +0 -113
- package/build/components/block-tools/selected-block-tools.js.map +0 -1
- package/build/components/inserter/hooks/use-debounced-input.js +0 -22
- package/build/components/inserter/hooks/use-debounced-input.js.map +0 -1
- package/build/components/use-display-block-controls/index.js +0 -39
- package/build/components/use-display-block-controls/index.js.map +0 -1
- package/build/components/use-display-block-controls/index.native.js +0 -39
- package/build/components/use-display-block-controls/index.native.js.map +0 -1
- package/build-module/components/block-list/use-block-props/use-block-class-names.js +0 -60
- package/build-module/components/block-list/use-block-props/use-block-class-names.js.map +0 -1
- package/build-module/components/block-list/use-block-props/use-block-custom-class-name.js +0 -40
- package/build-module/components/block-list/use-block-props/use-block-custom-class-name.js.map +0 -1
- package/build-module/components/block-list/use-block-props/use-block-default-class-name.js +0 -31
- package/build-module/components/block-list/use-block-props/use-block-default-class-name.js.map +0 -1
- package/build-module/components/block-tools/back-compat.js +0 -35
- package/build-module/components/block-tools/back-compat.js.map +0 -1
- package/build-module/components/block-tools/block-contextual-toolbar.js +0 -83
- package/build-module/components/block-tools/block-contextual-toolbar.js.map +0 -1
- package/build-module/components/block-tools/selected-block-tools.js +0 -105
- package/build-module/components/block-tools/selected-block-tools.js.map +0 -1
- package/build-module/components/inserter/hooks/use-debounced-input.js +0 -15
- package/build-module/components/inserter/hooks/use-debounced-input.js.map +0 -1
- package/build-module/components/use-display-block-controls/index.js +0 -32
- package/build-module/components/use-display-block-controls/index.js.map +0 -1
- package/build-module/components/use-display-block-controls/index.native.js +0 -32
- package/build-module/components/use-display-block-controls/index.native.js.map +0 -1
- package/src/components/block-list/use-block-props/use-block-class-names.js +0 -66
- package/src/components/block-list/use-block-props/use-block-custom-class-name.js +0 -44
- package/src/components/block-list/use-block-props/use-block-default-class-name.js +0 -35
- package/src/components/block-parent-selector/style.scss +0 -11
- package/src/components/block-tools/back-compat.js +0 -35
- package/src/components/block-tools/block-contextual-toolbar.js +0 -100
- package/src/components/block-tools/selected-block-tools.js +0 -127
- package/src/components/inserter/hooks/use-debounced-input.js +0 -18
- package/src/components/preview-options/README.md +0 -94
- package/src/components/preview-options/style.scss +0 -64
- package/src/components/use-display-block-controls/index.js +0 -36
- package/src/components/use-display-block-controls/index.native.js +0 -37
- package/src/hooks/test/color.js +0 -112
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress dependencies
|
|
3
|
+
*/
|
|
4
|
+
import { useInstanceId } from '@wordpress/compose';
|
|
5
|
+
import { useSelect } from '@wordpress/data';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Internal dependencies
|
|
9
|
+
*/
|
|
10
|
+
import { store as blockEditorStore } from '../store';
|
|
11
|
+
import { useStyleOverride } from './utils';
|
|
12
|
+
|
|
13
|
+
function useBlockPropsChildLayoutStyles( { style } ) {
|
|
14
|
+
const shouldRenderChildLayoutStyles = useSelect( ( select ) => {
|
|
15
|
+
return ! select( blockEditorStore ).getSettings().disableLayoutStyles;
|
|
16
|
+
} );
|
|
17
|
+
const layout = style?.layout ?? {};
|
|
18
|
+
const { selfStretch, flexSize } = layout;
|
|
19
|
+
const id = useInstanceId( useBlockPropsChildLayoutStyles );
|
|
20
|
+
const selector = `.wp-container-content-${ id }`;
|
|
21
|
+
|
|
22
|
+
let css = '';
|
|
23
|
+
if ( shouldRenderChildLayoutStyles ) {
|
|
24
|
+
if ( selfStretch === 'fixed' && flexSize ) {
|
|
25
|
+
css = `${ selector } {
|
|
26
|
+
flex-basis: ${ flexSize };
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
}`;
|
|
29
|
+
} else if ( selfStretch === 'fill' ) {
|
|
30
|
+
css = `${ selector } {
|
|
31
|
+
flex-grow: 1;
|
|
32
|
+
}`;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
useStyleOverride( { css } );
|
|
37
|
+
|
|
38
|
+
// Only attach a container class if there is generated CSS to be attached.
|
|
39
|
+
if ( ! css ) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Attach a `wp-container-content` id-based classname.
|
|
44
|
+
return { className: `wp-container-content-${ id }` };
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export default {
|
|
48
|
+
useBlockProps: useBlockPropsChildLayoutStyles,
|
|
49
|
+
attributeKeys: [ 'style' ],
|
|
50
|
+
hasSupport() {
|
|
51
|
+
return true;
|
|
52
|
+
},
|
|
53
|
+
};
|
package/src/hooks/layout.js
CHANGED
|
@@ -133,12 +133,11 @@ export function useLayoutStyles( blockAttributes = {}, blockName, selector ) {
|
|
|
133
133
|
return css;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
function
|
|
136
|
+
function LayoutPanelPure( { layout, setAttributes, name: blockName } ) {
|
|
137
137
|
const settings = useBlockSettings( blockName );
|
|
138
138
|
// Block settings come from theme.json under settings.[blockName].
|
|
139
139
|
const { layout: layoutSettings } = settings;
|
|
140
140
|
// Layout comes from block attributes.
|
|
141
|
-
const { layout } = attributes;
|
|
142
141
|
const [ defaultThemeLayout ] = useSettings( 'layout' );
|
|
143
142
|
const { themeSupportsLayout } = useSelect( ( select ) => {
|
|
144
143
|
const { getSettings } = select( blockEditorStore );
|
|
@@ -287,6 +286,15 @@ function LayoutPanel( { setAttributes, attributes, name: blockName } ) {
|
|
|
287
286
|
);
|
|
288
287
|
}
|
|
289
288
|
|
|
289
|
+
export default {
|
|
290
|
+
shareWithChildBlocks: true,
|
|
291
|
+
edit: LayoutPanelPure,
|
|
292
|
+
attributeKeys: [ 'layout' ],
|
|
293
|
+
hasSupport( name ) {
|
|
294
|
+
return hasLayoutBlockSupport( name );
|
|
295
|
+
},
|
|
296
|
+
};
|
|
297
|
+
|
|
290
298
|
function LayoutTypeSwitcher( { type, onChange } ) {
|
|
291
299
|
return (
|
|
292
300
|
<ButtonGroup>
|
|
@@ -328,25 +336,6 @@ export function addAttribute( settings ) {
|
|
|
328
336
|
return settings;
|
|
329
337
|
}
|
|
330
338
|
|
|
331
|
-
/**
|
|
332
|
-
* Override the default edit UI to include layout controls
|
|
333
|
-
*
|
|
334
|
-
* @param {Function} BlockEdit Original component.
|
|
335
|
-
*
|
|
336
|
-
* @return {Function} Wrapped component.
|
|
337
|
-
*/
|
|
338
|
-
export const withLayoutControls = createHigherOrderComponent(
|
|
339
|
-
( BlockEdit ) => ( props ) => {
|
|
340
|
-
const supportLayout = hasLayoutBlockSupport( props.name );
|
|
341
|
-
|
|
342
|
-
return [
|
|
343
|
-
supportLayout && <LayoutPanel key="layout" { ...props } />,
|
|
344
|
-
<BlockEdit key="edit" { ...props } />,
|
|
345
|
-
];
|
|
346
|
-
},
|
|
347
|
-
'withLayoutControls'
|
|
348
|
-
);
|
|
349
|
-
|
|
350
339
|
function BlockWithLayoutStyles( { block: BlockListBlock, props } ) {
|
|
351
340
|
const { name, attributes } = props;
|
|
352
341
|
const id = useInstanceId( BlockListBlock );
|
|
@@ -359,8 +348,9 @@ function BlockWithLayoutStyles( { block: BlockListBlock, props } ) {
|
|
|
359
348
|
: layout || defaultBlockLayout || {};
|
|
360
349
|
const layoutClasses = useLayoutClasses( attributes, name );
|
|
361
350
|
|
|
351
|
+
const selectorPrefix = `wp-container-${ kebabCase( name ) }-layout-`;
|
|
362
352
|
// Higher specificity to override defaults from theme.json.
|
|
363
|
-
const selector =
|
|
353
|
+
const selector = `.${ selectorPrefix }${ id }.${ selectorPrefix }${ id }`;
|
|
364
354
|
const [ blockGapSupport ] = useSettings( 'spacing.blockGap' );
|
|
365
355
|
const hasBlockGapSupport = blockGapSupport !== null;
|
|
366
356
|
|
|
@@ -378,7 +368,7 @@ function BlockWithLayoutStyles( { block: BlockListBlock, props } ) {
|
|
|
378
368
|
// Attach a `wp-container-` id-based class name as well as a layout class name such as `is-layout-flex`.
|
|
379
369
|
const layoutClassNames = classnames(
|
|
380
370
|
{
|
|
381
|
-
[
|
|
371
|
+
[ `${ selectorPrefix }${ id }` ]: !! css, // Only attach a container class if there is generated CSS to be attached.
|
|
382
372
|
},
|
|
383
373
|
layoutClasses
|
|
384
374
|
);
|
|
@@ -427,75 +417,6 @@ export const withLayoutStyles = createHigherOrderComponent(
|
|
|
427
417
|
'withLayoutStyles'
|
|
428
418
|
);
|
|
429
419
|
|
|
430
|
-
function BlockWithChildLayoutStyles( { block: BlockListBlock, props } ) {
|
|
431
|
-
const layout = props.attributes.style?.layout ?? {};
|
|
432
|
-
const { selfStretch, flexSize } = layout;
|
|
433
|
-
|
|
434
|
-
const id = useInstanceId( BlockListBlock );
|
|
435
|
-
const selector = `.wp-container-content-${ id }`;
|
|
436
|
-
|
|
437
|
-
let css = '';
|
|
438
|
-
if ( selfStretch === 'fixed' && flexSize ) {
|
|
439
|
-
css = `${ selector } {
|
|
440
|
-
flex-basis: ${ flexSize };
|
|
441
|
-
box-sizing: border-box;
|
|
442
|
-
}`;
|
|
443
|
-
} else if ( selfStretch === 'fill' ) {
|
|
444
|
-
css = `${ selector } {
|
|
445
|
-
flex-grow: 1;
|
|
446
|
-
}`;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
// Attach a `wp-container-content` id-based classname.
|
|
450
|
-
const className = classnames( props.className, {
|
|
451
|
-
[ `wp-container-content-${ id }` ]: !! css, // Only attach a container class if there is generated CSS to be attached.
|
|
452
|
-
} );
|
|
453
|
-
|
|
454
|
-
useStyleOverride( { css } );
|
|
455
|
-
|
|
456
|
-
return <BlockListBlock { ...props } className={ className } />;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
/**
|
|
460
|
-
* Override the default block element to add the child layout styles.
|
|
461
|
-
*
|
|
462
|
-
* @param {Function} BlockListBlock Original component.
|
|
463
|
-
*
|
|
464
|
-
* @return {Function} Wrapped component.
|
|
465
|
-
*/
|
|
466
|
-
export const withChildLayoutStyles = createHigherOrderComponent(
|
|
467
|
-
( BlockListBlock ) => ( props ) => {
|
|
468
|
-
const layout = props.attributes.style?.layout ?? {};
|
|
469
|
-
const { selfStretch, flexSize } = layout;
|
|
470
|
-
const hasChildLayout = selfStretch || flexSize;
|
|
471
|
-
|
|
472
|
-
const shouldRenderChildLayoutStyles = useSelect(
|
|
473
|
-
( select ) => {
|
|
474
|
-
// The callback returns early to avoid block editor subscription.
|
|
475
|
-
if ( ! hasChildLayout ) {
|
|
476
|
-
return false;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
return ! select( blockEditorStore ).getSettings()
|
|
480
|
-
.disableLayoutStyles;
|
|
481
|
-
},
|
|
482
|
-
[ hasChildLayout ]
|
|
483
|
-
);
|
|
484
|
-
|
|
485
|
-
if ( ! shouldRenderChildLayoutStyles ) {
|
|
486
|
-
return <BlockListBlock { ...props } />;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
return (
|
|
490
|
-
<BlockWithChildLayoutStyles
|
|
491
|
-
block={ BlockListBlock }
|
|
492
|
-
props={ props }
|
|
493
|
-
/>
|
|
494
|
-
);
|
|
495
|
-
},
|
|
496
|
-
'withChildLayoutStyles'
|
|
497
|
-
);
|
|
498
|
-
|
|
499
420
|
addFilter(
|
|
500
421
|
'blocks.registerBlockType',
|
|
501
422
|
'core/layout/addAttribute',
|
|
@@ -506,13 +427,3 @@ addFilter(
|
|
|
506
427
|
'core/editor/layout/with-layout-styles',
|
|
507
428
|
withLayoutStyles
|
|
508
429
|
);
|
|
509
|
-
addFilter(
|
|
510
|
-
'editor.BlockListBlock',
|
|
511
|
-
'core/editor/layout/with-child-layout-styles',
|
|
512
|
-
withChildLayoutStyles
|
|
513
|
-
);
|
|
514
|
-
addFilter(
|
|
515
|
-
'editor.BlockEdit',
|
|
516
|
-
'core/editor/layout/with-inspector-controls',
|
|
517
|
-
withLayoutControls
|
|
518
|
-
);
|
package/src/hooks/padding.js
CHANGED
|
@@ -16,11 +16,11 @@ function getComputedCSS( element, property ) {
|
|
|
16
16
|
.getPropertyValue( property );
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
export function PaddingVisualizer( { clientId,
|
|
19
|
+
export function PaddingVisualizer( { clientId, value, forceShow } ) {
|
|
20
20
|
const blockElement = useBlockElement( clientId );
|
|
21
21
|
const [ style, setStyle ] = useState();
|
|
22
22
|
|
|
23
|
-
const padding =
|
|
23
|
+
const padding = value?.spacing?.padding;
|
|
24
24
|
|
|
25
25
|
useEffect( () => {
|
|
26
26
|
if (
|
package/src/hooks/position.js
CHANGED
|
@@ -12,10 +12,9 @@ import {
|
|
|
12
12
|
BaseControl,
|
|
13
13
|
privateApis as componentsPrivateApis,
|
|
14
14
|
} from '@wordpress/components';
|
|
15
|
-
import {
|
|
15
|
+
import { useInstanceId } from '@wordpress/compose';
|
|
16
16
|
import { useSelect } from '@wordpress/data';
|
|
17
17
|
import { useMemo, Platform } from '@wordpress/element';
|
|
18
|
-
import { addFilter } from '@wordpress/hooks';
|
|
19
18
|
|
|
20
19
|
/**
|
|
21
20
|
* Internal dependencies
|
|
@@ -207,14 +206,12 @@ export function useIsPositionDisabled( { name: blockName } = {} ) {
|
|
|
207
206
|
*
|
|
208
207
|
* @return {Element} Position panel.
|
|
209
208
|
*/
|
|
210
|
-
export function
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
} = props;
|
|
217
|
-
|
|
209
|
+
export function PositionPanelPure( {
|
|
210
|
+
style = {},
|
|
211
|
+
clientId,
|
|
212
|
+
name: blockName,
|
|
213
|
+
setAttributes,
|
|
214
|
+
} ) {
|
|
218
215
|
const allowFixed = hasFixedPositionSupport( blockName );
|
|
219
216
|
const allowSticky = hasStickyPositionSupport( blockName );
|
|
220
217
|
const value = style?.position?.type;
|
|
@@ -316,89 +313,52 @@ export function PositionPanel( props ) {
|
|
|
316
313
|
} );
|
|
317
314
|
}
|
|
318
315
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
*
|
|
322
|
-
* @param {Function} BlockEdit Original component.
|
|
323
|
-
*
|
|
324
|
-
* @return {Function} Wrapped component.
|
|
325
|
-
*/
|
|
326
|
-
export const withPositionControls = createHigherOrderComponent(
|
|
327
|
-
( BlockEdit ) => ( props ) => {
|
|
328
|
-
const { name: blockName } = props;
|
|
329
|
-
const positionSupport = hasBlockSupport(
|
|
330
|
-
blockName,
|
|
331
|
-
POSITION_SUPPORT_KEY
|
|
332
|
-
);
|
|
316
|
+
export default {
|
|
317
|
+
edit: function Edit( props ) {
|
|
333
318
|
const isPositionDisabled = useIsPositionDisabled( props );
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
319
|
+
if ( isPositionDisabled ) {
|
|
320
|
+
return null;
|
|
321
|
+
}
|
|
322
|
+
return <PositionPanelPure { ...props } />;
|
|
323
|
+
},
|
|
324
|
+
useBlockProps,
|
|
325
|
+
attributeKeys: [ 'style' ],
|
|
326
|
+
hasSupport( name ) {
|
|
327
|
+
return hasBlockSupport( name, POSITION_SUPPORT_KEY );
|
|
342
328
|
},
|
|
343
|
-
|
|
344
|
-
);
|
|
329
|
+
};
|
|
345
330
|
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
// Get CSS string for the current position values.
|
|
370
|
-
let css;
|
|
371
|
-
if ( allowPositionStyles ) {
|
|
372
|
-
css =
|
|
373
|
-
getPositionCSS( {
|
|
374
|
-
selector: positionSelector,
|
|
375
|
-
style: attributes?.style,
|
|
376
|
-
} ) || '';
|
|
377
|
-
}
|
|
331
|
+
function useBlockProps( { name, style } ) {
|
|
332
|
+
const hasPositionBlockSupport = hasBlockSupport(
|
|
333
|
+
name,
|
|
334
|
+
POSITION_SUPPORT_KEY
|
|
335
|
+
);
|
|
336
|
+
const isPositionDisabled = useIsPositionDisabled( { name } );
|
|
337
|
+
const allowPositionStyles = hasPositionBlockSupport && ! isPositionDisabled;
|
|
338
|
+
|
|
339
|
+
const id = useInstanceId( useBlockProps );
|
|
340
|
+
|
|
341
|
+
// Higher specificity to override defaults in editor UI.
|
|
342
|
+
const positionSelector = `.wp-container-${ id }.wp-container-${ id }`;
|
|
343
|
+
|
|
344
|
+
// Get CSS string for the current position values.
|
|
345
|
+
let css;
|
|
346
|
+
if ( allowPositionStyles ) {
|
|
347
|
+
css =
|
|
348
|
+
getPositionCSS( {
|
|
349
|
+
selector: positionSelector,
|
|
350
|
+
style,
|
|
351
|
+
} ) || '';
|
|
352
|
+
}
|
|
378
353
|
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
!! attributes?.style?.position?.type,
|
|
386
|
-
} );
|
|
354
|
+
// Attach a `wp-container-` id-based class name.
|
|
355
|
+
const className = classnames( {
|
|
356
|
+
[ `wp-container-${ id }` ]: allowPositionStyles && !! css, // Only attach a container class if there is generated CSS to be attached.
|
|
357
|
+
[ `is-position-${ style?.position?.type }` ]:
|
|
358
|
+
allowPositionStyles && !! css && !! style?.position?.type,
|
|
359
|
+
} );
|
|
387
360
|
|
|
388
|
-
|
|
361
|
+
useStyleOverride( { css } );
|
|
389
362
|
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
'withPositionStyles'
|
|
393
|
-
);
|
|
394
|
-
|
|
395
|
-
addFilter(
|
|
396
|
-
'editor.BlockListBlock',
|
|
397
|
-
'core/editor/position/with-position-styles',
|
|
398
|
-
withPositionStyles
|
|
399
|
-
);
|
|
400
|
-
addFilter(
|
|
401
|
-
'editor.BlockEdit',
|
|
402
|
-
'core/editor/position/with-inspector-controls',
|
|
403
|
-
withPositionControls
|
|
404
|
-
);
|
|
363
|
+
return { className };
|
|
364
|
+
}
|