@atlaskit/editor-common 115.10.2 → 115.13.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 +47 -0
- package/codemods/migrates/entry-points.ts +1 -0
- package/dist/cjs/analytics/linking-utils.js +8 -0
- package/dist/cjs/analytics/types/enums.js +9 -8
- package/dist/cjs/analytics/types/extension-events.js +1 -1
- package/dist/cjs/analytics/types/format-events.js +1 -1
- package/dist/cjs/analytics/types/general-events.js +3 -3
- package/dist/cjs/analytics/types/inline-comment-events.js +1 -1
- package/dist/cjs/analytics/types/insert-events.js +3 -3
- package/dist/cjs/analytics/types/list-events.js +3 -3
- package/dist/cjs/analytics/types/node-events.js +1 -1
- package/dist/cjs/analytics/types/paste-events.js +2 -0
- package/dist/cjs/analytics/types/substitute-events.js +1 -1
- package/dist/cjs/analytics/types/table-events.js +5 -3
- package/dist/cjs/analytics/types/utils.js +1 -1
- package/dist/cjs/annotation/index.js +1 -0
- package/dist/cjs/block-menu/block-link.js +3 -0
- package/dist/cjs/block-menu/key-deprecated.js +1 -0
- package/dist/cjs/block-menu/key.js +1 -0
- package/dist/cjs/block-menu/rank-deprecated.js +7 -0
- package/dist/cjs/block-menu/rank.js +2 -0
- package/dist/cjs/block-menu/scroll-to-block-utils.js +2 -0
- package/dist/cjs/card/MediaAndEmbedsToolbar/index.js +7 -1
- package/dist/cjs/clipboard/index.js +7 -0
- package/dist/cjs/code-block/index.js +1 -1
- package/dist/cjs/collab/index.js +1 -0
- package/dist/cjs/commands/index.js +1 -1
- package/dist/cjs/copy-button/index.js +4 -0
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +6 -1
- package/dist/cjs/element-browser/components/ElementList/utils.js +2 -0
- package/dist/cjs/element-browser/constants.js +1 -0
- package/dist/cjs/event-dispatcher/index.js +1 -0
- package/dist/cjs/expand/index.js +3 -0
- package/dist/cjs/experiences/consts.js +4 -0
- package/dist/cjs/extensibility/Extension/Extension/styles.js +6 -6
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -0
- package/dist/cjs/extensibility/Extension/Lozenge/LozengeComponent.js +1 -0
- package/dist/cjs/extensibility/Extension/styles.js +4 -4
- package/dist/cjs/extensibility/MultiBodiedExtension/styles.js +3 -3
- package/dist/cjs/extensibility/extensionNodeView.js +1 -1
- package/dist/cjs/extensions/extension-fields-helpers.js +3 -0
- package/dist/cjs/extensions/extension-handlers.js +4 -1
- package/dist/cjs/extensions/manifest-helpers.js +12 -0
- package/dist/cjs/extensions/module-helpers.js +4 -0
- package/dist/cjs/extensions/types/field-definitions.js +4 -2
- package/dist/cjs/floating-toolbar/index.js +5 -1
- package/dist/cjs/guideline/constants.js +1 -0
- package/dist/cjs/icons/shared/SteppedRainbowIconDecoration.js +4 -0
- package/dist/cjs/insert/index.js +7 -1
- package/dist/cjs/keymaps/consts.js +1 -0
- package/dist/cjs/keymaps/index.js +1 -0
- package/dist/cjs/lazy-node-view/index.js +3 -0
- package/dist/cjs/lazy-node-view/lazy-scheduler.js +2 -0
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +5 -2
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +2 -0
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +7 -3
- package/dist/cjs/link/LinkSearch/ToolbarComponents.js +3 -3
- package/dist/cjs/link/utils.js +2 -0
- package/dist/cjs/lists/block-mark.js +8 -0
- package/dist/cjs/lists/node.js +2 -0
- package/dist/cjs/lists/restore-selection.js +1 -0
- package/dist/cjs/lists/selection.js +1 -0
- package/dist/cjs/mark/commands.js +3 -0
- package/dist/cjs/media-inline/constants.js +4 -0
- package/dist/cjs/media-inline/media-inline-image-card.js +2 -0
- package/dist/cjs/media-inline/styles.js +10 -4
- package/dist/cjs/media-single/ExternalImageBadge.js +2 -0
- package/dist/cjs/media-single/constants.js +2 -0
- package/dist/cjs/media-single/utils.js +3 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/monitoring/normalise-sentry-breadcrumbs.js +1 -0
- package/dist/cjs/node-anchor/limited-mode-document-thresholds.js +3 -0
- package/dist/cjs/node-anchor/node-anchor-provider.js +1 -0
- package/dist/cjs/node-selection/index.js +2 -0
- package/dist/cjs/node-width/index.js +7 -0
- package/dist/cjs/performance-measures/index.js +6 -0
- package/dist/cjs/preset/core-plugin/pm-plugins/appearance-plugin.js +2 -0
- package/dist/cjs/preset/core-plugin/requestDocument.js +4 -1
- package/dist/cjs/preset/plugin-injection-api.js +2 -0
- package/dist/cjs/provider-factory/context.js +6 -0
- package/dist/cjs/provider-helpers/promise-helpers.js +1 -0
- package/dist/cjs/quick-insert/assets/index.js +1 -1
- package/dist/cjs/quick-insert/utils.js +1 -0
- package/dist/cjs/rank.js +1 -0
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +1 -0
- package/dist/cjs/resizer/BreakoutResizer.js +3 -1
- package/dist/cjs/resizer/useBreakoutGuidelines.js +2 -0
- package/dist/cjs/safe-plugin/index.js +1 -1
- package/dist/cjs/selection/context-helpers.js +1 -0
- package/dist/cjs/selection/gap-cursor/actions.js +2 -0
- package/dist/cjs/selection/gap-cursor/selection.js +4 -0
- package/dist/cjs/selection/gap-cursor/styles.js +1 -1
- package/dist/cjs/selection/index.js +8 -0
- package/dist/cjs/selection/utils.js +9 -0
- package/dist/cjs/styles/shared/annotation.js +4 -0
- package/dist/cjs/styles/shared/drag-handle.js +1 -0
- package/dist/cjs/styles/shared/dropdown-menu.js +2 -0
- package/dist/cjs/styles/shared/expand.js +3 -1
- package/dist/cjs/styles/shared/extension.js +2 -0
- package/dist/cjs/styles/shared/layout.js +2 -0
- package/dist/cjs/styles/shared/lists.js +6 -0
- package/dist/cjs/styles/shared/media-single.js +1 -1
- package/dist/cjs/styles/shared/native-anchor.js +5 -1
- package/dist/cjs/styles/shared/panel.js +5 -0
- package/dist/cjs/styles/shared/plugins.js +6 -6
- package/dist/cjs/styles/shared/resizer.js +1 -0
- package/dist/cjs/styles/shared/smartCard.js +2 -0
- package/dist/cjs/styles/shared/sync-block.js +10 -0
- package/dist/cjs/styles/shared/table.js +1 -0
- package/dist/cjs/sync-block/SyncBlockActionsContext.js +1 -0
- package/dist/cjs/table/content-mode.js +1 -0
- package/dist/cjs/toolbar/context.js +1 -0
- package/dist/cjs/toolbar/keys.js +1 -0
- package/dist/cjs/toolbar/rank.js +1 -0
- package/dist/cjs/transforms/extension.js +3 -0
- package/dist/cjs/transforms/layout.js +5 -0
- package/dist/cjs/transforms/list-transforms.js +2 -0
- package/dist/cjs/type-ahead/index.js +1 -1
- package/dist/cjs/types/annotation/emitter.js +1 -0
- package/dist/cjs/ugc-tokens/editor-ugc-token-names.js +3 -0
- package/dist/cjs/ui/BaseTheme/index.js +2 -0
- package/dist/cjs/ui/Caption/index.js +1 -0
- package/dist/cjs/ui/ContextPanel/context.js +4 -2
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Expand/index.js +5 -1
- package/dist/cjs/ui/IntlErrorBoundary/index.js +1 -1
- package/dist/cjs/ui/LinkSearch/const.js +5 -0
- package/dist/cjs/ui/MediaSingle/grid.js +6 -0
- package/dist/cjs/ui/MediaSingle/styled.js +6 -1
- package/dist/cjs/ui/Messages/index.js +4 -0
- package/dist/cjs/ui/MultiBodiedExtension/index.js +1 -1
- package/dist/cjs/ui/OverflowShadow/index.js +1 -0
- package/dist/cjs/ui/PanelTextInput/styles.js +2 -0
- package/dist/cjs/ui/Popup/utils.js +35 -2
- package/dist/cjs/ui/TableSelector/index.js +2 -0
- package/dist/cjs/ui/TableSelector/table-selector.js +2 -0
- package/dist/cjs/ui/WidthProvider/index.js +10 -1
- package/dist/cjs/ui/clear-next-sibling-margin-top.js +1 -1
- package/dist/cjs/ui-color/ColorPalette/Color/styles.js +1 -1
- package/dist/cjs/ui-color/ColorPalette/Palettes/highlightColorPalette.js +4 -0
- package/dist/cjs/ui-color/ColorPalette/Palettes/paletteMessagesTokenModeNames.js +10 -0
- package/dist/cjs/ui-color/ColorPalette/utils.js +6 -0
- package/dist/cjs/ui-menu/Dropdown/index.js +2 -0
- package/dist/cjs/ui-menu/DropdownMenu/index.js +4 -0
- package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +1 -0
- package/dist/cjs/utils/analytics.js +6 -0
- package/dist/cjs/utils/annotation/index.js +2 -0
- package/dist/cjs/utils/breakout.js +10 -1
- package/dist/cjs/utils/browser-extensions.js +1 -0
- package/dist/cjs/utils/calculate-toolbar-position.js +3 -0
- package/dist/cjs/utils/commands.js +2 -0
- package/dist/cjs/utils/compare-props.js +4 -0
- package/dist/cjs/utils/compareNodes.js +3 -0
- package/dist/cjs/utils/create-wrap-selection-transaction.js +1 -0
- package/dist/cjs/utils/date.js +8 -0
- package/dist/cjs/utils/document.js +6 -0
- package/dist/cjs/utils/dom.js +4 -0
- package/dist/cjs/utils/editor-core-utils.js +2 -0
- package/dist/cjs/utils/get-performance-options.js +2 -0
- package/dist/cjs/utils/hyperlink.js +6 -2
- package/dist/cjs/utils/index.js +1 -0
- package/dist/cjs/utils/input-rules.js +1 -0
- package/dist/cjs/utils/list.js +3 -0
- package/dist/cjs/utils/node-type-utils.js +3 -0
- package/dist/cjs/utils/nodes.js +11 -0
- package/dist/cjs/utils/parsePx.js +3 -0
- package/dist/cjs/utils/performance/is-performance-api-available.js +2 -0
- package/dist/cjs/utils/performance/measure-render.js +1 -0
- package/dist/cjs/utils/performance/measure-tti.js +2 -0
- package/dist/cjs/utils/performance/measure.js +2 -0
- package/dist/cjs/utils/processRawValue.js +2 -0
- package/dist/cjs/utils/profiler/render-count.js +1 -0
- package/dist/cjs/utils/referentiality.js +5 -0
- package/dist/cjs/utils/scroll-gutter.js +2 -0
- package/dist/cjs/utils/should-auto-linkify-tld.js +1 -0
- package/dist/cjs/utils/slice.js +6 -0
- package/dist/cjs/utils/table.js +1 -0
- package/dist/cjs/utils/track-unsupported-content.js +3 -0
- package/dist/cjs/utils/validate-using-spec.js +4 -0
- package/dist/cjs/utils/validator.js +7 -0
- package/dist/cjs/whitespace/whitespace.js +1 -0
- package/dist/es2019/analytics/linking-utils.js +8 -0
- package/dist/es2019/analytics/types/enums.js +17 -0
- package/dist/es2019/analytics/types/extension-events.js +2 -0
- package/dist/es2019/analytics/types/format-events.js +2 -0
- package/dist/es2019/analytics/types/general-events.js +6 -0
- package/dist/es2019/analytics/types/inline-comment-events.js +2 -0
- package/dist/es2019/analytics/types/insert-events.js +6 -0
- package/dist/es2019/analytics/types/list-events.js +6 -0
- package/dist/es2019/analytics/types/node-events.js +2 -0
- package/dist/es2019/analytics/types/paste-events.js +2 -0
- package/dist/es2019/analytics/types/substitute-events.js +2 -0
- package/dist/es2019/analytics/types/table-events.js +8 -0
- package/dist/es2019/analytics/types/utils.js +2 -0
- package/dist/es2019/annotation/index.js +1 -0
- package/dist/es2019/block-menu/block-link.js +3 -0
- package/dist/es2019/block-menu/key-deprecated.js +1 -0
- package/dist/es2019/block-menu/key.js +1 -0
- package/dist/es2019/block-menu/rank-deprecated.js +7 -0
- package/dist/es2019/block-menu/rank.js +1 -0
- package/dist/es2019/block-menu/scroll-to-block-utils.js +2 -0
- package/dist/es2019/card/MediaAndEmbedsToolbar/index.js +7 -1
- package/dist/es2019/clipboard/index.js +7 -0
- package/dist/es2019/code-block/index.js +1 -0
- package/dist/es2019/collab/index.js +1 -0
- package/dist/es2019/commands/index.js +2 -0
- package/dist/es2019/copy-button/index.js +4 -0
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +6 -1
- package/dist/es2019/element-browser/components/ElementList/utils.js +2 -0
- package/dist/es2019/element-browser/constants.js +1 -0
- package/dist/es2019/event-dispatcher/index.js +1 -0
- package/dist/es2019/expand/index.js +3 -0
- package/dist/es2019/experiences/consts.js +4 -0
- package/dist/es2019/extensibility/Extension/Extension/styles.js +6 -6
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -0
- package/dist/es2019/extensibility/Extension/Lozenge/LozengeComponent.js +1 -0
- package/dist/es2019/extensibility/Extension/styles.js +4 -4
- package/dist/es2019/extensibility/MultiBodiedExtension/styles.js +3 -3
- package/dist/es2019/extensibility/extensionNodeView.js +2 -0
- package/dist/es2019/extensions/extension-fields-helpers.js +3 -0
- package/dist/es2019/extensions/extension-handlers.js +5 -0
- package/dist/es2019/extensions/manifest-helpers.js +12 -0
- package/dist/es2019/extensions/module-helpers.js +4 -0
- package/dist/es2019/extensions/types/field-definitions.js +4 -2
- package/dist/es2019/floating-toolbar/index.js +5 -1
- package/dist/es2019/guideline/constants.js +1 -0
- package/dist/es2019/icons/shared/SteppedRainbowIconDecoration.js +4 -0
- package/dist/es2019/insert/index.js +8 -0
- package/dist/es2019/keymaps/consts.js +1 -0
- package/dist/es2019/keymaps/index.js +1 -0
- package/dist/es2019/lazy-node-view/index.js +3 -0
- package/dist/es2019/lazy-node-view/lazy-scheduler.js +2 -0
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +5 -2
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +2 -0
- package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +7 -3
- package/dist/es2019/link/LinkSearch/ToolbarComponents.js +3 -3
- package/dist/es2019/link/utils.js +2 -0
- package/dist/es2019/lists/block-mark.js +8 -0
- package/dist/es2019/lists/node.js +2 -0
- package/dist/es2019/lists/restore-selection.js +1 -0
- package/dist/es2019/lists/selection.js +1 -0
- package/dist/es2019/mark/commands.js +3 -0
- package/dist/es2019/media-inline/constants.js +4 -0
- package/dist/es2019/media-inline/media-inline-image-card.js +2 -0
- package/dist/es2019/media-inline/styles.js +10 -4
- package/dist/es2019/media-single/ExternalImageBadge.js +2 -0
- package/dist/es2019/media-single/constants.js +2 -0
- package/dist/es2019/media-single/utils.js +3 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/monitoring/normalise-sentry-breadcrumbs.js +1 -0
- package/dist/es2019/node-anchor/limited-mode-document-thresholds.js +3 -0
- package/dist/es2019/node-anchor/node-anchor-provider.js +1 -0
- package/dist/es2019/node-selection/index.js +2 -0
- package/dist/es2019/node-width/index.js +7 -0
- package/dist/es2019/performance-measures/index.js +6 -0
- package/dist/es2019/preset/core-plugin/pm-plugins/appearance-plugin.js +2 -0
- package/dist/es2019/preset/core-plugin/requestDocument.js +4 -1
- package/dist/es2019/preset/plugin-injection-api.js +2 -0
- package/dist/es2019/provider-factory/context.js +6 -0
- package/dist/es2019/provider-helpers/promise-helpers.js +1 -0
- package/dist/es2019/quick-insert/assets/index.js +1 -0
- package/dist/es2019/quick-insert/utils.js +1 -0
- package/dist/es2019/rank.js +1 -0
- package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +1 -0
- package/dist/es2019/resizer/BreakoutResizer.js +2 -0
- package/dist/es2019/resizer/useBreakoutGuidelines.js +2 -0
- package/dist/es2019/safe-plugin/index.js +1 -1
- package/dist/es2019/selection/context-helpers.js +1 -0
- package/dist/es2019/selection/gap-cursor/actions.js +2 -0
- package/dist/es2019/selection/gap-cursor/selection.js +4 -0
- package/dist/es2019/selection/gap-cursor/styles.js +1 -1
- package/dist/es2019/selection/index.js +8 -0
- package/dist/es2019/selection/utils.js +9 -0
- package/dist/es2019/styles/shared/annotation.js +4 -0
- package/dist/es2019/styles/shared/drag-handle.js +1 -0
- package/dist/es2019/styles/shared/dropdown-menu.js +2 -0
- package/dist/es2019/styles/shared/expand.js +3 -1
- package/dist/es2019/styles/shared/extension.js +2 -0
- package/dist/es2019/styles/shared/layout.js +2 -0
- package/dist/es2019/styles/shared/lists.js +6 -0
- package/dist/es2019/styles/shared/media-single.js +1 -1
- package/dist/es2019/styles/shared/native-anchor.js +5 -1
- package/dist/es2019/styles/shared/panel.js +5 -0
- package/dist/es2019/styles/shared/plugins.js +6 -6
- package/dist/es2019/styles/shared/resizer.js +1 -0
- package/dist/es2019/styles/shared/smartCard.js +2 -0
- package/dist/es2019/styles/shared/sync-block.js +10 -0
- package/dist/es2019/styles/shared/table.js +1 -0
- package/dist/es2019/sync-block/SyncBlockActionsContext.js +1 -0
- package/dist/es2019/table/content-mode.js +1 -0
- package/dist/es2019/toolbar/context.js +1 -0
- package/dist/es2019/toolbar/keys.js +1 -0
- package/dist/es2019/toolbar/rank.js +1 -0
- package/dist/es2019/transforms/extension.js +3 -0
- package/dist/es2019/transforms/layout.js +5 -0
- package/dist/es2019/transforms/list-transforms.js +2 -0
- package/dist/es2019/type-ahead/index.js +2 -0
- package/dist/es2019/types/annotation/emitter.js +1 -0
- package/dist/es2019/ugc-tokens/editor-ugc-token-names.js +3 -0
- package/dist/es2019/ugc-tokens/index.js +2 -0
- package/dist/es2019/ui/BaseTheme/index.js +2 -0
- package/dist/es2019/ui/Caption/index.js +1 -0
- package/dist/es2019/ui/ContextPanel/context.js +3 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Expand/index.js +5 -1
- package/dist/es2019/ui/IntlErrorBoundary/index.js +1 -1
- package/dist/es2019/ui/LinkSearch/const.js +5 -0
- package/dist/es2019/ui/MediaSingle/grid.js +6 -0
- package/dist/es2019/ui/MediaSingle/styled.js +6 -1
- package/dist/es2019/ui/Messages/index.js +4 -0
- package/dist/es2019/ui/MultiBodiedExtension/index.js +1 -1
- package/dist/es2019/ui/OverflowShadow/index.js +1 -0
- package/dist/es2019/ui/PanelTextInput/styles.js +2 -0
- package/dist/es2019/ui/Popup/utils.js +35 -2
- package/dist/es2019/ui/TableSelector/index.js +2 -0
- package/dist/es2019/ui/TableSelector/table-selector.js +2 -0
- package/dist/es2019/ui/WidthProvider/index.js +9 -0
- package/dist/es2019/ui/clear-next-sibling-margin-top.js +1 -1
- package/dist/es2019/ui-color/ColorPalette/Color/styles.js +1 -1
- package/dist/es2019/ui-color/ColorPalette/Palettes/highlightColorPalette.js +4 -0
- package/dist/es2019/ui-color/ColorPalette/Palettes/paletteMessagesTokenModeNames.js +10 -0
- package/dist/es2019/ui-color/ColorPalette/utils.js +6 -0
- package/dist/es2019/ui-menu/Dropdown/index.js +2 -0
- package/dist/es2019/ui-menu/DropdownMenu/index.js +4 -0
- package/dist/es2019/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +1 -0
- package/dist/es2019/utils/analytics.js +6 -0
- package/dist/es2019/utils/annotation/index.js +1 -0
- package/dist/es2019/utils/breakout.js +9 -1
- package/dist/es2019/utils/browser-extensions.js +1 -0
- package/dist/es2019/utils/calculate-toolbar-position.js +3 -0
- package/dist/es2019/utils/commands.js +2 -0
- package/dist/es2019/utils/compare-props.js +4 -0
- package/dist/es2019/utils/compareNodes.js +3 -0
- package/dist/es2019/utils/create-wrap-selection-transaction.js +1 -0
- package/dist/es2019/utils/date.js +8 -0
- package/dist/es2019/utils/document.js +6 -0
- package/dist/es2019/utils/dom.js +4 -0
- package/dist/es2019/utils/editor-core-utils.js +2 -0
- package/dist/es2019/utils/get-performance-options.js +2 -0
- package/dist/es2019/utils/hyperlink.js +6 -2
- package/dist/es2019/utils/index.js +1 -0
- package/dist/es2019/utils/input-rules.js +1 -0
- package/dist/es2019/utils/list.js +3 -0
- package/dist/es2019/utils/node-type-utils.js +3 -0
- package/dist/es2019/utils/nodes.js +11 -0
- package/dist/es2019/utils/parsePx.js +3 -0
- package/dist/es2019/utils/performance/is-performance-api-available.js +2 -0
- package/dist/es2019/utils/performance/measure-render.js +1 -0
- package/dist/es2019/utils/performance/measure-tti.js +2 -0
- package/dist/es2019/utils/performance/measure.js +2 -0
- package/dist/es2019/utils/processRawValue.js +2 -0
- package/dist/es2019/utils/profiler/render-count.js +1 -0
- package/dist/es2019/utils/referentiality.js +5 -0
- package/dist/es2019/utils/scroll-gutter.js +2 -0
- package/dist/es2019/utils/should-auto-linkify-tld.js +1 -0
- package/dist/es2019/utils/slice.js +6 -0
- package/dist/es2019/utils/table.js +1 -0
- package/dist/es2019/utils/track-unsupported-content.js +3 -0
- package/dist/es2019/utils/validate-using-spec.js +4 -0
- package/dist/es2019/utils/validator.js +7 -0
- package/dist/es2019/whitespace/whitespace.js +1 -0
- package/dist/esm/analytics/linking-utils.js +8 -0
- package/dist/esm/analytics/types/enums.js +17 -0
- package/dist/esm/analytics/types/extension-events.js +2 -0
- package/dist/esm/analytics/types/format-events.js +2 -0
- package/dist/esm/analytics/types/general-events.js +6 -0
- package/dist/esm/analytics/types/inline-comment-events.js +2 -0
- package/dist/esm/analytics/types/insert-events.js +6 -0
- package/dist/esm/analytics/types/list-events.js +6 -0
- package/dist/esm/analytics/types/node-events.js +2 -0
- package/dist/esm/analytics/types/paste-events.js +2 -0
- package/dist/esm/analytics/types/substitute-events.js +2 -0
- package/dist/esm/analytics/types/table-events.js +8 -0
- package/dist/esm/analytics/types/utils.js +2 -0
- package/dist/esm/annotation/index.js +1 -0
- package/dist/esm/block-menu/block-link.js +3 -0
- package/dist/esm/block-menu/key-deprecated.js +1 -0
- package/dist/esm/block-menu/key.js +1 -0
- package/dist/esm/block-menu/rank-deprecated.js +7 -0
- package/dist/esm/block-menu/rank.js +1 -0
- package/dist/esm/block-menu/scroll-to-block-utils.js +2 -0
- package/dist/esm/card/MediaAndEmbedsToolbar/index.js +7 -1
- package/dist/esm/clipboard/index.js +7 -0
- package/dist/esm/code-block/index.js +1 -0
- package/dist/esm/collab/index.js +1 -0
- package/dist/esm/commands/index.js +2 -0
- package/dist/esm/copy-button/index.js +4 -0
- package/dist/esm/element-browser/components/ElementList/ElementList.js +6 -1
- package/dist/esm/element-browser/components/ElementList/utils.js +2 -0
- package/dist/esm/element-browser/constants.js +1 -0
- package/dist/esm/event-dispatcher/index.js +1 -0
- package/dist/esm/expand/index.js +3 -0
- package/dist/esm/experiences/consts.js +4 -0
- package/dist/esm/extensibility/Extension/Extension/styles.js +6 -6
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -0
- package/dist/esm/extensibility/Extension/Lozenge/LozengeComponent.js +1 -0
- package/dist/esm/extensibility/Extension/styles.js +4 -4
- package/dist/esm/extensibility/MultiBodiedExtension/styles.js +3 -3
- package/dist/esm/extensibility/extensionNodeView.js +2 -0
- package/dist/esm/extensions/extension-fields-helpers.js +3 -0
- package/dist/esm/extensions/extension-handlers.js +5 -0
- package/dist/esm/extensions/manifest-helpers.js +12 -0
- package/dist/esm/extensions/module-helpers.js +4 -0
- package/dist/esm/extensions/types/field-definitions.js +4 -2
- package/dist/esm/floating-toolbar/index.js +5 -1
- package/dist/esm/guideline/constants.js +1 -0
- package/dist/esm/icons/shared/SteppedRainbowIconDecoration.js +4 -0
- package/dist/esm/insert/index.js +8 -0
- package/dist/esm/keymaps/consts.js +1 -0
- package/dist/esm/keymaps/index.js +1 -0
- package/dist/esm/lazy-node-view/index.js +3 -0
- package/dist/esm/lazy-node-view/lazy-scheduler.js +2 -0
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +5 -2
- package/dist/esm/link/LinkSearch/LinkSearchList.js +2 -0
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +7 -3
- package/dist/esm/link/LinkSearch/ToolbarComponents.js +3 -3
- package/dist/esm/link/utils.js +2 -0
- package/dist/esm/lists/block-mark.js +8 -0
- package/dist/esm/lists/node.js +2 -0
- package/dist/esm/lists/restore-selection.js +1 -0
- package/dist/esm/lists/selection.js +1 -0
- package/dist/esm/mark/commands.js +3 -0
- package/dist/esm/media-inline/constants.js +4 -0
- package/dist/esm/media-inline/media-inline-image-card.js +2 -0
- package/dist/esm/media-inline/styles.js +10 -4
- package/dist/esm/media-single/ExternalImageBadge.js +2 -0
- package/dist/esm/media-single/constants.js +2 -0
- package/dist/esm/media-single/utils.js +3 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/monitoring/normalise-sentry-breadcrumbs.js +1 -0
- package/dist/esm/node-anchor/limited-mode-document-thresholds.js +3 -0
- package/dist/esm/node-anchor/node-anchor-provider.js +1 -0
- package/dist/esm/node-selection/index.js +2 -0
- package/dist/esm/node-width/index.js +7 -0
- package/dist/esm/performance-measures/index.js +6 -0
- package/dist/esm/preset/core-plugin/pm-plugins/appearance-plugin.js +2 -0
- package/dist/esm/preset/core-plugin/requestDocument.js +4 -1
- package/dist/esm/preset/plugin-injection-api.js +2 -0
- package/dist/esm/provider-factory/context.js +6 -0
- package/dist/esm/provider-helpers/promise-helpers.js +1 -0
- package/dist/esm/quick-insert/assets/index.js +1 -0
- package/dist/esm/quick-insert/utils.js +1 -0
- package/dist/esm/rank.js +1 -0
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +1 -0
- package/dist/esm/resizer/BreakoutResizer.js +2 -0
- package/dist/esm/resizer/useBreakoutGuidelines.js +2 -0
- package/dist/esm/safe-plugin/index.js +1 -1
- package/dist/esm/selection/context-helpers.js +1 -0
- package/dist/esm/selection/gap-cursor/actions.js +2 -0
- package/dist/esm/selection/gap-cursor/selection.js +4 -0
- package/dist/esm/selection/gap-cursor/styles.js +1 -1
- package/dist/esm/selection/index.js +8 -0
- package/dist/esm/selection/utils.js +9 -0
- package/dist/esm/styles/shared/annotation.js +4 -0
- package/dist/esm/styles/shared/drag-handle.js +1 -0
- package/dist/esm/styles/shared/dropdown-menu.js +2 -0
- package/dist/esm/styles/shared/expand.js +3 -1
- package/dist/esm/styles/shared/extension.js +2 -0
- package/dist/esm/styles/shared/layout.js +2 -0
- package/dist/esm/styles/shared/lists.js +6 -0
- package/dist/esm/styles/shared/media-single.js +1 -1
- package/dist/esm/styles/shared/native-anchor.js +5 -1
- package/dist/esm/styles/shared/panel.js +5 -0
- package/dist/esm/styles/shared/plugins.js +6 -6
- package/dist/esm/styles/shared/resizer.js +1 -0
- package/dist/esm/styles/shared/smartCard.js +2 -0
- package/dist/esm/styles/shared/sync-block.js +10 -0
- package/dist/esm/styles/shared/table.js +1 -0
- package/dist/esm/sync-block/SyncBlockActionsContext.js +1 -0
- package/dist/esm/table/content-mode.js +1 -0
- package/dist/esm/toolbar/context.js +1 -0
- package/dist/esm/toolbar/keys.js +1 -0
- package/dist/esm/toolbar/rank.js +1 -0
- package/dist/esm/transforms/extension.js +3 -0
- package/dist/esm/transforms/layout.js +5 -0
- package/dist/esm/transforms/list-transforms.js +2 -0
- package/dist/esm/type-ahead/index.js +2 -0
- package/dist/esm/types/annotation/emitter.js +1 -0
- package/dist/esm/ugc-tokens/editor-ugc-token-names.js +3 -0
- package/dist/esm/ugc-tokens/index.js +2 -0
- package/dist/esm/ui/BaseTheme/index.js +2 -0
- package/dist/esm/ui/Caption/index.js +1 -0
- package/dist/esm/ui/ContextPanel/context.js +3 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Expand/index.js +5 -1
- package/dist/esm/ui/IntlErrorBoundary/index.js +1 -1
- package/dist/esm/ui/LinkSearch/const.js +5 -0
- package/dist/esm/ui/MediaSingle/grid.js +6 -0
- package/dist/esm/ui/MediaSingle/styled.js +6 -1
- package/dist/esm/ui/Messages/index.js +4 -0
- package/dist/esm/ui/MultiBodiedExtension/index.js +1 -1
- package/dist/esm/ui/OverflowShadow/index.js +1 -0
- package/dist/esm/ui/PanelTextInput/styles.js +2 -0
- package/dist/esm/ui/Popup/utils.js +35 -2
- package/dist/esm/ui/TableSelector/index.js +2 -0
- package/dist/esm/ui/TableSelector/table-selector.js +2 -0
- package/dist/esm/ui/WidthProvider/index.js +9 -0
- package/dist/esm/ui/clear-next-sibling-margin-top.js +1 -1
- package/dist/esm/ui-color/ColorPalette/Color/styles.js +1 -1
- package/dist/esm/ui-color/ColorPalette/Palettes/highlightColorPalette.js +4 -0
- package/dist/esm/ui-color/ColorPalette/Palettes/paletteMessagesTokenModeNames.js +10 -0
- package/dist/esm/ui-color/ColorPalette/utils.js +6 -0
- package/dist/esm/ui-menu/Dropdown/index.js +2 -0
- package/dist/esm/ui-menu/DropdownMenu/index.js +4 -0
- package/dist/esm/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +1 -0
- package/dist/esm/utils/analytics.js +6 -0
- package/dist/esm/utils/annotation/index.js +1 -0
- package/dist/esm/utils/breakout.js +9 -1
- package/dist/esm/utils/browser-extensions.js +1 -0
- package/dist/esm/utils/calculate-toolbar-position.js +3 -0
- package/dist/esm/utils/commands.js +2 -0
- package/dist/esm/utils/compare-props.js +4 -0
- package/dist/esm/utils/compareNodes.js +3 -0
- package/dist/esm/utils/create-wrap-selection-transaction.js +1 -0
- package/dist/esm/utils/date.js +8 -0
- package/dist/esm/utils/document.js +6 -0
- package/dist/esm/utils/dom.js +4 -0
- package/dist/esm/utils/editor-core-utils.js +2 -0
- package/dist/esm/utils/get-performance-options.js +2 -0
- package/dist/esm/utils/hyperlink.js +6 -2
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/input-rules.js +1 -0
- package/dist/esm/utils/list.js +3 -0
- package/dist/esm/utils/node-type-utils.js +3 -0
- package/dist/esm/utils/nodes.js +11 -0
- package/dist/esm/utils/parsePx.js +3 -0
- package/dist/esm/utils/performance/is-performance-api-available.js +2 -0
- package/dist/esm/utils/performance/measure-render.js +1 -0
- package/dist/esm/utils/performance/measure-tti.js +2 -0
- package/dist/esm/utils/performance/measure.js +2 -0
- package/dist/esm/utils/processRawValue.js +2 -0
- package/dist/esm/utils/profiler/render-count.js +1 -0
- package/dist/esm/utils/referentiality.js +5 -0
- package/dist/esm/utils/scroll-gutter.js +2 -0
- package/dist/esm/utils/should-auto-linkify-tld.js +1 -0
- package/dist/esm/utils/slice.js +6 -0
- package/dist/esm/utils/table.js +1 -0
- package/dist/esm/utils/track-unsupported-content.js +3 -0
- package/dist/esm/utils/validate-using-spec.js +4 -0
- package/dist/esm/utils/validator.js +7 -0
- package/dist/esm/whitespace/whitespace.js +1 -0
- package/dist/types/analytics/index.d.ts +1 -1
- package/dist/types/analytics/types/ai-suggestions-events.d.ts +6 -1
- package/dist/types/analytics/types/enums.d.ts +1 -0
- package/dist/types/analytics/types/insert-events.d.ts +3 -2
- package/dist/types/analytics/types/node-events.d.ts +16 -4
- package/dist/types/styles/shared/expand.d.ts +6 -6
- package/dist/types/ui/Popup/utils.d.ts +23 -1
- package/dist/types-ts4.5/analytics/index.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/ai-suggestions-events.d.ts +6 -1
- package/dist/types-ts4.5/analytics/types/enums.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/insert-events.d.ts +3 -2
- package/dist/types-ts4.5/analytics/types/node-events.d.ts +16 -4
- package/dist/types-ts4.5/styles/shared/expand.d.ts +6 -6
- package/dist/types-ts4.5/ui/Popup/utils.d.ts +23 -1
- package/package.json +6 -6
|
@@ -59,4 +59,4 @@ export { type NcsSessionStepEventAEP, type NcsSessionStepMetrics, } from './type
|
|
|
59
59
|
export type { BlockMenuEventPayload } from './types/block-menu-events';
|
|
60
60
|
export type { BreakoutEventPayload, BreakoutSupportedNodes } from './types/breakout-events';
|
|
61
61
|
export type { RendererSyncBlockEventPayload, SyncBlockEventPayload, SyncedBlockSSRErrorAEP, } from './types/sync-block-events';
|
|
62
|
-
export type { AiSuggestionsEventPayload } from './types/ai-suggestions-events';
|
|
62
|
+
export type { AiSuggestionsEntryPoint, AiSuggestionsEventPayload, } from './types/ai-suggestions-events';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
2
|
import type { OperationalAEP, TrackAEP } from './utils';
|
|
3
|
+
export type AiSuggestionsEntryPoint = 'primaryToolbar' | 'commentsEmptyState';
|
|
3
4
|
type NoDiffSuggestionAEP = OperationalAEP<ACTION.NO_DIFF_FOUND, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
4
5
|
suggestionType: string;
|
|
5
6
|
toolCalls: {
|
|
@@ -8,6 +9,9 @@ type NoDiffSuggestionAEP = OperationalAEP<ACTION.NO_DIFF_FOUND, ACTION_SUBJECT.A
|
|
|
8
9
|
nodeTypes: string[];
|
|
9
10
|
}[];
|
|
10
11
|
}>;
|
|
12
|
+
type EntryPointClickedAEP = TrackAEP<ACTION.CLICKED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
13
|
+
entryPoint: AiSuggestionsEntryPoint;
|
|
14
|
+
}, undefined>;
|
|
11
15
|
type AcceptSuggestionAEP = TrackAEP<ACTION.ACCEPTED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
12
16
|
affectedBlocks: number;
|
|
13
17
|
charactersAdded: number;
|
|
@@ -16,6 +20,7 @@ type AcceptSuggestionAEP = TrackAEP<ACTION.ACCEPTED, ACTION_SUBJECT.AI_SUGGESTIO
|
|
|
16
20
|
suggestionType: string;
|
|
17
21
|
}, undefined>;
|
|
18
22
|
type DiscardSuggestionAEP = TrackAEP<ACTION.DISCARDED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
23
|
+
affectedBlocks: number;
|
|
19
24
|
entryPoint: 'sidebar' | 'card';
|
|
20
25
|
suggestionType: string;
|
|
21
26
|
}, undefined>;
|
|
@@ -28,5 +33,5 @@ type ViewSuggestionAEP = TrackAEP<ACTION.VIEWED, ACTION_SUBJECT.AI_SUGGESTIONS,
|
|
|
28
33
|
suggestionCardCharacterCount: number;
|
|
29
34
|
suggestionType: string;
|
|
30
35
|
}, undefined>;
|
|
31
|
-
export type AiSuggestionsEventPayload = NoDiffSuggestionAEP | AcceptSuggestionAEP | DiscardSuggestionAEP | ViewSuggestionAEP;
|
|
36
|
+
export type AiSuggestionsEventPayload = NoDiffSuggestionAEP | EntryPointClickedAEP | AcceptSuggestionAEP | DiscardSuggestionAEP | ViewSuggestionAEP;
|
|
32
37
|
export {};
|
|
@@ -113,9 +113,10 @@ type InsertLayoutAEP = InsertAEP<ACTION_SUBJECT_ID.LAYOUT, {
|
|
|
113
113
|
nodeTypes?: string;
|
|
114
114
|
}, undefined>;
|
|
115
115
|
type InsertLayoutColumnAEP = InsertAEP<ACTION_SUBJECT_ID.LAYOUT_COLUMN, {
|
|
116
|
-
columnCount: number;
|
|
117
116
|
endIndex: number;
|
|
118
|
-
inputMethod: INPUT_METHOD.LAYOUT_COLUMN_MENU | INPUT_METHOD.
|
|
117
|
+
inputMethod: INPUT_METHOD.LAYOUT_COLUMN_MENU | INPUT_METHOD.SHORTCUT;
|
|
118
|
+
newColumnCount: number;
|
|
119
|
+
previousColumnCount: number;
|
|
119
120
|
selectedCount: number;
|
|
120
121
|
side: 'left' | 'right';
|
|
121
122
|
startIndex: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PanelType } from '@atlaskit/adf-schema';
|
|
2
2
|
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, INPUT_METHOD } from './enums';
|
|
3
|
-
import type { ChangeTypeAEP, TrackAEP } from './utils';
|
|
3
|
+
import type { ChangeTypeAEP, TrackAEP, UIAEP } from './utils';
|
|
4
4
|
export declare enum LAYOUT_TYPE {
|
|
5
5
|
SINGLE_COL = "singleColumn",
|
|
6
6
|
TWO_COLS_EQUAL = "twoColumnsEqual",
|
|
@@ -54,16 +54,27 @@ type DeletedLayoutAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.LAYOUT, undefine
|
|
|
54
54
|
inputMethod?: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TOOLBAR;
|
|
55
55
|
layout?: LAYOUT_TYPE;
|
|
56
56
|
}, undefined>;
|
|
57
|
-
type
|
|
57
|
+
type OpenedLayoutColumnMenuAEP = UIAEP<ACTION.OPENED, ACTION_SUBJECT.LAYOUT_COLUMN_MENU, undefined, {
|
|
58
58
|
columnCount: number;
|
|
59
59
|
endIndex: number;
|
|
60
|
-
inputMethod: INPUT_METHOD.
|
|
60
|
+
inputMethod: INPUT_METHOD.MOUSE | INPUT_METHOD.KEYBOARD;
|
|
61
|
+
selectedCount: number;
|
|
62
|
+
startIndex: number;
|
|
63
|
+
}, undefined>;
|
|
64
|
+
type DeletedLayoutColumnAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.DOCUMENT, ACTION_SUBJECT_ID.LAYOUT_COLUMN, {
|
|
65
|
+
endIndex: number;
|
|
66
|
+
hadContent: boolean;
|
|
67
|
+
inputMethod: INPUT_METHOD.LAYOUT_COLUMN_MENU | INPUT_METHOD.SHORTCUT;
|
|
68
|
+
newColumnCount: number;
|
|
69
|
+
previousColumnCount: number;
|
|
61
70
|
selectedCount: number;
|
|
62
71
|
startIndex: number;
|
|
63
72
|
}, undefined>;
|
|
64
73
|
type UpdatedLayoutColumnVerticalAlignmentAEP = TrackAEP<ACTION.UPDATED, ACTION_SUBJECT.DOCUMENT, ACTION_SUBJECT_ID.LAYOUT_COLUMN, {
|
|
74
|
+
columnCount: number;
|
|
65
75
|
endIndex: number;
|
|
66
76
|
inputMethod: INPUT_METHOD.LAYOUT_COLUMN_MENU;
|
|
77
|
+
previousValign: 'top' | 'middle' | 'bottom' | 'mixed';
|
|
67
78
|
selectedCount: number;
|
|
68
79
|
startIndex: number;
|
|
69
80
|
updatedCount: number;
|
|
@@ -75,6 +86,7 @@ type DistributedLayoutColumnAEP = TrackAEP<ACTION.UPDATED, ACTION_SUBJECT.DOCUME
|
|
|
75
86
|
inputMethod: INPUT_METHOD.LAYOUT_COLUMN_MENU | INPUT_METHOD.FLOATING_TB;
|
|
76
87
|
selectedCount: number;
|
|
77
88
|
startIndex: number;
|
|
89
|
+
target: 'selectedColumns' | 'allColumns';
|
|
78
90
|
}, undefined>;
|
|
79
91
|
type ResizedLayoutColumnAEP = TrackAEP<ACTION.DRAGGED, ACTION_SUBJECT.DOCUMENT, ACTION_SUBJECT_ID.LAYOUT_COLUMN, {
|
|
80
92
|
/** Total number of columns in the layout section */
|
|
@@ -97,5 +109,5 @@ type UnsupportedContentAEP = TrackAEP<ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED, AC
|
|
|
97
109
|
type: string;
|
|
98
110
|
};
|
|
99
111
|
}, undefined>;
|
|
100
|
-
export type NodeEventPayload = ChangePanelAEP | DeletePanelAEP | DeletedSmartLink | VisitedSmartLink | VisitedHyperlink | ChangedLayoutAEP | DeletedLayoutAEP | DeletedLayoutColumnAEP | UpdatedLayoutColumnVerticalAlignmentAEP | DistributedLayoutColumnAEP | ResizedLayoutColumnAEP | DeletedExpandAEP | NodeDeletedAEP | ChangeSmartLinkAEP | ChangeNativeEmbedAEP | UnsupportedContentAEP;
|
|
112
|
+
export type NodeEventPayload = ChangePanelAEP | DeletePanelAEP | DeletedSmartLink | VisitedSmartLink | VisitedHyperlink | ChangedLayoutAEP | DeletedLayoutAEP | OpenedLayoutColumnMenuAEP | DeletedLayoutColumnAEP | UpdatedLayoutColumnVerticalAlignmentAEP | DistributedLayoutColumnAEP | ResizedLayoutColumnAEP | DeletedExpandAEP | NodeDeletedAEP | ChangeSmartLinkAEP | ChangeNativeEmbedAEP | UnsupportedContentAEP;
|
|
101
113
|
export {};
|
|
@@ -6,16 +6,16 @@ export declare const expandIconWrapperStyle: SerializedStyles;
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const expandIconContainerStyle: SerializedStyles;
|
|
8
8
|
export declare const expandClassNames: {
|
|
9
|
-
|
|
9
|
+
content: string;
|
|
10
|
+
contentCollapsed: string;
|
|
10
11
|
expanded: string;
|
|
11
|
-
titleContainer: string;
|
|
12
|
-
inputContainer: string;
|
|
13
|
-
iconContainer: string;
|
|
14
12
|
icon: string;
|
|
15
13
|
iconButton: string;
|
|
14
|
+
iconContainer: string;
|
|
16
15
|
iconSvg: string;
|
|
16
|
+
inputContainer: string;
|
|
17
|
+
prefix: string;
|
|
18
|
+
titleContainer: string;
|
|
17
19
|
titleInput: string;
|
|
18
|
-
content: string;
|
|
19
|
-
contentCollapsed: string;
|
|
20
20
|
type: (type: string) => string;
|
|
21
21
|
};
|
|
@@ -12,18 +12,40 @@ export interface CalculatePositionParams {
|
|
|
12
12
|
placement: [string, string];
|
|
13
13
|
popup?: HTMLElement;
|
|
14
14
|
rect?: DOMRect;
|
|
15
|
+
scrollableElement?: HTMLElement | false;
|
|
15
16
|
stick?: boolean;
|
|
16
17
|
target?: HTMLElement;
|
|
17
|
-
scrollableElement?: HTMLElement | false;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
+
* Determines the optimal vertical placement ('top' or 'bottom') for a popup relative to a target element.
|
|
20
21
|
* Decides if given fitHeight fits below or above the target taking boundaries into account.
|
|
22
|
+
*
|
|
23
|
+
* @param target - The target element to position the popup relative to
|
|
24
|
+
* @param boundariesElement - The boundaries element that constrains the popup positioning
|
|
25
|
+
* @param fitHeight - The desired height of the popup content
|
|
26
|
+
* @param alignY - Forced alignment direction ('top' or 'bottom')
|
|
27
|
+
* @param forcePlacement - Whether to force the placement to the alignY value
|
|
28
|
+
* @param preventOverflow - Whether to prevent overflow by forcing bottom placement when space above is insufficient
|
|
29
|
+
* @returns The optimal placement direction ('top' or 'bottom')
|
|
21
30
|
*/
|
|
22
31
|
export declare function getVerticalPlacement(target: HTMLElement, boundariesElement: HTMLElement, fitHeight?: number, alignY?: string, forcePlacement?: boolean, preventOverflow?: boolean): string;
|
|
23
32
|
/**
|
|
24
33
|
* Decides if given fitWidth fits to the left or to the right of the target taking boundaries into account.
|
|
25
34
|
*/
|
|
26
35
|
export declare function getHorizontalPlacement(target: HTMLElement, boundariesElement: HTMLElement, fitWidth?: number, alignX?: string, forcePlacement?: boolean, preventOverflow?: boolean): string;
|
|
36
|
+
/**
|
|
37
|
+
* Calculates the optimal placement for a popup element in both vertical and horizontal directions.
|
|
38
|
+
*
|
|
39
|
+
* @param target - The target element to position the popup relative to
|
|
40
|
+
* @param boundariesElement - The boundaries element that constrains the popup positioning
|
|
41
|
+
* @param fitWidth - The desired width of the popup content
|
|
42
|
+
* @param fitHeight - The desired height of the popup content
|
|
43
|
+
* @param alignX - Forced horizontal alignment direction
|
|
44
|
+
* @param alignY - Forced vertical alignment direction
|
|
45
|
+
* @param forcePlacement - Whether to force the placement to the specified alignment values
|
|
46
|
+
* @param preventOverflow - Whether to prevent overflow by adjusting placement
|
|
47
|
+
* @returns A tuple containing the vertical and horizontal placement directions
|
|
48
|
+
*/
|
|
27
49
|
export declare function calculatePlacement(target: HTMLElement, boundariesElement: HTMLElement, fitWidth?: number, fitHeight?: number, alignX?: string, alignY?: string, forcePlacement?: boolean, preventOverflow?: boolean): [string, string];
|
|
28
50
|
/**
|
|
29
51
|
* Calculates relative coordinates for placing popup along with the target.
|
|
@@ -59,4 +59,4 @@ export { type NcsSessionStepEventAEP, type NcsSessionStepMetrics, } from './type
|
|
|
59
59
|
export type { BlockMenuEventPayload } from './types/block-menu-events';
|
|
60
60
|
export type { BreakoutEventPayload, BreakoutSupportedNodes } from './types/breakout-events';
|
|
61
61
|
export type { RendererSyncBlockEventPayload, SyncBlockEventPayload, SyncedBlockSSRErrorAEP, } from './types/sync-block-events';
|
|
62
|
-
export type { AiSuggestionsEventPayload } from './types/ai-suggestions-events';
|
|
62
|
+
export type { AiSuggestionsEntryPoint, AiSuggestionsEventPayload, } from './types/ai-suggestions-events';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
2
|
import type { OperationalAEP, TrackAEP } from './utils';
|
|
3
|
+
export type AiSuggestionsEntryPoint = 'primaryToolbar' | 'commentsEmptyState';
|
|
3
4
|
type NoDiffSuggestionAEP = OperationalAEP<ACTION.NO_DIFF_FOUND, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
4
5
|
suggestionType: string;
|
|
5
6
|
toolCalls: {
|
|
@@ -8,6 +9,9 @@ type NoDiffSuggestionAEP = OperationalAEP<ACTION.NO_DIFF_FOUND, ACTION_SUBJECT.A
|
|
|
8
9
|
nodeTypes: string[];
|
|
9
10
|
}[];
|
|
10
11
|
}>;
|
|
12
|
+
type EntryPointClickedAEP = TrackAEP<ACTION.CLICKED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
13
|
+
entryPoint: AiSuggestionsEntryPoint;
|
|
14
|
+
}, undefined>;
|
|
11
15
|
type AcceptSuggestionAEP = TrackAEP<ACTION.ACCEPTED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
12
16
|
affectedBlocks: number;
|
|
13
17
|
charactersAdded: number;
|
|
@@ -16,6 +20,7 @@ type AcceptSuggestionAEP = TrackAEP<ACTION.ACCEPTED, ACTION_SUBJECT.AI_SUGGESTIO
|
|
|
16
20
|
suggestionType: string;
|
|
17
21
|
}, undefined>;
|
|
18
22
|
type DiscardSuggestionAEP = TrackAEP<ACTION.DISCARDED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
23
|
+
affectedBlocks: number;
|
|
19
24
|
entryPoint: 'sidebar' | 'card';
|
|
20
25
|
suggestionType: string;
|
|
21
26
|
}, undefined>;
|
|
@@ -28,5 +33,5 @@ type ViewSuggestionAEP = TrackAEP<ACTION.VIEWED, ACTION_SUBJECT.AI_SUGGESTIONS,
|
|
|
28
33
|
suggestionCardCharacterCount: number;
|
|
29
34
|
suggestionType: string;
|
|
30
35
|
}, undefined>;
|
|
31
|
-
export type AiSuggestionsEventPayload = NoDiffSuggestionAEP | AcceptSuggestionAEP | DiscardSuggestionAEP | ViewSuggestionAEP;
|
|
36
|
+
export type AiSuggestionsEventPayload = NoDiffSuggestionAEP | EntryPointClickedAEP | AcceptSuggestionAEP | DiscardSuggestionAEP | ViewSuggestionAEP;
|
|
32
37
|
export {};
|
|
@@ -113,9 +113,10 @@ type InsertLayoutAEP = InsertAEP<ACTION_SUBJECT_ID.LAYOUT, {
|
|
|
113
113
|
nodeTypes?: string;
|
|
114
114
|
}, undefined>;
|
|
115
115
|
type InsertLayoutColumnAEP = InsertAEP<ACTION_SUBJECT_ID.LAYOUT_COLUMN, {
|
|
116
|
-
columnCount: number;
|
|
117
116
|
endIndex: number;
|
|
118
|
-
inputMethod: INPUT_METHOD.LAYOUT_COLUMN_MENU | INPUT_METHOD.
|
|
117
|
+
inputMethod: INPUT_METHOD.LAYOUT_COLUMN_MENU | INPUT_METHOD.SHORTCUT;
|
|
118
|
+
newColumnCount: number;
|
|
119
|
+
previousColumnCount: number;
|
|
119
120
|
selectedCount: number;
|
|
120
121
|
side: 'left' | 'right';
|
|
121
122
|
startIndex: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PanelType } from '@atlaskit/adf-schema';
|
|
2
2
|
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, INPUT_METHOD } from './enums';
|
|
3
|
-
import type { ChangeTypeAEP, TrackAEP } from './utils';
|
|
3
|
+
import type { ChangeTypeAEP, TrackAEP, UIAEP } from './utils';
|
|
4
4
|
export declare enum LAYOUT_TYPE {
|
|
5
5
|
SINGLE_COL = "singleColumn",
|
|
6
6
|
TWO_COLS_EQUAL = "twoColumnsEqual",
|
|
@@ -54,16 +54,27 @@ type DeletedLayoutAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.LAYOUT, undefine
|
|
|
54
54
|
inputMethod?: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TOOLBAR;
|
|
55
55
|
layout?: LAYOUT_TYPE;
|
|
56
56
|
}, undefined>;
|
|
57
|
-
type
|
|
57
|
+
type OpenedLayoutColumnMenuAEP = UIAEP<ACTION.OPENED, ACTION_SUBJECT.LAYOUT_COLUMN_MENU, undefined, {
|
|
58
58
|
columnCount: number;
|
|
59
59
|
endIndex: number;
|
|
60
|
-
inputMethod: INPUT_METHOD.
|
|
60
|
+
inputMethod: INPUT_METHOD.MOUSE | INPUT_METHOD.KEYBOARD;
|
|
61
|
+
selectedCount: number;
|
|
62
|
+
startIndex: number;
|
|
63
|
+
}, undefined>;
|
|
64
|
+
type DeletedLayoutColumnAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.DOCUMENT, ACTION_SUBJECT_ID.LAYOUT_COLUMN, {
|
|
65
|
+
endIndex: number;
|
|
66
|
+
hadContent: boolean;
|
|
67
|
+
inputMethod: INPUT_METHOD.LAYOUT_COLUMN_MENU | INPUT_METHOD.SHORTCUT;
|
|
68
|
+
newColumnCount: number;
|
|
69
|
+
previousColumnCount: number;
|
|
61
70
|
selectedCount: number;
|
|
62
71
|
startIndex: number;
|
|
63
72
|
}, undefined>;
|
|
64
73
|
type UpdatedLayoutColumnVerticalAlignmentAEP = TrackAEP<ACTION.UPDATED, ACTION_SUBJECT.DOCUMENT, ACTION_SUBJECT_ID.LAYOUT_COLUMN, {
|
|
74
|
+
columnCount: number;
|
|
65
75
|
endIndex: number;
|
|
66
76
|
inputMethod: INPUT_METHOD.LAYOUT_COLUMN_MENU;
|
|
77
|
+
previousValign: 'top' | 'middle' | 'bottom' | 'mixed';
|
|
67
78
|
selectedCount: number;
|
|
68
79
|
startIndex: number;
|
|
69
80
|
updatedCount: number;
|
|
@@ -75,6 +86,7 @@ type DistributedLayoutColumnAEP = TrackAEP<ACTION.UPDATED, ACTION_SUBJECT.DOCUME
|
|
|
75
86
|
inputMethod: INPUT_METHOD.LAYOUT_COLUMN_MENU | INPUT_METHOD.FLOATING_TB;
|
|
76
87
|
selectedCount: number;
|
|
77
88
|
startIndex: number;
|
|
89
|
+
target: 'selectedColumns' | 'allColumns';
|
|
78
90
|
}, undefined>;
|
|
79
91
|
type ResizedLayoutColumnAEP = TrackAEP<ACTION.DRAGGED, ACTION_SUBJECT.DOCUMENT, ACTION_SUBJECT_ID.LAYOUT_COLUMN, {
|
|
80
92
|
/** Total number of columns in the layout section */
|
|
@@ -97,5 +109,5 @@ type UnsupportedContentAEP = TrackAEP<ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED, AC
|
|
|
97
109
|
type: string;
|
|
98
110
|
};
|
|
99
111
|
}, undefined>;
|
|
100
|
-
export type NodeEventPayload = ChangePanelAEP | DeletePanelAEP | DeletedSmartLink | VisitedSmartLink | VisitedHyperlink | ChangedLayoutAEP | DeletedLayoutAEP | DeletedLayoutColumnAEP | UpdatedLayoutColumnVerticalAlignmentAEP | DistributedLayoutColumnAEP | ResizedLayoutColumnAEP | DeletedExpandAEP | NodeDeletedAEP | ChangeSmartLinkAEP | ChangeNativeEmbedAEP | UnsupportedContentAEP;
|
|
112
|
+
export type NodeEventPayload = ChangePanelAEP | DeletePanelAEP | DeletedSmartLink | VisitedSmartLink | VisitedHyperlink | ChangedLayoutAEP | DeletedLayoutAEP | OpenedLayoutColumnMenuAEP | DeletedLayoutColumnAEP | UpdatedLayoutColumnVerticalAlignmentAEP | DistributedLayoutColumnAEP | ResizedLayoutColumnAEP | DeletedExpandAEP | NodeDeletedAEP | ChangeSmartLinkAEP | ChangeNativeEmbedAEP | UnsupportedContentAEP;
|
|
101
113
|
export {};
|
|
@@ -6,16 +6,16 @@ export declare const expandIconWrapperStyle: SerializedStyles;
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const expandIconContainerStyle: SerializedStyles;
|
|
8
8
|
export declare const expandClassNames: {
|
|
9
|
-
|
|
9
|
+
content: string;
|
|
10
|
+
contentCollapsed: string;
|
|
10
11
|
expanded: string;
|
|
11
|
-
titleContainer: string;
|
|
12
|
-
inputContainer: string;
|
|
13
|
-
iconContainer: string;
|
|
14
12
|
icon: string;
|
|
15
13
|
iconButton: string;
|
|
14
|
+
iconContainer: string;
|
|
16
15
|
iconSvg: string;
|
|
16
|
+
inputContainer: string;
|
|
17
|
+
prefix: string;
|
|
18
|
+
titleContainer: string;
|
|
17
19
|
titleInput: string;
|
|
18
|
-
content: string;
|
|
19
|
-
contentCollapsed: string;
|
|
20
20
|
type: (type: string) => string;
|
|
21
21
|
};
|
|
@@ -15,18 +15,40 @@ export interface CalculatePositionParams {
|
|
|
15
15
|
];
|
|
16
16
|
popup?: HTMLElement;
|
|
17
17
|
rect?: DOMRect;
|
|
18
|
+
scrollableElement?: HTMLElement | false;
|
|
18
19
|
stick?: boolean;
|
|
19
20
|
target?: HTMLElement;
|
|
20
|
-
scrollableElement?: HTMLElement | false;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
+
* Determines the optimal vertical placement ('top' or 'bottom') for a popup relative to a target element.
|
|
23
24
|
* Decides if given fitHeight fits below or above the target taking boundaries into account.
|
|
25
|
+
*
|
|
26
|
+
* @param target - The target element to position the popup relative to
|
|
27
|
+
* @param boundariesElement - The boundaries element that constrains the popup positioning
|
|
28
|
+
* @param fitHeight - The desired height of the popup content
|
|
29
|
+
* @param alignY - Forced alignment direction ('top' or 'bottom')
|
|
30
|
+
* @param forcePlacement - Whether to force the placement to the alignY value
|
|
31
|
+
* @param preventOverflow - Whether to prevent overflow by forcing bottom placement when space above is insufficient
|
|
32
|
+
* @returns The optimal placement direction ('top' or 'bottom')
|
|
24
33
|
*/
|
|
25
34
|
export declare function getVerticalPlacement(target: HTMLElement, boundariesElement: HTMLElement, fitHeight?: number, alignY?: string, forcePlacement?: boolean, preventOverflow?: boolean): string;
|
|
26
35
|
/**
|
|
27
36
|
* Decides if given fitWidth fits to the left or to the right of the target taking boundaries into account.
|
|
28
37
|
*/
|
|
29
38
|
export declare function getHorizontalPlacement(target: HTMLElement, boundariesElement: HTMLElement, fitWidth?: number, alignX?: string, forcePlacement?: boolean, preventOverflow?: boolean): string;
|
|
39
|
+
/**
|
|
40
|
+
* Calculates the optimal placement for a popup element in both vertical and horizontal directions.
|
|
41
|
+
*
|
|
42
|
+
* @param target - The target element to position the popup relative to
|
|
43
|
+
* @param boundariesElement - The boundaries element that constrains the popup positioning
|
|
44
|
+
* @param fitWidth - The desired width of the popup content
|
|
45
|
+
* @param fitHeight - The desired height of the popup content
|
|
46
|
+
* @param alignX - Forced horizontal alignment direction
|
|
47
|
+
* @param alignY - Forced vertical alignment direction
|
|
48
|
+
* @param forcePlacement - Whether to force the placement to the specified alignment values
|
|
49
|
+
* @param preventOverflow - Whether to prevent overflow by adjusting placement
|
|
50
|
+
* @returns A tuple containing the vertical and horizontal placement directions
|
|
51
|
+
*/
|
|
30
52
|
export declare function calculatePlacement(target: HTMLElement, boundariesElement: HTMLElement, fitWidth?: number, fitHeight?: number, alignX?: string, alignY?: string, forcePlacement?: boolean, preventOverflow?: boolean): [
|
|
31
53
|
string,
|
|
32
54
|
string
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "115.
|
|
3
|
+
"version": "115.13.0",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@atlaskit/activity-provider": "^2.6.0",
|
|
40
|
-
"@atlaskit/adf-schema": "^
|
|
40
|
+
"@atlaskit/adf-schema": "^54.0.0",
|
|
41
41
|
"@atlaskit/adf-utils": "^19.33.0",
|
|
42
42
|
"@atlaskit/afm-i18n-platform-editor-editor-common": "2.18.0",
|
|
43
43
|
"@atlaskit/analytics-listeners": "^10.1.0",
|
|
44
44
|
"@atlaskit/analytics-namespaced-context": "^7.3.0",
|
|
45
45
|
"@atlaskit/analytics-next": "^11.3.0",
|
|
46
|
-
"@atlaskit/atlassian-context": "^0.
|
|
46
|
+
"@atlaskit/atlassian-context": "^0.11.0",
|
|
47
47
|
"@atlaskit/browser-apis": "^0.0.2",
|
|
48
48
|
"@atlaskit/button": "^23.11.0",
|
|
49
49
|
"@atlaskit/codemod-utils": "^4.3.0",
|
|
@@ -81,13 +81,13 @@
|
|
|
81
81
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
82
82
|
"@atlaskit/react-ufo": "^6.7.0",
|
|
83
83
|
"@atlaskit/section-message": "^8.13.0",
|
|
84
|
-
"@atlaskit/smart-card": "^44.
|
|
84
|
+
"@atlaskit/smart-card": "^44.28.0",
|
|
85
85
|
"@atlaskit/smart-user-picker": "^10.2.0",
|
|
86
86
|
"@atlaskit/spinner": "^19.1.0",
|
|
87
|
-
"@atlaskit/task-decision": "^20.
|
|
87
|
+
"@atlaskit/task-decision": "^20.2.0",
|
|
88
88
|
"@atlaskit/teams-app-config": "^1.12.0",
|
|
89
89
|
"@atlaskit/textfield": "^8.3.0",
|
|
90
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
90
|
+
"@atlaskit/tmp-editor-statsig": "^99.0.0",
|
|
91
91
|
"@atlaskit/tokens": "^13.3.0",
|
|
92
92
|
"@atlaskit/tooltip": "^22.6.0",
|
|
93
93
|
"@atlaskit/width-detector": "^5.1.0",
|