@atlaskit/editor-common 107.28.2 → 107.29.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 +16 -0
- package/afm-cc/tsconfig.json +7 -4
- package/dist/cjs/block-menu/messages.js +6 -1
- package/dist/cjs/messages/block-menu.js +3 -3
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/shared/smartCard.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/block-menu/messages.js +6 -1
- package/dist/es2019/messages/block-menu.js +3 -3
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/smartCard.js +2 -2
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/block-menu/messages.js +6 -1
- package/dist/esm/messages/block-menu.js +3 -3
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/shared/smartCard.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/api.d.ts +2 -2
- package/dist/types/analytics/types/activity-session-events.d.ts +14 -14
- package/dist/types/analytics/types/ai-definitions-events.d.ts +1 -1
- package/dist/types/analytics/types/ai-events.d.ts +2 -2
- package/dist/types/analytics/types/ai-inline-suggestion-events.d.ts +2 -2
- package/dist/types/analytics/types/ai-proactive-events.d.ts +12 -12
- package/dist/types/analytics/types/ai-unified-events.d.ts +11 -11
- package/dist/types/analytics/types/breakout-events.d.ts +4 -4
- package/dist/types/analytics/types/config-panel-events.d.ts +3 -3
- package/dist/types/analytics/types/cut-copy-events.d.ts +4 -4
- package/dist/types/analytics/types/datasource-clicked-events.d.ts +2 -2
- package/dist/types/analytics/types/date-events.d.ts +1 -1
- package/dist/types/analytics/types/element-events.d.ts +4 -4
- package/dist/types/analytics/types/events.d.ts +23 -23
- package/dist/types/analytics/types/extension-events.d.ts +5 -5
- package/dist/types/analytics/types/format-events.d.ts +6 -6
- package/dist/types/analytics/types/general-events.d.ts +32 -32
- package/dist/types/analytics/types/highlight-actions-menu-events.d.ts +1 -1
- package/dist/types/analytics/types/highlight-events.d.ts +1 -1
- package/dist/types/analytics/types/inline-comment-events.d.ts +1 -1
- package/dist/types/analytics/types/insert-events.d.ts +26 -26
- package/dist/types/analytics/types/link-events.d.ts +1 -1
- package/dist/types/analytics/types/link-tool-bar-events.d.ts +17 -17
- package/dist/types/analytics/types/list-events.d.ts +8 -8
- package/dist/types/analytics/types/loom-events.d.ts +1 -1
- package/dist/types/analytics/types/media-events.d.ts +9 -9
- package/dist/types/analytics/types/mention-events.d.ts +30 -30
- package/dist/types/analytics/types/move-content-events.d.ts +3 -3
- package/dist/types/analytics/types/ncs-session-step-events.d.ts +3 -3
- package/dist/types/analytics/types/node-events.d.ts +5 -5
- package/dist/types/analytics/types/offline-editing-event.d.ts +5 -5
- package/dist/types/analytics/types/paste-events.d.ts +6 -6
- package/dist/types/analytics/types/performance-report.d.ts +6 -6
- package/dist/types/analytics/types/referentiality-events.d.ts +2 -2
- package/dist/types/analytics/types/selection-events.d.ts +1 -1
- package/dist/types/analytics/types/smart-links.d.ts +2 -2
- package/dist/types/analytics/types/substitute-events.d.ts +1 -1
- package/dist/types/analytics/types/table-events.d.ts +19 -19
- package/dist/types/analytics/types/type-ahead.d.ts +3 -3
- package/dist/types/analytics/types/utils.d.ts +6 -6
- package/dist/types/analytics/types/view-events.d.ts +2 -2
- package/dist/types/annotation/index.d.ts +39 -39
- package/dist/types/block-menu/messages.d.ts +5 -0
- package/dist/types/card/LinkToolbarButtonGroup.d.ts +5 -5
- package/dist/types/card/MediaAndEmbedsToolbar/index.d.ts +2 -2
- package/dist/types/card/cardOptions.d.ts +36 -36
- package/dist/types/card/types.d.ts +8 -8
- package/dist/types/collab/index.d.ts +71 -71
- package/dist/types/doc-utils/editor-use-only.d.ts +1 -1
- package/dist/types/element-browser/ElementBrowser.d.ts +9 -9
- package/dist/types/element-browser/ViewMore.d.ts +1 -1
- package/dist/types/element-browser/components/CategoryList.d.ts +1 -1
- package/dist/types/element-browser/components/ElementList/ElementList.d.ts +11 -11
- package/dist/types/element-browser/components/ElementList/EmptyState.d.ts +1 -1
- package/dist/types/element-browser/components/ElementSearch.d.ts +4 -4
- package/dist/types/element-browser/components/StatelessElementBrowser.d.ts +14 -14
- package/dist/types/element-browser/hooks/use-select-and-focus-on-arrow-navigation.d.ts +12 -12
- package/dist/types/element-browser/types.d.ts +2 -2
- package/dist/types/extensibility/Extension/Extension/index.d.ts +12 -12
- package/dist/types/extensibility/Extension/InlineExtension/index.d.ts +5 -5
- package/dist/types/extensibility/Extension/LegacyContentHeader/index.d.ts +1 -1
- package/dist/types/extensibility/Extension/Lozenge/EditToggle.d.ts +2 -2
- package/dist/types/extensibility/Extension/Lozenge/ExtensionLabel.d.ts +6 -6
- package/dist/types/extensibility/Extension/Lozenge/LozengeComponent.d.ts +11 -11
- package/dist/types/extensibility/Extension/Lozenge/index.d.ts +9 -9
- package/dist/types/extensibility/Extension.d.ts +8 -8
- package/dist/types/extensibility/ExtensionComponent.d.ts +13 -13
- package/dist/types/extensibility/ExtensionNodeWrapper.d.ts +1 -1
- package/dist/types/extensibility/MultiBodiedExtension/action-api.d.ts +5 -5
- package/dist/types/extensibility/MultiBodiedExtension/index.d.ts +10 -10
- package/dist/types/extensibility/extensionNodeView.d.ts +8 -8
- package/dist/types/extensions/extension-handlers.d.ts +1 -1
- package/dist/types/extensions/types/extension-handler.d.ts +10 -10
- package/dist/types/extensions/types/extension-manifest-toolbar-item.d.ts +13 -13
- package/dist/types/extensions/types/extension-manifest.d.ts +26 -26
- package/dist/types/extensions/types/extension-provider.d.ts +3 -3
- package/dist/types/extensions/types/field-definitions.d.ts +40 -40
- package/dist/types/extensions/types/utils.d.ts +7 -7
- package/dist/types/floating-toolbar/DropdownMenuExtensionItems.d.ts +4 -4
- package/dist/types/floating-toolbar/DropdownMenuItem.d.ts +10 -10
- package/dist/types/guideline/relativeGuideline.d.ts +1 -1
- package/dist/types/guideline/types.d.ts +9 -9
- package/dist/types/guideline/updateGuideline.d.ts +1 -1
- package/dist/types/guideline/utils.d.ts +2 -2
- package/dist/types/icons/shared/DynamicStrokeIconDecoration.d.ts +1 -1
- package/dist/types/icons/shared/SteppedRainbowIconDecoration.d.ts +1 -1
- package/dist/types/insert/index.d.ts +2 -2
- package/dist/types/keymaps/index.d.ts +2 -2
- package/dist/types/lazy-node-view/index.d.ts +3 -3
- package/dist/types/link/ConfigureLinkOverlay/Dropdown.d.ts +3 -3
- package/dist/types/link/ConfigureLinkOverlay/handleNavigation.d.ts +1 -1
- package/dist/types/link/ConfigureLinkOverlay/index.d.ts +2 -2
- package/dist/types/link/LinkPicker/EditorLinkPicker/index.d.ts +3 -3
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +12 -12
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +8 -8
- package/dist/types/link/LinkSearch/LinkSearchList.d.ts +6 -6
- package/dist/types/link/LinkSearch/LinkSearchListItem.d.ts +4 -4
- package/dist/types/link/LinkSearch/types.d.ts +11 -11
- package/dist/types/link/types.d.ts +9 -9
- package/dist/types/lists/indentation.d.ts +1 -1
- package/dist/types/lists/node.d.ts +2 -2
- package/dist/types/lists/replace-content.d.ts +1 -1
- package/dist/types/lists/selection.d.ts +1 -1
- package/dist/types/media-inline/inline-image-card.d.ts +4 -4
- package/dist/types/media-inline/inline-image-wrapper.d.ts +3 -3
- package/dist/types/media-inline/media-inline-image-card.d.ts +8 -8
- package/dist/types/media-inline/types.d.ts +4 -4
- package/dist/types/media-inline/views/error-view.d.ts +3 -3
- package/dist/types/media-inline/views/loading-view.d.ts +2 -2
- package/dist/types/media-single/CommentBadge.d.ts +6 -6
- package/dist/types/media-single/CommentBadgeNext.d.ts +1 -1
- package/dist/types/media-single/MediaBadges.d.ts +4 -4
- package/dist/types/media-single/utils.d.ts +5 -5
- package/dist/types/node-visibility/node-visibility-manager.d.ts +5 -5
- package/dist/types/portal/PortalManager.d.ts +1 -1
- package/dist/types/portal/common.d.ts +2 -2
- package/dist/types/preset/builder.d.ts +1 -1
- package/dist/types/preset/plugin-injection-api.d.ts +3 -3
- package/dist/types/provider-factory/card-provider.d.ts +1 -1
- package/dist/types/provider-factory/context-identifier-provider.d.ts +1 -1
- package/dist/types/provider-factory/image-upload-provider.d.ts +1 -1
- package/dist/types/provider-factory/macro-provider.d.ts +4 -4
- package/dist/types/provider-factory/media-provider.d.ts +5 -5
- package/dist/types/provider-factory/profile-card-provider.d.ts +1 -1
- package/dist/types/provider-factory/quick-insert-provider.d.ts +10 -10
- package/dist/types/provider-factory/search-provider.d.ts +3 -3
- package/dist/types/provider-factory/types.d.ts +11 -11
- package/dist/types/provider-helpers/promise-helpers.d.ts +1 -1
- package/dist/types/quick-insert/use-icon-themed.d.ts +1 -1
- package/dist/types/react-node-view/getInlineNodeViewProducer.d.ts +6 -6
- package/dist/types/react-node-view/index.d.ts +1 -1
- package/dist/types/resizer/BreakoutResizer.d.ts +10 -10
- package/dist/types/resizer/Resizer.d.ts +32 -32
- package/dist/types/resizer/types.d.ts +2 -2
- package/dist/types/safe-plugin/index.d.ts +1 -1
- package/dist/types/selection/gap-cursor/actions.d.ts +1 -1
- package/dist/types/selection/gap-cursor/selection.d.ts +1 -1
- package/dist/types/selection/index.d.ts +1 -1
- package/dist/types/selection/types.d.ts +3 -3
- package/dist/types/table/SortingIcon.d.ts +1 -1
- package/dist/types/toolbar/context.d.ts +1 -1
- package/dist/types/types/annotation/index.d.ts +43 -43
- package/dist/types/types/copy-button.d.ts +8 -8
- package/dist/types/types/doc-builder.d.ts +1 -1
- package/dist/types/types/editor-actions.d.ts +6 -6
- package/dist/types/types/editor-container-width.d.ts +7 -7
- package/dist/types/types/editor-plugin.d.ts +33 -33
- package/dist/types/types/empty-state-handler.d.ts +1 -1
- package/dist/types/types/feature-flags.d.ts +107 -107
- package/dist/types/types/feedback-dialog.d.ts +5 -5
- package/dist/types/types/floating-toolbar.d.ts +142 -142
- package/dist/types/types/hyperlink.d.ts +10 -10
- package/dist/types/types/input-rules.d.ts +1 -1
- package/dist/types/types/next-editor-plugin.d.ts +47 -47
- package/dist/types/types/performance-tracking.d.ts +90 -90
- package/dist/types/types/plugin-factory.d.ts +6 -6
- package/dist/types/types/prosemirror-config.d.ts +1 -1
- package/dist/types/types/quick-insert.d.ts +9 -9
- package/dist/types/types/selection-toolbar.d.ts +2 -2
- package/dist/types/types/supported-browsers.d.ts +1 -1
- package/dist/types/types/tables.d.ts +3 -3
- package/dist/types/types/text-formatting.d.ts +14 -14
- package/dist/types/types/toolbar.d.ts +2 -2
- package/dist/types/types/type-ahead.d.ts +29 -29
- package/dist/types/types/ui-components.d.ts +7 -7
- package/dist/types/types/user-preferences.d.ts +6 -6
- package/dist/types/ugc-tokens/editor-ugc-token-names.d.ts +1 -1
- package/dist/types/ui/Announcer/announcer.d.ts +5 -5
- package/dist/types/ui/AssistiveText/AssistiveText.d.ts +2 -2
- package/dist/types/ui/BaseTheme/index.d.ts +2 -2
- package/dist/types/ui/Caption/index.d.ts +2 -2
- package/dist/types/ui/ContextPanel/context.d.ts +4 -4
- package/dist/types/ui/DropList/index.d.ts +7 -7
- package/dist/types/ui/Emoji/index.d.ts +3 -3
- package/dist/types/ui/ErrorBoundary/index.d.ts +1 -1
- package/dist/types/ui/EventHandlers/index.d.ts +7 -7
- package/dist/types/ui/Expand/sharedStyles.d.ts +2 -2
- package/dist/types/ui/FloatingToolbar/Button.d.ts +20 -20
- package/dist/types/ui/FloatingToolbar/ButtonSpotlightCard.d.ts +1 -1
- package/dist/types/ui/HoverLinkOverlay/types.d.ts +4 -4
- package/dist/types/ui/Layer/index.d.ts +6 -6
- package/dist/types/ui/MediaSingle/grid.d.ts +4 -4
- package/dist/types/ui/MediaSingle/index.d.ts +12 -12
- package/dist/types/ui/MediaSingle/styled.d.ts +8 -8
- package/dist/types/ui/Mention/index.d.ts +3 -3
- package/dist/types/ui/Mention/mention-with-profilecard.d.ts +4 -4
- package/dist/types/ui/Mention/mention-with-providers.d.ts +4 -4
- package/dist/types/ui/OverflowShadow/index.d.ts +1 -1
- package/dist/types/ui/OverflowShadow/shadowObserver.d.ts +1 -1
- package/dist/types/ui/PanelTextInput/index.d.ts +18 -18
- package/dist/types/ui/Popup/index.d.ts +16 -16
- package/dist/types/ui/Popup/utils.d.ts +6 -6
- package/dist/types/ui/Pulse/Pulse.d.ts +1 -1
- package/dist/types/ui/ResizerLegacy/index.d.ts +11 -11
- package/dist/types/ui/ResizerLegacy/types.d.ts +8 -8
- package/dist/types/ui/TableSelector/index.d.ts +11 -11
- package/dist/types/ui/TableSelector/table-selector.d.ts +7 -7
- package/dist/types/ui/UnsupportedBlock/index.d.ts +1 -1
- package/dist/types/ui/UnsupportedInline/index.d.ts +1 -1
- package/dist/types/ui/WidthProvider/index.d.ts +2 -2
- package/dist/types/ui-color/ColorPalette/Color/index.d.ts +8 -8
- package/dist/types/ui-color/ColorPalette/Palettes/type.d.ts +3 -3
- package/dist/types/ui-color/ColorPalette/index.d.ts +4 -4
- package/dist/types/ui-menu/ArrowKeyNavigationProvider/types.d.ts +11 -11
- package/dist/types/ui-menu/ColorPickerButton/index.d.ts +11 -11
- package/dist/types/ui-menu/Dropdown/index.d.ts +15 -15
- package/dist/types/ui-menu/DropdownMenu/types.d.ts +33 -33
- package/dist/types/ui-menu/ToolbarArrowKeyNavigationProvider/index.d.ts +4 -4
- package/dist/types/ui-menu/ToolbarButton/index.d.ts +19 -19
- package/dist/types/ui-react/ReactEditorViewContext.d.ts +1 -1
- package/dist/types/ui-react/with-react-editor-view-outer-listeners.d.ts +5 -5
- package/dist/types/user-preferences/persistence-api.d.ts +8 -8
- package/dist/types/utils/breakout.d.ts +12 -12
- package/dist/types/utils/calculate-toolbar-position.d.ts +1 -1
- package/dist/types/utils/compare-props.d.ts +3 -3
- package/dist/types/utils/count-nodes.d.ts +1 -1
- package/dist/types/utils/create-wrap-selection-transaction.d.ts +1 -1
- package/dist/types/utils/editor-core-utils.d.ts +1 -1
- package/dist/types/utils/error-reporter.d.ts +1 -1
- package/dist/types/utils/get-performance-options.d.ts +2 -2
- package/dist/types/utils/hyperlink.d.ts +1 -1
- package/dist/types/utils/imageLoader.d.ts +3 -3
- package/dist/types/utils/input-rules.d.ts +2 -2
- package/dist/types/utils/macro.d.ts +1 -1
- package/dist/types/utils/page-element-counts.d.ts +2 -2
- package/dist/types/utils/performance/hooks/use-component-render-tracking/index.d.ts +2 -2
- package/dist/types/utils/performance/measure-render.d.ts +3 -3
- package/dist/types/utils/performance/measure-tti.d.ts +1 -1
- package/dist/types/utils/plugin-state-factory.d.ts +1 -1
- package/dist/types/utils/profiler/render-count.d.ts +3 -3
- package/dist/types/utils/track-unsupported-content.d.ts +5 -5
- package/dist/types/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +1 -1
- package/dist/types/utils/unsupportedContent/types.d.ts +1 -1
- package/dist/types/utils/validator.d.ts +5 -5
- package/dist/types/with-plugin-state/index.d.ts +1 -1
- package/dist/types-ts4.5/analytics/api.d.ts +2 -2
- package/dist/types-ts4.5/analytics/types/activity-session-events.d.ts +14 -14
- package/dist/types-ts4.5/analytics/types/ai-definitions-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/ai-events.d.ts +2 -2
- package/dist/types-ts4.5/analytics/types/ai-inline-suggestion-events.d.ts +2 -2
- package/dist/types-ts4.5/analytics/types/ai-proactive-events.d.ts +12 -12
- package/dist/types-ts4.5/analytics/types/ai-unified-events.d.ts +11 -11
- package/dist/types-ts4.5/analytics/types/breakout-events.d.ts +4 -4
- package/dist/types-ts4.5/analytics/types/config-panel-events.d.ts +3 -3
- package/dist/types-ts4.5/analytics/types/cut-copy-events.d.ts +4 -4
- package/dist/types-ts4.5/analytics/types/datasource-clicked-events.d.ts +2 -2
- package/dist/types-ts4.5/analytics/types/date-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/element-events.d.ts +4 -4
- package/dist/types-ts4.5/analytics/types/events.d.ts +23 -23
- package/dist/types-ts4.5/analytics/types/extension-events.d.ts +5 -5
- package/dist/types-ts4.5/analytics/types/format-events.d.ts +6 -6
- package/dist/types-ts4.5/analytics/types/general-events.d.ts +32 -32
- package/dist/types-ts4.5/analytics/types/highlight-actions-menu-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/highlight-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/inline-comment-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/insert-events.d.ts +26 -26
- package/dist/types-ts4.5/analytics/types/link-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/link-tool-bar-events.d.ts +17 -17
- package/dist/types-ts4.5/analytics/types/list-events.d.ts +8 -8
- package/dist/types-ts4.5/analytics/types/loom-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/media-events.d.ts +9 -9
- package/dist/types-ts4.5/analytics/types/mention-events.d.ts +30 -30
- package/dist/types-ts4.5/analytics/types/move-content-events.d.ts +3 -3
- package/dist/types-ts4.5/analytics/types/ncs-session-step-events.d.ts +3 -3
- package/dist/types-ts4.5/analytics/types/node-events.d.ts +5 -5
- package/dist/types-ts4.5/analytics/types/offline-editing-event.d.ts +5 -5
- package/dist/types-ts4.5/analytics/types/paste-events.d.ts +6 -6
- package/dist/types-ts4.5/analytics/types/performance-report.d.ts +6 -6
- package/dist/types-ts4.5/analytics/types/referentiality-events.d.ts +2 -2
- package/dist/types-ts4.5/analytics/types/selection-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/smart-links.d.ts +2 -2
- package/dist/types-ts4.5/analytics/types/substitute-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/table-events.d.ts +19 -19
- package/dist/types-ts4.5/analytics/types/type-ahead.d.ts +3 -3
- package/dist/types-ts4.5/analytics/types/utils.d.ts +6 -6
- package/dist/types-ts4.5/analytics/types/view-events.d.ts +2 -2
- package/dist/types-ts4.5/annotation/index.d.ts +39 -39
- package/dist/types-ts4.5/block-menu/messages.d.ts +5 -0
- package/dist/types-ts4.5/card/LinkToolbarButtonGroup.d.ts +5 -5
- package/dist/types-ts4.5/card/MediaAndEmbedsToolbar/index.d.ts +2 -2
- package/dist/types-ts4.5/card/cardOptions.d.ts +36 -36
- package/dist/types-ts4.5/card/types.d.ts +8 -8
- package/dist/types-ts4.5/collab/index.d.ts +71 -71
- package/dist/types-ts4.5/doc-utils/editor-use-only.d.ts +1 -1
- package/dist/types-ts4.5/element-browser/ElementBrowser.d.ts +9 -9
- package/dist/types-ts4.5/element-browser/ViewMore.d.ts +1 -1
- package/dist/types-ts4.5/element-browser/components/CategoryList.d.ts +1 -1
- package/dist/types-ts4.5/element-browser/components/ElementList/ElementList.d.ts +11 -11
- package/dist/types-ts4.5/element-browser/components/ElementList/EmptyState.d.ts +1 -1
- package/dist/types-ts4.5/element-browser/components/ElementSearch.d.ts +4 -4
- package/dist/types-ts4.5/element-browser/components/StatelessElementBrowser.d.ts +14 -14
- package/dist/types-ts4.5/element-browser/hooks/use-select-and-focus-on-arrow-navigation.d.ts +12 -12
- package/dist/types-ts4.5/element-browser/types.d.ts +2 -2
- package/dist/types-ts4.5/extensibility/Extension/Extension/index.d.ts +12 -12
- package/dist/types-ts4.5/extensibility/Extension/InlineExtension/index.d.ts +5 -5
- package/dist/types-ts4.5/extensibility/Extension/LegacyContentHeader/index.d.ts +1 -1
- package/dist/types-ts4.5/extensibility/Extension/Lozenge/EditToggle.d.ts +2 -2
- package/dist/types-ts4.5/extensibility/Extension/Lozenge/ExtensionLabel.d.ts +6 -6
- package/dist/types-ts4.5/extensibility/Extension/Lozenge/LozengeComponent.d.ts +11 -11
- package/dist/types-ts4.5/extensibility/Extension/Lozenge/index.d.ts +9 -9
- package/dist/types-ts4.5/extensibility/Extension.d.ts +8 -8
- package/dist/types-ts4.5/extensibility/ExtensionComponent.d.ts +13 -13
- package/dist/types-ts4.5/extensibility/ExtensionNodeWrapper.d.ts +1 -1
- package/dist/types-ts4.5/extensibility/MultiBodiedExtension/action-api.d.ts +5 -5
- package/dist/types-ts4.5/extensibility/MultiBodiedExtension/index.d.ts +10 -10
- package/dist/types-ts4.5/extensibility/extensionNodeView.d.ts +8 -8
- package/dist/types-ts4.5/extensions/extension-handlers.d.ts +1 -1
- package/dist/types-ts4.5/extensions/types/extension-handler.d.ts +10 -10
- package/dist/types-ts4.5/extensions/types/extension-manifest-toolbar-item.d.ts +13 -13
- package/dist/types-ts4.5/extensions/types/extension-manifest.d.ts +26 -26
- package/dist/types-ts4.5/extensions/types/extension-provider.d.ts +3 -3
- package/dist/types-ts4.5/extensions/types/field-definitions.d.ts +40 -40
- package/dist/types-ts4.5/extensions/types/utils.d.ts +7 -7
- package/dist/types-ts4.5/floating-toolbar/DropdownMenuExtensionItems.d.ts +4 -4
- package/dist/types-ts4.5/floating-toolbar/DropdownMenuItem.d.ts +10 -10
- package/dist/types-ts4.5/guideline/relativeGuideline.d.ts +1 -1
- package/dist/types-ts4.5/guideline/types.d.ts +9 -9
- package/dist/types-ts4.5/guideline/updateGuideline.d.ts +1 -1
- package/dist/types-ts4.5/guideline/utils.d.ts +2 -2
- package/dist/types-ts4.5/icons/shared/DynamicStrokeIconDecoration.d.ts +1 -1
- package/dist/types-ts4.5/icons/shared/SteppedRainbowIconDecoration.d.ts +1 -1
- package/dist/types-ts4.5/insert/index.d.ts +2 -2
- package/dist/types-ts4.5/keymaps/index.d.ts +2 -2
- package/dist/types-ts4.5/lazy-node-view/index.d.ts +3 -3
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/Dropdown.d.ts +3 -3
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/handleNavigation.d.ts +1 -1
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/index.d.ts +2 -2
- package/dist/types-ts4.5/link/LinkPicker/EditorLinkPicker/index.d.ts +3 -3
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +12 -12
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +8 -8
- package/dist/types-ts4.5/link/LinkSearch/LinkSearchList.d.ts +6 -6
- package/dist/types-ts4.5/link/LinkSearch/LinkSearchListItem.d.ts +4 -4
- package/dist/types-ts4.5/link/LinkSearch/types.d.ts +11 -11
- package/dist/types-ts4.5/link/types.d.ts +9 -9
- package/dist/types-ts4.5/lists/indentation.d.ts +1 -1
- package/dist/types-ts4.5/lists/node.d.ts +2 -2
- package/dist/types-ts4.5/lists/replace-content.d.ts +1 -1
- package/dist/types-ts4.5/lists/selection.d.ts +1 -1
- package/dist/types-ts4.5/media-inline/inline-image-card.d.ts +4 -4
- package/dist/types-ts4.5/media-inline/inline-image-wrapper.d.ts +3 -3
- package/dist/types-ts4.5/media-inline/media-inline-image-card.d.ts +8 -8
- package/dist/types-ts4.5/media-inline/types.d.ts +4 -4
- package/dist/types-ts4.5/media-inline/views/error-view.d.ts +3 -3
- package/dist/types-ts4.5/media-inline/views/loading-view.d.ts +2 -2
- package/dist/types-ts4.5/media-single/CommentBadge.d.ts +6 -6
- package/dist/types-ts4.5/media-single/CommentBadgeNext.d.ts +1 -1
- package/dist/types-ts4.5/media-single/MediaBadges.d.ts +4 -4
- package/dist/types-ts4.5/media-single/utils.d.ts +5 -5
- package/dist/types-ts4.5/node-visibility/node-visibility-manager.d.ts +5 -5
- package/dist/types-ts4.5/portal/PortalManager.d.ts +1 -1
- package/dist/types-ts4.5/portal/common.d.ts +2 -2
- package/dist/types-ts4.5/preset/builder.d.ts +1 -1
- package/dist/types-ts4.5/preset/plugin-injection-api.d.ts +3 -3
- package/dist/types-ts4.5/provider-factory/card-provider.d.ts +1 -1
- package/dist/types-ts4.5/provider-factory/context-identifier-provider.d.ts +1 -1
- package/dist/types-ts4.5/provider-factory/image-upload-provider.d.ts +1 -1
- package/dist/types-ts4.5/provider-factory/macro-provider.d.ts +4 -4
- package/dist/types-ts4.5/provider-factory/media-provider.d.ts +5 -5
- package/dist/types-ts4.5/provider-factory/profile-card-provider.d.ts +1 -1
- package/dist/types-ts4.5/provider-factory/quick-insert-provider.d.ts +10 -10
- package/dist/types-ts4.5/provider-factory/search-provider.d.ts +3 -3
- package/dist/types-ts4.5/provider-factory/types.d.ts +11 -11
- package/dist/types-ts4.5/provider-helpers/promise-helpers.d.ts +1 -1
- package/dist/types-ts4.5/quick-insert/use-icon-themed.d.ts +1 -1
- package/dist/types-ts4.5/react-node-view/getInlineNodeViewProducer.d.ts +6 -6
- package/dist/types-ts4.5/react-node-view/index.d.ts +1 -1
- package/dist/types-ts4.5/resizer/BreakoutResizer.d.ts +10 -10
- package/dist/types-ts4.5/resizer/Resizer.d.ts +32 -32
- package/dist/types-ts4.5/resizer/types.d.ts +2 -2
- package/dist/types-ts4.5/safe-plugin/index.d.ts +1 -1
- package/dist/types-ts4.5/selection/gap-cursor/actions.d.ts +1 -1
- package/dist/types-ts4.5/selection/gap-cursor/selection.d.ts +1 -1
- package/dist/types-ts4.5/selection/index.d.ts +1 -1
- package/dist/types-ts4.5/selection/types.d.ts +3 -3
- package/dist/types-ts4.5/table/SortingIcon.d.ts +1 -1
- package/dist/types-ts4.5/toolbar/context.d.ts +1 -1
- package/dist/types-ts4.5/types/annotation/index.d.ts +43 -43
- package/dist/types-ts4.5/types/copy-button.d.ts +8 -8
- package/dist/types-ts4.5/types/doc-builder.d.ts +1 -1
- package/dist/types-ts4.5/types/editor-actions.d.ts +6 -6
- package/dist/types-ts4.5/types/editor-container-width.d.ts +7 -7
- package/dist/types-ts4.5/types/editor-plugin.d.ts +33 -33
- package/dist/types-ts4.5/types/empty-state-handler.d.ts +1 -1
- package/dist/types-ts4.5/types/feature-flags.d.ts +107 -107
- package/dist/types-ts4.5/types/feedback-dialog.d.ts +5 -5
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +142 -142
- package/dist/types-ts4.5/types/hyperlink.d.ts +10 -10
- package/dist/types-ts4.5/types/input-rules.d.ts +1 -1
- package/dist/types-ts4.5/types/next-editor-plugin.d.ts +47 -47
- package/dist/types-ts4.5/types/performance-tracking.d.ts +90 -90
- package/dist/types-ts4.5/types/plugin-factory.d.ts +6 -6
- package/dist/types-ts4.5/types/prosemirror-config.d.ts +1 -1
- package/dist/types-ts4.5/types/quick-insert.d.ts +9 -9
- package/dist/types-ts4.5/types/selection-toolbar.d.ts +2 -2
- package/dist/types-ts4.5/types/supported-browsers.d.ts +1 -1
- package/dist/types-ts4.5/types/tables.d.ts +3 -3
- package/dist/types-ts4.5/types/text-formatting.d.ts +14 -14
- package/dist/types-ts4.5/types/toolbar.d.ts +2 -2
- package/dist/types-ts4.5/types/type-ahead.d.ts +29 -29
- package/dist/types-ts4.5/types/ui-components.d.ts +7 -7
- package/dist/types-ts4.5/types/user-preferences.d.ts +6 -6
- package/dist/types-ts4.5/ugc-tokens/editor-ugc-token-names.d.ts +1 -1
- package/dist/types-ts4.5/ui/Announcer/announcer.d.ts +5 -5
- package/dist/types-ts4.5/ui/AssistiveText/AssistiveText.d.ts +2 -2
- package/dist/types-ts4.5/ui/BaseTheme/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/Caption/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/ContextPanel/context.d.ts +4 -4
- package/dist/types-ts4.5/ui/DropList/index.d.ts +7 -7
- package/dist/types-ts4.5/ui/Emoji/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/ErrorBoundary/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/EventHandlers/index.d.ts +7 -7
- package/dist/types-ts4.5/ui/Expand/sharedStyles.d.ts +2 -2
- package/dist/types-ts4.5/ui/FloatingToolbar/Button.d.ts +20 -20
- package/dist/types-ts4.5/ui/FloatingToolbar/ButtonSpotlightCard.d.ts +1 -1
- package/dist/types-ts4.5/ui/HoverLinkOverlay/types.d.ts +4 -4
- package/dist/types-ts4.5/ui/Layer/index.d.ts +6 -6
- package/dist/types-ts4.5/ui/MediaSingle/grid.d.ts +4 -4
- package/dist/types-ts4.5/ui/MediaSingle/index.d.ts +12 -12
- package/dist/types-ts4.5/ui/MediaSingle/styled.d.ts +8 -8
- package/dist/types-ts4.5/ui/Mention/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/Mention/mention-with-profilecard.d.ts +4 -4
- package/dist/types-ts4.5/ui/Mention/mention-with-providers.d.ts +4 -4
- package/dist/types-ts4.5/ui/OverflowShadow/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/OverflowShadow/shadowObserver.d.ts +1 -1
- package/dist/types-ts4.5/ui/PanelTextInput/index.d.ts +18 -18
- package/dist/types-ts4.5/ui/Popup/index.d.ts +16 -16
- package/dist/types-ts4.5/ui/Popup/utils.d.ts +6 -6
- package/dist/types-ts4.5/ui/Pulse/Pulse.d.ts +1 -1
- package/dist/types-ts4.5/ui/ResizerLegacy/index.d.ts +11 -11
- package/dist/types-ts4.5/ui/ResizerLegacy/types.d.ts +8 -8
- package/dist/types-ts4.5/ui/TableSelector/index.d.ts +11 -11
- package/dist/types-ts4.5/ui/TableSelector/table-selector.d.ts +7 -7
- package/dist/types-ts4.5/ui/UnsupportedBlock/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/UnsupportedInline/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/WidthProvider/index.d.ts +2 -2
- package/dist/types-ts4.5/ui-color/ColorPalette/Color/index.d.ts +8 -8
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/type.d.ts +3 -3
- package/dist/types-ts4.5/ui-color/ColorPalette/index.d.ts +4 -4
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/types.d.ts +11 -11
- package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +11 -11
- package/dist/types-ts4.5/ui-menu/Dropdown/index.d.ts +15 -15
- package/dist/types-ts4.5/ui-menu/DropdownMenu/types.d.ts +33 -33
- package/dist/types-ts4.5/ui-menu/ToolbarArrowKeyNavigationProvider/index.d.ts +4 -4
- package/dist/types-ts4.5/ui-menu/ToolbarButton/index.d.ts +19 -19
- package/dist/types-ts4.5/ui-react/ReactEditorViewContext.d.ts +1 -1
- package/dist/types-ts4.5/ui-react/with-react-editor-view-outer-listeners.d.ts +5 -5
- package/dist/types-ts4.5/user-preferences/persistence-api.d.ts +8 -8
- package/dist/types-ts4.5/utils/breakout.d.ts +12 -12
- package/dist/types-ts4.5/utils/calculate-toolbar-position.d.ts +1 -1
- package/dist/types-ts4.5/utils/compare-props.d.ts +3 -3
- package/dist/types-ts4.5/utils/count-nodes.d.ts +1 -1
- package/dist/types-ts4.5/utils/create-wrap-selection-transaction.d.ts +1 -1
- package/dist/types-ts4.5/utils/editor-core-utils.d.ts +1 -1
- package/dist/types-ts4.5/utils/error-reporter.d.ts +1 -1
- package/dist/types-ts4.5/utils/get-performance-options.d.ts +2 -2
- package/dist/types-ts4.5/utils/hyperlink.d.ts +1 -1
- package/dist/types-ts4.5/utils/imageLoader.d.ts +3 -3
- package/dist/types-ts4.5/utils/input-rules.d.ts +2 -2
- package/dist/types-ts4.5/utils/macro.d.ts +1 -1
- package/dist/types-ts4.5/utils/page-element-counts.d.ts +2 -2
- package/dist/types-ts4.5/utils/performance/hooks/use-component-render-tracking/index.d.ts +2 -2
- package/dist/types-ts4.5/utils/performance/measure-render.d.ts +3 -3
- package/dist/types-ts4.5/utils/performance/measure-tti.d.ts +1 -1
- package/dist/types-ts4.5/utils/plugin-state-factory.d.ts +1 -1
- package/dist/types-ts4.5/utils/profiler/render-count.d.ts +3 -3
- package/dist/types-ts4.5/utils/track-unsupported-content.d.ts +5 -5
- package/dist/types-ts4.5/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +1 -1
- package/dist/types-ts4.5/utils/unsupportedContent/types.d.ts +1 -1
- package/dist/types-ts4.5/utils/validator.d.ts +5 -5
- package/dist/types-ts4.5/with-plugin-state/index.d.ts +1 -1
- package/package.json +4 -8
|
@@ -34,28 +34,28 @@ type VisitedHyperlink = TrackAEP<ACTION.VISITED, ACTION_SUBJECT.HYPERLINK, undef
|
|
|
34
34
|
inputMethod: INPUT_METHOD.TOOLBAR;
|
|
35
35
|
}, undefined>;
|
|
36
36
|
type DeletedSmartLink = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.SMART_LINK, ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.CARD_INLINE, {
|
|
37
|
-
inputMethod: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TOOLBAR | INPUT_METHOD.CARD;
|
|
38
37
|
displayMode: ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.CARD_INLINE;
|
|
38
|
+
inputMethod: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TOOLBAR | INPUT_METHOD.CARD;
|
|
39
39
|
}, undefined>;
|
|
40
40
|
export type NodeDeletedAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.PANEL | ACTION_SUBJECT.LAYOUT | ACTION_SUBJECT.EXPAND | ACTION_SUBJECT.TABLE | ACTION_SUBJECT.EXTENSION | ACTION_SUBJECT.BODIED_EXTENSION | ACTION_SUBJECT.SMART_LINK | ACTION_SUBJECT.CODE_BLOCK | ACTION_SUBJECT.MEDIA_SINGLE | ACTION_SUBJECT.MEDIA_GROUP | ACTION_SUBJECT.MEDIA_INLINE, undefined, {
|
|
41
41
|
inputMethod: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TOOLBAR;
|
|
42
42
|
}, undefined>;
|
|
43
43
|
type ChangedLayoutAEP = TrackAEP<ACTION.CHANGED_LAYOUT, ACTION_SUBJECT.LAYOUT, undefined, {
|
|
44
|
-
previousLayout?: LAYOUT_TYPE;
|
|
45
44
|
newLayout?: LAYOUT_TYPE;
|
|
45
|
+
previousLayout?: LAYOUT_TYPE;
|
|
46
46
|
}, undefined>;
|
|
47
47
|
type DeletedLayoutAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.LAYOUT, undefined, {
|
|
48
|
-
layout?: LAYOUT_TYPE;
|
|
49
48
|
inputMethod?: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TOOLBAR;
|
|
49
|
+
layout?: LAYOUT_TYPE;
|
|
50
50
|
}, undefined>;
|
|
51
51
|
type DeletedExpandAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.EXPAND | ACTION_SUBJECT.NESTED_EXPAND, undefined, {
|
|
52
52
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB;
|
|
53
53
|
}, undefined>;
|
|
54
54
|
type UnsupportedContentAEP = TrackAEP<ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED, ACTION_SUBJECT.DOCUMENT, ACTION_SUBJECT_ID.UNSUPPORTED_BLOCK | ACTION_SUBJECT_ID.UNSUPPORTED_INLINE | ACTION_SUBJECT_ID.UNSUPPORTED_MARK, {
|
|
55
55
|
unsupportedNode: {
|
|
56
|
-
type: string;
|
|
57
|
-
parentType: string;
|
|
58
56
|
ancestry: string;
|
|
57
|
+
parentType: string;
|
|
58
|
+
type: string;
|
|
59
59
|
};
|
|
60
60
|
}, undefined>;
|
|
61
61
|
export type NodeEventPayload = ChangePanelAEP | DeletePanelAEP | DeletedSmartLink | VisitedSmartLink | VisitedHyperlink | ChangedLayoutAEP | DeletedLayoutAEP | DeletedExpandAEP | NodeDeletedAEP | ChangeSmartLinkAEP | UnsupportedContentAEP;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
|
|
2
2
|
import type { TrackAEP } from './utils';
|
|
3
3
|
type OfflineEditingAEP = TrackAEP<ACTION.OFFLINE_STORAGE_TOO_MANY_RETRIES_ERROR | ACTION.OFFLINE_STORAGE_STEPS_DATABASE_ERROR | ACTION.OFFLINE_STORAGE_RESYNC_ONLINE | ACTION.OFFLINE_STORAGE_BROADCAST_CHANNEL_FIRST_UPDATE | ACTION.OFFLINE_STORAGE_FAILED_STEPS, ACTION_SUBJECT.OFFLINE_EDITING, ACTION_SUBJECT_ID.OFFLINE_EDITING, {
|
|
4
|
+
disabled?: string | boolean;
|
|
4
5
|
errorMessage?: string;
|
|
5
|
-
|
|
6
|
-
stepsCount?: number;
|
|
7
|
-
status?: string;
|
|
6
|
+
healthy?: boolean;
|
|
8
7
|
retryCount?: number;
|
|
9
|
-
disabled?: string | boolean;
|
|
10
8
|
retrySource?: string;
|
|
11
|
-
|
|
9
|
+
status?: string;
|
|
10
|
+
stepsCount?: number;
|
|
11
|
+
version?: number;
|
|
12
12
|
}, undefined>;
|
|
13
13
|
export type OfflineEditingEventPayload = OfflineEditingAEP;
|
|
14
14
|
export {};
|
|
@@ -16,24 +16,24 @@ export type PASTE_ACTION_SUBJECT_ID = ACTION_SUBJECT_ID.PASTE_BLOCKQUOTE | ACTIO
|
|
|
16
16
|
type PasteBaseAEP<Action, Attributes, NonPrivacySafeAttributes> = TrackAEP<Action, ACTION_SUBJECT.DOCUMENT, PASTE_ACTION_SUBJECT_ID, Attributes, NonPrivacySafeAttributes>;
|
|
17
17
|
type PasteBaseOperationalAEP<Action, Attributes> = OperationalAEP<Action, ACTION_SUBJECT.EDITOR, PASTE_ACTION_SUBJECT_ID, Attributes>;
|
|
18
18
|
type PasteAEP = PasteBaseAEP<ACTION.PASTED, {
|
|
19
|
-
inputMethod: INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
|
|
20
|
-
type: PasteType;
|
|
21
19
|
content: PasteContent;
|
|
22
|
-
|
|
20
|
+
inputMethod: INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
|
|
23
21
|
pasteSize: number;
|
|
22
|
+
source?: PasteSource;
|
|
23
|
+
type: PasteType;
|
|
24
24
|
}, {
|
|
25
25
|
linkDomain?: string[];
|
|
26
26
|
} | undefined>;
|
|
27
27
|
type PasteAsPlainAEP = PasteBaseAEP<ACTION.PASTED_AS_PLAIN, {
|
|
28
28
|
inputMethod: string;
|
|
29
|
-
pasteSize: number;
|
|
30
29
|
linksInPasteCount: number;
|
|
30
|
+
pasteSize: number;
|
|
31
31
|
}, undefined>;
|
|
32
32
|
type PastedTimedAEP = PasteBaseOperationalAEP<ACTION.PASTED_TIMED, {
|
|
33
|
-
pasteIntoNode: PASTE_ACTION_SUBJECT_ID;
|
|
34
33
|
content: Array<string>;
|
|
35
|
-
time: number;
|
|
36
34
|
distortedDuration: boolean;
|
|
35
|
+
pasteIntoNode: PASTE_ACTION_SUBJECT_ID;
|
|
36
|
+
time: number;
|
|
37
37
|
}>;
|
|
38
38
|
export type PasteEventPayload = PasteAEP | PasteAsPlainAEP | PastedTimedAEP;
|
|
39
39
|
export {};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
export interface PluginMethodReport {
|
|
2
|
+
onEditorViewStateUpdated: number;
|
|
2
3
|
stateApply: number;
|
|
3
4
|
viewUpdate: number;
|
|
4
|
-
onEditorViewStateUpdated: number;
|
|
5
5
|
}
|
|
6
6
|
export interface PluginsReport {
|
|
7
7
|
[name: string]: PluginMethodReport;
|
|
8
8
|
}
|
|
9
9
|
export type NodeCount = Record<string, number>;
|
|
10
10
|
export interface PluginPerformanceReportData {
|
|
11
|
-
trigger: string;
|
|
12
11
|
duration: number;
|
|
13
|
-
nodes: NodeCount;
|
|
14
12
|
extensionNodes: NodeCount;
|
|
13
|
+
nodes: NodeCount;
|
|
15
14
|
plugins: PluginsReport;
|
|
16
15
|
slowPlugins: PluginsReport;
|
|
17
16
|
stepDurations: {
|
|
18
|
-
|
|
19
|
-
viewUpdate: number;
|
|
17
|
+
countNodes: number;
|
|
20
18
|
onChange: number;
|
|
21
19
|
onEditorViewStateUpdated: number;
|
|
22
|
-
|
|
20
|
+
stateApply: number;
|
|
21
|
+
viewUpdate: number;
|
|
23
22
|
};
|
|
23
|
+
trigger: string;
|
|
24
24
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
2
|
import type { OperationalAEP } from './utils';
|
|
3
3
|
export type InitialiseFragmentMarksAEP = OperationalAEP<ACTION.INITIALISED_FRAGMENT_MARK, ACTION_SUBJECT.DOCUMENT, undefined, {
|
|
4
|
-
duration: number;
|
|
5
|
-
docSize: number;
|
|
6
4
|
count: number;
|
|
5
|
+
docSize: number;
|
|
6
|
+
duration: number;
|
|
7
7
|
}>;
|
|
8
8
|
export type ConnectedNodesAEP = OperationalAEP<ACTION.CONNECTED_NODES, ACTION_SUBJECT.DOCUMENT, undefined, {
|
|
9
9
|
actionType: string;
|
|
@@ -5,8 +5,8 @@ export type SelectNodeAEP = SelectAEP<ACTION_SUBJECT_ID.NODE, {
|
|
|
5
5
|
node: string;
|
|
6
6
|
}>;
|
|
7
7
|
export type SelectRangeAEP = SelectAEP<ACTION_SUBJECT_ID.RANGE, {
|
|
8
|
-
nodes: string[];
|
|
9
8
|
from: number;
|
|
9
|
+
nodes: string[];
|
|
10
10
|
to: number;
|
|
11
11
|
}>;
|
|
12
12
|
export type SelectAllAEP = SelectAEP<ACTION_SUBJECT_ID.ALL, undefined>;
|
|
@@ -5,10 +5,10 @@ export declare const SmartLinkNodeContexts: {
|
|
|
5
5
|
[P in SmartLinkNodeContext]: P;
|
|
6
6
|
};
|
|
7
7
|
export type InsertSmartLinkAEP = InsertAEP<ACTION_SUBJECT_ID.SMART_LINK, {
|
|
8
|
+
fromCurrentDomain: boolean;
|
|
8
9
|
inputMethod: INPUT_METHOD.CLIPBOARD | INPUT_METHOD.AUTO_DETECT | INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.MANUAL | INPUT_METHOD.FORMATTING | INPUT_METHOD.FLOATING_TB;
|
|
9
|
-
nodeType: 'inlineCard' | 'blockCard' | 'embedCard';
|
|
10
10
|
nodeContext: SmartLinkNodeContext;
|
|
11
|
-
|
|
11
|
+
nodeType: 'inlineCard' | 'blockCard' | 'embedCard';
|
|
12
12
|
}, {
|
|
13
13
|
domainName: string;
|
|
14
14
|
}>;
|
|
@@ -13,8 +13,8 @@ export declare enum PUNC {
|
|
|
13
13
|
}
|
|
14
14
|
type SubstituteAEP<ActionSubjectID, Attributes> = TrackAEP<ACTION.SUBSTITUTED, ACTION_SUBJECT.TEXT, ActionSubjectID, Attributes, undefined>;
|
|
15
15
|
type SubstituteProductAEP = SubstituteAEP<ACTION_SUBJECT_ID.PRODUCT_NAME, {
|
|
16
|
-
product: string;
|
|
17
16
|
originalSpelling: string;
|
|
17
|
+
product: string;
|
|
18
18
|
}>;
|
|
19
19
|
type SubstituteSymbolAEP = SubstituteAEP<ACTION_SUBJECT_ID.SYMBOL, {
|
|
20
20
|
symbol: SYMBOL.ARROW_RIGHT | SYMBOL.ARROW_LEFT | SYMBOL.ARROW_DOUBLE;
|
|
@@ -62,12 +62,12 @@ export declare enum TABLE_STATUS {
|
|
|
62
62
|
INVALID = "invalid"
|
|
63
63
|
}
|
|
64
64
|
interface SortColumn {
|
|
65
|
-
sortOrder: SortOrder;
|
|
66
65
|
mode: 'editor';
|
|
66
|
+
sortOrder: SortOrder;
|
|
67
67
|
}
|
|
68
68
|
interface TotalRowAndColCount {
|
|
69
|
-
totalRowCount: number;
|
|
70
69
|
totalColumnCount: number;
|
|
70
|
+
totalRowCount: number;
|
|
71
71
|
}
|
|
72
72
|
interface HorizontalAndVerticalCells {
|
|
73
73
|
horizontalCells: number;
|
|
@@ -77,36 +77,36 @@ type AllCellInfo = TotalRowAndColCount & HorizontalAndVerticalCells & {
|
|
|
77
77
|
totalCells: number;
|
|
78
78
|
};
|
|
79
79
|
type AttemptedResizeInfo = {
|
|
80
|
-
type: string;
|
|
81
|
-
position: string;
|
|
82
|
-
duration: number;
|
|
83
80
|
delta: number;
|
|
81
|
+
duration: number;
|
|
82
|
+
position: string;
|
|
83
|
+
type: string;
|
|
84
84
|
};
|
|
85
85
|
type ResizedInfo = {
|
|
86
|
-
prevWidth: number | null;
|
|
87
86
|
newWidth: number;
|
|
88
|
-
totalTableWidth: number | null;
|
|
89
87
|
nodeSize: number;
|
|
88
|
+
prevWidth: number | null;
|
|
89
|
+
totalTableWidth: number | null;
|
|
90
90
|
} & TotalRowAndColCount;
|
|
91
91
|
type ColumnResizedInfo = {
|
|
92
92
|
colIndex?: number;
|
|
93
|
-
|
|
93
|
+
inputMethod: INPUT_METHOD.MOUSE | INPUT_METHOD.SHORTCUT;
|
|
94
94
|
isLastColumn: boolean;
|
|
95
|
+
resizedDelta: number;
|
|
95
96
|
tableWidth: number | null;
|
|
96
|
-
inputMethod: INPUT_METHOD.MOUSE | INPUT_METHOD.SHORTCUT;
|
|
97
97
|
} & TotalRowAndColCount;
|
|
98
98
|
type ResizePreviewInfo = {
|
|
99
|
+
docSize: number;
|
|
99
100
|
frameRate: number;
|
|
100
101
|
isInitialSample: boolean;
|
|
101
|
-
docSize: number;
|
|
102
102
|
nodeSize: number;
|
|
103
103
|
};
|
|
104
104
|
export type OverflowStateInfo = {
|
|
105
105
|
editorWidth: number;
|
|
106
106
|
isOverflowing: boolean;
|
|
107
|
+
parentWidth: number;
|
|
107
108
|
tableResizingEnabled: boolean;
|
|
108
109
|
width: number;
|
|
109
|
-
parentWidth: number;
|
|
110
110
|
};
|
|
111
111
|
type TableDeleteAEP = TableAEP<TABLE_ACTION.DELETED, {
|
|
112
112
|
inputMethod: INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB;
|
|
@@ -135,14 +135,14 @@ type TableAddRowOrColumnAEP = TableAEP<TABLE_ACTION.ADDED_ROW | TABLE_ACTION.ADD
|
|
|
135
135
|
position: number;
|
|
136
136
|
} & TotalRowAndColCount, undefined>;
|
|
137
137
|
type TableDeleteRowOrColumnAEP = TableAEP<TABLE_ACTION.DELETED_ROW | TABLE_ACTION.DELETED_COLUMN, {
|
|
138
|
+
count: number;
|
|
138
139
|
inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.BUTTON | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.SHORTCUT | INPUT_METHOD.TABLE_CONTEXT_MENU;
|
|
139
140
|
position: number;
|
|
140
|
-
count: number;
|
|
141
141
|
} & TotalRowAndColCount, undefined>;
|
|
142
142
|
type TableDistributeColumnsWidthsAEP = TableAEP<TABLE_ACTION.DISTRIBUTED_COLUMNS_WIDTHS, {
|
|
143
|
+
count: number;
|
|
143
144
|
inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TABLE_CONTEXT_MENU;
|
|
144
145
|
position: number;
|
|
145
|
-
count: number;
|
|
146
146
|
} & TotalRowAndColCount, undefined>;
|
|
147
147
|
type TableSortColumnAEP = TableAEP<TABLE_ACTION.SORTED_COLUMN, {
|
|
148
148
|
inputMethod: INPUT_METHOD.SHORTCUT | INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.TABLE_CONTEXT_MENU | INPUT_METHOD.BUTTON | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.KEYBOARD;
|
|
@@ -157,8 +157,8 @@ type TableFixedAEP = TableAEP<TABLE_ACTION.FIXED, {
|
|
|
157
157
|
reason: string;
|
|
158
158
|
}, undefined>;
|
|
159
159
|
type TableOverflowChangedAEP = TableAEP<TABLE_ACTION.OVERFLOW_CHANGED, {
|
|
160
|
-
wasOverflowing: boolean;
|
|
161
160
|
trigger: TABLE_OVERFLOW_CHANGE_TRIGGER;
|
|
161
|
+
wasOverflowing: boolean;
|
|
162
162
|
} & OverflowStateInfo, undefined>;
|
|
163
163
|
type TableInitialOverflowCapturedAEP = TableAEP<TABLE_ACTION.INITIAL_OVERFLOW_CAPTURED, OverflowStateInfo, undefined>;
|
|
164
164
|
type TableResizedAEP = TableAEP<TABLE_ACTION.RESIZED, ResizedInfo, undefined>;
|
|
@@ -168,15 +168,15 @@ type TableRowOrColumnMovedAEP = TableAEP<TABLE_ACTION.ROW_OR_COLUMN_MOVED, {
|
|
|
168
168
|
type: 'row' | 'column';
|
|
169
169
|
}, undefined>;
|
|
170
170
|
type TableMovedRowOrColumnAEP = TableAEP<TABLE_ACTION.MOVED_ROW | TABLE_ACTION.MOVED_COLUMN, {
|
|
171
|
-
inputMethod: INPUT_METHOD.TABLE_CONTEXT_MENU | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.SHORTCUT;
|
|
172
171
|
count: number;
|
|
173
172
|
distance: number;
|
|
173
|
+
inputMethod: INPUT_METHOD.TABLE_CONTEXT_MENU | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.SHORTCUT;
|
|
174
174
|
status: TABLE_STATUS.SUCCESS | TABLE_STATUS.CANCELLED | TABLE_STATUS.INVALID;
|
|
175
175
|
} & TotalRowAndColCount, undefined>;
|
|
176
176
|
type TableClonedRowOrColumnAEP = TableAEP<TABLE_ACTION.CLONED_ROW | TABLE_ACTION.CLONED_COLUMN, {
|
|
177
|
-
inputMethod: INPUT_METHOD.TABLE_CONTEXT_MENU | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.SHORTCUT;
|
|
178
177
|
count: number;
|
|
179
178
|
distance: number;
|
|
179
|
+
inputMethod: INPUT_METHOD.TABLE_CONTEXT_MENU | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.SHORTCUT;
|
|
180
180
|
status: TABLE_STATUS.SUCCESS | TABLE_STATUS.CANCELLED | TABLE_STATUS.INVALID;
|
|
181
181
|
} & TotalRowAndColCount, undefined>;
|
|
182
182
|
export declare enum TABLE_DISPLAY_MODE {
|
|
@@ -186,8 +186,8 @@ export declare enum TABLE_DISPLAY_MODE {
|
|
|
186
186
|
}
|
|
187
187
|
type TableChangedDisplayModeAEP = TableAEP<TABLE_ACTION.CHANGED_DISPLAY_MODE, {
|
|
188
188
|
inputMethod: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.CONTEXT_MENU;
|
|
189
|
-
previousDisplayMode: TABLE_DISPLAY_MODE;
|
|
190
189
|
newDisplayMode: TABLE_DISPLAY_MODE;
|
|
190
|
+
previousDisplayMode: TABLE_DISPLAY_MODE;
|
|
191
191
|
tableWidth: number | null;
|
|
192
192
|
} & TotalRowAndColCount, undefined>;
|
|
193
193
|
type AlignmentOptions = 'center' | 'align-start';
|
|
@@ -198,11 +198,11 @@ export declare enum CHANGE_ALIGNMENT_REASON {
|
|
|
198
198
|
TOOLBAR_OPTION_CHANGED = "toolbarOptionChanged"
|
|
199
199
|
}
|
|
200
200
|
type TableChangedAlignmentAEP = TableAEP<TABLE_ACTION.CHANGED_ALIGNMENT, {
|
|
201
|
+
inputMethod: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.AUTO;
|
|
201
202
|
newAlignment: AlignmentOptions;
|
|
202
203
|
previousAlignment: AlignmentOptions | null;
|
|
203
|
-
tableWidth: number | null;
|
|
204
|
-
inputMethod: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.AUTO;
|
|
205
204
|
reason: CHANGE_ALIGNMENT_REASON;
|
|
205
|
+
tableWidth: number | null;
|
|
206
206
|
} & TotalRowAndColCount, undefined>;
|
|
207
207
|
type TableBackgroundColorFixAEP = TableAEP<TABLE_ACTION.TABLE_CELL_BACKGROUND_FIXED, undefined, undefined>;
|
|
208
208
|
export type TableEventPayload = TableDeleteAEP | TableClearAEP | TableMergeSplitAEP | TableColorAEP | TableToggleHeaderAEP | TableChangeBreakoutAEP | TableCopyAndCutAEP | TableAddRowOrColumnAEP | TableSortColumnAEP | TableDeleteRowOrColumnAEP | TableReplaceAEP | TableAttemptedResizeAEP | TableDistributeColumnsWidthsAEP | TableCollapsedAEP | TableFixedAEP | TableOverflowChangedAEP | TableInitialOverflowCapturedAEP | TableResizedAEP | TableResizePerfSamplingAEP | TableRowOrColumnMovedAEP | TableMovedRowOrColumnAEP | TableClonedRowOrColumnAEP | TableChangedDisplayModeAEP | TableColumnResizedAEP | TableBackgroundColorFixAEP | TableChangedAlignmentAEP;
|
|
@@ -2,9 +2,9 @@ import type { TypeAheadAvailableNodes } from '../../type-ahead';
|
|
|
2
2
|
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, INPUT_METHOD } from './enums';
|
|
3
3
|
import type { OperationalAEP, TrackAEP, UIAEP } from './utils';
|
|
4
4
|
type TypeAheadRenderedAEP = OperationalAEP<ACTION.RENDERED, ACTION_SUBJECT.TYPEAHEAD, undefined, {
|
|
5
|
-
time?: number;
|
|
6
|
-
items?: number;
|
|
7
5
|
initial?: boolean;
|
|
6
|
+
items?: number;
|
|
7
|
+
time?: number;
|
|
8
8
|
}>;
|
|
9
9
|
type TypeAheadItemViewedAEP = OperationalAEP<ACTION.VIEWED, ACTION_SUBJECT.TYPEAHEAD_ITEM, undefined, {
|
|
10
10
|
index?: number;
|
|
@@ -18,9 +18,9 @@ type TypeAheadInputMethod = INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | I
|
|
|
18
18
|
*/
|
|
19
19
|
| 'blockControl';
|
|
20
20
|
type TypeAheadClosedAttributes = {
|
|
21
|
-
inputMethod: INPUT_METHOD.KEYBOARD | INPUT_METHOD.MOUSE | null;
|
|
22
21
|
closeAction: ACTION.INSERTED | ACTION.CANCELLED | ACTION.VIEW_MORE | null;
|
|
23
22
|
hasQuery: boolean;
|
|
23
|
+
inputMethod: INPUT_METHOD.KEYBOARD | INPUT_METHOD.MOUSE | null;
|
|
24
24
|
invocationMethod?: TypeAheadInputMethod | null;
|
|
25
25
|
};
|
|
26
26
|
type TypeaheadQuickInsertClosedAEP = TrackAEP<ACTION.CLOSED, ACTION_SUBJECT.TYPEAHEAD, ACTION_SUBJECT_ID.TYPEAHEAD_QUICK_INSERT, TypeAheadClosedAttributes, undefined>;
|
|
@@ -3,12 +3,12 @@ type AEP<Action, ActionSubject, ActionSubjectID, Attributes, NonPrivacySafeAttri
|
|
|
3
3
|
action: Action;
|
|
4
4
|
actionSubject: ActionSubject;
|
|
5
5
|
actionSubjectId?: ActionSubjectID;
|
|
6
|
-
containerId?: ContainerId;
|
|
7
|
-
objectId?: ObjectId;
|
|
8
|
-
childObjectId?: ChildObjectId;
|
|
9
6
|
attributes?: Attributes & {
|
|
10
7
|
[key in keyof ImplicitAttributes]?: ImplicitAttributes[key];
|
|
11
8
|
};
|
|
9
|
+
childObjectId?: ChildObjectId;
|
|
10
|
+
containerId?: ContainerId;
|
|
11
|
+
objectId?: ObjectId;
|
|
12
12
|
} & ({
|
|
13
13
|
eventType: Exclude<EventType, EVENT_TYPE.OPERATIONAL>;
|
|
14
14
|
nonPrivacySafeAttributes?: NonPrivacySafeAttributes;
|
|
@@ -43,12 +43,12 @@ export declare enum SELECTION_POSITION {
|
|
|
43
43
|
RIGHT = "right"
|
|
44
44
|
}
|
|
45
45
|
export interface NonRequiredAttributes {
|
|
46
|
-
|
|
46
|
+
changeFromLocation?: string;
|
|
47
47
|
insertedLocation?: string;
|
|
48
|
+
insertLocation?: string;
|
|
48
49
|
nodeLocation?: string;
|
|
49
|
-
changeFromLocation?: string;
|
|
50
|
-
selectionType?: SELECTION_TYPE;
|
|
51
50
|
selectionPosition?: SELECTION_POSITION;
|
|
51
|
+
selectionType?: SELECTION_TYPE;
|
|
52
52
|
}
|
|
53
53
|
export type InsertAEP<ActionSubjectID, Attributes, NonPrivacySafeAttributes> = TrackAEP<ACTION.INSERTED, ACTION_SUBJECT.DOCUMENT, ActionSubjectID, Attributes, NonPrivacySafeAttributes, NonRequiredAttributes>;
|
|
54
54
|
export type ChangeTypeAEP<ActionSubject, ActionSubjectID, Attributes, NonPrivacySafeAttributes> = TrackAEP<ACTION.CHANGED_TYPE, ActionSubject, ActionSubjectID, Attributes, NonPrivacySafeAttributes, NonRequiredAttributes>;
|
|
@@ -2,9 +2,9 @@ import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, INPUT_METHOD } from './
|
|
|
2
2
|
import type { MODE } from './general-events';
|
|
3
3
|
import type { UIAEP } from './utils';
|
|
4
4
|
export type ViewInlineCommentsButtonEventAEP = UIAEP<ACTION.VIEWED, ACTION_SUBJECT.BUTTON, ACTION_SUBJECT_ID.INLINE_COMMENT, {
|
|
5
|
-
isDisabled: boolean;
|
|
6
|
-
mode: MODE.EDITOR;
|
|
7
5
|
inputMethod: INPUT_METHOD.FLOATING_TB;
|
|
6
|
+
isDisabled: boolean;
|
|
8
7
|
isNonTextInlineNodeInludedInComment: boolean;
|
|
8
|
+
mode: MODE.EDITOR;
|
|
9
9
|
}, undefined>;
|
|
10
10
|
export type ViewEventPayload = ViewInlineCommentsButtonEventAEP;
|
|
@@ -12,105 +12,103 @@ export declare class AnnotationUpdateEmitter extends EventEmitter {
|
|
|
12
12
|
off(event: string, listener: AnnotationCallback | VisibilityCallback): this;
|
|
13
13
|
}
|
|
14
14
|
type AnnotationByMatches = {
|
|
15
|
-
originalSelection: string;
|
|
16
|
-
numMatches: number;
|
|
17
15
|
matchIndex: number;
|
|
16
|
+
numMatches: number;
|
|
17
|
+
originalSelection: string;
|
|
18
18
|
pos?: number;
|
|
19
19
|
};
|
|
20
20
|
export type ActionResult = {
|
|
21
|
-
step: AddMarkStep | AddNodeMarkStep;
|
|
22
21
|
doc: JSONDocNode;
|
|
23
22
|
/** The list of types of all inline nodes, which were wrapped by annotation. */
|
|
24
23
|
inlineNodeTypes?: string[];
|
|
24
|
+
step: AddMarkStep | AddNodeMarkStep;
|
|
25
25
|
targetNodeType?: string;
|
|
26
26
|
} & AnnotationByMatches;
|
|
27
27
|
export type ClearAnnotationActionResult = {
|
|
28
|
-
step: RemoveMarkStep | RemoveNodeMarkStep;
|
|
29
28
|
doc: JSONDocNode;
|
|
29
|
+
step: RemoveMarkStep | RemoveNodeMarkStep;
|
|
30
30
|
};
|
|
31
31
|
export type AnnotationDraftStartedData = {
|
|
32
|
-
targetElement: HTMLElement | undefined;
|
|
33
|
-
/**
|
|
34
|
-
* This list of inline node types at the draft selection location
|
|
35
|
-
*/
|
|
36
|
-
inlineNodeTypes: string[];
|
|
37
32
|
/**
|
|
38
33
|
* The actionResult can be used by Product so they're able to perform the
|
|
39
34
|
* required NCS transaction to add the annotation to the document.
|
|
40
35
|
*/
|
|
41
36
|
actionResult: ActionResult | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* This list of inline node types at the draft selection location
|
|
39
|
+
*/
|
|
40
|
+
inlineNodeTypes: string[];
|
|
41
|
+
targetElement: HTMLElement | undefined;
|
|
42
42
|
};
|
|
43
43
|
export type AnnotationSelectedChangeData = {
|
|
44
44
|
annotationId: AnnotationId;
|
|
45
|
-
isSelected: boolean;
|
|
46
45
|
inlineNodeTypes: string[];
|
|
46
|
+
isSelected: boolean;
|
|
47
47
|
};
|
|
48
48
|
export type AnnotationManagerEvents = {
|
|
49
|
-
name: 'draftAnnotationStarted';
|
|
50
49
|
data: AnnotationDraftStartedData;
|
|
50
|
+
name: 'draftAnnotationStarted';
|
|
51
51
|
} | {
|
|
52
|
-
name: 'annotationSelectionChanged';
|
|
53
52
|
data: AnnotationSelectedChangeData;
|
|
53
|
+
name: 'annotationSelectionChanged';
|
|
54
54
|
};
|
|
55
55
|
export type ManagerFailureReasons = 'manager-not-initialized' | 'hook-execution-error';
|
|
56
56
|
export type StartDraftResult = {
|
|
57
|
-
success: false;
|
|
58
57
|
reason: ManagerFailureReasons | 'invalid-range' | 'draft-in-progress';
|
|
58
|
+
success: false;
|
|
59
59
|
} | ({
|
|
60
60
|
success: true;
|
|
61
61
|
} & AnnotationDraftStartedData);
|
|
62
62
|
export type ClearDraftResult = {
|
|
63
|
-
success: false;
|
|
64
63
|
reason: ManagerFailureReasons | 'draft-not-started';
|
|
64
|
+
success: false;
|
|
65
65
|
} | {
|
|
66
66
|
success: true;
|
|
67
67
|
};
|
|
68
68
|
export type ApplyDraftResult = {
|
|
69
|
-
success: false;
|
|
70
69
|
reason: ManagerFailureReasons | 'draft-not-started' | 'range-no-longer-exists';
|
|
70
|
+
success: false;
|
|
71
71
|
} | {
|
|
72
|
-
success: true;
|
|
73
|
-
targetElement: HTMLElement | undefined;
|
|
74
72
|
/**
|
|
75
73
|
* The actionResult will be set if the id passed to the applyDraft method is different from the id created
|
|
76
74
|
* from the startDraft call.
|
|
77
75
|
*/
|
|
78
76
|
actionResult: ActionResult | undefined;
|
|
77
|
+
success: true;
|
|
78
|
+
targetElement: HTMLElement | undefined;
|
|
79
79
|
};
|
|
80
80
|
export type GetDraftResult = {
|
|
81
|
-
success: false;
|
|
82
81
|
reason: ManagerFailureReasons | 'draft-not-started';
|
|
82
|
+
success: false;
|
|
83
83
|
} | ({
|
|
84
84
|
success: true;
|
|
85
85
|
} & AnnotationDraftStartedData);
|
|
86
86
|
export type ClearAnnotationResult = {
|
|
87
|
-
success: false;
|
|
88
87
|
reason: ManagerFailureReasons | 'id-not-valid' | 'clear-failed';
|
|
88
|
+
success: false;
|
|
89
89
|
} | {
|
|
90
|
-
success: true;
|
|
91
90
|
actionResult: ClearAnnotationActionResult | undefined;
|
|
91
|
+
success: true;
|
|
92
92
|
};
|
|
93
93
|
export type SelectAnnotationResult = {
|
|
94
|
-
success: false;
|
|
95
94
|
reason: ManagerFailureReasons | 'id-not-valid' | 'draft-in-progress';
|
|
95
|
+
success: false;
|
|
96
96
|
} | {
|
|
97
|
-
success: true;
|
|
98
97
|
isSelected: boolean;
|
|
98
|
+
success: true;
|
|
99
99
|
};
|
|
100
100
|
export type HoverAnnotationResult = {
|
|
101
|
-
success: false;
|
|
102
101
|
reason: ManagerFailureReasons | 'id-not-valid';
|
|
102
|
+
success: false;
|
|
103
103
|
} | {
|
|
104
|
-
success: true;
|
|
105
104
|
isHovered: boolean;
|
|
105
|
+
success: true;
|
|
106
106
|
};
|
|
107
107
|
/**
|
|
108
108
|
* This is the list of methods which exist on the Manager interface. These are the methods that can be hooked into.
|
|
109
109
|
*/
|
|
110
110
|
export type AnnotationManagerMethods = {
|
|
111
111
|
allowAnnotation: () => boolean;
|
|
112
|
-
startDraft: () => StartDraftResult;
|
|
113
|
-
clearDraft: () => ClearDraftResult;
|
|
114
112
|
/**
|
|
115
113
|
* This will apply the current draft to the document.
|
|
116
114
|
*
|
|
@@ -122,44 +120,37 @@ export type AnnotationManagerMethods = {
|
|
|
122
120
|
* as this creates different behaviour between the editor and renderer.
|
|
123
121
|
*/
|
|
124
122
|
applyDraft: (id: AnnotationId) => ApplyDraftResult;
|
|
123
|
+
clearAnnotation: (id: AnnotationId) => ClearAnnotationResult;
|
|
124
|
+
clearDraft: () => ClearDraftResult;
|
|
125
125
|
/**
|
|
126
126
|
* This can be used to inspect the current active draft.
|
|
127
127
|
* @returns The current draft data. If the draft is not started, it will return an error.
|
|
128
128
|
*/
|
|
129
129
|
getDraft: () => GetDraftResult;
|
|
130
|
-
setIsAnnotationSelected: (id: AnnotationId, isSelected: boolean) => SelectAnnotationResult;
|
|
131
130
|
setIsAnnotationHovered: (id: AnnotationId, isHovered: boolean) => HoverAnnotationResult;
|
|
132
|
-
|
|
131
|
+
setIsAnnotationSelected: (id: AnnotationId, isSelected: boolean) => SelectAnnotationResult;
|
|
132
|
+
startDraft: () => StartDraftResult;
|
|
133
133
|
};
|
|
134
134
|
export type AnnotationManager = AnnotationManagerMethods & {
|
|
135
|
-
/**
|
|
136
|
-
* This method is used to set a preemptive gate. A preemptive gate is a function that will be called
|
|
137
|
-
* before the manager performs an action. If the function returns false, the action will not be performed.
|
|
138
|
-
*/
|
|
139
|
-
setPreemptiveGate(handler: () => Promise<boolean>): AnnotationManager;
|
|
140
135
|
/**
|
|
141
136
|
* This method is used to run the configured preemptive gate check.
|
|
142
137
|
* @private
|
|
143
138
|
* @internal
|
|
144
139
|
*/
|
|
145
140
|
checkPreemptiveGate(): Promise<boolean>;
|
|
146
|
-
onDraftAnnotationStarted(handler: (data: AnnotationDraftStartedData) => void): AnnotationManager;
|
|
147
|
-
offDraftAnnotationStarted(handler: (data: AnnotationDraftStartedData) => void): AnnotationManager;
|
|
148
|
-
onAnnotationSelectionChange(handler: (data: AnnotationSelectedChangeData) => void): AnnotationManager;
|
|
149
|
-
offAnnotationSelectionChange(handler: (data: AnnotationSelectedChangeData) => void): AnnotationManager;
|
|
150
141
|
/**
|
|
151
142
|
* @private
|
|
152
143
|
* @internal
|
|
153
144
|
* This method is intended for internal Platform use only. It is not intended for use by Product code.
|
|
154
145
|
*/
|
|
155
146
|
emit(event: {
|
|
156
|
-
name: 'draftAnnotationStarted';
|
|
157
147
|
data: AnnotationDraftStartedData;
|
|
148
|
+
name: 'draftAnnotationStarted';
|
|
158
149
|
} | {
|
|
159
150
|
name: 'draftAnnotationCleared';
|
|
160
151
|
} | {
|
|
161
|
-
name: 'annotationSelectionChanged';
|
|
162
152
|
data: AnnotationSelectedChangeData;
|
|
153
|
+
name: 'annotationSelectionChanged';
|
|
163
154
|
}): AnnotationManager;
|
|
164
155
|
/**
|
|
165
156
|
* @private
|
|
@@ -167,6 +158,15 @@ export type AnnotationManager = AnnotationManagerMethods & {
|
|
|
167
158
|
* This method is intended for internal Platform use only. It is not intended for use by Product code.
|
|
168
159
|
*/
|
|
169
160
|
hook<H extends keyof AnnotationManagerMethods>(method: H, handler: AnnotationManagerMethods[H]): AnnotationManager;
|
|
161
|
+
offAnnotationSelectionChange(handler: (data: AnnotationSelectedChangeData) => void): AnnotationManager;
|
|
162
|
+
offDraftAnnotationStarted(handler: (data: AnnotationDraftStartedData) => void): AnnotationManager;
|
|
163
|
+
onAnnotationSelectionChange(handler: (data: AnnotationSelectedChangeData) => void): AnnotationManager;
|
|
164
|
+
onDraftAnnotationStarted(handler: (data: AnnotationDraftStartedData) => void): AnnotationManager;
|
|
165
|
+
/**
|
|
166
|
+
* This method is used to set a preemptive gate. A preemptive gate is a function that will be called
|
|
167
|
+
* before the manager performs an action. If the function returns false, the action will not be performed.
|
|
168
|
+
*/
|
|
169
|
+
setPreemptiveGate(handler: () => Promise<boolean>): AnnotationManager;
|
|
170
170
|
/**
|
|
171
171
|
*
|
|
172
172
|
* @internal
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
2
|
import type { NewCoreIconProps, IconProps } from '@atlaskit/icon/types';
|
|
3
3
|
export interface ButtonOptionProps {
|
|
4
|
-
title: string;
|
|
5
|
-
selected: boolean;
|
|
6
|
-
testId: string;
|
|
7
4
|
disabled: boolean;
|
|
8
|
-
tooltipContent?: string | null;
|
|
9
|
-
onClick: () => void;
|
|
10
5
|
icon: (props: NewCoreIconProps) => JSX.Element;
|
|
11
6
|
iconFallback: (props: IconProps) => JSX.Element;
|
|
7
|
+
onClick: () => void;
|
|
8
|
+
selected: boolean;
|
|
9
|
+
testId: string;
|
|
10
|
+
title: string;
|
|
11
|
+
tooltipContent?: string | null;
|
|
12
12
|
}
|
|
13
13
|
export interface LinkToolbarButtonGroupProps {
|
|
14
14
|
options: ButtonOptionProps[];
|
|
@@ -10,10 +10,10 @@ type WidthPluginType = NextEditorPlugin<'width', {
|
|
|
10
10
|
}>;
|
|
11
11
|
type WidthPluginDependencyApi = PluginDependenciesAPI<WidthPluginType> | undefined;
|
|
12
12
|
export type LayoutIcon = {
|
|
13
|
-
id?: string;
|
|
14
|
-
value: MediaSingleLayout;
|
|
15
13
|
icon: Icon;
|
|
14
|
+
id?: string;
|
|
16
15
|
keyboardShortcut?: Keymap;
|
|
16
|
+
value: MediaSingleLayout;
|
|
17
17
|
};
|
|
18
18
|
export type IconMap = Array<LayoutIcon | {
|
|
19
19
|
value: 'separator';
|