@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
|
@@ -4,44 +4,44 @@ import { type INPUT_METHOD } from '../../analytics';
|
|
|
4
4
|
export type RecentSearchInputTypes = INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.MANUAL;
|
|
5
5
|
export interface ChildProps {
|
|
6
6
|
activityProvider: ActivityProvider | null;
|
|
7
|
+
clearValue(): void;
|
|
8
|
+
currentInputMethod?: RecentSearchInputTypes;
|
|
7
9
|
inputProps: {
|
|
8
10
|
onChange(input: string): void;
|
|
9
11
|
onKeyDown(event: KeyboardEvent<any>): void;
|
|
10
12
|
onSubmit(): void;
|
|
11
13
|
value: string;
|
|
12
14
|
};
|
|
13
|
-
currentInputMethod?: RecentSearchInputTypes;
|
|
14
|
-
clearValue(): void;
|
|
15
15
|
renderRecentList(): React.ReactNode;
|
|
16
16
|
}
|
|
17
17
|
export interface RecentSearchSubmitOptions {
|
|
18
|
+
inputMethod: RecentSearchInputTypes;
|
|
18
19
|
text: string;
|
|
19
20
|
url: string;
|
|
20
|
-
inputMethod: RecentSearchInputTypes;
|
|
21
21
|
}
|
|
22
22
|
export interface RecentSearchProps {
|
|
23
23
|
defaultUrl?: string;
|
|
24
|
-
|
|
24
|
+
limit?: number;
|
|
25
25
|
onBlur(options: RecentSearchSubmitOptions): void;
|
|
26
|
+
onSubmit(options: RecentSearchSubmitOptions): void;
|
|
26
27
|
render(state: ChildProps): React.ReactNode;
|
|
27
|
-
limit?: number;
|
|
28
28
|
}
|
|
29
29
|
export interface RecentSearchState {
|
|
30
|
+
isLoading: boolean;
|
|
30
31
|
items: Array<ActivityItem>;
|
|
31
32
|
selectedIndex: number;
|
|
32
|
-
isLoading: boolean;
|
|
33
33
|
url: string;
|
|
34
34
|
}
|
|
35
35
|
export type LinkSearchListItemData = {
|
|
36
|
-
objectId: string;
|
|
37
|
-
name: string;
|
|
38
36
|
container: string;
|
|
39
|
-
url: string;
|
|
40
|
-
iconUrl?: string | never;
|
|
41
37
|
icon?: React.ReactChild | never;
|
|
42
|
-
|
|
38
|
+
iconUrl?: string | never;
|
|
43
39
|
lastUpdatedDate?: Date;
|
|
40
|
+
lastViewedDate?: Date;
|
|
41
|
+
name: string;
|
|
42
|
+
objectId: string;
|
|
44
43
|
prefetch?: boolean;
|
|
44
|
+
url: string;
|
|
45
45
|
} & ({
|
|
46
46
|
iconUrl: string;
|
|
47
47
|
} | {
|
|
@@ -17,30 +17,30 @@ export declare enum InsertStatus {
|
|
|
17
17
|
EDIT_INSERTED_TOOLBAR = "EDIT_INSERTED"
|
|
18
18
|
}
|
|
19
19
|
export type InsertState = {
|
|
20
|
-
type: InsertStatus.INSERT_LINK_TOOLBAR;
|
|
21
20
|
from: number;
|
|
22
21
|
to: number;
|
|
22
|
+
type: InsertStatus.INSERT_LINK_TOOLBAR;
|
|
23
23
|
};
|
|
24
24
|
export type EditInsertedState = {
|
|
25
|
-
type: InsertStatus.EDIT_INSERTED_TOOLBAR;
|
|
26
25
|
node: Node;
|
|
27
26
|
pos: number;
|
|
27
|
+
type: InsertStatus.EDIT_INSERTED_TOOLBAR;
|
|
28
28
|
};
|
|
29
29
|
export type EditState = {
|
|
30
|
-
type: InsertStatus.EDIT_LINK_TOOLBAR;
|
|
31
30
|
node: Node;
|
|
32
31
|
pos: number;
|
|
32
|
+
type: InsertStatus.EDIT_LINK_TOOLBAR;
|
|
33
33
|
};
|
|
34
34
|
export type LinkToolbarState = EditState | EditInsertedState | InsertState | undefined;
|
|
35
35
|
export interface HyperlinkState {
|
|
36
|
-
activeText?: string;
|
|
37
36
|
activeLinkMark?: LinkToolbarState;
|
|
38
|
-
|
|
37
|
+
activeText?: string;
|
|
39
38
|
canInsertLink: boolean;
|
|
40
|
-
searchSessionId?: string;
|
|
41
|
-
inputMethod?: INPUT_METHOD;
|
|
42
|
-
editorAppearance?: EditorAppearance;
|
|
43
39
|
configureButtonTargetPos?: number;
|
|
44
|
-
decorations?: DecorationSet;
|
|
45
40
|
configureDropdownOpen?: boolean;
|
|
41
|
+
decorations?: DecorationSet;
|
|
42
|
+
editorAppearance?: EditorAppearance;
|
|
43
|
+
inputMethod?: INPUT_METHOD;
|
|
44
|
+
searchSessionId?: string;
|
|
45
|
+
timesViewed: number;
|
|
46
46
|
}
|
|
@@ -6,13 +6,13 @@ export declare enum JoinDirection {
|
|
|
6
6
|
RIGHT = -1
|
|
7
7
|
}
|
|
8
8
|
type JoinSiblingListsProps = {
|
|
9
|
-
tr: Transaction;
|
|
10
9
|
direction?: JoinDirection;
|
|
11
10
|
forceListType?: NodeType;
|
|
11
|
+
tr: Transaction;
|
|
12
12
|
};
|
|
13
13
|
type ListsJoined = {
|
|
14
|
-
orderedList: number;
|
|
15
14
|
bulletList: number;
|
|
15
|
+
orderedList: number;
|
|
16
16
|
};
|
|
17
17
|
export declare const joinSiblingLists: ({ tr, direction, forceListType, }: JoinSiblingListsProps) => ListsJoined;
|
|
18
18
|
export declare const processNestedTaskListsInSameLevel: (tr: Transaction) => void;
|
|
@@ -2,8 +2,8 @@ import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import type { Step } from '@atlaskit/editor-prosemirror/transform';
|
|
4
4
|
type Params = {
|
|
5
|
-
insertPosition: number;
|
|
6
5
|
$target: ResolvedPos;
|
|
6
|
+
insertPosition: number;
|
|
7
7
|
};
|
|
8
8
|
export declare const moveTargetIntoList: ({ insertPosition, $target }: Params) => Step;
|
|
9
9
|
export declare const wrapTaskListIntoListAbove: (tr: Transaction, taskListStart: number, previousListStart: number) => void;
|
|
@@ -6,8 +6,8 @@ export declare const getListItemAttributes: ($pos: ResolvedPos) => {
|
|
|
6
6
|
itemIndex: number;
|
|
7
7
|
};
|
|
8
8
|
type NormalizeListItemsSelection = (props: {
|
|
9
|
-
selection: Selection;
|
|
10
9
|
doc: PMNode;
|
|
10
|
+
selection: Selection;
|
|
11
11
|
}) => Selection;
|
|
12
12
|
export declare const normalizeListItemsSelection: NormalizeListItemsSelection;
|
|
13
13
|
export {};
|
|
@@ -2,14 +2,14 @@ import type { FileIdentifier } from '@atlaskit/media-client';
|
|
|
2
2
|
import type { SSR } from '@atlaskit/media-common';
|
|
3
3
|
import type { Dimensions } from './types';
|
|
4
4
|
export declare const InlineImageCard: ({ dimensions, identifier, renderError, alt, isLazy, ssr, crop, stretch, }: {
|
|
5
|
+
alt?: string;
|
|
6
|
+
crop?: boolean;
|
|
7
|
+
dimensions?: Dimensions;
|
|
5
8
|
identifier: FileIdentifier;
|
|
9
|
+
isLazy?: boolean;
|
|
6
10
|
renderError: (props: {
|
|
7
11
|
error: Error;
|
|
8
12
|
}) => JSX.Element | null;
|
|
9
|
-
dimensions?: Dimensions;
|
|
10
|
-
isLazy?: boolean;
|
|
11
|
-
alt?: string;
|
|
12
13
|
ssr?: SSR;
|
|
13
|
-
crop?: boolean;
|
|
14
14
|
stretch?: boolean;
|
|
15
15
|
}) => JSX.Element | null;
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
import type { ReactElement } from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
type Props = {
|
|
8
|
-
children: ReactElement;
|
|
9
|
-
isSelected?: boolean;
|
|
10
8
|
aspectRatio?: number | string;
|
|
11
|
-
borderSize?: number;
|
|
12
9
|
borderColor?: string;
|
|
10
|
+
borderSize?: number;
|
|
11
|
+
children: ReactElement;
|
|
13
12
|
htmlAttrs?: {
|
|
14
13
|
[key: string]: string | number | undefined;
|
|
15
14
|
};
|
|
15
|
+
isSelected?: boolean;
|
|
16
16
|
onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
17
17
|
};
|
|
18
18
|
export declare const InlineImageWrapper: ({ children, isSelected, aspectRatio, borderSize, borderColor, htmlAttrs, onClick, }: React.PropsWithChildren<Props>) => jsx.JSX.Element;
|
|
@@ -3,18 +3,18 @@ import type { WrappedComponentProps } from 'react-intl-next';
|
|
|
3
3
|
import type { FileIdentifier, MediaClient } from '@atlaskit/media-client';
|
|
4
4
|
import type { MediaInlineAttrs, MediaSSR } from './types';
|
|
5
5
|
export interface MediaInlineImageCardProps {
|
|
6
|
-
identifier: FileIdentifier;
|
|
7
|
-
mediaClient?: MediaClient;
|
|
8
|
-
isSelected?: boolean;
|
|
9
|
-
isLazy?: boolean;
|
|
10
|
-
serializeDataAttrs?: boolean;
|
|
11
6
|
border?: {
|
|
12
|
-
borderSize?: number;
|
|
13
7
|
borderColor?: string;
|
|
8
|
+
borderSize?: number;
|
|
14
9
|
};
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
identifier: FileIdentifier;
|
|
11
|
+
isLazy?: boolean;
|
|
12
|
+
isSelected?: boolean;
|
|
17
13
|
isViewOnly?: boolean;
|
|
14
|
+
mediaClient?: MediaClient;
|
|
15
|
+
serializeDataAttrs?: boolean;
|
|
16
|
+
shouldOpenMediaViewer?: boolean;
|
|
17
|
+
ssr?: MediaSSR;
|
|
18
18
|
}
|
|
19
19
|
export declare const MediaInlineImageCardInternal: ({ mediaClient, identifier, isSelected, intl, alt, isLazy, width, height, border, ssr, serializeDataAttrs, shouldOpenMediaViewer, isViewOnly, }: MediaInlineImageCardProps & WrappedComponentProps & MediaInlineAttrs) => jsx.JSX.Element;
|
|
20
20
|
export declare const MediaInlineImageCard: React.ComponentType<React.PropsWithChildren<MediaInlineImageCardProps & MediaInlineAttrs>>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { SSR } from '@atlaskit/media-common';
|
|
2
2
|
import type { MediaClientConfig } from '@atlaskit/media-core';
|
|
3
3
|
export type MediaInlineAttrs = {
|
|
4
|
-
type?: string;
|
|
5
4
|
alt?: string;
|
|
6
|
-
width?: number;
|
|
7
5
|
height?: number;
|
|
6
|
+
type?: string;
|
|
7
|
+
width?: number;
|
|
8
8
|
};
|
|
9
9
|
export type MediaSSR = {
|
|
10
|
-
mode: SSR;
|
|
11
10
|
config: MediaClientConfig;
|
|
11
|
+
mode: SSR;
|
|
12
12
|
};
|
|
13
13
|
export type Dimensions = {
|
|
14
|
-
width?: number;
|
|
15
14
|
height?: number;
|
|
15
|
+
width?: number;
|
|
16
16
|
};
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { jsx } from '@emotion/react';
|
|
6
6
|
type Props = {
|
|
7
|
-
|
|
7
|
+
/** Container height */
|
|
8
|
+
height?: number;
|
|
8
9
|
/** Error icon. Default to document icon. */
|
|
9
10
|
icon?: React.ReactNode;
|
|
11
|
+
message: string;
|
|
10
12
|
testId?: string;
|
|
11
|
-
/** Container height */
|
|
12
|
-
height?: number;
|
|
13
13
|
};
|
|
14
14
|
export declare const InlineImageCardErrorView: ({ testId, message, icon, height, }: Props) => jsx.JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { jsx } from '@emotion/react';
|
|
6
6
|
type Props = {
|
|
7
|
-
title?: string;
|
|
8
|
-
testId?: string;
|
|
9
7
|
/** Container height */
|
|
10
8
|
height?: number;
|
|
9
|
+
testId?: string;
|
|
10
|
+
title?: string;
|
|
11
11
|
};
|
|
12
12
|
export declare const InlineImageCardLoadingView: ({ testId, height, }: Props) => jsx.JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl-next';
|
|
2
2
|
export declare const getBadgeSize: (width?: number, height?: number) => "medium" | "small";
|
|
3
3
|
export type CommentBadgeProps = {
|
|
4
|
-
|
|
5
|
-
width?: number;
|
|
4
|
+
badgeOffsetRight?: string;
|
|
6
5
|
height?: number;
|
|
7
|
-
|
|
6
|
+
intl: IntlShape;
|
|
7
|
+
isDrafting?: boolean;
|
|
8
|
+
isEditor?: boolean;
|
|
8
9
|
mediaSingleElement?: HTMLElement | null;
|
|
9
10
|
onClick: (e: React.MouseEvent) => void;
|
|
10
11
|
onMouseEnter?: (e: React.MouseEvent) => void;
|
|
11
12
|
onMouseLeave?: (e: React.MouseEvent) => void;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
badgeOffsetRight?: string;
|
|
13
|
+
status?: 'default' | 'entered' | 'active';
|
|
14
|
+
width?: number;
|
|
15
15
|
};
|
|
16
16
|
export declare const CommentBadge: import("react").ForwardRefExoticComponent<CommentBadgeProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
type CommentBadgeProps = {
|
|
3
|
-
status?: 'default' | 'entered' | 'active';
|
|
4
3
|
mediaSingleElement?: HTMLElement | null;
|
|
5
4
|
onClick: (e: React.MouseEvent) => void;
|
|
6
5
|
onMouseEnter?: (e: React.MouseEvent) => void;
|
|
7
6
|
onMouseLeave?: (e: React.MouseEvent) => void;
|
|
7
|
+
status?: 'default' | 'entered' | 'active';
|
|
8
8
|
};
|
|
9
9
|
export declare const CommentBadgeNext: ({ status, onClick, onMouseEnter, onMouseLeave, }: CommentBadgeProps) => React.JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
2
|
type ExternalImageBadgeProps = {
|
|
3
|
+
children: ReactNode | ((props: {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
}) => ReactNode);
|
|
6
|
+
extendedResizeOffset?: boolean;
|
|
3
7
|
mediaElement?: HTMLElement | null;
|
|
4
8
|
mediaHeight?: number;
|
|
5
9
|
mediaWidth?: number;
|
|
6
|
-
extendedResizeOffset?: boolean;
|
|
7
10
|
useMinimumZIndex?: boolean;
|
|
8
|
-
children: ReactNode | ((props: {
|
|
9
|
-
visible: boolean;
|
|
10
|
-
}) => ReactNode);
|
|
11
11
|
};
|
|
12
12
|
export declare const MediaBadges: ({ children, mediaElement, mediaWidth, mediaHeight, extendedResizeOffset, useMinimumZIndex, }: ExternalImageBadgeProps) => React.JSX.Element | null;
|
|
13
13
|
export {};
|
|
@@ -17,13 +17,13 @@ import type { EditorAppearance } from '../types';
|
|
|
17
17
|
*/
|
|
18
18
|
export declare function getMediaSinglePixelWidth(width: number, editorWidth: number, widthType?: string, gutterOffset?: number): number;
|
|
19
19
|
export interface calcMediaSinglePixelWidthProps {
|
|
20
|
-
width?: number;
|
|
21
|
-
widthType?: 'percentage' | 'pixel';
|
|
22
|
-
origWidth: number;
|
|
23
|
-
layout: RichMediaLayout;
|
|
24
|
-
contentWidth?: number;
|
|
25
20
|
containerWidth: number;
|
|
21
|
+
contentWidth?: number;
|
|
26
22
|
gutterOffset: number;
|
|
23
|
+
layout: RichMediaLayout;
|
|
24
|
+
origWidth: number;
|
|
25
|
+
width?: number;
|
|
26
|
+
widthType?: 'percentage' | 'pixel';
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* Convert width attribute to pixel value for legacy (resized or not resisized) and new media single node for new experience
|
|
@@ -3,6 +3,11 @@ type NodeObservationConfig = {
|
|
|
3
3
|
onFirstVisible: () => void;
|
|
4
4
|
};
|
|
5
5
|
export type NodeVisibilityManager = {
|
|
6
|
+
/**
|
|
7
|
+
* Kills the IntersectionObserver and all callbacks
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
disconnect: () => void;
|
|
6
11
|
/**
|
|
7
12
|
* Establishes IntersectionObserver for the editor to monitor all node viewport visibility
|
|
8
13
|
* @param editorDivElement
|
|
@@ -13,11 +18,6 @@ export type NodeVisibilityManager = {
|
|
|
13
18
|
* observes specific node element with callbacks for triggering when the node is visible or hidden
|
|
14
19
|
*/
|
|
15
20
|
observe: (observeConfig: NodeObservationConfig) => () => void;
|
|
16
|
-
/**
|
|
17
|
-
* Kills the IntersectionObserver and all callbacks
|
|
18
|
-
* @returns
|
|
19
|
-
*/
|
|
20
|
-
disconnect: () => void;
|
|
21
21
|
};
|
|
22
22
|
type NodeVisibilityManagerFn = (editorElement: HTMLElement) => NodeVisibilityManager;
|
|
23
23
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
type PortalsBucketUpdater = React.Dispatch<React.SetStateAction<Record<string | number, React.ReactPortal>>>;
|
|
2
2
|
type PortalRendererUpdater = React.Dispatch<React.SetStateAction<Array<PortalBucketType>>>;
|
|
3
3
|
type PortalBucketType = {
|
|
4
|
-
portals: Record<string | number, React.ReactPortal>;
|
|
5
4
|
capacity: number;
|
|
5
|
+
portals: Record<string | number, React.ReactPortal>;
|
|
6
6
|
updater: PortalsBucketUpdater | null;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
@@ -4,9 +4,9 @@ type RenderFn = (children: () => React.ReactChild | JSX.Element | null, containe
|
|
|
4
4
|
type RemoveFn = (key: string) => void;
|
|
5
5
|
type DestoryFn = () => void;
|
|
6
6
|
export interface PortalProviderAPI {
|
|
7
|
-
render: RenderFn;
|
|
8
|
-
remove: RemoveFn;
|
|
9
7
|
destroy: DestoryFn;
|
|
8
|
+
remove: RemoveFn;
|
|
9
|
+
render: RenderFn;
|
|
10
10
|
}
|
|
11
11
|
export type PortalRendererComponent = () => JSX.Element;
|
|
12
12
|
export type UsePortalProviderReturnType = [PortalProviderAPI, PortalRendererComponent];
|
|
@@ -52,8 +52,8 @@ type PluginWithConfiguration<Plugin> = undefined extends ExtractPluginConfigurat
|
|
|
52
52
|
* ```
|
|
53
53
|
*/
|
|
54
54
|
type ExtractPluginConfiguration<Plugin> = Plugin extends NextEditorPlugin<any, any> ? Plugin extends (props: {
|
|
55
|
-
config: any;
|
|
56
55
|
api: any;
|
|
56
|
+
config: any;
|
|
57
57
|
}) => DefaultEditorPlugin<any, infer Metadata> ? ExtractPluginConfigurationFromMetadata<Metadata> : never : never;
|
|
58
58
|
/**
|
|
59
59
|
* 🧱 Internal Type: Editor FE Platform
|
|
@@ -7,8 +7,8 @@ type SharedStateAPIProps = {
|
|
|
7
7
|
getEditorState: () => EditorState | undefined;
|
|
8
8
|
};
|
|
9
9
|
interface PluginInjectionAPIProps extends SharedStateAPIProps {
|
|
10
|
-
getEditorView: () => EditorView | undefined;
|
|
11
10
|
fireAnalyticsEvent?: FireAnalyticsCallback;
|
|
11
|
+
getEditorView: () => EditorView | undefined;
|
|
12
12
|
}
|
|
13
13
|
export type EditorStateDiff = {
|
|
14
14
|
readonly newEditorState: EditorState;
|
|
@@ -34,12 +34,12 @@ interface PluginInjectionAPIDefinition {
|
|
|
34
34
|
api: () => {
|
|
35
35
|
[key: string]: BasePluginDependenciesAPI<any>;
|
|
36
36
|
};
|
|
37
|
-
onEditorViewUpdated: (props: EditorStateDelta) => void;
|
|
38
37
|
onEditorPluginInitialized: (plugin: NextEditorPluginInitializedType) => void;
|
|
38
|
+
onEditorViewUpdated: (props: EditorStateDelta) => void;
|
|
39
39
|
}
|
|
40
40
|
type GenericAPIWithCore = {
|
|
41
|
-
core: PluginDependenciesAPI<CorePlugin>;
|
|
42
41
|
[key: string]: BasePluginDependenciesAPI<any>;
|
|
42
|
+
core: PluginDependenciesAPI<CorePlugin>;
|
|
43
43
|
};
|
|
44
44
|
export declare class EditorPluginInjectionAPI implements PluginInjectionAPIDefinition {
|
|
45
45
|
private sharedStateAPI;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CardAdf, DatasourceAdf } from '@atlaskit/linking-common';
|
|
2
2
|
export type CardAppearance = 'inline' | 'block' | 'embed';
|
|
3
3
|
export interface CardProvider {
|
|
4
|
-
resolve(url: string, appearance: CardAppearance, shouldForceAppearance?: boolean, isEmbedFriendlyLocation?: boolean): Promise<CardAdf | DatasourceAdf>;
|
|
5
4
|
findPattern(url: string): Promise<boolean>;
|
|
5
|
+
resolve(url: string, appearance: CardAppearance, shouldForceAppearance?: boolean, isEmbedFriendlyLocation?: boolean): Promise<CardAdf | DatasourceAdf>;
|
|
6
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ImageUploadPluginReferenceEvent } from '../types';
|
|
2
2
|
export type InsertedImageProperties = {
|
|
3
|
-
src?: string;
|
|
4
3
|
alt?: string;
|
|
4
|
+
src?: string;
|
|
5
5
|
title?: string;
|
|
6
6
|
};
|
|
7
7
|
export type ImageUploadProvider = (e: ImageUploadPluginReferenceEvent | undefined, insertImageFn: (props: InsertedImageProperties) => void) => void;
|
|
@@ -2,24 +2,24 @@ import type { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
|
2
2
|
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
export type ExtensionType = 'extension' | 'bodiedExtension' | 'inlineExtension' | 'multiBodiedExtension';
|
|
4
4
|
export interface MacroAttributes {
|
|
5
|
-
type: ExtensionType;
|
|
6
5
|
attrs: {
|
|
7
6
|
extensionKey: string;
|
|
8
7
|
extensionType: string;
|
|
8
|
+
layout?: ExtensionLayout;
|
|
9
9
|
parameters?: {
|
|
10
|
-
macroParams?: object;
|
|
11
10
|
macroMetadata?: object;
|
|
11
|
+
macroParams?: object;
|
|
12
12
|
};
|
|
13
|
-
layout?: ExtensionLayout;
|
|
14
13
|
text?: string;
|
|
15
14
|
};
|
|
16
15
|
content?: any;
|
|
16
|
+
type: ExtensionType;
|
|
17
17
|
}
|
|
18
18
|
export interface MacroProvider {
|
|
19
|
+
autoConvert(link: string): MacroAttributes | null;
|
|
19
20
|
config: Object;
|
|
20
21
|
/**
|
|
21
22
|
* If "macro" param is passed in, it will open macro browser for editing the macro
|
|
22
23
|
*/
|
|
23
24
|
openMacroBrowser(macroNode?: PmNode): Promise<MacroAttributes>;
|
|
24
|
-
autoConvert(link: string): MacroAttributes | null;
|
|
25
25
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import type { MediaClientConfig } from '@atlaskit/media-core/auth';
|
|
2
2
|
import type { UploadParams } from '@atlaskit/media-picker/types';
|
|
3
3
|
export type MediaProvider = {
|
|
4
|
-
uploadParams?: UploadParams;
|
|
5
4
|
/**
|
|
6
5
|
* (optional) Used for creating new uploads and finalizing files.
|
|
7
6
|
* NOTE: We currently don't accept MediaClientConfig, because we need config properties
|
|
8
7
|
* to initialize
|
|
9
8
|
*/
|
|
10
9
|
uploadMediaClientConfig?: MediaClientConfig;
|
|
11
|
-
|
|
12
|
-
* Used for displaying Media Cards and downloading files.
|
|
13
|
-
*/
|
|
14
|
-
viewMediaClientConfig: MediaClientConfig;
|
|
10
|
+
uploadParams?: UploadParams;
|
|
15
11
|
/**
|
|
16
12
|
* Used for displaying and downloading files OR uploading files. The operation will be determined by Media on each request.
|
|
17
13
|
* This will be a replacement for viewMediaClientConfig and uploadMediaClientConfig together
|
|
18
14
|
*/
|
|
19
15
|
viewAndUploadMediaClientConfig?: MediaClientConfig;
|
|
16
|
+
/**
|
|
17
|
+
* Used for displaying Media Cards and downloading files.
|
|
18
|
+
*/
|
|
19
|
+
viewMediaClientConfig: MediaClientConfig;
|
|
20
20
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ProfileCardAction, type ProfileClient } from '@atlaskit/profilecard';
|
|
2
2
|
export interface ProfilecardProvider {
|
|
3
3
|
cloudId: string;
|
|
4
|
-
resourceClient: ProfileClient;
|
|
5
4
|
getActions: (id: string, text: string, accessLevel?: string) => ProfileCardAction[];
|
|
5
|
+
resourceClient: ProfileClient;
|
|
6
6
|
}
|
|
@@ -7,16 +7,6 @@ export type QuickInsertActionInsert = (node?: Node | Record<string, any> | strin
|
|
|
7
7
|
}) => Transaction;
|
|
8
8
|
export type QuickInsertItemId = 'hyperlink' | 'table' | 'helpdialog' | 'date' | 'media' | 'media-insert' | 'blockquote' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'codeblock' | 'unorderedList' | 'feedbackdialog' | 'orderedList' | 'rule' | 'status' | 'mention' | 'emoji' | 'action' | 'decision' | 'infopanel' | 'notepanel' | 'successpanel' | 'warningpanel' | 'errorpanel' | 'custompanel' | 'layout' | 'expand' | 'placeholderText' | 'datasource' | 'loom' | 'onecolumnlayout' | 'twocolumnslayout' | 'threecolumnslayout' | 'fourcolumnslayout' | 'fivecolumnslayout';
|
|
9
9
|
export type QuickInsertItem = TypeAheadItem & {
|
|
10
|
-
/** other names used to find the item */
|
|
11
|
-
keywords?: Array<string>;
|
|
12
|
-
/** categories where to find the item */
|
|
13
|
-
categories?: Array<string>;
|
|
14
|
-
/** optional sorting priority */
|
|
15
|
-
priority?: number;
|
|
16
|
-
/** optional identifier */
|
|
17
|
-
id?: QuickInsertItemId;
|
|
18
|
-
/** indicates if the item will be highlighted where appropriate (plus menu for now) */
|
|
19
|
-
featured?: boolean;
|
|
20
10
|
/**
|
|
21
11
|
* What to do on insert
|
|
22
12
|
*
|
|
@@ -25,6 +15,16 @@ export type QuickInsertItem = TypeAheadItem & {
|
|
|
25
15
|
* @see packages/editor/editor-core/src/plugins/insert-block/ui/ToolbarInsertBlock/index.tsx for details
|
|
26
16
|
*/
|
|
27
17
|
action: (insert: QuickInsertActionInsert, state: EditorState, source?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.QUICK_INSERT) => Transaction | false;
|
|
18
|
+
/** categories where to find the item */
|
|
19
|
+
categories?: Array<string>;
|
|
20
|
+
/** indicates if the item will be highlighted where appropriate (plus menu for now) */
|
|
21
|
+
featured?: boolean;
|
|
22
|
+
/** optional identifier */
|
|
23
|
+
id?: QuickInsertItemId;
|
|
24
|
+
/** other names used to find the item */
|
|
25
|
+
keywords?: Array<string>;
|
|
26
|
+
/** optional sorting priority */
|
|
27
|
+
priority?: number;
|
|
28
28
|
};
|
|
29
29
|
export type QuickInsertProvider = {
|
|
30
30
|
getItems: () => Promise<Array<QuickInsertItem>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export interface QuickSearchResult {
|
|
2
|
-
objectId: string;
|
|
3
|
-
title: string;
|
|
4
|
-
url: string;
|
|
5
2
|
container: string;
|
|
6
3
|
contentType: LinkContentType;
|
|
4
|
+
objectId: string;
|
|
5
|
+
title: string;
|
|
7
6
|
updatedTimestamp?: string;
|
|
7
|
+
url: string;
|
|
8
8
|
}
|
|
9
9
|
export type LinkContentType = 'jira.issue' | 'jira.issue.bug' | 'jira.issue.story' | 'jira.issue.task' | 'confluence.page' | 'confluence.blogpost' | 'default';
|
|
10
10
|
export interface SearchProvider {
|
|
@@ -14,23 +14,23 @@ import type { ProfilecardProvider } from './profile-card-provider';
|
|
|
14
14
|
import type { QuickInsertProvider } from './quick-insert-provider';
|
|
15
15
|
import type { SearchProvider } from './search-provider';
|
|
16
16
|
export interface Providers {
|
|
17
|
-
|
|
18
|
-
emojiProvider?: Promise<EmojiProvider>;
|
|
19
|
-
mentionProvider?: Promise<MentionProvider>;
|
|
20
|
-
extensionProvider?: Promise<ExtensionProvider>;
|
|
17
|
+
activityProvider?: Promise<ActivityProvider>;
|
|
21
18
|
autoformattingProvider?: Promise<AutoformattingProvider>;
|
|
22
|
-
|
|
19
|
+
cardProvider?: Promise<CardProvider>;
|
|
20
|
+
collabEditProvider?: Promise<CollabEditProvider>;
|
|
23
21
|
contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
|
|
22
|
+
emojiProvider?: Promise<EmojiProvider>;
|
|
23
|
+
extensionProvider?: Promise<ExtensionProvider>;
|
|
24
24
|
imageUploadProvider?: Promise<ImageUploadProvider>;
|
|
25
|
-
collabEditProvider?: Promise<CollabEditProvider>;
|
|
26
25
|
macroProvider?: Promise<MacroProvider>;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
profilecardProvider?: Promise<ProfilecardProvider>;
|
|
30
|
-
searchProvider?: Promise<SearchProvider>;
|
|
31
|
-
activityProvider?: Promise<ActivityProvider>;
|
|
26
|
+
mediaProvider?: Promise<MediaProvider>;
|
|
27
|
+
mentionProvider?: Promise<MentionProvider>;
|
|
32
28
|
presenceProvider?: Promise<any>;
|
|
29
|
+
profilecardProvider?: Promise<ProfilecardProvider>;
|
|
30
|
+
quickInsertProvider?: Promise<QuickInsertProvider>;
|
|
33
31
|
reactionsStore?: Promise<any>;
|
|
32
|
+
searchProvider?: Promise<SearchProvider>;
|
|
33
|
+
taskDecisionProvider?: Promise<TaskDecisionProvider>;
|
|
34
34
|
}
|
|
35
35
|
export type ProviderName = keyof Providers;
|
|
36
36
|
export type ProviderType<T> = T extends keyof Providers ? Providers[T] : Promise<any>;
|