@atlaskit/editor-common 97.1.2 → 97.1.3
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 +8 -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-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-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-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 +1 -1
- package/tsconfig.json +0 -1
|
@@ -35,7 +35,11 @@ var ContextPanel = exports.ContextPanel = /*#__PURE__*/_react.default.createCont
|
|
|
35
35
|
broadcastWidth: function broadcastWidth() {},
|
|
36
36
|
broadcastPosition: function broadcastPosition() {}
|
|
37
37
|
});
|
|
38
|
+
// Ignored via go/ees005
|
|
39
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components, @typescript-eslint/no-explicit-any
|
|
38
40
|
var ContextPanelWidthProvider = exports.ContextPanelWidthProvider = /*#__PURE__*/function (_React$Component) {
|
|
41
|
+
// Ignored via go/ees005
|
|
42
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
39
43
|
function ContextPanelWidthProvider(props) {
|
|
40
44
|
var _this;
|
|
41
45
|
(0, _classCallCheck2.default)(this, ContextPanelWidthProvider);
|
|
@@ -23,9 +23,11 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "97.1.
|
|
26
|
+
var packageVersion = "97.1.3";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
|
+
// Ignored via go/ees005
|
|
30
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
29
31
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
30
32
|
function DropList() {
|
|
31
33
|
var _this;
|
|
@@ -69,7 +71,11 @@ var DropList = /*#__PURE__*/function (_Component) {
|
|
|
69
71
|
// We use a captured event here to avoid a radio or checkbox dropdown item firing its
|
|
70
72
|
// click event first, which would cause a re-render of the element and prevent DropList
|
|
71
73
|
// from detecting the actual source of this original click event.
|
|
74
|
+
// Ignored via go/ees005
|
|
75
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
72
76
|
document.addEventListener('click', _this.handleClickOutside, true);
|
|
77
|
+
// Ignored via go/ees005
|
|
78
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
73
79
|
document.addEventListener('keydown', _this.handleEsc);
|
|
74
80
|
});
|
|
75
81
|
(0, _defineProperty2.default)(_this, "componentDidUpdate", function () {
|
|
@@ -78,7 +84,11 @@ var DropList = /*#__PURE__*/function (_Component) {
|
|
|
78
84
|
}
|
|
79
85
|
});
|
|
80
86
|
(0, _defineProperty2.default)(_this, "componentWillUnmount", function () {
|
|
87
|
+
// Ignored via go/ees005
|
|
88
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
81
89
|
document.removeEventListener('click', _this.handleClickOutside, true);
|
|
90
|
+
// Ignored via go/ees005
|
|
91
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
82
92
|
document.removeEventListener('keydown', _this.handleEsc);
|
|
83
93
|
});
|
|
84
94
|
(0, _defineProperty2.default)(_this, "setContentWidth", function () {
|
|
@@ -54,6 +54,8 @@ var EmojiNodeFunctional = function EmojiNodeFunctional(props) {
|
|
|
54
54
|
});
|
|
55
55
|
};
|
|
56
56
|
var EmojiNode = function EmojiNode(props) {
|
|
57
|
+
// Ignored via go/ees005
|
|
58
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
57
59
|
return /*#__PURE__*/_react.default.createElement(EmojiNodeFunctional, props);
|
|
58
60
|
};
|
|
59
61
|
var _default = exports.default = /*#__PURE__*/_react.default.memo(EmojiNode);
|
|
@@ -16,6 +16,8 @@ var _analytics = require("../../analytics");
|
|
|
16
16
|
var _error = require("../../monitoring/error");
|
|
17
17
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
18
18
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
19
|
+
// Ignored via go/ees005
|
|
20
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
19
21
|
var ErrorBoundary = exports.ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
20
22
|
function ErrorBoundary() {
|
|
21
23
|
var _this;
|
|
@@ -81,12 +81,19 @@ var expandLayoutWrapperStyle = exports.expandLayoutWrapperStyle = (0, _react2.cs
|
|
|
81
81
|
width: "var(--ds-space-300, 24px)",
|
|
82
82
|
height: "var(--ds-space-300, 24px)"
|
|
83
83
|
});
|
|
84
|
-
var ExpandLayoutWrapperWithRef = exports.ExpandLayoutWrapperWithRef = /*#__PURE__*/(0, _react.forwardRef)(
|
|
84
|
+
var ExpandLayoutWrapperWithRef = exports.ExpandLayoutWrapperWithRef = /*#__PURE__*/(0, _react.forwardRef)(
|
|
85
|
+
// Ignored via go/ees005
|
|
86
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
87
|
+
function (props, ref) {
|
|
85
88
|
var children = props.children,
|
|
86
89
|
rest = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
87
|
-
return (
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
return (
|
|
91
|
+
// Ignored via go/ees005
|
|
92
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
93
|
+
(0, _react2.jsx)("div", (0, _extends2.default)({
|
|
94
|
+
css: expandLayoutWrapperStyle
|
|
95
|
+
}, rest, {
|
|
96
|
+
ref: ref
|
|
97
|
+
}), children)
|
|
98
|
+
);
|
|
92
99
|
});
|
|
@@ -135,5 +135,7 @@ var _default = exports.default = function _default(_ref) {
|
|
|
135
135
|
tabIndex: tabIndex
|
|
136
136
|
}, children)))), (spotlightConfig === null || spotlightConfig === void 0 ? void 0 : spotlightConfig.isSpotlightOpen) && spotlightReferenceElement && /*#__PURE__*/_react.default.createElement(_ButtonSpotlightCard.ButtonSpotlightCard, (0, _extends2.default)({
|
|
137
137
|
referenceElement: spotlightReferenceElement
|
|
138
|
+
// Ignored via go/ees005
|
|
139
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
138
140
|
}, spotlightConfig.spotlightCardOptions)));
|
|
139
141
|
};
|
|
@@ -33,7 +33,10 @@ var ButtonSpotlightCard = exports.ButtonSpotlightCard = function ButtonSpotlight
|
|
|
33
33
|
_react.default.createElement("div", {
|
|
34
34
|
ref: ref,
|
|
35
35
|
style: style
|
|
36
|
-
}, /*#__PURE__*/_react.default.createElement(_onboarding.SpotlightCard
|
|
36
|
+
}, /*#__PURE__*/_react.default.createElement(_onboarding.SpotlightCard
|
|
37
|
+
// Ignored via go/ees005
|
|
38
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
39
|
+
, spotlightCardProps))
|
|
37
40
|
);
|
|
38
41
|
});
|
|
39
42
|
};
|
|
@@ -56,6 +56,9 @@ var color = {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
+
|
|
60
|
+
// Ignored via go/ees005
|
|
61
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
59
62
|
var getButtonStyles = exports.getButtonStyles = function getButtonStyles(props) {
|
|
60
63
|
return {
|
|
61
64
|
background: getStyles(background, props),
|
|
@@ -20,6 +20,9 @@ var isMissingIntlProviderInAncestryError = function isMissingIntlProviderInAnces
|
|
|
20
20
|
var _err$toString;
|
|
21
21
|
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');
|
|
22
22
|
};
|
|
23
|
+
|
|
24
|
+
// Ignored via go/ees005
|
|
25
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
23
26
|
var IntlErrorBoundary = exports.IntlErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
24
27
|
function IntlErrorBoundary() {
|
|
25
28
|
var _this;
|
|
@@ -39,6 +39,9 @@ var defaultState = {
|
|
|
39
39
|
originalHeight: null,
|
|
40
40
|
maxHeight: null
|
|
41
41
|
};
|
|
42
|
+
|
|
43
|
+
// Ignored via go/ees005
|
|
44
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
42
45
|
var Layer = exports.default = /*#__PURE__*/function (_Component) {
|
|
43
46
|
function Layer(props) {
|
|
44
47
|
var _this;
|
|
@@ -74,6 +77,9 @@ var Layer = exports.default = /*#__PURE__*/function (_Component) {
|
|
|
74
77
|
value: function componentDidMount() {
|
|
75
78
|
this.applyPopper(this.props);
|
|
76
79
|
}
|
|
80
|
+
|
|
81
|
+
// Ignored via go/ees005
|
|
82
|
+
// eslint-disable-next-line react/no-unsafe
|
|
77
83
|
}, {
|
|
78
84
|
key: "UNSAFE_componentWillReceiveProps",
|
|
79
85
|
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
@@ -108,6 +114,8 @@ var Layer = exports.default = /*#__PURE__*/function (_Component) {
|
|
|
108
114
|
* the bottom of the popper not being viewable.
|
|
109
115
|
* Only works if the popper uses viewport as the boundary and has a fixed position ancestor.
|
|
110
116
|
*/
|
|
117
|
+
// Ignored via go/ees005
|
|
118
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
111
119
|
}, {
|
|
112
120
|
key: "calculateMaxHeight",
|
|
113
121
|
value: function calculateMaxHeight(originalHeight, currentHeight, positionTop, cssPosition) {
|
|
@@ -33,7 +33,10 @@ function calcPctFromPx(width, lineLength) {
|
|
|
33
33
|
return (width + _constants.MEDIA_SINGLE_GUTTER_SIZE) / maxWidth;
|
|
34
34
|
}
|
|
35
35
|
var wrappedLayouts = exports.wrappedLayouts = ['wrap-left', 'wrap-right', 'align-end', 'align-start'];
|
|
36
|
-
var calcPctWidth = exports.calcPctWidth = function calcPctWidth(containerWidth, pctWidth, origWidth, origHeight
|
|
36
|
+
var calcPctWidth = exports.calcPctWidth = function calcPctWidth(containerWidth, pctWidth, origWidth, origHeight
|
|
37
|
+
// Ignored via go/ees005
|
|
38
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
39
|
+
) {
|
|
37
40
|
return pctWidth && origWidth && origHeight && Math.ceil(calcPxFromPct(pctWidth / 100, containerWidth.lineLength || containerWidth.width));
|
|
38
41
|
};
|
|
39
42
|
var calcMediaPxWidth = exports.calcMediaPxWidth = function calcMediaPxWidth(opts) {
|
|
@@ -55,8 +58,12 @@ var calcMediaPxWidth = exports.calcMediaPxWidth = function calcMediaPxWidth(opts
|
|
|
55
58
|
} else if (layout === 'full-width') {
|
|
56
59
|
return width - _editorSharedStyles.akEditorBreakoutPadding;
|
|
57
60
|
} else if (calculatedPctWidth) {
|
|
61
|
+
// Ignored via go/ees005
|
|
62
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
58
63
|
if (wrappedLayouts.indexOf(layout) > -1) {
|
|
59
64
|
if (calculatedResizedPctWidth) {
|
|
65
|
+
// Ignored via go/ees005
|
|
66
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
60
67
|
if (resizedPctWidth < 50) {
|
|
61
68
|
return calculatedResizedPctWidth;
|
|
62
69
|
}
|
|
@@ -79,7 +86,10 @@ var calcMediaPxWidth = exports.calcMediaPxWidth = function calcMediaPxWidth(opts
|
|
|
79
86
|
}
|
|
80
87
|
return origWidth;
|
|
81
88
|
};
|
|
82
|
-
var snapToGrid = exports.snapToGrid = function snapToGrid(gridWidth, width, height, lineLength, gridSize
|
|
89
|
+
var snapToGrid = exports.snapToGrid = function snapToGrid(gridWidth, width, height, lineLength, gridSize
|
|
90
|
+
// Ignored via go/ees005
|
|
91
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
92
|
+
) {
|
|
83
93
|
var pxWidth = calcPxFromPct(gridWidth / 100, lineLength);
|
|
84
94
|
var columnSpan = Math.round(calcColumnsFromPx(pxWidth, lineLength, gridSize));
|
|
85
95
|
var alignedWidth = calcPxFromColumns(columnSpan, lineLength, gridSize);
|
|
@@ -117,6 +117,8 @@ function MediaSingle(_ref) {
|
|
|
117
117
|
'is-loading': isLoading,
|
|
118
118
|
'rich-media-wrapped': layout === 'wrap-left' || layout === 'wrap-right'
|
|
119
119
|
})
|
|
120
|
+
// Ignored via go/ees005
|
|
121
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
120
122
|
}, dataAttributes), (0, _react2.jsx)(_styled.MediaWrapper, {
|
|
121
123
|
hasFallbackContainer: hasFallbackContainer,
|
|
122
124
|
height: mediaWrapperHeight,
|
|
@@ -54,6 +54,8 @@ function getWidthIfDefaultMode(originalWidth, containerWidth, isInsideOfInlineEx
|
|
|
54
54
|
* then an image in wide or full-width can not be wider than the image's
|
|
55
55
|
* original width.
|
|
56
56
|
*/
|
|
57
|
+
// Ignored via go/ees005
|
|
58
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
57
59
|
function calcLegacyWidth(layout, width) {
|
|
58
60
|
var containerWidth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
59
61
|
var fullWidthMode = arguments.length > 3 ? arguments[3] : undefined;
|
|
@@ -81,6 +83,8 @@ function calcLegacyWidth(layout, width) {
|
|
|
81
83
|
* then an image in wide or full-width can not be wider than the image's
|
|
82
84
|
* original width.
|
|
83
85
|
*/
|
|
86
|
+
// Ignored via go/ees005
|
|
87
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
84
88
|
function calcLegacyWidthForInline(layout, width) {
|
|
85
89
|
var containerWidth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
86
90
|
var fullWidthMode = arguments.length > 3 ? arguments[3] : undefined;
|
|
@@ -155,6 +159,8 @@ function isImageAligned(layout) {
|
|
|
155
159
|
* @param widthValue CSS width value to be rounded
|
|
156
160
|
* @returns Reduced CSS width value where px value given, or otherwise the original value
|
|
157
161
|
*/
|
|
162
|
+
// Ignored via go/ees005
|
|
163
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
158
164
|
function roundToClosestEvenPxValue(widthValue) {
|
|
159
165
|
try {
|
|
160
166
|
if (widthValue.endsWith('px')) {
|
|
@@ -35,7 +35,10 @@ function MentionWithProfileCard(_ref) {
|
|
|
35
35
|
actions: actions,
|
|
36
36
|
trigger: "click",
|
|
37
37
|
position: "bottom-end",
|
|
38
|
-
testId: "mention-with-profilecard-trigger"
|
|
38
|
+
testId: "mention-with-profilecard-trigger"
|
|
39
|
+
// Ignored via go/ees005
|
|
40
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
41
|
+
,
|
|
39
42
|
ariaLabel: text.replace(/^@/, '')
|
|
40
43
|
}, /*#__PURE__*/_react.default.createElement(_mention.ResourcedMention, {
|
|
41
44
|
id: id,
|
|
@@ -63,7 +63,10 @@ var MentionWithProviders = exports.MentionWithProviders = function MentionWithPr
|
|
|
63
63
|
text: text,
|
|
64
64
|
accessLevel: accessLevel,
|
|
65
65
|
localId: localId,
|
|
66
|
-
mentionProvider: mentionProvider
|
|
66
|
+
mentionProvider: mentionProvider
|
|
67
|
+
// Ignored via go/ees005
|
|
68
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
69
|
+
,
|
|
67
70
|
profilecardProvider: profilecardProvider,
|
|
68
71
|
onClick: eventHandlers === null || eventHandlers === void 0 ? void 0 : eventHandlers.onClick,
|
|
69
72
|
onMouseEnter: eventHandlers === null || eventHandlers === void 0 ? void 0 : eventHandlers.onMouseEnter,
|
|
@@ -88,9 +91,15 @@ var MentionWithProvidersOld = exports.MentionWithProvidersOld = /*#__PURE__*/fun
|
|
|
88
91
|
(0, _inherits2.default)(MentionWithProvidersOld, _PureComponent);
|
|
89
92
|
return (0, _createClass2.default)(MentionWithProvidersOld, [{
|
|
90
93
|
key: "UNSAFE_componentWillMount",
|
|
91
|
-
value:
|
|
94
|
+
value:
|
|
95
|
+
// Ignored via go/ees005
|
|
96
|
+
// eslint-disable-next-line react/no-unsafe
|
|
97
|
+
function UNSAFE_componentWillMount() {
|
|
92
98
|
this.updateProfilecardProvider(this.props);
|
|
93
99
|
}
|
|
100
|
+
|
|
101
|
+
// Ignored via go/ees005
|
|
102
|
+
// eslint-disable-next-line react/no-unsafe
|
|
94
103
|
}, {
|
|
95
104
|
key: "UNSAFE_componentWillReceiveProps",
|
|
96
105
|
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
@@ -133,6 +142,9 @@ var MentionWithProvidersOld = exports.MentionWithProvidersOld = /*#__PURE__*/fun
|
|
|
133
142
|
text = _this$props.text,
|
|
134
143
|
localId = _this$props.localId;
|
|
135
144
|
var profilecardProvider = this.state.profilecardProvider;
|
|
145
|
+
|
|
146
|
+
// Ignored via go/ees005
|
|
147
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
136
148
|
var actionHandlers = {};
|
|
137
149
|
['onClick', 'onMouseEnter', 'onMouseLeave'].forEach(function (handler) {
|
|
138
150
|
actionHandlers[handler] = eventHandlers && eventHandlers[handler] || noop;
|
|
@@ -143,8 +155,13 @@ var MentionWithProvidersOld = exports.MentionWithProvidersOld = /*#__PURE__*/fun
|
|
|
143
155
|
text: text,
|
|
144
156
|
accessLevel: accessLevel,
|
|
145
157
|
localId: localId,
|
|
146
|
-
mentionProvider: mentionProvider
|
|
158
|
+
mentionProvider: mentionProvider
|
|
159
|
+
// Ignored via go/ees005
|
|
160
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
161
|
+
,
|
|
147
162
|
profilecardProvider: profilecardProvider
|
|
163
|
+
// Ignored via go/ees005
|
|
164
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
148
165
|
}, actionHandlers));
|
|
149
166
|
}
|
|
150
167
|
}]);
|
|
@@ -80,6 +80,8 @@ function overflowShadow(Component, options) {
|
|
|
80
80
|
}
|
|
81
81
|
var width = 0;
|
|
82
82
|
for (var i = 0; i < _this.scrollable.length; i++) {
|
|
83
|
+
// Ignored via go/ees005
|
|
84
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
83
85
|
var scrollableElement = _this.scrollable[i];
|
|
84
86
|
width += scrollableElement.scrollWidth;
|
|
85
87
|
}
|
|
@@ -90,6 +92,9 @@ function overflowShadow(Component, options) {
|
|
|
90
92
|
return;
|
|
91
93
|
}
|
|
92
94
|
_this.container = container;
|
|
95
|
+
|
|
96
|
+
// Ignored via go/ees005
|
|
97
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
93
98
|
_this.overflowContainer = container.querySelector(options.overflowSelector);
|
|
94
99
|
if (!_this.overflowContainer) {
|
|
95
100
|
_this.overflowContainer = container;
|
|
@@ -99,6 +104,8 @@ function overflowShadow(Component, options) {
|
|
|
99
104
|
return;
|
|
100
105
|
}
|
|
101
106
|
_this.updateShadows();
|
|
107
|
+
// Ignored via go/ees005
|
|
108
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
102
109
|
_this.overflowContainer.addEventListener('scroll', _this.handleScroll);
|
|
103
110
|
});
|
|
104
111
|
return _this;
|
|
@@ -111,6 +118,8 @@ function overflowShadow(Component, options) {
|
|
|
111
118
|
return this.shadowObserver && this.shadowObserver.dispose();
|
|
112
119
|
}
|
|
113
120
|
if (this.overflowContainer) {
|
|
121
|
+
// Ignored via go/ees005
|
|
122
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
114
123
|
this.overflowContainer.removeEventListener('scroll', this.handleScroll);
|
|
115
124
|
}
|
|
116
125
|
this.updateShadows();
|
|
@@ -153,10 +162,15 @@ function overflowShadow(Component, options) {
|
|
|
153
162
|
showLeftShadow = _this$state.showLeftShadow,
|
|
154
163
|
showRightShadow = _this$state.showRightShadow;
|
|
155
164
|
var classNames = [showRightShadow && shadowClassNames.RIGHT_SHADOW, showLeftShadow && shadowClassNames.LEFT_SHADOW, options.useShadowObserver && _shadowObserver.shadowObserverClassNames.SHADOW_CONTAINER].filter(Boolean).join(' ');
|
|
156
|
-
return
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
165
|
+
return (
|
|
166
|
+
/*#__PURE__*/
|
|
167
|
+
// Ignored via go/ees005
|
|
168
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
169
|
+
_react.default.createElement(Component, (0, _extends2.default)({
|
|
170
|
+
handleRef: this.handleContainer,
|
|
171
|
+
shadowClassNames: classNames
|
|
172
|
+
}, this.props))
|
|
173
|
+
);
|
|
160
174
|
}
|
|
161
175
|
}]);
|
|
162
176
|
}(_react.default.Component);
|
|
@@ -19,10 +19,20 @@ var shadowObserverClassNames = exports.shadowObserverClassNames = {
|
|
|
19
19
|
SHADOW_CONTAINER: 'with-shadow-observer'
|
|
20
20
|
};
|
|
21
21
|
var requestIdleCallback = function requestIdleCallback(fn) {
|
|
22
|
-
|
|
22
|
+
// Ignored via go/ees005
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
|
+
return window.requestIdleCallback ?
|
|
25
|
+
// Ignored via go/ees005
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
27
|
+
window.requestIdleCallback(fn) : window.requestAnimationFrame(fn);
|
|
23
28
|
};
|
|
24
29
|
var cancelIdleCallback = function cancelIdleCallback(id) {
|
|
25
|
-
|
|
30
|
+
// Ignored via go/ees005
|
|
31
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
32
|
+
return window.cancelIdleCallback ?
|
|
33
|
+
// Ignored via go/ees005
|
|
34
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
35
|
+
window.cancelIdleCallback(id) : window.cancelAnimationFrame(id);
|
|
26
36
|
};
|
|
27
37
|
var ShadowObserver = exports.ShadowObserver = /*#__PURE__*/function () {
|
|
28
38
|
function ShadowObserver(_ref) {
|
|
@@ -23,6 +23,9 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
24
24
|
var KeyZCode = 90;
|
|
25
25
|
var KeyYCode = 89;
|
|
26
|
+
|
|
27
|
+
// Ignored via go/ees005
|
|
28
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
26
29
|
var PanelTextInput = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
27
30
|
function PanelTextInput(props) {
|
|
28
31
|
var _this;
|
|
@@ -34,6 +37,8 @@ var PanelTextInput = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
34
37
|
onMouseDown();
|
|
35
38
|
}
|
|
36
39
|
});
|
|
40
|
+
// Ignored via go/ees005
|
|
41
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
37
42
|
(0, _defineProperty2.default)(_this, "onBlur", function (e) {
|
|
38
43
|
var onBlur = _this.props.onBlur;
|
|
39
44
|
if (onBlur) {
|
|
@@ -51,6 +56,8 @@ var PanelTextInput = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
51
56
|
onChange(_this.input.value);
|
|
52
57
|
}
|
|
53
58
|
});
|
|
59
|
+
// Ignored via go/ees005
|
|
60
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
54
61
|
(0, _defineProperty2.default)(_this, "handleKeydown", function (e) {
|
|
55
62
|
var _this$props = _this.props,
|
|
56
63
|
onUndo = _this$props.onUndo,
|
|
@@ -59,6 +66,8 @@ var PanelTextInput = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
59
66
|
onCancel = _this$props.onCancel;
|
|
60
67
|
if (e.keyCode === 13 && onSubmit) {
|
|
61
68
|
e.preventDefault(); // Prevent from submitting if an editor is inside a form.
|
|
69
|
+
// Ignored via go/ees005
|
|
70
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
62
71
|
onSubmit(_this.input.value);
|
|
63
72
|
} else if (e.keyCode === 27 && onCancel) {
|
|
64
73
|
onCancel(e);
|
|
@@ -160,13 +169,19 @@ var PanelTextInput = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
160
169
|
}
|
|
161
170
|
}, {
|
|
162
171
|
key: "isUndoEvent",
|
|
163
|
-
value:
|
|
172
|
+
value:
|
|
173
|
+
// Ignored via go/ees005
|
|
174
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
175
|
+
function isUndoEvent(event) {
|
|
164
176
|
return event.keyCode === KeyZCode && (
|
|
165
177
|
// cmd + z for mac
|
|
166
178
|
_utils.browser.mac && event.metaKey && !event.shiftKey ||
|
|
167
179
|
// ctrl + z for non-mac
|
|
168
180
|
!_utils.browser.mac && event.ctrlKey);
|
|
169
181
|
}
|
|
182
|
+
|
|
183
|
+
// Ignored via go/ees005
|
|
184
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
170
185
|
}, {
|
|
171
186
|
key: "isRedoEvent",
|
|
172
187
|
value: function isRedoEvent(event) {
|
|
@@ -22,6 +22,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
22
22
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23
23
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
24
24
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
25
|
+
// Ignored via go/ees005
|
|
26
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
25
27
|
var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
26
28
|
function Popup() {
|
|
27
29
|
var _window;
|
|
@@ -108,6 +110,8 @@ var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
108
110
|
popup: popup,
|
|
109
111
|
target: target,
|
|
110
112
|
stick: stick,
|
|
113
|
+
// Ignored via go/ees005
|
|
114
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
111
115
|
offset: offset,
|
|
112
116
|
allowOutOfBounds: allowOutOfBounds,
|
|
113
117
|
rect: rect
|
|
@@ -160,7 +164,10 @@ var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
160
164
|
* Currently Popup isn't capable of position itself correctly in case 2,
|
|
161
165
|
* Add "position: relative" to "overflow: scroll" container or to some other FloatingPanel wrapper inside it.
|
|
162
166
|
*/
|
|
163
|
-
return !target || document.body.contains(target) && popup.offsetParent &&
|
|
167
|
+
return !target || document.body.contains(target) && popup.offsetParent &&
|
|
168
|
+
// Ignored via go/ees005
|
|
169
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
170
|
+
!popup.offsetParent.contains(target) || overflowScrollParent && !overflowScrollParent.contains(popup.offsetParent);
|
|
164
171
|
}
|
|
165
172
|
|
|
166
173
|
/**
|
|
@@ -197,7 +204,10 @@ var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
197
204
|
}
|
|
198
205
|
}, {
|
|
199
206
|
key: "UNSAFE_componentWillReceiveProps",
|
|
200
|
-
value:
|
|
207
|
+
value:
|
|
208
|
+
// Ignored via go/ees005
|
|
209
|
+
// eslint-disable-next-line react/no-unsafe
|
|
210
|
+
function UNSAFE_componentWillReceiveProps(newProps) {
|
|
201
211
|
// We are delaying `updatePosition` otherwise it happens before the children
|
|
202
212
|
// get rendered and we end up with a wrong position
|
|
203
213
|
if (!(0, _platformFeatureFlags.fg)('platform_editor_react18_phase2_v2')) {
|
|
@@ -252,8 +262,13 @@ var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
252
262
|
}, {
|
|
253
263
|
key: "componentDidMount",
|
|
254
264
|
value: function componentDidMount() {
|
|
265
|
+
// Ignored via go/ees005
|
|
266
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
255
267
|
window.addEventListener('resize', this.onResize);
|
|
256
268
|
var stick = this.props.stick;
|
|
269
|
+
|
|
270
|
+
// Ignored via go/ees005
|
|
271
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
257
272
|
this.scrollParentElement = (0, _utils.findOverflowScrollParent)(this.props.target);
|
|
258
273
|
if (this.scrollParentElement && this.resizeObserver) {
|
|
259
274
|
this.resizeObserver.observe(this.scrollParentElement);
|
|
@@ -264,14 +279,20 @@ var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
264
279
|
this.scrollElement = this.props.scrollableElement;
|
|
265
280
|
}
|
|
266
281
|
if (this.scrollElement) {
|
|
282
|
+
// Ignored via go/ees005
|
|
283
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
267
284
|
this.scrollElement.addEventListener('scroll', this.onResize);
|
|
268
285
|
}
|
|
269
286
|
}
|
|
270
287
|
}, {
|
|
271
288
|
key: "componentWillUnmount",
|
|
272
289
|
value: function componentWillUnmount() {
|
|
290
|
+
// Ignored via go/ees005
|
|
291
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
273
292
|
window.removeEventListener('resize', this.onResize);
|
|
274
293
|
if (this.scrollElement) {
|
|
294
|
+
// Ignored via go/ees005
|
|
295
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
275
296
|
this.scrollElement.removeEventListener('scroll', this.onResize);
|
|
276
297
|
}
|
|
277
298
|
if (this.scrollParentElement && this.resizeObserver) {
|
|
@@ -26,6 +26,8 @@ function isTextNode(elem) {
|
|
|
26
26
|
/**
|
|
27
27
|
* Decides if given fitHeight fits below or above the target taking boundaries into account.
|
|
28
28
|
*/
|
|
29
|
+
// Ignored via go/ees005
|
|
30
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
29
31
|
function getVerticalPlacement(target, boundariesElement, fitHeight, alignY, forcePlacement, preventOverflow) {
|
|
30
32
|
if (forcePlacement && alignY) {
|
|
31
33
|
return alignY;
|
|
@@ -34,6 +36,8 @@ function getVerticalPlacement(target, boundariesElement, fitHeight, alignY, forc
|
|
|
34
36
|
return 'bottom';
|
|
35
37
|
}
|
|
36
38
|
if (isTextNode(target)) {
|
|
39
|
+
// Ignored via go/ees005
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
37
41
|
target = target.parentElement;
|
|
38
42
|
}
|
|
39
43
|
var boundariesClientRect = boundariesElement.getBoundingClientRect();
|
|
@@ -60,6 +64,8 @@ function getVerticalPlacement(target, boundariesElement, fitHeight, alignY, forc
|
|
|
60
64
|
/**
|
|
61
65
|
* Decides if given fitWidth fits to the left or to the right of the target taking boundaries into account.
|
|
62
66
|
*/
|
|
67
|
+
// Ignored via go/ees005
|
|
68
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
63
69
|
function getHorizontalPlacement(target, boundariesElement, fitWidth, alignX, forcePlacement, preventOverflow) {
|
|
64
70
|
// force placement unless preventOverflow is enabled
|
|
65
71
|
if (forcePlacement && alignX && !preventOverflow) {
|
|
@@ -69,6 +75,8 @@ function getHorizontalPlacement(target, boundariesElement, fitWidth, alignX, for
|
|
|
69
75
|
return alignX || 'left';
|
|
70
76
|
}
|
|
71
77
|
if (isTextNode(target)) {
|
|
78
|
+
// Ignored via go/ees005
|
|
79
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
72
80
|
target = target.parentElement;
|
|
73
81
|
}
|
|
74
82
|
var _target$getBoundingCl2 = target.getBoundingClientRect(),
|
|
@@ -86,6 +94,9 @@ function getHorizontalPlacement(target, boundariesElement, fitWidth, alignX, for
|
|
|
86
94
|
}
|
|
87
95
|
return 'right';
|
|
88
96
|
}
|
|
97
|
+
|
|
98
|
+
// Ignored via go/ees005
|
|
99
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
89
100
|
function calculatePlacement(target, boundariesElement, fitWidth, fitHeight, alignX, alignY, forcePlacement, preventOverflow) {
|
|
90
101
|
return [getVerticalPlacement(target, boundariesElement, fitHeight, alignY, forcePlacement, preventOverflow), getHorizontalPlacement(target, boundariesElement, fitWidth, alignX, forcePlacement, preventOverflow)];
|
|
91
102
|
}
|
|
@@ -231,8 +242,13 @@ function calculatePosition(_ref5) {
|
|
|
231
242
|
return position;
|
|
232
243
|
}
|
|
233
244
|
if (isTextNode(target)) {
|
|
245
|
+
// Ignored via go/ees005
|
|
246
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
234
247
|
target = target.parentElement;
|
|
235
248
|
}
|
|
249
|
+
|
|
250
|
+
// Ignored via go/ees005
|
|
251
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
236
252
|
var popupOffsetParent = popup.offsetParent;
|
|
237
253
|
var offsetParentStyle = popupOffsetParent.style;
|
|
238
254
|
var borderBottomWidth = 0;
|
|
@@ -322,6 +338,9 @@ function findOverflowScrollParent(popup) {
|
|
|
322
338
|
if (!parent) {
|
|
323
339
|
return false;
|
|
324
340
|
}
|
|
341
|
+
|
|
342
|
+
// Ignored via go/ees005
|
|
343
|
+
// eslint-disable-next-line no-cond-assign
|
|
325
344
|
while (parent = parent.parentElement) {
|
|
326
345
|
// IE11 on Window 8 doesn't show styles from CSS when accessing through element.style property.
|
|
327
346
|
var style = window.getComputedStyle(parent);
|
|
@@ -42,6 +42,9 @@ var getWidthFromSnapPoints = function getWidthFromSnapPoints(width, snapPoints)
|
|
|
42
42
|
}
|
|
43
43
|
return width;
|
|
44
44
|
};
|
|
45
|
+
|
|
46
|
+
// Ignored via go/ees005
|
|
47
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
45
48
|
var Resizer = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
46
49
|
function Resizer() {
|
|
47
50
|
var _this;
|
|
@@ -72,6 +75,8 @@ var Resizer = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
72
75
|
displayGrid === null || displayGrid === void 0 || displayGrid(newHighlights.length > 0, (0, _utils.gridTypeForLayout)(layout), newHighlights);
|
|
73
76
|
});
|
|
74
77
|
});
|
|
78
|
+
// Ignored via go/ees005
|
|
79
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
75
80
|
(0, _defineProperty2.default)(_this, "handleResize", function (_event, _direction, _elementRef, delta) {
|
|
76
81
|
var _this$props2 = _this.props,
|
|
77
82
|
highlights = _this$props2.highlights,
|
|
@@ -103,6 +108,8 @@ var Resizer = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
103
108
|
isResizing: true
|
|
104
109
|
});
|
|
105
110
|
});
|
|
111
|
+
// Ignored via go/ees005
|
|
112
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
106
113
|
(0, _defineProperty2.default)(_this, "handleResizeStop", function (_event, _direction, _elementRef, delta) {
|
|
107
114
|
var _this$props3 = _this.props,
|
|
108
115
|
highlights = _this$props3.highlights,
|
|
@@ -4,7 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getUnsupportedContent = getUnsupportedContent;
|
|
7
|
-
|
|
7
|
+
// Ignored via go/ees005
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
9
|
+
function getUnsupportedContent(
|
|
10
|
+
// Ignored via go/ees005
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
|
+
message, prefix, node, intl) {
|
|
8
13
|
var defaultLocale = 'en';
|
|
9
14
|
var canTranslateToLocale = true;
|
|
10
15
|
var locale = intl ? intl.locale : defaultLocale;
|