@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
|
@@ -5,62 +5,62 @@ type SectionOptions = {
|
|
|
5
5
|
title?: string;
|
|
6
6
|
};
|
|
7
7
|
export interface Props {
|
|
8
|
-
|
|
8
|
+
allowEnterDefaultBehavior?: boolean;
|
|
9
|
+
arrowKeyNavigationProviderOptions: ArrowKeyNavigationProviderOptions;
|
|
9
10
|
boundariesElement?: HTMLElement;
|
|
10
|
-
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
disableArrowKeyNavigation?: boolean;
|
|
13
|
+
fitHeight?: number;
|
|
14
|
+
fitWidth?: number;
|
|
15
|
+
handleEscapeKeydown?: (e: KeyboardEvent) => void;
|
|
11
16
|
isOpen?: boolean;
|
|
12
|
-
|
|
17
|
+
items: Array<{
|
|
18
|
+
items: MenuItem[];
|
|
19
|
+
}>;
|
|
20
|
+
mountTo?: HTMLElement;
|
|
21
|
+
offset?: Array<number>;
|
|
13
22
|
onItemActivated?: (attrs: {
|
|
14
23
|
item: MenuItem;
|
|
15
24
|
shouldCloseMenu?: boolean;
|
|
16
25
|
}) => void;
|
|
17
26
|
onMouseEnter?: (attrs: any) => void;
|
|
18
27
|
onMouseLeave?: (attrs: any) => void;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
offset?: Array<number>;
|
|
22
|
-
zIndex?: number;
|
|
23
|
-
items: Array<{
|
|
24
|
-
items: MenuItem[];
|
|
25
|
-
}>;
|
|
26
|
-
shouldUseDefaultRole?: boolean;
|
|
27
|
-
disableArrowKeyNavigation?: boolean;
|
|
28
|
-
shouldFocusFirstItem?: () => boolean;
|
|
29
|
-
arrowKeyNavigationProviderOptions: ArrowKeyNavigationProviderOptions;
|
|
28
|
+
onOpenChange?: (attrs: any) => void;
|
|
29
|
+
scrollableElement?: HTMLElement;
|
|
30
30
|
section?: SectionOptions;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
shouldFocusFirstItem?: () => boolean;
|
|
32
|
+
shouldUseDefaultRole?: boolean;
|
|
33
|
+
zIndex?: number;
|
|
34
34
|
}
|
|
35
35
|
export interface MenuItem {
|
|
36
|
-
|
|
36
|
+
'aria-expanded'?: React.AriaAttributes['aria-expanded'];
|
|
37
|
+
'aria-haspopup'?: React.AriaAttributes['aria-haspopup'];
|
|
38
|
+
'aria-keyshortcuts'?: React.AriaAttributes['aria-keyshortcuts'];
|
|
39
|
+
'aria-label'?: React.AriaAttributes['aria-label'];
|
|
40
|
+
className?: string;
|
|
37
41
|
content: string | React.ReactChild | React.ReactFragment;
|
|
38
|
-
|
|
39
|
-
name: string;
|
|
40
|
-
};
|
|
41
|
-
shortcut?: string;
|
|
42
|
-
elemBefore?: React.ReactElement<any>;
|
|
42
|
+
'data-testid'?: string;
|
|
43
43
|
elemAfter?: React.ReactElement<any>;
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
elemBefore?: React.ReactElement<any>;
|
|
45
|
+
handleRef?: any;
|
|
46
46
|
isActive?: boolean;
|
|
47
47
|
isDisabled?: boolean;
|
|
48
|
-
|
|
49
|
-
className?: string;
|
|
50
|
-
'aria-label'?: React.AriaAttributes['aria-label'];
|
|
51
|
-
'aria-haspopup'?: React.AriaAttributes['aria-haspopup'];
|
|
52
|
-
'aria-keyshortcuts'?: React.AriaAttributes['aria-keyshortcuts'];
|
|
53
|
-
'data-testid'?: string;
|
|
48
|
+
key?: string;
|
|
54
49
|
onClick?: () => void;
|
|
55
|
-
|
|
50
|
+
shortcut?: string;
|
|
51
|
+
tooltipDescription?: string;
|
|
52
|
+
tooltipPosition?: string;
|
|
53
|
+
value: {
|
|
54
|
+
name: string;
|
|
55
|
+
};
|
|
56
56
|
wrapperTabIndex?: number | null;
|
|
57
57
|
}
|
|
58
58
|
export interface State {
|
|
59
|
-
target?: HTMLElement;
|
|
60
59
|
popupPlacement: [
|
|
61
60
|
string,
|
|
62
61
|
string
|
|
63
62
|
];
|
|
64
63
|
selectionIndex: number;
|
|
64
|
+
target?: HTMLElement;
|
|
65
65
|
}
|
|
66
66
|
export {};
|
|
@@ -22,13 +22,13 @@ export declare const KeyDownHandlerContext: React.Context<KeyDownHandlerContext>
|
|
|
22
22
|
* @returns
|
|
23
23
|
*/
|
|
24
24
|
export declare const ToolbarArrowKeyNavigationProvider: ({ children, editorView, childComponentSelector, handleEscape, disableArrowKeyNavigation, isShortcutToFocusToolbar, editorAppearance, useStickyToolbar, intl, }: {
|
|
25
|
+
childComponentSelector: string;
|
|
25
26
|
children: ReactNode;
|
|
27
|
+
disableArrowKeyNavigation?: boolean;
|
|
28
|
+
editorAppearance?: EditorAppearance;
|
|
26
29
|
editorView?: EditorView;
|
|
27
|
-
childComponentSelector: string;
|
|
28
30
|
handleEscape?: (event: KeyboardEvent) => void;
|
|
29
|
-
|
|
31
|
+
intl: IntlShape;
|
|
30
32
|
isShortcutToFocusToolbar?: (event: KeyboardEvent) => boolean;
|
|
31
|
-
editorAppearance?: EditorAppearance;
|
|
32
33
|
useStickyToolbar?: UseStickyToolbarType;
|
|
33
|
-
intl: IntlShape;
|
|
34
34
|
}) => jsx.JSX.Element;
|
|
@@ -9,56 +9,56 @@ import { type TOOLBAR_ACTION_SUBJECT_ID } from '../../analytics';
|
|
|
9
9
|
import { type Keymap } from '../../keymaps';
|
|
10
10
|
import type { MenuItem } from '../DropdownMenu/types';
|
|
11
11
|
export type Props = {
|
|
12
|
+
'aria-expanded'?: React.AriaAttributes['aria-expanded'];
|
|
13
|
+
'aria-haspopup'?: React.AriaAttributes['aria-haspopup'];
|
|
14
|
+
'aria-keyshortcuts'?: React.AriaAttributes['aria-keyshortcuts'];
|
|
15
|
+
'aria-label'?: React.AriaAttributes['aria-label'];
|
|
16
|
+
'aria-pressed'?: React.AriaAttributes['aria-pressed'];
|
|
12
17
|
buttonId?: TOOLBAR_ACTION_SUBJECT_ID;
|
|
13
18
|
className?: string;
|
|
19
|
+
'data-ds--level'?: string;
|
|
14
20
|
disabled?: boolean;
|
|
15
21
|
hideTooltip?: boolean;
|
|
16
22
|
href?: string;
|
|
17
23
|
iconAfter?: React.ReactElement<any>;
|
|
18
24
|
iconBefore?: React.ReactElement<any>;
|
|
25
|
+
item?: MenuItem;
|
|
26
|
+
keymap?: Keymap;
|
|
19
27
|
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
20
28
|
onItemClick?: (item: MenuItem) => void;
|
|
21
29
|
onKeyDown?: (event: React.KeyboardEvent<HTMLElement>) => void;
|
|
22
30
|
selected?: boolean;
|
|
23
31
|
spacing?: 'default' | 'compact' | 'none';
|
|
24
32
|
target?: string;
|
|
33
|
+
testId?: string;
|
|
25
34
|
title?: React.ReactNode;
|
|
26
35
|
titlePosition?: PositionType;
|
|
27
|
-
item?: MenuItem;
|
|
28
|
-
testId?: string;
|
|
29
|
-
keymap?: Keymap;
|
|
30
|
-
'aria-label'?: React.AriaAttributes['aria-label'];
|
|
31
|
-
'aria-expanded'?: React.AriaAttributes['aria-expanded'];
|
|
32
|
-
'aria-haspopup'?: React.AriaAttributes['aria-haspopup'];
|
|
33
|
-
'aria-pressed'?: React.AriaAttributes['aria-pressed'];
|
|
34
|
-
'aria-keyshortcuts'?: React.AriaAttributes['aria-keyshortcuts'];
|
|
35
|
-
'data-ds--level'?: string;
|
|
36
36
|
} & Pick<ButtonProps, 'aria-label' | 'children' | 'onFocus' | 'onBlur' | 'onMouseEnter' | 'onMouseLeave' | 'aria-controls' | 'rel'>;
|
|
37
37
|
export type ToolbarButtonRef = HTMLElement;
|
|
38
38
|
declare const ToolbarButton: React.ForwardRefExoticComponent<{
|
|
39
|
+
'aria-expanded'?: React.AriaAttributes["aria-expanded"];
|
|
40
|
+
'aria-haspopup'?: React.AriaAttributes["aria-haspopup"];
|
|
41
|
+
'aria-keyshortcuts'?: React.AriaAttributes["aria-keyshortcuts"];
|
|
42
|
+
'aria-label'?: React.AriaAttributes["aria-label"];
|
|
43
|
+
'aria-pressed'?: React.AriaAttributes["aria-pressed"];
|
|
39
44
|
buttonId?: TOOLBAR_ACTION_SUBJECT_ID;
|
|
40
45
|
className?: string;
|
|
46
|
+
'data-ds--level'?: string;
|
|
41
47
|
disabled?: boolean;
|
|
42
48
|
hideTooltip?: boolean;
|
|
43
49
|
href?: string;
|
|
44
50
|
iconAfter?: React.ReactElement<any>;
|
|
45
51
|
iconBefore?: React.ReactElement<any>;
|
|
52
|
+
item?: MenuItem;
|
|
53
|
+
keymap?: Keymap;
|
|
46
54
|
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
47
55
|
onItemClick?: (item: MenuItem) => void;
|
|
48
56
|
onKeyDown?: (event: React.KeyboardEvent<HTMLElement>) => void;
|
|
49
57
|
selected?: boolean;
|
|
50
58
|
spacing?: "default" | "compact" | "none";
|
|
51
59
|
target?: string;
|
|
60
|
+
testId?: string;
|
|
52
61
|
title?: React.ReactNode;
|
|
53
62
|
titlePosition?: PositionType;
|
|
54
|
-
|
|
55
|
-
testId?: string;
|
|
56
|
-
keymap?: Keymap;
|
|
57
|
-
'aria-label'?: React.AriaAttributes["aria-label"];
|
|
58
|
-
'aria-expanded'?: React.AriaAttributes["aria-expanded"];
|
|
59
|
-
'aria-haspopup'?: React.AriaAttributes["aria-haspopup"];
|
|
60
|
-
'aria-pressed'?: React.AriaAttributes["aria-pressed"];
|
|
61
|
-
'aria-keyshortcuts'?: React.AriaAttributes["aria-keyshortcuts"];
|
|
62
|
-
'data-ds--level'?: string;
|
|
63
|
-
} & Pick<ButtonProps, "onFocus" | "onBlur" | "children" | "rel" | "aria-controls" | "aria-label" | "onMouseEnter" | "onMouseLeave"> & React.RefAttributes<HTMLElement>>;
|
|
63
|
+
} & Pick<ButtonProps, "onBlur" | "onFocus" | "children" | "rel" | "aria-controls" | "aria-label" | "onMouseEnter" | "onMouseLeave"> & React.RefAttributes<HTMLElement>>;
|
|
64
64
|
export default ToolbarButton;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
type ReactEditorViewContextProps = {
|
|
4
|
-
editorView?: EditorView;
|
|
5
4
|
editorRef?: React.RefObject<HTMLDivElement>;
|
|
5
|
+
editorView?: EditorView;
|
|
6
6
|
popupsMountPoint?: HTMLElement | undefined;
|
|
7
7
|
};
|
|
8
8
|
declare const ReactEditorViewContext: React.Context<ReactEditorViewContextProps>;
|
|
@@ -2,17 +2,17 @@ import React from 'react';
|
|
|
2
2
|
type SimpleEventHandler<T> = (event: T) => void;
|
|
3
3
|
export declare const OutsideClickTargetRefContext: React.Context<(el: HTMLElement | null) => void>;
|
|
4
4
|
export interface WithOutsideClickProps {
|
|
5
|
-
handleClickOutside?: SimpleEventHandler<MouseEvent>;
|
|
6
|
-
handleEscapeKeydown?: SimpleEventHandler<KeyboardEvent>;
|
|
7
|
-
handleEnterKeydown?: SimpleEventHandler<KeyboardEvent>;
|
|
8
|
-
targetRef?: any;
|
|
9
|
-
closeOnTab?: boolean;
|
|
10
5
|
/**
|
|
11
6
|
* Use when you want the click handler to call on the capture phase instead of during bubbling.
|
|
12
7
|
* This is useful when you're in a popup with interative UI elements that may disappear on click
|
|
13
8
|
* like when toggling UI states
|
|
14
9
|
*/
|
|
15
10
|
captureClick?: boolean;
|
|
11
|
+
closeOnTab?: boolean;
|
|
12
|
+
handleClickOutside?: SimpleEventHandler<MouseEvent>;
|
|
13
|
+
handleEnterKeydown?: SimpleEventHandler<KeyboardEvent>;
|
|
14
|
+
handleEscapeKeydown?: SimpleEventHandler<KeyboardEvent>;
|
|
15
|
+
targetRef?: any;
|
|
16
16
|
}
|
|
17
17
|
export default function withReactEditorViewOuterListeners<P extends Object>(Component: React.ComponentType<React.PropsWithChildren<P>>): React.ComponentType<React.PropsWithChildren<P & WithOutsideClickProps>>;
|
|
18
18
|
export {};
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { type UserPreferences } from './user-preferences';
|
|
2
2
|
export type PersistenceAPI = {
|
|
3
|
+
/**
|
|
4
|
+
* Get the initial user preferences synchronously
|
|
5
|
+
* This function is called on initialization
|
|
6
|
+
* If not provided, loadUserPreferences will be called instead
|
|
7
|
+
* @param userPreferences
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
getInitialUserPreferences?: () => UserPreferences | undefined;
|
|
3
11
|
/**
|
|
4
12
|
* Loads the user preferences
|
|
5
13
|
* @returns
|
|
@@ -12,12 +20,4 @@ export type PersistenceAPI = {
|
|
|
12
20
|
* @returns
|
|
13
21
|
*/
|
|
14
22
|
updateUserPreference: <K extends keyof UserPreferences>(key: K, value: UserPreferences[K]) => Promise<Pick<UserPreferences, K>>;
|
|
15
|
-
/**
|
|
16
|
-
* Get the initial user preferences synchronously
|
|
17
|
-
* This function is called on initialization
|
|
18
|
-
* If not provided, loadUserPreferences will be called instead
|
|
19
|
-
* @param userPreferences
|
|
20
|
-
* @returns
|
|
21
|
-
*/
|
|
22
|
-
getInitialUserPreferences?: () => UserPreferences | undefined;
|
|
23
23
|
};
|
|
@@ -9,17 +9,17 @@ import { getBreakpoint } from '../ui/WidthProvider';
|
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
11
|
export type BreakoutConstsType = {
|
|
12
|
-
padding: number;
|
|
13
|
-
defaultLayoutWidth: number;
|
|
14
|
-
wideScaleRatio: number;
|
|
15
|
-
fullWidthLayoutWidth: number;
|
|
16
|
-
wideLayoutWidth: number;
|
|
17
|
-
mapBreakpointToLayoutMaxWidth: typeof mapBreakpointToLayoutMaxWidth;
|
|
18
|
-
getBreakpoint: typeof getBreakpoint;
|
|
19
12
|
calcBreakoutWidth: any;
|
|
20
13
|
calcBreakoutWithCustomWidth: (breakoutConsts: BreakoutConstsType) => (mode: 'full-width' | 'wide', width: number | null, editorContainerWidth: number) => string;
|
|
21
14
|
calcLineLength: (breakoutConsts: BreakoutConstsType) => () => number;
|
|
22
15
|
calcWideWidth: (breakoutConsts: BreakoutConstsType) => (containerWidth?: number, maxWidth?: number, fallback?: string, padding?: number) => string;
|
|
16
|
+
defaultLayoutWidth: number;
|
|
17
|
+
fullWidthLayoutWidth: number;
|
|
18
|
+
getBreakpoint: typeof getBreakpoint;
|
|
19
|
+
mapBreakpointToLayoutMaxWidth: typeof mapBreakpointToLayoutMaxWidth;
|
|
20
|
+
padding: number;
|
|
21
|
+
wideLayoutWidth: number;
|
|
22
|
+
wideScaleRatio: number;
|
|
23
23
|
};
|
|
24
24
|
declare const breakoutConsts: BreakoutConstsType;
|
|
25
25
|
export declare const absoluteBreakoutWidth: (layout: "full-width" | "wide" | string, containerWidth: number) => number;
|
|
@@ -29,16 +29,16 @@ export declare const calcBreakoutWidth: any;
|
|
|
29
29
|
export declare const calcBreakoutWithCustomWidth: (mode: "full-width" | "wide", width: number | null, editorContainerWidth: number) => string;
|
|
30
30
|
export declare function calculateBreakoutStyles({ mode, widthStateLineLength, widthStateWidth, }: {
|
|
31
31
|
mode: BreakoutMarkAttrs['mode'];
|
|
32
|
-
/**
|
|
33
|
-
* offsetWidth of the content the editor is attached to.
|
|
34
|
-
* Expected to be retrieved via `WidthState.lineLength`.
|
|
35
|
-
*/
|
|
36
|
-
widthStateWidth?: number;
|
|
37
32
|
/**
|
|
38
33
|
* clientWidth of the content area in the editor (ie. EditorPlugin contentComponents).
|
|
39
34
|
* Expected to be retrieved via `WidthState.width`.
|
|
40
35
|
*/
|
|
41
36
|
widthStateLineLength?: number;
|
|
37
|
+
/**
|
|
38
|
+
* offsetWidth of the content the editor is attached to.
|
|
39
|
+
* Expected to be retrieved via `WidthState.lineLength`.
|
|
40
|
+
*/
|
|
41
|
+
widthStateWidth?: number;
|
|
42
42
|
}): {
|
|
43
43
|
type: "line-length-unknown";
|
|
44
44
|
width: any;
|
|
@@ -3,9 +3,9 @@ import type { PopupPosition as Position } from '../ui';
|
|
|
3
3
|
export declare const calculateToolbarPositionAboveSelection: (toolbarTitle: string) => (editorView: EditorView, nextPos: Position) => Position;
|
|
4
4
|
export declare const calculateToolbarPositionTrackHead: (toolbarTitle: string) => (editorView: EditorView, nextPos: Position) => Position;
|
|
5
5
|
export type CoordsAtPos = {
|
|
6
|
-
top: number;
|
|
7
6
|
bottom: number;
|
|
8
7
|
left: number;
|
|
9
8
|
right: number;
|
|
9
|
+
top: number;
|
|
10
10
|
};
|
|
11
11
|
export declare const calculateToolbarPositionOnCellSelection: (toolbarTitle: string) => (editorView: EditorView, nextPos: Position) => Position;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type ChangedData<T> = {
|
|
2
|
-
key: keyof T;
|
|
3
2
|
difference?: any;
|
|
3
|
+
key: keyof T;
|
|
4
4
|
maxDepthReached?: boolean;
|
|
5
5
|
newValue?: any;
|
|
6
6
|
oldValue?: any;
|
|
@@ -8,14 +8,14 @@ type ChangedData<T> = {
|
|
|
8
8
|
};
|
|
9
9
|
type Changed<T> = Array<ChangedData<T>>;
|
|
10
10
|
export type PropsDifference<T> = {
|
|
11
|
-
removed: Array<keyof T>;
|
|
12
11
|
added: Array<keyof T>;
|
|
13
12
|
changed: Changed<T>;
|
|
13
|
+
removed: Array<keyof T>;
|
|
14
14
|
};
|
|
15
15
|
export type ShallowPropsDifference<T> = {
|
|
16
|
-
removed: Array<keyof T>;
|
|
17
16
|
added: Array<keyof T>;
|
|
18
17
|
changed: Array<keyof T>;
|
|
18
|
+
removed: Array<keyof T>;
|
|
19
19
|
};
|
|
20
20
|
export declare const getKeys: <T>(obj: T) => Array<keyof T>;
|
|
21
21
|
export declare const getKeysAddedRemovedCommon: <T>(object1: T, object2: T) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
type NodeCount = Record<string, number>;
|
|
3
3
|
type NodesCount = {
|
|
4
|
-
nodeCount: NodeCount;
|
|
5
4
|
extensionNodeCount: NodeCount;
|
|
5
|
+
nodeCount: NodeCount;
|
|
6
6
|
};
|
|
7
7
|
export declare function countNodes(state: EditorState): NodesCount;
|
|
8
8
|
export {};
|
|
@@ -9,9 +9,9 @@ import { type EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
|
9
9
|
* content that is already inside a panel with another panel
|
|
10
10
|
*/
|
|
11
11
|
export declare function createWrapSelectionTransaction({ state, type, nodeAttributes, }: {
|
|
12
|
+
nodeAttributes?: Record<string, any>;
|
|
12
13
|
state: EditorState;
|
|
13
14
|
type: NodeType;
|
|
14
|
-
nodeAttributes?: Record<string, any>;
|
|
15
15
|
}): import("prosemirror-state").Transaction;
|
|
16
16
|
export declare function getWrappingOptions(state: EditorState, type: NodeType, nodeAttributes?: Record<string, any>): {
|
|
17
17
|
range: any;
|
|
@@ -9,8 +9,8 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
9
9
|
export declare function isEmptyParagraph(node?: Node | null): boolean;
|
|
10
10
|
export declare const stepHasSlice: (step: Step) => step is Step & {
|
|
11
11
|
from: number;
|
|
12
|
-
to: number;
|
|
13
12
|
slice: Slice;
|
|
13
|
+
to: number;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* Checks whether a given step is adding nodes of given nodeTypes
|
|
@@ -2,8 +2,8 @@ export type ErrorReporterTags = {
|
|
|
2
2
|
[key: string]: string;
|
|
3
3
|
};
|
|
4
4
|
export interface ErrorReportingHandler {
|
|
5
|
-
captureMessage: (msg: string, tags?: ErrorReporterTags) => void;
|
|
6
5
|
captureException: (err: Error, tags?: ErrorReporterTags) => void;
|
|
6
|
+
captureMessage: (msg: string, tags?: ErrorReporterTags) => void;
|
|
7
7
|
}
|
|
8
8
|
export declare class ErrorReporter {
|
|
9
9
|
private handlerStorage;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
2
|
import { type AnalyticsEventPayload } from '../analytics';
|
|
3
3
|
export declare function getPerformanceOptions(view: EditorView): {
|
|
4
|
-
trackingEnabled: boolean;
|
|
5
4
|
samplingRate: number;
|
|
6
5
|
slowThreshold: number;
|
|
6
|
+
trackingEnabled: boolean;
|
|
7
7
|
};
|
|
8
8
|
export declare function startMeasureReactNodeViewRendered({ nodeTypeName }: {
|
|
9
9
|
nodeTypeName: string;
|
|
10
10
|
}): void;
|
|
11
11
|
export declare function stopMeasureReactNodeViewRendered({ nodeTypeName, dispatchAnalyticsEvent, samplingRate, slowThreshold, }: {
|
|
12
|
-
nodeTypeName: string;
|
|
13
12
|
dispatchAnalyticsEvent(payload: AnalyticsEventPayload): void;
|
|
13
|
+
nodeTypeName: string;
|
|
14
14
|
samplingRate: number;
|
|
15
15
|
slowThreshold: number;
|
|
16
16
|
}): void;
|
|
@@ -23,8 +23,8 @@ export declare function linkifyContent(schema: Schema): (slice: Slice) => Slice;
|
|
|
23
23
|
export declare function getLinkDomain(url: string): string;
|
|
24
24
|
export declare function isFromCurrentDomain(url: string): boolean;
|
|
25
25
|
interface filepathMatch {
|
|
26
|
-
startIndex: number;
|
|
27
26
|
endIndex: number;
|
|
27
|
+
startIndex: number;
|
|
28
28
|
}
|
|
29
29
|
export declare const findFilepaths: (text: string, offset?: number) => Array<filepathMatch>;
|
|
30
30
|
export declare const isLinkInMatches: (linkStart: number, matchesList: Array<filepathMatch>) => boolean;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ComponentType } from 'react';
|
|
3
3
|
export interface ImageLoaderProps {
|
|
4
|
-
|
|
4
|
+
imageStatus?: ImageStatus;
|
|
5
5
|
onExternalImageLoaded?: (dimensions: {
|
|
6
|
-
width: number;
|
|
7
6
|
height: number;
|
|
7
|
+
width: number;
|
|
8
8
|
}) => void;
|
|
9
|
-
|
|
9
|
+
url?: string;
|
|
10
10
|
}
|
|
11
11
|
export interface ImageLoaderState {
|
|
12
12
|
imageStatus: ImageStatus;
|
|
@@ -6,10 +6,10 @@ import type { InputRuleHandler, InputRuleWrapper } from '../types';
|
|
|
6
6
|
type GetPayload = AnalyticsEventPayload | ((state: EditorState, matchResult: RegExpExecArray) => AnalyticsEventPayload);
|
|
7
7
|
export declare const inputRuleWithAnalytics: (getPayload: GetPayload, analyticsApi: EditorAnalyticsAPI | undefined) => (originalRule: InputRuleWrapper) => InputRuleWrapper;
|
|
8
8
|
type WrappingRuleProps = {
|
|
9
|
-
match: RegExp;
|
|
10
|
-
nodeType: NodeType;
|
|
11
9
|
getAttrs?: Record<string, any> | ((matchResult: RegExpExecArray) => Record<string, any>);
|
|
12
10
|
joinPredicate?: (matchResult: RegExpExecArray, node: PMNode, joinScenario: JOIN_SCENARIOS_WHEN_TYPING_TO_INSERT_LIST) => boolean;
|
|
11
|
+
match: RegExp;
|
|
12
|
+
nodeType: NodeType;
|
|
13
13
|
};
|
|
14
14
|
export declare const createWrappingJoinRule: ({ match, nodeType, getAttrs, joinPredicate, }: WrappingRuleProps) => InputRuleWrapper;
|
|
15
15
|
export declare const createRule: (match: RegExp, handler: InputRuleHandler) => InputRuleWrapper;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type PropsDifference, type ShallowPropsDifference } from '../../../compare-props';
|
|
2
2
|
type PropsDiff<Props> = ShallowPropsDifference<Props> | PropsDifference<Props>;
|
|
3
3
|
type OnRenderCb<Props = undefined> = ({ renderCount, propsDifference, }: {
|
|
4
|
-
renderCount: number;
|
|
5
|
-
propsDifference: PropsDiff<Props> | undefined;
|
|
6
4
|
componentId: string;
|
|
5
|
+
propsDifference: PropsDiff<Props> | undefined;
|
|
6
|
+
renderCount: number;
|
|
7
7
|
}) => void;
|
|
8
8
|
export type UseComponentRenderTrackingArgs<Props = undefined> = {
|
|
9
9
|
onRender: OnRenderCb<Props>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type DistortedDurationMonitor = {
|
|
2
|
-
distortedDuration: boolean;
|
|
3
2
|
cleanup: () => void;
|
|
3
|
+
distortedDuration: boolean;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
6
|
* Monitors if a pages enters a visibility state which will lead to
|
|
@@ -38,8 +38,6 @@ measureName: string,
|
|
|
38
38
|
* when the Document.visibilityState is visible.
|
|
39
39
|
*/
|
|
40
40
|
onMeasureComplete: ({ duration, startTime, distortedDuration, }: {
|
|
41
|
-
duration: number;
|
|
42
|
-
startTime: number;
|
|
43
41
|
/**
|
|
44
42
|
* Will be true when the measurement takes place in a background tab or some
|
|
45
43
|
* other case which results in the Document.visibilityState not being visible.
|
|
@@ -48,5 +46,7 @@ onMeasureComplete: ({ duration, startTime, distortedDuration, }: {
|
|
|
48
46
|
* onMeasureComplete description for more details.
|
|
49
47
|
*/
|
|
50
48
|
distortedDuration: boolean;
|
|
49
|
+
duration: number;
|
|
50
|
+
startTime: number;
|
|
51
51
|
}) => void): void;
|
|
52
52
|
export {};
|
|
@@ -9,6 +9,6 @@ export declare const TTI_FROM_INVOCATION_SEVERITY_THRESHOLD_DEFAULTS: {
|
|
|
9
9
|
DEGRADED: number;
|
|
10
10
|
};
|
|
11
11
|
export declare function getTTISeverity(tti: number, ttiFromInvocation: number, ttiSeverityNormalThreshold?: number, ttiSeverityDegradedThreshold?: number, ttiFromInvocationSeverityNormalThreshold?: number, ttiFromInvocationSeverityDegradedThreshold?: number): {
|
|
12
|
-
ttiSeverity: SEVERITY;
|
|
13
12
|
ttiFromInvocationSeverity: SEVERITY;
|
|
13
|
+
ttiSeverity: SEVERITY;
|
|
14
14
|
};
|
|
@@ -4,8 +4,8 @@ import { type Command } from '../types';
|
|
|
4
4
|
export type Reducer<PluginState, Action> = (state: PluginState, action: Action) => PluginState;
|
|
5
5
|
type MapState<PluginState> = (tr: ReadonlyTransaction, pluginState: PluginState, editorState: EditorState) => PluginState;
|
|
6
6
|
type SafePlugin<PluginState, Action, InitialState extends PluginState> = {
|
|
7
|
-
createPluginState: (dispatch: Dispatch, initialState: InitialState | ((state: EditorState) => InitialState)) => SafeStateField<PluginState>;
|
|
8
7
|
createCommand: <A = Action>(action: A | ((state: Readonly<EditorState>) => A | false), transform?: (tr: Transaction, state: EditorState) => Transaction) => Command;
|
|
8
|
+
createPluginState: (dispatch: Dispatch, initialState: InitialState | ((state: EditorState) => InitialState)) => SafeStateField<PluginState>;
|
|
9
9
|
getPluginState: (state: EditorState) => PluginState;
|
|
10
10
|
};
|
|
11
11
|
export declare function pluginFactory<PluginState, Action, InitialState extends PluginState>(pluginKey: PluginKey, reducer: Reducer<PluginState, Action>, options?: {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export declare const PROFILER_KEY = "__editorRenderCountProfiler";
|
|
2
2
|
interface ComponentInstanceRenderCounter {
|
|
3
|
-
instanceId: string;
|
|
4
3
|
count: number;
|
|
4
|
+
instanceId: string;
|
|
5
5
|
}
|
|
6
6
|
type ProfilerData = {
|
|
7
|
-
enabled: boolean;
|
|
8
7
|
components?: {
|
|
9
8
|
[componentId: string]: {
|
|
10
9
|
[instanceId: string]: {
|
|
@@ -12,6 +11,7 @@ type ProfilerData = {
|
|
|
12
11
|
};
|
|
13
12
|
};
|
|
14
13
|
};
|
|
14
|
+
enabled: boolean;
|
|
15
15
|
};
|
|
16
16
|
type RenderCountProfilerInstanceParams = {
|
|
17
17
|
store: Object;
|
|
@@ -37,8 +37,8 @@ export declare class RenderCountProfiler {
|
|
|
37
37
|
isEnabled(): boolean;
|
|
38
38
|
setRenderCount({ componentId, renderCount, instanceId, }: {
|
|
39
39
|
componentId: string;
|
|
40
|
-
renderCount: number;
|
|
41
40
|
instanceId: string;
|
|
41
|
+
renderCount: number;
|
|
42
42
|
}): void;
|
|
43
43
|
getInstanceRenderCounters({ componentId, }: {
|
|
44
44
|
componentId: string;
|
|
@@ -5,15 +5,15 @@ type DispatchAnalyticsEvent = (payload: UnsupportedContentPayload) => void;
|
|
|
5
5
|
type DispatchAnalyticsEventTooltip = (payload: UnsupportedContentTooltipPayload) => void;
|
|
6
6
|
export declare const findAndTrackUnsupportedContentNodes: (node: PMNode, schema: Schema, dispatchAnalyticsEvent: DispatchAnalyticsEvent, ancestorHierarchy?: string) => void;
|
|
7
7
|
interface UnsupportedNode {
|
|
8
|
-
type: string;
|
|
9
8
|
ancestry: string;
|
|
10
|
-
parentType: string;
|
|
11
|
-
marks: {
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
}[];
|
|
14
9
|
attrs: {
|
|
15
10
|
[key: string]: any;
|
|
16
11
|
};
|
|
12
|
+
marks: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}[];
|
|
15
|
+
parentType: string;
|
|
16
|
+
type: string;
|
|
17
17
|
}
|
|
18
18
|
export declare const fireUnsupportedEvent: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, actionSubjectId: ACTION_SUBJECT_ID, unsupportedNode: UnsupportedNode, errorCode?: string) => void;
|
|
19
19
|
export declare const trackUnsupportedContentTooltipDisplayedFor: (dispatchAnalyticsEvent: DispatchAnalyticsEventTooltip, unsupportedContentType: UnsupportedContentTooltipPayload["actionSubjectId"], originalNodeType?: string) => void;
|
|
@@ -10,10 +10,10 @@ type UnsupportedContentLevelThresholds = {
|
|
|
10
10
|
};
|
|
11
11
|
export type UnsupportedContentLevelsTracking = {
|
|
12
12
|
enabled: boolean;
|
|
13
|
-
thresholds?: Partial<UnsupportedContentLevelThresholds>;
|
|
14
13
|
samplingRates?: {
|
|
15
14
|
[key: string]: number;
|
|
16
15
|
};
|
|
16
|
+
thresholds?: Partial<UnsupportedContentLevelThresholds>;
|
|
17
17
|
};
|
|
18
18
|
export declare const UNSUPPORTED_CONTENT_LEVEL_SEVERITY_THRESHOLD_DEFAULTS: {
|
|
19
19
|
DEGRADED: number;
|
|
@@ -8,8 +8,8 @@ type AEP<Action, ActionSubject, ActionSubjectID, Attributes, EventType> = {
|
|
|
8
8
|
};
|
|
9
9
|
type TrackAEP<Action, ActionSubject, ActionSubjectID, Attributes> = AEP<Action, ActionSubject, ActionSubjectID, Attributes, EVENT_TYPE.TRACK>;
|
|
10
10
|
type UnsupportedContentEncounteredAEP = TrackAEP<ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED, ACTION_SUBJECT.DOCUMENT, ACTION_SUBJECT_ID, {
|
|
11
|
-
unsupportedNode: Record<string, any>;
|
|
12
11
|
errorCode?: String;
|
|
12
|
+
unsupportedNode: Record<string, any>;
|
|
13
13
|
}>;
|
|
14
14
|
export type UnsupportedContentPayload = UnsupportedContentEncounteredAEP;
|
|
15
15
|
export type UnsupportedContentTooltipPayload = AEP<ACTION.UNSUPPORTED_TOOLTIP_VIEWED, ACTION_SUBJECT.TOOLTIP, ACTION_SUBJECT_ID.ON_UNSUPPORTED_BLOCK | ACTION_SUBJECT_ID.ON_UNSUPPORTED_INLINE, {
|
|
@@ -5,26 +5,26 @@ export declare const ADFStages: {
|
|
|
5
5
|
};
|
|
6
6
|
export type ADFStage = (typeof ADFStages)[keyof typeof ADFStages];
|
|
7
7
|
export interface ADDoc {
|
|
8
|
-
version: 1;
|
|
9
|
-
type: 'doc';
|
|
10
8
|
content: ADNode[];
|
|
9
|
+
type: 'doc';
|
|
10
|
+
version: 1;
|
|
11
11
|
}
|
|
12
12
|
export interface ADNode {
|
|
13
|
-
type: string;
|
|
14
13
|
attrs?: any;
|
|
15
14
|
content?: ADNode[];
|
|
16
15
|
marks?: ADMark[];
|
|
17
16
|
text?: string;
|
|
17
|
+
type: string;
|
|
18
18
|
}
|
|
19
19
|
export interface ADMark {
|
|
20
|
-
type: string;
|
|
21
20
|
attrs?: any;
|
|
21
|
+
type: string;
|
|
22
22
|
}
|
|
23
23
|
export interface ADMarkSimple {
|
|
24
|
+
attrs?: any;
|
|
24
25
|
type: {
|
|
25
26
|
name: string;
|
|
26
27
|
};
|
|
27
|
-
attrs?: any;
|
|
28
28
|
}
|
|
29
29
|
export declare const markOrder: string[];
|
|
30
30
|
export declare const isSubSupType: (type: string) => type is "sub" | "sup";
|
|
@@ -23,8 +23,8 @@ export type PluginsConfig = {
|
|
|
23
23
|
};
|
|
24
24
|
export interface Props<P extends NamedPluginKeys> {
|
|
25
25
|
debounce?: boolean;
|
|
26
|
-
eventDispatcher?: EventDispatcher;
|
|
27
26
|
editorView?: EditorView;
|
|
27
|
+
eventDispatcher?: EventDispatcher;
|
|
28
28
|
plugins: P;
|
|
29
29
|
render: (pluginState: NamedPluginStates<P>) => React.ReactElement | null;
|
|
30
30
|
}
|