@atlaskit/editor-common 107.28.2 → 107.30.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 +27 -0
- package/afm-cc/tsconfig.json +7 -4
- package/dist/cjs/block-menu/messages.js +6 -1
- package/dist/cjs/code-block/index.js +58 -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/code-block/index.js +57 -0
- 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/code-block/index.js +57 -0
- 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/code-block/index.d.ts +6 -0
- 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/code-block/index.d.ts +6 -0
- 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 +5 -9
|
@@ -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';
|
|
@@ -7,16 +7,21 @@ export type OnClickCallback = ({ event, url, }: {
|
|
|
7
7
|
}) => void;
|
|
8
8
|
export interface CardOptions {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Configure visibility of actions available.
|
|
11
|
+
* By default, smart links show all actions available on the views.
|
|
12
|
+
* Set `hide` to true to disable all actions.
|
|
13
|
+
* Set `hide` to false and set `exclude` to enable only specific actions.
|
|
11
14
|
*
|
|
12
|
-
*
|
|
15
|
+
* Component: inline (hover preview), block (card)
|
|
13
16
|
*/
|
|
14
|
-
|
|
17
|
+
actionOptions?: CardProps['actionOptions'];
|
|
15
18
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
19
|
+
* A flag to display alignment options in the link toolbar on Smart Link with embed appearance.
|
|
20
|
+
* Default is true.
|
|
21
|
+
*
|
|
22
|
+
* Component: embed
|
|
18
23
|
*/
|
|
19
|
-
|
|
24
|
+
allowAlignment?: boolean;
|
|
20
25
|
/**
|
|
21
26
|
* A flag to determine whether editor can display Smart Link with block (Card) appearance.
|
|
22
27
|
* Default is true.
|
|
@@ -46,37 +51,37 @@ export interface CardOptions {
|
|
|
46
51
|
*/
|
|
47
52
|
allowResizing?: boolean;
|
|
48
53
|
/**
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
* Set `hide` to true to disable all actions.
|
|
52
|
-
* Set `hide` to false and set `exclude` to enable only specific actions.
|
|
54
|
+
* A flag to display wrapping options in the link toolbar on Smart Link with embed appearance.
|
|
55
|
+
* Default is true.
|
|
53
56
|
*
|
|
54
|
-
* Component:
|
|
57
|
+
* Component: embed
|
|
55
58
|
*/
|
|
56
|
-
|
|
59
|
+
allowWrapping?: boolean;
|
|
57
60
|
/**
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* Default is true.
|
|
61
|
+
* A flag to determine whether page is SSRed. Directly render card if page is SSRed
|
|
62
|
+
* with resolved data and skip lazy load process.
|
|
63
|
+
* Default is false.
|
|
62
64
|
*
|
|
63
65
|
* Component: inline
|
|
64
66
|
*/
|
|
65
|
-
|
|
67
|
+
isPageSSRed?: boolean;
|
|
66
68
|
/**
|
|
67
|
-
* A
|
|
68
|
-
* Default is true.
|
|
69
|
+
* A callback to determine the link click behaviour.
|
|
69
70
|
*
|
|
70
|
-
* Component: embed
|
|
71
|
+
* Component: inline, block (card), embed
|
|
71
72
|
*/
|
|
72
|
-
|
|
73
|
+
onClickCallback?: OnClickCallback;
|
|
73
74
|
/**
|
|
74
|
-
* A
|
|
75
|
-
* Default is true.
|
|
75
|
+
* A promise returning the instance of EditorCardProvider
|
|
76
76
|
*
|
|
77
|
-
*
|
|
77
|
+
* Example: Promise.resolve(new EditorCardProvider())
|
|
78
78
|
*/
|
|
79
|
-
|
|
79
|
+
provider?: Providers['cardProvider'];
|
|
80
|
+
/**
|
|
81
|
+
* When the URL pattern is in conflict with Smart Links and macros, macros will take priority over Smart Links.
|
|
82
|
+
* Specify the names of macros to allow card plugin to override the macros behaviour and converts the URL to Smart Link.
|
|
83
|
+
*/
|
|
84
|
+
resolveBeforeMacros?: string[];
|
|
80
85
|
/**
|
|
81
86
|
* A flag to display Smart Link upgrade discovery.
|
|
82
87
|
* Default is true.
|
|
@@ -85,23 +90,18 @@ export interface CardOptions {
|
|
|
85
90
|
*/
|
|
86
91
|
showUpgradeDiscoverability?: boolean;
|
|
87
92
|
/**
|
|
88
|
-
*
|
|
93
|
+
* By default, Smart Link with inline appearance resolving states show a frame with a spinner on the left.
|
|
94
|
+
* An alternative is to remove the frame and place the spinner on the right by setting this value to `on-right-without-skeleton`.
|
|
95
|
+
* This property is specific to inline links in the editor.
|
|
96
|
+
* Default is true.
|
|
89
97
|
*
|
|
90
|
-
* Component: inline
|
|
98
|
+
* Component: inline
|
|
91
99
|
*/
|
|
92
|
-
|
|
100
|
+
useAlternativePreloader?: boolean;
|
|
93
101
|
/**
|
|
94
102
|
* Customises the outbound link to configure user preferences
|
|
95
103
|
*
|
|
96
104
|
* Component: link toolbar
|
|
97
105
|
*/
|
|
98
106
|
userPreferencesLink?: string;
|
|
99
|
-
/**
|
|
100
|
-
* A flag to determine whether page is SSRed. Directly render card if page is SSRed
|
|
101
|
-
* with resolved data and skip lazy load process.
|
|
102
|
-
* Default is false.
|
|
103
|
-
*
|
|
104
|
-
* Component: inline
|
|
105
|
-
*/
|
|
106
|
-
isPageSSRed?: boolean;
|
|
107
107
|
}
|
|
@@ -7,14 +7,14 @@ import { type CardAppearance, type CardProvider } from '../provider-factory';
|
|
|
7
7
|
import type { Command, FloatingToolbarItem } from '../types';
|
|
8
8
|
export interface OptionConfig {
|
|
9
9
|
appearance?: CardAppearance;
|
|
10
|
-
|
|
10
|
+
description?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
hidden?: boolean;
|
|
11
13
|
onClick: Command;
|
|
12
14
|
selected: boolean;
|
|
13
15
|
testId: string;
|
|
14
|
-
|
|
15
|
-
hidden?: boolean;
|
|
16
|
+
title: string;
|
|
16
17
|
tooltip?: string;
|
|
17
|
-
description?: string;
|
|
18
18
|
}
|
|
19
19
|
export type CardReplacementInputMethod = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.AUTO_DETECT | INPUT_METHOD.FORMATTING | INPUT_METHOD.MANUAL | INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.FLOATING_TB;
|
|
20
20
|
export type QueueCardsFromTransactionAction = (state: EditorState, tr: Transaction, source: CardReplacementInputMethod, analyticsAction?: ACTION, normalizeLinkText?: boolean, sourceEvent?: UIAnalyticsEvent | null | undefined, appearance?: CardAppearance) => Transaction;
|
|
@@ -22,14 +22,14 @@ export type HideLinkToolbarAction = (tr: Transaction) => Transaction;
|
|
|
22
22
|
export type ChangeSelectedCardToLink = (text?: string, href?: string, sendAnalytics?: boolean, node?: Node, pos?: number, editorAnalyticsApi?: EditorAnalyticsAPI) => Command;
|
|
23
23
|
export type SetSelectedCardAppearance = (appearance: CardAppearance, editorAnalyticsApi: EditorAnalyticsAPI | undefined) => Command;
|
|
24
24
|
export type GetStartingToolbarItems = (intl: IntlShape, link: string, onEditLink: Command, metadata: {
|
|
25
|
-
url: string;
|
|
26
25
|
title: string;
|
|
26
|
+
url: string;
|
|
27
27
|
}, state?: EditorState) => FloatingToolbarItem<Command>[];
|
|
28
28
|
export type GetEndingToolbarItems = (intl: IntlShape, link: string) => FloatingToolbarItem<Command>[];
|
|
29
29
|
export type CardPluginActions = {
|
|
30
|
-
queueCardsFromChangedTr: QueueCardsFromTransactionAction;
|
|
31
|
-
hideLinkToolbar: HideLinkToolbarAction;
|
|
32
|
-
getStartingToolbarItems: GetStartingToolbarItems;
|
|
33
30
|
getEndingToolbarItems: GetEndingToolbarItems;
|
|
31
|
+
getStartingToolbarItems: GetStartingToolbarItems;
|
|
32
|
+
hideLinkToolbar: HideLinkToolbarAction;
|
|
33
|
+
queueCardsFromChangedTr: QueueCardsFromTransactionAction;
|
|
34
34
|
setProvider: (provider: Promise<CardProvider>) => Promise<boolean>;
|
|
35
35
|
};
|
|
@@ -3,7 +3,13 @@ import { type EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
|
3
3
|
import { type NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
4
4
|
export declare const defaultWordWrapState = false;
|
|
5
5
|
export declare const codeBlockWrappedStates: WeakMap<PmNode, boolean | undefined>;
|
|
6
|
+
export interface FoldRange {
|
|
7
|
+
from: number;
|
|
8
|
+
to: number;
|
|
9
|
+
}
|
|
6
10
|
export declare const isCodeBlockWordWrapEnabled: (codeBlockNode: PmNode) => boolean;
|
|
11
|
+
export declare const getCodeBlockFoldState: (codeBlockNode: PmNode) => FoldRange[];
|
|
12
|
+
export declare const setCodeBlockFoldState: (codeBlockNode: PmNode, foldRanges: FoldRange[]) => void;
|
|
7
13
|
/**
|
|
8
14
|
* Swap the old node key with the new node key in the wrapped states WeakMap.
|
|
9
15
|
*/
|