@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
|
@@ -17,59 +17,59 @@ import type { MarkOptions, NodeOptions } from './copy-button';
|
|
|
17
17
|
* New dropdown types to support editor controls
|
|
18
18
|
*/
|
|
19
19
|
export type OverflowDropdownHeading = {
|
|
20
|
-
type: 'overflow-dropdown-heading';
|
|
21
20
|
title: string;
|
|
21
|
+
type: 'overflow-dropdown-heading';
|
|
22
22
|
};
|
|
23
23
|
type OverflowDropdownCustom<T extends Object> = {
|
|
24
|
-
type: 'custom';
|
|
25
24
|
fallback: Array<FloatingToolbarFallbackItem<T>>;
|
|
26
|
-
render: (view?: EditorView, dropdownOption?: Omit<DropdownMenuItemProps, 'item'>) => React.ReactNode;
|
|
27
25
|
hidden?: boolean;
|
|
26
|
+
render: (view?: EditorView, dropdownOption?: Omit<DropdownMenuItemProps, 'item'>) => React.ReactNode;
|
|
27
|
+
type: 'custom';
|
|
28
28
|
};
|
|
29
29
|
export type OverflowDropdownOption<T extends Object> = DropdownOptionT<T> & {
|
|
30
30
|
rank?: number;
|
|
31
31
|
};
|
|
32
32
|
export type FloatingToolbarOverflowDropdownOptions<T extends Object> = Array<OverflowDropdownOption<T> | FloatingToolbarSeparator | OverflowDropdownHeading | OverflowDropdownCustom<T>>;
|
|
33
33
|
export type FloatingToolbarOverflowDropdown<T extends Object> = {
|
|
34
|
-
|
|
35
|
-
options: FloatingToolbarOverflowDropdownOptions<T>;
|
|
36
|
-
testId?: string;
|
|
37
|
-
id?: string;
|
|
38
|
-
hidden?: boolean;
|
|
34
|
+
alignDropdownWithToolbar?: boolean;
|
|
39
35
|
disabled?: boolean;
|
|
40
|
-
tooltip?: string;
|
|
41
36
|
dropdownWidth?: number;
|
|
37
|
+
hidden?: boolean;
|
|
38
|
+
id?: string;
|
|
39
|
+
onClick?: () => void;
|
|
40
|
+
options: FloatingToolbarOverflowDropdownOptions<T>;
|
|
42
41
|
showSelected?: boolean;
|
|
43
|
-
alignDropdownWithToolbar?: boolean;
|
|
44
42
|
supportsViewMode?: boolean;
|
|
45
|
-
|
|
43
|
+
testId?: string;
|
|
44
|
+
tooltip?: string;
|
|
45
|
+
type: 'overflow-dropdown';
|
|
46
46
|
};
|
|
47
47
|
export interface RenderOptionsPropsT<T extends Object> {
|
|
48
|
-
hide: () => void;
|
|
49
48
|
dispatchCommand: (command: T) => void;
|
|
49
|
+
hide: () => void;
|
|
50
50
|
}
|
|
51
51
|
export interface DropdownOptionT<T extends Object> {
|
|
52
|
+
description?: string;
|
|
53
|
+
disabled?: boolean;
|
|
54
|
+
domItemOptions?: {
|
|
55
|
+
type: typeOption;
|
|
56
|
+
};
|
|
57
|
+
elemAfter?: React.ReactNode;
|
|
58
|
+
hidden?: boolean;
|
|
59
|
+
icon?: React.ReactNode;
|
|
52
60
|
id?: string;
|
|
53
|
-
|
|
61
|
+
onBlur?: T;
|
|
54
62
|
onClick: T;
|
|
63
|
+
onFocus?: T;
|
|
55
64
|
onMouseDown?: T;
|
|
56
|
-
onMouseOver?: T;
|
|
57
65
|
onMouseEnter?: T;
|
|
58
66
|
onMouseLeave?: T;
|
|
59
67
|
onMouseOut?: T;
|
|
60
|
-
|
|
61
|
-
onBlur?: T;
|
|
68
|
+
onMouseOver?: T;
|
|
62
69
|
selected?: boolean;
|
|
63
|
-
disabled?: boolean;
|
|
64
|
-
hidden?: boolean;
|
|
65
|
-
domItemOptions?: {
|
|
66
|
-
type: typeOption;
|
|
67
|
-
};
|
|
68
70
|
testId?: string;
|
|
71
|
+
title: string;
|
|
69
72
|
tooltip?: string;
|
|
70
|
-
elemAfter?: React.ReactNode;
|
|
71
|
-
icon?: React.ReactNode;
|
|
72
|
-
description?: string;
|
|
73
73
|
}
|
|
74
74
|
export type typeOption =
|
|
75
75
|
/** Dropdown menu item type
|
|
@@ -77,17 +77,17 @@ export type typeOption =
|
|
|
77
77
|
*/
|
|
78
78
|
'item' | 'item-checkbox';
|
|
79
79
|
export type DropdownOptions<T extends Object> = Array<DropdownOptionT<T>> | {
|
|
80
|
-
render: (props: RenderOptionsPropsT<T>) => React.ReactElement<any> | null;
|
|
81
80
|
height: number;
|
|
81
|
+
render: (props: RenderOptionsPropsT<T>) => React.ReactElement<any> | null;
|
|
82
82
|
width: number;
|
|
83
83
|
};
|
|
84
84
|
export interface SelectOption<T extends Object = Object> {
|
|
85
|
-
|
|
86
|
-
label: string;
|
|
87
|
-
selected?: boolean;
|
|
85
|
+
data?: T;
|
|
88
86
|
disabled?: boolean;
|
|
89
87
|
hidden?: boolean;
|
|
90
|
-
|
|
88
|
+
label: string;
|
|
89
|
+
selected?: boolean;
|
|
90
|
+
value: string;
|
|
91
91
|
}
|
|
92
92
|
export type ButtonAppearance = 'subtle' | 'danger';
|
|
93
93
|
export type Icon = React.ComponentType<React.PropsWithChildren<{
|
|
@@ -96,106 +96,105 @@ export type Icon = React.ComponentType<React.PropsWithChildren<{
|
|
|
96
96
|
export type RenderOptionsProps = RenderOptionsPropsT<Command>;
|
|
97
97
|
export type AlignType = 'left' | 'center' | 'right';
|
|
98
98
|
interface Position {
|
|
99
|
-
top?: number;
|
|
100
|
-
right?: number;
|
|
101
99
|
bottom?: number;
|
|
102
100
|
left?: number;
|
|
101
|
+
right?: number;
|
|
102
|
+
top?: number;
|
|
103
103
|
}
|
|
104
104
|
type PositionOffset = Position;
|
|
105
105
|
export type ConfirmDialogChildInfo = {
|
|
106
|
+
amount: number;
|
|
106
107
|
id: string;
|
|
107
108
|
name: string | null;
|
|
108
|
-
amount: number;
|
|
109
109
|
};
|
|
110
110
|
export interface ConfirmDialogOptions {
|
|
111
|
-
title?: string;
|
|
112
|
-
message: string;
|
|
113
|
-
okButtonLabel?: string;
|
|
114
111
|
cancelButtonLabel?: string;
|
|
115
|
-
isReferentialityDialog?: boolean;
|
|
116
112
|
checkboxLabel?: string;
|
|
117
|
-
messagePrefix?: string;
|
|
118
113
|
getChildrenInfo?: () => ConfirmDialogChildInfo[];
|
|
114
|
+
isReferentialityDialog?: boolean;
|
|
115
|
+
message: string;
|
|
116
|
+
messagePrefix?: string;
|
|
117
|
+
okButtonLabel?: string;
|
|
119
118
|
onConfirm?: (...args: any[]) => Command;
|
|
119
|
+
title?: string;
|
|
120
120
|
}
|
|
121
121
|
export type ConfirmationDialogProps = {
|
|
122
|
-
onConfirm: (isCheck?: boolean) => void;
|
|
123
122
|
/**
|
|
124
123
|
* onClose is called every time when the dialog is closed.
|
|
125
124
|
* Either clicking on 'Confirm' button or 'Cancel' button,
|
|
126
125
|
* which means it is being called after onConfirm, or by itself when clicking 'Cancel' button.
|
|
127
126
|
*/
|
|
128
127
|
onClose: () => void;
|
|
128
|
+
onConfirm: (isCheck?: boolean) => void;
|
|
129
129
|
options?: ConfirmDialogOptions;
|
|
130
130
|
testId?: string;
|
|
131
131
|
};
|
|
132
132
|
export type FloatingToolbarButtonSpotlightConfig = {
|
|
133
133
|
isSpotlightOpen: boolean;
|
|
134
|
-
pulse?: boolean;
|
|
135
134
|
onTargetClick?: () => void;
|
|
135
|
+
pulse?: boolean;
|
|
136
136
|
spotlightCardOptions: React.ComponentProps<typeof SpotlightCard> & {
|
|
137
137
|
placement?: Placement;
|
|
138
138
|
};
|
|
139
139
|
};
|
|
140
140
|
export type FloatingToolbarCopyButton = {
|
|
141
|
-
type: 'copy-button';
|
|
142
|
-
items: Array<FloatingToolbarSeparator | MarkOptions | NodeOptions>;
|
|
143
141
|
hidden?: boolean;
|
|
142
|
+
items: Array<FloatingToolbarSeparator | MarkOptions | NodeOptions>;
|
|
144
143
|
supportsViewMode?: boolean;
|
|
144
|
+
type: 'copy-button';
|
|
145
145
|
};
|
|
146
146
|
export type FloatingToolbarButton<T extends Object> = {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
showTitle?: boolean;
|
|
153
|
-
onMouseEnter?: T;
|
|
154
|
-
onMouseLeave?: T;
|
|
155
|
-
onFocus?: T;
|
|
156
|
-
onBlur?: T;
|
|
157
|
-
onMount?: () => void;
|
|
158
|
-
onUnmount?: () => void;
|
|
159
|
-
icon?: Icon;
|
|
160
|
-
iconFallback?: Icon;
|
|
161
|
-
iconAfter?: Icon;
|
|
162
|
-
selected?: boolean;
|
|
147
|
+
appearance?: ButtonAppearance;
|
|
148
|
+
ariaHasPopup?: boolean | 'dialog' | 'menu' | 'listbox' | 'tree' | 'grid' | undefined;
|
|
149
|
+
ariaLabel?: string;
|
|
150
|
+
className?: string;
|
|
151
|
+
confirmDialog?: ConfirmDialogOptions | (() => ConfirmDialogOptions);
|
|
163
152
|
disabled?: boolean;
|
|
153
|
+
focusEditoronEnter?: boolean;
|
|
164
154
|
hidden?: boolean;
|
|
165
|
-
|
|
155
|
+
hideTooltipOnClick?: boolean;
|
|
166
156
|
href?: string;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
157
|
+
icon?: Icon;
|
|
158
|
+
iconAfter?: Icon;
|
|
159
|
+
iconFallback?: Icon;
|
|
160
|
+
id?: string;
|
|
171
161
|
interactionName?: string;
|
|
172
|
-
|
|
173
|
-
confirmDialog?: ConfirmDialogOptions | (() => ConfirmDialogOptions);
|
|
162
|
+
isRadioButton?: boolean;
|
|
174
163
|
metadata?: {
|
|
175
164
|
[key: string]: string;
|
|
176
165
|
};
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
166
|
+
onBlur?: T;
|
|
167
|
+
onClick: T;
|
|
168
|
+
onFocus?: T;
|
|
169
|
+
onMount?: () => void;
|
|
170
|
+
onMouseEnter?: T;
|
|
171
|
+
onMouseLeave?: T;
|
|
172
|
+
onUnmount?: () => void;
|
|
181
173
|
/** If true, the component will have pulse onboarding effect around it. */
|
|
182
174
|
pulse?: boolean;
|
|
175
|
+
selected?: boolean;
|
|
176
|
+
showTitle?: boolean;
|
|
183
177
|
spotlightConfig?: FloatingToolbarButtonSpotlightConfig;
|
|
184
|
-
|
|
178
|
+
supportsViewMode?: boolean;
|
|
179
|
+
tabIndex?: number | null | undefined;
|
|
180
|
+
target?: string;
|
|
181
|
+
testId?: string;
|
|
182
|
+
title: string;
|
|
183
|
+
tooltipContent?: TooltipProps['content'];
|
|
184
|
+
type: 'button';
|
|
185
185
|
};
|
|
186
186
|
export type FloatingToolbarInput<T extends Object> = {
|
|
187
|
-
|
|
188
|
-
type: 'input';
|
|
189
|
-
title?: string;
|
|
187
|
+
defaultValue?: string;
|
|
190
188
|
description?: string;
|
|
191
|
-
|
|
189
|
+
hidden?: boolean;
|
|
190
|
+
id: string;
|
|
192
191
|
onBlur: (...args: any[]) => T;
|
|
193
|
-
|
|
192
|
+
onSubmit: (...args: any[]) => T;
|
|
194
193
|
placeholder?: string;
|
|
195
|
-
|
|
194
|
+
title?: string;
|
|
195
|
+
type: 'input';
|
|
196
196
|
};
|
|
197
197
|
export type FloatingToolbarCustom<T extends Object> = {
|
|
198
|
-
type: 'custom';
|
|
199
198
|
/**
|
|
200
199
|
* By default -- the floating toolbar supports navigating between
|
|
201
200
|
* items using arrow keys (to meet aria guidelines).
|
|
@@ -208,24 +207,25 @@ export type FloatingToolbarCustom<T extends Object> = {
|
|
|
208
207
|
*/
|
|
209
208
|
disableArrowNavigation?: boolean;
|
|
210
209
|
fallback: Array<FloatingToolbarFallbackItem<T>>;
|
|
211
|
-
render: (view?: EditorView, idx?: number, dispatchAnalyticsEvent?: DispatchAnalyticsEvent) => React.ReactNode;
|
|
212
210
|
hidden?: boolean;
|
|
211
|
+
render: (view?: EditorView, idx?: number, dispatchAnalyticsEvent?: DispatchAnalyticsEvent) => React.ReactNode;
|
|
213
212
|
supportsViewMode?: boolean;
|
|
213
|
+
type: 'custom';
|
|
214
214
|
};
|
|
215
215
|
type FloatingToolbarSelectBase<T extends Object, V = SelectOption> = {
|
|
216
|
+
defaultValue?: V | null;
|
|
217
|
+
filterOption?: ((option: V, rawInput: string) => boolean) | null;
|
|
218
|
+
hidden?: boolean;
|
|
219
|
+
hideExpandIcon?: boolean;
|
|
216
220
|
id: string;
|
|
217
|
-
type: 'select';
|
|
218
|
-
selectType: 'list' | 'emoji' | 'date' | 'color';
|
|
219
|
-
title?: string;
|
|
220
221
|
isAriaExpanded?: boolean;
|
|
222
|
+
onChange: (selected: V) => T;
|
|
221
223
|
options: V[];
|
|
222
|
-
hidden?: boolean;
|
|
223
|
-
hideExpandIcon?: boolean;
|
|
224
|
-
defaultValue?: V | null;
|
|
225
224
|
placeholder?: string;
|
|
226
225
|
returnEscToButton?: boolean;
|
|
227
|
-
|
|
228
|
-
|
|
226
|
+
selectType: 'list' | 'emoji' | 'date' | 'color';
|
|
227
|
+
title?: string;
|
|
228
|
+
type: 'select';
|
|
229
229
|
};
|
|
230
230
|
export type FloatingToolbarListPicker<T extends Object> = FloatingToolbarSelectBase<T> & {
|
|
231
231
|
selectType: 'list';
|
|
@@ -234,52 +234,52 @@ export type FloatingToolbarColorPicker<T extends Object> = FloatingToolbarSelect
|
|
|
234
234
|
selectType: 'color';
|
|
235
235
|
};
|
|
236
236
|
export type FloatingToolbarEmojiPicker<T extends Object> = FloatingToolbarSelectBase<T, EmojiId> & {
|
|
237
|
-
selectType: 'emoji';
|
|
238
|
-
selected?: boolean;
|
|
239
237
|
options: never[];
|
|
238
|
+
selected?: boolean;
|
|
239
|
+
selectType: 'emoji';
|
|
240
240
|
};
|
|
241
241
|
export type FloatingToolbarDatePicker<T extends Object> = FloatingToolbarSelectBase<T, number> & {
|
|
242
|
-
selectType: 'date';
|
|
243
242
|
options: never[];
|
|
243
|
+
selectType: 'date';
|
|
244
244
|
};
|
|
245
245
|
export type FloatingToolbarSelect<T extends Object> = FloatingToolbarEmojiPicker<T> | FloatingToolbarColorPicker<T> | FloatingToolbarListPicker<T> | FloatingToolbarDatePicker<T>;
|
|
246
246
|
export type FloatingToolbarSeparator = {
|
|
247
|
-
type: 'separator';
|
|
248
|
-
hidden?: boolean;
|
|
249
247
|
fullHeight?: boolean;
|
|
248
|
+
hidden?: boolean;
|
|
250
249
|
supportsViewMode?: boolean;
|
|
250
|
+
type: 'separator';
|
|
251
251
|
};
|
|
252
252
|
export type ExtensionDropdownOptions = () => DropdownOptions<Function>;
|
|
253
253
|
export type FloatingToolbarDropdown<T extends Object> = {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
254
|
+
alignDropdownWithToolbar?: boolean;
|
|
255
|
+
disabled?: boolean;
|
|
256
|
+
dropdownWidth?: number;
|
|
257
|
+
footer?: React.ReactNode;
|
|
258
|
+
hidden?: boolean;
|
|
259
|
+
hideExpandIcon?: boolean;
|
|
258
260
|
icon?: Icon;
|
|
259
261
|
/**
|
|
260
262
|
* Places an icon before the title as a representation
|
|
261
263
|
*/
|
|
262
264
|
iconBefore?: Icon;
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
disabled?: boolean;
|
|
267
|
-
tooltip?: string;
|
|
268
|
-
dropdownWidth?: number;
|
|
269
|
-
showSelected?: boolean;
|
|
270
|
-
alignDropdownWithToolbar?: boolean;
|
|
265
|
+
id?: string;
|
|
266
|
+
onClick?: () => void;
|
|
267
|
+
onMount?: () => void;
|
|
271
268
|
onToggle?: (state: EditorState, dispatch: CommandDispatch | undefined) => boolean;
|
|
272
|
-
|
|
269
|
+
options: DropdownOptions<T> | ExtensionDropdownOptions;
|
|
273
270
|
/** If true, the component will have pulse onboarding effect around it. */
|
|
274
271
|
pulse?: boolean;
|
|
275
|
-
onMount?: () => void;
|
|
276
|
-
onClick?: () => void;
|
|
277
272
|
shouldFitContainer?: boolean;
|
|
273
|
+
showSelected?: boolean;
|
|
274
|
+
testId?: string;
|
|
275
|
+
title: string;
|
|
276
|
+
tooltip?: string;
|
|
277
|
+
type: 'dropdown';
|
|
278
278
|
};
|
|
279
279
|
type FloatingToolbarExtensionsPlaceholder = {
|
|
280
|
-
type: 'extensions-placeholder';
|
|
281
280
|
hidden?: boolean;
|
|
282
281
|
separator?: 'start' | 'end' | 'both';
|
|
282
|
+
type: 'extensions-placeholder';
|
|
283
283
|
};
|
|
284
284
|
/**
|
|
285
285
|
* This additional type is introduced in order to prevent infinite loop due to
|
|
@@ -293,8 +293,25 @@ type FloatingToolbarExtensionsPlaceholder = {
|
|
|
293
293
|
export type FloatingToolbarFallbackItem<T extends Object> = FloatingToolbarButton<T> | FloatingToolbarCopyButton | FloatingToolbarDropdown<T> | FloatingToolbarSelect<T> | FloatingToolbarInput<T> | FloatingToolbarSeparator;
|
|
294
294
|
export type FloatingToolbarItem<T extends Object> = FloatingToolbarButton<T> | FloatingToolbarCopyButton | FloatingToolbarDropdown<T> | FloatingToolbarSelect<T> | FloatingToolbarInput<T> | FloatingToolbarCustom<T> | FloatingToolbarSeparator | FloatingToolbarExtensionsPlaceholder | FloatingToolbarOverflowDropdown<T>;
|
|
295
295
|
export interface FloatingToolbarConfig {
|
|
296
|
-
/**
|
|
297
|
-
|
|
296
|
+
/**
|
|
297
|
+
* For internal use only, we will be depricating this API soon.
|
|
298
|
+
* If any config has __suppressAllToolbars set to true, no floating toolbar will be rendered.
|
|
299
|
+
* Use case:
|
|
300
|
+
* When a node is nested inside a table and the cursor is inside of the nested node.
|
|
301
|
+
* Nested node's toolbar is active. When table's menu opens, we provide table's config with
|
|
302
|
+
* __suppressAllToolbars set to true.
|
|
303
|
+
*/
|
|
304
|
+
__suppressAllToolbars?: boolean;
|
|
305
|
+
/** Absolute offset of the toolbar */
|
|
306
|
+
absoluteOffset?: PositionOffset;
|
|
307
|
+
align?: AlignType;
|
|
308
|
+
/** Class added to Toolbar wrapper */
|
|
309
|
+
className?: string;
|
|
310
|
+
/**
|
|
311
|
+
* Enable Popup component's focus trap
|
|
312
|
+
*/
|
|
313
|
+
focusTrap?: boolean;
|
|
314
|
+
forcePlacement?: boolean;
|
|
298
315
|
/**
|
|
299
316
|
* Override the DOM reference used to apply as the target for the
|
|
300
317
|
* floating toolbar, if the config matches.
|
|
@@ -303,50 +320,33 @@ export interface FloatingToolbarConfig {
|
|
|
303
320
|
* head of the current selection.
|
|
304
321
|
*/
|
|
305
322
|
getDomRef?: (view: EditorView) => HTMLElement | undefined;
|
|
306
|
-
/**
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
|
|
310
|
-
**/
|
|
311
|
-
nodeType: NodeType | NodeType[];
|
|
323
|
+
/** aria-label added to role='radiogroup'element */
|
|
324
|
+
groupLabel?: string;
|
|
325
|
+
/** Toolbar height */
|
|
326
|
+
height?: number;
|
|
312
327
|
/** Items that will populate the Toolbar.
|
|
313
328
|
*
|
|
314
329
|
* See: `FloatingToolbarItem`
|
|
315
330
|
*/
|
|
316
331
|
items: Array<FloatingToolbarItem<Command>> | ((node: Node) => Array<FloatingToolbarItem<Command>>);
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
/** Toolbar height */
|
|
323
|
-
height?: number;
|
|
324
|
-
/** Toolbar width */
|
|
325
|
-
width?: number;
|
|
326
|
-
zIndex?: number;
|
|
332
|
+
mediaAssistiveMessage?: string;
|
|
333
|
+
/**
|
|
334
|
+
* nodeType or list of `nodeType`s this floating toolbar should be shown for.
|
|
335
|
+
**/
|
|
336
|
+
nodeType: NodeType | NodeType[];
|
|
327
337
|
/** Offset the position of the toolbar. */
|
|
328
338
|
offset?: [number, number];
|
|
329
|
-
/** Absolute offset of the toolbar */
|
|
330
|
-
absoluteOffset?: PositionOffset;
|
|
331
|
-
forcePlacement?: boolean;
|
|
332
339
|
onPositionCalculated?: (editorView: EditorView, nextPos: Position) => Position;
|
|
333
|
-
scrollable?: boolean;
|
|
334
|
-
/**
|
|
335
|
-
* Enable Popup component's focus trap
|
|
336
|
-
*/
|
|
337
|
-
focusTrap?: boolean;
|
|
338
340
|
preventPopupOverflow?: boolean;
|
|
339
|
-
|
|
341
|
+
scrollable?: boolean;
|
|
340
342
|
stick?: boolean;
|
|
341
|
-
/**
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
*/
|
|
349
|
-
__suppressAllToolbars?: boolean;
|
|
343
|
+
/** Used for the ariaLabel on the <Popup /> component */
|
|
344
|
+
title: string;
|
|
345
|
+
/** Can prevent the Toolbar from rendering */
|
|
346
|
+
visible?: boolean;
|
|
347
|
+
/** Toolbar width */
|
|
348
|
+
width?: number;
|
|
349
|
+
zIndex?: number;
|
|
350
350
|
}
|
|
351
351
|
export type FloatingToolbarHandler = (state: EditorState, intl: IntlShape, providerFactory: ProviderFactory, processedConfigs?: Array<FloatingToolbarConfig>) => FloatingToolbarConfig | undefined;
|
|
352
352
|
export {};
|
|
@@ -12,6 +12,10 @@ export type LinkPickerOptions = Partial<LinkPickerProps>;
|
|
|
12
12
|
* Configuration for editor linking behaviours
|
|
13
13
|
*/
|
|
14
14
|
export interface LinkingOptions {
|
|
15
|
+
/**
|
|
16
|
+
* Convert compatible link text to hyperlinks on blur of the editor
|
|
17
|
+
*/
|
|
18
|
+
autoLinkOnBlur?: boolean;
|
|
15
19
|
/**
|
|
16
20
|
* Initial props to configure the link picker component with. Primarily used to provide link search and suggestions capabilities.
|
|
17
21
|
* @see https://atlaskit.atlassian.com/packages/editor/editor-core/example/full-page-with-link-picker
|
|
@@ -22,10 +26,6 @@ export interface LinkingOptions {
|
|
|
22
26
|
* Enables and configure smart link behaviour
|
|
23
27
|
*/
|
|
24
28
|
smartLinks?: CardOptions;
|
|
25
|
-
/**
|
|
26
|
-
* Convert compatible link text to hyperlinks on blur of the editor
|
|
27
|
-
*/
|
|
28
|
-
autoLinkOnBlur?: boolean;
|
|
29
29
|
}
|
|
30
30
|
type OnClickCallback = ({ event, url, }: {
|
|
31
31
|
event: React.MouseEvent<HTMLAnchorElement>;
|
|
@@ -39,15 +39,15 @@ type OnClickCallback = ({ event, url, }: {
|
|
|
39
39
|
* @see https://product-fabric.atlassian.net/browse/ED-27496
|
|
40
40
|
*/
|
|
41
41
|
export interface HyperlinkPluginOptions {
|
|
42
|
-
linkPicker?: LinkPickerOptions;
|
|
43
|
-
platform?: 'mobile' | 'web';
|
|
44
|
-
editorAppearance?: EditorAppearance;
|
|
45
|
-
lpLinkPicker?: boolean;
|
|
46
|
-
disableFloatingToolbar?: boolean;
|
|
47
|
-
onClickCallback?: OnClickCallback;
|
|
48
42
|
/**
|
|
49
43
|
* Convert compatible link text to hyperlinks on blur of the editor
|
|
50
44
|
*/
|
|
51
45
|
autoLinkOnBlur?: boolean;
|
|
46
|
+
disableFloatingToolbar?: boolean;
|
|
47
|
+
editorAppearance?: EditorAppearance;
|
|
48
|
+
linkPicker?: LinkPickerOptions;
|
|
49
|
+
lpLinkPicker?: boolean;
|
|
50
|
+
onClickCallback?: OnClickCallback;
|
|
51
|
+
platform?: 'mobile' | 'web';
|
|
52
52
|
}
|
|
53
53
|
export {};
|
|
@@ -2,7 +2,7 @@ import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/stat
|
|
|
2
2
|
export type InputRuleHandler = (state: EditorState, matchResult: RegExpExecArray, start: number, end: number) => Transaction | null;
|
|
3
3
|
export type OnHandlerApply = (state: EditorState, tr: Transaction, matchResult: RegExpExecArray) => void;
|
|
4
4
|
export interface InputRuleWrapper {
|
|
5
|
-
match: RegExp;
|
|
6
5
|
handler: InputRuleHandler;
|
|
6
|
+
match: RegExp;
|
|
7
7
|
onHandlerApply?: OnHandlerApply;
|
|
8
8
|
}
|