@atlaskit/editor-common 97.1.2 → 97.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/cjs/analytics/analytics-queue.js +8 -0
- package/dist/cjs/analytics/linking-utils.js +2 -0
- package/dist/cjs/card/LinkToolbarButtonGroup.js +2 -0
- package/dist/cjs/card/MediaAndEmbedsToolbar/index.js +15 -3
- package/dist/cjs/card/ui/assets/card.js +4 -0
- package/dist/cjs/card/ui/assets/embed.js +4 -0
- package/dist/cjs/card/ui/assets/inline.js +4 -0
- package/dist/cjs/card/ui/assets/url.js +4 -0
- package/dist/cjs/clipboard/index.js +12 -1
- package/dist/cjs/collab/index.js +2 -0
- package/dist/cjs/commands/index.js +50 -42
- package/dist/cjs/commands/insert-block.js +10 -2
- package/dist/cjs/core-utils/document-logger.js +4 -0
- package/dist/cjs/doc-utils/editor-use-only.js +8 -3
- package/dist/cjs/element-browser/ElementBrowser.js +2 -0
- package/dist/cjs/element-browser/ViewMore.js +8 -2
- package/dist/cjs/element-browser/components/CategoryList.js +2 -0
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +12 -0
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +8 -2
- package/dist/cjs/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +13 -2
- package/dist/cjs/event-dispatcher/index.js +6 -0
- package/dist/cjs/extensibility/Extension/Extension/index.js +2 -0
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +10 -2
- package/dist/cjs/extensibility/Extension/Lozenge/index.js +3 -1
- package/dist/cjs/extensibility/Extension.js +2 -0
- package/dist/cjs/extensibility/ExtensionComponent.js +17 -2
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +4 -0
- package/dist/cjs/extensibility/extensionNodeView.js +2 -1
- package/dist/cjs/extensions/extension-fields-helpers.js +4 -1
- package/dist/cjs/extensions/extension-handlers.js +4 -0
- package/dist/cjs/extensions/module-helpers.js +14 -6
- package/dist/cjs/extensions/types/field-definitions.js +5 -0
- package/dist/cjs/floating-toolbar/index.js +18 -2
- package/dist/cjs/guideline/dynamicGuideline.js +4 -1
- package/dist/cjs/guideline/relativeGuideline.js +12 -3
- package/dist/cjs/guideline/updateGuideline.js +4 -1
- package/dist/cjs/hooks/usePluginStateEffect.js +3 -0
- package/dist/cjs/hooks/useSharedPluginState.js +3 -0
- package/dist/cjs/hooks/useSharedPluginStateSelector/useSharedPluginStateSelector.js +3 -0
- package/dist/cjs/icons/shared/BorderIcon.js +4 -0
- package/dist/cjs/icons/shared/PanelErrorIcon.js +4 -0
- package/dist/cjs/icons/shared/PanelInfoIcon.js +4 -0
- package/dist/cjs/icons/shared/PanelNoteIcon.js +4 -0
- package/dist/cjs/icons/shared/PanelSuccessIcon.js +4 -0
- package/dist/cjs/icons/shared/PanelWarningIcon.js +4 -0
- package/dist/cjs/insert/index.js +6 -1
- package/dist/cjs/keymaps/index.js +48 -5
- package/dist/cjs/keymaps/keymap.js +4 -0
- package/dist/cjs/lazy-node-view/css-helper.js +4 -0
- package/dist/cjs/lazy-node-view/index.js +6 -1
- package/dist/cjs/lazy-node-view/node-view.js +2 -0
- package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +2 -0
- package/dist/cjs/link/ConfigureLinkOverlay/StyledButton.js +4 -1
- package/dist/cjs/link/LinkPicker/EditorLinkPicker/index.js +4 -1
- package/dist/cjs/link/LinkPicker/EditorLinkPicker/useEscapeClickaway.js +9 -0
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +16 -1
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/index.js +2 -0
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +2 -0
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +2 -0
- package/dist/cjs/link/LinkSearch/index.js +9 -1
- package/dist/cjs/link/LinkSearch/withActivityProvider.js +3 -0
- package/dist/cjs/lists/analytics.js +2 -0
- package/dist/cjs/mark/commands.js +24 -3
- package/dist/cjs/media-inline/inline-image-card.js +4 -2
- package/dist/cjs/media-inline/inline-image-wrapper.js +2 -0
- package/dist/cjs/media-single/MediaBadges.js +2 -0
- package/dist/cjs/media-single/utils.js +5 -0
- package/dist/cjs/monitoring/environment.js +6 -1
- package/dist/cjs/monitoring/error.js +19 -3
- package/dist/cjs/node-width/index.js +6 -1
- package/dist/cjs/normalize-feature-flags.js +4 -1
- package/dist/cjs/paste/clipboard.js +2 -0
- package/dist/cjs/paste/md-plugins/ignore-list-heading-md-plugin.js +5 -0
- package/dist/cjs/paste/md-plugins/linkify-md-plugin.js +20 -0
- package/dist/cjs/paste/md-plugins/newline-md-plugin.js +5 -0
- package/dist/cjs/paste/md-plugins/paragraph-md-plugin.js +5 -0
- package/dist/cjs/portal/common.js +4 -1
- package/dist/cjs/preset/builder.js +8 -0
- package/dist/cjs/preset/core-plugin/index.js +5 -0
- package/dist/cjs/preset/core-plugin/requestDocument.js +3 -0
- package/dist/cjs/preset/plugin-injection-api.js +61 -6
- package/dist/cjs/provider-factory/provider-factory.js +8 -1
- package/dist/cjs/provider-factory/with-providers.js +12 -0
- package/dist/cjs/provider-helpers/combine-providers.js +7 -0
- package/dist/cjs/provider-helpers/promise-helpers.js +3 -0
- package/dist/cjs/quick-insert/assets/index.js +2 -0
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +4 -0
- package/dist/cjs/react-node-view/index.js +33 -2
- package/dist/cjs/resizer/BreakoutResizer.js +0 -6
- package/dist/cjs/resizer/Resizer.js +10 -2
- package/dist/cjs/safe-plugin/index.js +3 -0
- package/dist/cjs/selection/gap-cursor/actions.js +11 -2
- package/dist/cjs/selection/gap-cursor/selection.js +8 -0
- package/dist/cjs/selection/index.js +2 -0
- package/dist/cjs/selection-based-node-view/SelectionBasedNodeView.js +10 -1
- package/dist/cjs/styles/shared/lists.js +4 -1
- package/dist/cjs/transforms/code-block.js +6 -0
- package/dist/cjs/transforms/extension.js +14 -2
- package/dist/cjs/transforms/layout.js +6 -0
- package/dist/cjs/types/annotation/emitter.js +8 -2
- package/dist/cjs/types/index.js +3 -1
- package/dist/cjs/ui/Caption/index.js +4 -0
- package/dist/cjs/ui/ContextPanel/context.js +4 -0
- package/dist/cjs/ui/DropList/index.js +11 -1
- package/dist/cjs/ui/Emoji/index.js +2 -0
- package/dist/cjs/ui/ErrorBoundary/index.js +2 -0
- package/dist/cjs/ui/Expand/index.js +13 -6
- package/dist/cjs/ui/FloatingToolbar/Button.js +2 -0
- package/dist/cjs/ui/FloatingToolbar/ButtonSpotlightCard.js +4 -1
- package/dist/cjs/ui/FloatingToolbar/styles.js +3 -0
- package/dist/cjs/ui/IntlErrorBoundary/index.js +3 -0
- package/dist/cjs/ui/Layer/index.js +8 -0
- package/dist/cjs/ui/MediaSingle/grid.js +12 -2
- package/dist/cjs/ui/MediaSingle/index.js +2 -0
- package/dist/cjs/ui/MediaSingle/styled.js +6 -0
- package/dist/cjs/ui/Mention/mention-with-profilecard.js +4 -1
- package/dist/cjs/ui/Mention/mention-with-providers.js +20 -3
- package/dist/cjs/ui/OverflowShadow/index.js +18 -4
- package/dist/cjs/ui/OverflowShadow/shadowObserver.js +12 -2
- package/dist/cjs/ui/PanelTextInput/index.js +16 -1
- package/dist/cjs/ui/Popup/index.js +23 -2
- package/dist/cjs/ui/Popup/utils.js +19 -0
- package/dist/cjs/ui/ResizerLegacy/index.js +7 -0
- package/dist/cjs/ui/unsupported-content-helper.js +6 -1
- package/dist/cjs/ui/with-outer-listeners.js +12 -1
- package/dist/cjs/ui-color/ColorPalette/utils.js +2 -0
- package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +9 -0
- package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +12 -0
- package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/index.js +4 -0
- package/dist/cjs/ui-menu/Dropdown/index.js +9 -2
- package/dist/cjs/ui-menu/DropdownContainer/index.js +4 -1
- package/dist/cjs/ui-menu/DropdownMenu/index.js +20 -3
- package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +17 -0
- package/dist/cjs/ui-menu/ToolbarButton/styles.js +2 -0
- package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +29 -4
- package/dist/cjs/utils/breakout.js +4 -0
- package/dist/cjs/utils/browser-extensions.js +4 -0
- package/dist/cjs/utils/browser.js +47 -5
- package/dist/cjs/utils/commands.js +4 -1
- package/dist/cjs/utils/compareNodes.js +7 -0
- package/dist/cjs/utils/compose.js +2 -0
- package/dist/cjs/utils/create-wrap-selection-transaction.js +9 -1
- package/dist/cjs/utils/dom.js +2 -0
- package/dist/cjs/utils/editor-core-utils.js +5 -0
- package/dist/cjs/utils/filter/privacy-filter.js +2 -0
- package/dist/cjs/utils/get-performance-options.js +2 -0
- package/dist/cjs/utils/hyperlink.js +16 -0
- package/dist/cjs/utils/imageLoader.js +23 -0
- package/dist/cjs/utils/index.js +10 -0
- package/dist/cjs/utils/input-rules.js +4 -1
- package/dist/cjs/utils/macro.js +2 -0
- package/dist/cjs/utils/nodes.js +6 -1
- package/dist/cjs/utils/outdated-browsers.js +21 -1
- package/dist/cjs/utils/performance/is-performance-api-available.js +4 -1
- package/dist/cjs/utils/performance/measure-render.js +5 -0
- package/dist/cjs/utils/performance/measure-tti.js +5 -0
- package/dist/cjs/utils/plugin-state-factory.js +4 -0
- package/dist/cjs/utils/processRawValue.js +13 -1
- package/dist/cjs/utils/prosemirror/autojoin.js +2 -0
- package/dist/cjs/utils/referentiality.js +5 -0
- package/dist/cjs/utils/rich-media-utils.js +4 -1
- package/dist/cjs/utils/should-auto-linkify-tld.js +5 -0
- package/dist/cjs/utils/should-force-tracking.js +2 -0
- package/dist/cjs/utils/slice.js +2 -0
- package/dist/cjs/utils/track-unsupported-content.js +15 -2
- package/dist/cjs/utils/traversor.js +6 -0
- package/dist/cjs/utils/validate-using-spec.js +13 -1
- package/dist/cjs/utils/validator.js +19 -0
- package/dist/cjs/utils/withFeatureFlaggedComponent.js +4 -0
- package/dist/cjs/with-plugin-state/index.js +94 -20
- package/dist/es2019/analytics/analytics-queue.js +8 -0
- package/dist/es2019/analytics/linking-utils.js +2 -0
- package/dist/es2019/card/LinkToolbarButtonGroup.js +2 -0
- package/dist/es2019/card/MediaAndEmbedsToolbar/index.js +15 -3
- package/dist/es2019/card/ui/assets/card.js +4 -0
- package/dist/es2019/card/ui/assets/embed.js +4 -0
- package/dist/es2019/card/ui/assets/inline.js +4 -0
- package/dist/es2019/card/ui/assets/url.js +4 -0
- package/dist/es2019/clipboard/index.js +12 -1
- package/dist/es2019/collab/index.js +2 -0
- package/dist/es2019/commands/index.js +8 -2
- package/dist/es2019/commands/insert-block.js +10 -2
- package/dist/es2019/core-utils/document-logger.js +4 -0
- package/dist/es2019/doc-utils/editor-use-only.js +5 -1
- package/dist/es2019/element-browser/ElementBrowser.js +2 -0
- package/dist/es2019/element-browser/ViewMore.js +8 -2
- package/dist/es2019/element-browser/components/CategoryList.js +2 -0
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +12 -0
- package/dist/es2019/element-browser/components/StatelessElementBrowser.js +8 -2
- package/dist/es2019/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +13 -2
- package/dist/es2019/event-dispatcher/index.js +8 -0
- package/dist/es2019/extensibility/Extension/Extension/index.js +2 -0
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +10 -2
- package/dist/es2019/extensibility/Extension/Lozenge/index.js +3 -1
- package/dist/es2019/extensibility/Extension.js +2 -0
- package/dist/es2019/extensibility/ExtensionComponent.js +15 -1
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +4 -0
- package/dist/es2019/extensibility/extensionNodeView.js +3 -0
- package/dist/es2019/extensions/extension-fields-helpers.js +4 -0
- package/dist/es2019/extensions/extension-handlers.js +4 -0
- package/dist/es2019/extensions/module-helpers.js +11 -2
- package/dist/es2019/extensions/types/field-definitions.js +5 -0
- package/dist/es2019/floating-toolbar/index.js +18 -2
- package/dist/es2019/guideline/dynamicGuideline.js +4 -1
- package/dist/es2019/guideline/relativeGuideline.js +12 -3
- package/dist/es2019/guideline/snapping.js +4 -1
- package/dist/es2019/guideline/updateGuideline.js +4 -1
- package/dist/es2019/hooks/usePluginStateEffect.js +4 -0
- package/dist/es2019/hooks/useSharedPluginState.js +4 -0
- package/dist/es2019/hooks/useSharedPluginStateSelector/useSharedPluginStateSelector.js +3 -0
- package/dist/es2019/icons/shared/BorderIcon.js +4 -0
- package/dist/es2019/icons/shared/PanelErrorIcon.js +4 -0
- package/dist/es2019/icons/shared/PanelInfoIcon.js +4 -0
- package/dist/es2019/icons/shared/PanelNoteIcon.js +4 -0
- package/dist/es2019/icons/shared/PanelSuccessIcon.js +4 -0
- package/dist/es2019/icons/shared/PanelWarningIcon.js +4 -0
- package/dist/es2019/insert/index.js +6 -1
- package/dist/es2019/keymaps/index.js +46 -4
- package/dist/es2019/keymaps/keymap.js +4 -0
- package/dist/es2019/lazy-node-view/css-helper.js +4 -0
- package/dist/es2019/lazy-node-view/index.js +6 -1
- package/dist/es2019/lazy-node-view/node-view.js +2 -0
- package/dist/es2019/link/ConfigureLinkOverlay/Dropdown.js +2 -0
- package/dist/es2019/link/ConfigureLinkOverlay/StyledButton.js +4 -1
- package/dist/es2019/link/LinkPicker/EditorLinkPicker/index.js +4 -1
- package/dist/es2019/link/LinkPicker/EditorLinkPicker/useEscapeClickaway.js +9 -0
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +19 -0
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/index.js +2 -0
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +2 -0
- package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +2 -0
- package/dist/es2019/link/LinkSearch/index.js +13 -0
- package/dist/es2019/link/LinkSearch/withActivityProvider.js +3 -0
- package/dist/es2019/lists/analytics.js +2 -0
- package/dist/es2019/mark/commands.js +24 -3
- package/dist/es2019/media-inline/inline-image-card.js +4 -2
- package/dist/es2019/media-inline/inline-image-wrapper.js +2 -0
- package/dist/es2019/media-single/MediaBadges.js +2 -0
- package/dist/es2019/media-single/utils.js +5 -0
- package/dist/es2019/monitoring/environment.js +6 -1
- package/dist/es2019/monitoring/error.js +19 -3
- package/dist/es2019/node-width/index.js +6 -1
- package/dist/es2019/normalize-feature-flags.js +4 -1
- package/dist/es2019/paste/clipboard.js +2 -0
- package/dist/es2019/paste/md-plugins/ignore-list-heading-md-plugin.js +5 -0
- package/dist/es2019/paste/md-plugins/linkify-md-plugin.js +20 -0
- package/dist/es2019/paste/md-plugins/newline-md-plugin.js +5 -0
- package/dist/es2019/paste/md-plugins/paragraph-md-plugin.js +5 -0
- package/dist/es2019/portal/common.js +4 -1
- package/dist/es2019/preset/builder.js +8 -0
- package/dist/es2019/preset/core-plugin/index.js +5 -0
- package/dist/es2019/preset/core-plugin/requestDocument.js +3 -0
- package/dist/es2019/preset/plugin-injection-api.js +62 -6
- package/dist/es2019/provider-factory/provider-factory.js +8 -1
- package/dist/es2019/provider-factory/with-providers.js +12 -0
- package/dist/es2019/provider-helpers/combine-providers.js +7 -0
- package/dist/es2019/provider-helpers/promise-helpers.js +3 -0
- package/dist/es2019/quick-insert/assets/index.js +2 -0
- package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +4 -0
- package/dist/es2019/react-node-view/index.js +32 -2
- package/dist/es2019/resizer/BreakoutResizer.js +1 -7
- package/dist/es2019/resizer/Resizer.js +10 -2
- package/dist/es2019/safe-plugin/index.js +3 -0
- package/dist/es2019/selection/gap-cursor/actions.js +11 -2
- package/dist/es2019/selection/gap-cursor/selection.js +8 -0
- package/dist/es2019/selection/index.js +2 -0
- package/dist/es2019/selection-based-node-view/SelectionBasedNodeView.js +10 -1
- package/dist/es2019/styles/shared/lists.js +4 -1
- package/dist/es2019/transforms/code-block.js +6 -0
- package/dist/es2019/transforms/extension.js +14 -2
- package/dist/es2019/transforms/layout.js +6 -0
- package/dist/es2019/types/annotation/emitter.js +4 -0
- package/dist/es2019/types/index.js +3 -1
- package/dist/es2019/ui/Caption/index.js +4 -0
- package/dist/es2019/ui/ContextPanel/context.js +4 -0
- package/dist/es2019/ui/DropList/index.js +12 -2
- package/dist/es2019/ui/Emoji/index.js +2 -0
- package/dist/es2019/ui/ErrorBoundary/index.js +2 -0
- package/dist/es2019/ui/Expand/index.js +13 -6
- package/dist/es2019/ui/FloatingToolbar/Button.js +2 -0
- package/dist/es2019/ui/FloatingToolbar/ButtonSpotlightCard.js +4 -1
- package/dist/es2019/ui/FloatingToolbar/styles.js +3 -0
- package/dist/es2019/ui/IntlErrorBoundary/index.js +3 -0
- package/dist/es2019/ui/Layer/index.js +8 -0
- package/dist/es2019/ui/MediaSingle/grid.js +12 -2
- package/dist/es2019/ui/MediaSingle/index.js +2 -0
- package/dist/es2019/ui/MediaSingle/styled.js +6 -0
- package/dist/es2019/ui/Mention/mention-with-profilecard.js +4 -1
- package/dist/es2019/ui/Mention/mention-with-providers.js +18 -2
- package/dist/es2019/ui/OverflowShadow/index.js +19 -5
- package/dist/es2019/ui/OverflowShadow/shadowObserver.js +12 -2
- package/dist/es2019/ui/PanelTextInput/index.js +14 -0
- package/dist/es2019/ui/Popup/index.js +21 -1
- package/dist/es2019/ui/Popup/utils.js +19 -0
- package/dist/es2019/ui/ResizerLegacy/index.js +7 -0
- package/dist/es2019/ui/unsupported-content-helper.js +6 -1
- package/dist/es2019/ui/with-outer-listeners.js +12 -1
- package/dist/es2019/ui-color/ColorPalette/utils.js +2 -0
- package/dist/es2019/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +9 -0
- package/dist/es2019/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +12 -0
- package/dist/es2019/ui-menu/ArrowKeyNavigationProvider/index.js +4 -0
- package/dist/es2019/ui-menu/Dropdown/index.js +9 -2
- package/dist/es2019/ui-menu/DropdownContainer/index.js +4 -1
- package/dist/es2019/ui-menu/DropdownMenu/index.js +20 -3
- package/dist/es2019/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +17 -0
- package/dist/es2019/ui-menu/ToolbarButton/styles.js +2 -0
- package/dist/es2019/ui-react/with-react-editor-view-outer-listeners.js +27 -4
- package/dist/es2019/utils/breakout.js +4 -0
- package/dist/es2019/utils/browser-extensions.js +4 -0
- package/dist/es2019/utils/browser.js +47 -5
- package/dist/es2019/utils/commands.js +4 -1
- package/dist/es2019/utils/compare-props.js +4 -1
- package/dist/es2019/utils/compareNodes.js +7 -0
- package/dist/es2019/utils/compose.js +2 -0
- package/dist/es2019/utils/create-wrap-selection-transaction.js +9 -1
- package/dist/es2019/utils/dom.js +2 -0
- package/dist/es2019/utils/editor-core-utils.js +5 -0
- package/dist/es2019/utils/filter/privacy-filter.js +2 -0
- package/dist/es2019/utils/get-performance-options.js +2 -0
- package/dist/es2019/utils/hyperlink.js +16 -0
- package/dist/es2019/utils/imageLoader.js +23 -0
- package/dist/es2019/utils/index.js +11 -0
- package/dist/es2019/utils/input-rules.js +4 -1
- package/dist/es2019/utils/macro.js +2 -0
- package/dist/es2019/utils/nodes.js +6 -1
- package/dist/es2019/utils/outdated-browsers.js +21 -1
- package/dist/es2019/utils/performance/is-performance-api-available.js +4 -1
- package/dist/es2019/utils/performance/measure-render.js +6 -1
- package/dist/es2019/utils/performance/measure-tti.js +6 -0
- package/dist/es2019/utils/plugin-state-factory.js +4 -0
- package/dist/es2019/utils/processRawValue.js +13 -1
- package/dist/es2019/utils/prosemirror/autojoin.js +2 -0
- package/dist/es2019/utils/referentiality.js +5 -0
- package/dist/es2019/utils/rich-media-utils.js +4 -1
- package/dist/es2019/utils/should-auto-linkify-tld.js +5 -0
- package/dist/es2019/utils/should-force-tracking.js +2 -0
- package/dist/es2019/utils/slice.js +2 -0
- package/dist/es2019/utils/track-unsupported-content.js +19 -3
- package/dist/es2019/utils/traversor.js +7 -0
- package/dist/es2019/utils/validate-using-spec.js +13 -1
- package/dist/es2019/utils/validator.js +19 -0
- package/dist/es2019/utils/withFeatureFlaggedComponent.js +4 -0
- package/dist/es2019/with-plugin-state/index.js +77 -3
- package/dist/esm/analytics/analytics-queue.js +8 -0
- package/dist/esm/analytics/linking-utils.js +2 -0
- package/dist/esm/card/LinkToolbarButtonGroup.js +2 -0
- package/dist/esm/card/MediaAndEmbedsToolbar/index.js +15 -3
- package/dist/esm/card/ui/assets/card.js +4 -0
- package/dist/esm/card/ui/assets/embed.js +4 -0
- package/dist/esm/card/ui/assets/inline.js +4 -0
- package/dist/esm/card/ui/assets/url.js +4 -0
- package/dist/esm/clipboard/index.js +11 -1
- package/dist/esm/collab/index.js +2 -0
- package/dist/esm/commands/index.js +50 -42
- package/dist/esm/commands/insert-block.js +10 -2
- package/dist/esm/core-utils/document-logger.js +4 -0
- package/dist/esm/doc-utils/editor-use-only.js +8 -3
- package/dist/esm/element-browser/ElementBrowser.js +2 -0
- package/dist/esm/element-browser/ViewMore.js +8 -2
- package/dist/esm/element-browser/components/CategoryList.js +2 -0
- package/dist/esm/element-browser/components/ElementList/ElementList.js +12 -0
- package/dist/esm/element-browser/components/StatelessElementBrowser.js +8 -2
- package/dist/esm/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +13 -2
- package/dist/esm/event-dispatcher/index.js +8 -0
- package/dist/esm/extensibility/Extension/Extension/index.js +2 -0
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +10 -2
- package/dist/esm/extensibility/Extension/Lozenge/index.js +3 -1
- package/dist/esm/extensibility/Extension.js +2 -0
- package/dist/esm/extensibility/ExtensionComponent.js +17 -2
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +4 -0
- package/dist/esm/extensibility/extensionNodeView.js +3 -0
- package/dist/esm/extensions/extension-fields-helpers.js +4 -1
- package/dist/esm/extensions/extension-handlers.js +4 -0
- package/dist/esm/extensions/module-helpers.js +15 -5
- package/dist/esm/extensions/types/field-definitions.js +5 -0
- package/dist/esm/floating-toolbar/index.js +18 -2
- package/dist/esm/guideline/dynamicGuideline.js +4 -1
- package/dist/esm/guideline/relativeGuideline.js +12 -3
- package/dist/esm/guideline/updateGuideline.js +4 -1
- package/dist/esm/hooks/usePluginStateEffect.js +4 -0
- package/dist/esm/hooks/useSharedPluginState.js +4 -0
- package/dist/esm/hooks/useSharedPluginStateSelector/useSharedPluginStateSelector.js +3 -0
- package/dist/esm/icons/shared/BorderIcon.js +4 -0
- package/dist/esm/icons/shared/PanelErrorIcon.js +4 -0
- package/dist/esm/icons/shared/PanelInfoIcon.js +4 -0
- package/dist/esm/icons/shared/PanelNoteIcon.js +4 -0
- package/dist/esm/icons/shared/PanelSuccessIcon.js +4 -0
- package/dist/esm/icons/shared/PanelWarningIcon.js +4 -0
- package/dist/esm/insert/index.js +6 -1
- package/dist/esm/keymaps/index.js +48 -5
- package/dist/esm/keymaps/keymap.js +4 -0
- package/dist/esm/lazy-node-view/css-helper.js +4 -0
- package/dist/esm/lazy-node-view/index.js +6 -1
- package/dist/esm/lazy-node-view/node-view.js +2 -0
- package/dist/esm/link/ConfigureLinkOverlay/Dropdown.js +2 -0
- package/dist/esm/link/ConfigureLinkOverlay/StyledButton.js +4 -1
- package/dist/esm/link/LinkPicker/EditorLinkPicker/index.js +4 -1
- package/dist/esm/link/LinkPicker/EditorLinkPicker/useEscapeClickaway.js +9 -0
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +16 -1
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/index.js +2 -0
- package/dist/esm/link/LinkSearch/LinkSearchList.js +2 -0
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +2 -0
- package/dist/esm/link/LinkSearch/index.js +9 -1
- package/dist/esm/link/LinkSearch/withActivityProvider.js +3 -0
- package/dist/esm/lists/analytics.js +2 -0
- package/dist/esm/mark/commands.js +24 -3
- package/dist/esm/media-inline/inline-image-card.js +4 -2
- package/dist/esm/media-inline/inline-image-wrapper.js +2 -0
- package/dist/esm/media-single/MediaBadges.js +2 -0
- package/dist/esm/media-single/utils.js +5 -0
- package/dist/esm/monitoring/environment.js +6 -1
- package/dist/esm/monitoring/error.js +19 -3
- package/dist/esm/node-width/index.js +6 -1
- package/dist/esm/normalize-feature-flags.js +4 -1
- package/dist/esm/paste/clipboard.js +2 -0
- package/dist/esm/paste/md-plugins/ignore-list-heading-md-plugin.js +5 -0
- package/dist/esm/paste/md-plugins/linkify-md-plugin.js +20 -0
- package/dist/esm/paste/md-plugins/newline-md-plugin.js +5 -0
- package/dist/esm/paste/md-plugins/paragraph-md-plugin.js +5 -0
- package/dist/esm/portal/common.js +4 -1
- package/dist/esm/preset/builder.js +8 -0
- package/dist/esm/preset/core-plugin/index.js +5 -0
- package/dist/esm/preset/core-plugin/requestDocument.js +3 -0
- package/dist/esm/preset/plugin-injection-api.js +62 -6
- package/dist/esm/provider-factory/provider-factory.js +8 -1
- package/dist/esm/provider-factory/with-providers.js +12 -0
- package/dist/esm/provider-helpers/combine-providers.js +7 -0
- package/dist/esm/provider-helpers/promise-helpers.js +3 -0
- package/dist/esm/quick-insert/assets/index.js +2 -0
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +4 -0
- package/dist/esm/react-node-view/index.js +33 -2
- package/dist/esm/resizer/BreakoutResizer.js +1 -7
- package/dist/esm/resizer/Resizer.js +10 -2
- package/dist/esm/safe-plugin/index.js +3 -0
- package/dist/esm/selection/gap-cursor/actions.js +11 -2
- package/dist/esm/selection/gap-cursor/selection.js +8 -0
- package/dist/esm/selection/index.js +2 -0
- package/dist/esm/selection-based-node-view/SelectionBasedNodeView.js +10 -1
- package/dist/esm/styles/shared/lists.js +4 -1
- package/dist/esm/transforms/code-block.js +6 -0
- package/dist/esm/transforms/extension.js +14 -2
- package/dist/esm/transforms/layout.js +6 -0
- package/dist/esm/types/annotation/emitter.js +8 -2
- package/dist/esm/types/index.js +3 -1
- package/dist/esm/ui/Caption/index.js +4 -0
- package/dist/esm/ui/ContextPanel/context.js +4 -0
- package/dist/esm/ui/DropList/index.js +11 -1
- package/dist/esm/ui/Emoji/index.js +2 -0
- package/dist/esm/ui/ErrorBoundary/index.js +2 -0
- package/dist/esm/ui/Expand/index.js +13 -6
- package/dist/esm/ui/FloatingToolbar/Button.js +2 -0
- package/dist/esm/ui/FloatingToolbar/ButtonSpotlightCard.js +4 -1
- package/dist/esm/ui/FloatingToolbar/styles.js +3 -0
- package/dist/esm/ui/IntlErrorBoundary/index.js +3 -0
- package/dist/esm/ui/Layer/index.js +8 -0
- package/dist/esm/ui/MediaSingle/grid.js +12 -2
- package/dist/esm/ui/MediaSingle/index.js +2 -0
- package/dist/esm/ui/MediaSingle/styled.js +6 -0
- package/dist/esm/ui/Mention/mention-with-profilecard.js +4 -1
- package/dist/esm/ui/Mention/mention-with-providers.js +20 -3
- package/dist/esm/ui/OverflowShadow/index.js +18 -4
- package/dist/esm/ui/OverflowShadow/shadowObserver.js +12 -2
- package/dist/esm/ui/PanelTextInput/index.js +16 -1
- package/dist/esm/ui/Popup/index.js +23 -2
- package/dist/esm/ui/Popup/utils.js +19 -0
- package/dist/esm/ui/ResizerLegacy/index.js +7 -0
- package/dist/esm/ui/unsupported-content-helper.js +6 -1
- package/dist/esm/ui/with-outer-listeners.js +12 -1
- package/dist/esm/ui-color/ColorPalette/utils.js +2 -0
- package/dist/esm/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +9 -0
- package/dist/esm/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +12 -0
- package/dist/esm/ui-menu/ArrowKeyNavigationProvider/index.js +4 -0
- package/dist/esm/ui-menu/Dropdown/index.js +9 -2
- package/dist/esm/ui-menu/DropdownContainer/index.js +4 -1
- package/dist/esm/ui-menu/DropdownMenu/index.js +20 -3
- package/dist/esm/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +17 -0
- package/dist/esm/ui-menu/ToolbarButton/styles.js +2 -0
- package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +29 -4
- package/dist/esm/utils/breakout.js +4 -0
- package/dist/esm/utils/browser-extensions.js +4 -0
- package/dist/esm/utils/browser.js +47 -5
- package/dist/esm/utils/commands.js +4 -1
- package/dist/esm/utils/compareNodes.js +7 -0
- package/dist/esm/utils/compose.js +2 -0
- package/dist/esm/utils/create-wrap-selection-transaction.js +9 -1
- package/dist/esm/utils/dom.js +2 -0
- package/dist/esm/utils/editor-core-utils.js +5 -0
- package/dist/esm/utils/filter/privacy-filter.js +2 -0
- package/dist/esm/utils/get-performance-options.js +2 -0
- package/dist/esm/utils/hyperlink.js +16 -0
- package/dist/esm/utils/imageLoader.js +23 -0
- package/dist/esm/utils/index.js +11 -0
- package/dist/esm/utils/input-rules.js +4 -1
- package/dist/esm/utils/macro.js +2 -0
- package/dist/esm/utils/nodes.js +6 -1
- package/dist/esm/utils/outdated-browsers.js +21 -1
- package/dist/esm/utils/performance/is-performance-api-available.js +4 -1
- package/dist/esm/utils/performance/measure-render.js +5 -0
- package/dist/esm/utils/performance/measure-tti.js +6 -0
- package/dist/esm/utils/plugin-state-factory.js +4 -0
- package/dist/esm/utils/processRawValue.js +13 -1
- package/dist/esm/utils/prosemirror/autojoin.js +2 -0
- package/dist/esm/utils/referentiality.js +5 -0
- package/dist/esm/utils/rich-media-utils.js +4 -1
- package/dist/esm/utils/should-auto-linkify-tld.js +5 -0
- package/dist/esm/utils/should-force-tracking.js +2 -0
- package/dist/esm/utils/slice.js +2 -0
- package/dist/esm/utils/track-unsupported-content.js +15 -2
- package/dist/esm/utils/traversor.js +6 -0
- package/dist/esm/utils/validate-using-spec.js +13 -1
- package/dist/esm/utils/validator.js +19 -0
- package/dist/esm/utils/withFeatureFlaggedComponent.js +4 -0
- package/dist/esm/with-plugin-state/index.js +95 -19
- package/dist/types/analytics/types/avatar.d.ts +1 -1
- package/dist/types/analytics/types/toolbar-button.d.ts +1 -1
- package/dist/types/analytics/types/utils.d.ts +2 -2
- package/dist/types/annotation/index.d.ts +1 -1
- package/dist/types/commands/index.d.ts +3 -3
- package/dist/types/guideline/types.d.ts +1 -2
- package/dist/types/hooks/usePluginStateEffect.d.ts +2 -1
- package/dist/types/link/LinkPicker/EditorLinkPicker/index.d.ts +1 -1
- package/dist/types/link/LinkSearch/LinkSearchList.d.ts +1 -1
- package/dist/types/provider-factory/macro-provider.d.ts +1 -1
- package/dist/types/selection/types.d.ts +1 -2
- package/dist/types/types/floating-toolbar.d.ts +16 -16
- package/dist/types/types/hyperlink.d.ts +1 -2
- package/dist/types/ui/Mention/index.d.ts +1 -1
- package/dist/types/ui-react/with-react-editor-view-outer-listeners.d.ts +1 -1
- package/dist/types/utils/imageLoader.d.ts +2 -2
- package/dist/types-ts4.5/analytics/types/avatar.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/toolbar-button.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/utils.d.ts +2 -2
- package/dist/types-ts4.5/annotation/index.d.ts +1 -1
- package/dist/types-ts4.5/commands/index.d.ts +3 -3
- package/dist/types-ts4.5/guideline/types.d.ts +1 -2
- package/dist/types-ts4.5/hooks/usePluginStateEffect.d.ts +2 -1
- package/dist/types-ts4.5/link/LinkPicker/EditorLinkPicker/index.d.ts +1 -1
- package/dist/types-ts4.5/link/LinkSearch/LinkSearchList.d.ts +1 -1
- package/dist/types-ts4.5/provider-factory/macro-provider.d.ts +1 -1
- package/dist/types-ts4.5/selection/types.d.ts +1 -2
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +16 -16
- package/dist/types-ts4.5/types/hyperlink.d.ts +1 -2
- package/dist/types-ts4.5/ui/Mention/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-react/with-react-editor-view-outer-listeners.d.ts +1 -1
- package/dist/types-ts4.5/utils/imageLoader.d.ts +2 -2
- package/package.json +7 -7
- package/tsconfig.json +0 -1
|
@@ -12,6 +12,9 @@ var markFullfilled = function markFullfilled(value) {
|
|
|
12
12
|
value: value
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
+
|
|
16
|
+
// Ignored via go/ees005
|
|
17
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
18
|
var markRejected = function markRejected(error) {
|
|
16
19
|
return {
|
|
17
20
|
status: ResultStatus.FAILED,
|
|
@@ -272,6 +272,8 @@ export var IconHeading = function IconHeading(_ref) {
|
|
|
272
272
|
return null;
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
|
+
// Ignored via go/ees005
|
|
276
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
275
277
|
return /*#__PURE__*/React.createElement(Icon, props);
|
|
276
278
|
};
|
|
277
279
|
export var IconFeedback = Loadable({
|
|
@@ -178,9 +178,13 @@ function getPortalChildren(_ref2) {
|
|
|
178
178
|
}), ZERO_WIDTH_SPACE), jsx(Component, _extends({
|
|
179
179
|
view: nodeViewParams.view
|
|
180
180
|
// TODO: ED-13910 - Remove the boolean to fix the prosemirror view type
|
|
181
|
+
// Ignored via go/ees005
|
|
182
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
181
183
|
,
|
|
182
184
|
getPos: nodeViewParams.getPos,
|
|
183
185
|
node: currentNode
|
|
186
|
+
// Ignored via go/ees005
|
|
187
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
184
188
|
}, extraComponentProps)), browser.android ?
|
|
185
189
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
186
190
|
jsx("span", {
|
|
@@ -14,9 +14,16 @@ import { analyticsEventKey } from '../utils/analytics';
|
|
|
14
14
|
import { generateUniqueNodeKey } from './generateUniqueNodeKey';
|
|
15
15
|
export { getInlineNodeViewProducer, inlineNodeViewClassname } from './getInlineNodeViewProducer';
|
|
16
16
|
var ReactNodeView = /*#__PURE__*/function () {
|
|
17
|
-
|
|
17
|
+
// Ignored via go/ees005
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
19
|
+
function ReactNodeView(_node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps,
|
|
20
|
+
// Ignored via go/ees005
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
22
|
+
reactComponent, viewShouldUpdate) {
|
|
18
23
|
var _this = this;
|
|
19
24
|
_classCallCheck(this, ReactNodeView);
|
|
25
|
+
// Ignored via go/ees005
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
20
27
|
_defineProperty(this, "decorations", []);
|
|
21
28
|
_defineProperty(this, "handleRef", function (node) {
|
|
22
29
|
return _this._handleRef(node);
|
|
@@ -90,6 +97,9 @@ var ReactNodeView = /*#__PURE__*/function () {
|
|
|
90
97
|
});
|
|
91
98
|
return this;
|
|
92
99
|
}
|
|
100
|
+
|
|
101
|
+
// Ignored via go/ees005
|
|
102
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
93
103
|
}, {
|
|
94
104
|
key: "renderReactComponent",
|
|
95
105
|
value: function renderReactComponent(component) {
|
|
@@ -105,6 +115,9 @@ var ReactNodeView = /*#__PURE__*/function () {
|
|
|
105
115
|
dispatchAnalyticsEvent: _this3.dispatchAnalyticsEvent
|
|
106
116
|
}, component());
|
|
107
117
|
};
|
|
118
|
+
|
|
119
|
+
// Ignored via go/ees005
|
|
120
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
108
121
|
this.portalProviderAPI.render(componentWithErrorBoundary, this.domRef, this.key);
|
|
109
122
|
}
|
|
110
123
|
}, {
|
|
@@ -127,6 +140,8 @@ var ReactNodeView = /*#__PURE__*/function () {
|
|
|
127
140
|
var _this4 = this;
|
|
128
141
|
var contentDOM = this.contentDOMWrapper || this.contentDOM;
|
|
129
142
|
// @ts-ignore
|
|
143
|
+
// Ignored via go/ees005
|
|
144
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
130
145
|
var oldIgnoreMutation;
|
|
131
146
|
var selectionBookmark;
|
|
132
147
|
var parentOffset = 0;
|
|
@@ -174,6 +189,9 @@ var ReactNodeView = /*#__PURE__*/function () {
|
|
|
174
189
|
});
|
|
175
190
|
}
|
|
176
191
|
}
|
|
192
|
+
|
|
193
|
+
// Ignored via go/ees005
|
|
194
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
177
195
|
}, {
|
|
178
196
|
key: "render",
|
|
179
197
|
value: function render(props, forwardRef) {
|
|
@@ -182,8 +200,13 @@ var ReactNodeView = /*#__PURE__*/function () {
|
|
|
182
200
|
getPos: this.getPos,
|
|
183
201
|
node: this.node,
|
|
184
202
|
forwardRef: forwardRef
|
|
203
|
+
// Ignored via go/ees005
|
|
204
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
185
205
|
}, props)) : null;
|
|
186
206
|
}
|
|
207
|
+
|
|
208
|
+
// Ignored via go/ees005
|
|
209
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
187
210
|
}, {
|
|
188
211
|
key: "update",
|
|
189
212
|
value: function update(node, decorations, _innerDecorations) {
|
|
@@ -237,6 +260,8 @@ var ReactNodeView = /*#__PURE__*/function () {
|
|
|
237
260
|
}, {
|
|
238
261
|
key: "dom",
|
|
239
262
|
get: function get() {
|
|
263
|
+
// Ignored via go/ees005
|
|
264
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
240
265
|
return this.domRef;
|
|
241
266
|
}
|
|
242
267
|
}, {
|
|
@@ -251,7 +276,13 @@ var ReactNodeView = /*#__PURE__*/function () {
|
|
|
251
276
|
}
|
|
252
277
|
}], [{
|
|
253
278
|
key: "fromComponent",
|
|
254
|
-
value:
|
|
279
|
+
value:
|
|
280
|
+
// Ignored via go/ees005
|
|
281
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
282
|
+
function fromComponent(
|
|
283
|
+
// Ignored via go/ees005
|
|
284
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
285
|
+
component, portalProviderAPI, eventDispatcher, props, viewShouldUpdate) {
|
|
255
286
|
return function (node, view, getPos) {
|
|
256
287
|
return new ReactNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, props, component, viewShouldUpdate).init();
|
|
257
288
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
import React, { useCallback,
|
|
2
|
+
import React, { useCallback, useMemo, useRef, useState, useLayoutEffect } from 'react';
|
|
3
3
|
import { bind, bindAll } from 'bind-event-listener';
|
|
4
4
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic } from '@atlaskit/editor-shared-styles';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -264,12 +264,6 @@ var BreakoutResizer = function BreakoutResizer(_ref) {
|
|
|
264
264
|
};
|
|
265
265
|
}
|
|
266
266
|
}, [editorView, resizerGlobalKeyDownHandler, resizeHandleKeyDownHandler, resizeHandleKeyUpHandler]);
|
|
267
|
-
useEffect(function () {
|
|
268
|
-
// clean up gap cursor if node was unmounting when resizing (e.g. during collab)
|
|
269
|
-
return function () {
|
|
270
|
-
displayGapCursor(true);
|
|
271
|
-
};
|
|
272
|
-
}, [displayGapCursor]);
|
|
273
267
|
if (disabled) {
|
|
274
268
|
return /*#__PURE__*/React.createElement("div", {
|
|
275
269
|
"data-testid": "breakout-resizer-editor-view-wrapper",
|
|
@@ -68,7 +68,10 @@ var ResizerNext = function ResizerNext(props, ref) {
|
|
|
68
68
|
setIsResizing(true);
|
|
69
69
|
handleResizeStart();
|
|
70
70
|
}, [handleResizeStart]);
|
|
71
|
-
var onResize = useCallback(function (_event, _direction, _elementRef, delta
|
|
71
|
+
var onResize = useCallback(function (_event, _direction, _elementRef, delta
|
|
72
|
+
// Ignored via go/ees005
|
|
73
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
74
|
+
) {
|
|
72
75
|
if (!handleResize) {
|
|
73
76
|
return;
|
|
74
77
|
}
|
|
@@ -84,7 +87,10 @@ var ResizerNext = function ResizerNext(props, ref) {
|
|
|
84
87
|
};
|
|
85
88
|
handleResize(originalState, delta);
|
|
86
89
|
}, [handleResize]);
|
|
87
|
-
var onResizeStop = useCallback(function (_event, _direction, _elementRef, delta
|
|
90
|
+
var onResizeStop = useCallback(function (_event, _direction, _elementRef, delta
|
|
91
|
+
// Ignored via go/ees005
|
|
92
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
93
|
+
) {
|
|
88
94
|
var resizableCurrent = resizable.current;
|
|
89
95
|
if (!resizableCurrent || !resizableCurrent.state.original) {
|
|
90
96
|
return;
|
|
@@ -192,6 +198,8 @@ var ResizerNext = function ResizerNext(props, ref) {
|
|
|
192
198
|
snapGap: snapGapActual,
|
|
193
199
|
snap: snap,
|
|
194
200
|
handleComponent: handleComponent
|
|
201
|
+
// Ignored via go/ees005
|
|
202
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
195
203
|
}, otherProps), /*#__PURE__*/React.createElement("span", {
|
|
196
204
|
className: resizerZoneClassName,
|
|
197
205
|
ref: function ref(_ref) {
|
|
@@ -77,6 +77,9 @@ var wrapGetPosExceptions = function wrapGetPosExceptions(spec) {
|
|
|
77
77
|
spec.props.nodeViews = safeNodeViews;
|
|
78
78
|
return spec;
|
|
79
79
|
};
|
|
80
|
+
|
|
81
|
+
// Ignored via go/ees005
|
|
82
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
80
83
|
export var SafePlugin = /*#__PURE__*/function (_Plugin) {
|
|
81
84
|
// This variable isn't (and shouldn't) be used anywhere. Its purpose is
|
|
82
85
|
// to distinguish Plugin from SafePlugin, thus ensuring that an 'unsafe'
|
|
@@ -4,7 +4,10 @@ import { isValidTargetNode } from './utils/is-valid-target-node';
|
|
|
4
4
|
|
|
5
5
|
// This function captures clicks outside of the ProseMirror contentEditable area
|
|
6
6
|
// see also description of "handleClick" in gap-cursor pm-plugin
|
|
7
|
-
var captureCursorCoords = function captureCursorCoords(event, editorRef, posAtCoords, tr
|
|
7
|
+
var captureCursorCoords = function captureCursorCoords(event, editorRef, posAtCoords, tr
|
|
8
|
+
// Ignored via go/ees005
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
10
|
+
) {
|
|
8
11
|
var rect = editorRef.getBoundingClientRect();
|
|
9
12
|
|
|
10
13
|
// capture clicks before the first block element
|
|
@@ -41,11 +44,17 @@ var captureCursorCoords = function captureCursorCoords(event, editorRef, posAtCo
|
|
|
41
44
|
}
|
|
42
45
|
return null;
|
|
43
46
|
};
|
|
44
|
-
export var setSelectionTopLevelBlocks = function setSelectionTopLevelBlocks(tr, event, editorRef, posAtCoords, editorFocused
|
|
47
|
+
export var setSelectionTopLevelBlocks = function setSelectionTopLevelBlocks(tr, event, editorRef, posAtCoords, editorFocused
|
|
48
|
+
// Ignored via go/ees005
|
|
49
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
50
|
+
) {
|
|
45
51
|
var cursorCoords = captureCursorCoords(event, editorRef, posAtCoords, tr);
|
|
46
52
|
if (!cursorCoords) {
|
|
47
53
|
return;
|
|
48
54
|
}
|
|
55
|
+
|
|
56
|
+
// Ignored via go/ees005
|
|
57
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
49
58
|
var $pos = cursorCoords.position !== undefined ? tr.doc.resolve(cursorCoords.position) : null;
|
|
50
59
|
if ($pos === null) {
|
|
51
60
|
return;
|
|
@@ -71,6 +71,9 @@ export var GapCursorSelection = /*#__PURE__*/function (_Selection) {
|
|
|
71
71
|
if (!targetNode || parent.isTextblock) {
|
|
72
72
|
return false;
|
|
73
73
|
}
|
|
74
|
+
|
|
75
|
+
// Ignored via go/ees005
|
|
76
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
74
77
|
var deflt = parent.contentMatchAt($pos.index()).defaultType;
|
|
75
78
|
return deflt && deflt.isTextblock;
|
|
76
79
|
}
|
|
@@ -85,6 +88,8 @@ export var GapCursorSelection = /*#__PURE__*/function (_Selection) {
|
|
|
85
88
|
var pos = $pos.pos;
|
|
86
89
|
|
|
87
90
|
// TODO: Fix any, potential issue. ED-5048
|
|
91
|
+
// Ignored via go/ees005
|
|
92
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
88
93
|
var next = null;
|
|
89
94
|
|
|
90
95
|
// Scan up from this position
|
|
@@ -130,6 +135,9 @@ export var GapBookmark = /*#__PURE__*/function () {
|
|
|
130
135
|
_classCallCheck(this, GapBookmark);
|
|
131
136
|
this.pos = pos;
|
|
132
137
|
}
|
|
138
|
+
|
|
139
|
+
// Ignored via go/ees005
|
|
140
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
133
141
|
return _createClass(GapBookmark, [{
|
|
134
142
|
key: "map",
|
|
135
143
|
value: function map(mapping) {
|
|
@@ -101,6 +101,8 @@ export var selectNode = function selectNode(pos) {
|
|
|
101
101
|
};
|
|
102
102
|
};
|
|
103
103
|
export function createSelectionClickHandler(nodes, isValidTarget, options) {
|
|
104
|
+
// Ignored via go/ees005
|
|
105
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
104
106
|
return function handleClickOn(view, pos, node, nodePos, event, direct) {
|
|
105
107
|
if (options.useLongPressSelection) {
|
|
106
108
|
return false;
|
|
@@ -33,11 +33,18 @@ import ReactNodeView from '../react-node-view';
|
|
|
33
33
|
*/
|
|
34
34
|
|
|
35
35
|
export var SelectionBasedNodeView = /*#__PURE__*/function (_ReactNodeView) {
|
|
36
|
-
|
|
36
|
+
// Ignored via go/ees005
|
|
37
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
38
|
+
function SelectionBasedNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps,
|
|
39
|
+
// Ignored via go/ees005
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
41
|
+
reactComponent, viewShouldUpdate) {
|
|
37
42
|
var _this;
|
|
38
43
|
_classCallCheck(this, SelectionBasedNodeView);
|
|
39
44
|
_this = _callSuper(this, SelectionBasedNodeView, [node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate]);
|
|
40
45
|
_defineProperty(_this, "isSelectedNode", false);
|
|
46
|
+
// Ignored via go/ees005
|
|
47
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
41
48
|
_defineProperty(_this, "isNodeInsideSelection", function (from, to, pos, posEnd) {
|
|
42
49
|
var _this$getPositionsWit = _this.getPositionsWithDefault(pos, posEnd);
|
|
43
50
|
pos = _this$getPositionsWit.pos;
|
|
@@ -47,6 +54,8 @@ export var SelectionBasedNodeView = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
47
54
|
}
|
|
48
55
|
return from <= pos && to >= posEnd;
|
|
49
56
|
});
|
|
57
|
+
// Ignored via go/ees005
|
|
58
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
50
59
|
_defineProperty(_this, "isSelectionInsideNode", function (from, to, pos, posEnd) {
|
|
51
60
|
var _this$getPositionsWit2 = _this.getPositionsWithDefault(pos, posEnd);
|
|
52
61
|
pos = _this$getPositionsWit2.pos;
|
|
@@ -36,7 +36,10 @@ var stringifyStyle = function stringifyStyle(style) {
|
|
|
36
36
|
return "".concat(str).concat(key, ":").concat(value, ";");
|
|
37
37
|
}, "");
|
|
38
38
|
};
|
|
39
|
-
export function getOrderedListInlineStyles(itemCounterDigitsSize, styleFormat
|
|
39
|
+
export function getOrderedListInlineStyles(itemCounterDigitsSize, styleFormat
|
|
40
|
+
// Ignored via go/ees005
|
|
41
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
42
|
+
) {
|
|
40
43
|
var style = _defineProperty({}, CSS_VAR_NAMES.ITEM_COUNTER_PADDING, getItemCounterLeftPadding(itemCounterDigitsSize));
|
|
41
44
|
if (styleFormat === 'string') {
|
|
42
45
|
return stringifyStyle(style);
|
|
@@ -2,6 +2,10 @@ import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
|
2
2
|
import { findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
3
3
|
import { mapSlice } from '../utils/slice';
|
|
4
4
|
function joinCodeBlocks(left, right) {
|
|
5
|
+
// Ignored via go/ees005
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
7
|
+
// Ignored via go/ees005
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
5
9
|
var textContext = "".concat(left.textContent, "\n").concat(right.textContent);
|
|
6
10
|
return left.type.create(left.attrs, left.type.schema.text(textContext));
|
|
7
11
|
}
|
|
@@ -11,6 +15,8 @@ function mergeAdjacentCodeBlocks(fragment) {
|
|
|
11
15
|
if (maybeCodeBlock.type === maybeCodeBlock.type.schema.nodes.codeBlock) {
|
|
12
16
|
var peekAtPrevious = children[children.length - 1];
|
|
13
17
|
if (peekAtPrevious && peekAtPrevious.type === maybeCodeBlock.type) {
|
|
18
|
+
// Ignored via go/ees005
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
14
20
|
return children.push(joinCodeBlocks(children.pop(), maybeCodeBlock));
|
|
15
21
|
}
|
|
16
22
|
}
|
|
@@ -20,7 +20,13 @@ export var transformSliceToRemoveOpenBodiedExtension = function transformSliceTo
|
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
// If the first/last child has changed - then we know we've removed a bodied extension & to decrement the open depth
|
|
23
|
-
return new Slice(fragment,
|
|
23
|
+
return new Slice(fragment,
|
|
24
|
+
// Ignored via go/ees005
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
26
|
+
fragment.firstChild && fragment.firstChild.type !== slice.content.firstChild.type ? slice.openStart - 1 : slice.openStart,
|
|
27
|
+
// Ignored via go/ees005
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
29
|
+
fragment.lastChild && fragment.lastChild.type !== slice.content.lastChild.type ? slice.openEnd - 1 : slice.openEnd);
|
|
24
30
|
};
|
|
25
31
|
|
|
26
32
|
/**
|
|
@@ -59,5 +65,11 @@ export var transformSliceToRemoveOpenMultiBodiedExtension = function transformSl
|
|
|
59
65
|
});
|
|
60
66
|
|
|
61
67
|
// If the first/last child has changed - then we know we've removed MBE and extensionFrame and need to decrement the open depth
|
|
62
|
-
return new Slice(fragment,
|
|
68
|
+
return new Slice(fragment,
|
|
69
|
+
// Ignored via go/ees005
|
|
70
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
71
|
+
fragment.firstChild && fragment.firstChild.type !== slice.content.firstChild.type ? slice.openStart - depthToReduce : slice.openStart,
|
|
72
|
+
// Ignored via go/ees005
|
|
73
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
74
|
+
fragment.lastChild && fragment.lastChild.type !== slice.content.lastChild.type ? slice.openEnd - depthToReduce : slice.openEnd);
|
|
63
75
|
};
|
|
@@ -46,6 +46,8 @@ export var transformSingleColumnLayout = function transformSingleColumnLayout(sl
|
|
|
46
46
|
export function transformSliceToRemoveOpenLayoutNodes(slice, schema) {
|
|
47
47
|
// Case 1: A slice entirely within a single layoutSection
|
|
48
48
|
if (slice.openStart && slice.openEnd && slice.content.childCount === 1) {
|
|
49
|
+
// Ignored via go/ees005
|
|
50
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
49
51
|
var maybeLayoutSection = slice.content.firstChild;
|
|
50
52
|
if (maybeLayoutSection.type === schema.nodes.layoutSection) {
|
|
51
53
|
return new Slice(flatmap(slice.content, removeLayoutFromFirstChild),
|
|
@@ -55,11 +57,15 @@ export function transformSliceToRemoveOpenLayoutNodes(slice, schema) {
|
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
// Case 2: A slice starting inside a layoutSection and finishing outside
|
|
60
|
+
// Ignored via go/ees005
|
|
61
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
58
62
|
if (slice.openStart && slice.content.firstChild.type === schema.nodes.layoutSection) {
|
|
59
63
|
slice = new Slice(flatmap(slice.content, removeLayoutFromFirstChild), slice.openStart - 2, slice.openEnd);
|
|
60
64
|
}
|
|
61
65
|
|
|
62
66
|
// Case 3: A slice starting outside a layoutSection and finishing inside
|
|
67
|
+
// Ignored via go/ees005
|
|
68
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
63
69
|
if (slice.openEnd && slice.content.lastChild.type === schema.nodes.layoutSection) {
|
|
64
70
|
slice = new Slice(flatmap(slice.content, removeLayoutFromLastChild), slice.openStart, slice.openEnd - 2);
|
|
65
71
|
}
|
|
@@ -27,12 +27,18 @@ export var AnnotationUpdateEmitter = /*#__PURE__*/function () {
|
|
|
27
27
|
}
|
|
28
28
|
}, {
|
|
29
29
|
key: "on",
|
|
30
|
-
value:
|
|
30
|
+
value:
|
|
31
|
+
// Ignored via go/ees005
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
33
|
+
function on(event, listener) {
|
|
31
34
|
return this.emitter.on(event, listener);
|
|
32
35
|
}
|
|
33
36
|
}, {
|
|
34
37
|
key: "off",
|
|
35
|
-
value:
|
|
38
|
+
value:
|
|
39
|
+
// Ignored via go/ees005
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
41
|
+
function off(event, listener) {
|
|
36
42
|
return this.emitter.removeListener(event, listener);
|
|
37
43
|
}
|
|
38
44
|
}, {
|
package/dist/esm/types/index.js
CHANGED
|
@@ -20,4 +20,6 @@ export { ToolbarSize, ToolbarWidths, ToolbarWidthsNext, ToolbarWidthsFullPage, T
|
|
|
20
20
|
* @deprecated
|
|
21
21
|
*
|
|
22
22
|
* Please use ExtractPresetAPI from "@atlaskit/editor-common/preset" instead.
|
|
23
|
-
*/
|
|
23
|
+
*/
|
|
24
|
+
// Ignored via go/ees005
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -29,6 +29,8 @@ var placeholderStyle = xcss({
|
|
|
29
29
|
top: 'space.0',
|
|
30
30
|
width: '100%'
|
|
31
31
|
});
|
|
32
|
+
// Ignored via go/ees005
|
|
33
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
32
34
|
export var CaptionComponent = /*#__PURE__*/function (_React$Component) {
|
|
33
35
|
function CaptionComponent() {
|
|
34
36
|
_classCallCheck(this, CaptionComponent);
|
|
@@ -48,6 +50,8 @@ export var CaptionComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
48
50
|
return jsx("div", _extends({
|
|
49
51
|
"data-media-caption": true,
|
|
50
52
|
"data-testid": "media-caption"
|
|
53
|
+
// Ignored via go/ees005
|
|
54
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
51
55
|
}, dataAttributes, {
|
|
52
56
|
css: captionWrapperStyle
|
|
53
57
|
}), showPlaceholder ? jsx(Box, {
|
|
@@ -29,7 +29,11 @@ export var ContextPanel = /*#__PURE__*/React.createContext({
|
|
|
29
29
|
broadcastWidth: function broadcastWidth() {},
|
|
30
30
|
broadcastPosition: function broadcastPosition() {}
|
|
31
31
|
});
|
|
32
|
+
// Ignored via go/ees005
|
|
33
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components, @typescript-eslint/no-explicit-any
|
|
32
34
|
export var ContextPanelWidthProvider = /*#__PURE__*/function (_React$Component) {
|
|
35
|
+
// Ignored via go/ees005
|
|
36
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
33
37
|
function ContextPanelWidthProvider(props) {
|
|
34
38
|
var _this;
|
|
35
39
|
_classCallCheck(this, ContextPanelWidthProvider);
|
|
@@ -20,9 +20,11 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "97.
|
|
23
|
+
var packageVersion = "97.2.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
|
+
// Ignored via go/ees005
|
|
27
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
26
28
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
27
29
|
function DropList() {
|
|
28
30
|
var _this;
|
|
@@ -66,7 +68,11 @@ var DropList = /*#__PURE__*/function (_Component) {
|
|
|
66
68
|
// We use a captured event here to avoid a radio or checkbox dropdown item firing its
|
|
67
69
|
// click event first, which would cause a re-render of the element and prevent DropList
|
|
68
70
|
// from detecting the actual source of this original click event.
|
|
71
|
+
// Ignored via go/ees005
|
|
72
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
69
73
|
document.addEventListener('click', _this.handleClickOutside, true);
|
|
74
|
+
// Ignored via go/ees005
|
|
75
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
70
76
|
document.addEventListener('keydown', _this.handleEsc);
|
|
71
77
|
});
|
|
72
78
|
_defineProperty(_this, "componentDidUpdate", function () {
|
|
@@ -75,7 +81,11 @@ var DropList = /*#__PURE__*/function (_Component) {
|
|
|
75
81
|
}
|
|
76
82
|
});
|
|
77
83
|
_defineProperty(_this, "componentWillUnmount", function () {
|
|
84
|
+
// Ignored via go/ees005
|
|
85
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
78
86
|
document.removeEventListener('click', _this.handleClickOutside, true);
|
|
87
|
+
// Ignored via go/ees005
|
|
88
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
79
89
|
document.removeEventListener('keydown', _this.handleEsc);
|
|
80
90
|
});
|
|
81
91
|
_defineProperty(_this, "setContentWidth", function () {
|
|
@@ -45,6 +45,8 @@ var EmojiNodeFunctional = function EmojiNodeFunctional(props) {
|
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
47
|
var EmojiNode = function EmojiNode(props) {
|
|
48
|
+
// Ignored via go/ees005
|
|
49
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
48
50
|
return /*#__PURE__*/React.createElement(EmojiNodeFunctional, props);
|
|
49
51
|
};
|
|
50
52
|
export default /*#__PURE__*/React.memo(EmojiNode);
|
|
@@ -9,6 +9,8 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { ACTION, EVENT_TYPE } from '../../analytics';
|
|
11
11
|
import { logException } from '../../monitoring/error';
|
|
12
|
+
// Ignored via go/ees005
|
|
13
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
12
14
|
export var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
13
15
|
function ErrorBoundary() {
|
|
14
16
|
var _this;
|
|
@@ -73,12 +73,19 @@ export var expandLayoutWrapperStyle = css({
|
|
|
73
73
|
width: "var(--ds-space-300, 24px)",
|
|
74
74
|
height: "var(--ds-space-300, 24px)"
|
|
75
75
|
});
|
|
76
|
-
export var ExpandLayoutWrapperWithRef = /*#__PURE__*/forwardRef(
|
|
76
|
+
export var ExpandLayoutWrapperWithRef = /*#__PURE__*/forwardRef(
|
|
77
|
+
// Ignored via go/ees005
|
|
78
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
79
|
+
function (props, ref) {
|
|
77
80
|
var children = props.children,
|
|
78
81
|
rest = _objectWithoutProperties(props, _excluded);
|
|
79
|
-
return
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
return (
|
|
83
|
+
// Ignored via go/ees005
|
|
84
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
85
|
+
jsx("div", _extends({
|
|
86
|
+
css: expandLayoutWrapperStyle
|
|
87
|
+
}, rest, {
|
|
88
|
+
ref: ref
|
|
89
|
+
}), children)
|
|
90
|
+
);
|
|
84
91
|
});
|
|
@@ -125,5 +125,7 @@ export default (function (_ref) {
|
|
|
125
125
|
tabIndex: tabIndex
|
|
126
126
|
}, children)))), (spotlightConfig === null || spotlightConfig === void 0 ? void 0 : spotlightConfig.isSpotlightOpen) && spotlightReferenceElement && /*#__PURE__*/React.createElement(ButtonSpotlightCard, _extends({
|
|
127
127
|
referenceElement: spotlightReferenceElement
|
|
128
|
+
// Ignored via go/ees005
|
|
129
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
128
130
|
}, spotlightConfig.spotlightCardOptions)));
|
|
129
131
|
});
|
|
@@ -26,7 +26,10 @@ export var ButtonSpotlightCard = function ButtonSpotlightCard(props) {
|
|
|
26
26
|
React.createElement("div", {
|
|
27
27
|
ref: ref,
|
|
28
28
|
style: style
|
|
29
|
-
}, /*#__PURE__*/React.createElement(SpotlightCard
|
|
29
|
+
}, /*#__PURE__*/React.createElement(SpotlightCard
|
|
30
|
+
// Ignored via go/ees005
|
|
31
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
32
|
+
, spotlightCardProps))
|
|
30
33
|
);
|
|
31
34
|
});
|
|
32
35
|
};
|
|
@@ -13,6 +13,9 @@ var isMissingIntlProviderInAncestryError = function isMissingIntlProviderInAnces
|
|
|
13
13
|
var _err$toString;
|
|
14
14
|
return err === null || err === void 0 || (_err$toString = err.toString()) === null || _err$toString === void 0 ? void 0 : _err$toString.includes('<IntlProvider> needs to exist in the component ancestry');
|
|
15
15
|
};
|
|
16
|
+
|
|
17
|
+
// Ignored via go/ees005
|
|
18
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
16
19
|
export var IntlErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
17
20
|
function IntlErrorBoundary() {
|
|
18
21
|
var _this;
|
|
@@ -29,6 +29,9 @@ var defaultState = {
|
|
|
29
29
|
originalHeight: null,
|
|
30
30
|
maxHeight: null
|
|
31
31
|
};
|
|
32
|
+
|
|
33
|
+
// Ignored via go/ees005
|
|
34
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
32
35
|
var Layer = /*#__PURE__*/function (_Component) {
|
|
33
36
|
function Layer(props) {
|
|
34
37
|
var _this;
|
|
@@ -64,6 +67,9 @@ var Layer = /*#__PURE__*/function (_Component) {
|
|
|
64
67
|
value: function componentDidMount() {
|
|
65
68
|
this.applyPopper(this.props);
|
|
66
69
|
}
|
|
70
|
+
|
|
71
|
+
// Ignored via go/ees005
|
|
72
|
+
// eslint-disable-next-line react/no-unsafe
|
|
67
73
|
}, {
|
|
68
74
|
key: "UNSAFE_componentWillReceiveProps",
|
|
69
75
|
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
@@ -98,6 +104,8 @@ var Layer = /*#__PURE__*/function (_Component) {
|
|
|
98
104
|
* the bottom of the popper not being viewable.
|
|
99
105
|
* Only works if the popper uses viewport as the boundary and has a fixed position ancestor.
|
|
100
106
|
*/
|
|
107
|
+
// Ignored via go/ees005
|
|
108
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
101
109
|
}, {
|
|
102
110
|
key: "calculateMaxHeight",
|
|
103
111
|
value: function calculateMaxHeight(originalHeight, currentHeight, positionTop, cssPosition) {
|
|
@@ -21,7 +21,10 @@ export function calcPctFromPx(width, lineLength) {
|
|
|
21
21
|
return (width + MEDIA_SINGLE_GUTTER_SIZE) / maxWidth;
|
|
22
22
|
}
|
|
23
23
|
export var wrappedLayouts = ['wrap-left', 'wrap-right', 'align-end', 'align-start'];
|
|
24
|
-
export var calcPctWidth = function calcPctWidth(containerWidth, pctWidth, origWidth, origHeight
|
|
24
|
+
export var calcPctWidth = function calcPctWidth(containerWidth, pctWidth, origWidth, origHeight
|
|
25
|
+
// Ignored via go/ees005
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
27
|
+
) {
|
|
25
28
|
return pctWidth && origWidth && origHeight && Math.ceil(calcPxFromPct(pctWidth / 100, containerWidth.lineLength || containerWidth.width));
|
|
26
29
|
};
|
|
27
30
|
export var calcMediaPxWidth = function calcMediaPxWidth(opts) {
|
|
@@ -43,8 +46,12 @@ export var calcMediaPxWidth = function calcMediaPxWidth(opts) {
|
|
|
43
46
|
} else if (layout === 'full-width') {
|
|
44
47
|
return width - akEditorBreakoutPadding;
|
|
45
48
|
} else if (calculatedPctWidth) {
|
|
49
|
+
// Ignored via go/ees005
|
|
50
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
46
51
|
if (wrappedLayouts.indexOf(layout) > -1) {
|
|
47
52
|
if (calculatedResizedPctWidth) {
|
|
53
|
+
// Ignored via go/ees005
|
|
54
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
48
55
|
if (resizedPctWidth < 50) {
|
|
49
56
|
return calculatedResizedPctWidth;
|
|
50
57
|
}
|
|
@@ -67,7 +74,10 @@ export var calcMediaPxWidth = function calcMediaPxWidth(opts) {
|
|
|
67
74
|
}
|
|
68
75
|
return origWidth;
|
|
69
76
|
};
|
|
70
|
-
export var snapToGrid = function snapToGrid(gridWidth, width, height, lineLength, gridSize
|
|
77
|
+
export var snapToGrid = function snapToGrid(gridWidth, width, height, lineLength, gridSize
|
|
78
|
+
// Ignored via go/ees005
|
|
79
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
80
|
+
) {
|
|
71
81
|
var pxWidth = calcPxFromPct(gridWidth / 100, lineLength);
|
|
72
82
|
var columnSpan = Math.round(calcColumnsFromPx(pxWidth, lineLength, gridSize));
|
|
73
83
|
var alignedWidth = calcPxFromColumns(columnSpan, lineLength, gridSize);
|