@blockbite/ui 2.0.1 → 2.0.2
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/dist/LinkPicker.js +18 -20
- package/dist/MediaPicker.js +13 -18
- package/dist/PasswordInput.js +1 -1
- package/dist/SingleBlockTypeAppender.js +6 -7
- package/dist/_virtual/_commonjsHelpers.js +4 -24
- package/dist/node_modules/@blockbite/icons/dist/ChevronDown.js +12 -12
- package/dist/node_modules/@blockbite/icons/dist/ColumnSpacing.js +33 -33
- package/dist/node_modules/@blockbite/icons/dist/Cross2.js +14 -14
- package/dist/node_modules/@blockbite/icons/dist/Desktop.js +35 -35
- package/dist/node_modules/@blockbite/icons/dist/Grid.js +34 -34
- package/dist/node_modules/@blockbite/icons/dist/Pencil1.js +2 -2
- package/dist/node_modules/@blockbite/icons/dist/Percentage.js +5 -5
- package/dist/node_modules/@blockbite/icons/dist/Plus.js +18 -18
- package/dist/node_modules/@blockbite/icons/dist/Slider.js +2 -2
- package/dist/node_modules/@blockbite/icons/dist/Tailwind.js +15 -15
- package/dist/node_modules/@blockbite/icons/dist/Trash.js +33 -33
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +32 -32
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +7 -7
- package/package.json +1 -1
- package/dist/_virtual/TextareaAutosize.js +0 -4
- package/dist/_virtual/___vite-browser-external.js +0 -6
- package/dist/_virtual/__vite-browser-external.js +0 -4
- package/dist/_virtual/async.js +0 -4
- package/dist/_virtual/autosize.js +0 -4
- package/dist/_virtual/base.js +0 -4
- package/dist/_virtual/builtin.js +0 -4
- package/dist/_virtual/character.js +0 -4
- package/dist/_virtual/clipboard.js +0 -4
- package/dist/_virtual/create.js +0 -4
- package/dist/_virtual/dispatcher.js +0 -4
- package/dist/_virtual/helpers.js +0 -4
- package/dist/_virtual/index.js +0 -4
- package/dist/_virtual/index2.js +0 -4
- package/dist/_virtual/index3.js +0 -4
- package/dist/_virtual/index4.js +0 -4
- package/dist/_virtual/index5.js +0 -4
- package/dist/_virtual/index6.js +0 -4
- package/dist/_virtual/index7.js +0 -4
- package/dist/_virtual/index8.js +0 -4
- package/dist/_virtual/is.js +0 -4
- package/dist/_virtual/keys.js +0 -4
- package/dist/_virtual/picocolors.browser.js +0 -4
- package/dist/_virtual/react-is.development.js +0 -4
- package/dist/_virtual/react-is.development2.js +0 -4
- package/dist/_virtual/react-is.production.min.js +0 -4
- package/dist/_virtual/react-is.production.min2.js +0 -4
- package/dist/_virtual/showdown.js +0 -4
- package/dist/_virtual/sprintf.js +0 -4
- package/dist/_virtual/symbols.js +0 -4
- package/dist/_virtual/wrap.js +0 -4
- package/dist/node_modules/@react-spring/animated/dist/react-spring_animated.modern.js +0 -197
- package/dist/node_modules/@react-spring/core/dist/react-spring_core.modern.js +0 -960
- package/dist/node_modules/@react-spring/rafz/dist/react-spring_rafz.modern.js +0 -103
- package/dist/node_modules/@react-spring/shared/dist/react-spring_shared.modern.js +0 -568
- package/dist/node_modules/@react-spring/web/dist/react-spring_web.modern.js +0 -309
- package/dist/node_modules/@tannin/compile/index.js +0 -11
- package/dist/node_modules/@tannin/evaluate/index.js +0 -68
- package/dist/node_modules/@tannin/plural-forms/index.js +0 -10
- package/dist/node_modules/@tannin/postfix/index.js +0 -47
- package/dist/node_modules/@wordpress/a11y/build-module/index.js +0 -11
- package/dist/node_modules/@wordpress/a11y/build-module/script/add-container.js +0 -11
- package/dist/node_modules/@wordpress/a11y/build-module/script/add-intro-text.js +0 -14
- package/dist/node_modules/@wordpress/a11y/build-module/shared/clear.js +0 -9
- package/dist/node_modules/@wordpress/a11y/build-module/shared/filter-message.js +0 -7
- package/dist/node_modules/@wordpress/a11y/build-module/shared/index.js +0 -10
- package/dist/node_modules/@wordpress/api-fetch/build-module/index.js +0 -78
- package/dist/node_modules/@wordpress/api-fetch/build-module/middlewares/fetch-all-middleware.js +0 -60
- package/dist/node_modules/@wordpress/api-fetch/build-module/middlewares/http-v1.js +0 -17
- package/dist/node_modules/@wordpress/api-fetch/build-module/middlewares/media-upload.js +0 -37
- package/dist/node_modules/@wordpress/api-fetch/build-module/middlewares/namespace-endpoint.js +0 -10
- package/dist/node_modules/@wordpress/api-fetch/build-module/middlewares/nonce.js +0 -21
- package/dist/node_modules/@wordpress/api-fetch/build-module/middlewares/preloading.js +0 -40
- package/dist/node_modules/@wordpress/api-fetch/build-module/middlewares/root-url.js +0 -11
- package/dist/node_modules/@wordpress/api-fetch/build-module/middlewares/theme-preview.js +0 -21
- package/dist/node_modules/@wordpress/api-fetch/build-module/middlewares/user-locale.js +0 -10
- package/dist/node_modules/@wordpress/api-fetch/build-module/utils/response.js +0 -29
- package/dist/node_modules/@wordpress/api-fetch/node_modules/@wordpress/hooks/build-module/createAddHook.js +0 -39
- package/dist/node_modules/@wordpress/api-fetch/node_modules/@wordpress/hooks/build-module/createCurrentHook.js +0 -10
- package/dist/node_modules/@wordpress/api-fetch/node_modules/@wordpress/hooks/build-module/createDidHook.js +0 -11
- package/dist/node_modules/@wordpress/api-fetch/node_modules/@wordpress/hooks/build-module/createDoingHook.js +0 -9
- package/dist/node_modules/@wordpress/api-fetch/node_modules/@wordpress/hooks/build-module/createHasHook.js +0 -9
- package/dist/node_modules/@wordpress/api-fetch/node_modules/@wordpress/hooks/build-module/createHooks.js +0 -19
- package/dist/node_modules/@wordpress/api-fetch/node_modules/@wordpress/hooks/build-module/createRemoveHook.js +0 -28
- package/dist/node_modules/@wordpress/api-fetch/node_modules/@wordpress/hooks/build-module/createRunHook.js +0 -25
- package/dist/node_modules/@wordpress/api-fetch/node_modules/@wordpress/hooks/build-module/index.js +0 -43
- package/dist/node_modules/@wordpress/api-fetch/node_modules/@wordpress/hooks/build-module/validateHookName.js +0 -6
- package/dist/node_modules/@wordpress/api-fetch/node_modules/@wordpress/hooks/build-module/validateNamespace.js +0 -6
- package/dist/node_modules/@wordpress/api-fetch/node_modules/@wordpress/i18n/build-module/create-i18n.js +0 -95
- package/dist/node_modules/@wordpress/api-fetch/node_modules/@wordpress/i18n/build-module/default-i18n.js +0 -17
- package/dist/node_modules/@wordpress/api-fetch/node_modules/@wordpress/i18n/build-module/sprintf.js +0 -3
- package/dist/node_modules/@wordpress/autop/build-module/index.js +0 -76
- package/dist/node_modules/@wordpress/blob/build-module/index.js +0 -16
- package/dist/node_modules/@wordpress/block-editor/build-module/components/alignment-control/index.js +0 -9
- package/dist/node_modules/@wordpress/block-editor/build-module/components/alignment-control/ui.js +0 -67
- package/dist/node_modules/@wordpress/block-editor/build-module/components/background-image-control/index.js +0 -416
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-alignment-control/constants.js +0 -39
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-alignment-control/index.js +0 -9
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-alignment-control/ui.js +0 -77
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-alignment-control/use-available-alignments.js +0 -31
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-card/index.js +0 -85
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-compare/block-view.js +0 -43
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-compare/index.js +0 -54
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-context/index.js +0 -20
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-controls/fill.js +0 -35
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-controls/groups.js +0 -11
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-controls/hook.js +0 -9
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-controls/index.js +0 -8
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-controls/slot.js +0 -38
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-draggable/draggable-chip.js +0 -47
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-edit/context.js +0 -20
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-edit/edit.js +0 -135
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-edit/index.js +0 -63
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-edit/multiple-usage-warning.js +0 -38
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-editing-mode/index.js +0 -21
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-icon/index.js +0 -33
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-list/block-crash-boundary.js +0 -19
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-list/block-crash-warning.js +0 -12
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-list/block-html.js +0 -43
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-list/block-invalid-warning.js +0 -99
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-list/block.js +0 -474
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-list/index.js +0 -188
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-list/layout.js +0 -13
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-list/private-block-context.js +0 -5
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-list/use-block-props/index.js +0 -117
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-list/use-block-props/use-block-refs.js +0 -33
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-list/use-block-props/use-firefox-draggable-compatibility.js +0 -37
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-list/use-block-props/use-focus-first-element.js +0 -44
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-list/use-block-props/use-focus-handler.js +0 -30
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-list/use-block-props/use-intersection-observer.js +0 -15
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-list/use-block-props/use-is-hovered.js +0 -22
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-list/use-block-props/use-scroll-into-view.js +0 -29
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-list/use-block-props/use-selected-block-event-handlers.js +0 -94
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-list/use-in-between-inserter.js +0 -78
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-list/zoom-out-separator.js +0 -99
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-list-appender/index.js +0 -50
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-patterns-list/index.js +0 -159
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-patterns-paging/index.js +0 -94
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-popover/cover.js +0 -57
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-popover/index.js +0 -82
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-popover/use-popover-scroll.js +0 -25
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-preview/async.js +0 -22
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-preview/auto.js +0 -93
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-preview/index.js +0 -51
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-selection-clearer/index.js +0 -29
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-tools/insertion-point.js +0 -8
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-types-list/index.js +0 -42
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-vertical-alignment-control/index.js +0 -9
- package/dist/node_modules/@wordpress/block-editor/build-module/components/block-vertical-alignment-control/ui.js +0 -60
- package/dist/node_modules/@wordpress/block-editor/build-module/components/border-radius-control/all-input-control.js +0 -41
- package/dist/node_modules/@wordpress/block-editor/build-module/components/border-radius-control/index.js +0 -83
- package/dist/node_modules/@wordpress/block-editor/build-module/components/border-radius-control/input-controls.js +0 -62
- package/dist/node_modules/@wordpress/block-editor/build-module/components/border-radius-control/linked-button.js +0 -24
- package/dist/node_modules/@wordpress/block-editor/build-module/components/border-radius-control/utils.js +0 -34
- package/dist/node_modules/@wordpress/block-editor/build-module/components/button-block-appender/index.js +0 -65
- package/dist/node_modules/@wordpress/block-editor/build-module/components/child-layout-control/index.js +0 -249
- package/dist/node_modules/@wordpress/block-editor/build-module/components/colors/utils.js +0 -26
- package/dist/node_modules/@wordpress/block-editor/build-module/components/colors-gradients/control.js +0 -124
- package/dist/node_modules/@wordpress/block-editor/build-module/components/colors-gradients/use-multiple-origin-colors-and-gradients.js +0 -45
- package/dist/node_modules/@wordpress/block-editor/build-module/components/contrast-checker/index.js +0 -73
- package/dist/node_modules/@wordpress/block-editor/build-module/components/default-block-appender/index.js +0 -74
- package/dist/node_modules/@wordpress/block-editor/build-module/components/dimensions-tool/aspect-ratio-tool.js +0 -56
- package/dist/node_modules/@wordpress/block-editor/build-module/components/duotone/utils.js +0 -58
- package/dist/node_modules/@wordpress/block-editor/build-module/components/duotone-control/index.js +0 -69
- package/dist/node_modules/@wordpress/block-editor/build-module/components/editor-styles/index.js +0 -77
- package/dist/node_modules/@wordpress/block-editor/build-module/components/font-appearance-control/index.js +0 -100
- package/dist/node_modules/@wordpress/block-editor/build-module/components/font-family/index.js +0 -64
- package/dist/node_modules/@wordpress/block-editor/build-module/components/font-sizes/fluid-utils.js +0 -77
- package/dist/node_modules/@wordpress/block-editor/build-module/components/font-sizes/utils.js +0 -24
- package/dist/node_modules/@wordpress/block-editor/build-module/components/global-styles/background-panel.js +0 -82
- package/dist/node_modules/@wordpress/block-editor/build-module/components/global-styles/border-panel.js +0 -203
- package/dist/node_modules/@wordpress/block-editor/build-module/components/global-styles/color-panel.js +0 -448
- package/dist/node_modules/@wordpress/block-editor/build-module/components/global-styles/context.js +0 -12
- package/dist/node_modules/@wordpress/block-editor/build-module/components/global-styles/dimensions-panel.js +0 -400
- package/dist/node_modules/@wordpress/block-editor/build-module/components/global-styles/filters-panel.js +0 -168
- package/dist/node_modules/@wordpress/block-editor/build-module/components/global-styles/get-block-css-selector.js +0 -29
- package/dist/node_modules/@wordpress/block-editor/build-module/components/global-styles/hooks.js +0 -116
- package/dist/node_modules/@wordpress/block-editor/build-module/components/global-styles/shadow-panel-components.js +0 -189
- package/dist/node_modules/@wordpress/block-editor/build-module/components/global-styles/typography-panel.js +0 -308
- package/dist/node_modules/@wordpress/block-editor/build-module/components/global-styles/typography-utils.js +0 -81
- package/dist/node_modules/@wordpress/block-editor/build-module/components/global-styles/use-global-styles-output.js +0 -418
- package/dist/node_modules/@wordpress/block-editor/build-module/components/global-styles/utils.js +0 -190
- package/dist/node_modules/@wordpress/block-editor/build-module/components/gradients/use-gradient.js +0 -9
- package/dist/node_modules/@wordpress/block-editor/build-module/components/grid/grid-item-movers.js +0 -113
- package/dist/node_modules/@wordpress/block-editor/build-module/components/grid/grid-item-resizer.js +0 -114
- package/dist/node_modules/@wordpress/block-editor/build-module/components/grid/grid-visualizer.js +0 -264
- package/dist/node_modules/@wordpress/block-editor/build-module/components/grid/use-get-number-of-blocks-before-cell.js +0 -24
- package/dist/node_modules/@wordpress/block-editor/build-module/components/grid/use-grid-layout-sync.js +0 -161
- package/dist/node_modules/@wordpress/block-editor/build-module/components/grid/utils.js +0 -77
- package/dist/node_modules/@wordpress/block-editor/build-module/components/height-control/index.js +0 -178
- package/dist/node_modules/@wordpress/block-editor/build-module/components/iframe/get-compatibility-styles.js +0 -38
- package/dist/node_modules/@wordpress/block-editor/build-module/components/iframe/index.js +0 -206
- package/dist/node_modules/@wordpress/block-editor/build-module/components/iframe/use-scale-canvas.js +0 -139
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inner-blocks/button-block-appender.js +0 -26
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inner-blocks/default-block-appender.js +0 -14
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inner-blocks/index.js +0 -179
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inner-blocks/use-block-context.js +0 -16
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inner-blocks/use-inner-block-template-sync.js +0 -44
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inner-blocks/use-nested-settings-update.js +0 -54
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/block-patterns-explorer/index.js +0 -49
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.js +0 -65
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/block-patterns-explorer/pattern-list.js +0 -92
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/block-patterns-tab/index.js +0 -57
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/block-patterns-tab/pattern-category-previews.js +0 -81
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/block-patterns-tab/patterns-filter.js +0 -100
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/block-patterns-tab/use-pattern-categories.js +0 -31
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/block-patterns-tab/utils.js +0 -32
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/block-types-tab.js +0 -123
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/category-tabs/index.js +0 -64
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/hooks/use-block-types-state.js +0 -58
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/hooks/use-insertion-point.js +0 -92
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/hooks/use-patterns-paging.js +0 -23
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/hooks/use-patterns-state.js +0 -66
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/index.js +0 -281
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/media-tab/hooks.js +0 -67
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/media-tab/media-list.js +0 -26
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/media-tab/media-panel.js +0 -45
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/media-tab/media-preview.js +0 -207
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/media-tab/media-tab.js +0 -72
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/media-tab/utils.js +0 -30
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/menu.js +0 -203
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/mobile-tab-navigation.js +0 -77
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/no-results.js +0 -15
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/panel.js +0 -25
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/preview-panel.js +0 -67
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/quick-inserter.js +0 -92
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/search-items.js +0 -66
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/search-results.js +0 -127
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter/tips.js +0 -26
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter-draggable-blocks/index.js +0 -70
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter-list-item/index.js +0 -84
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter-listbox/group.js +0 -28
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter-listbox/index.js +0 -15
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter-listbox/item.js +0 -34
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter-listbox/row.js +0 -14
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inserter-menu-extension/index.js +0 -9
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inspector-controls/block-support-slot-container.js +0 -26
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inspector-controls/block-support-tools-panel.js +0 -56
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inspector-controls/fill.js +0 -64
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inspector-controls/groups.js +0 -21
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inspector-controls/index.js +0 -8
- package/dist/node_modules/@wordpress/block-editor/build-module/components/inspector-controls/slot.js +0 -44
- package/dist/node_modules/@wordpress/block-editor/build-module/components/justify-content-control/index.js +0 -9
- package/dist/node_modules/@wordpress/block-editor/build-module/components/justify-content-control/ui.js +0 -71
- package/dist/node_modules/@wordpress/block-editor/build-module/components/keyboard-shortcuts/index.js +0 -160
- package/dist/node_modules/@wordpress/block-editor/build-module/components/letter-spacing-control/index.js +0 -40
- package/dist/node_modules/@wordpress/block-editor/build-module/components/line-height-control/index.js +0 -74
- package/dist/node_modules/@wordpress/block-editor/build-module/components/line-height-control/utils.js +0 -11
- package/dist/node_modules/@wordpress/block-editor/build-module/components/link-control/constants.js +0 -16
- package/dist/node_modules/@wordpress/block-editor/build-module/components/link-control/index.js +0 -204
- package/dist/node_modules/@wordpress/block-editor/build-module/components/link-control/is-url-like.js +0 -16
- package/dist/node_modules/@wordpress/block-editor/build-module/components/link-control/link-preview.js +0 -130
- package/dist/node_modules/@wordpress/block-editor/build-module/components/link-control/search-create-button.js +0 -35
- package/dist/node_modules/@wordpress/block-editor/build-module/components/link-control/search-input.js +0 -96
- package/dist/node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js +0 -82
- package/dist/node_modules/@wordpress/block-editor/build-module/components/link-control/search-results.js +0 -63
- package/dist/node_modules/@wordpress/block-editor/build-module/components/link-control/settings-drawer.js +0 -57
- package/dist/node_modules/@wordpress/block-editor/build-module/components/link-control/settings.js +0 -37
- package/dist/node_modules/@wordpress/block-editor/build-module/components/link-control/use-create-page.js +0 -47
- package/dist/node_modules/@wordpress/block-editor/build-module/components/link-control/use-internal-value.js +0 -25
- package/dist/node_modules/@wordpress/block-editor/build-module/components/link-control/use-rich-url-data.js +0 -66
- package/dist/node_modules/@wordpress/block-editor/build-module/components/link-control/use-search-handler.js +0 -58
- package/dist/node_modules/@wordpress/block-editor/build-module/components/link-control/viewer-slot.js +0 -10
- package/dist/node_modules/@wordpress/block-editor/build-module/components/media-replace-flow/index.js +0 -181
- package/dist/node_modules/@wordpress/block-editor/build-module/components/media-upload/check.js +0 -17
- package/dist/node_modules/@wordpress/block-editor/build-module/components/media-upload/index.js +0 -5
- package/dist/node_modules/@wordpress/block-editor/build-module/components/observe-typing/index.js +0 -95
- package/dist/node_modules/@wordpress/block-editor/build-module/components/provider/block-refs-provider.js +0 -21
- package/dist/node_modules/@wordpress/block-editor/build-module/components/provider/index.js +0 -74
- package/dist/node_modules/@wordpress/block-editor/build-module/components/provider/use-block-sync.js +0 -85
- package/dist/node_modules/@wordpress/block-editor/build-module/components/provider/use-media-upload-settings.js +0 -12
- package/dist/node_modules/@wordpress/block-editor/build-module/components/provider/with-registry-provider.js +0 -33
- package/dist/node_modules/@wordpress/block-editor/build-module/components/spacing-sizes-control/hooks/use-spacing-sizes.js +0 -29
- package/dist/node_modules/@wordpress/block-editor/build-module/components/spacing-sizes-control/index.js +0 -79
- package/dist/node_modules/@wordpress/block-editor/build-module/components/spacing-sizes-control/input-controls/axial.js +0 -44
- package/dist/node_modules/@wordpress/block-editor/build-module/components/spacing-sizes-control/input-controls/separated.js +0 -38
- package/dist/node_modules/@wordpress/block-editor/build-module/components/spacing-sizes-control/input-controls/single.js +0 -37
- package/dist/node_modules/@wordpress/block-editor/build-module/components/spacing-sizes-control/input-controls/spacing-input-control.js +0 -286
- package/dist/node_modules/@wordpress/block-editor/build-module/components/spacing-sizes-control/linked-button.js +0 -23
- package/dist/node_modules/@wordpress/block-editor/build-module/components/spacing-sizes-control/utils.js +0 -121
- package/dist/node_modules/@wordpress/block-editor/build-module/components/tabbed-sidebar/index.js +0 -54
- package/dist/node_modules/@wordpress/block-editor/build-module/components/text-alignment-control/index.js +0 -55
- package/dist/node_modules/@wordpress/block-editor/build-module/components/text-decoration-control/index.js +0 -47
- package/dist/node_modules/@wordpress/block-editor/build-module/components/text-transform-control/index.js +0 -52
- package/dist/node_modules/@wordpress/block-editor/build-module/components/url-input/index.js +0 -322
- package/dist/node_modules/@wordpress/block-editor/build-module/components/use-block-display-information/index.js +0 -50
- package/dist/node_modules/@wordpress/block-editor/build-module/components/use-block-drop-zone/index.js +0 -199
- package/dist/node_modules/@wordpress/block-editor/build-module/components/use-flash-editable-blocks/index.js +0 -30
- package/dist/node_modules/@wordpress/block-editor/build-module/components/use-moving-animation/index.js +0 -91
- package/dist/node_modules/@wordpress/block-editor/build-module/components/use-on-block-drop/index.js +0 -132
- package/dist/node_modules/@wordpress/block-editor/build-module/components/use-settings/index.js +0 -16
- package/dist/node_modules/@wordpress/block-editor/build-module/components/warning/index.js +0 -54
- package/dist/node_modules/@wordpress/block-editor/build-module/components/writing-flow/index.js +0 -45
- package/dist/node_modules/@wordpress/block-editor/build-module/components/writing-flow/use-arrow-nav.js +0 -114
- package/dist/node_modules/@wordpress/block-editor/build-module/components/writing-flow/use-click-selection.js +0 -28
- package/dist/node_modules/@wordpress/block-editor/build-module/components/writing-flow/use-clipboard-handler.js +0 -128
- package/dist/node_modules/@wordpress/block-editor/build-module/components/writing-flow/use-drag-selection.js +0 -59
- package/dist/node_modules/@wordpress/block-editor/build-module/components/writing-flow/use-input.js +0 -75
- package/dist/node_modules/@wordpress/block-editor/build-module/components/writing-flow/use-multi-selection.js +0 -47
- package/dist/node_modules/@wordpress/block-editor/build-module/components/writing-flow/use-select-all.js +0 -42
- package/dist/node_modules/@wordpress/block-editor/build-module/components/writing-flow/use-selection-observer.js +0 -125
- package/dist/node_modules/@wordpress/block-editor/build-module/components/writing-flow/use-tab-nav.js +0 -104
- package/dist/node_modules/@wordpress/block-editor/build-module/components/writing-flow/utils.js +0 -30
- package/dist/node_modules/@wordpress/block-editor/build-module/components/writing-mode-control/index.js +0 -42
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/align.js +0 -83
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/anchor.js +0 -75
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/aria-label.js +0 -27
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/background.js +0 -126
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/block-bindings.js +0 -231
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/block-hooks.js +0 -142
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/block-renaming.js +0 -23
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/block-style-variation.js +0 -138
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/border.js +0 -237
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/color.js +0 -221
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/compat.js +0 -10
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/content-lock-ui.js +0 -51
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/contrast-checker.js +0 -44
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/custom-class-name.js +0 -75
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/dimensions.js +0 -112
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/duotone.js +0 -186
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/font-family.js +0 -47
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/font-size.js +0 -77
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/gap.js +0 -21
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/generated-class-name.js +0 -11
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/grid-visualizer.js +0 -43
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/index.js +0 -42
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/layout-child.js +0 -163
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/layout.js +0 -245
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/line-height.js +0 -7
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/lock.js +0 -14
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/metadata.js +0 -14
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/position.js +0 -168
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/settings.js +0 -13
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/spacing-visualizer.js +0 -91
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/style.js +0 -174
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/text-align.js +0 -99
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/typography.js +0 -103
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/use-typography-props.js +0 -6
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/use-zoom-out.js +0 -30
- package/dist/node_modules/@wordpress/block-editor/build-module/hooks/utils.js +0 -300
- package/dist/node_modules/@wordpress/block-editor/build-module/layouts/constrained.js +0 -237
- package/dist/node_modules/@wordpress/block-editor/build-module/layouts/definitions.js +0 -147
- package/dist/node_modules/@wordpress/block-editor/build-module/layouts/flex.js +0 -255
- package/dist/node_modules/@wordpress/block-editor/build-module/layouts/flow.js +0 -67
- package/dist/node_modules/@wordpress/block-editor/build-module/layouts/grid.js +0 -291
- package/dist/node_modules/@wordpress/block-editor/build-module/layouts/index.js +0 -15
- package/dist/node_modules/@wordpress/block-editor/build-module/layouts/utils.js +0 -26
- package/dist/node_modules/@wordpress/block-editor/build-module/lock-unlock.js +0 -7
- package/dist/node_modules/@wordpress/block-editor/build-module/store/actions.js +0 -909
- package/dist/node_modules/@wordpress/block-editor/build-module/store/array.js +0 -11
- package/dist/node_modules/@wordpress/block-editor/build-module/store/constants.js +0 -4
- package/dist/node_modules/@wordpress/block-editor/build-module/store/defaults.js +0 -219
- package/dist/node_modules/@wordpress/block-editor/build-module/store/get-block-settings.js +0 -80
- package/dist/node_modules/@wordpress/block-editor/build-module/store/index.js +0 -27
- package/dist/node_modules/@wordpress/block-editor/build-module/store/private-actions.js +0 -232
- package/dist/node_modules/@wordpress/block-editor/build-module/store/private-keys.js +0 -8
- package/dist/node_modules/@wordpress/block-editor/build-module/store/private-selectors.js +0 -244
- package/dist/node_modules/@wordpress/block-editor/build-module/store/reducer.js +0 -1437
- package/dist/node_modules/@wordpress/block-editor/build-module/store/selectors.js +0 -979
- package/dist/node_modules/@wordpress/block-editor/build-module/store/utils.js +0 -56
- package/dist/node_modules/@wordpress/block-editor/build-module/utils/block-bindings.js +0 -95
- package/dist/node_modules/@wordpress/block-editor/build-module/utils/dom.js +0 -70
- package/dist/node_modules/@wordpress/block-editor/build-module/utils/format-font-style.js +0 -31
- package/dist/node_modules/@wordpress/block-editor/build-module/utils/format-font-weight.js +0 -54
- package/dist/node_modules/@wordpress/block-editor/build-module/utils/get-font-styles-and-weights.js +0 -98
- package/dist/node_modules/@wordpress/block-editor/build-module/utils/math.js +0 -27
- package/dist/node_modules/@wordpress/block-editor/build-module/utils/object.js +0 -26
- package/dist/node_modules/@wordpress/block-editor/build-module/utils/order-inserter-block-items.js +0 -11
- package/dist/node_modules/@wordpress/block-editor/build-module/utils/pasting.js +0 -48
- package/dist/node_modules/@wordpress/block-editor/build-module/utils/selection.js +0 -22
- package/dist/node_modules/@wordpress/block-editor/build-module/utils/sorting.js +0 -15
- package/dist/node_modules/@wordpress/block-editor/build-module/utils/transform-styles/index.js +0 -80
- package/dist/node_modules/@wordpress/block-editor/build-module/utils/use-notify-copy.js +0 -49
- package/dist/node_modules/@wordpress/block-editor/node_modules/@wordpress/url/build-module/filter-url-for-display.js +0 -18
- package/dist/node_modules/@wordpress/block-editor/node_modules/@wordpress/url/build-module/get-filename.js +0 -14
- package/dist/node_modules/@wordpress/block-editor/node_modules/@wordpress/url/build-module/get-path.js +0 -8
- package/dist/node_modules/@wordpress/block-editor/node_modules/@wordpress/url/build-module/get-protocol.js +0 -8
- package/dist/node_modules/@wordpress/block-editor/node_modules/@wordpress/url/build-module/is-email.js +0 -7
- package/dist/node_modules/@wordpress/block-editor/node_modules/@wordpress/url/build-module/is-url.js +0 -10
- package/dist/node_modules/@wordpress/block-editor/node_modules/@wordpress/url/build-module/is-valid-fragment.js +0 -6
- package/dist/node_modules/@wordpress/block-editor/node_modules/@wordpress/url/build-module/is-valid-protocol.js +0 -6
- package/dist/node_modules/@wordpress/block-editor/node_modules/@wordpress/url/build-module/prepend-http.js +0 -8
- package/dist/node_modules/@wordpress/block-editor/node_modules/@wordpress/url/build-module/safe-decode-uri.js +0 -10
- package/dist/node_modules/@wordpress/block-serialization-default-parser/build-module/index.js +0 -98
- package/dist/node_modules/@wordpress/blocks/build-module/api/children.js +0 -33
- package/dist/node_modules/@wordpress/blocks/build-module/api/constants.js +0 -282
- package/dist/node_modules/@wordpress/blocks/build-module/api/factory.js +0 -139
- package/dist/node_modules/@wordpress/blocks/build-module/api/index.js +0 -16
- package/dist/node_modules/@wordpress/blocks/build-module/api/matchers.js +0 -29
- package/dist/node_modules/@wordpress/blocks/build-module/api/node.js +0 -52
- package/dist/node_modules/@wordpress/blocks/build-module/api/parser/apply-block-deprecated-versions.js +0 -51
- package/dist/node_modules/@wordpress/blocks/build-module/api/parser/apply-built-in-validation-fixes.js +0 -16
- package/dist/node_modules/@wordpress/blocks/build-module/api/parser/convert-legacy-block.js +0 -60
- package/dist/node_modules/@wordpress/blocks/build-module/api/parser/fix-aria-label.js +0 -23
- package/dist/node_modules/@wordpress/blocks/build-module/api/parser/fix-custom-classname.js +0 -28
- package/dist/node_modules/@wordpress/blocks/build-module/api/parser/get-block-attributes.js +0 -111
- package/dist/node_modules/@wordpress/blocks/build-module/api/parser/index.js +0 -100
- package/dist/node_modules/@wordpress/blocks/build-module/api/parser/serialize-raw-block.js +0 -22
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/blockquote-normaliser.js +0 -9
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/br-remover.js +0 -7
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/comment-remover.js +0 -7
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/div-normaliser.js +0 -7
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/empty-paragraph-remover.js +0 -6
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/figure-content-reducer.js +0 -26
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/get-raw-transforms.js +0 -12
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/google-docs-uid-remover.js +0 -7
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/head-remover.js +0 -6
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/html-formatting-remover.js +0 -26
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/html-to-blocks.js +0 -31
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/iframe-remover.js +0 -9
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/image-corrector.js +0 -30
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/index.js +0 -42
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/is-inline-content.js +0 -24
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/list-reducer.js +0 -31
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/markdown-converter.js +0 -23
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/ms-list-converter.js +0 -28
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/ms-list-ignore.js +0 -14
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/normalise-blocks.js +0 -13
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/paste-handler.js +0 -78
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/phrasing-content-reducer.js +0 -17
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/shortcode-converter.js +0 -41
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/slack-paragraph-corrector.js +0 -11
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/special-comment-converter.js +0 -36
- package/dist/node_modules/@wordpress/blocks/build-module/api/raw-handling/utils.js +0 -87
- package/dist/node_modules/@wordpress/blocks/build-module/api/registration.js +0 -58
- package/dist/node_modules/@wordpress/blocks/build-module/api/serializer.js +0 -138
- package/dist/node_modules/@wordpress/blocks/build-module/api/templates.js +0 -36
- package/dist/node_modules/@wordpress/blocks/build-module/api/utils.js +0 -101
- package/dist/node_modules/@wordpress/blocks/build-module/api/validation/index.js +0 -173
- package/dist/node_modules/@wordpress/blocks/build-module/api/validation/logger.js +0 -39
- package/dist/node_modules/@wordpress/blocks/build-module/lock-unlock.js +0 -9
- package/dist/node_modules/@wordpress/blocks/build-module/store/actions.js +0 -130
- package/dist/node_modules/@wordpress/blocks/build-module/store/constants.js +0 -4
- package/dist/node_modules/@wordpress/blocks/build-module/store/index.js +0 -20
- package/dist/node_modules/@wordpress/blocks/build-module/store/private-actions.js +0 -45
- package/dist/node_modules/@wordpress/blocks/build-module/store/private-selectors.js +0 -58
- package/dist/node_modules/@wordpress/blocks/build-module/store/process-block-type.js +0 -99
- package/dist/node_modules/@wordpress/blocks/build-module/store/reducer.js +0 -251
- package/dist/node_modules/@wordpress/blocks/build-module/store/selectors.js +0 -109
- package/dist/node_modules/@wordpress/blocks/build-module/store/utils.js +0 -18
- package/dist/node_modules/@wordpress/blocks/node_modules/react-is/cjs/react-is.development.js +0 -103
- package/dist/node_modules/@wordpress/blocks/node_modules/react-is/cjs/react-is.production.min.js +0 -81
- package/dist/node_modules/@wordpress/blocks/node_modules/react-is/index.js +0 -8
- package/dist/node_modules/@wordpress/compose/build-module/higher-order/compose.js +0 -5
- package/dist/node_modules/@wordpress/compose/build-module/higher-order/if-condition/index.js +0 -10
- package/dist/node_modules/@wordpress/compose/build-module/higher-order/pipe.js +0 -8
- package/dist/node_modules/@wordpress/compose/build-module/higher-order/pure/index.js +0 -23
- package/dist/node_modules/@wordpress/compose/build-module/higher-order/with-instance-id/index.js +0 -13
- package/dist/node_modules/@wordpress/compose/build-module/higher-order/with-safe-timeout/index.js +0 -33
- package/dist/node_modules/@wordpress/compose/build-module/hooks/use-async-list/index.js +0 -34
- package/dist/node_modules/@wordpress/compose/build-module/hooks/use-copy-to-clipboard/index.js +0 -29
- package/dist/node_modules/@wordpress/compose/build-module/hooks/use-debounce/index.js +0 -10
- package/dist/node_modules/@wordpress/compose/build-module/hooks/use-debounced-input/index.js +0 -11
- package/dist/node_modules/@wordpress/compose/build-module/hooks/use-disabled/index.js +0 -32
- package/dist/node_modules/@wordpress/compose/build-module/hooks/use-drop-zone/index.js +0 -67
- package/dist/node_modules/@wordpress/compose/build-module/hooks/use-event/index.js +0 -12
- package/dist/node_modules/@wordpress/compose/build-module/hooks/use-instance-id/index.js +0 -17
- package/dist/node_modules/@wordpress/compose/build-module/hooks/use-isomorphic-layout-effect/index.js +0 -5
- package/dist/node_modules/@wordpress/compose/build-module/hooks/use-media-query/index.js +0 -30
- package/dist/node_modules/@wordpress/compose/build-module/hooks/use-merge-refs/index.js +0 -23
- package/dist/node_modules/@wordpress/compose/build-module/hooks/use-previous/index.js +0 -10
- package/dist/node_modules/@wordpress/compose/build-module/hooks/use-reduced-motion/index.js +0 -5
- package/dist/node_modules/@wordpress/compose/build-module/hooks/use-ref-effect/index.js +0 -10
- package/dist/node_modules/@wordpress/compose/build-module/hooks/use-resize-observer/index.js +0 -7
- package/dist/node_modules/@wordpress/compose/build-module/hooks/use-resize-observer/legacy/index.js +0 -61
- package/dist/node_modules/@wordpress/compose/build-module/hooks/use-resize-observer/use-resize-observer.js +0 -18
- package/dist/node_modules/@wordpress/compose/build-module/hooks/use-throttle/index.js +0 -10
- package/dist/node_modules/@wordpress/compose/build-module/hooks/use-viewport-match/index.js +0 -28
- package/dist/node_modules/@wordpress/compose/build-module/utils/create-higher-order-component/index.js +0 -14
- package/dist/node_modules/@wordpress/compose/build-module/utils/debounce/index.js +0 -63
- package/dist/node_modules/@wordpress/compose/build-module/utils/observable-map/index.js +0 -29
- package/dist/node_modules/@wordpress/compose/build-module/utils/throttle/index.js +0 -9
- package/dist/node_modules/@wordpress/data/build-module/components/async-mode-provider/context.js +0 -9
- package/dist/node_modules/@wordpress/data/build-module/components/async-mode-provider/use-async-mode.js +0 -8
- package/dist/node_modules/@wordpress/data/build-module/components/registry-provider/context.js +0 -10
- package/dist/node_modules/@wordpress/data/build-module/components/registry-provider/use-registry.js +0 -8
- package/dist/node_modules/@wordpress/data/build-module/components/use-dispatch/use-dispatch-with-map.js +0 -15
- package/dist/node_modules/@wordpress/data/build-module/components/use-dispatch/use-dispatch.js +0 -10
- package/dist/node_modules/@wordpress/data/build-module/components/use-select/index.js +0 -112
- package/dist/node_modules/@wordpress/data/build-module/components/with-dispatch/index.js +0 -13
- package/dist/node_modules/@wordpress/data/build-module/components/with-select/index.js +0 -14
- package/dist/node_modules/@wordpress/data/build-module/controls.js +0 -24
- package/dist/node_modules/@wordpress/data/build-module/default-registry.js +0 -5
- package/dist/node_modules/@wordpress/data/build-module/factory.js +0 -14
- package/dist/node_modules/@wordpress/data/build-module/index.js +0 -15
- package/dist/node_modules/@wordpress/data/build-module/lock-unlock.js +0 -9
- package/dist/node_modules/@wordpress/data/build-module/promise-middleware.js +0 -8
- package/dist/node_modules/@wordpress/data/build-module/redux-store/combine-reducers.js +0 -15
- package/dist/node_modules/@wordpress/data/build-module/redux-store/index.js +0 -250
- package/dist/node_modules/@wordpress/data/build-module/redux-store/metadata/actions.js +0 -73
- package/dist/node_modules/@wordpress/data/build-module/redux-store/metadata/reducer.js +0 -83
- package/dist/node_modules/@wordpress/data/build-module/redux-store/metadata/selectors.js +0 -78
- package/dist/node_modules/@wordpress/data/build-module/redux-store/metadata/utils.js +0 -23
- package/dist/node_modules/@wordpress/data/build-module/redux-store/thunk-middleware.js +0 -6
- package/dist/node_modules/@wordpress/data/build-module/registry.js +0 -159
- package/dist/node_modules/@wordpress/data/build-module/resolvers-cache-middleware.js +0 -12
- package/dist/node_modules/@wordpress/data/build-module/select.js +0 -7
- package/dist/node_modules/@wordpress/data/build-module/store/index.js +0 -21
- package/dist/node_modules/@wordpress/data/build-module/utils/emitter.js +0 -33
- package/dist/node_modules/@wordpress/deprecated/build-module/index.js +0 -17
- package/dist/node_modules/@wordpress/dom/build-module/data-transfer.js +0 -14
- package/dist/node_modules/@wordpress/dom/build-module/dom/caret-range-from-point.js +0 -14
- package/dist/node_modules/@wordpress/dom/build-module/dom/clean-node-list.js +0 -51
- package/dist/node_modules/@wordpress/dom/build-module/dom/compute-caret-rect.js +0 -11
- package/dist/node_modules/@wordpress/dom/build-module/dom/document-has-selection.js +0 -9
- package/dist/node_modules/@wordpress/dom/build-module/dom/document-has-text-selection.js +0 -11
- package/dist/node_modules/@wordpress/dom/build-module/dom/document-has-uncollapsed-selection.js +0 -8
- package/dist/node_modules/@wordpress/dom/build-module/dom/get-computed-style.js +0 -7
- package/dist/node_modules/@wordpress/dom/build-module/dom/get-range-height.js +0 -14
- package/dist/node_modules/@wordpress/dom/build-module/dom/get-rectangle-from-range.js +0 -58
- package/dist/node_modules/@wordpress/dom/build-module/dom/get-scroll-container.js +0 -27
- package/dist/node_modules/@wordpress/dom/build-module/dom/hidden-caret-range-from-point.js +0 -13
- package/dist/node_modules/@wordpress/dom/build-module/dom/input-field-has-uncollapsed-selection.js +0 -27
- package/dist/node_modules/@wordpress/dom/build-module/dom/insert-after.js +0 -7
- package/dist/node_modules/@wordpress/dom/build-module/dom/is-edge.js +0 -42
- package/dist/node_modules/@wordpress/dom/build-module/dom/is-element.js +0 -6
- package/dist/node_modules/@wordpress/dom/build-module/dom/is-empty.js +0 -16
- package/dist/node_modules/@wordpress/dom/build-module/dom/is-entirely-selected.js +0 -46
- package/dist/node_modules/@wordpress/dom/build-module/dom/is-form-element.js +0 -12
- package/dist/node_modules/@wordpress/dom/build-module/dom/is-horizontal-edge.js +0 -7
- package/dist/node_modules/@wordpress/dom/build-module/dom/is-html-input-element.js +0 -6
- package/dist/node_modules/@wordpress/dom/build-module/dom/is-input-or-text-area.js +0 -6
- package/dist/node_modules/@wordpress/dom/build-module/dom/is-rtl.js +0 -7
- package/dist/node_modules/@wordpress/dom/build-module/dom/is-selection-forward.js +0 -15
- package/dist/node_modules/@wordpress/dom/build-module/dom/is-text-field.js +0 -9
- package/dist/node_modules/@wordpress/dom/build-module/dom/is-vertical-edge.js +0 -7
- package/dist/node_modules/@wordpress/dom/build-module/dom/place-caret-at-edge.js +0 -39
- package/dist/node_modules/@wordpress/dom/build-module/dom/place-caret-at-horizontal-edge.js +0 -7
- package/dist/node_modules/@wordpress/dom/build-module/dom/place-caret-at-vertical-edge.js +0 -7
- package/dist/node_modules/@wordpress/dom/build-module/dom/remove-invalid-html.js +0 -8
- package/dist/node_modules/@wordpress/dom/build-module/dom/remove.js +0 -7
- package/dist/node_modules/@wordpress/dom/build-module/dom/replace-tag.js +0 -10
- package/dist/node_modules/@wordpress/dom/build-module/dom/replace.js +0 -9
- package/dist/node_modules/@wordpress/dom/build-module/dom/safe-html.js +0 -27
- package/dist/node_modules/@wordpress/dom/build-module/dom/scroll-if-no-range.js +0 -7
- package/dist/node_modules/@wordpress/dom/build-module/dom/strip-html.js +0 -9
- package/dist/node_modules/@wordpress/dom/build-module/dom/unwrap.js +0 -10
- package/dist/node_modules/@wordpress/dom/build-module/dom/wrap.js +0 -7
- package/dist/node_modules/@wordpress/dom/build-module/focusable.js +0 -32
- package/dist/node_modules/@wordpress/dom/build-module/index.js +0 -9
- package/dist/node_modules/@wordpress/dom/build-module/phrasing-content.js +0 -125
- package/dist/node_modules/@wordpress/dom/build-module/tabbable.js +0 -66
- package/dist/node_modules/@wordpress/dom/build-module/utils/assert-is-defined.js +0 -7
- package/dist/node_modules/@wordpress/dom-ready/build-module/index.js +0 -11
- package/dist/node_modules/@wordpress/escape-html/build-module/escape-greater.js +0 -6
- package/dist/node_modules/@wordpress/escape-html/build-module/index.js +0 -28
- package/dist/node_modules/@wordpress/hooks/build-module/createAddHook.js +0 -39
- package/dist/node_modules/@wordpress/hooks/build-module/createCurrentHook.js +0 -10
- package/dist/node_modules/@wordpress/hooks/build-module/createDidHook.js +0 -11
- package/dist/node_modules/@wordpress/hooks/build-module/createDoingHook.js +0 -9
- package/dist/node_modules/@wordpress/hooks/build-module/createHasHook.js +0 -9
- package/dist/node_modules/@wordpress/hooks/build-module/createHooks.js +0 -19
- package/dist/node_modules/@wordpress/hooks/build-module/createRemoveHook.js +0 -28
- package/dist/node_modules/@wordpress/hooks/build-module/createRunHook.js +0 -42
- package/dist/node_modules/@wordpress/hooks/build-module/index.js +0 -47
- package/dist/node_modules/@wordpress/hooks/build-module/validateHookName.js +0 -6
- package/dist/node_modules/@wordpress/hooks/build-module/validateNamespace.js +0 -6
- package/dist/node_modules/@wordpress/html-entities/build-module/index.js +0 -12
- package/dist/node_modules/@wordpress/i18n/build-module/create-i18n.js +0 -95
- package/dist/node_modules/@wordpress/i18n/build-module/default-i18n.js +0 -18
- package/dist/node_modules/@wordpress/i18n/build-module/sprintf.js +0 -15
- package/dist/node_modules/@wordpress/icons/build-module/icon/index.js +0 -17
- package/dist/node_modules/@wordpress/icons/build-module/library/align-center.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/align-justify.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/align-left.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/align-none.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/align-right.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/arrow-down.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/arrow-right.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/block-default.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/category.js +0 -14
- package/dist/node_modules/@wordpress/icons/build-module/library/check.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/chevron-down.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/chevron-left-small.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/chevron-left.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/chevron-right-small.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/chevron-right.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/chevron-up.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/close-small.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/copy-small.js +0 -14
- package/dist/node_modules/@wordpress/icons/build-module/library/drag-handle.js +0 -14
- package/dist/node_modules/@wordpress/icons/build-module/library/edit.js +0 -4
- package/dist/node_modules/@wordpress/icons/build-module/library/external.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/file.js +0 -14
- package/dist/node_modules/@wordpress/icons/build-module/library/filter.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/format-capitalize.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/format-lowercase.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/format-strikethrough.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/format-underline.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/format-uppercase.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/globe.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/home.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/info.js +0 -14
- package/dist/node_modules/@wordpress/icons/build-module/library/justify-bottom.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/justify-center-vertical.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/justify-center.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/justify-left.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/justify-right.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/justify-space-between-vertical.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/justify-space-between.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/justify-stretch-vertical.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/justify-stretch.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/justify-top.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/keyboard-return.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/link-off.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/link.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/media.js +0 -16
- package/dist/node_modules/@wordpress/icons/build-module/library/more-vertical.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/page.js +0 -14
- package/dist/node_modules/@wordpress/icons/build-module/library/pencil.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/plus.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/position-center.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/position-left.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/position-right.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/post-featured-image.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/post-list.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/reset.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/settings.js +0 -14
- package/dist/node_modules/@wordpress/icons/build-module/library/shadow.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/sides-all.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/sides-bottom.js +0 -17
- package/dist/node_modules/@wordpress/icons/build-module/library/sides-horizontal.js +0 -19
- package/dist/node_modules/@wordpress/icons/build-module/library/sides-left.js +0 -17
- package/dist/node_modules/@wordpress/icons/build-module/library/sides-right.js +0 -17
- package/dist/node_modules/@wordpress/icons/build-module/library/sides-top.js +0 -17
- package/dist/node_modules/@wordpress/icons/build-module/library/sides-vertical.js +0 -19
- package/dist/node_modules/@wordpress/icons/build-module/library/stretch-full-width.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/stretch-wide.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/symbol.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/tag.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/text-horizontal.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/text-vertical.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/upload.js +0 -12
- package/dist/node_modules/@wordpress/icons/build-module/library/verse.js +0 -12
- package/dist/node_modules/@wordpress/is-shallow-equal/build-module/arrays.js +0 -13
- package/dist/node_modules/@wordpress/is-shallow-equal/build-module/index.js +0 -16
- package/dist/node_modules/@wordpress/is-shallow-equal/build-module/objects.js +0 -25
- package/dist/node_modules/@wordpress/keyboard-shortcuts/build-module/components/shortcut-provider.js +0 -6
- package/dist/node_modules/@wordpress/keyboard-shortcuts/build-module/context.js +0 -15
- package/dist/node_modules/@wordpress/keyboard-shortcuts/build-module/hooks/use-shortcut-event-match.js +0 -18
- package/dist/node_modules/@wordpress/keyboard-shortcuts/build-module/store/actions.js +0 -26
- package/dist/node_modules/@wordpress/keyboard-shortcuts/build-module/store/index.js +0 -14
- package/dist/node_modules/@wordpress/keyboard-shortcuts/build-module/store/reducer.js +0 -24
- package/dist/node_modules/@wordpress/keyboard-shortcuts/build-module/store/selectors.js +0 -33
- package/dist/node_modules/@wordpress/keycodes/build-module/index.js +0 -123
- package/dist/node_modules/@wordpress/keycodes/build-module/platform.js +0 -14
- package/dist/node_modules/@wordpress/notices/build-module/store/actions.js +0 -76
- package/dist/node_modules/@wordpress/notices/build-module/store/constants.js +0 -5
- package/dist/node_modules/@wordpress/notices/build-module/store/index.js +0 -14
- package/dist/node_modules/@wordpress/notices/build-module/store/reducer.js +0 -25
- package/dist/node_modules/@wordpress/notices/build-module/store/selectors.js +0 -8
- package/dist/node_modules/@wordpress/notices/build-module/store/utils/on-sub-key.js +0 -14
- package/dist/node_modules/@wordpress/preferences/build-module/store/actions.js +0 -38
- package/dist/node_modules/@wordpress/preferences/build-module/store/constants.js +0 -4
- package/dist/node_modules/@wordpress/preferences/build-module/store/index.js +0 -15
- package/dist/node_modules/@wordpress/preferences/build-module/store/reducer.js +0 -56
- package/dist/node_modules/@wordpress/preferences/build-module/store/selectors.js +0 -11
- package/dist/node_modules/@wordpress/primitives/build-module/svg/index.js +0 -35
- package/dist/node_modules/@wordpress/priority-queue/build-module/index.js +0 -31
- package/dist/node_modules/@wordpress/priority-queue/build-module/request-idle-callback.js +0 -11
- package/dist/node_modules/@wordpress/private-apis/build-module/implementation.js +0 -28
- package/dist/node_modules/@wordpress/redux-routine/build-module/index.js +0 -11
- package/dist/node_modules/@wordpress/redux-routine/build-module/is-action.js +0 -11
- package/dist/node_modules/@wordpress/redux-routine/build-module/is-generator.js +0 -6
- package/dist/node_modules/@wordpress/redux-routine/build-module/runtime.js +0 -20
- package/dist/node_modules/@wordpress/rich-text/build-module/concat.js +0 -6
- package/dist/node_modules/@wordpress/rich-text/build-module/create-element.js +0 -8
- package/dist/node_modules/@wordpress/rich-text/build-module/create.js +0 -330
- package/dist/node_modules/@wordpress/rich-text/build-module/get-active-formats.js +0 -37
- package/dist/node_modules/@wordpress/rich-text/build-module/get-format-type.js +0 -8
- package/dist/node_modules/@wordpress/rich-text/build-module/get-text-content.js +0 -9
- package/dist/node_modules/@wordpress/rich-text/build-module/insert.js +0 -23
- package/dist/node_modules/@wordpress/rich-text/build-module/is-format-equal.js +0 -24
- package/dist/node_modules/@wordpress/rich-text/build-module/normalise-formats.js +0 -20
- package/dist/node_modules/@wordpress/rich-text/build-module/remove.js +0 -8
- package/dist/node_modules/@wordpress/rich-text/build-module/special-characters.js +0 -5
- package/dist/node_modules/@wordpress/rich-text/build-module/store/actions.js +0 -16
- package/dist/node_modules/@wordpress/rich-text/build-module/store/index.js +0 -14
- package/dist/node_modules/@wordpress/rich-text/build-module/store/reducer.js +0 -24
- package/dist/node_modules/@wordpress/rich-text/build-module/store/selectors.js +0 -26
- package/dist/node_modules/@wordpress/rich-text/build-module/to-html-string.js +0 -74
- package/dist/node_modules/@wordpress/rich-text/build-module/to-tree.js +0 -162
- package/dist/node_modules/@wordpress/shortcode/build-module/index.js +0 -129
- package/dist/node_modules/@wordpress/style-engine/build-module/index.js +0 -29
- package/dist/node_modules/@wordpress/style-engine/build-module/styles/background/index.js +0 -28
- package/dist/node_modules/@wordpress/style-engine/build-module/styles/border/index.js +0 -38
- package/dist/node_modules/@wordpress/style-engine/build-module/styles/color/background.js +0 -8
- package/dist/node_modules/@wordpress/style-engine/build-module/styles/color/gradient.js +0 -8
- package/dist/node_modules/@wordpress/style-engine/build-module/styles/color/index.js +0 -7
- package/dist/node_modules/@wordpress/style-engine/build-module/styles/color/text.js +0 -8
- package/dist/node_modules/@wordpress/style-engine/build-module/styles/constants.js +0 -6
- package/dist/node_modules/@wordpress/style-engine/build-module/styles/dimensions/index.js +0 -11
- package/dist/node_modules/@wordpress/style-engine/build-module/styles/index.js +0 -12
- package/dist/node_modules/@wordpress/style-engine/build-module/styles/outline/index.js +0 -17
- package/dist/node_modules/@wordpress/style-engine/build-module/styles/shadow/index.js +0 -8
- package/dist/node_modules/@wordpress/style-engine/build-module/styles/spacing/index.js +0 -6
- package/dist/node_modules/@wordpress/style-engine/build-module/styles/spacing/margin.js +0 -11
- package/dist/node_modules/@wordpress/style-engine/build-module/styles/spacing/padding.js +0 -11
- package/dist/node_modules/@wordpress/style-engine/build-module/styles/typography/index.js +0 -35
- package/dist/node_modules/@wordpress/style-engine/build-module/styles/utils.js +0 -78
- package/dist/node_modules/@wordpress/token-list/build-module/index.js +0 -166
- package/dist/node_modules/@wordpress/upload-media/build-module/components/provider/index.js +0 -22
- package/dist/node_modules/@wordpress/upload-media/build-module/components/provider/with-registry-provider.js +0 -33
- package/dist/node_modules/@wordpress/upload-media/build-module/get-mime-types-array.js +0 -9
- package/dist/node_modules/@wordpress/upload-media/build-module/lock-unlock.js +0 -7
- package/dist/node_modules/@wordpress/upload-media/build-module/store/actions.js +0 -69
- package/dist/node_modules/@wordpress/upload-media/build-module/store/constants.js +0 -4
- package/dist/node_modules/@wordpress/upload-media/build-module/store/index.js +0 -25
- package/dist/node_modules/@wordpress/upload-media/build-module/store/private-actions.js +0 -196
- package/dist/node_modules/@wordpress/upload-media/build-module/store/private-selectors.js +0 -31
- package/dist/node_modules/@wordpress/upload-media/build-module/store/reducer.js +0 -114
- package/dist/node_modules/@wordpress/upload-media/build-module/store/selectors.js +0 -22
- package/dist/node_modules/@wordpress/upload-media/build-module/store/types.js +0 -12
- package/dist/node_modules/@wordpress/upload-media/build-module/stub-file.js +0 -8
- package/dist/node_modules/@wordpress/upload-media/build-module/upload-error.js +0 -15
- package/dist/node_modules/@wordpress/upload-media/build-module/utils.js +0 -25
- package/dist/node_modules/@wordpress/upload-media/build-module/validate-file-size.js +0 -29
- package/dist/node_modules/@wordpress/upload-media/build-module/validate-mime-type-for-user.js +0 -24
- package/dist/node_modules/@wordpress/upload-media/build-module/validate-mime-type.js +0 -22
- package/dist/node_modules/@wordpress/url/build-module/add-query-args.js +0 -12
- package/dist/node_modules/@wordpress/url/build-module/build-query-string.js +0 -17
- package/dist/node_modules/@wordpress/url/build-module/get-query-arg.js +0 -7
- package/dist/node_modules/@wordpress/url/build-module/get-query-args.js +0 -33
- package/dist/node_modules/@wordpress/url/build-module/get-query-string.js +0 -12
- package/dist/node_modules/@wordpress/url/build-module/has-query-arg.js +0 -7
- package/dist/node_modules/@wordpress/url/build-module/normalize-path.js +0 -7
- package/dist/node_modules/@wordpress/url/build-module/remove-query-args.js +0 -14
- package/dist/node_modules/@wordpress/url/build-module/safe-decode-uri-component.js +0 -10
- package/dist/node_modules/@wordpress/warning/build-module/index.js +0 -17
- package/dist/node_modules/@wordpress/warning/build-module/utils.js +0 -4
- package/dist/node_modules/autosize/dist/autosize.js +0 -129
- package/dist/node_modules/camel-case/dist.es2015/index.js +0 -12
- package/dist/node_modules/clipboard/dist/clipboard.js +0 -496
- package/dist/node_modules/clsx/dist/clsx.js +0 -17
- package/dist/node_modules/colord/index.js +0 -139
- package/dist/node_modules/colord/plugins/a11y.js +0 -22
- package/dist/node_modules/colord/plugins/names.js +0 -25
- package/dist/node_modules/computed-style/dist/computedStyle.commonjs.js +0 -22
- package/dist/node_modules/diff/lib/diff/base.js +0 -142
- package/dist/node_modules/diff/lib/diff/character.js +0 -22
- package/dist/node_modules/dot-case/dist.es2015/index.js +0 -8
- package/dist/node_modules/equivalent-key-map/equivalent-key-map.js +0 -149
- package/dist/node_modules/fast-deep-equal/es6/index.js +0 -50
- package/dist/node_modules/fast-deep-equal/index.js +0 -30
- package/dist/node_modules/hpq/es/get-path.js +0 -11
- package/dist/node_modules/hpq/es/index.js +0 -56
- package/dist/node_modules/is-plain-object/dist/is-plain-object.js +0 -16
- package/dist/node_modules/is-promise/index.js +0 -6
- package/dist/node_modules/line-height/lib/line-height.js +0 -24
- package/dist/node_modules/lower-case/dist.es2015/index.js +0 -6
- package/dist/node_modules/memize/dist/index.js +0 -34
- package/dist/node_modules/nanoid/non-secure/index.js +0 -10
- package/dist/node_modules/no-case/dist.es2015/index.js +0 -18
- package/dist/node_modules/object-assign/index.js +0 -54
- package/dist/node_modules/param-case/dist.es2015/index.js +0 -8
- package/dist/node_modules/parsel-js/dist/parsel.js +0 -128
- package/dist/node_modules/pascal-case/dist.es2015/index.js +0 -13
- package/dist/node_modules/picocolors/picocolors.browser.js +0 -10
- package/dist/node_modules/postcss/lib/at-rule.js +0 -19
- package/dist/node_modules/postcss/lib/comment.js +0 -12
- package/dist/node_modules/postcss/lib/container.js +0 -225
- package/dist/node_modules/postcss/lib/css-syntax-error.js +0 -55
- package/dist/node_modules/postcss/lib/declaration.js +0 -15
- package/dist/node_modules/postcss/lib/document.js +0 -21
- package/dist/node_modules/postcss/lib/input.js +0 -133
- package/dist/node_modules/postcss/lib/lazy-result.js +0 -346
- package/dist/node_modules/postcss/lib/list.js +0 -21
- package/dist/node_modules/postcss/lib/map-generator.js +0 -166
- package/dist/node_modules/postcss/lib/no-work-result.js +0 -90
- package/dist/node_modules/postcss/lib/node.js +0 -240
- package/dist/node_modules/postcss/lib/parse.js +0 -22
- package/dist/node_modules/postcss/lib/parser.js +0 -317
- package/dist/node_modules/postcss/lib/previous-map.js +0 -88
- package/dist/node_modules/postcss/lib/processor.js +0 -43
- package/dist/node_modules/postcss/lib/result.js +0 -26
- package/dist/node_modules/postcss/lib/root.js +0 -37
- package/dist/node_modules/postcss/lib/rule.js +0 -21
- package/dist/node_modules/postcss/lib/stringifier.js +0 -192
- package/dist/node_modules/postcss/lib/stringify.js +0 -10
- package/dist/node_modules/postcss/lib/symbols.js +0 -6
- package/dist/node_modules/postcss/lib/tokenize.js +0 -109
- package/dist/node_modules/postcss/lib/warn-once.js +0 -7
- package/dist/node_modules/postcss/lib/warning.js +0 -21
- package/dist/node_modules/postcss-prefix-selector/index.js +0 -32
- package/dist/node_modules/postcss-urlrebase/index.js +0 -28
- package/dist/node_modules/postcss-value-parser/lib/index.js +0 -21
- package/dist/node_modules/postcss-value-parser/lib/parse.js +0 -114
- package/dist/node_modules/postcss-value-parser/lib/stringify.js +0 -17
- package/dist/node_modules/postcss-value-parser/lib/unit.js +0 -36
- package/dist/node_modules/postcss-value-parser/lib/walk.js +0 -8
- package/dist/node_modules/prop-types/checkPropTypes.js +0 -54
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -52
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -329
- package/dist/node_modules/prop-types/index.js +0 -13
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -10
- package/dist/node_modules/prop-types/lib/has.js +0 -7
- package/dist/node_modules/react-autosize-textarea/lib/TextareaAutosize.js +0 -90
- package/dist/node_modules/react-autosize-textarea/lib/index.js +0 -13
- package/dist/node_modules/react-is/cjs/react-is.development.js +0 -95
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +0 -78
- package/dist/node_modules/react-is/index.js +0 -10
- package/dist/node_modules/redux/dist/redux.js +0 -185
- package/dist/node_modules/rememo/rememo.js +0 -63
- package/dist/node_modules/remove-accents/index.js +0 -479
- package/dist/node_modules/requestidlecallback/index.js +0 -87
- package/dist/node_modules/rungen/dist/controls/async.js +0 -73
- package/dist/node_modules/rungen/dist/controls/builtin.js +0 -47
- package/dist/node_modules/rungen/dist/controls/wrap.js +0 -34
- package/dist/node_modules/rungen/dist/create.js +0 -60
- package/dist/node_modules/rungen/dist/index.js +0 -28
- package/dist/node_modules/rungen/dist/utils/dispatcher.js +0 -22
- package/dist/node_modules/rungen/dist/utils/helpers.js +0 -111
- package/dist/node_modules/rungen/dist/utils/is.js +0 -57
- package/dist/node_modules/rungen/dist/utils/keys.js +0 -15
- package/dist/node_modules/showdown/dist/showdown.js +0 -2673
- package/dist/node_modules/simple-html-tokenizer/dist/es6/index.js +0 -600
- package/dist/node_modules/sprintf-js/src/sprintf.js +0 -145
- package/dist/node_modules/tannin/index.js +0 -36
- package/dist/node_modules/tslib/tslib.es6.js +0 -12
- package/dist/node_modules/use-memo-one/dist/use-memo-one.esm.js +0 -26
- package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -6
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +0 -10
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +0 -9
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +0 -13
|
@@ -1,1437 +0,0 @@
|
|
|
1
|
-
import T from "../../../../fast-deep-equal/es6/index.js";
|
|
2
|
-
import { combineReducers as m } from "../../../data/build-module/index.js";
|
|
3
|
-
import P from "../../../deprecated/build-module/index.js";
|
|
4
|
-
import { store as U } from "../../../blocks/build-module/store/index.js";
|
|
5
|
-
import { privateApis as G } from "../../../blocks/build-module/api/index.js";
|
|
6
|
-
import { PREFERENCES_DEFAULTS as V, SETTINGS_DEFAULTS as v } from "./defaults.js";
|
|
7
|
-
import { moveTo as M, insertAt as R } from "./array.js";
|
|
8
|
-
import { sectionRootClientIdKey as a } from "./private-keys.js";
|
|
9
|
-
import { unlock as H } from "../lock-unlock.js";
|
|
10
|
-
import K from "../../../compose/build-module/higher-order/pipe.js";
|
|
11
|
-
import { select as x } from "../../../data/build-module/select.js";
|
|
12
|
-
const {
|
|
13
|
-
isContentBlock: N
|
|
14
|
-
} = H(G), W = (t) => t;
|
|
15
|
-
function p(t, e = "") {
|
|
16
|
-
const n = /* @__PURE__ */ new Map(), r = [];
|
|
17
|
-
return n.set(e, r), t.forEach((l) => {
|
|
18
|
-
const {
|
|
19
|
-
clientId: s,
|
|
20
|
-
innerBlocks: d
|
|
21
|
-
} = l;
|
|
22
|
-
r.push(s), p(d, s).forEach((i, o) => {
|
|
23
|
-
n.set(o, i);
|
|
24
|
-
});
|
|
25
|
-
}), n;
|
|
26
|
-
}
|
|
27
|
-
function O(t, e = "") {
|
|
28
|
-
const n = [], r = [[e, t]];
|
|
29
|
-
for (; r.length; ) {
|
|
30
|
-
const [l, s] = r.shift();
|
|
31
|
-
s.forEach(({
|
|
32
|
-
innerBlocks: d,
|
|
33
|
-
...i
|
|
34
|
-
}) => {
|
|
35
|
-
n.push([i.clientId, l]), d?.length && r.push([i.clientId, d]);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
return n;
|
|
39
|
-
}
|
|
40
|
-
function y(t, e = W) {
|
|
41
|
-
const n = [], r = [...t];
|
|
42
|
-
for (; r.length; ) {
|
|
43
|
-
const {
|
|
44
|
-
innerBlocks: l,
|
|
45
|
-
...s
|
|
46
|
-
} = r.shift();
|
|
47
|
-
r.push(...l), n.push([s.clientId, e(s)]);
|
|
48
|
-
}
|
|
49
|
-
return n;
|
|
50
|
-
}
|
|
51
|
-
function j(t) {
|
|
52
|
-
const e = {}, n = [...t];
|
|
53
|
-
for (; n.length; ) {
|
|
54
|
-
const {
|
|
55
|
-
innerBlocks: r,
|
|
56
|
-
...l
|
|
57
|
-
} = n.shift();
|
|
58
|
-
n.push(...r), e[l.clientId] = !0;
|
|
59
|
-
}
|
|
60
|
-
return e;
|
|
61
|
-
}
|
|
62
|
-
function L(t) {
|
|
63
|
-
return y(t, (e) => {
|
|
64
|
-
const {
|
|
65
|
-
attributes: n,
|
|
66
|
-
...r
|
|
67
|
-
} = e;
|
|
68
|
-
return r;
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
function b(t) {
|
|
72
|
-
return y(t, (e) => e.attributes);
|
|
73
|
-
}
|
|
74
|
-
function F(t, e) {
|
|
75
|
-
return T(Object.keys(t), Object.keys(e));
|
|
76
|
-
}
|
|
77
|
-
function Y(t, e) {
|
|
78
|
-
return t.type === "UPDATE_BLOCK_ATTRIBUTES" && e !== void 0 && e.type === "UPDATE_BLOCK_ATTRIBUTES" && T(t.clientIds, e.clientIds) && F(t.attributes, e.attributes);
|
|
79
|
-
}
|
|
80
|
-
function h(t, e) {
|
|
81
|
-
const n = t.tree, r = [...e], l = [...e];
|
|
82
|
-
for (; r.length; ) {
|
|
83
|
-
const s = r.shift();
|
|
84
|
-
r.push(...s.innerBlocks), l.push(...s.innerBlocks);
|
|
85
|
-
}
|
|
86
|
-
for (const s of l)
|
|
87
|
-
n.set(s.clientId, {});
|
|
88
|
-
for (const s of l)
|
|
89
|
-
n.set(s.clientId, Object.assign(n.get(s.clientId), {
|
|
90
|
-
...t.byClientId.get(s.clientId),
|
|
91
|
-
attributes: t.attributes.get(s.clientId),
|
|
92
|
-
innerBlocks: s.innerBlocks.map((d) => n.get(d.clientId))
|
|
93
|
-
}));
|
|
94
|
-
}
|
|
95
|
-
function S(t, e, n = !1) {
|
|
96
|
-
const r = t.tree, l = /* @__PURE__ */ new Set([]), s = /* @__PURE__ */ new Set();
|
|
97
|
-
for (const d of e) {
|
|
98
|
-
let i = n ? d : t.parents.get(d);
|
|
99
|
-
do
|
|
100
|
-
if (t.controlledInnerBlocks[i]) {
|
|
101
|
-
s.add(i);
|
|
102
|
-
break;
|
|
103
|
-
} else
|
|
104
|
-
l.add(i), i = t.parents.get(i);
|
|
105
|
-
while (i !== void 0);
|
|
106
|
-
}
|
|
107
|
-
for (const d of l)
|
|
108
|
-
r.set(d, {
|
|
109
|
-
...r.get(d)
|
|
110
|
-
});
|
|
111
|
-
for (const d of l)
|
|
112
|
-
r.get(d).innerBlocks = (t.order.get(d) || []).map((i) => r.get(i));
|
|
113
|
-
for (const d of s)
|
|
114
|
-
r.set("controlled||" + d, {
|
|
115
|
-
innerBlocks: (t.order.get(d) || []).map((i) => r.get(i))
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
const z = (t) => (e = {}, n) => {
|
|
119
|
-
const r = t(e, n);
|
|
120
|
-
if (r === e)
|
|
121
|
-
return e;
|
|
122
|
-
switch (r.tree = e.tree ? e.tree : /* @__PURE__ */ new Map(), n.type) {
|
|
123
|
-
case "RECEIVE_BLOCKS":
|
|
124
|
-
case "INSERT_BLOCKS": {
|
|
125
|
-
r.tree = new Map(r.tree), h(r, n.blocks), S(r, n.rootClientId ? [n.rootClientId] : [""], !0);
|
|
126
|
-
break;
|
|
127
|
-
}
|
|
128
|
-
case "UPDATE_BLOCK":
|
|
129
|
-
r.tree = new Map(r.tree), r.tree.set(n.clientId, {
|
|
130
|
-
...r.tree.get(n.clientId),
|
|
131
|
-
...r.byClientId.get(n.clientId),
|
|
132
|
-
attributes: r.attributes.get(n.clientId)
|
|
133
|
-
}), S(r, [n.clientId], !1);
|
|
134
|
-
break;
|
|
135
|
-
case "SYNC_DERIVED_BLOCK_ATTRIBUTES":
|
|
136
|
-
case "UPDATE_BLOCK_ATTRIBUTES": {
|
|
137
|
-
r.tree = new Map(r.tree), n.clientIds.forEach((s) => {
|
|
138
|
-
r.tree.set(s, {
|
|
139
|
-
...r.tree.get(s),
|
|
140
|
-
attributes: r.attributes.get(s)
|
|
141
|
-
});
|
|
142
|
-
}), S(r, n.clientIds, !1);
|
|
143
|
-
break;
|
|
144
|
-
}
|
|
145
|
-
case "REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN": {
|
|
146
|
-
const s = j(n.blocks);
|
|
147
|
-
r.tree = new Map(r.tree), n.replacedClientIds.forEach((i) => {
|
|
148
|
-
r.tree.delete(i), s[i] || r.tree.delete("controlled||" + i);
|
|
149
|
-
}), h(r, n.blocks), S(r, n.blocks.map((i) => i.clientId), !1);
|
|
150
|
-
const d = [];
|
|
151
|
-
for (const i of n.clientIds) {
|
|
152
|
-
const o = e.parents.get(i);
|
|
153
|
-
o !== void 0 && (o === "" || r.byClientId.get(o)) && d.push(o);
|
|
154
|
-
}
|
|
155
|
-
S(r, d, !0);
|
|
156
|
-
break;
|
|
157
|
-
}
|
|
158
|
-
case "REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":
|
|
159
|
-
const l = [];
|
|
160
|
-
for (const s of n.clientIds) {
|
|
161
|
-
const d = e.parents.get(s);
|
|
162
|
-
d !== void 0 && (d === "" || r.byClientId.get(d)) && l.push(d);
|
|
163
|
-
}
|
|
164
|
-
r.tree = new Map(r.tree), n.removedClientIds.forEach((s) => {
|
|
165
|
-
r.tree.delete(s), r.tree.delete("controlled||" + s);
|
|
166
|
-
}), S(r, l, !0);
|
|
167
|
-
break;
|
|
168
|
-
case "MOVE_BLOCKS_TO_POSITION": {
|
|
169
|
-
const s = [];
|
|
170
|
-
n.fromRootClientId ? s.push(n.fromRootClientId) : s.push(""), n.toRootClientId && s.push(n.toRootClientId), r.tree = new Map(r.tree), S(r, s, !0);
|
|
171
|
-
break;
|
|
172
|
-
}
|
|
173
|
-
case "MOVE_BLOCKS_UP":
|
|
174
|
-
case "MOVE_BLOCKS_DOWN": {
|
|
175
|
-
const s = [n.rootClientId ? n.rootClientId : ""];
|
|
176
|
-
r.tree = new Map(r.tree), S(r, s, !0);
|
|
177
|
-
break;
|
|
178
|
-
}
|
|
179
|
-
case "SAVE_REUSABLE_BLOCK_SUCCESS": {
|
|
180
|
-
const s = [];
|
|
181
|
-
r.attributes.forEach((d, i) => {
|
|
182
|
-
r.byClientId.get(i).name === "core/block" && d.ref === n.updatedId && s.push(i);
|
|
183
|
-
}), r.tree = new Map(r.tree), s.forEach((d) => {
|
|
184
|
-
r.tree.set(d, {
|
|
185
|
-
...r.byClientId.get(d),
|
|
186
|
-
attributes: r.attributes.get(d),
|
|
187
|
-
innerBlocks: r.tree.get(d).innerBlocks
|
|
188
|
-
});
|
|
189
|
-
}), S(r, s, !1);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
return r;
|
|
193
|
-
};
|
|
194
|
-
function Z(t) {
|
|
195
|
-
let e, n = !1, r;
|
|
196
|
-
return (l, s) => {
|
|
197
|
-
let d = t(l, s), i;
|
|
198
|
-
if (s.type === "SET_EXPLICIT_PERSISTENT") {
|
|
199
|
-
var o;
|
|
200
|
-
r = s.isPersistentChange, i = (o = l.isPersistentChange) !== null && o !== void 0 ? o : !0;
|
|
201
|
-
}
|
|
202
|
-
if (r !== void 0)
|
|
203
|
-
return i = r, i === d.isPersistentChange ? d : {
|
|
204
|
-
...d,
|
|
205
|
-
isPersistentChange: i
|
|
206
|
-
};
|
|
207
|
-
const u = s.type === "MARK_LAST_CHANGE_AS_PERSISTENT" || n;
|
|
208
|
-
if (l === d && !u) {
|
|
209
|
-
var E;
|
|
210
|
-
return n = s.type === "MARK_NEXT_CHANGE_AS_NOT_PERSISTENT", i = (E = l?.isPersistentChange) !== null && E !== void 0 ? E : !0, l.isPersistentChange === i ? l : {
|
|
211
|
-
...d,
|
|
212
|
-
isPersistentChange: i
|
|
213
|
-
};
|
|
214
|
-
}
|
|
215
|
-
return d = {
|
|
216
|
-
...d,
|
|
217
|
-
isPersistentChange: u ? !n : !Y(s, e)
|
|
218
|
-
}, e = s, n = s.type === "MARK_NEXT_CHANGE_AS_NOT_PERSISTENT", d;
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
function X(t) {
|
|
222
|
-
const e = /* @__PURE__ */ new Set(["RECEIVE_BLOCKS"]);
|
|
223
|
-
return (n, r) => {
|
|
224
|
-
const l = t(n, r);
|
|
225
|
-
return l !== n && (l.isIgnoredChange = e.has(r.type)), l;
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
const q = (t) => (e, n) => {
|
|
229
|
-
const r = (l) => {
|
|
230
|
-
let s = l;
|
|
231
|
-
for (let d = 0; d < s.length; d++)
|
|
232
|
-
!e.order.get(s[d]) || n.keepControlledInnerBlocks && n.keepControlledInnerBlocks[s[d]] || (s === l && (s = [...s]), s.push(...e.order.get(s[d])));
|
|
233
|
-
return s;
|
|
234
|
-
};
|
|
235
|
-
if (e)
|
|
236
|
-
switch (n.type) {
|
|
237
|
-
case "REMOVE_BLOCKS":
|
|
238
|
-
n = {
|
|
239
|
-
...n,
|
|
240
|
-
type: "REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",
|
|
241
|
-
removedClientIds: r(n.clientIds)
|
|
242
|
-
};
|
|
243
|
-
break;
|
|
244
|
-
case "REPLACE_BLOCKS":
|
|
245
|
-
n = {
|
|
246
|
-
...n,
|
|
247
|
-
type: "REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",
|
|
248
|
-
replacedClientIds: r(n.clientIds)
|
|
249
|
-
};
|
|
250
|
-
break;
|
|
251
|
-
}
|
|
252
|
-
return t(e, n);
|
|
253
|
-
}, J = (t) => (e, n) => {
|
|
254
|
-
if (n.type === "RESET_BLOCKS") {
|
|
255
|
-
const r = {
|
|
256
|
-
...e,
|
|
257
|
-
byClientId: new Map(L(n.blocks)),
|
|
258
|
-
attributes: new Map(b(n.blocks)),
|
|
259
|
-
order: p(n.blocks),
|
|
260
|
-
parents: new Map(O(n.blocks)),
|
|
261
|
-
controlledInnerBlocks: {}
|
|
262
|
-
};
|
|
263
|
-
return r.tree = new Map(e?.tree), h(r, n.blocks), r.tree.set("", {
|
|
264
|
-
innerBlocks: n.blocks.map((l) => r.tree.get(l.clientId))
|
|
265
|
-
}), r;
|
|
266
|
-
}
|
|
267
|
-
return t(e, n);
|
|
268
|
-
}, Q = (t) => (e, n) => {
|
|
269
|
-
if (n.type !== "REPLACE_INNER_BLOCKS")
|
|
270
|
-
return t(e, n);
|
|
271
|
-
const r = {};
|
|
272
|
-
if (Object.keys(e.controlledInnerBlocks).length) {
|
|
273
|
-
const d = [...n.blocks];
|
|
274
|
-
for (; d.length; ) {
|
|
275
|
-
const {
|
|
276
|
-
innerBlocks: i,
|
|
277
|
-
...o
|
|
278
|
-
} = d.shift();
|
|
279
|
-
d.push(...i), e.controlledInnerBlocks[o.clientId] && (r[o.clientId] = !0);
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
let l = e;
|
|
283
|
-
e.order.get(n.rootClientId) && (l = t(l, {
|
|
284
|
-
type: "REMOVE_BLOCKS",
|
|
285
|
-
keepControlledInnerBlocks: r,
|
|
286
|
-
clientIds: e.order.get(n.rootClientId)
|
|
287
|
-
}));
|
|
288
|
-
let s = l;
|
|
289
|
-
if (n.blocks.length) {
|
|
290
|
-
s = t(s, {
|
|
291
|
-
...n,
|
|
292
|
-
type: "INSERT_BLOCKS",
|
|
293
|
-
index: 0
|
|
294
|
-
});
|
|
295
|
-
const d = new Map(s.order);
|
|
296
|
-
Object.keys(r).forEach((i) => {
|
|
297
|
-
e.order.get(i) && d.set(i, e.order.get(i));
|
|
298
|
-
}), s.order = d, s.tree = new Map(s.tree), Object.keys(r).forEach((i) => {
|
|
299
|
-
const o = `controlled||${i}`;
|
|
300
|
-
e.tree.has(o) && s.tree.set(o, e.tree.get(o));
|
|
301
|
-
});
|
|
302
|
-
}
|
|
303
|
-
return s;
|
|
304
|
-
}, $ = (t) => (e, n) => {
|
|
305
|
-
if (e && n.type === "SAVE_REUSABLE_BLOCK_SUCCESS") {
|
|
306
|
-
const {
|
|
307
|
-
id: r,
|
|
308
|
-
updatedId: l
|
|
309
|
-
} = n;
|
|
310
|
-
if (r === l)
|
|
311
|
-
return e;
|
|
312
|
-
e = {
|
|
313
|
-
...e
|
|
314
|
-
}, e.attributes = new Map(e.attributes), e.attributes.forEach((s, d) => {
|
|
315
|
-
const {
|
|
316
|
-
name: i
|
|
317
|
-
} = e.byClientId.get(d);
|
|
318
|
-
i === "core/block" && s.ref === r && e.attributes.set(d, {
|
|
319
|
-
...s,
|
|
320
|
-
ref: l
|
|
321
|
-
});
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
return t(e, n);
|
|
325
|
-
}, ee = (t) => (e, n) => {
|
|
326
|
-
if (n.type === "SET_HAS_CONTROLLED_INNER_BLOCKS") {
|
|
327
|
-
const r = t(e, {
|
|
328
|
-
type: "REPLACE_INNER_BLOCKS",
|
|
329
|
-
rootClientId: n.clientId,
|
|
330
|
-
blocks: []
|
|
331
|
-
});
|
|
332
|
-
return t(r, n);
|
|
333
|
-
}
|
|
334
|
-
return t(e, n);
|
|
335
|
-
}, te = K(
|
|
336
|
-
m,
|
|
337
|
-
$,
|
|
338
|
-
// Needs to be before withBlockCache.
|
|
339
|
-
z,
|
|
340
|
-
// Needs to be before withInnerBlocksRemoveCascade.
|
|
341
|
-
q,
|
|
342
|
-
Q,
|
|
343
|
-
// Needs to be after withInnerBlocksRemoveCascade.
|
|
344
|
-
J,
|
|
345
|
-
Z,
|
|
346
|
-
X,
|
|
347
|
-
ee
|
|
348
|
-
)({
|
|
349
|
-
// The state is using a Map instead of a plain object for performance reasons.
|
|
350
|
-
// You can run the "./test/performance.js" unit test to check the impact
|
|
351
|
-
// code changes can have on this reducer.
|
|
352
|
-
byClientId(t = /* @__PURE__ */ new Map(), e) {
|
|
353
|
-
switch (e.type) {
|
|
354
|
-
case "RECEIVE_BLOCKS":
|
|
355
|
-
case "INSERT_BLOCKS": {
|
|
356
|
-
const n = new Map(t);
|
|
357
|
-
return L(e.blocks).forEach(([r, l]) => {
|
|
358
|
-
n.set(r, l);
|
|
359
|
-
}), n;
|
|
360
|
-
}
|
|
361
|
-
case "UPDATE_BLOCK": {
|
|
362
|
-
if (!t.has(e.clientId))
|
|
363
|
-
return t;
|
|
364
|
-
const {
|
|
365
|
-
attributes: n,
|
|
366
|
-
...r
|
|
367
|
-
} = e.updates;
|
|
368
|
-
if (Object.values(r).length === 0)
|
|
369
|
-
return t;
|
|
370
|
-
const l = new Map(t);
|
|
371
|
-
return l.set(e.clientId, {
|
|
372
|
-
...t.get(e.clientId),
|
|
373
|
-
...r
|
|
374
|
-
}), l;
|
|
375
|
-
}
|
|
376
|
-
case "REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN": {
|
|
377
|
-
if (!e.blocks)
|
|
378
|
-
return t;
|
|
379
|
-
const n = new Map(t);
|
|
380
|
-
return e.replacedClientIds.forEach((r) => {
|
|
381
|
-
n.delete(r);
|
|
382
|
-
}), L(e.blocks).forEach(([r, l]) => {
|
|
383
|
-
n.set(r, l);
|
|
384
|
-
}), n;
|
|
385
|
-
}
|
|
386
|
-
case "REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN": {
|
|
387
|
-
const n = new Map(t);
|
|
388
|
-
return e.removedClientIds.forEach((r) => {
|
|
389
|
-
n.delete(r);
|
|
390
|
-
}), n;
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
return t;
|
|
394
|
-
},
|
|
395
|
-
// The state is using a Map instead of a plain object for performance reasons.
|
|
396
|
-
// You can run the "./test/performance.js" unit test to check the impact
|
|
397
|
-
// code changes can have on this reducer.
|
|
398
|
-
attributes(t = /* @__PURE__ */ new Map(), e) {
|
|
399
|
-
switch (e.type) {
|
|
400
|
-
case "RECEIVE_BLOCKS":
|
|
401
|
-
case "INSERT_BLOCKS": {
|
|
402
|
-
const r = new Map(t);
|
|
403
|
-
return b(e.blocks).forEach(([l, s]) => {
|
|
404
|
-
r.set(l, s);
|
|
405
|
-
}), r;
|
|
406
|
-
}
|
|
407
|
-
case "UPDATE_BLOCK": {
|
|
408
|
-
if (!t.get(e.clientId) || !e.updates.attributes)
|
|
409
|
-
return t;
|
|
410
|
-
const r = new Map(t);
|
|
411
|
-
return r.set(e.clientId, {
|
|
412
|
-
...t.get(e.clientId),
|
|
413
|
-
...e.updates.attributes
|
|
414
|
-
}), r;
|
|
415
|
-
}
|
|
416
|
-
case "SYNC_DERIVED_BLOCK_ATTRIBUTES":
|
|
417
|
-
case "UPDATE_BLOCK_ATTRIBUTES": {
|
|
418
|
-
if (e.clientIds.every((s) => !t.get(s)))
|
|
419
|
-
return t;
|
|
420
|
-
let r = !1;
|
|
421
|
-
const l = new Map(t);
|
|
422
|
-
for (const s of e.clientIds) {
|
|
423
|
-
var n;
|
|
424
|
-
const d = Object.entries(e.uniqueByBlock ? e.attributes[s] : (n = e.attributes) !== null && n !== void 0 ? n : {});
|
|
425
|
-
if (d.length === 0)
|
|
426
|
-
continue;
|
|
427
|
-
let i = !1;
|
|
428
|
-
const o = t.get(s), u = {};
|
|
429
|
-
d.forEach(([E, c]) => {
|
|
430
|
-
o[E] !== c && (i = !0, u[E] = c);
|
|
431
|
-
}), r = r || i, i && l.set(s, {
|
|
432
|
-
...o,
|
|
433
|
-
...u
|
|
434
|
-
});
|
|
435
|
-
}
|
|
436
|
-
return r ? l : t;
|
|
437
|
-
}
|
|
438
|
-
case "REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN": {
|
|
439
|
-
if (!e.blocks)
|
|
440
|
-
return t;
|
|
441
|
-
const r = new Map(t);
|
|
442
|
-
return e.replacedClientIds.forEach((l) => {
|
|
443
|
-
r.delete(l);
|
|
444
|
-
}), b(e.blocks).forEach(([l, s]) => {
|
|
445
|
-
r.set(l, s);
|
|
446
|
-
}), r;
|
|
447
|
-
}
|
|
448
|
-
case "REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN": {
|
|
449
|
-
const r = new Map(t);
|
|
450
|
-
return e.removedClientIds.forEach((l) => {
|
|
451
|
-
r.delete(l);
|
|
452
|
-
}), r;
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
return t;
|
|
456
|
-
},
|
|
457
|
-
// The state is using a Map instead of a plain object for performance reasons.
|
|
458
|
-
// You can run the "./test/performance.js" unit test to check the impact
|
|
459
|
-
// code changes can have on this reducer.
|
|
460
|
-
order(t = /* @__PURE__ */ new Map(), e) {
|
|
461
|
-
switch (e.type) {
|
|
462
|
-
case "RECEIVE_BLOCKS": {
|
|
463
|
-
var n;
|
|
464
|
-
const l = p(e.blocks), s = new Map(t);
|
|
465
|
-
return l.forEach((d, i) => {
|
|
466
|
-
i !== "" && s.set(i, d);
|
|
467
|
-
}), s.set("", ((n = t.get("")) !== null && n !== void 0 ? n : []).concat(l[""])), s;
|
|
468
|
-
}
|
|
469
|
-
case "INSERT_BLOCKS": {
|
|
470
|
-
const {
|
|
471
|
-
rootClientId: l = ""
|
|
472
|
-
} = e, s = t.get(l) || [], d = p(e.blocks, l), {
|
|
473
|
-
index: i = s.length
|
|
474
|
-
} = e, o = new Map(t);
|
|
475
|
-
return d.forEach((u, E) => {
|
|
476
|
-
o.set(E, u);
|
|
477
|
-
}), o.set(l, R(s, d.get(l), i)), o;
|
|
478
|
-
}
|
|
479
|
-
case "MOVE_BLOCKS_TO_POSITION": {
|
|
480
|
-
var r;
|
|
481
|
-
const {
|
|
482
|
-
fromRootClientId: l = "",
|
|
483
|
-
toRootClientId: s = "",
|
|
484
|
-
clientIds: d
|
|
485
|
-
} = e, {
|
|
486
|
-
index: i = t.get(s).length
|
|
487
|
-
} = e;
|
|
488
|
-
if (l === s) {
|
|
489
|
-
const E = t.get(s).indexOf(d[0]), c = new Map(t);
|
|
490
|
-
return c.set(s, M(t.get(s), E, i, d.length)), c;
|
|
491
|
-
}
|
|
492
|
-
const o = new Map(t);
|
|
493
|
-
return o.set(l, (r = t.get(l)?.filter((u) => !d.includes(u))) !== null && r !== void 0 ? r : []), o.set(s, R(t.get(s), d, i)), o;
|
|
494
|
-
}
|
|
495
|
-
case "MOVE_BLOCKS_UP": {
|
|
496
|
-
const {
|
|
497
|
-
clientIds: l,
|
|
498
|
-
rootClientId: s = ""
|
|
499
|
-
} = e, d = l[0], i = t.get(s);
|
|
500
|
-
if (!i.length || d === i[0])
|
|
501
|
-
return t;
|
|
502
|
-
const o = i.indexOf(d), u = new Map(t);
|
|
503
|
-
return u.set(s, M(i, o, o - 1, l.length)), u;
|
|
504
|
-
}
|
|
505
|
-
case "MOVE_BLOCKS_DOWN": {
|
|
506
|
-
const {
|
|
507
|
-
clientIds: l,
|
|
508
|
-
rootClientId: s = ""
|
|
509
|
-
} = e, d = l[0], i = l[l.length - 1], o = t.get(s);
|
|
510
|
-
if (!o.length || i === o[o.length - 1])
|
|
511
|
-
return t;
|
|
512
|
-
const u = o.indexOf(d), E = new Map(t);
|
|
513
|
-
return E.set(s, M(o, u, u + 1, l.length)), E;
|
|
514
|
-
}
|
|
515
|
-
case "REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN": {
|
|
516
|
-
const {
|
|
517
|
-
clientIds: l
|
|
518
|
-
} = e;
|
|
519
|
-
if (!e.blocks)
|
|
520
|
-
return t;
|
|
521
|
-
const s = p(e.blocks), d = new Map(t);
|
|
522
|
-
return e.replacedClientIds.forEach((i) => {
|
|
523
|
-
d.delete(i);
|
|
524
|
-
}), s.forEach((i, o) => {
|
|
525
|
-
o !== "" && d.set(o, i);
|
|
526
|
-
}), d.forEach((i, o) => {
|
|
527
|
-
const u = Object.values(i).reduce((E, c) => c === l[0] ? [...E, ...s.get("")] : (l.indexOf(c) === -1 && E.push(c), E), []);
|
|
528
|
-
d.set(o, u);
|
|
529
|
-
}), d;
|
|
530
|
-
}
|
|
531
|
-
case "REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN": {
|
|
532
|
-
const l = new Map(t);
|
|
533
|
-
return e.removedClientIds.forEach((s) => {
|
|
534
|
-
l.delete(s);
|
|
535
|
-
}), l.forEach((s, d) => {
|
|
536
|
-
var i;
|
|
537
|
-
const o = (i = s?.filter((u) => !e.removedClientIds.includes(u))) !== null && i !== void 0 ? i : [];
|
|
538
|
-
o.length !== s.length && l.set(d, o);
|
|
539
|
-
}), l;
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
return t;
|
|
543
|
-
},
|
|
544
|
-
// While technically redundant data as the inverse of `order`, it serves as
|
|
545
|
-
// an optimization for the selectors which derive the ancestry of a block.
|
|
546
|
-
parents(t = /* @__PURE__ */ new Map(), e) {
|
|
547
|
-
switch (e.type) {
|
|
548
|
-
case "RECEIVE_BLOCKS": {
|
|
549
|
-
const n = new Map(t);
|
|
550
|
-
return O(e.blocks).forEach(([r, l]) => {
|
|
551
|
-
n.set(r, l);
|
|
552
|
-
}), n;
|
|
553
|
-
}
|
|
554
|
-
case "INSERT_BLOCKS": {
|
|
555
|
-
const n = new Map(t);
|
|
556
|
-
return O(e.blocks, e.rootClientId || "").forEach(([r, l]) => {
|
|
557
|
-
n.set(r, l);
|
|
558
|
-
}), n;
|
|
559
|
-
}
|
|
560
|
-
case "MOVE_BLOCKS_TO_POSITION": {
|
|
561
|
-
const n = new Map(t);
|
|
562
|
-
return e.clientIds.forEach((r) => {
|
|
563
|
-
n.set(r, e.toRootClientId || "");
|
|
564
|
-
}), n;
|
|
565
|
-
}
|
|
566
|
-
case "REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN": {
|
|
567
|
-
const n = new Map(t);
|
|
568
|
-
return e.replacedClientIds.forEach((r) => {
|
|
569
|
-
n.delete(r);
|
|
570
|
-
}), O(e.blocks, t.get(e.clientIds[0])).forEach(([r, l]) => {
|
|
571
|
-
n.set(r, l);
|
|
572
|
-
}), n;
|
|
573
|
-
}
|
|
574
|
-
case "REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN": {
|
|
575
|
-
const n = new Map(t);
|
|
576
|
-
return e.removedClientIds.forEach((r) => {
|
|
577
|
-
n.delete(r);
|
|
578
|
-
}), n;
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
return t;
|
|
582
|
-
},
|
|
583
|
-
controlledInnerBlocks(t = {}, {
|
|
584
|
-
type: e,
|
|
585
|
-
clientId: n,
|
|
586
|
-
hasControlledInnerBlocks: r
|
|
587
|
-
}) {
|
|
588
|
-
return e === "SET_HAS_CONTROLLED_INNER_BLOCKS" ? {
|
|
589
|
-
...t,
|
|
590
|
-
[n]: r
|
|
591
|
-
} : t;
|
|
592
|
-
}
|
|
593
|
-
});
|
|
594
|
-
function ne(t = !1, e) {
|
|
595
|
-
switch (e.type) {
|
|
596
|
-
case "HIDE_BLOCK_INTERFACE":
|
|
597
|
-
return !0;
|
|
598
|
-
case "SHOW_BLOCK_INTERFACE":
|
|
599
|
-
return !1;
|
|
600
|
-
}
|
|
601
|
-
return t;
|
|
602
|
-
}
|
|
603
|
-
function re(t = !1, e) {
|
|
604
|
-
switch (e.type) {
|
|
605
|
-
case "START_TYPING":
|
|
606
|
-
return !0;
|
|
607
|
-
case "STOP_TYPING":
|
|
608
|
-
return !1;
|
|
609
|
-
}
|
|
610
|
-
return t;
|
|
611
|
-
}
|
|
612
|
-
function se(t = !1, e) {
|
|
613
|
-
switch (e.type) {
|
|
614
|
-
case "START_DRAGGING":
|
|
615
|
-
return !0;
|
|
616
|
-
case "STOP_DRAGGING":
|
|
617
|
-
return !1;
|
|
618
|
-
}
|
|
619
|
-
return t;
|
|
620
|
-
}
|
|
621
|
-
function le(t = [], e) {
|
|
622
|
-
switch (e.type) {
|
|
623
|
-
case "START_DRAGGING_BLOCKS":
|
|
624
|
-
return e.clientIds;
|
|
625
|
-
case "STOP_DRAGGING_BLOCKS":
|
|
626
|
-
return [];
|
|
627
|
-
}
|
|
628
|
-
return t;
|
|
629
|
-
}
|
|
630
|
-
function de(t = {}, e) {
|
|
631
|
-
return e.type === "SET_BLOCK_VISIBILITY" ? {
|
|
632
|
-
...t,
|
|
633
|
-
...e.updates
|
|
634
|
-
} : t;
|
|
635
|
-
}
|
|
636
|
-
function w(t = {}, e) {
|
|
637
|
-
switch (e.type) {
|
|
638
|
-
case "CLEAR_SELECTED_BLOCK":
|
|
639
|
-
return t.clientId ? {} : t;
|
|
640
|
-
case "SELECT_BLOCK":
|
|
641
|
-
return e.clientId === t.clientId ? t : {
|
|
642
|
-
clientId: e.clientId
|
|
643
|
-
};
|
|
644
|
-
case "REPLACE_INNER_BLOCKS":
|
|
645
|
-
case "INSERT_BLOCKS":
|
|
646
|
-
return !e.updateSelection || !e.blocks.length ? t : {
|
|
647
|
-
clientId: e.blocks[0].clientId
|
|
648
|
-
};
|
|
649
|
-
case "REMOVE_BLOCKS":
|
|
650
|
-
return !e.clientIds || !e.clientIds.length || e.clientIds.indexOf(t.clientId) === -1 ? t : {};
|
|
651
|
-
case "REPLACE_BLOCKS": {
|
|
652
|
-
if (e.clientIds.indexOf(t.clientId) === -1)
|
|
653
|
-
return t;
|
|
654
|
-
const n = e.blocks[e.indexToSelect] || e.blocks[e.blocks.length - 1];
|
|
655
|
-
return n ? n.clientId === t.clientId ? t : {
|
|
656
|
-
clientId: n.clientId
|
|
657
|
-
} : {};
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
return t;
|
|
661
|
-
}
|
|
662
|
-
function ie(t = {}, e) {
|
|
663
|
-
switch (e.type) {
|
|
664
|
-
case "SELECTION_CHANGE":
|
|
665
|
-
return e.clientId ? {
|
|
666
|
-
selectionStart: {
|
|
667
|
-
clientId: e.clientId,
|
|
668
|
-
attributeKey: e.attributeKey,
|
|
669
|
-
offset: e.startOffset
|
|
670
|
-
},
|
|
671
|
-
selectionEnd: {
|
|
672
|
-
clientId: e.clientId,
|
|
673
|
-
attributeKey: e.attributeKey,
|
|
674
|
-
offset: e.endOffset
|
|
675
|
-
}
|
|
676
|
-
} : {
|
|
677
|
-
selectionStart: e.start || t.selectionStart,
|
|
678
|
-
selectionEnd: e.end || t.selectionEnd
|
|
679
|
-
};
|
|
680
|
-
case "RESET_SELECTION":
|
|
681
|
-
const {
|
|
682
|
-
selectionStart: l,
|
|
683
|
-
selectionEnd: s
|
|
684
|
-
} = e;
|
|
685
|
-
return {
|
|
686
|
-
selectionStart: l,
|
|
687
|
-
selectionEnd: s
|
|
688
|
-
};
|
|
689
|
-
case "MULTI_SELECT":
|
|
690
|
-
const {
|
|
691
|
-
start: d,
|
|
692
|
-
end: i
|
|
693
|
-
} = e;
|
|
694
|
-
return d === t.selectionStart?.clientId && i === t.selectionEnd?.clientId ? t : {
|
|
695
|
-
selectionStart: {
|
|
696
|
-
clientId: d
|
|
697
|
-
},
|
|
698
|
-
selectionEnd: {
|
|
699
|
-
clientId: i
|
|
700
|
-
}
|
|
701
|
-
};
|
|
702
|
-
case "RESET_BLOCKS":
|
|
703
|
-
const o = t?.selectionStart?.clientId, u = t?.selectionEnd?.clientId;
|
|
704
|
-
if (!o && !u)
|
|
705
|
-
return t;
|
|
706
|
-
if (!e.blocks.some((E) => E.clientId === o))
|
|
707
|
-
return {
|
|
708
|
-
selectionStart: {},
|
|
709
|
-
selectionEnd: {}
|
|
710
|
-
};
|
|
711
|
-
if (!e.blocks.some((E) => E.clientId === u))
|
|
712
|
-
return {
|
|
713
|
-
...t,
|
|
714
|
-
selectionEnd: t.selectionStart
|
|
715
|
-
};
|
|
716
|
-
}
|
|
717
|
-
const n = w(t.selectionStart, e), r = w(t.selectionEnd, e);
|
|
718
|
-
return n === t.selectionStart && r === t.selectionEnd ? t : {
|
|
719
|
-
selectionStart: n,
|
|
720
|
-
selectionEnd: r
|
|
721
|
-
};
|
|
722
|
-
}
|
|
723
|
-
function oe(t = !1, e) {
|
|
724
|
-
switch (e.type) {
|
|
725
|
-
case "START_MULTI_SELECT":
|
|
726
|
-
return !0;
|
|
727
|
-
case "STOP_MULTI_SELECT":
|
|
728
|
-
return !1;
|
|
729
|
-
}
|
|
730
|
-
return t;
|
|
731
|
-
}
|
|
732
|
-
function ce(t = !0, e) {
|
|
733
|
-
switch (e.type) {
|
|
734
|
-
case "TOGGLE_SELECTION":
|
|
735
|
-
return e.isSelectionEnabled;
|
|
736
|
-
}
|
|
737
|
-
return t;
|
|
738
|
-
}
|
|
739
|
-
function ue(t = !1, e) {
|
|
740
|
-
switch (e.type) {
|
|
741
|
-
case "DISPLAY_BLOCK_REMOVAL_PROMPT":
|
|
742
|
-
const {
|
|
743
|
-
clientIds: n,
|
|
744
|
-
selectPrevious: r,
|
|
745
|
-
message: l
|
|
746
|
-
} = e;
|
|
747
|
-
return {
|
|
748
|
-
clientIds: n,
|
|
749
|
-
selectPrevious: r,
|
|
750
|
-
message: l
|
|
751
|
-
};
|
|
752
|
-
case "CLEAR_BLOCK_REMOVAL_PROMPT":
|
|
753
|
-
return !1;
|
|
754
|
-
}
|
|
755
|
-
return t;
|
|
756
|
-
}
|
|
757
|
-
function Ee(t = !1, e) {
|
|
758
|
-
switch (e.type) {
|
|
759
|
-
case "SET_BLOCK_REMOVAL_RULES":
|
|
760
|
-
return e.rules;
|
|
761
|
-
}
|
|
762
|
-
return t;
|
|
763
|
-
}
|
|
764
|
-
function fe(t = null, e) {
|
|
765
|
-
return e.type === "REPLACE_BLOCKS" && e.initialPosition !== void 0 || ["MULTI_SELECT", "SELECT_BLOCK", "RESET_SELECTION", "INSERT_BLOCKS", "REPLACE_INNER_BLOCKS"].includes(e.type) ? e.initialPosition : t;
|
|
766
|
-
}
|
|
767
|
-
function Ie(t = {}, e) {
|
|
768
|
-
if (e.type === "TOGGLE_BLOCK_MODE") {
|
|
769
|
-
const {
|
|
770
|
-
clientId: n
|
|
771
|
-
} = e;
|
|
772
|
-
return {
|
|
773
|
-
...t,
|
|
774
|
-
[n]: t[n] && t[n] === "html" ? "visual" : "html"
|
|
775
|
-
};
|
|
776
|
-
}
|
|
777
|
-
return t;
|
|
778
|
-
}
|
|
779
|
-
function Se(t = null, e) {
|
|
780
|
-
switch (e.type) {
|
|
781
|
-
case "SHOW_INSERTION_POINT": {
|
|
782
|
-
const {
|
|
783
|
-
rootClientId: n,
|
|
784
|
-
index: r,
|
|
785
|
-
__unstableWithInserter: l,
|
|
786
|
-
operation: s,
|
|
787
|
-
nearestSide: d
|
|
788
|
-
} = e, i = {
|
|
789
|
-
rootClientId: n,
|
|
790
|
-
index: r,
|
|
791
|
-
__unstableWithInserter: l,
|
|
792
|
-
operation: s,
|
|
793
|
-
nearestSide: d
|
|
794
|
-
};
|
|
795
|
-
return T(t, i) ? t : i;
|
|
796
|
-
}
|
|
797
|
-
case "HIDE_INSERTION_POINT":
|
|
798
|
-
return null;
|
|
799
|
-
}
|
|
800
|
-
return t;
|
|
801
|
-
}
|
|
802
|
-
function _e(t = {
|
|
803
|
-
isValid: !0
|
|
804
|
-
}, e) {
|
|
805
|
-
switch (e.type) {
|
|
806
|
-
case "SET_TEMPLATE_VALIDITY":
|
|
807
|
-
return {
|
|
808
|
-
...t,
|
|
809
|
-
isValid: e.isValid
|
|
810
|
-
};
|
|
811
|
-
}
|
|
812
|
-
return t;
|
|
813
|
-
}
|
|
814
|
-
function Ce(t = v, e) {
|
|
815
|
-
switch (e.type) {
|
|
816
|
-
case "UPDATE_SETTINGS": {
|
|
817
|
-
const n = e.reset ? {
|
|
818
|
-
...v,
|
|
819
|
-
...e.settings
|
|
820
|
-
} : {
|
|
821
|
-
...t,
|
|
822
|
-
...e.settings
|
|
823
|
-
};
|
|
824
|
-
return Object.defineProperty(n, "__unstableIsPreviewMode", {
|
|
825
|
-
get() {
|
|
826
|
-
return P("__unstableIsPreviewMode", {
|
|
827
|
-
since: "6.8",
|
|
828
|
-
alternative: "isPreviewMode"
|
|
829
|
-
}), this.isPreviewMode;
|
|
830
|
-
}
|
|
831
|
-
}), n;
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
return t;
|
|
835
|
-
}
|
|
836
|
-
function Be(t = V, e) {
|
|
837
|
-
switch (e.type) {
|
|
838
|
-
case "INSERT_BLOCKS":
|
|
839
|
-
case "REPLACE_BLOCKS": {
|
|
840
|
-
const n = e.blocks.reduce((r, l) => {
|
|
841
|
-
const {
|
|
842
|
-
attributes: s,
|
|
843
|
-
name: d
|
|
844
|
-
} = l;
|
|
845
|
-
let i = d;
|
|
846
|
-
const o = x(U).getActiveBlockVariation(d, s);
|
|
847
|
-
return o?.name && (i += "/" + o.name), d === "core/block" && (i += "/" + s.ref), {
|
|
848
|
-
...r,
|
|
849
|
-
[i]: {
|
|
850
|
-
time: e.time,
|
|
851
|
-
count: r[i] ? r[i].count + 1 : 1
|
|
852
|
-
}
|
|
853
|
-
};
|
|
854
|
-
}, t.insertUsage);
|
|
855
|
-
return {
|
|
856
|
-
...t,
|
|
857
|
-
insertUsage: n
|
|
858
|
-
};
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
return t;
|
|
862
|
-
}
|
|
863
|
-
const pe = (t = {}, e) => {
|
|
864
|
-
switch (e.type) {
|
|
865
|
-
case "REPLACE_BLOCKS":
|
|
866
|
-
case "REMOVE_BLOCKS":
|
|
867
|
-
return Object.fromEntries(Object.entries(t).filter(([n]) => !e.clientIds.includes(n)));
|
|
868
|
-
case "UPDATE_BLOCK_LIST_SETTINGS": {
|
|
869
|
-
const n = typeof e.clientId == "string" ? {
|
|
870
|
-
[e.clientId]: e.settings
|
|
871
|
-
} : e.clientId;
|
|
872
|
-
for (const l in n)
|
|
873
|
-
n[l] ? T(t[l], n[l]) && delete n[l] : t[l] || delete n[l];
|
|
874
|
-
if (Object.keys(n).length === 0)
|
|
875
|
-
return t;
|
|
876
|
-
const r = {
|
|
877
|
-
...t,
|
|
878
|
-
...n
|
|
879
|
-
};
|
|
880
|
-
for (const l in n)
|
|
881
|
-
n[l] || delete r[l];
|
|
882
|
-
return r;
|
|
883
|
-
}
|
|
884
|
-
}
|
|
885
|
-
return t;
|
|
886
|
-
};
|
|
887
|
-
function ke(t = null, e) {
|
|
888
|
-
switch (e.type) {
|
|
889
|
-
case "UPDATE_BLOCK":
|
|
890
|
-
if (!e.updates.attributes)
|
|
891
|
-
break;
|
|
892
|
-
return {
|
|
893
|
-
[e.clientId]: e.updates.attributes
|
|
894
|
-
};
|
|
895
|
-
case "UPDATE_BLOCK_ATTRIBUTES":
|
|
896
|
-
return e.clientIds.reduce((n, r) => ({
|
|
897
|
-
...n,
|
|
898
|
-
[r]: e.uniqueByBlock ? e.attributes[r] : e.attributes
|
|
899
|
-
}), {});
|
|
900
|
-
}
|
|
901
|
-
return t;
|
|
902
|
-
}
|
|
903
|
-
function Oe(t, e) {
|
|
904
|
-
switch (e.type) {
|
|
905
|
-
case "TOGGLE_BLOCK_HIGHLIGHT":
|
|
906
|
-
const {
|
|
907
|
-
clientId: n,
|
|
908
|
-
isHighlighted: r
|
|
909
|
-
} = e;
|
|
910
|
-
return r ? n : t === n ? null : t;
|
|
911
|
-
case "SELECT_BLOCK":
|
|
912
|
-
if (e.clientId !== t)
|
|
913
|
-
return null;
|
|
914
|
-
}
|
|
915
|
-
return t;
|
|
916
|
-
}
|
|
917
|
-
function ge(t = null, e) {
|
|
918
|
-
switch (e.type) {
|
|
919
|
-
case "SET_BLOCK_EXPANDED_IN_LIST_VIEW":
|
|
920
|
-
return e.clientId;
|
|
921
|
-
case "SELECT_BLOCK":
|
|
922
|
-
if (e.clientId !== t)
|
|
923
|
-
return null;
|
|
924
|
-
}
|
|
925
|
-
return t;
|
|
926
|
-
}
|
|
927
|
-
function Te(t = {}, e) {
|
|
928
|
-
switch (e.type) {
|
|
929
|
-
case "INSERT_BLOCKS":
|
|
930
|
-
case "REPLACE_BLOCKS":
|
|
931
|
-
if (!e.blocks.length)
|
|
932
|
-
return t;
|
|
933
|
-
const n = e.blocks.map((l) => l.clientId), r = e.meta?.source;
|
|
934
|
-
return {
|
|
935
|
-
clientIds: n,
|
|
936
|
-
source: r
|
|
937
|
-
};
|
|
938
|
-
case "RESET_BLOCKS":
|
|
939
|
-
return {};
|
|
940
|
-
}
|
|
941
|
-
return t;
|
|
942
|
-
}
|
|
943
|
-
function Me(t = "", e) {
|
|
944
|
-
return e.type === "SET_TEMPORARILY_EDITING_AS_BLOCKS" ? e.temporarilyEditingAsBlocks : t;
|
|
945
|
-
}
|
|
946
|
-
function ae(t = "", e) {
|
|
947
|
-
return e.type === "SET_TEMPORARILY_EDITING_AS_BLOCKS" ? e.focusModeToRevert : t;
|
|
948
|
-
}
|
|
949
|
-
function Le(t = /* @__PURE__ */ new Map(), e) {
|
|
950
|
-
switch (e.type) {
|
|
951
|
-
case "SET_BLOCK_EDITING_MODE":
|
|
952
|
-
return t.get(e.clientId) === e.mode ? t : new Map(t).set(e.clientId, e.mode);
|
|
953
|
-
case "UNSET_BLOCK_EDITING_MODE": {
|
|
954
|
-
if (!t.has(e.clientId))
|
|
955
|
-
return t;
|
|
956
|
-
const n = new Map(t);
|
|
957
|
-
return n.delete(e.clientId), n;
|
|
958
|
-
}
|
|
959
|
-
case "RESET_BLOCKS":
|
|
960
|
-
return t.has("") ? (/* @__PURE__ */ new Map()).set("", t.get("")) : t;
|
|
961
|
-
}
|
|
962
|
-
return t;
|
|
963
|
-
}
|
|
964
|
-
function be(t = null, e) {
|
|
965
|
-
if (e.type === "SET_OPENED_BLOCK_SETTINGS_MENU") {
|
|
966
|
-
var n;
|
|
967
|
-
return (n = e?.clientId) !== null && n !== void 0 ? n : null;
|
|
968
|
-
}
|
|
969
|
-
return t;
|
|
970
|
-
}
|
|
971
|
-
function he(t = /* @__PURE__ */ new Map(), e) {
|
|
972
|
-
switch (e.type) {
|
|
973
|
-
case "SET_STYLE_OVERRIDE":
|
|
974
|
-
return new Map(t).set(e.id, e.style);
|
|
975
|
-
case "DELETE_STYLE_OVERRIDE": {
|
|
976
|
-
const n = new Map(t);
|
|
977
|
-
return n.delete(e.id), n;
|
|
978
|
-
}
|
|
979
|
-
}
|
|
980
|
-
return t;
|
|
981
|
-
}
|
|
982
|
-
function ve(t = [], e) {
|
|
983
|
-
switch (e.type) {
|
|
984
|
-
case "REGISTER_INSERTER_MEDIA_CATEGORY":
|
|
985
|
-
return [...t, e.category];
|
|
986
|
-
}
|
|
987
|
-
return t;
|
|
988
|
-
}
|
|
989
|
-
function Re(t = !1, e) {
|
|
990
|
-
switch (e.type) {
|
|
991
|
-
case "LAST_FOCUS":
|
|
992
|
-
return e.lastFocus;
|
|
993
|
-
}
|
|
994
|
-
return t;
|
|
995
|
-
}
|
|
996
|
-
function Ne(t = !1, e) {
|
|
997
|
-
switch (e.type) {
|
|
998
|
-
case "HOVER_BLOCK":
|
|
999
|
-
return e.clientId;
|
|
1000
|
-
}
|
|
1001
|
-
return t;
|
|
1002
|
-
}
|
|
1003
|
-
function we(t = 100, e) {
|
|
1004
|
-
switch (e.type) {
|
|
1005
|
-
case "SET_ZOOM_LEVEL":
|
|
1006
|
-
return e.zoom;
|
|
1007
|
-
case "RESET_ZOOM_LEVEL":
|
|
1008
|
-
return 100;
|
|
1009
|
-
}
|
|
1010
|
-
return t;
|
|
1011
|
-
}
|
|
1012
|
-
function Ae(t = null, e) {
|
|
1013
|
-
switch (e.type) {
|
|
1014
|
-
case "SET_INSERTION_POINT":
|
|
1015
|
-
return e.value;
|
|
1016
|
-
case "SELECT_BLOCK":
|
|
1017
|
-
return null;
|
|
1018
|
-
}
|
|
1019
|
-
return t;
|
|
1020
|
-
}
|
|
1021
|
-
const me = m({
|
|
1022
|
-
blocks: te,
|
|
1023
|
-
isDragging: se,
|
|
1024
|
-
isTyping: re,
|
|
1025
|
-
isBlockInterfaceHidden: ne,
|
|
1026
|
-
draggedBlocks: le,
|
|
1027
|
-
selection: ie,
|
|
1028
|
-
isMultiSelecting: oe,
|
|
1029
|
-
isSelectionEnabled: ce,
|
|
1030
|
-
initialPosition: fe,
|
|
1031
|
-
blocksMode: Ie,
|
|
1032
|
-
blockListSettings: pe,
|
|
1033
|
-
insertionPoint: Ae,
|
|
1034
|
-
insertionCue: Se,
|
|
1035
|
-
template: _e,
|
|
1036
|
-
settings: Ce,
|
|
1037
|
-
preferences: Be,
|
|
1038
|
-
lastBlockAttributesChange: ke,
|
|
1039
|
-
lastFocus: Re,
|
|
1040
|
-
expandedBlock: ge,
|
|
1041
|
-
highlightedBlock: Oe,
|
|
1042
|
-
lastBlockInserted: Te,
|
|
1043
|
-
temporarilyEditingAsBlocks: Me,
|
|
1044
|
-
temporarilyEditingFocusModeRevert: ae,
|
|
1045
|
-
blockVisibility: de,
|
|
1046
|
-
blockEditingModes: Le,
|
|
1047
|
-
styleOverrides: he,
|
|
1048
|
-
removalPromptData: ue,
|
|
1049
|
-
blockRemovalRules: Ee,
|
|
1050
|
-
openedBlockSettingsMenu: be,
|
|
1051
|
-
registeredInserterMediaCategories: ve,
|
|
1052
|
-
hoveredBlockClientId: Ne,
|
|
1053
|
-
zoomLevel: we
|
|
1054
|
-
});
|
|
1055
|
-
function D(t, e) {
|
|
1056
|
-
if (e === "") {
|
|
1057
|
-
const l = t.blocks.tree.get(e);
|
|
1058
|
-
return l ? {
|
|
1059
|
-
clientId: "",
|
|
1060
|
-
...l
|
|
1061
|
-
} : void 0;
|
|
1062
|
-
}
|
|
1063
|
-
if (!t.blocks.controlledInnerBlocks[e])
|
|
1064
|
-
return t.blocks.tree.get(e);
|
|
1065
|
-
const n = t.blocks.tree.get(`controlled||${e}`);
|
|
1066
|
-
return {
|
|
1067
|
-
...t.blocks.tree.get(e),
|
|
1068
|
-
innerBlocks: n?.innerBlocks
|
|
1069
|
-
};
|
|
1070
|
-
}
|
|
1071
|
-
function g(t, e, n) {
|
|
1072
|
-
const r = D(t, e);
|
|
1073
|
-
if (r && (n(r), !!r?.innerBlocks?.length))
|
|
1074
|
-
for (const l of r?.innerBlocks)
|
|
1075
|
-
g(t, l.clientId, n);
|
|
1076
|
-
}
|
|
1077
|
-
function C(t, e, n) {
|
|
1078
|
-
if (!n.length)
|
|
1079
|
-
return;
|
|
1080
|
-
let r = t.blocks.parents.get(e);
|
|
1081
|
-
for (; r !== void 0; ) {
|
|
1082
|
-
if (n.includes(r))
|
|
1083
|
-
return r;
|
|
1084
|
-
r = t.blocks.parents.get(r);
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
function A(t) {
|
|
1088
|
-
return t?.attributes?.metadata?.bindings && Object.keys(t?.attributes?.metadata?.bindings).length;
|
|
1089
|
-
}
|
|
1090
|
-
function B(t, e = !1, n = "") {
|
|
1091
|
-
const r = t?.zoomLevel < 100 || t?.zoomLevel === "auto-scaled", l = /* @__PURE__ */ new Map(), s = t.settings?.[a], d = t.blocks.order.get(s), i = Array.from(t.blockEditingModes).some(([, E]) => E === "disabled"), o = [], u = [];
|
|
1092
|
-
return Object.keys(t.blocks.controlledInnerBlocks).forEach((E) => {
|
|
1093
|
-
const c = t.blocks.byClientId?.get(E);
|
|
1094
|
-
c?.name === "core/template-part" && o.push(E), c?.name === "core/block" && u.push(E);
|
|
1095
|
-
}), g(t, n, (E) => {
|
|
1096
|
-
const {
|
|
1097
|
-
clientId: c,
|
|
1098
|
-
name: k
|
|
1099
|
-
} = E;
|
|
1100
|
-
if (!t.blockEditingModes.has(c)) {
|
|
1101
|
-
if (i) {
|
|
1102
|
-
let _, I = t.blocks.parents.get(c);
|
|
1103
|
-
for (; I !== void 0 && (l.has(I) ? _ = l.get(I) : t.blockEditingModes.has(I) && (_ = t.blockEditingModes.get(I)), !_); )
|
|
1104
|
-
I = t.blocks.parents.get(I);
|
|
1105
|
-
if (_ === "disabled") {
|
|
1106
|
-
l.set(c, "disabled");
|
|
1107
|
-
return;
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1110
|
-
if (r || e) {
|
|
1111
|
-
if (c === s) {
|
|
1112
|
-
l.set(c, "contentOnly");
|
|
1113
|
-
return;
|
|
1114
|
-
}
|
|
1115
|
-
if (!d?.length) {
|
|
1116
|
-
l.set(c, "disabled");
|
|
1117
|
-
return;
|
|
1118
|
-
}
|
|
1119
|
-
if (d.includes(c)) {
|
|
1120
|
-
l.set(c, "contentOnly");
|
|
1121
|
-
return;
|
|
1122
|
-
}
|
|
1123
|
-
if (r) {
|
|
1124
|
-
l.set(c, "disabled");
|
|
1125
|
-
return;
|
|
1126
|
-
}
|
|
1127
|
-
if (!!!C(t, c, d)) {
|
|
1128
|
-
if (c === "") {
|
|
1129
|
-
l.set(c, "disabled");
|
|
1130
|
-
return;
|
|
1131
|
-
}
|
|
1132
|
-
if (k === "core/template-part") {
|
|
1133
|
-
l.set(c, "contentOnly");
|
|
1134
|
-
return;
|
|
1135
|
-
}
|
|
1136
|
-
if (!!!C(t, c, o) && !N(k)) {
|
|
1137
|
-
l.set(c, "disabled");
|
|
1138
|
-
return;
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
|
-
if (u.length) {
|
|
1142
|
-
const I = C(t, c, u);
|
|
1143
|
-
if (I) {
|
|
1144
|
-
if (C(t, I, u)) {
|
|
1145
|
-
l.set(c, "disabled");
|
|
1146
|
-
return;
|
|
1147
|
-
}
|
|
1148
|
-
if (A(E)) {
|
|
1149
|
-
l.set(c, "contentOnly");
|
|
1150
|
-
return;
|
|
1151
|
-
}
|
|
1152
|
-
l.set(c, "disabled");
|
|
1153
|
-
return;
|
|
1154
|
-
}
|
|
1155
|
-
}
|
|
1156
|
-
if (k && N(k)) {
|
|
1157
|
-
l.set(c, "contentOnly");
|
|
1158
|
-
return;
|
|
1159
|
-
}
|
|
1160
|
-
l.set(c, "disabled");
|
|
1161
|
-
return;
|
|
1162
|
-
}
|
|
1163
|
-
if (u.length) {
|
|
1164
|
-
if (u.includes(c)) {
|
|
1165
|
-
if (C(t, c, u)) {
|
|
1166
|
-
l.set(c, "disabled");
|
|
1167
|
-
return;
|
|
1168
|
-
}
|
|
1169
|
-
return;
|
|
1170
|
-
}
|
|
1171
|
-
const _ = C(t, c, u);
|
|
1172
|
-
if (_) {
|
|
1173
|
-
if (C(t, _, u)) {
|
|
1174
|
-
l.set(c, "disabled");
|
|
1175
|
-
return;
|
|
1176
|
-
}
|
|
1177
|
-
if (A(E)) {
|
|
1178
|
-
l.set(c, "contentOnly");
|
|
1179
|
-
return;
|
|
1180
|
-
}
|
|
1181
|
-
l.set(c, "disabled");
|
|
1182
|
-
}
|
|
1183
|
-
}
|
|
1184
|
-
}
|
|
1185
|
-
}), l;
|
|
1186
|
-
}
|
|
1187
|
-
function f({
|
|
1188
|
-
prevState: t,
|
|
1189
|
-
nextState: e,
|
|
1190
|
-
addedBlocks: n,
|
|
1191
|
-
removedClientIds: r,
|
|
1192
|
-
isNavMode: l = !1
|
|
1193
|
-
}) {
|
|
1194
|
-
const s = l ? t.derivedNavModeBlockEditingModes : t.derivedBlockEditingModes;
|
|
1195
|
-
let d;
|
|
1196
|
-
return r?.forEach((i) => {
|
|
1197
|
-
g(t, i, (o) => {
|
|
1198
|
-
s.has(o.clientId) && (d || (d = new Map(s)), d.delete(o.clientId));
|
|
1199
|
-
});
|
|
1200
|
-
}), n?.forEach((i) => {
|
|
1201
|
-
g(e, i.clientId, (o) => {
|
|
1202
|
-
const u = B(e, l, o.clientId);
|
|
1203
|
-
u.size && (d ? d = new Map([...d?.size ? d : [], ...u]) : d = new Map([...s?.size ? s : [], ...u]));
|
|
1204
|
-
});
|
|
1205
|
-
}), d;
|
|
1206
|
-
}
|
|
1207
|
-
function Ke(t) {
|
|
1208
|
-
return (e, n) => {
|
|
1209
|
-
var r, l;
|
|
1210
|
-
const s = t(e, n);
|
|
1211
|
-
if (n.type !== "SET_EDITOR_MODE" && s === e)
|
|
1212
|
-
return e;
|
|
1213
|
-
switch (n.type) {
|
|
1214
|
-
case "REMOVE_BLOCKS": {
|
|
1215
|
-
const d = f({
|
|
1216
|
-
prevState: e,
|
|
1217
|
-
nextState: s,
|
|
1218
|
-
removedClientIds: n.clientIds,
|
|
1219
|
-
isNavMode: !1
|
|
1220
|
-
}), i = f({
|
|
1221
|
-
prevState: e,
|
|
1222
|
-
nextState: s,
|
|
1223
|
-
removedClientIds: n.clientIds,
|
|
1224
|
-
isNavMode: !0
|
|
1225
|
-
});
|
|
1226
|
-
if (d || i)
|
|
1227
|
-
return {
|
|
1228
|
-
...s,
|
|
1229
|
-
derivedBlockEditingModes: d ?? e.derivedBlockEditingModes,
|
|
1230
|
-
derivedNavModeBlockEditingModes: i ?? e.derivedNavModeBlockEditingModes
|
|
1231
|
-
};
|
|
1232
|
-
break;
|
|
1233
|
-
}
|
|
1234
|
-
case "RECEIVE_BLOCKS":
|
|
1235
|
-
case "INSERT_BLOCKS": {
|
|
1236
|
-
const d = f({
|
|
1237
|
-
prevState: e,
|
|
1238
|
-
nextState: s,
|
|
1239
|
-
addedBlocks: n.blocks,
|
|
1240
|
-
isNavMode: !1
|
|
1241
|
-
}), i = f({
|
|
1242
|
-
prevState: e,
|
|
1243
|
-
nextState: s,
|
|
1244
|
-
addedBlocks: n.blocks,
|
|
1245
|
-
isNavMode: !0
|
|
1246
|
-
});
|
|
1247
|
-
if (d || i)
|
|
1248
|
-
return {
|
|
1249
|
-
...s,
|
|
1250
|
-
derivedBlockEditingModes: d ?? e.derivedBlockEditingModes,
|
|
1251
|
-
derivedNavModeBlockEditingModes: i ?? e.derivedNavModeBlockEditingModes
|
|
1252
|
-
};
|
|
1253
|
-
break;
|
|
1254
|
-
}
|
|
1255
|
-
case "SET_BLOCK_EDITING_MODE":
|
|
1256
|
-
case "UNSET_BLOCK_EDITING_MODE":
|
|
1257
|
-
case "SET_HAS_CONTROLLED_INNER_BLOCKS": {
|
|
1258
|
-
const d = D(s, n.clientId);
|
|
1259
|
-
if (!d)
|
|
1260
|
-
break;
|
|
1261
|
-
const i = f({
|
|
1262
|
-
prevState: e,
|
|
1263
|
-
nextState: s,
|
|
1264
|
-
removedClientIds: [n.clientId],
|
|
1265
|
-
addedBlocks: [d],
|
|
1266
|
-
isNavMode: !1
|
|
1267
|
-
}), o = f({
|
|
1268
|
-
prevState: e,
|
|
1269
|
-
nextState: s,
|
|
1270
|
-
removedClientIds: [n.clientId],
|
|
1271
|
-
addedBlocks: [d],
|
|
1272
|
-
isNavMode: !0
|
|
1273
|
-
});
|
|
1274
|
-
if (i || o)
|
|
1275
|
-
return {
|
|
1276
|
-
...s,
|
|
1277
|
-
derivedBlockEditingModes: i ?? e.derivedBlockEditingModes,
|
|
1278
|
-
derivedNavModeBlockEditingModes: o ?? e.derivedNavModeBlockEditingModes
|
|
1279
|
-
};
|
|
1280
|
-
break;
|
|
1281
|
-
}
|
|
1282
|
-
case "REPLACE_BLOCKS": {
|
|
1283
|
-
const d = f({
|
|
1284
|
-
prevState: e,
|
|
1285
|
-
nextState: s,
|
|
1286
|
-
addedBlocks: n.blocks,
|
|
1287
|
-
removedClientIds: n.clientIds,
|
|
1288
|
-
isNavMode: !1
|
|
1289
|
-
}), i = f({
|
|
1290
|
-
prevState: e,
|
|
1291
|
-
nextState: s,
|
|
1292
|
-
addedBlocks: n.blocks,
|
|
1293
|
-
removedClientIds: n.clientIds,
|
|
1294
|
-
isNavMode: !0
|
|
1295
|
-
});
|
|
1296
|
-
if (d || i)
|
|
1297
|
-
return {
|
|
1298
|
-
...s,
|
|
1299
|
-
derivedBlockEditingModes: d ?? e.derivedBlockEditingModes,
|
|
1300
|
-
derivedNavModeBlockEditingModes: i ?? e.derivedNavModeBlockEditingModes
|
|
1301
|
-
};
|
|
1302
|
-
break;
|
|
1303
|
-
}
|
|
1304
|
-
case "REPLACE_INNER_BLOCKS": {
|
|
1305
|
-
const d = e.blocks.order.get(n.rootClientId), i = f({
|
|
1306
|
-
prevState: e,
|
|
1307
|
-
nextState: s,
|
|
1308
|
-
addedBlocks: n.blocks,
|
|
1309
|
-
removedClientIds: d,
|
|
1310
|
-
isNavMode: !1
|
|
1311
|
-
}), o = f({
|
|
1312
|
-
prevState: e,
|
|
1313
|
-
nextState: s,
|
|
1314
|
-
addedBlocks: n.blocks,
|
|
1315
|
-
removedClientIds: d,
|
|
1316
|
-
isNavMode: !0
|
|
1317
|
-
});
|
|
1318
|
-
if (i || o)
|
|
1319
|
-
return {
|
|
1320
|
-
...s,
|
|
1321
|
-
derivedBlockEditingModes: i ?? e.derivedBlockEditingModes,
|
|
1322
|
-
derivedNavModeBlockEditingModes: o ?? e.derivedNavModeBlockEditingModes
|
|
1323
|
-
};
|
|
1324
|
-
break;
|
|
1325
|
-
}
|
|
1326
|
-
case "MOVE_BLOCKS_TO_POSITION": {
|
|
1327
|
-
const d = n.clientIds.map((u) => s.blocks.byClientId.get(u)), i = f({
|
|
1328
|
-
prevState: e,
|
|
1329
|
-
nextState: s,
|
|
1330
|
-
addedBlocks: d,
|
|
1331
|
-
removedClientIds: n.clientIds,
|
|
1332
|
-
isNavMode: !1
|
|
1333
|
-
}), o = f({
|
|
1334
|
-
prevState: e,
|
|
1335
|
-
nextState: s,
|
|
1336
|
-
addedBlocks: d,
|
|
1337
|
-
removedClientIds: n.clientIds,
|
|
1338
|
-
isNavMode: !0
|
|
1339
|
-
});
|
|
1340
|
-
if (i || o)
|
|
1341
|
-
return {
|
|
1342
|
-
...s,
|
|
1343
|
-
derivedBlockEditingModes: i ?? e.derivedBlockEditingModes,
|
|
1344
|
-
derivedNavModeBlockEditingModes: o ?? e.derivedNavModeBlockEditingModes
|
|
1345
|
-
};
|
|
1346
|
-
break;
|
|
1347
|
-
}
|
|
1348
|
-
case "UPDATE_SETTINGS": {
|
|
1349
|
-
if (e?.settings?.[a] !== s?.settings?.[a])
|
|
1350
|
-
return {
|
|
1351
|
-
...s,
|
|
1352
|
-
derivedBlockEditingModes: B(
|
|
1353
|
-
s,
|
|
1354
|
-
!1
|
|
1355
|
-
/* Nav mode off */
|
|
1356
|
-
),
|
|
1357
|
-
derivedNavModeBlockEditingModes: B(
|
|
1358
|
-
s,
|
|
1359
|
-
!0
|
|
1360
|
-
/* Nav mode on */
|
|
1361
|
-
)
|
|
1362
|
-
};
|
|
1363
|
-
break;
|
|
1364
|
-
}
|
|
1365
|
-
case "RESET_BLOCKS":
|
|
1366
|
-
case "SET_EDITOR_MODE":
|
|
1367
|
-
case "RESET_ZOOM_LEVEL":
|
|
1368
|
-
case "SET_ZOOM_LEVEL":
|
|
1369
|
-
return {
|
|
1370
|
-
...s,
|
|
1371
|
-
derivedBlockEditingModes: B(
|
|
1372
|
-
s,
|
|
1373
|
-
!1
|
|
1374
|
-
/* Nav mode off */
|
|
1375
|
-
),
|
|
1376
|
-
derivedNavModeBlockEditingModes: B(
|
|
1377
|
-
s,
|
|
1378
|
-
!0
|
|
1379
|
-
/* Nav mode on */
|
|
1380
|
-
)
|
|
1381
|
-
};
|
|
1382
|
-
}
|
|
1383
|
-
return s.derivedBlockEditingModes = (r = e?.derivedBlockEditingModes) !== null && r !== void 0 ? r : /* @__PURE__ */ new Map(), s.derivedNavModeBlockEditingModes = (l = e?.derivedNavModeBlockEditingModes) !== null && l !== void 0 ? l : /* @__PURE__ */ new Map(), s;
|
|
1384
|
-
};
|
|
1385
|
-
}
|
|
1386
|
-
function ye(t) {
|
|
1387
|
-
return (e, n) => {
|
|
1388
|
-
const r = t(e, n);
|
|
1389
|
-
return e ? (r.automaticChangeStatus = e.automaticChangeStatus, n.type === "MARK_AUTOMATIC_CHANGE" ? {
|
|
1390
|
-
...r,
|
|
1391
|
-
automaticChangeStatus: "pending"
|
|
1392
|
-
} : n.type === "MARK_AUTOMATIC_CHANGE_FINAL" && e.automaticChangeStatus === "pending" ? {
|
|
1393
|
-
...r,
|
|
1394
|
-
automaticChangeStatus: "final"
|
|
1395
|
-
} : r.blocks === e.blocks && r.selection === e.selection || r.automaticChangeStatus !== "final" && r.selection !== e.selection ? r : {
|
|
1396
|
-
...r,
|
|
1397
|
-
automaticChangeStatus: void 0
|
|
1398
|
-
}) : r;
|
|
1399
|
-
};
|
|
1400
|
-
}
|
|
1401
|
-
const ze = K(Ke, ye)(me);
|
|
1402
|
-
export {
|
|
1403
|
-
Le as blockEditingModes,
|
|
1404
|
-
pe as blockListSettings,
|
|
1405
|
-
de as blockVisibility,
|
|
1406
|
-
te as blocks,
|
|
1407
|
-
Ie as blocksMode,
|
|
1408
|
-
ze as default,
|
|
1409
|
-
le as draggedBlocks,
|
|
1410
|
-
ge as expandedBlock,
|
|
1411
|
-
F as hasSameKeys,
|
|
1412
|
-
Oe as highlightedBlock,
|
|
1413
|
-
Ne as hoveredBlockClientId,
|
|
1414
|
-
fe as initialPosition,
|
|
1415
|
-
Se as insertionCue,
|
|
1416
|
-
Ae as insertionPoint,
|
|
1417
|
-
ne as isBlockInterfaceHidden,
|
|
1418
|
-
se as isDragging,
|
|
1419
|
-
oe as isMultiSelecting,
|
|
1420
|
-
ce as isSelectionEnabled,
|
|
1421
|
-
re as isTyping,
|
|
1422
|
-
Y as isUpdatingSameBlockAttribute,
|
|
1423
|
-
ke as lastBlockAttributesChange,
|
|
1424
|
-
Te as lastBlockInserted,
|
|
1425
|
-
Re as lastFocus,
|
|
1426
|
-
be as openedBlockSettingsMenu,
|
|
1427
|
-
Be as preferences,
|
|
1428
|
-
ve as registeredInserterMediaCategories,
|
|
1429
|
-
ie as selection,
|
|
1430
|
-
Ce as settings,
|
|
1431
|
-
he as styleOverrides,
|
|
1432
|
-
_e as template,
|
|
1433
|
-
Me as temporarilyEditingAsBlocks,
|
|
1434
|
-
ae as temporarilyEditingFocusModeRevert,
|
|
1435
|
-
Ke as withDerivedBlockEditingModes,
|
|
1436
|
-
we as zoomLevel
|
|
1437
|
-
};
|