@atlaskit/editor-common 115.15.3 → 115.15.4
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/AssistiveText/package.json +1 -8
- package/BaseTheme/package.json +1 -8
- package/CHANGELOG.md +10 -0
- package/Caption/package.json +1 -8
- package/DropList/package.json +1 -8
- package/DropdownMenuExtensionItems/package.json +1 -8
- package/DropdownMenuItem/package.json +1 -8
- package/DropdownSeparator/package.json +1 -8
- package/EventHandlers/package.json +1 -8
- package/Extension/package.json +1 -8
- package/ExtensionComponent/package.json +1 -8
- package/ExtensionNodeWrapper/package.json +1 -8
- package/FloatingToolbar/Button/package.json +1 -8
- package/FloatingToolbar/Separator/package.json +1 -8
- package/FloatingToolbar/SmallerEditIcon/package.json +1 -8
- package/HoverLinkOverlay/package.json +1 -8
- package/IntlProviderIfMissingWrapper/package.json +1 -8
- package/MediaSingle/grid/package.json +1 -8
- package/MediaSingle/link/package.json +1 -8
- package/MediaSingle/package.json +1 -8
- package/MediaSingle/styled/package.json +1 -8
- package/MediaSingle/types/package.json +1 -8
- package/MultiBodiedExtension/package.json +1 -8
- package/OverflowShadow/package.json +1 -8
- package/OverflowShadow/shadowObserver/package.json +1 -8
- package/PanelTextInput/package.json +1 -8
- package/PanelTextInput/styles/package.json +1 -8
- package/Popup/package.json +1 -8
- package/Popup/utils/package.json +1 -8
- package/PortalBucket/package.json +1 -8
- package/PortalManager/package.json +1 -8
- package/ResizerLegacy/package.json +1 -8
- package/ResizerLegacy/styled/package.json +1 -8
- package/ResizerLegacy/types/package.json +1 -8
- package/ResizerLegacy/utils/package.json +1 -8
- package/SSRRenderMeasure/package.json +1 -8
- package/SelectionBasedNodeView/package.json +1 -8
- package/Shortcut/package.json +1 -8
- package/TableSelector/package.json +1 -8
- package/UNSAFE_do_not_use_editor_context/package.json +1 -8
- package/UnsupportedBlock/package.json +1 -8
- package/UnsupportedInline/package.json +1 -8
- package/UserIntentPopupWrapper/package.json +1 -8
- package/WidthProvider/package.json +1 -8
- package/WithCreateAnalyticsEvent/package.json +1 -8
- package/ai-messages/ai/package.json +1 -8
- package/ai-messages/ai-autocomplete/package.json +1 -8
- package/ai-messages/ai-config-items/package.json +1 -8
- package/ai-messages/ai-definitions/package.json +1 -8
- package/ai-messages/ai-experience-application/package.json +1 -8
- package/ai-messages/ai-failed-state/package.json +1 -8
- package/ai-messages/ai-languages/package.json +1 -8
- package/ai-messages/ai-proactive/package.json +1 -8
- package/ai-messages/ai-proactive-setting/package.json +1 -8
- package/ai-messages/ai-proactive-transform/package.json +1 -8
- package/ai-messages/ai-quick-prompt/package.json +1 -8
- package/ai-messages/ai-suggestions/package.json +1 -8
- package/ai-messages/package.json +1 -8
- package/alignment/package.json +1 -8
- package/analytics/api/package.json +1 -8
- package/analytics/fire-analytics-event/package.json +1 -8
- package/analytics/linking-utils/package.json +1 -8
- package/analytics/package.json +1 -8
- package/analytics/types/activity-session-events/package.json +1 -8
- package/analytics/types/ai-autocomplete-events/package.json +1 -8
- package/analytics/types/ai-definitions-events/package.json +1 -8
- package/analytics/types/ai-events/package.json +1 -8
- package/analytics/types/ai-inline-suggestion-events/package.json +1 -8
- package/analytics/types/ai-proactive-events/package.json +1 -8
- package/analytics/types/ai-quick-prompt-events/package.json +1 -8
- package/analytics/types/ai-unified-events/package.json +1 -8
- package/analytics/types/block-menu-events/package.json +1 -8
- package/analytics/types/breakout-events/package.json +1 -8
- package/analytics/types/color-events/package.json +1 -8
- package/analytics/types/dispatch-analytics-event/package.json +1 -8
- package/analytics/types/enums/package.json +1 -8
- package/analytics/types/events/package.json +1 -8
- package/analytics/types/experience-events/package.json +1 -8
- package/analytics/types/extension-events/package.json +1 -8
- package/analytics/types/format-events/package.json +1 -8
- package/analytics/types/general-events/package.json +1 -8
- package/analytics/types/inline-comment-events/package.json +1 -8
- package/analytics/types/insert-events/package.json +1 -8
- package/analytics/types/link-tool-bar-events/package.json +1 -8
- package/analytics/types/list-events/package.json +1 -8
- package/analytics/types/media-events/package.json +1 -8
- package/analytics/types/move-content-events/package.json +1 -8
- package/analytics/types/native-embed-events/package.json +1 -8
- package/analytics/types/ncs-session-step-events/package.json +1 -8
- package/analytics/types/node-events/package.json +1 -8
- package/analytics/types/paste-events/package.json +1 -8
- package/analytics/types/performance-report/package.json +1 -8
- package/analytics/types/referentiality-events/package.json +1 -8
- package/analytics/types/selection-events/package.json +1 -8
- package/analytics/types/smart-links/package.json +1 -8
- package/analytics/types/substitute-events/package.json +1 -8
- package/analytics/types/sync-block-events/package.json +1 -8
- package/analytics/types/table-events/package.json +1 -8
- package/analytics/types/telepointer-events/package.json +1 -8
- package/analytics/types/toolbar-button/package.json +1 -8
- package/analytics/types/type-ahead/package.json +1 -8
- package/analytics/types/utils/package.json +1 -8
- package/analytics/types/view-events/package.json +1 -8
- package/analytics/utils/package.json +1 -8
- package/annotation/package.json +1 -8
- package/announcer/package.json +1 -8
- package/assets/package.json +1 -8
- package/block-menu/block-link/package.json +1 -8
- package/block-menu/key/package.json +1 -8
- package/block-menu/key-deprecated/package.json +1 -8
- package/block-menu/messages/package.json +1 -8
- package/block-menu/package.json +1 -8
- package/block-menu/placement/package.json +1 -8
- package/block-menu/rank/package.json +1 -8
- package/block-menu/rank-deprecated/package.json +1 -8
- package/block-menu/scroll-to-block-utils/package.json +1 -8
- package/block-type/package.json +1 -8
- package/browser/package.json +1 -8
- package/card/LinkToolbarButtonGroup/package.json +1 -8
- package/card/MediaAndEmbedsToolbar/package.json +1 -8
- package/card/assets/card/package.json +1 -8
- package/card/assets/embed/package.json +1 -8
- package/card/assets/inline/package.json +1 -8
- package/card/assets/url/package.json +1 -8
- package/card/cardOptions/package.json +1 -8
- package/card/link-toolbar-button-group-options/package.json +1 -8
- package/card/link-toolbar-dropdown-options/package.json +1 -8
- package/card/package.json +1 -8
- package/card/types/package.json +1 -8
- package/card/utils/package.json +1 -8
- package/clear-next-sibling-margin-top/package.json +1 -8
- package/clipboard/package.json +1 -8
- package/code-block/package.json +1 -8
- package/collab/package.json +1 -8
- package/combine-providers/package.json +1 -8
- package/commands/insert-block/package.json +1 -8
- package/commands/package.json +1 -8
- package/common/package.json +1 -8
- package/compiled-migration/package.json +1 -8
- package/const/package.json +1 -8
- package/constants/package.json +1 -8
- package/context-panel/package.json +1 -8
- package/copy-button/package.json +1 -8
- package/core-utils/package.json +1 -8
- package/count-nodes/package.json +1 -8
- package/css-helper/package.json +1 -8
- package/custom-panel/package.json +1 -8
- package/dist/cjs/block-menu/block-link.js +2 -0
- package/dist/cjs/keymaps/index.js +31 -38
- package/dist/cjs/keymaps/keymap.js +5 -3
- package/dist/cjs/lazy-node-view/css-helper.js +7 -4
- package/dist/cjs/monitoring/environment.js +6 -4
- package/dist/cjs/monitoring/error.js +12 -11
- package/dist/cjs/paste/md-plugins/linkify-md-plugin.js +23 -15
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Mention/mention-with-profilecard.js +5 -5
- package/dist/cjs/ui-color/ColorPalette/utils.js +5 -3
- package/dist/cjs/utils/browser.js +60 -52
- package/dist/cjs/utils/processRawValue.js +8 -7
- package/dist/cjs/utils/should-auto-linkify-tld.js +9 -7
- package/dist/es2019/block-menu/block-link.js +2 -0
- package/dist/es2019/keymaps/index.js +32 -38
- package/dist/es2019/keymaps/keymap.js +5 -3
- package/dist/es2019/lazy-node-view/css-helper.js +7 -4
- package/dist/es2019/monitoring/environment.js +6 -4
- package/dist/es2019/monitoring/error.js +13 -11
- package/dist/es2019/paste/md-plugins/linkify-md-plugin.js +23 -15
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Mention/mention-with-profilecard.js +5 -5
- package/dist/es2019/ui-color/ColorPalette/utils.js +5 -3
- package/dist/es2019/utils/browser.js +60 -52
- package/dist/es2019/utils/processRawValue.js +8 -7
- package/dist/es2019/utils/should-auto-linkify-tld.js +9 -7
- package/dist/esm/block-menu/block-link.js +2 -0
- package/dist/esm/keymaps/index.js +32 -38
- package/dist/esm/keymaps/keymap.js +5 -3
- package/dist/esm/lazy-node-view/css-helper.js +7 -4
- package/dist/esm/monitoring/environment.js +6 -4
- package/dist/esm/monitoring/error.js +13 -11
- package/dist/esm/paste/md-plugins/linkify-md-plugin.js +23 -15
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Mention/mention-with-profilecard.js +5 -5
- package/dist/esm/ui-color/ColorPalette/utils.js +5 -3
- package/dist/esm/utils/browser.js +60 -52
- package/dist/esm/utils/processRawValue.js +8 -7
- package/dist/esm/utils/should-auto-linkify-tld.js +9 -7
- package/dist/types/analytics/index.d.ts +1 -1
- package/dist/types/analytics/types/ai-suggestions-events.d.ts +4 -3
- package/dist/types/ui-color/ColorPalette/utils.d.ts +1 -1
- package/doc-utils/editor-use-only/package.json +1 -8
- package/doc-utils/package.json +1 -8
- package/document-logger/package.json +1 -8
- package/editor-analytics/package.json +1 -8
- package/editor-ugc-token-names/package.json +1 -8
- package/element-browser/ElementBrowserLoader/package.json +1 -8
- package/element-browser/constants/package.json +1 -8
- package/element-browser/package.json +1 -8
- package/emoji/messages/package.json +1 -8
- package/emoji/package.json +1 -8
- package/error-boundary/package.json +1 -8
- package/error-reporter/package.json +1 -8
- package/event-dispatcher/package.json +1 -8
- package/expand/package.json +1 -8
- package/experiences/Experience/package.json +1 -8
- package/experiences/ExperienceCheck/package.json +1 -8
- package/experiences/ExperienceCheckComposite/package.json +1 -8
- package/experiences/ExperienceCheckDomMutation/package.json +1 -8
- package/experiences/ExperienceCheckPopupMutation/package.json +1 -8
- package/experiences/ExperienceCheckTimeout/package.json +1 -8
- package/experiences/consts/package.json +1 -8
- package/experiences/experience-utils/package.json +1 -8
- package/experiences/package.json +1 -8
- package/extensibility/package.json +1 -8
- package/extensibility/types/package.json +1 -8
- package/extensionNodeView/package.json +1 -8
- package/extensions/combine-extension-providers/package.json +1 -8
- package/extensions/default-extension-provider/package.json +1 -8
- package/extensions/extension-fields-helpers/package.json +1 -8
- package/extensions/extension-handler/package.json +1 -8
- package/extensions/extension-handlers/package.json +1 -8
- package/extensions/extension-manifest/package.json +1 -8
- package/extensions/extension-manifest-common/package.json +1 -8
- package/extensions/extension-manifest-toolbar-item/package.json +1 -8
- package/extensions/extension-parameters/package.json +1 -8
- package/extensions/extension-provider/package.json +1 -8
- package/extensions/field-definitions/package.json +1 -8
- package/extensions/manifest-helpers/package.json +1 -8
- package/extensions/messages/package.json +1 -8
- package/extensions/module-helpers/package.json +1 -8
- package/extensions/package.json +1 -8
- package/extensions/types/utils/package.json +1 -8
- package/fallback/package.json +1 -8
- package/floating-toolbar/messages/package.json +1 -8
- package/floating-toolbar/package.json +1 -8
- package/get-dom-ref-from-selection/package.json +1 -8
- package/get-editor-ugc-token/package.json +1 -8
- package/getInlineNodeViewProducer/package.json +1 -8
- package/guideline/constants/package.json +1 -8
- package/guideline/defaultGuideline/package.json +1 -8
- package/guideline/dynamicGuideline/package.json +1 -8
- package/guideline/fixedGuideline/package.json +1 -8
- package/guideline/package.json +1 -8
- package/guideline/relativeGuideline/package.json +1 -8
- package/guideline/snapping/package.json +1 -8
- package/guideline/types/package.json +1 -8
- package/guideline/updateGuideline/package.json +1 -8
- package/guideline/utils/package.json +1 -8
- package/hooks/package.json +1 -8
- package/i18n/package.json +1 -8
- package/icons/BorderIcon/package.json +1 -8
- package/icons/DynamicStrokeIconDecoration/package.json +1 -8
- package/icons/PanelErrorIcon/package.json +1 -8
- package/icons/PanelInfoIcon/package.json +1 -8
- package/icons/PanelNoteIcon/package.json +1 -8
- package/icons/PanelSuccessIcon/package.json +1 -8
- package/icons/PanelWarningIcon/package.json +1 -8
- package/icons/SteppedRainbowIconDecoration/package.json +1 -8
- package/icons/package.json +1 -8
- package/indentation/package.json +1 -8
- package/inline-image-wrapper/package.json +1 -8
- package/insert/package.json +1 -8
- package/inside/package.json +1 -8
- package/intl-error-boundary/package.json +1 -8
- package/is-performance-api-available/package.json +1 -8
- package/is-ssr/package.json +1 -8
- package/keymap/package.json +1 -8
- package/keymaps/consts/package.json +1 -8
- package/keymaps/package.json +1 -8
- package/lazy-node-view/package.json +1 -8
- package/lazy-node-view/types/package.json +1 -8
- package/legacy-rank-plugins/package.json +1 -8
- package/limited-mode-document-thresholds/package.json +1 -8
- package/link/ConfigureLinkOverlay/package.json +1 -8
- package/link/EditorLinkPicker/package.json +1 -8
- package/link/HyperlinkAddToolbar/HyperlinkAddToolbar/package.json +1 -8
- package/link/HyperlinkAddToolbar/package.json +1 -8
- package/link/HyperlinkAddToolbar/utils/package.json +1 -8
- package/link/LinkSearch/package.json +1 -8
- package/link/LinkSearch/types/package.json +1 -8
- package/link/LinkSearchList/package.json +1 -8
- package/link/LinkSearchListItem/package.json +1 -8
- package/link/ToolbarComponents/package.json +1 -8
- package/link/handleNavigation/package.json +1 -8
- package/link/package.json +1 -8
- package/link/transformTimeStamp/package.json +1 -8
- package/link/types/package.json +1 -8
- package/link/utils/package.json +1 -8
- package/link-search-constants/package.json +1 -8
- package/lists/analytics/package.json +1 -8
- package/lists/block-mark/package.json +1 -8
- package/lists/build-replacement-fragment/package.json +1 -8
- package/lists/flatten-list/package.json +1 -8
- package/lists/indentation/package.json +1 -8
- package/lists/messages/package.json +1 -8
- package/lists/narrow-replacement-range/package.json +1 -8
- package/lists/node/package.json +1 -8
- package/lists/package.json +1 -8
- package/lists/replace-content/package.json +1 -8
- package/lists/restore-selection/package.json +1 -8
- package/lists/selection/package.json +1 -8
- package/mark/commands/package.json +1 -8
- package/mark/package.json +1 -8
- package/mark/text-formatting/package.json +1 -8
- package/media/altText/package.json +1 -8
- package/media/caption/package.json +1 -8
- package/media/comments/package.json +1 -8
- package/media/dropPlaceholder/package.json +1 -8
- package/media/externalMedia/package.json +1 -8
- package/media/imageBorder/package.json +1 -8
- package/media/mediaLinkingToolbar/package.json +1 -8
- package/media/mediaResizeAnnouncerMess/package.json +1 -8
- package/media/nodeviews/package.json +1 -8
- package/media/package.json +1 -8
- package/media/pixelEntry/package.json +1 -8
- package/media/toolbarMedia/package.json +1 -8
- package/media-inline/constants/package.json +1 -8
- package/media-inline/package.json +1 -8
- package/media-inline/styles/package.json +1 -8
- package/media-inline/types/package.json +1 -8
- package/media-inline/utils/package.json +1 -8
- package/media-inline-image-card/package.json +1 -8
- package/media-single/CommentBadge/package.json +1 -8
- package/media-single/CommentBadgeNext/package.json +1 -8
- package/media-single/ExternalImageBadge/package.json +1 -8
- package/media-single/MediaBadges/package.json +1 -8
- package/media-single/constants/package.json +1 -8
- package/media-single/package.json +1 -8
- package/media-single/utils/package.json +1 -8
- package/median/package.json +1 -8
- package/mention/package.json +1 -8
- package/messages/annotation/package.json +1 -8
- package/messages/avatar-group/package.json +1 -8
- package/messages/block-controls/package.json +1 -8
- package/messages/block-menu/package.json +1 -8
- package/messages/block-type/package.json +1 -8
- package/messages/breakout/package.json +1 -8
- package/messages/card/package.json +1 -8
- package/messages/codeBidiWarning/package.json +1 -8
- package/messages/codeBlock/package.json +1 -8
- package/messages/codeBlockButton/package.json +1 -8
- package/messages/color-picker-button/package.json +1 -8
- package/messages/company-hub-text-color/package.json +1 -8
- package/messages/context-panel/package.json +1 -8
- package/messages/date/package.json +1 -8
- package/messages/element-insert-side-panel/package.json +1 -8
- package/messages/find-replace/package.json +1 -8
- package/messages/full-page/package.json +1 -8
- package/messages/help-dialog/package.json +1 -8
- package/messages/highlight/package.json +1 -8
- package/messages/indentation/package.json +1 -8
- package/messages/insert-block/package.json +1 -8
- package/messages/layout/package.json +1 -8
- package/messages/limited-mode/package.json +1 -8
- package/messages/link/package.json +1 -8
- package/messages/link-toolbar/package.json +1 -8
- package/messages/list/package.json +1 -8
- package/messages/markdown-mode/package.json +1 -8
- package/messages/media-and-embed-toolbar/package.json +1 -8
- package/messages/media-editing/package.json +1 -8
- package/messages/media-insert/package.json +1 -8
- package/messages/mentions/package.json +1 -8
- package/messages/native-embed-toolbar/package.json +1 -8
- package/messages/package.json +1 -8
- package/messages/panel/package.json +1 -8
- package/messages/paste-options-toolbar/package.json +1 -8
- package/messages/placeholder-text/package.json +1 -8
- package/messages/roleDescription/package.json +1 -8
- package/messages/selection-extension/package.json +1 -8
- package/messages/selection-toolbar/package.json +1 -8
- package/messages/status/package.json +1 -8
- package/messages/syncBlock/package.json +1 -8
- package/messages/table/package.json +1 -8
- package/messages/tasks-and-decisions/package.json +1 -8
- package/messages/text-color/package.json +1 -8
- package/messages/toolbar/package.json +1 -8
- package/messages/track-changes/package.json +1 -8
- package/messages/undo-redo/package.json +1 -8
- package/messages/unsupportedContent/package.json +1 -8
- package/monitoring/error/package.json +1 -8
- package/monitoring/package.json +1 -8
- package/ncs-step-metrics/package.json +1 -8
- package/nesting/package.json +1 -8
- package/node-anchor/package.json +1 -8
- package/node-anchor-provider/package.json +1 -8
- package/node-selection/package.json +1 -8
- package/node-view/package.json +1 -8
- package/node-visibility/package.json +1 -8
- package/node-width/package.json +1 -8
- package/normalize-feature-flags/package.json +1 -8
- package/package.json +2 -2
- package/panel/package.json +1 -8
- package/paste/clipboard/package.json +1 -8
- package/paste/md/package.json +1 -8
- package/paste/package.json +1 -8
- package/performance/measure-render/package.json +1 -8
- package/performance/measure-tti/package.json +1 -8
- package/performance/navigation/package.json +1 -8
- package/performance/ssr-measures/package.json +1 -8
- package/performance-measures/package.json +1 -8
- package/persistence-api/package.json +1 -8
- package/portal/package.json +1 -8
- package/preset/builder/package.json +1 -8
- package/preset/editor-commands/package.json +1 -8
- package/preset/package.json +1 -8
- package/preset/plugin-injection-api/package.json +1 -8
- package/process-raw-value/package.json +1 -8
- package/profileSSROperation/package.json +1 -8
- package/prosemirror-dom-metadata/package.json +1 -8
- package/provider-factory/autoformatting-provider/package.json +1 -8
- package/provider-factory/card-provider/package.json +1 -8
- package/provider-factory/context/package.json +1 -8
- package/provider-factory/context-identifier-provider/package.json +1 -8
- package/provider-factory/image-upload-provider/package.json +1 -8
- package/provider-factory/macro-provider/package.json +1 -8
- package/provider-factory/media-provider/package.json +1 -8
- package/provider-factory/package.json +1 -8
- package/provider-factory/profile-card-provider/package.json +1 -8
- package/provider-factory/provider-factory/package.json +1 -8
- package/provider-factory/quick-insert-provider/package.json +1 -8
- package/provider-factory/search-provider/package.json +1 -8
- package/provider-factory/types/package.json +1 -8
- package/provider-factory/with-providers/package.json +1 -8
- package/provider-helpers/package.json +1 -8
- package/quick-insert/messages/package.json +1 -8
- package/quick-insert/package.json +1 -8
- package/quick-insert/utils/package.json +1 -8
- package/react-node-view/package.json +1 -8
- package/react-node-view/types/package.json +1 -8
- package/resizer/BreakoutResizer/package.json +1 -8
- package/resizer/Resizer/package.json +1 -8
- package/resizer/ResizerBreakoutModeLabel/package.json +1 -8
- package/resizer/package.json +1 -8
- package/resizer/types/package.json +1 -8
- package/resizer/useBreakoutGuidelines/package.json +1 -8
- package/safe-plugin/package.json +1 -8
- package/selection/actions/package.json +1 -8
- package/selection/context-helpers/package.json +1 -8
- package/selection/gap-cursor/selection/package.json +1 -8
- package/selection/gap-cursor/styles/package.json +1 -8
- package/selection/is-ignored/package.json +1 -8
- package/selection/is-valid-target-node/package.json +1 -8
- package/selection/package.json +1 -8
- package/selection/setGapCursorSelection/package.json +1 -8
- package/selection/types/package.json +1 -8
- package/selection/utils/package.json +1 -8
- package/selection-based-node-view/package.json +1 -8
- package/styles/annotation/package.json +1 -8
- package/styles/blockquote/package.json +1 -8
- package/styles/breakout/package.json +1 -8
- package/styles/code-block/package.json +1 -8
- package/styles/date/package.json +1 -8
- package/styles/drag-handle/package.json +1 -8
- package/styles/dropdown-menu/package.json +1 -8
- package/styles/emoji/package.json +1 -8
- package/styles/expand/package.json +1 -8
- package/styles/extension/package.json +1 -8
- package/styles/grid/package.json +1 -8
- package/styles/headings/package.json +1 -8
- package/styles/layout/package.json +1 -8
- package/styles/lists/package.json +1 -8
- package/styles/media/package.json +1 -8
- package/styles/media-single/package.json +1 -8
- package/styles/mention/package.json +1 -8
- package/styles/native-anchor/package.json +1 -8
- package/styles/package.json +1 -8
- package/styles/panel/package.json +1 -8
- package/styles/plugins/package.json +1 -8
- package/styles/resizer/package.json +1 -8
- package/styles/smart-card/package.json +1 -8
- package/styles/smartCard/package.json +1 -8
- package/styles/status/package.json +1 -8
- package/styles/sync-block/package.json +1 -8
- package/styles/table/package.json +1 -8
- package/styles/task-decision/package.json +1 -8
- package/styles/unsupported-content/package.json +1 -8
- package/sync-block/SyncBlockActionsContext/package.json +1 -8
- package/sync-block/constants/package.json +1 -8
- package/sync-block/package.json +1 -8
- package/sync-block/ssr_error/package.json +1 -8
- package/table/SortingIcon/package.json +1 -8
- package/table/consts/package.json +1 -8
- package/table/content-mode/package.json +1 -8
- package/table/package.json +1 -8
- package/table-cell-background-for-compiled/package.json +1 -8
- package/toolbar/EditorToolbarUIProvider/package.json +1 -8
- package/toolbar/context/package.json +1 -8
- package/toolbar/keys/package.json +1 -8
- package/toolbar/package.json +1 -8
- package/toolbar/rank/package.json +1 -8
- package/toolbar/types/package.json +1 -8
- package/toolbar/utils/package.json +1 -8
- package/toolbar-flag-check/package.json +1 -8
- package/transforms/code-block/package.json +1 -8
- package/transforms/decision-list/package.json +1 -8
- package/transforms/expand/package.json +1 -8
- package/transforms/extension/package.json +1 -8
- package/transforms/layout/package.json +1 -8
- package/transforms/list-transforms/package.json +1 -8
- package/transforms/list-types/package.json +1 -8
- package/transforms/list-utils/package.json +1 -8
- package/transforms/package.json +1 -8
- package/transforms/sync-block/package.json +1 -8
- package/type-ahead/messages/package.json +1 -8
- package/type-ahead/package.json +1 -8
- package/types/annotation/package.json +1 -8
- package/types/block-controls/package.json +1 -8
- package/types/block-type/package.json +1 -8
- package/types/breakout/package.json +1 -8
- package/types/command/package.json +1 -8
- package/types/context-panel/package.json +1 -8
- package/types/copy-button/package.json +1 -8
- package/types/datasource/package.json +1 -8
- package/types/doc-builder/package.json +1 -8
- package/types/editor-actions/package.json +1 -8
- package/types/editor-appearance/package.json +1 -8
- package/types/editor-command/package.json +1 -8
- package/types/editor-container-width/package.json +1 -8
- package/types/editor-plugin/package.json +1 -8
- package/types/editor-react-context/package.json +1 -8
- package/types/emitter/package.json +1 -8
- package/types/empty-state-handler/package.json +1 -8
- package/types/feature-flags/package.json +1 -8
- package/types/feedback-dialog/package.json +1 -8
- package/types/floating-toolbar/package.json +1 -8
- package/types/grid/package.json +1 -8
- package/types/hyperlink/package.json +1 -8
- package/types/image-upload-reference-event/package.json +1 -8
- package/types/input-rules/package.json +1 -8
- package/types/insert-block/package.json +1 -8
- package/types/layout/package.json +1 -8
- package/types/next-editor-plugin/package.json +1 -8
- package/types/package.json +1 -8
- package/types/performance-tracking/package.json +1 -8
- package/types/plugin-factory/package.json +1 -8
- package/types/prosemirror-config/package.json +1 -8
- package/types/quick-insert/package.json +1 -8
- package/types/resizable-media-single/package.json +1 -8
- package/types/selection/package.json +1 -8
- package/types/selection-toolbar/package.json +1 -8
- package/types/supported-browsers/package.json +1 -8
- package/types/tables/package.json +1 -8
- package/types/text-formatting/package.json +1 -8
- package/types/toolbar/package.json +1 -8
- package/types/type-ahead/package.json +1 -8
- package/types/ui-components/package.json +1 -8
- package/types/user-preferences/package.json +1 -8
- package/ugc-tokens/package.json +1 -8
- package/ui/package.json +1 -8
- package/ui-color/ColorPalette/Color/package.json +1 -8
- package/ui-color/ColorPalette/ColorPalette/utils/package.json +1 -8
- package/ui-color/ColorPalette/Palettes/common/package.json +1 -8
- package/ui-color/ColorPalette/borderColorPalette/package.json +1 -8
- package/ui-color/ColorPalette/cellBackgroundColorPalette/package.json +1 -8
- package/ui-color/ColorPalette/highlightColorPalette/package.json +1 -8
- package/ui-color/ColorPalette/package.json +1 -8
- package/ui-color/ColorPalette/paletteMessages/package.json +1 -8
- package/ui-color/ColorPalette/paletteMessagesTokenModeNames/package.json +1 -8
- package/ui-color/ColorPalette/panelBackgroundPalette/package.json +1 -8
- package/ui-color/ColorPalette/textColorPalette/package.json +1 -8
- package/ui-color/ColorPalette/type/package.json +1 -8
- package/ui-color/package.json +1 -8
- package/ui-emoji/package.json +1 -8
- package/ui-expand/package.json +1 -8
- package/ui-expand/sharedStyles/package.json +1 -8
- package/ui-mention/mention-with-profilecard/package.json +1 -8
- package/ui-mention/package.json +1 -8
- package/ui-menu/ArrowKeyNavigationProvider/package.json +1 -8
- package/ui-menu/ArrowKeyNavigationProvider/types/package.json +1 -8
- package/ui-menu/ColorPaletteArrowKeyNavigationProvider/package.json +1 -8
- package/ui-menu/ColorPickerButton/package.json +1 -8
- package/ui-menu/Dropdown/package.json +1 -8
- package/ui-menu/DropdownContainer/package.json +1 -8
- package/ui-menu/DropdownMenu/package.json +1 -8
- package/ui-menu/DropdownMenu/types/package.json +1 -8
- package/ui-menu/ToolbarArrowKeyNavigationProvider/package.json +1 -8
- package/ui-menu/ToolbarButton/package.json +1 -8
- package/ui-menu/package.json +1 -8
- package/ui-messages/package.json +1 -8
- package/ui-react/ReactEditorViewContext/package.json +1 -8
- package/ui-react/package.json +1 -8
- package/ui-react/with-react-editor-view-outer-listeners/package.json +1 -8
- package/ui-toolbar/ButtonGroup/package.json +1 -8
- package/ui-toolbar/DropdownTriggerWrapper/package.json +1 -8
- package/ui-toolbar/DropdownWrapper/package.json +1 -8
- package/ui-toolbar/ExpandIcon/package.json +1 -8
- package/ui-toolbar/Separator/package.json +1 -8
- package/ui-toolbar/package.json +1 -8
- package/use-component-render-tracking/package.json +1 -8
- package/use-plugin-state-effect/package.json +1 -8
- package/use-shared-plugin-state-selector/package.json +1 -8
- package/useConstructor/package.json +1 -8
- package/usePortalProvider/package.json +1 -8
- package/usePreviousState/package.json +1 -8
- package/useSharedPluginState/package.json +1 -8
- package/useSharedPluginStateSelector/package.json +1 -8
- package/useSharedPluginStateWithSelector/package.json +1 -8
- package/user-intent/package.json +1 -8
- package/user-intent/types/package.json +1 -8
- package/user-preferences/hooks/package.json +1 -8
- package/user-preferences/package.json +1 -8
- package/user-preferences/user-preferences/package.json +1 -8
- package/user-preferences-provider/package.json +1 -8
- package/utils/analytics/package.json +1 -8
- package/utils/annotation/package.json +1 -8
- package/utils/autojoin/package.json +1 -8
- package/utils/breakout/package.json +1 -8
- package/utils/browser-extensions/package.json +1 -8
- package/utils/calculate-toolbar-position/package.json +1 -8
- package/utils/commands/package.json +1 -8
- package/utils/compare-props/package.json +1 -8
- package/utils/compareNodes/package.json +1 -8
- package/utils/compose/package.json +1 -8
- package/utils/create-adf-from-html/package.json +1 -8
- package/utils/create-wrap-selection-transaction/package.json +1 -8
- package/utils/datasource/package.json +1 -8
- package/utils/date/package.json +1 -8
- package/utils/dedupe/package.json +1 -8
- package/utils/document/package.json +1 -8
- package/utils/dom/package.json +1 -8
- package/utils/editor-core-utils/package.json +1 -8
- package/utils/extension-handler/package.json +1 -8
- package/utils/find-node-by-local-id/package.json +1 -8
- package/utils/get-performance-options/package.json +1 -8
- package/utils/get-performance-timing/package.json +1 -8
- package/utils/get-unsupported-content-level-data/package.json +1 -8
- package/utils/getModeFromTheme/package.json +1 -8
- package/utils/grid/package.json +1 -8
- package/utils/hyperlink/package.json +1 -8
- package/utils/imageLoader/package.json +1 -8
- package/utils/input-rules/package.json +1 -8
- package/utils/insert-node-into-ordered-list/package.json +1 -8
- package/utils/is-text-input/package.json +1 -8
- package/utils/list/package.json +1 -8
- package/utils/macro/package.json +1 -8
- package/utils/measure/package.json +1 -8
- package/utils/node-type-utils/package.json +1 -8
- package/utils/nodes/package.json +1 -8
- package/utils/nodes-by-localIds/package.json +1 -8
- package/utils/package.json +1 -8
- package/utils/page-element-counts/package.json +1 -8
- package/utils/plugin-state-factory/package.json +1 -8
- package/utils/privacy-filter/package.json +1 -8
- package/utils/referentiality/package.json +1 -8
- package/utils/render-count/package.json +1 -8
- package/utils/rich-media-utils/package.json +1 -8
- package/utils/scroll-gutter/package.json +1 -8
- package/utils/should-auto-linkify-tld/package.json +1 -8
- package/utils/should-force-tracking/package.json +1 -8
- package/utils/slice/package.json +1 -8
- package/utils/table/package.json +1 -8
- package/utils/track-unsupported-content/package.json +1 -8
- package/utils/traversor/package.json +1 -8
- package/utils/types/package.json +1 -8
- package/utils/unsupportedContent/types/package.json +1 -8
- package/utils/validator/package.json +1 -8
- package/utils/withFeatureFlaggedComponent/package.json +1 -8
- package/utils/wrap-selection-in/package.json +1 -8
- package/validate-using-spec/package.json +1 -8
- package/validator/package.json +1 -8
- package/vanilla-tooltip/package.json +1 -8
- package/whitespace/package.json +1 -8
- package/whitespace/whitespace/package.json +1 -8
- package/with-outer-listeners/package.json +1 -8
- package/withAnalytics/package.json +1 -8
- package/dist/types-ts4.5/ai-messages/ai-autocomplete.d.ts +0 -22
- package/dist/types-ts4.5/ai-messages/ai-config-items.d.ts +0 -442
- package/dist/types-ts4.5/ai-messages/ai-definitions.d.ts +0 -12
- package/dist/types-ts4.5/ai-messages/ai-experience-application.d.ts +0 -142
- package/dist/types-ts4.5/ai-messages/ai-failed-state.d.ts +0 -102
- package/dist/types-ts4.5/ai-messages/ai-languages.d.ts +0 -357
- package/dist/types-ts4.5/ai-messages/ai-proactive-setting.d.ts +0 -102
- package/dist/types-ts4.5/ai-messages/ai-proactive-transform.d.ts +0 -132
- package/dist/types-ts4.5/ai-messages/ai-proactive.d.ts +0 -152
- package/dist/types-ts4.5/ai-messages/ai-quick-prompt.d.ts +0 -7
- package/dist/types-ts4.5/ai-messages/ai-suggestions.d.ts +0 -217
- package/dist/types-ts4.5/ai-messages/ai.d.ts +0 -307
- package/dist/types-ts4.5/ai-messages/index.d.ts +0 -12
- package/dist/types-ts4.5/analytics/analytics-queue.d.ts +0 -11
- package/dist/types-ts4.5/analytics/api.d.ts +0 -44
- package/dist/types-ts4.5/analytics/editorAnalyticsChannel.d.ts +0 -2
- package/dist/types-ts4.5/analytics/fire-analytics-event.d.ts +0 -3
- package/dist/types-ts4.5/analytics/index.d.ts +0 -62
- package/dist/types-ts4.5/analytics/linking-utils.d.ts +0 -21
- package/dist/types-ts4.5/analytics/types/activity-session-events.d.ts +0 -28
- package/dist/types-ts4.5/analytics/types/ai-autocomplete-events.d.ts +0 -15
- package/dist/types-ts4.5/analytics/types/ai-command-palette-events.d.ts +0 -10
- package/dist/types-ts4.5/analytics/types/ai-definitions-events.d.ts +0 -15
- package/dist/types-ts4.5/analytics/types/ai-events.d.ts +0 -15
- package/dist/types-ts4.5/analytics/types/ai-inline-suggestion-events.d.ts +0 -23
- package/dist/types-ts4.5/analytics/types/ai-proactive-events.d.ts +0 -60
- package/dist/types-ts4.5/analytics/types/ai-quick-prompt-events.d.ts +0 -20
- package/dist/types-ts4.5/analytics/types/ai-streaming.d.ts +0 -55
- package/dist/types-ts4.5/analytics/types/ai-suggestions-events.d.ts +0 -37
- package/dist/types-ts4.5/analytics/types/ai-unified-events.d.ts +0 -65
- package/dist/types-ts4.5/analytics/types/alignment-events.d.ts +0 -8
- package/dist/types-ts4.5/analytics/types/avatar.d.ts +0 -5
- package/dist/types-ts4.5/analytics/types/block-menu-events.d.ts +0 -49
- package/dist/types-ts4.5/analytics/types/block.d.ts +0 -3
- package/dist/types-ts4.5/analytics/types/breakout-events.d.ts +0 -20
- package/dist/types-ts4.5/analytics/types/color-events.d.ts +0 -7
- package/dist/types-ts4.5/analytics/types/config-panel-events.d.ts +0 -23
- package/dist/types-ts4.5/analytics/types/container-node-events.d.ts +0 -6
- package/dist/types-ts4.5/analytics/types/contextual-typeahead-events.d.ts +0 -66
- package/dist/types-ts4.5/analytics/types/cut-copy-events.d.ts +0 -17
- package/dist/types-ts4.5/analytics/types/datasource-clicked-events.d.ts +0 -11
- package/dist/types-ts4.5/analytics/types/date-events.d.ts +0 -17
- package/dist/types-ts4.5/analytics/types/dispatch-analytics-event.d.ts +0 -2
- package/dist/types-ts4.5/analytics/types/element-browser-events.d.ts +0 -13
- package/dist/types-ts4.5/analytics/types/element-events.d.ts +0 -23
- package/dist/types-ts4.5/analytics/types/engagement-platform-events.d.ts +0 -20
- package/dist/types-ts4.5/analytics/types/enums.d.ts +0 -604
- package/dist/types-ts4.5/analytics/types/events.d.ts +0 -183
- package/dist/types-ts4.5/analytics/types/experience-events.d.ts +0 -57
- package/dist/types-ts4.5/analytics/types/extension-events.d.ts +0 -54
- package/dist/types-ts4.5/analytics/types/find-replace-events.d.ts +0 -23
- package/dist/types-ts4.5/analytics/types/floating-toolbar-events.d.ts +0 -4
- package/dist/types-ts4.5/analytics/types/floating-toolbar-overflow-events.d.ts +0 -11
- package/dist/types-ts4.5/analytics/types/format-events.d.ts +0 -55
- package/dist/types-ts4.5/analytics/types/general-events.d.ts +0 -255
- package/dist/types-ts4.5/analytics/types/highlight-actions-menu-events.d.ts +0 -15
- package/dist/types-ts4.5/analytics/types/highlight-events.d.ts +0 -11
- package/dist/types-ts4.5/analytics/types/inline-comment-events.d.ts +0 -25
- package/dist/types-ts4.5/analytics/types/insert-events.d.ts +0 -186
- package/dist/types-ts4.5/analytics/types/link-events.d.ts +0 -7
- package/dist/types-ts4.5/analytics/types/link-tool-bar-events.d.ts +0 -83
- package/dist/types-ts4.5/analytics/types/list-events.d.ts +0 -66
- package/dist/types-ts4.5/analytics/types/loom-events.d.ts +0 -20
- package/dist/types-ts4.5/analytics/types/media-events.d.ts +0 -52
- package/dist/types-ts4.5/analytics/types/mention-events.d.ts +0 -84
- package/dist/types-ts4.5/analytics/types/move-content-events.d.ts +0 -10
- package/dist/types-ts4.5/analytics/types/native-embed-events.d.ts +0 -7
- package/dist/types-ts4.5/analytics/types/ncs-session-step-events.d.ts +0 -11
- package/dist/types-ts4.5/analytics/types/nested-table-events.d.ts +0 -4
- package/dist/types-ts4.5/analytics/types/node-events.d.ts +0 -113
- package/dist/types-ts4.5/analytics/types/offline-editing-event.d.ts +0 -14
- package/dist/types-ts4.5/analytics/types/paste-events.d.ts +0 -44
- package/dist/types-ts4.5/analytics/types/performance-report.d.ts +0 -24
- package/dist/types-ts4.5/analytics/types/referentiality-events.d.ts +0 -52
- package/dist/types-ts4.5/analytics/types/selection-events.d.ts +0 -21
- package/dist/types-ts4.5/analytics/types/selection-extension-events.d.ts +0 -18
- package/dist/types-ts4.5/analytics/types/selection-toolbar-events.d.ts +0 -9
- package/dist/types-ts4.5/analytics/types/smart-links.d.ts +0 -14
- package/dist/types-ts4.5/analytics/types/substitute-events.d.ts +0 -26
- package/dist/types-ts4.5/analytics/types/sync-block-events.d.ts +0 -88
- package/dist/types-ts4.5/analytics/types/table-events.d.ts +0 -259
- package/dist/types-ts4.5/analytics/types/telepointer-events.d.ts +0 -5
- package/dist/types-ts4.5/analytics/types/toolbar-button.d.ts +0 -26
- package/dist/types-ts4.5/analytics/types/type-ahead.d.ts +0 -56
- package/dist/types-ts4.5/analytics/types/upload-media-events.d.ts +0 -13
- package/dist/types-ts4.5/analytics/types/utils.d.ts +0 -56
- package/dist/types-ts4.5/analytics/types/view-events.d.ts +0 -31
- package/dist/types-ts4.5/analytics/utils.d.ts +0 -3
- package/dist/types-ts4.5/annotation/index.d.ts +0 -188
- package/dist/types-ts4.5/annotation/manager.d.ts +0 -33
- package/dist/types-ts4.5/block-menu/SCROLL_TO_BLOCK_TIMING.d.ts +0 -14
- package/dist/types-ts4.5/block-menu/block-link.d.ts +0 -37
- package/dist/types-ts4.5/block-menu/expandElement.d.ts +0 -10
- package/dist/types-ts4.5/block-menu/getLocalIdSelector.d.ts +0 -1
- package/dist/types-ts4.5/block-menu/index.d.ts +0 -13
- package/dist/types-ts4.5/block-menu/isExpandCollapsed.d.ts +0 -11
- package/dist/types-ts4.5/block-menu/key-deprecated.d.ts +0 -183
- package/dist/types-ts4.5/block-menu/key.d.ts +0 -143
- package/dist/types-ts4.5/block-menu/messages.d.ts +0 -21
- package/dist/types-ts4.5/block-menu/placement.d.ts +0 -7
- package/dist/types-ts4.5/block-menu/rank-deprecated.d.ts +0 -40
- package/dist/types-ts4.5/block-menu/rank.d.ts +0 -17
- package/dist/types-ts4.5/block-menu/scroll-to-block-utils.d.ts +0 -62
- package/dist/types-ts4.5/block-type/index.d.ts +0 -1
- package/dist/types-ts4.5/card/LinkToolbarButtonGroup.d.ts +0 -16
- package/dist/types-ts4.5/card/MediaAndEmbedsToolbar/index.d.ts +0 -26
- package/dist/types-ts4.5/card/addLinkMetadata.d.ts +0 -8
- package/dist/types-ts4.5/card/appearancePropsMap.d.ts +0 -47
- package/dist/types-ts4.5/card/cardOptions.d.ts +0 -117
- package/dist/types-ts4.5/card/getLinkMetadataFromTransaction.d.ts +0 -3
- package/dist/types-ts4.5/card/index.d.ts +0 -16
- package/dist/types-ts4.5/card/link-toolbar-button-group-options.d.ts +0 -6
- package/dist/types-ts4.5/card/link-toolbar-dropdown-options.d.ts +0 -4
- package/dist/types-ts4.5/card/types.d.ts +0 -108
- package/dist/types-ts4.5/card/ui/assets/card.d.ts +0 -4
- package/dist/types-ts4.5/card/ui/assets/embed.d.ts +0 -4
- package/dist/types-ts4.5/card/ui/assets/inline.d.ts +0 -4
- package/dist/types-ts4.5/card/ui/assets/url.d.ts +0 -4
- package/dist/types-ts4.5/card/utils.d.ts +0 -13
- package/dist/types-ts4.5/clipboard/index.d.ts +0 -9
- package/dist/types-ts4.5/code-block/index.d.ts +0 -38
- package/dist/types-ts4.5/collab/index.d.ts +0 -516
- package/dist/types-ts4.5/commands/index.d.ts +0 -44
- package/dist/types-ts4.5/commands/insert-block.d.ts +0 -5
- package/dist/types-ts4.5/compiled-migration/withCompiledMigration.d.ts +0 -65
- package/dist/types-ts4.5/copy-button/index.d.ts +0 -9
- package/dist/types-ts4.5/core-utils/document-logger.d.ts +0 -5
- package/dist/types-ts4.5/core-utils/index.d.ts +0 -4
- package/dist/types-ts4.5/core-utils/inside.d.ts +0 -2
- package/dist/types-ts4.5/core-utils/is-ssr-streaming.d.ts +0 -10
- package/dist/types-ts4.5/core-utils/is-ssr.d.ts +0 -1
- package/dist/types-ts4.5/doc-utils/editor-use-only.d.ts +0 -5
- package/dist/types-ts4.5/doc-utils/index.d.ts +0 -1
- package/dist/types-ts4.5/editor-analytics/index.d.ts +0 -1
- package/dist/types-ts4.5/editor-analytics/withAnalytics.d.ts +0 -44
- package/dist/types-ts4.5/element-browser/ElementBrowser.d.ts +0 -43
- package/dist/types-ts4.5/element-browser/components/CategoryList.d.ts +0 -18
- package/dist/types-ts4.5/element-browser/components/ElementBrowserLoader.d.ts +0 -9
- package/dist/types-ts4.5/element-browser/components/ElementList/ElementList.d.ts +0 -45
- package/dist/types-ts4.5/element-browser/components/ElementList/EmptyState.d.ts +0 -6
- package/dist/types-ts4.5/element-browser/components/ElementList/NotFoundIllustration.d.ts +0 -1
- package/dist/types-ts4.5/element-browser/components/ElementList/cellSizeAndPositionGetter.d.ts +0 -7
- package/dist/types-ts4.5/element-browser/components/ElementList/getColumnCount.d.ts +0 -1
- package/dist/types-ts4.5/element-browser/components/ElementList/utils.d.ts +0 -11
- package/dist/types-ts4.5/element-browser/components/ElementSearch.d.ts +0 -24
- package/dist/types-ts4.5/element-browser/components/StatelessElementBrowser.d.ts +0 -51
- package/dist/types-ts4.5/element-browser/components/ViewMore.d.ts +0 -4
- package/dist/types-ts4.5/element-browser/constants.d.ts +0 -22
- package/dist/types-ts4.5/element-browser/hooks/ACTIONS.d.ts +0 -5
- package/dist/types-ts4.5/element-browser/hooks/ensureSafeIndex.d.ts +0 -1
- package/dist/types-ts4.5/element-browser/hooks/use-container-width.d.ts +0 -36
- package/dist/types-ts4.5/element-browser/hooks/use-focus.d.ts +0 -35
- package/dist/types-ts4.5/element-browser/hooks/use-select-and-focus-on-arrow-navigation.d.ts +0 -33
- package/dist/types-ts4.5/element-browser/index.d.ts +0 -2
- package/dist/types-ts4.5/element-browser/messages.d.ts +0 -7
- package/dist/types-ts4.5/element-browser/types.d.ts +0 -12
- package/dist/types-ts4.5/emoji/index.d.ts +0 -6
- package/dist/types-ts4.5/emoji/messages.d.ts +0 -7
- package/dist/types-ts4.5/event-dispatcher/index.d.ts +0 -21
- package/dist/types-ts4.5/expand/index.d.ts +0 -6
- package/dist/types-ts4.5/experiences/EXPERIENCE_STATE_TRANSITIONS.d.ts +0 -5
- package/dist/types-ts4.5/experiences/Experience.d.ts +0 -178
- package/dist/types-ts4.5/experiences/ExperienceCheck.d.ts +0 -13
- package/dist/types-ts4.5/experiences/ExperienceCheckComposite.d.ts +0 -12
- package/dist/types-ts4.5/experiences/ExperienceCheckDomMutation.d.ts +0 -71
- package/dist/types-ts4.5/experiences/ExperienceCheckPopupMutation.d.ts +0 -70
- package/dist/types-ts4.5/experiences/ExperienceCheckTimeout.d.ts +0 -28
- package/dist/types-ts4.5/experiences/consts.d.ts +0 -50
- package/dist/types-ts4.5/experiences/containsPopupWithNestedElement.d.ts +0 -8
- package/dist/types-ts4.5/experiences/experience-state.d.ts +0 -9
- package/dist/types-ts4.5/experiences/experience-utils.d.ts +0 -5
- package/dist/types-ts4.5/experiences/getNodeQuery.d.ts +0 -7
- package/dist/types-ts4.5/experiences/getPopupContainerFromEditorView.d.ts +0 -7
- package/dist/types-ts4.5/experiences/getSelectionAncestorDOM.d.ts +0 -15
- package/dist/types-ts4.5/experiences/index.d.ts +0 -14
- package/dist/types-ts4.5/experiences/popupWithNestedElement.d.ts +0 -8
- package/dist/types-ts4.5/experiences/types.d.ts +0 -13
- package/dist/types-ts4.5/extensibility/Extension/Extension/extension-utils.d.ts +0 -2
- package/dist/types-ts4.5/extensibility/Extension/Extension/index.d.ts +0 -32
- package/dist/types-ts4.5/extensibility/Extension/Extension/styles.d.ts +0 -8
- package/dist/types-ts4.5/extensibility/Extension/InlineExtension/index.d.ts +0 -20
- package/dist/types-ts4.5/extensibility/Extension/InlineExtension/styles.d.ts +0 -2
- package/dist/types-ts4.5/extensibility/Extension/Lozenge/EditToggle.d.ts +0 -15
- package/dist/types-ts4.5/extensibility/Extension/Lozenge/ExtensionLabel.d.ts +0 -23
- package/dist/types-ts4.5/extensibility/Extension/Lozenge/LozengeComponent.d.ts +0 -30
- package/dist/types-ts4.5/extensibility/Extension/Lozenge/index.d.ts +0 -34
- package/dist/types-ts4.5/extensibility/Extension/styles.d.ts +0 -6
- package/dist/types-ts4.5/extensibility/Extension.d.ts +0 -34
- package/dist/types-ts4.5/extensibility/ExtensionComponent.d.ts +0 -40
- package/dist/types-ts4.5/extensibility/ExtensionNodeWrapper.d.ts +0 -25
- package/dist/types-ts4.5/extensibility/ExtensionSSRReactContextsProvider.d.ts +0 -8
- package/dist/types-ts4.5/extensibility/MultiBodiedExtension/action-api.d.ts +0 -16
- package/dist/types-ts4.5/extensibility/MultiBodiedExtension/index.d.ts +0 -33
- package/dist/types-ts4.5/extensibility/MultiBodiedExtension/styles.d.ts +0 -5
- package/dist/types-ts4.5/extensibility/MultiBodiedExtension/utils.d.ts +0 -6
- package/dist/types-ts4.5/extensibility/extensionNodeView.d.ts +0 -89
- package/dist/types-ts4.5/extensibility/index.d.ts +0 -5
- package/dist/types-ts4.5/extensibility/types.d.ts +0 -13
- package/dist/types-ts4.5/extensibility/utils/should-extension-breakout.d.ts +0 -8
- package/dist/types-ts4.5/extensions/UnknownMacroPlaceholder.d.ts +0 -7
- package/dist/types-ts4.5/extensions/buildExtensionKeyAndNodeKey.d.ts +0 -2
- package/dist/types-ts4.5/extensions/buildMenuItem.d.ts +0 -4
- package/dist/types-ts4.5/extensions/combine-extension-providers.d.ts +0 -7
- package/dist/types-ts4.5/extensions/configPanelMessages.d.ts +0 -97
- package/dist/types-ts4.5/extensions/createAutoConverterRunner.d.ts +0 -2
- package/dist/types-ts4.5/extensions/default-extension-provider.d.ts +0 -23
- package/dist/types-ts4.5/extensions/extension-fields-helpers.d.ts +0 -10
- package/dist/types-ts4.5/extensions/extension-handlers.d.ts +0 -22
- package/dist/types-ts4.5/extensions/getAutoConvertPatternsFromModule.d.ts +0 -3
- package/dist/types-ts4.5/extensions/getExtensionManifest.d.ts +0 -3
- package/dist/types-ts4.5/extensions/groupBy.d.ts +0 -3
- package/dist/types-ts4.5/extensions/manifest-helpers.d.ts +0 -13
- package/dist/types-ts4.5/extensions/messages.d.ts +0 -58
- package/dist/types-ts4.5/extensions/module-helpers.d.ts +0 -14
- package/dist/types-ts4.5/extensions/resolveImportSync.d.ts +0 -3
- package/dist/types-ts4.5/extensions/types/extension-handler.d.ts +0 -61
- package/dist/types-ts4.5/extensions/types/extension-manifest-common.d.ts +0 -8
- package/dist/types-ts4.5/extensions/types/extension-manifest-toolbar-item.d.ts +0 -62
- package/dist/types-ts4.5/extensions/types/extension-manifest.d.ts +0 -119
- package/dist/types-ts4.5/extensions/types/extension-parameters.d.ts +0 -5
- package/dist/types-ts4.5/extensions/types/extension-provider.d.ts +0 -10
- package/dist/types-ts4.5/extensions/types/field-definitions.d.ts +0 -172
- package/dist/types-ts4.5/extensions/types/utils.d.ts +0 -22
- package/dist/types-ts4.5/extensions.d.ts +0 -20
- package/dist/types-ts4.5/floating-toolbar/DropdownMenuExtensionItems.d.ts +0 -25
- package/dist/types-ts4.5/floating-toolbar/DropdownMenuItem.d.ts +0 -39
- package/dist/types-ts4.5/floating-toolbar/DropdownSeparator.d.ts +0 -6
- package/dist/types-ts4.5/floating-toolbar/index.d.ts +0 -11
- package/dist/types-ts4.5/floating-toolbar/menuItemDimensions.d.ts +0 -4
- package/dist/types-ts4.5/floating-toolbar/messages.d.ts +0 -7
- package/dist/types-ts4.5/getEnabledFeatureFlagKeys.d.ts +0 -7
- package/dist/types-ts4.5/guideline/constants.d.ts +0 -2
- package/dist/types-ts4.5/guideline/createGuidesFromLengths.d.ts +0 -20
- package/dist/types-ts4.5/guideline/defaultGuideline.d.ts +0 -2
- package/dist/types-ts4.5/guideline/dynamicGuideline.d.ts +0 -6
- package/dist/types-ts4.5/guideline/findClosestSnap.d.ts +0 -9
- package/dist/types-ts4.5/guideline/fixedGuideline.d.ts +0 -13
- package/dist/types-ts4.5/guideline/getContainerWidthOrFullEditorWidth.d.ts +0 -5
- package/dist/types-ts4.5/guideline/getGuidelineSnaps.d.ts +0 -12
- package/dist/types-ts4.5/guideline/getGuidelineTypeFromKey.d.ts +0 -5
- package/dist/types-ts4.5/guideline/getMediaSingleDimensions.d.ts +0 -14
- package/dist/types-ts4.5/guideline/getRelativeGuideSnaps.d.ts +0 -2
- package/dist/types-ts4.5/guideline/index.d.ts +0 -15
- package/dist/types-ts4.5/guideline/isNumber.d.ts +0 -1
- package/dist/types-ts4.5/guideline/isRange.d.ts +0 -2
- package/dist/types-ts4.5/guideline/relativeGuideline.d.ts +0 -8
- package/dist/types-ts4.5/guideline/snapping.d.ts +0 -2
- package/dist/types-ts4.5/guideline/types.d.ts +0 -68
- package/dist/types-ts4.5/guideline/updateGuideline.d.ts +0 -5
- package/dist/types-ts4.5/guideline/utils.d.ts +0 -7
- package/dist/types-ts4.5/hooks/index.d.ts +0 -4
- package/dist/types-ts4.5/hooks/useConstructor.d.ts +0 -9
- package/dist/types-ts4.5/hooks/usePluginStateEffect.d.ts +0 -55
- package/dist/types-ts4.5/hooks/usePreviousState.d.ts +0 -11
- package/dist/types-ts4.5/hooks/useSharedPluginState.d.ts +0 -75
- package/dist/types-ts4.5/hooks/useSharedPluginStateSelector/index.d.ts +0 -1
- package/dist/types-ts4.5/hooks/useSharedPluginStateSelector/useSharedPluginStateSelector.d.ts +0 -81
- package/dist/types-ts4.5/hooks/useSharedPluginStateWithSelector.d.ts +0 -41
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -8
- package/dist/types-ts4.5/i18n/da.d.ts +0 -8
- package/dist/types-ts4.5/i18n/de.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -8
- package/dist/types-ts4.5/i18n/es.d.ts +0 -8
- package/dist/types-ts4.5/i18n/et.d.ts +0 -8
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -8
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/hr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -8
- package/dist/types-ts4.5/i18n/index.d.ts +0 -33
- package/dist/types-ts4.5/i18n/it.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -8
- package/dist/types-ts4.5/i18n/languages.d.ts +0 -36
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -8
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sk.d.ts +0 -886
- package/dist/types-ts4.5/i18n/sl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sr.d.ts +0 -888
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -8
- package/dist/types-ts4.5/i18n/th.d.ts +0 -8
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -8
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -8
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -8
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -8
- package/dist/types-ts4.5/icons/index.d.ts +0 -12
- package/dist/types-ts4.5/icons/shared/BorderIcon.d.ts +0 -4
- package/dist/types-ts4.5/icons/shared/DynamicStrokeIconDecoration.d.ts +0 -12
- package/dist/types-ts4.5/icons/shared/PanelErrorIcon.d.ts +0 -3
- package/dist/types-ts4.5/icons/shared/PanelInfoIcon.d.ts +0 -3
- package/dist/types-ts4.5/icons/shared/PanelNoteIcon.d.ts +0 -2
- package/dist/types-ts4.5/icons/shared/PanelSuccessIcon.d.ts +0 -3
- package/dist/types-ts4.5/icons/shared/PanelWarningIcon.d.ts +0 -3
- package/dist/types-ts4.5/icons/shared/SteppedRainbowIconDecoration.d.ts +0 -14
- package/dist/types-ts4.5/icons/shared/table.d.ts +0 -2
- package/dist/types-ts4.5/indentation/index.d.ts +0 -1
- package/dist/types-ts4.5/index.d.ts +0 -1
- package/dist/types-ts4.5/insert/index.d.ts +0 -38
- package/dist/types-ts4.5/keymaps/consts.d.ts +0 -12
- package/dist/types-ts4.5/keymaps/index.d.ts +0 -163
- package/dist/types-ts4.5/keymaps/keymap.d.ts +0 -11
- package/dist/types-ts4.5/lazy-node-view/css-helper.d.ts +0 -6
- package/dist/types-ts4.5/lazy-node-view/index.d.ts +0 -83
- package/dist/types-ts4.5/lazy-node-view/lazy-scheduler.d.ts +0 -2
- package/dist/types-ts4.5/lazy-node-view/makeNodePlaceholderId.d.ts +0 -1
- package/dist/types-ts4.5/lazy-node-view/node-view.d.ts +0 -17
- package/dist/types-ts4.5/lazy-node-view/types.d.ts +0 -17
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/Dropdown.d.ts +0 -16
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/StyledButton.d.ts +0 -9
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/handleNavigation.d.ts +0 -12
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/index.d.ts +0 -18
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/useLinkOverlayAnalyticsEvents.d.ts +0 -17
- package/dist/types-ts4.5/link/InsertStatus.d.ts +0 -5
- package/dist/types-ts4.5/link/LinkAction.d.ts +0 -9
- package/dist/types-ts4.5/link/LinkPicker/EditorLinkPicker/index.d.ts +0 -23
- package/dist/types-ts4.5/link/LinkPicker/EditorLinkPicker/useEscapeClickaway.d.ts +0 -6
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +0 -91
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/filterUniqueItems.d.ts +0 -1
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +0 -25
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/messages.d.ts +0 -42
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/sha1.d.ts +0 -1
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/utilMessages.d.ts +0 -37
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/utils.d.ts +0 -8
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/wordCount.d.ts +0 -1
- package/dist/types-ts4.5/link/LinkSearch/LinkSearchList.d.ts +0 -27
- package/dist/types-ts4.5/link/LinkSearch/LinkSearchListItem.d.ts +0 -30
- package/dist/types-ts4.5/link/LinkSearch/ToolbarComponents.d.ts +0 -5
- package/dist/types-ts4.5/link/LinkSearch/index.d.ts +0 -6
- package/dist/types-ts4.5/link/LinkSearch/listItemAlts.d.ts +0 -2
- package/dist/types-ts4.5/link/LinkSearch/transformTimeStamp.d.ts +0 -10
- package/dist/types-ts4.5/link/LinkSearch/types.d.ts +0 -49
- package/dist/types-ts4.5/link/LinkSearch/withActivityProvider.d.ts +0 -11
- package/dist/types-ts4.5/link/constants.d.ts +0 -1
- package/dist/types-ts4.5/link/index.d.ts +0 -22
- package/dist/types-ts4.5/link/isLinkAtPos.d.ts +0 -2
- package/dist/types-ts4.5/link/isTextAtPos.d.ts +0 -4
- package/dist/types-ts4.5/link/types.d.ts +0 -35
- package/dist/types-ts4.5/link/utils.d.ts +0 -9
- package/dist/types-ts4.5/lists/JoinDirection.d.ts +0 -4
- package/dist/types-ts4.5/lists/analytics.d.ts +0 -4
- package/dist/types-ts4.5/lists/block-mark.d.ts +0 -9
- package/dist/types-ts4.5/lists/build-replacement-fragment.d.ts +0 -35
- package/dist/types-ts4.5/lists/countListItemsInSelection.d.ts +0 -2
- package/dist/types-ts4.5/lists/flatten-list.d.ts +0 -47
- package/dist/types-ts4.5/lists/indentation.d.ts +0 -5
- package/dist/types-ts4.5/lists/index.d.ts +0 -19
- package/dist/types-ts4.5/lists/isListNodeValidContent.d.ts +0 -2
- package/dist/types-ts4.5/lists/messages.d.ts +0 -27
- package/dist/types-ts4.5/lists/narrow-replacement-range.d.ts +0 -19
- package/dist/types-ts4.5/lists/node.d.ts +0 -16
- package/dist/types-ts4.5/lists/numberNestedLists.d.ts +0 -2
- package/dist/types-ts4.5/lists/replace-content.d.ts +0 -8
- package/dist/types-ts4.5/lists/restore-selection.d.ts +0 -41
- package/dist/types-ts4.5/lists/selection.d.ts +0 -12
- package/dist/types-ts4.5/lists/wrapTaskListIntoListAbove.d.ts +0 -2
- package/dist/types-ts4.5/mark/anyMarkActive.d.ts +0 -6
- package/dist/types-ts4.5/mark/commands.d.ts +0 -17
- package/dist/types-ts4.5/mark/entireSelectionContainsMark.d.ts +0 -2
- package/dist/types-ts4.5/mark/filterChildrenBetween.d.ts +0 -5
- package/dist/types-ts4.5/mark/index.d.ts +0 -8
- package/dist/types-ts4.5/mark/isMarkAllowedInRange.d.ts +0 -3
- package/dist/types-ts4.5/mark/isMarkExcluded.d.ts +0 -2
- package/dist/types-ts4.5/mark/removeMark.d.ts +0 -6
- package/dist/types-ts4.5/mark/text-formatting.d.ts +0 -18
- package/dist/types-ts4.5/media/index.d.ts +0 -11
- package/dist/types-ts4.5/media/messages/altText.d.ts +0 -42
- package/dist/types-ts4.5/media/messages/caption.d.ts +0 -12
- package/dist/types-ts4.5/media/messages/comments.d.ts +0 -17
- package/dist/types-ts4.5/media/messages/dropPlaceholder.d.ts +0 -7
- package/dist/types-ts4.5/media/messages/externalMedia.d.ts +0 -7
- package/dist/types-ts4.5/media/messages/imageBorder.d.ts +0 -52
- package/dist/types-ts4.5/media/messages/mediaLinkingToolbar.d.ts +0 -7
- package/dist/types-ts4.5/media/messages/mediaResizeAnnouncerMess.d.ts +0 -22
- package/dist/types-ts4.5/media/messages/nodeviews.d.ts +0 -7
- package/dist/types-ts4.5/media/messages/pixelEntry.d.ts +0 -62
- package/dist/types-ts4.5/media/messages/toolbarMedia.d.ts +0 -7
- package/dist/types-ts4.5/media-inline/constants.d.ts +0 -25
- package/dist/types-ts4.5/media-inline/index.d.ts +0 -7
- package/dist/types-ts4.5/media-inline/inline-image-card.d.ts +0 -15
- package/dist/types-ts4.5/media-inline/inline-image-wrapper.d.ts +0 -19
- package/dist/types-ts4.5/media-inline/media-inline-image-card.d.ts +0 -20
- package/dist/types-ts4.5/media-inline/styles.d.ts +0 -15
- package/dist/types-ts4.5/media-inline/types.d.ts +0 -16
- package/dist/types-ts4.5/media-inline/utils.d.ts +0 -11
- package/dist/types-ts4.5/media-inline/views/constants.d.ts +0 -2
- package/dist/types-ts4.5/media-inline/views/error-view.d.ts +0 -13
- package/dist/types-ts4.5/media-inline/views/frame.d.ts +0 -12
- package/dist/types-ts4.5/media-inline/views/icon-wrapper.d.ts +0 -10
- package/dist/types-ts4.5/media-inline/views/loading-view.d.ts +0 -13
- package/dist/types-ts4.5/media-inline/views/wrapper.d.ts +0 -2
- package/dist/types-ts4.5/media-single/CommentBadge.d.ts +0 -17
- package/dist/types-ts4.5/media-single/CommentBadgeNext.d.ts +0 -10
- package/dist/types-ts4.5/media-single/ExternalImageBadge.d.ts +0 -9
- package/dist/types-ts4.5/media-single/MediaBadges.d.ts +0 -14
- package/dist/types-ts4.5/media-single/calcMediaSingleMaxWidth.d.ts +0 -6
- package/dist/types-ts4.5/media-single/calcMinWidth.d.ts +0 -6
- package/dist/types-ts4.5/media-single/calculateOffsetLeft.d.ts +0 -1
- package/dist/types-ts4.5/media-single/constants.d.ts +0 -23
- package/dist/types-ts4.5/media-single/currentMediaNodeWithPos.d.ts +0 -11
- package/dist/types-ts4.5/media-single/getBadgeSize.d.ts +0 -1
- package/dist/types-ts4.5/media-single/getMaxWidthForNestedNode.d.ts +0 -7
- package/dist/types-ts4.5/media-single/getMediaSingleInitialWidth.d.ts +0 -8
- package/dist/types-ts4.5/media-single/getMediaSinglePixelWidth.d.ts +0 -13
- package/dist/types-ts4.5/media-single/index.d.ts +0 -15
- package/dist/types-ts4.5/media-single/roundToNearest.d.ts +0 -7
- package/dist/types-ts4.5/media-single/utils.d.ts +0 -54
- package/dist/types-ts4.5/mention.d.ts +0 -3
- package/dist/types-ts4.5/messages/alignment.d.ts +0 -22
- package/dist/types-ts4.5/messages/annotation.d.ts +0 -27
- package/dist/types-ts4.5/messages/avatar-group.d.ts +0 -12
- package/dist/types-ts4.5/messages/block-controls.d.ts +0 -57
- package/dist/types-ts4.5/messages/block-menu.d.ts +0 -117
- package/dist/types-ts4.5/messages/block-type.d.ts +0 -182
- package/dist/types-ts4.5/messages/breakout.d.ts +0 -42
- package/dist/types-ts4.5/messages/card.d.ts +0 -187
- package/dist/types-ts4.5/messages/codeBidiWarning.d.ts +0 -11
- package/dist/types-ts4.5/messages/codeBlock.d.ts +0 -12
- package/dist/types-ts4.5/messages/codeBlockButton.d.ts +0 -97
- package/dist/types-ts4.5/messages/color-picker-button.d.ts +0 -7
- package/dist/types-ts4.5/messages/company-hub-text-color.d.ts +0 -7
- package/dist/types-ts4.5/messages/context-panel.d.ts +0 -12
- package/dist/types-ts4.5/messages/date.d.ts +0 -22
- package/dist/types-ts4.5/messages/element-insert-side-panel.d.ts +0 -7
- package/dist/types-ts4.5/messages/find-replace.d.ts +0 -67
- package/dist/types-ts4.5/messages/full-page.d.ts +0 -17
- package/dist/types-ts4.5/messages/help-dialog.d.ts +0 -132
- package/dist/types-ts4.5/messages/highlight.d.ts +0 -27
- package/dist/types-ts4.5/messages/indentation.d.ts +0 -12
- package/dist/types-ts4.5/messages/index.d.ts +0 -211
- package/dist/types-ts4.5/messages/insert-block.d.ts +0 -267
- package/dist/types-ts4.5/messages/layout.d.ts +0 -142
- package/dist/types-ts4.5/messages/limited-mode.d.ts +0 -17
- package/dist/types-ts4.5/messages/link-toolbar.d.ts +0 -77
- package/dist/types-ts4.5/messages/link.d.ts +0 -12
- package/dist/types-ts4.5/messages/list.d.ts +0 -37
- package/dist/types-ts4.5/messages/markdown-mode.d.ts +0 -121
- package/dist/types-ts4.5/messages/media-and-embed-toolbar.d.ts +0 -32
- package/dist/types-ts4.5/messages/media-editing.d.ts +0 -77
- package/dist/types-ts4.5/messages/media-inline-card.d.ts +0 -12
- package/dist/types-ts4.5/messages/media-insert.d.ts +0 -87
- package/dist/types-ts4.5/messages/mentions.d.ts +0 -52
- package/dist/types-ts4.5/messages/native-embed-toolbar.d.ts +0 -27
- package/dist/types-ts4.5/messages/panel.d.ts +0 -47
- package/dist/types-ts4.5/messages/paste-options-toolbar.d.ts +0 -47
- package/dist/types-ts4.5/messages/placeholder-text.d.ts +0 -47
- package/dist/types-ts4.5/messages/roleDescription.d.ts +0 -7
- package/dist/types-ts4.5/messages/selection-extension.d.ts +0 -12
- package/dist/types-ts4.5/messages/selection-toolbar.d.ts +0 -32
- package/dist/types-ts4.5/messages/status.d.ts +0 -27
- package/dist/types-ts4.5/messages/syncBlock.d.ts +0 -472
- package/dist/types-ts4.5/messages/table.d.ts +0 -397
- package/dist/types-ts4.5/messages/tasks-and-decsisions.d.ts +0 -57
- package/dist/types-ts4.5/messages/text-color.d.ts +0 -17
- package/dist/types-ts4.5/messages/toolbar.d.ts +0 -117
- package/dist/types-ts4.5/messages/track-changes.d.ts +0 -12
- package/dist/types-ts4.5/messages/undo-redo.d.ts +0 -12
- package/dist/types-ts4.5/messages/unsupportedContent.d.ts +0 -17
- package/dist/types-ts4.5/monitoring/environment.d.ts +0 -1
- package/dist/types-ts4.5/monitoring/error.d.ts +0 -4
- package/dist/types-ts4.5/monitoring/index.d.ts +0 -1
- package/dist/types-ts4.5/monitoring/normalise-sentry-breadcrumbs.d.ts +0 -8
- package/dist/types-ts4.5/ncs-step-metrics/index.d.ts +0 -5
- package/dist/types-ts4.5/nesting/getParentOfTypeCount.d.ts +0 -2
- package/dist/types-ts4.5/nesting/getPositionAfterTopParentNodeOfType.d.ts +0 -2
- package/dist/types-ts4.5/nesting/isNestedTablesSupported.d.ts +0 -2
- package/dist/types-ts4.5/nesting/isPanelNestingTableSupported.d.ts +0 -2
- package/dist/types-ts4.5/nesting/isSelectionTableNestedInTable.d.ts +0 -2
- package/dist/types-ts4.5/nesting/utilities.d.ts +0 -5
- package/dist/types-ts4.5/node-anchor/dynamic-bit-array.d.ts +0 -14
- package/dist/types-ts4.5/node-anchor/index.d.ts +0 -1
- package/dist/types-ts4.5/node-anchor/limited-mode-document-thresholds.d.ts +0 -5
- package/dist/types-ts4.5/node-anchor/node-anchor-provider.d.ts +0 -18
- package/dist/types-ts4.5/node-selection/index.d.ts +0 -17
- package/dist/types-ts4.5/node-visibility/node-visibility-manager.d.ts +0 -29
- package/dist/types-ts4.5/node-width/index.d.ts +0 -16
- package/dist/types-ts4.5/normalize-feature-flags.d.ts +0 -20
- package/dist/types-ts4.5/panel.d.ts +0 -1
- package/dist/types-ts4.5/paste/checkClipboardTypes.d.ts +0 -1
- package/dist/types-ts4.5/paste/clipboard.d.ts +0 -2
- package/dist/types-ts4.5/paste/index.d.ts +0 -2
- package/dist/types-ts4.5/paste/md-plugins/ignore-list-heading-md-plugin.d.ts +0 -2
- package/dist/types-ts4.5/paste/md-plugins/linkify-md-plugin.d.ts +0 -2
- package/dist/types-ts4.5/paste/md-plugins/newline-md-plugin.d.ts +0 -2
- package/dist/types-ts4.5/paste/md-plugins/paragraph-md-plugin.d.ts +0 -2
- package/dist/types-ts4.5/paste/md.d.ts +0 -2
- package/dist/types-ts4.5/performance-measures/index.d.ts +0 -4
- package/dist/types-ts4.5/performance-ssr-measures/RenderMarker.d.ts +0 -5
- package/dist/types-ts4.5/performance-ssr-measures/SSRRenderMeasure.d.ts +0 -115
- package/dist/types-ts4.5/performance-ssr-measures/index.d.ts +0 -2
- package/dist/types-ts4.5/performance-ssr-measures/profileSSROperation.d.ts +0 -43
- package/dist/types-ts4.5/portal/PortalBucket.d.ts +0 -18
- package/dist/types-ts4.5/portal/PortalManager.d.ts +0 -69
- package/dist/types-ts4.5/portal/PortalRenderWrapperInner.d.ts +0 -9
- package/dist/types-ts4.5/portal/common.d.ts +0 -36
- package/dist/types-ts4.5/portal/createPortalRendererComponent.d.ts +0 -3
- package/dist/types-ts4.5/portal/index.d.ts +0 -5
- package/dist/types-ts4.5/portal/usePortalProvider.d.ts +0 -8
- package/dist/types-ts4.5/preset/PassiveTransaction.d.ts +0 -8
- package/dist/types-ts4.5/preset/PluginsData.d.ts +0 -2
- package/dist/types-ts4.5/preset/builder.d.ts +0 -645
- package/dist/types-ts4.5/preset/core-plugin/index.d.ts +0 -6
- package/dist/types-ts4.5/preset/core-plugin/pm-plugins/appearance-plugin.d.ts +0 -9
- package/dist/types-ts4.5/preset/core-plugin/requestDocument.d.ts +0 -12
- package/dist/types-ts4.5/preset/editor-commands.d.ts +0 -4
- package/dist/types-ts4.5/preset/index.d.ts +0 -5
- package/dist/types-ts4.5/preset/plugin-injection-api.d.ts +0 -68
- package/dist/types-ts4.5/prosemirror-dom-metadata/index.d.ts +0 -20
- package/dist/types-ts4.5/prosemirror-node-view.d.ts +0 -0
- package/dist/types-ts4.5/provider-factory/autoformatting-provider.d.ts +0 -9
- package/dist/types-ts4.5/provider-factory/card-provider.d.ts +0 -6
- package/dist/types-ts4.5/provider-factory/context-identifier-provider.d.ts +0 -6
- package/dist/types-ts4.5/provider-factory/context.d.ts +0 -7
- package/dist/types-ts4.5/provider-factory/image-upload-provider.d.ts +0 -7
- package/dist/types-ts4.5/provider-factory/macro-provider.d.ts +0 -25
- package/dist/types-ts4.5/provider-factory/media-provider.d.ts +0 -20
- package/dist/types-ts4.5/provider-factory/profile-card-provider.d.ts +0 -32
- package/dist/types-ts4.5/provider-factory/provider-factory.d.ts +0 -17
- package/dist/types-ts4.5/provider-factory/quick-insert-provider.d.ts +0 -29
- package/dist/types-ts4.5/provider-factory/search-provider.d.ts +0 -12
- package/dist/types-ts4.5/provider-factory/types.d.ts +0 -37
- package/dist/types-ts4.5/provider-factory/with-providers.d.ts +0 -20
- package/dist/types-ts4.5/provider-factory.d.ts +0 -14
- package/dist/types-ts4.5/provider-helpers/ResultStatus.d.ts +0 -4
- package/dist/types-ts4.5/provider-helpers/combine-providers.d.ts +0 -9
- package/dist/types-ts4.5/provider-helpers/index.d.ts +0 -1
- package/dist/types-ts4.5/provider-helpers/promise-helpers.d.ts +0 -23
- package/dist/types-ts4.5/provider-helpers/waitForFirstFulfilledPromise.d.ts +0 -6
- package/dist/types-ts4.5/quick-insert/assets/action.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/code.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/custom-panel.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/datasource-assets-objects.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/datasource-confluence-search.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/datasource-jira-issue.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/date.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/decision.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/divider.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/emoji.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/expand.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/fallback.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/feedback.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/five-column-layout.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/four-column-layout.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/heading1.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/heading2.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/heading3.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/heading4.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/heading5.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/heading6.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/images.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/index.d.ts +0 -39
- package/dist/types-ts4.5/quick-insert/assets/layout.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/link.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/list-number.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/list.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/loom.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/mention.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/one-column-layout.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/panel-error.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/panel-note.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/panel-success.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/panel-warning.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/panel.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/quote.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/status.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/syncBlock.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/three-column-layout.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/two-column-layout.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/index.d.ts +0 -5
- package/dist/types-ts4.5/quick-insert/messages.d.ts +0 -87
- package/dist/types-ts4.5/quick-insert/use-icon-themed.d.ts +0 -9
- package/dist/types-ts4.5/quick-insert/utils.d.ts +0 -14
- package/dist/types-ts4.5/rank.d.ts +0 -15
- package/dist/types-ts4.5/rankEditorPlugins.d.ts +0 -5
- package/dist/types-ts4.5/react-node-view/NodeViewContentHole.d.ts +0 -6
- package/dist/types-ts4.5/react-node-view/generateUniqueNodeKey.d.ts +0 -1
- package/dist/types-ts4.5/react-node-view/getInlineNodeViewProducer.d.ts +0 -37
- package/dist/types-ts4.5/react-node-view/index.d.ts +0 -57
- package/dist/types-ts4.5/react-node-view/onVisibleObserverFactory.d.ts +0 -9
- package/dist/types-ts4.5/react-node-view/types.d.ts +0 -12
- package/dist/types-ts4.5/resizer/BreakoutResizer.d.ts +0 -49
- package/dist/types-ts4.5/resizer/Resizer.d.ts +0 -81
- package/dist/types-ts4.5/resizer/ResizerBreakoutModeLabel.d.ts +0 -7
- package/dist/types-ts4.5/resizer/handleSides.d.ts +0 -1
- package/dist/types-ts4.5/resizer/imageAlignmentMap.d.ts +0 -4
- package/dist/types-ts4.5/resizer/index.d.ts +0 -5
- package/dist/types-ts4.5/resizer/snapTo.d.ts +0 -1
- package/dist/types-ts4.5/resizer/types.d.ts +0 -30
- package/dist/types-ts4.5/resizer/useBreakoutGuidelines.d.ts +0 -10
- package/dist/types-ts4.5/safe-plugin/index.d.ts +0 -26
- package/dist/types-ts4.5/selection/atTheBeginningOfDoc.d.ts +0 -2
- package/dist/types-ts4.5/selection/atTheEndOfDoc.d.ts +0 -2
- package/dist/types-ts4.5/selection/context-helpers.d.ts +0 -15
- package/dist/types-ts4.5/selection/endPositionOfParent.d.ts +0 -2
- package/dist/types-ts4.5/selection/expandSelectionBounds.d.ts +0 -11
- package/dist/types-ts4.5/selection/gap-cursor/Side.d.ts +0 -4
- package/dist/types-ts4.5/selection/gap-cursor/actions.d.ts +0 -11
- package/dist/types-ts4.5/selection/gap-cursor/selection.d.ts +0 -39
- package/dist/types-ts4.5/selection/gap-cursor/styles.d.ts +0 -3
- package/dist/types-ts4.5/selection/gap-cursor/utils/is-ignored.d.ts +0 -2
- package/dist/types-ts4.5/selection/gap-cursor/utils/is-valid-target-node.d.ts +0 -2
- package/dist/types-ts4.5/selection/gap-cursor/utils/setGapCursorSelection.d.ts +0 -3
- package/dist/types-ts4.5/selection/getFragmentsFromSelection.d.ts +0 -9
- package/dist/types-ts4.5/selection/getLocalIdsFromSelection.d.ts +0 -7
- package/dist/types-ts4.5/selection/index.d.ts +0 -44
- package/dist/types-ts4.5/selection/isMultiBlockRange.d.ts +0 -2
- package/dist/types-ts4.5/selection/isSelectionAtEndOfNode.d.ts +0 -2
- package/dist/types-ts4.5/selection/isSelectionAtStartOfNode.d.ts +0 -2
- package/dist/types-ts4.5/selection/startPositionOfParent.d.ts +0 -2
- package/dist/types-ts4.5/selection/types.d.ts +0 -33
- package/dist/types-ts4.5/selection/utils.d.ts +0 -87
- package/dist/types-ts4.5/selection-based-node-view/SelectionBasedNodeView.d.ts +0 -50
- package/dist/types-ts4.5/selection-based-node-view/index.d.ts +0 -1
- package/dist/types-ts4.5/styles/index.d.ts +0 -28
- package/dist/types-ts4.5/styles/shared/TableSharedCssClassName.d.ts +0 -28
- package/dist/types-ts4.5/styles/shared/annotation.d.ts +0 -13
- package/dist/types-ts4.5/styles/shared/blockquote.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/breakout.d.ts +0 -4
- package/dist/types-ts4.5/styles/shared/calcTableWidth.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/code-block.d.ts +0 -11
- package/dist/types-ts4.5/styles/shared/date.d.ts +0 -4
- package/dist/types-ts4.5/styles/shared/drag-handle.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/dropdown-menu.d.ts +0 -4
- package/dist/types-ts4.5/styles/shared/emoji.d.ts +0 -7
- package/dist/types-ts4.5/styles/shared/expand.d.ts +0 -21
- package/dist/types-ts4.5/styles/shared/extension.d.ts +0 -3
- package/dist/types-ts4.5/styles/shared/grid.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/headings.d.ts +0 -3
- package/dist/types-ts4.5/styles/shared/layout.d.ts +0 -3
- package/dist/types-ts4.5/styles/shared/lists.d.ts +0 -3
- package/dist/types-ts4.5/styles/shared/mapBackgroundColors.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/media-single.d.ts +0 -5
- package/dist/types-ts4.5/styles/shared/media.d.ts +0 -4
- package/dist/types-ts4.5/styles/shared/mention.d.ts +0 -3
- package/dist/types-ts4.5/styles/shared/native-anchor.d.ts +0 -6
- package/dist/types-ts4.5/styles/shared/panel.d.ts +0 -32
- package/dist/types-ts4.5/styles/shared/plugins.d.ts +0 -32
- package/dist/types-ts4.5/styles/shared/resizer.d.ts +0 -10
- package/dist/types-ts4.5/styles/shared/smart-card.d.ts +0 -7
- package/dist/types-ts4.5/styles/shared/smartCard.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/status.d.ts +0 -4
- package/dist/types-ts4.5/styles/shared/sync-block.d.ts +0 -26
- package/dist/types-ts4.5/styles/shared/table-cell-background-for-compiled.d.ts +0 -8
- package/dist/types-ts4.5/styles/shared/table.d.ts +0 -30
- package/dist/types-ts4.5/styles/shared/tableCell.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/task-decision.d.ts +0 -7
- package/dist/types-ts4.5/styles/shared/unsupported-content.d.ts +0 -4
- package/dist/types-ts4.5/sync-block/SyncBlockActionsContext.d.ts +0 -20
- package/dist/types-ts4.5/sync-block/SyncedBlocksSSRErrorCodeMap.d.ts +0 -23
- package/dist/types-ts4.5/sync-block/constants.d.ts +0 -4
- package/dist/types-ts4.5/sync-block/ssr_error.d.ts +0 -28
- package/dist/types-ts4.5/sync-block/types.d.ts +0 -4
- package/dist/types-ts4.5/sync-block.d.ts +0 -6
- package/dist/types-ts4.5/table/NewSortingIcon.d.ts +0 -11
- package/dist/types-ts4.5/table/SortingIcon.d.ts +0 -18
- package/dist/types-ts4.5/table/StatusClassNames.d.ts +0 -6
- package/dist/types-ts4.5/table/consts.d.ts +0 -1
- package/dist/types-ts4.5/table/content-mode.d.ts +0 -29
- package/dist/types-ts4.5/table/hasTableColumnBeenResized.d.ts +0 -8
- package/dist/types-ts4.5/table/index.d.ts +0 -5
- package/dist/types-ts4.5/table/messages.d.ts +0 -0
- package/dist/types-ts4.5/table/sortingAriaLabelMessages.d.ts +0 -27
- package/dist/types-ts4.5/table/sortingIconMessages.d.ts +0 -22
- package/dist/types-ts4.5/toolbar/EditorToolbarUIProvider.d.ts +0 -11
- package/dist/types-ts4.5/toolbar/context.d.ts +0 -20
- package/dist/types-ts4.5/toolbar/getInputMethodFromParentKeys.d.ts +0 -3
- package/dist/types-ts4.5/toolbar/index.d.ts +0 -8
- package/dist/types-ts4.5/toolbar/keys.d.ts +0 -726
- package/dist/types-ts4.5/toolbar/rank.d.ts +0 -334
- package/dist/types-ts4.5/toolbar/shouldShowPrimaryToolbar.d.ts +0 -10
- package/dist/types-ts4.5/toolbar/shouldShowSelectionToolbar.d.ts +0 -10
- package/dist/types-ts4.5/toolbar/types.d.ts +0 -29
- package/dist/types-ts4.5/toolbar/utils.d.ts +0 -3
- package/dist/types-ts4.5/toolbar-flag-check.d.ts +0 -1
- package/dist/types-ts4.5/transforms/code-block.d.ts +0 -4
- package/dist/types-ts4.5/transforms/convertBlockToInlineContent.d.ts +0 -5
- package/dist/types-ts4.5/transforms/createBlockTaskItem.d.ts +0 -7
- package/dist/types-ts4.5/transforms/decision-list.d.ts +0 -3
- package/dist/types-ts4.5/transforms/expand.d.ts +0 -5
- package/dist/types-ts4.5/transforms/extension.d.ts +0 -14
- package/dist/types-ts4.5/transforms/findCodeBlock.d.ts +0 -3
- package/dist/types-ts4.5/transforms/findExpand.d.ts +0 -3
- package/dist/types-ts4.5/transforms/getFormattedNode.d.ts +0 -6
- package/dist/types-ts4.5/transforms/getSupportedListTypes.d.ts +0 -2
- package/dist/types-ts4.5/transforms/index.d.ts +0 -25
- package/dist/types-ts4.5/transforms/isBulletOrOrderedList.d.ts +0 -2
- package/dist/types-ts4.5/transforms/isTaskList.d.ts +0 -2
- package/dist/types-ts4.5/transforms/layout.d.ts +0 -17
- package/dist/types-ts4.5/transforms/list-transforms.d.ts +0 -31
- package/dist/types-ts4.5/transforms/list-types.d.ts +0 -10
- package/dist/types-ts4.5/transforms/list-utils.d.ts +0 -6
- package/dist/types-ts4.5/transforms/sync-block.d.ts +0 -15
- package/dist/types-ts4.5/transforms/transformListStructure.d.ts +0 -6
- package/dist/types-ts4.5/transforms/transformSingleColumnLayout.d.ts +0 -3
- package/dist/types-ts4.5/transforms/transformSingleLineCodeBlockToCodeMark.d.ts +0 -3
- package/dist/types-ts4.5/transforms/transformSliceEnsureListItemParagraphFirst.d.ts +0 -9
- package/dist/types-ts4.5/transforms/transformSliceExpandToNestedExpand.d.ts +0 -2
- package/dist/types-ts4.5/transforms/transformSliceNestedExpandToExpand.d.ts +0 -3
- package/dist/types-ts4.5/transforms/transformSliceToRemoveMacroId.d.ts +0 -2
- package/dist/types-ts4.5/transforms/transformSliceToRemoveOpenExpand.d.ts +0 -3
- package/dist/types-ts4.5/transforms/transformSliceToRemoveOpenNestedExpand.d.ts +0 -3
- package/dist/types-ts4.5/transforms/transformTaskListToBlockNodes.d.ts +0 -3
- package/dist/types-ts4.5/type-ahead/index.d.ts +0 -12
- package/dist/types-ts4.5/type-ahead/messages.d.ts +0 -112
- package/dist/types-ts4.5/types/ToolbarSize.d.ts +0 -8
- package/dist/types-ts4.5/types/ToolbarWidths.d.ts +0 -11
- package/dist/types-ts4.5/types/ToolbarWidthsFullPage.d.ts +0 -11
- package/dist/types-ts4.5/types/ToolbarWidthsFullPageNext.d.ts +0 -7
- package/dist/types-ts4.5/types/ToolbarWidthsNext.d.ts +0 -7
- package/dist/types-ts4.5/types/annotation/emitter.d.ts +0 -40
- package/dist/types-ts4.5/types/annotation/index.d.ts +0 -148
- package/dist/types-ts4.5/types/block-controls.d.ts +0 -6
- package/dist/types-ts4.5/types/block-type.d.ts +0 -4
- package/dist/types-ts4.5/types/breakout.d.ts +0 -1
- package/dist/types-ts4.5/types/command.d.ts +0 -6
- package/dist/types-ts4.5/types/context-panel.d.ts +0 -3
- package/dist/types-ts4.5/types/copy-button.d.ts +0 -25
- package/dist/types-ts4.5/types/datasource.d.ts +0 -1
- package/dist/types-ts4.5/types/doc-builder.d.ts +0 -25
- package/dist/types-ts4.5/types/editor-actions.d.ts +0 -22
- package/dist/types-ts4.5/types/editor-appearance.d.ts +0 -2
- package/dist/types-ts4.5/types/editor-command.d.ts +0 -5
- package/dist/types-ts4.5/types/editor-container-width.d.ts +0 -19
- package/dist/types-ts4.5/types/editor-plugin.d.ts +0 -99
- package/dist/types-ts4.5/types/editor-react-context.d.ts +0 -6
- package/dist/types-ts4.5/types/empty-state-handler.d.ts +0 -6
- package/dist/types-ts4.5/types/feature-flags.d.ts +0 -255
- package/dist/types-ts4.5/types/feedback-dialog.d.ts +0 -10
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +0 -376
- package/dist/types-ts4.5/types/grid.d.ts +0 -1
- package/dist/types-ts4.5/types/hyperlink.d.ts +0 -58
- package/dist/types-ts4.5/types/image-upload-reference-event.d.ts +0 -10
- package/dist/types-ts4.5/types/index.d.ts +0 -75
- package/dist/types-ts4.5/types/input-rules.d.ts +0 -9
- package/dist/types-ts4.5/types/insert-block.d.ts +0 -2
- package/dist/types-ts4.5/types/layout.d.ts +0 -6
- package/dist/types-ts4.5/types/markdown-mode-plugin-stub.d.ts +0 -61
- package/dist/types-ts4.5/types/next-editor-plugin.d.ts +0 -792
- package/dist/types-ts4.5/types/performance-tracking.d.ts +0 -343
- package/dist/types-ts4.5/types/plugin-factory.d.ts +0 -26
- package/dist/types-ts4.5/types/prosemirror-config.d.ts +0 -14
- package/dist/types-ts4.5/types/quick-insert.d.ts +0 -71
- package/dist/types-ts4.5/types/resizable-media-single.d.ts +0 -15
- package/dist/types-ts4.5/types/selection-toolbar.d.ts +0 -20
- package/dist/types-ts4.5/types/selection.d.ts +0 -29
- package/dist/types-ts4.5/types/supported-browsers.d.ts +0 -15
- package/dist/types-ts4.5/types/tables.d.ts +0 -13
- package/dist/types-ts4.5/types/text-formatting.d.ts +0 -44
- package/dist/types-ts4.5/types/toolbar.d.ts +0 -14
- package/dist/types-ts4.5/types/type-ahead.d.ts +0 -111
- package/dist/types-ts4.5/types/ui-components.d.ts +0 -37
- package/dist/types-ts4.5/types/user-preferences.d.ts +0 -23
- package/dist/types-ts4.5/ugc-tokens/editor-ugc-token-names.d.ts +0 -22
- package/dist/types-ts4.5/ugc-tokens/get-editor-ugc-token.d.ts +0 -3
- package/dist/types-ts4.5/ugc-tokens/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/Announcer/announcer.d.ts +0 -23
- package/dist/types-ts4.5/ui/AssistiveText/AssistiveText.d.ts +0 -14
- package/dist/types-ts4.5/ui/BaseTheme/index.d.ts +0 -21
- package/dist/types-ts4.5/ui/Caption/index.d.ts +0 -22
- package/dist/types-ts4.5/ui/Caption/messages.d.ts +0 -7
- package/dist/types-ts4.5/ui/ContextPanel/context.d.ts +0 -25
- package/dist/types-ts4.5/ui/DropList/index.d.ts +0 -24
- package/dist/types-ts4.5/ui/EditorContext/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/Emoji/index.d.ts +0 -14
- package/dist/types-ts4.5/ui/ErrorBoundary/index.d.ts +0 -26
- package/dist/types-ts4.5/ui/EventHandlers/index.d.ts +0 -36
- package/dist/types-ts4.5/ui/Expand/index.d.ts +0 -45
- package/dist/types-ts4.5/ui/Expand/sharedStyles.d.ts +0 -7
- package/dist/types-ts4.5/ui/FloatingToolbar/Button.d.ts +0 -38
- package/dist/types-ts4.5/ui/FloatingToolbar/Separator.d.ts +0 -17
- package/dist/types-ts4.5/ui/FloatingToolbar/SmallerEditIcon.d.ts +0 -6
- package/dist/types-ts4.5/ui/FloatingToolbar/iconOnlySpacing.d.ts +0 -8
- package/dist/types-ts4.5/ui/FloatingToolbar/styles.d.ts +0 -4
- package/dist/types-ts4.5/ui/HoverLinkOverlay/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/HoverLinkOverlay/types.d.ts +0 -13
- package/dist/types-ts4.5/ui/IntlErrorBoundary/index.d.ts +0 -16
- package/dist/types-ts4.5/ui/IntlProviderIfMissingWrapper/index.d.ts +0 -5
- package/dist/types-ts4.5/ui/Layer/index.d.ts +0 -48
- package/dist/types-ts4.5/ui/Layer/internal/POSITION_ATTRIBUTE_ENUM.d.ts +0 -4
- package/dist/types-ts4.5/ui/Layer/internal/helpers.d.ts +0 -2
- package/dist/types-ts4.5/ui/LinkSearch/const.d.ts +0 -6
- package/dist/types-ts4.5/ui/MediaSingle/calcColumnsFromPx.d.ts +0 -1
- package/dist/types-ts4.5/ui/MediaSingle/calcPctFromPx.d.ts +0 -1
- package/dist/types-ts4.5/ui/MediaSingle/calcPxFromColumns.d.ts +0 -1
- package/dist/types-ts4.5/ui/MediaSingle/calcPxFromPct.d.ts +0 -1
- package/dist/types-ts4.5/ui/MediaSingle/calcResizedWidth.d.ts +0 -12
- package/dist/types-ts4.5/ui/MediaSingle/grid.d.ts +0 -25
- package/dist/types-ts4.5/ui/MediaSingle/index.d.ts +0 -57
- package/dist/types-ts4.5/ui/MediaSingle/link.d.ts +0 -2
- package/dist/types-ts4.5/ui/MediaSingle/roundToClosestEvenPxValue.d.ts +0 -9
- package/dist/types-ts4.5/ui/MediaSingle/styled.d.ts +0 -90
- package/dist/types-ts4.5/ui/MediaSingle/types.d.ts +0 -12
- package/dist/types-ts4.5/ui/MediaSingle/wrappedLayouts.d.ts +0 -2
- package/dist/types-ts4.5/ui/Mention/index.d.ts +0 -22
- package/dist/types-ts4.5/ui/Mention/mention-with-profilecard.d.ts +0 -18
- package/dist/types-ts4.5/ui/Mention/mention-with-providers.d.ts +0 -17
- package/dist/types-ts4.5/ui/Messages/index.d.ts +0 -14
- package/dist/types-ts4.5/ui/MultiBodiedExtension/index.d.ts +0 -11
- package/dist/types-ts4.5/ui/OverflowShadow/ShadowKeys.d.ts +0 -4
- package/dist/types-ts4.5/ui/OverflowShadow/index.d.ts +0 -20
- package/dist/types-ts4.5/ui/OverflowShadow/shadowObserver.d.ts +0 -21
- package/dist/types-ts4.5/ui/OverflowShadow/shadowObserverClassNames.d.ts +0 -5
- package/dist/types-ts4.5/ui/PanelTextInput/index.d.ts +0 -52
- package/dist/types-ts4.5/ui/PanelTextInput/styles.d.ts +0 -3
- package/dist/types-ts4.5/ui/PlainOutsideClickTargetRefContext.d.ts +0 -2
- package/dist/types-ts4.5/ui/Popup/index.d.ts +0 -92
- package/dist/types-ts4.5/ui/Popup/isBody.d.ts +0 -1
- package/dist/types-ts4.5/ui/Popup/isTextNode.d.ts +0 -1
- package/dist/types-ts4.5/ui/Popup/utils.d.ts +0 -67
- package/dist/types-ts4.5/ui/Popup/validatePosition.d.ts +0 -1
- package/dist/types-ts4.5/ui/Pulse/Pulse.d.ts +0 -19
- package/dist/types-ts4.5/ui/ResizerLegacy/handleSides.d.ts +0 -1
- package/dist/types-ts4.5/ui/ResizerLegacy/imageAlignmentMap.d.ts +0 -4
- package/dist/types-ts4.5/ui/ResizerLegacy/index.d.ts +0 -44
- package/dist/types-ts4.5/ui/ResizerLegacy/snapTo.d.ts +0 -1
- package/dist/types-ts4.5/ui/ResizerLegacy/styled.d.ts +0 -3
- package/dist/types-ts4.5/ui/ResizerLegacy/types.d.ts +0 -26
- package/dist/types-ts4.5/ui/ResizerLegacy/utils.d.ts +0 -3
- package/dist/types-ts4.5/ui/Shortcut/index.d.ts +0 -8
- package/dist/types-ts4.5/ui/TableSelector/index.d.ts +0 -28
- package/dist/types-ts4.5/ui/TableSelector/table-selector.d.ts +0 -31
- package/dist/types-ts4.5/ui/Toolbar/ButtonGroup.d.ts +0 -8
- package/dist/types-ts4.5/ui/Toolbar/DropdownTriggerWrapper.d.ts +0 -8
- package/dist/types-ts4.5/ui/Toolbar/DropdownWrapper.d.ts +0 -8
- package/dist/types-ts4.5/ui/Toolbar/ExpandIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/Toolbar/Separator.d.ts +0 -1
- package/dist/types-ts4.5/ui/Toolbar/index.d.ts +0 -5
- package/dist/types-ts4.5/ui/UnsupportedBlock/index.d.ts +0 -17
- package/dist/types-ts4.5/ui/UnsupportedInline/index.d.ts +0 -17
- package/dist/types-ts4.5/ui/WidthProvider/index.d.ts +0 -39
- package/dist/types-ts4.5/ui/WithCreateAnalyticsEvent/index.d.ts +0 -6
- package/dist/types-ts4.5/ui/clear-next-sibling-margin-top.d.ts +0 -3
- package/dist/types-ts4.5/ui/index.d.ts +0 -65
- package/dist/types-ts4.5/ui/unsupported-content-helper.d.ts +0 -3
- package/dist/types-ts4.5/ui/with-outer-listeners.d.ts +0 -9
- package/dist/types-ts4.5/ui-color/ColorPalette/Color/index.d.ts +0 -22
- package/dist/types-ts4.5/ui-color/ColorPalette/Color/styles.d.ts +0 -5
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/borderColorPalette.d.ts +0 -3
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.d.ts +0 -3
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/common.d.ts +0 -2
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/getColorMessage.d.ts +0 -2
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/highlightColorPalette.d.ts +0 -9
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/lightBackgroundPaletteTooltipMessages.d.ts +0 -107
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/lightChartsColorPaletteTooltipMessages.d.ts +0 -182
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/lightTextPaletteTooltipMessages.d.ts +0 -107
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/mapPaletteColor.d.ts +0 -7
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/paletteMessages.d.ts +0 -138
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/paletteMessagesTokenModeNames.d.ts +0 -1051
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/panelBackgroundPalette.d.ts +0 -2
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/textColorPalette.d.ts +0 -4
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/textColorPaletteTokenBorders.d.ts +0 -2
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/type.d.ts +0 -14
- package/dist/types-ts4.5/ui-color/ColorPalette/getSelectedRowAndColumn.d.ts +0 -5
- package/dist/types-ts4.5/ui-color/ColorPalette/index.d.ts +0 -42
- package/dist/types-ts4.5/ui-color/ColorPalette/styles.d.ts +0 -2
- package/dist/types-ts4.5/ui-color/ColorPalette/utils.d.ts +0 -9
- package/dist/types-ts4.5/ui-color/index.d.ts +0 -13
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.d.ts +0 -7
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.d.ts +0 -7
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/index.d.ts +0 -3
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/types.d.ts +0 -47
- package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +0 -34
- package/dist/types-ts4.5/ui-menu/Dropdown/index.d.ts +0 -55
- package/dist/types-ts4.5/ui-menu/DropdownContainer/index.d.ts +0 -7
- package/dist/types-ts4.5/ui-menu/DropdownMenu/index.d.ts +0 -25
- package/dist/types-ts4.5/ui-menu/DropdownMenu/types.d.ts +0 -66
- package/dist/types-ts4.5/ui-menu/ToolbarArrowKeyNavigationProvider/index.d.ts +0 -34
- package/dist/types-ts4.5/ui-menu/ToolbarButton/index.d.ts +0 -64
- package/dist/types-ts4.5/ui-menu/ToolbarButton/styles.d.ts +0 -4
- package/dist/types-ts4.5/ui-menu/index.d.ts +0 -12
- package/dist/types-ts4.5/ui-react/OutsideClickTargetRefContext.d.ts +0 -2
- package/dist/types-ts4.5/ui-react/ReactEditorViewContext.d.ts +0 -9
- package/dist/types-ts4.5/ui-react/index.d.ts +0 -3
- package/dist/types-ts4.5/ui-react/with-react-editor-view-outer-listeners.d.ts +0 -19
- package/dist/types-ts4.5/user-intent/UserIntentPopupWrapper.d.ts +0 -12
- package/dist/types-ts4.5/user-intent/index.d.ts +0 -2
- package/dist/types-ts4.5/user-intent/types.d.ts +0 -1
- package/dist/types-ts4.5/user-preferences/areUserPreferencesEqual.d.ts +0 -16
- package/dist/types-ts4.5/user-preferences/hooks.d.ts +0 -11
- package/dist/types-ts4.5/user-preferences/index.d.ts +0 -5
- package/dist/types-ts4.5/user-preferences/mergeUserPreferences.d.ts +0 -2
- package/dist/types-ts4.5/user-preferences/persistence-api.d.ts +0 -23
- package/dist/types-ts4.5/user-preferences/user-preferences-provider.d.ts +0 -91
- package/dist/types-ts4.5/user-preferences/user-preferences.d.ts +0 -15
- package/dist/types-ts4.5/user-preferences/utils.d.ts +0 -0
- package/dist/types-ts4.5/utils/ADFStages.d.ts +0 -4
- package/dist/types-ts4.5/utils/ContentType.d.ts +0 -8
- package/dist/types-ts4.5/utils/FILEPATH_REGEXP.d.ts +0 -1
- package/dist/types-ts4.5/utils/LinkMatcher.d.ts +0 -8
- package/dist/types-ts4.5/utils/SEVERITY.d.ts +0 -5
- package/dist/types-ts4.5/utils/SelectedState.d.ts +0 -4
- package/dist/types-ts4.5/utils/analytics.d.ts +0 -14
- package/dist/types-ts4.5/utils/annotation/index.d.ts +0 -57
- package/dist/types-ts4.5/utils/atTheBeginningOfDoc.d.ts +0 -2
- package/dist/types-ts4.5/utils/atTheEndOfDoc.d.ts +0 -2
- package/dist/types-ts4.5/utils/breakout.d.ts +0 -64
- package/dist/types-ts4.5/utils/breakoutResizableNodes.d.ts +0 -1
- package/dist/types-ts4.5/utils/browser-extensions.d.ts +0 -43
- package/dist/types-ts4.5/utils/browser.d.ts +0 -4
- package/dist/types-ts4.5/utils/calculate-toolbar-position.d.ts +0 -11
- package/dist/types-ts4.5/utils/calculateSnapPoints.d.ts +0 -2
- package/dist/types-ts4.5/utils/canLinkBeCreatedInRange.d.ts +0 -2
- package/dist/types-ts4.5/utils/commands.d.ts +0 -48
- package/dist/types-ts4.5/utils/compare-props.d.ts +0 -28
- package/dist/types-ts4.5/utils/compareNodes.d.ts +0 -42
- package/dist/types-ts4.5/utils/compose.d.ts +0 -30
- package/dist/types-ts4.5/utils/containsClassName.d.ts +0 -4
- package/dist/types-ts4.5/utils/convertProsemirrorTableNodeToArrayOfRows.d.ts +0 -7
- package/dist/types-ts4.5/utils/count-nodes.d.ts +0 -8
- package/dist/types-ts4.5/utils/create-adf-from-html.d.ts +0 -13
- package/dist/types-ts4.5/utils/create-wrap-selection-transaction.d.ts +0 -19
- package/dist/types-ts4.5/utils/createRule.d.ts +0 -2
- package/dist/types-ts4.5/utils/datasource.d.ts +0 -2
- package/dist/types-ts4.5/utils/date.d.ts +0 -17
- package/dist/types-ts4.5/utils/dedupe.d.ts +0 -1
- package/dist/types-ts4.5/utils/document.d.ts +0 -30
- package/dist/types-ts4.5/utils/dom.d.ts +0 -10
- package/dist/types-ts4.5/utils/editor-core-utils.d.ts +0 -25
- package/dist/types-ts4.5/utils/error-reporter.d.ts +0 -13
- package/dist/types-ts4.5/utils/extension-handler.d.ts +0 -3
- package/dist/types-ts4.5/utils/extractSliceFromStep.d.ts +0 -3
- package/dist/types-ts4.5/utils/filter/privacy-filter.d.ts +0 -9
- package/dist/types-ts4.5/utils/filter.d.ts +0 -2
- package/dist/types-ts4.5/utils/filterChildrenBetween.d.ts +0 -5
- package/dist/types-ts4.5/utils/find-node-by-local-id.d.ts +0 -6
- package/dist/types-ts4.5/utils/findChangedNodesFromTransaction.d.ts +0 -8
- package/dist/types-ts4.5/utils/findInsertLocation.d.ts +0 -2
- package/dist/types-ts4.5/utils/floatingLayouts.d.ts +0 -1
- package/dist/types-ts4.5/utils/get-dom-ref-from-selection.d.ts +0 -4
- package/dist/types-ts4.5/utils/get-performance-options.d.ts +0 -14
- package/dist/types-ts4.5/utils/getAnalyticsAppearance.d.ts +0 -2
- package/dist/types-ts4.5/utils/getBreakoutResizableNodeTypes.d.ts +0 -2
- package/dist/types-ts4.5/utils/getDatasourceType.d.ts +0 -2
- package/dist/types-ts4.5/utils/getFragmentBackingArray.d.ts +0 -5
- package/dist/types-ts4.5/utils/getKeys.d.ts +0 -1
- package/dist/types-ts4.5/utils/getLinkDomain.d.ts +0 -1
- package/dist/types-ts4.5/utils/getModeFromTheme.d.ts +0 -1
- package/dist/types-ts4.5/utils/getNestingRulesFromSchema.d.ts +0 -1
- package/dist/types-ts4.5/utils/getNextBreakoutMode.d.ts +0 -2
- package/dist/types-ts4.5/utils/getNodeName.d.ts +0 -3
- package/dist/types-ts4.5/utils/getStepRange.d.ts +0 -5
- package/dist/types-ts4.5/utils/getTitle.d.ts +0 -6
- package/dist/types-ts4.5/utils/grid.d.ts +0 -3
- package/dist/types-ts4.5/utils/hasDocAsParent.d.ts +0 -2
- package/dist/types-ts4.5/utils/hasMergedCell.d.ts +0 -7
- package/dist/types-ts4.5/utils/hasVisibleContent.d.ts +0 -5
- package/dist/types-ts4.5/utils/hyperlink.d.ts +0 -21
- package/dist/types-ts4.5/utils/imageLoader.d.ts +0 -15
- package/dist/types-ts4.5/utils/index.d.ts +0 -233
- package/dist/types-ts4.5/utils/input-rules.d.ts +0 -15
- package/dist/types-ts4.5/utils/insert-node-into-ordered-list.d.ts +0 -3
- package/dist/types-ts4.5/utils/insertContentDeleteRange.d.ts +0 -9
- package/dist/types-ts4.5/utils/insertNewLine.d.ts +0 -2
- package/dist/types-ts4.5/utils/is-text-input.d.ts +0 -2
- package/dist/types-ts4.5/utils/isBulletList.d.ts +0 -2
- package/dist/types-ts4.5/utils/isElementInTableCell.d.ts +0 -1
- package/dist/types-ts4.5/utils/isEmptyDocument.d.ts +0 -5
- package/dist/types-ts4.5/utils/isEmptyParagraph.d.ts +0 -5
- package/dist/types-ts4.5/utils/isInLayoutColumn.d.ts +0 -2
- package/dist/types-ts4.5/utils/isLastItemMediaGroup.d.ts +0 -2
- package/dist/types-ts4.5/utils/isListItemNode.d.ts +0 -2
- package/dist/types-ts4.5/utils/isListNode.d.ts +0 -6
- package/dist/types-ts4.5/utils/isMediaNode.d.ts +0 -7
- package/dist/types-ts4.5/utils/isNodeBeforeMediaNode.d.ts +0 -10
- package/dist/types-ts4.5/utils/isNodeTypeValidChildOf.d.ts +0 -7
- package/dist/types-ts4.5/utils/isParagraphNode.d.ts +0 -2
- package/dist/types-ts4.5/utils/isPositionNearTableRow.d.ts +0 -9
- package/dist/types-ts4.5/utils/isRichMediaInsideOfBlockNode.d.ts +0 -2
- package/dist/types-ts4.5/utils/isSameMark.d.ts +0 -2
- package/dist/types-ts4.5/utils/isSelectionEndOfParagraph.d.ts +0 -2
- package/dist/types-ts4.5/utils/isSubSupType.d.ts +0 -1
- package/dist/types-ts4.5/utils/isSupportedInParent.d.ts +0 -9
- package/dist/types-ts4.5/utils/isTextSelection.d.ts +0 -3
- package/dist/types-ts4.5/utils/isValidPosition.d.ts +0 -2
- package/dist/types-ts4.5/utils/list.d.ts +0 -13
- package/dist/types-ts4.5/utils/macro.d.ts +0 -10
- package/dist/types-ts4.5/utils/markOrder.d.ts +0 -1
- package/dist/types-ts4.5/utils/median.d.ts +0 -1
- package/dist/types-ts4.5/utils/node-type-utils.d.ts +0 -23
- package/dist/types-ts4.5/utils/nodes-by-localIds.d.ts +0 -7
- package/dist/types-ts4.5/utils/nodes.d.ts +0 -25
- package/dist/types-ts4.5/utils/nonNullable.d.ts +0 -1
- package/dist/types-ts4.5/utils/nonWrappedLayouts.d.ts +0 -2
- package/dist/types-ts4.5/utils/normalizeUrl.d.ts +0 -4
- package/dist/types-ts4.5/utils/page-element-counts.d.ts +0 -20
- package/dist/types-ts4.5/utils/parse-html-text-content.d.ts +0 -18
- package/dist/types-ts4.5/utils/parsePx.d.ts +0 -15
- package/dist/types-ts4.5/utils/performance/TTI_FROM_INVOCATION_SEVERITY_THRESHOLD_DEFAULTS.d.ts +0 -4
- package/dist/types-ts4.5/utils/performance/TTI_SEVERITY_THRESHOLD_DEFAULTS.d.ts +0 -4
- package/dist/types-ts4.5/utils/performance/get-performance-timing.d.ts +0 -8
- package/dist/types-ts4.5/utils/performance/getRequestToResponseTime.d.ts +0 -1
- package/dist/types-ts4.5/utils/performance/getResponseEndTime.d.ts +0 -1
- package/dist/types-ts4.5/utils/performance/hooks/use-component-render-tracking/index.d.ts +0 -19
- package/dist/types-ts4.5/utils/performance/is-performance-api-available.d.ts +0 -3
- package/dist/types-ts4.5/utils/performance/isPerformanceObserverAvailable.d.ts +0 -1
- package/dist/types-ts4.5/utils/performance/measure-render.d.ts +0 -52
- package/dist/types-ts4.5/utils/performance/measure-tti.d.ts +0 -8
- package/dist/types-ts4.5/utils/performance/measure.d.ts +0 -12
- package/dist/types-ts4.5/utils/performance/navigation.d.ts +0 -2
- package/dist/types-ts4.5/utils/plugin-state-factory.d.ts +0 -16
- package/dist/types-ts4.5/utils/processRawFragmentValue.d.ts +0 -5
- package/dist/types-ts4.5/utils/processRawValue.d.ts +0 -8
- package/dist/types-ts4.5/utils/profiler/render-count.d.ts +0 -50
- package/dist/types-ts4.5/utils/prosemirror/autojoin.d.ts +0 -13
- package/dist/types-ts4.5/utils/referentiality.d.ts +0 -17
- package/dist/types-ts4.5/utils/removeNestedEmptyEls.d.ts +0 -5
- package/dist/types-ts4.5/utils/resolveOrder.d.ts +0 -1
- package/dist/types-ts4.5/utils/rich-media-utils.d.ts +0 -7
- package/dist/types-ts4.5/utils/scroll-gutter.d.ts +0 -6
- package/dist/types-ts4.5/utils/serializeValue.d.ts +0 -4
- package/dist/types-ts4.5/utils/setAllSelection.d.ts +0 -2
- package/dist/types-ts4.5/utils/setCellSelection.d.ts +0 -2
- package/dist/types-ts4.5/utils/setNodeSelection.d.ts +0 -2
- package/dist/types-ts4.5/utils/setTextSelection.d.ts +0 -2
- package/dist/types-ts4.5/utils/should-auto-linkify-tld.d.ts +0 -17
- package/dist/types-ts4.5/utils/should-force-tracking.d.ts +0 -1
- package/dist/types-ts4.5/utils/shouldAddDefaultWrappedWidth.d.ts +0 -2
- package/dist/types-ts4.5/utils/slice.d.ts +0 -10
- package/dist/types-ts4.5/utils/startMeasureReactNodeViewRendered.d.ts +0 -3
- package/dist/types-ts4.5/utils/stepHasSlice.d.ts +0 -7
- package/dist/types-ts4.5/utils/table.d.ts +0 -32
- package/dist/types-ts4.5/utils/track-unsupported-content.d.ts +0 -20
- package/dist/types-ts4.5/utils/traversor.d.ts +0 -9
- package/dist/types-ts4.5/utils/types.d.ts +0 -2
- package/dist/types-ts4.5/utils/unsupportedContent/UNSUPPORTED_CONTENT_LEVEL_SEVERITY.d.ts +0 -5
- package/dist/types-ts4.5/utils/unsupportedContent/UNSUPPORTED_CONTENT_LEVEL_SEVERITY_THRESHOLD_DEFAULTS.d.ts +0 -4
- package/dist/types-ts4.5/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +0 -51
- package/dist/types-ts4.5/utils/unsupportedContent/types.d.ts +0 -18
- package/dist/types-ts4.5/utils/unwrap.d.ts +0 -5
- package/dist/types-ts4.5/utils/validNode.d.ts +0 -2
- package/dist/types-ts4.5/utils/validate-using-spec.d.ts +0 -17
- package/dist/types-ts4.5/utils/validator.d.ts +0 -40
- package/dist/types-ts4.5/utils/walkUpTreeUntil.d.ts +0 -6
- package/dist/types-ts4.5/utils/withFeatureFlaggedComponent.d.ts +0 -9
- package/dist/types-ts4.5/utils/wrap-selection-in.d.ts +0 -9
- package/dist/types-ts4.5/utils/wrapWithUnsupported.d.ts +0 -7
- package/dist/types-ts4.5/validator.d.ts +0 -6
- package/dist/types-ts4.5/vanilla-tooltip/index.d.ts +0 -29
- package/dist/types-ts4.5/whitespace/index.d.ts +0 -1
- package/dist/types-ts4.5/whitespace/whitespace.d.ts +0 -2
|
@@ -1,792 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This entire file attempts to build out the type safety needed in our new
|
|
3
|
-
* plugin dependency injection approach, alongside our current implementation of
|
|
4
|
-
* `Presets` - if the generics get too unwieldy, we may redesign how presets
|
|
5
|
-
* are put together - but for now `Builder` & `Preset` aim to beinterchangeable.
|
|
6
|
-
*/
|
|
7
|
-
import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
8
|
-
import type { Fragment, Node, Schema, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
9
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
10
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
11
|
-
import type { FireAnalyticsCallback } from '../analytics';
|
|
12
|
-
import type { EditorAppearance } from './editor-appearance';
|
|
13
|
-
import type { EditorCommand, EditorCommandWithMetadata } from './editor-command';
|
|
14
|
-
import type { EditorPlugin } from './editor-plugin';
|
|
15
|
-
export interface Transformer<T> {
|
|
16
|
-
encode: (node: Node) => T;
|
|
17
|
-
parse: (content: T) => Node;
|
|
18
|
-
}
|
|
19
|
-
export type CorePlugin = NextEditorPlugin<'core', {
|
|
20
|
-
actions: {
|
|
21
|
-
/**
|
|
22
|
-
* Blurs the editor.
|
|
23
|
-
*
|
|
24
|
-
* Calls blur on the editor DOM element.
|
|
25
|
-
*
|
|
26
|
-
* @returns (boolean) if the blur was successful
|
|
27
|
-
*/
|
|
28
|
-
blur: () => boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Create a transformer
|
|
31
|
-
*
|
|
32
|
-
* @param schema Schema of the document
|
|
33
|
-
* @returns Transformer which can be used to request a document
|
|
34
|
-
*/
|
|
35
|
-
createTransformer: <Format>(cb: (schema: Schema) => Transformer<Format>) => Transformer<Format> | undefined;
|
|
36
|
-
/**
|
|
37
|
-
* Dispatches an EditorCommand to ProseMirror
|
|
38
|
-
*
|
|
39
|
-
* @param command A function (EditorCommand | undefined) that takes an object containing a `Transaction` and returns a `Transaction` if it
|
|
40
|
-
* is successful or `null` if it shouldn't be dispatched.
|
|
41
|
-
* @returns (boolean) if the command was successful in dispatching
|
|
42
|
-
*/
|
|
43
|
-
execute: (command: EditorCommand | undefined) => boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Focuses the editor.
|
|
46
|
-
*
|
|
47
|
-
* Calls the focus method of the `EditorView` and scrolls the
|
|
48
|
-
* current selection into view.
|
|
49
|
-
*
|
|
50
|
-
* @param options
|
|
51
|
-
* @param options.scrollIntoView (boolean) if the view should also scroll when focusing. True by default
|
|
52
|
-
* @returns (boolean) if the focus was successful
|
|
53
|
-
*/
|
|
54
|
-
focus: (options?: {
|
|
55
|
-
scrollIntoView: boolean;
|
|
56
|
-
}) => boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Get the anchor ID for a ProseMirror node.
|
|
59
|
-
*
|
|
60
|
-
* @param node - The ProseMirror node to get the anchor ID for.
|
|
61
|
-
* @param pos - The position of the node in the document.
|
|
62
|
-
* @returns The anchor ID if found, otherwise undefined.
|
|
63
|
-
*/
|
|
64
|
-
getAnchorIdForNode: (node: PMNode, pos: number) => string | undefined;
|
|
65
|
-
/**
|
|
66
|
-
* Replaces the current content of the editor with the provided raw value.
|
|
67
|
-
*
|
|
68
|
-
* @param replaceValue - The new content to replace the current content. It can be of any type.
|
|
69
|
-
* @param options - Options
|
|
70
|
-
* @param options.addToHistory (boolean) if the replacement should be added to history. True by default
|
|
71
|
-
* @param options.scrollIntoView (boolean) if the view should also scroll on replace. True by default
|
|
72
|
-
* @param options.skipValidation (boolean) if the validation should be skipped. False by default
|
|
73
|
-
* @param options.transformer (Transformer<string>) transformer to convert the replaceValue into (example is from markdown)
|
|
74
|
-
* @returns A boolean indicating whether the replacement was successful.
|
|
75
|
-
*/
|
|
76
|
-
replaceDocument: (replaceValue: Node | Fragment | Array<Node> | Object | string, options?: {
|
|
77
|
-
addToHistory?: boolean;
|
|
78
|
-
scrollIntoView?: boolean;
|
|
79
|
-
skipValidation?: boolean;
|
|
80
|
-
transformer?: Transformer<string>;
|
|
81
|
-
}) => boolean;
|
|
82
|
-
/**
|
|
83
|
-
* Request the editor document.
|
|
84
|
-
* The document will return when available. If called multiple times it will throttle and return the
|
|
85
|
-
* latest document when ready.
|
|
86
|
-
*
|
|
87
|
-
* A transformer can be created using `createTransformer`.
|
|
88
|
-
*
|
|
89
|
-
* @param onReceive Callback to handle the document. Document type based on the transformer.
|
|
90
|
-
* @param options Options for document request
|
|
91
|
-
* @param options.transformer Pass a transformer for the document to be transformed into a different format.
|
|
92
|
-
* @param options.alwaysFire If true, always return a value in `onReceive` handler rather than skipping throttled calls
|
|
93
|
-
*/
|
|
94
|
-
requestDocument: <GenericTransformer extends Transformer<any> = Transformer<JSONDocNode>>(onReceive: (document: TransformerResult<GenericTransformer> | undefined) => void, options?: {
|
|
95
|
-
alwaysFire?: boolean;
|
|
96
|
-
transformer?: GenericTransformer;
|
|
97
|
-
}) => void;
|
|
98
|
-
/**
|
|
99
|
-
* Request the editor document asynchronously.
|
|
100
|
-
*
|
|
101
|
-
* A transformer can be created using `createTransformer`.
|
|
102
|
-
*
|
|
103
|
-
* @param options Options for document request
|
|
104
|
-
* @param options.transformer Pass a transformer for the document to be transformed into a different format.
|
|
105
|
-
*
|
|
106
|
-
* @returns (Promise) Promise that resolves to the document. Document type based on the transformer.
|
|
107
|
-
*/
|
|
108
|
-
requestDocumentAsync: <GenericTransformer extends Transformer<any> = Transformer<JSONDocNode>>(options?: {
|
|
109
|
-
transformer?: GenericTransformer;
|
|
110
|
-
}) => Promise<TransformerResult<GenericTransformer> | undefined>;
|
|
111
|
-
/**
|
|
112
|
-
* Scroll to a specific position in the editor using native Element.scrollIntoView
|
|
113
|
-
*
|
|
114
|
-
* @param pos - Position number scroll to
|
|
115
|
-
* @param scrollOptions - [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView)
|
|
116
|
-
* @returns (boolean) if scroll was successful
|
|
117
|
-
*/
|
|
118
|
-
scrollToPos: (pos: number, scrollOptions?: boolean | ScrollIntoViewOptions) => boolean;
|
|
119
|
-
/**
|
|
120
|
-
* Updates the editor appearance in shared state. Dispatches a ProseMirror transaction
|
|
121
|
-
* so that shared state subscribers are correctly notified of the change.
|
|
122
|
-
*
|
|
123
|
-
* @param appearance - The new editor appearance value
|
|
124
|
-
* @returns true if the update was dispatched, false if the experiment is off or the view was unavailable
|
|
125
|
-
*/
|
|
126
|
-
updateAppearance: (appearance: EditorAppearance | undefined) => boolean;
|
|
127
|
-
};
|
|
128
|
-
pluginConfiguration: {
|
|
129
|
-
appearance?: EditorAppearance;
|
|
130
|
-
fireAnalyticsEvent?: FireAnalyticsCallback;
|
|
131
|
-
getEditorView: () => EditorView | undefined;
|
|
132
|
-
};
|
|
133
|
-
sharedState: {
|
|
134
|
-
/**
|
|
135
|
-
* The appearance configuration of the editor. Used as fallback when individual
|
|
136
|
-
* plugins don't have explicit appearance configuration.
|
|
137
|
-
*/
|
|
138
|
-
appearance: EditorAppearance | undefined;
|
|
139
|
-
/**
|
|
140
|
-
* The schema of the editor. It is guarranteed to be static for its lifecycle
|
|
141
|
-
* so is safe to use `currentState`
|
|
142
|
-
*/
|
|
143
|
-
schema: Schema | undefined;
|
|
144
|
-
};
|
|
145
|
-
}>;
|
|
146
|
-
export type TransformerResult<GenericTransformer = Transformer<JSONDocNode>> = GenericTransformer extends Transformer<infer Content> ? Content : JSONDocNode;
|
|
147
|
-
export type InferTransformerResultCallback<T extends Transformer<any> | undefined> = (doc: T extends Transformer<infer U> ? TransformerResult<U> : TransformerResult<JSONDocNode>) => void;
|
|
148
|
-
export type DefaultTransformerResultCallback = (doc: TransformerResult<JSONDocNode> | undefined) => void;
|
|
149
|
-
/*********************
|
|
150
|
-
* *
|
|
151
|
-
* BASE TYPES *
|
|
152
|
-
* *
|
|
153
|
-
**********************/
|
|
154
|
-
type MaybeAction = ((...agrs: any) => any) | ((...agrs: any) => void);
|
|
155
|
-
type NextEditorPluginActions = Record<string, MaybeAction>;
|
|
156
|
-
type NextEditorEditorCommands = Record<string, EditorCommandWithMetadata | EditorCommand>;
|
|
157
|
-
type OptionalPrivateProperty = {
|
|
158
|
-
__optionalPluginType: true;
|
|
159
|
-
};
|
|
160
|
-
/**
|
|
161
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
162
|
-
*
|
|
163
|
-
* Conditionally picks the property name 'getSharedState' if the Metadata contains a sharedState definition.
|
|
164
|
-
*
|
|
165
|
-
* This type checks if the generic Metadata type for a plugin has a shared state. If it does, it enables
|
|
166
|
-
* the inclusion of the 'getSharedState' method name in the plugin's API type. Otherwise, it results in `never`,
|
|
167
|
-
* indicating the absence of shared state functionality in the plugin.
|
|
168
|
-
*
|
|
169
|
-
* @returns 'getSharedState' if shared state is defined in Metadata, otherwise `never`.
|
|
170
|
-
*/
|
|
171
|
-
type WithSharedState<Metadata extends NextEditorPluginMetadata> = {
|
|
172
|
-
[Property in keyof Pick<Metadata, 'sharedState'> as PickSharedStatePropertyName<Metadata>]: (editorState: EditorState | undefined) => ExtractSharedStateFromMetadata<Metadata>;
|
|
173
|
-
};
|
|
174
|
-
/**
|
|
175
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
176
|
-
*
|
|
177
|
-
* Conditionally picks the property name 'actions' if the Metadata contains action definitions.
|
|
178
|
-
*
|
|
179
|
-
* This type evaluates whether the given Metadata for a plugin defines any actions. If actions are present,
|
|
180
|
-
* the 'actions' property name is included in the plugin's API type, enabling action handling. If there are no
|
|
181
|
-
* actions, it results in `never`.
|
|
182
|
-
*
|
|
183
|
-
* @returns 'actions' if actions are defined in Metadata, otherwise `never`.
|
|
184
|
-
*/
|
|
185
|
-
type WithActions<Metadata extends NextEditorPluginMetadata> = {
|
|
186
|
-
[Property in keyof Pick<Metadata, 'actions'> as PickActionsPropertyName<Metadata>]: ExtractActionsFromMetadata<Metadata>;
|
|
187
|
-
};
|
|
188
|
-
/**
|
|
189
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
190
|
-
*
|
|
191
|
-
* Conditionally picks the property name 'commands' if the Metadata contains command definitions.
|
|
192
|
-
*
|
|
193
|
-
* This type assesses whether the provided Metadata for a plugin includes commands. If commands exist,
|
|
194
|
-
* it allows for the inclusion of the 'commands' property name in the plugin's API type, facilitating command
|
|
195
|
-
* execution. If no commands are defined, the result is `never`.
|
|
196
|
-
*
|
|
197
|
-
* @returns 'commands' if commands are defined in Metadata, otherwise `never`.
|
|
198
|
-
*/
|
|
199
|
-
type WithCommands<Metadata extends NextEditorPluginMetadata> = {
|
|
200
|
-
[Property in keyof Pick<Metadata, 'commands'> as PickCommandsPropertyName<Metadata>]: ExtractCommandsFromMetadata<Metadata>;
|
|
201
|
-
};
|
|
202
|
-
/****************************************************
|
|
203
|
-
* *
|
|
204
|
-
* METADATA PROPERTIES EXTRACTION TYPES *
|
|
205
|
-
* *
|
|
206
|
-
****************************************************/
|
|
207
|
-
/**
|
|
208
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
209
|
-
*
|
|
210
|
-
* Conditionally picks the property name 'getSharedState' if the Metadata contains a sharedState definition.
|
|
211
|
-
*
|
|
212
|
-
* This type checks if the generic Metadata type for a plugin has a shared state. If it does, it enables
|
|
213
|
-
* the inclusion of the 'getSharedState' method name in the plugin's API type. Otherwise, it results in `never`,
|
|
214
|
-
* indicating the absence of shared state functionality in the plugin.
|
|
215
|
-
*
|
|
216
|
-
* @template Metadata The metadata type to check for shared state.
|
|
217
|
-
* @returns 'getSharedState' if shared state is defined in Metadata, otherwise `never`.
|
|
218
|
-
*/
|
|
219
|
-
type PickSharedStatePropertyName<Metadata extends NextEditorPluginMetadata> = IsAny<Metadata> extends true ? never : ExtractSharedStateFromMetadata<Metadata> extends never ? never : 'getSharedState';
|
|
220
|
-
/**
|
|
221
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
222
|
-
*
|
|
223
|
-
* Conditionally picks the property name 'actions' if the Metadata contains action definitions.
|
|
224
|
-
*
|
|
225
|
-
* This type evaluates whether the given Metadata for a plugin defines any actions. If actions are present,
|
|
226
|
-
* the 'actions' property name is included in the plugin's API type, enabling action handling. If there are no
|
|
227
|
-
* actions, it results in `never`.
|
|
228
|
-
*
|
|
229
|
-
* @returns 'actions' if actions are defined in Metadata, otherwise `never`.
|
|
230
|
-
*/
|
|
231
|
-
type PickActionsPropertyName<Metadata extends NextEditorPluginMetadata> = IsAny<Metadata> extends true ? never : ExtractActionsFromMetadata<Metadata> extends never ? never : 'actions';
|
|
232
|
-
/**
|
|
233
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
234
|
-
*
|
|
235
|
-
* Conditionally picks the property name 'commands' if the Metadata contains command definitions.
|
|
236
|
-
*
|
|
237
|
-
* This type assesses whether the provided Metadata for a plugin includes commands. If commands exist,
|
|
238
|
-
* it allows for the inclusion of the 'commands' property name in the plugin's API type, facilitating command
|
|
239
|
-
* execution. If no commands are defined, the result is `never`.
|
|
240
|
-
*
|
|
241
|
-
* @returns 'commands' if commands are defined in Metadata, otherwise `never`.
|
|
242
|
-
*/
|
|
243
|
-
type PickCommandsPropertyName<Metadata extends NextEditorPluginMetadata> = IsAny<Metadata> extends true ? never : ExtractCommandsFromMetadata<Metadata> extends never ? never : 'commands';
|
|
244
|
-
/**
|
|
245
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
246
|
-
*
|
|
247
|
-
* Extracts the dependencies from the plugin Metadata, if any are defined.
|
|
248
|
-
*
|
|
249
|
-
* This type checks the Metadata for a 'dependencies' key and ensures it is a list of DependencyPlugin types.
|
|
250
|
-
* If dependencies are present, they are returned, excluding any potential `undefined` values. If no dependencies
|
|
251
|
-
* are defined, an empty array is returned.
|
|
252
|
-
*
|
|
253
|
-
* @returns An array of DependencyPlugin types if defined, otherwise an empty array.
|
|
254
|
-
*/
|
|
255
|
-
type ExtractPluginDependenciesFromMetadata<Metadata> = 'dependencies' extends keyof Metadata ? Metadata['dependencies'] extends DependencyPlugin[] ? Exclude<Metadata['dependencies'], undefined> : [
|
|
256
|
-
] : [
|
|
257
|
-
];
|
|
258
|
-
/**
|
|
259
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
260
|
-
*
|
|
261
|
-
* Extracts the shared state definition from the plugin Metadata, if present.
|
|
262
|
-
*
|
|
263
|
-
* This type looks for a 'sharedState' key within the Metadata. If found, it returns the associated type of the
|
|
264
|
-
* shared state. If the 'sharedState' key is not present, the result is `never`.
|
|
265
|
-
*
|
|
266
|
-
* @returns The shared state type if defined, otherwise `never`.
|
|
267
|
-
*/
|
|
268
|
-
type ExtractSharedStateFromMetadata<Metadata> = 'sharedState' extends keyof Metadata ? Metadata['sharedState'] : never;
|
|
269
|
-
/**
|
|
270
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
271
|
-
*
|
|
272
|
-
* Extracts the actions definition from the plugin Metadata, if available.
|
|
273
|
-
*
|
|
274
|
-
* This type queries the Metadata for an 'actions' key. If such a key exists, it returns the type of the
|
|
275
|
-
* defined actions. If there are no actions defined in the Metadata, the result is `never`.
|
|
276
|
-
*
|
|
277
|
-
* @returns The actions type if defined, otherwise `never`.
|
|
278
|
-
*/
|
|
279
|
-
type ExtractActionsFromMetadata<Metadata> = 'actions' extends keyof Metadata ? Metadata['actions'] : never;
|
|
280
|
-
/**
|
|
281
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
282
|
-
*
|
|
283
|
-
* Extracts the commands definition from the plugin Metadata, if it exists.
|
|
284
|
-
*
|
|
285
|
-
* By checking for a 'commands' key within the Metadata, this type determines if any commands are defined.
|
|
286
|
-
* If commands are present, their type is returned. If not, the result is `never`.
|
|
287
|
-
*
|
|
288
|
-
* @returns The commands type if defined, otherwise `never`.
|
|
289
|
-
*/
|
|
290
|
-
type ExtractCommandsFromMetadata<Metadata> = 'commands' extends keyof Metadata ? Metadata['commands'] : never;
|
|
291
|
-
/**
|
|
292
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
293
|
-
*
|
|
294
|
-
* Extracts the plugin name from a NextEditorPlugin type.
|
|
295
|
-
*
|
|
296
|
-
* This type attempts to derive the plugin name from a given NextEditorPlugin type by checking if the plugin
|
|
297
|
-
* is a function returning `DefaultEditorPlugin` with a specific name. If the name can be inferred, it is returned;
|
|
298
|
-
* otherwise, the result is `never`.
|
|
299
|
-
*
|
|
300
|
-
* @returns The inferred plugin name if possible, otherwise `never`.
|
|
301
|
-
*/
|
|
302
|
-
type ExtractPluginName<Plugin> = Plugin extends NextEditorPlugin<any, any> ? Plugin extends (...args: any) => DefaultEditorPlugin<infer PluginName, any> ? PluginName : never : never;
|
|
303
|
-
/********************************
|
|
304
|
-
* *
|
|
305
|
-
* TYPE INFER *
|
|
306
|
-
* *
|
|
307
|
-
*********************************/
|
|
308
|
-
/**
|
|
309
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
310
|
-
*
|
|
311
|
-
* Utility type to check if a given type T is 'any'.
|
|
312
|
-
*
|
|
313
|
-
* This type exploits TypeScript's behavior to determine if a type is 'any'. It leverages the fact that
|
|
314
|
-
* 'any' is the only type assignable to both '1 & T' and '0'. If T is 'any', the type resolves to true;
|
|
315
|
-
* otherwise, it resolves to false.
|
|
316
|
-
*
|
|
317
|
-
* @returns `true` if T is 'any', otherwise `false`.
|
|
318
|
-
*/
|
|
319
|
-
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
320
|
-
/******************************
|
|
321
|
-
* *
|
|
322
|
-
* EDITOR API MAPPED TUPLES *
|
|
323
|
-
* *
|
|
324
|
-
******************************/
|
|
325
|
-
/**
|
|
326
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
327
|
-
*
|
|
328
|
-
* Extracts and lists all required plugins from a tuple list of plugins, excluding any that are marked as optional.
|
|
329
|
-
*
|
|
330
|
-
* This recursive type iterates through a tuple of plugins, filtering out any plugins that are either undefined or
|
|
331
|
-
* explicitly marked as optional (using `OptionalPlugin`). The result is a new tuple containing only the required
|
|
332
|
-
* plugins. This is useful for determining the set of plugins that must be present for a certain feature or
|
|
333
|
-
* configuration to work.
|
|
334
|
-
*
|
|
335
|
-
* @returns A tuple of required plugins, with optional plugins removed.
|
|
336
|
-
*
|
|
337
|
-
* @example
|
|
338
|
-
* ```typescript
|
|
339
|
-
* type MyRequiredPlugins = ExtractRequiredPlugins<[OptionalPlugin<MyPlugin>, MyPlugin2]>;
|
|
340
|
-
*
|
|
341
|
-
* // Type: [MyPlugin2].
|
|
342
|
-
* ```
|
|
343
|
-
*/
|
|
344
|
-
type ExtractRequiredPlugins<TuplePluginList extends [
|
|
345
|
-
...any[]
|
|
346
|
-
]> = TuplePluginList extends [
|
|
347
|
-
infer First,
|
|
348
|
-
...infer Rest
|
|
349
|
-
] ? undefined extends First ? ExtractRequiredPlugins<Rest> : First extends OptionalPlugin<NextEditorPlugin<any, any>> ? ExtractRequiredPlugins<Rest> : First extends NextEditorPlugin<any, any> ? [
|
|
350
|
-
First,
|
|
351
|
-
...ExtractRequiredPlugins<[
|
|
352
|
-
...Rest
|
|
353
|
-
]>
|
|
354
|
-
] : ExtractRequiredPlugins<Rest> : [
|
|
355
|
-
];
|
|
356
|
-
/**
|
|
357
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
358
|
-
*
|
|
359
|
-
* Extracts and lists all optional plugins from a tuple list of plugins, including any that are explicitly marked as
|
|
360
|
-
* optional or are undefined.
|
|
361
|
-
*
|
|
362
|
-
* This type recursively scans through a tuple of plugins, collecting plugins that are either marked as `undefined`
|
|
363
|
-
* or wrapped with `OptionalPlugin`. The result is a new tuple consisting solely of these optional plugins, effectively
|
|
364
|
-
* separating them from the required ones. This type is instrumental in configurations where optional dependencies
|
|
365
|
-
* need to be distinguished from required ones for conditional loading or initialization.
|
|
366
|
-
*
|
|
367
|
-
* @returns A tuple of optional plugins, excluding required ones.
|
|
368
|
-
*
|
|
369
|
-
* @example
|
|
370
|
-
* ```typescript
|
|
371
|
-
* type MyOptionalPlugins = ExtractOptionalPlugins<[OptionalPlugin<MyPlugin>, MyPlugin2]>;
|
|
372
|
-
*
|
|
373
|
-
* // Type: [MyPlugin].
|
|
374
|
-
* ```
|
|
375
|
-
*/
|
|
376
|
-
type ExtractOptionalPlugins<TuplePluginList extends [
|
|
377
|
-
...any[]
|
|
378
|
-
]> = TuplePluginList extends [
|
|
379
|
-
infer First,
|
|
380
|
-
...infer Rest
|
|
381
|
-
] ? undefined extends First ? [
|
|
382
|
-
First,
|
|
383
|
-
...ExtractOptionalPlugins<[
|
|
384
|
-
...Rest
|
|
385
|
-
]>
|
|
386
|
-
] : First extends OptionalPlugin<infer Plugin> ? [
|
|
387
|
-
Plugin,
|
|
388
|
-
...ExtractOptionalPlugins<[
|
|
389
|
-
...Rest
|
|
390
|
-
]>
|
|
391
|
-
] : ExtractOptionalPlugins<[
|
|
392
|
-
...Rest
|
|
393
|
-
]> : [
|
|
394
|
-
];
|
|
395
|
-
/**
|
|
396
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
397
|
-
*
|
|
398
|
-
* Extracts the shared state type from a plugin or its metadata.
|
|
399
|
-
*
|
|
400
|
-
* This type conditionally checks whether the input is a NextEditorPlugin instance or directly NextEditorPluginMetadata.
|
|
401
|
-
* If the input is a plugin instance, it attempts to infer the Metadata type from the plugin's constructor function signature,
|
|
402
|
-
* specifically looking for a shared state definition. If the input is directly plugin metadata, it extracts the shared state
|
|
403
|
-
* definition directly from the metadata.
|
|
404
|
-
*
|
|
405
|
-
* @returns The type of the shared state if defined, otherwise `never`.
|
|
406
|
-
*/
|
|
407
|
-
export type ExtractPluginSharedState<PluginOrMetadata> = PluginOrMetadata extends NextEditorPlugin<any, any> ? PluginOrMetadata extends (props: {
|
|
408
|
-
api: any;
|
|
409
|
-
config: any;
|
|
410
|
-
}) => DefaultEditorPlugin<any, infer Metadata> ? ExtractSharedStateFromMetadata<Metadata> : never : PluginOrMetadata extends NextEditorPluginMetadata ? ExtractSharedStateFromMetadata<PluginOrMetadata> : never;
|
|
411
|
-
/**
|
|
412
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
413
|
-
*
|
|
414
|
-
* Extracts the actions definition from a plugin or its metadata.
|
|
415
|
-
*
|
|
416
|
-
* Similar to `ExtractPluginSharedState`, this type discerns whether it is dealing with a NextEditorPlugin instance
|
|
417
|
-
* or its metadata. It then attempts to extract or infer the actions defined within. For a plugin instance, it looks
|
|
418
|
-
* into the plugin's constructor function signature to infer the Metadata and subsequently extracts any actions defined.
|
|
419
|
-
* If dealing with plugin metadata directly, it extracts the actions from there.
|
|
420
|
-
*
|
|
421
|
-
* @returns The actions definition if available, otherwise `never`.
|
|
422
|
-
*/
|
|
423
|
-
export type ExtractPluginActions<PluginOrMetadata> = PluginOrMetadata extends NextEditorPlugin<any, any> ? PluginOrMetadata extends (props: {
|
|
424
|
-
api: any;
|
|
425
|
-
config: any;
|
|
426
|
-
}) => DefaultEditorPlugin<any, infer Metadata> ? ExtractActionsFromMetadata<Metadata> : never : PluginOrMetadata extends NextEditorPluginMetadata ? ExtractActionsFromMetadata<PluginOrMetadata> : never;
|
|
427
|
-
/*****************************
|
|
428
|
-
* *
|
|
429
|
-
* MAPPED TYPES *
|
|
430
|
-
* *
|
|
431
|
-
******************************/
|
|
432
|
-
/**
|
|
433
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
434
|
-
*
|
|
435
|
-
* Constructs a unified API object from a list of plugins, combining the optional injection APIs of each.
|
|
436
|
-
*
|
|
437
|
-
* This type recursively processes a list of plugins, extracting the name and metadata from each to construct
|
|
438
|
-
* an `EditorOptionalInjectionAPI` for it. These APIs are then combined into a single object, allowing for
|
|
439
|
-
* a comprehensive API interface that includes all provided plugins.
|
|
440
|
-
*
|
|
441
|
-
* @returns An object representing the combined API of all plugins in the list.
|
|
442
|
-
*
|
|
443
|
-
* @example
|
|
444
|
-
* ```typescript
|
|
445
|
-
* type MyEditorAPI = PublicPluginAPIFromPlugins<[PluginA, PluginB]>;
|
|
446
|
-
* ```
|
|
447
|
-
*/
|
|
448
|
-
type PublicPluginAPIFromPlugins<PluginList extends NextEditorPlugin<any, any>[]> = PluginList extends [
|
|
449
|
-
infer Head,
|
|
450
|
-
...infer Tail
|
|
451
|
-
] ? Head extends NextEditorPlugin<infer Name, infer Metadata> ? EditorOptionalInjectionAPI<Name, Metadata> & PublicPluginAPIFromPlugins<Tail extends NextEditorPlugin<any, any>[] ? Tail : [
|
|
452
|
-
]> : {} : {};
|
|
453
|
-
/**
|
|
454
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
455
|
-
*
|
|
456
|
-
* Generates an object type mapping each plugin's name to its dependencies API, ensuring all dependencies are required.
|
|
457
|
-
*
|
|
458
|
-
* This type iterates over a list of plugins, extracting each plugin's name and associating it with its respective
|
|
459
|
-
* dependencies API (`PluginDependenciesAPI`). The resulting object type requires all listed plugins to have their
|
|
460
|
-
* dependencies satisfied, making this useful for constructing contexts where all plugin dependencies are mandatory.
|
|
461
|
-
*
|
|
462
|
-
* @returns An object type with a required dependencies API for each plugin.
|
|
463
|
-
*/
|
|
464
|
-
type RequiredPluginDependenciesAPI<PluginList extends NextEditorPlugin<any, any>[]> = {
|
|
465
|
-
[Plugin in PluginList[number] as `${ExtractPluginName<Plugin>}`]: PluginDependenciesAPI<Plugin>;
|
|
466
|
-
};
|
|
467
|
-
/**
|
|
468
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
469
|
-
*
|
|
470
|
-
* Creates an object type mapping each plugin's name to its dependencies API, marking all dependencies as optional.
|
|
471
|
-
*
|
|
472
|
-
* Similar to `RequiredPluginDependenciesAPI`, but marks each plugin's dependencies API as optional. This is particularly
|
|
473
|
-
* useful in scenarios where plugins may have optional functionality that should not enforce the presence of certain
|
|
474
|
-
* dependencies.
|
|
475
|
-
*
|
|
476
|
-
* @returns An object type with an optional dependencies API for each plugin.
|
|
477
|
-
*/
|
|
478
|
-
type OptionalPluginDependenciesAPI<PluginList extends NextEditorPlugin<any, any>[]> = {
|
|
479
|
-
[Plugin in PluginList[number] as `${ExtractPluginName<Plugin>}`]+?: PluginDependenciesAPI<Plugin> | undefined;
|
|
480
|
-
};
|
|
481
|
-
/**
|
|
482
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
483
|
-
*
|
|
484
|
-
* Constructs a dependencies API object for a plugin itself, identified by its name, using its metadata.
|
|
485
|
-
*
|
|
486
|
-
* This type maps the plugin's name to its own `BasePluginDependenciesAPI` based on its metadata. It's useful for
|
|
487
|
-
* creating a self-reference within the plugin's API, allowing the plugin to access its own shared state, actions,
|
|
488
|
-
* and commands.
|
|
489
|
-
*
|
|
490
|
-
* @returns An object with the plugin's own dependencies API.
|
|
491
|
-
*/
|
|
492
|
-
type SelfPluginDependenciesAPI<Name extends string, Metadata extends NextEditorPluginMetadata> = {
|
|
493
|
-
[Plugin in Name]: BasePluginDependenciesAPI<Metadata>;
|
|
494
|
-
};
|
|
495
|
-
/**
|
|
496
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
497
|
-
*
|
|
498
|
-
* Similar to `SelfPluginDependenciesAPI`, but marks the plugin's own dependencies API as optional.
|
|
499
|
-
*/
|
|
500
|
-
type SelfOptionalPluginDependenciesAPI<Name extends string, Metadata extends NextEditorPluginMetadata> = {
|
|
501
|
-
[Plugin in Name]?: BasePluginDependenciesAPI<Metadata> | undefined;
|
|
502
|
-
};
|
|
503
|
-
/*************************
|
|
504
|
-
* *
|
|
505
|
-
* PUBLIC TYPES *
|
|
506
|
-
* *
|
|
507
|
-
*************************/
|
|
508
|
-
/**
|
|
509
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
510
|
-
*
|
|
511
|
-
* ⚠️⚠️⚠️ Any breaking change here will have a massive impact across all Editor Plugin packages ⚠️⚠️⚠️
|
|
512
|
-
*
|
|
513
|
-
* The runtime implementation for NextEditorPlugin.
|
|
514
|
-
*
|
|
515
|
-
* All types prefixed `With` are being used in the EditorInjectionAPI.
|
|
516
|
-
* Some infer operations required this intersection approach.
|
|
517
|
-
*
|
|
518
|
-
* @example
|
|
519
|
-
* For instance, when a `sharedState` is declared in NextEditorPluginMetadata
|
|
520
|
-
* then the plugin needs to implement a `getSharedState` function.
|
|
521
|
-
*
|
|
522
|
-
* @see WithSharedState
|
|
523
|
-
* @see WithActions
|
|
524
|
-
* @see WithCommands
|
|
525
|
-
*/
|
|
526
|
-
export type DefaultEditorPlugin<Name extends string, Metadata extends NextEditorPluginMetadata> = EditorPlugin & WithSharedState<Metadata> & WithActions<Metadata> & WithCommands<Metadata> & {
|
|
527
|
-
name: Name;
|
|
528
|
-
};
|
|
529
|
-
/**
|
|
530
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
531
|
-
*
|
|
532
|
-
* ⚠️⚠️⚠️ Any breaking change here will have a massive impact across all Editor Plugin packages ⚠️⚠️⚠️
|
|
533
|
-
*
|
|
534
|
-
* If you are not from Editor Platform FE, you shouldn't be using or changing this.
|
|
535
|
-
*/
|
|
536
|
-
export interface NextEditorPluginMetadata {
|
|
537
|
-
/**
|
|
538
|
-
* @see NextEditorPluginActions
|
|
539
|
-
*/
|
|
540
|
-
readonly actions?: NextEditorPluginActions;
|
|
541
|
-
/**
|
|
542
|
-
*
|
|
543
|
-
* @see NextEditorEditorCommands
|
|
544
|
-
*/
|
|
545
|
-
readonly commands?: NextEditorEditorCommands;
|
|
546
|
-
/**
|
|
547
|
-
* This is used only on compile time. There is no runtime implementation for the dependencies
|
|
548
|
-
* @see DependencyPlugin
|
|
549
|
-
*/
|
|
550
|
-
readonly dependencies?: DependencyPlugin[];
|
|
551
|
-
/**
|
|
552
|
-
* The real implementation will be infered by Preset internal types and @see NextEditorPluginFunctionOptionalConfigDefinition
|
|
553
|
-
*/
|
|
554
|
-
readonly pluginConfiguration?: any;
|
|
555
|
-
/**
|
|
556
|
-
* The real implementation will be infered by BasePluginDependenciesAPI and other
|
|
557
|
-
* internal types.
|
|
558
|
-
*/
|
|
559
|
-
readonly sharedState?: any;
|
|
560
|
-
}
|
|
561
|
-
/**
|
|
562
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
563
|
-
*
|
|
564
|
-
* ⚠️⚠️⚠️ Any breaking change here will have a massive impact across all Editor Plugin packages ⚠️⚠️⚠️
|
|
565
|
-
*/
|
|
566
|
-
export type NextEditorPluginFunctionOptionalConfigDefinition<Name extends string, Metadata extends NextEditorPluginMetadata, Configuration = undefined> = (props: {
|
|
567
|
-
api?: {
|
|
568
|
-
[Plugin in Name]: BasePluginDependenciesAPI<Metadata>;
|
|
569
|
-
} & RequiredPluginDependenciesAPI<ExtractRequiredPlugins<[
|
|
570
|
-
CorePlugin,
|
|
571
|
-
...ExtractPluginDependenciesFromMetadata<Metadata>
|
|
572
|
-
]>> & OptionalPluginDependenciesAPI<ExtractOptionalPlugins<ExtractPluginDependenciesFromMetadata<Metadata>>>;
|
|
573
|
-
config: Configuration;
|
|
574
|
-
}) => DefaultEditorPlugin<Name, Metadata>;
|
|
575
|
-
/**
|
|
576
|
-
* 📢 Public Type API: Helps Editor Plugin developers to defined optional dependencies for their plugins.
|
|
577
|
-
*
|
|
578
|
-
* You shouldn't be using this in any other place outside the `NextEditorPlugin`.
|
|
579
|
-
*
|
|
580
|
-
* @example
|
|
581
|
-
* ```typescript
|
|
582
|
-
* const toolbarPlugin: NextEditorPlugin<'toolbar', {
|
|
583
|
-
* dependencies: [
|
|
584
|
-
* OptionalPlugin<TablePlugin>,
|
|
585
|
-
* ListsPlugin,
|
|
586
|
-
* ]
|
|
587
|
-
* }>
|
|
588
|
-
* ```
|
|
589
|
-
*
|
|
590
|
-
* Later on, this will be used by
|
|
591
|
-
*
|
|
592
|
-
* @see ExtractInjectionAPI - Optional dependencies will need can be undefined on runtime. So, a null-check is required
|
|
593
|
-
*/
|
|
594
|
-
export type OptionalPlugin<EditorPlugin extends NextEditorPlugin<any, any>> = EditorPlugin & OptionalPrivateProperty;
|
|
595
|
-
/**
|
|
596
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
597
|
-
*
|
|
598
|
-
* @see NextEditorPluginMetadata
|
|
599
|
-
*/
|
|
600
|
-
export type DependencyPlugin = OptionalPlugin<NextEditorPlugin<any, any>> | NextEditorPlugin<any, any>;
|
|
601
|
-
/**
|
|
602
|
-
* 📢 Public Type API
|
|
603
|
-
*
|
|
604
|
-
* The base type for the entire Editor Plugin Ecosystem.
|
|
605
|
-
*
|
|
606
|
-
* The first parameter is the only one required,
|
|
607
|
-
* it used to force the plugin to have a runtime string:
|
|
608
|
-
*
|
|
609
|
-
* ```typescript
|
|
610
|
-
* const plugin: NextEditorPlugin<'hello'> = () => ({
|
|
611
|
-
* // This string should match the name declared in the `NextEditorPlugin`
|
|
612
|
-
* name: 'hello',
|
|
613
|
-
* })
|
|
614
|
-
*
|
|
615
|
-
* // Later, this name is how other plugins will be able access your plugin API:
|
|
616
|
-
* // api?.hello?.actions
|
|
617
|
-
* ```
|
|
618
|
-
*
|
|
619
|
-
* @see NextEditorPluginMetadata for the second parameter
|
|
620
|
-
*/
|
|
621
|
-
export type NextEditorPlugin<Name extends string, Metadata extends NextEditorPluginMetadata = {}> = Metadata extends NextEditorPluginMetadata ? 'pluginConfiguration' extends keyof Metadata ? NextEditorPluginFunctionOptionalConfigDefinition<Name, Metadata, Metadata['pluginConfiguration']> : NextEditorPluginFunctionOptionalConfigDefinition<Name, Metadata> : never;
|
|
622
|
-
type Unsubscribe = () => void;
|
|
623
|
-
/**
|
|
624
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
625
|
-
*
|
|
626
|
-
*/
|
|
627
|
-
export type BasePluginDependenciesAPI<Metadata extends NextEditorPluginMetadata> = {
|
|
628
|
-
actions: ExtractPluginActions<Metadata>;
|
|
629
|
-
commands: ExtractCommandsFromMetadata<Metadata>;
|
|
630
|
-
sharedState: {
|
|
631
|
-
currentState: () => ExtractPluginSharedState<Metadata> | undefined;
|
|
632
|
-
onChange: (sub: (props: {
|
|
633
|
-
nextSharedState: ExtractPluginSharedState<Metadata>;
|
|
634
|
-
prevSharedState: ExtractPluginSharedState<Metadata>;
|
|
635
|
-
}) => void) => Unsubscribe;
|
|
636
|
-
};
|
|
637
|
-
};
|
|
638
|
-
/**
|
|
639
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
640
|
-
*
|
|
641
|
-
* Type that defines a Editor API based on a NextEditorPlugin.
|
|
642
|
-
*
|
|
643
|
-
*
|
|
644
|
-
* If you are not from Editor Platform FE, you shouldn't be using or changing this.
|
|
645
|
-
*/
|
|
646
|
-
export type PluginDependenciesAPI<Plugin extends NextEditorPlugin<any, any>> = Plugin extends NextEditorPlugin<any, infer Metadata> ? BasePluginDependenciesAPI<Metadata> : never;
|
|
647
|
-
/**
|
|
648
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
649
|
-
*
|
|
650
|
-
*
|
|
651
|
-
* Type to enable thats create a API based ona single plugin:
|
|
652
|
-
*
|
|
653
|
-
* - The plugin itself will become a required property
|
|
654
|
-
* - Its optional dependencies will become a non-required property
|
|
655
|
-
* - Its required dependencies will become a required property
|
|
656
|
-
* - Core will be a required property
|
|
657
|
-
*/
|
|
658
|
-
export type EditorInjectionAPI<Name extends string, Metadata extends NextEditorPluginMetadata> = {
|
|
659
|
-
core: PluginDependenciesAPI<CorePlugin>;
|
|
660
|
-
} & SelfPluginDependenciesAPI<Name, Metadata> & RequiredPluginDependenciesAPI<ExtractRequiredPlugins<ExtractPluginDependenciesFromMetadata<Metadata>>> & OptionalPluginDependenciesAPI<ExtractOptionalPlugins<ExtractPluginDependenciesFromMetadata<Metadata>>>;
|
|
661
|
-
/**
|
|
662
|
-
* 🧱 Internal Type: Editor FE Platform
|
|
663
|
-
*
|
|
664
|
-
* Helper type to enable thats create a fully optional API based ona single plugin:
|
|
665
|
-
*
|
|
666
|
-
* - The plugin itself will become a non-required property
|
|
667
|
-
* - Its optional dependencies will become a non-required property
|
|
668
|
-
* - Its required dependencies will become a non-required property
|
|
669
|
-
* - Core will be a required property
|
|
670
|
-
*/
|
|
671
|
-
export type EditorOptionalInjectionAPI<Name extends string, Metadata extends NextEditorPluginMetadata> = {
|
|
672
|
-
core: PluginDependenciesAPI<CorePlugin>;
|
|
673
|
-
} & SelfOptionalPluginDependenciesAPI<Name, Metadata> & OptionalPluginDependenciesAPI<ExtractRequiredPlugins<ExtractPluginDependenciesFromMetadata<Metadata>>> & OptionalPluginDependenciesAPI<ExtractOptionalPlugins<ExtractPluginDependenciesFromMetadata<Metadata>>>;
|
|
674
|
-
/**
|
|
675
|
-
* 📢 Public Type API: Helps Editor Plugin developers to build the EditorInjectAPI type for their internal plugin development.
|
|
676
|
-
*
|
|
677
|
-
* You should use this API if you are:
|
|
678
|
-
* - Working inside a EditorPlugin package, e.g.: `@atlaskit/editor-table-plugin`.
|
|
679
|
-
* - Trying to use it to receive an API from the NextEditorPlugin argument.
|
|
680
|
-
*
|
|
681
|
-
* You should not use this API if you are:
|
|
682
|
-
*
|
|
683
|
-
* - Using it outside an EditorPlugin package
|
|
684
|
-
* - Trying to use it to receive an API directly from EditorPresetBuilder
|
|
685
|
-
*
|
|
686
|
-
* This type will used the base plugin dependencies to build the type.
|
|
687
|
-
* ```typescript
|
|
688
|
-
*
|
|
689
|
-
* type PluginDog = NextEditorPlugin<'dog'>;
|
|
690
|
-
* type PluginBark = NextEditorPlugin<'bark', { dependencies: [PluginDog], actions: { doBark: () => void }}>;
|
|
691
|
-
*
|
|
692
|
-
* type MyPlugin = NextEditorPlugin<'myPlugin', { dependencies: [PluginBark] }>;
|
|
693
|
-
* type MyAPI = ExtractInjectionAPI<MyPlugin>;
|
|
694
|
-
*
|
|
695
|
-
* const somePluginInternalFunction = (api?: MyAPI) => {
|
|
696
|
-
* api?.bark.actions.doBark();
|
|
697
|
-
* }
|
|
698
|
-
* ```
|
|
699
|
-
*
|
|
700
|
-
* If the dependency is marked as OptionalPlugin then the API will return it as optional property too:
|
|
701
|
-
*
|
|
702
|
-
*```typescript
|
|
703
|
-
*
|
|
704
|
-
* type PluginDog = NextEditorPlugin<'dog'>;
|
|
705
|
-
* type PluginBark = NextEditorPlugin<'bark', { dependencies: [PluginDog], actions: { doBark: () => void }}>;
|
|
706
|
-
*
|
|
707
|
-
* type MyPlugin = NextEditorPlugin<'myPlugin', { dependencies: [OptionalPlugin<PluginBark>] }>;
|
|
708
|
-
* type MyAPI = ExtractInjectionAPI<MyPlugin>;
|
|
709
|
-
*
|
|
710
|
-
* const somePluginInternalFunction = (api?: MyAPI) => {
|
|
711
|
-
* // Now, you will need to do a null check
|
|
712
|
-
* api?.bark?.actions.doBark();
|
|
713
|
-
* }
|
|
714
|
-
* ```
|
|
715
|
-
*
|
|
716
|
-
* A `NextEditorPlugin` will receive an `api` argument that match with this helper type:
|
|
717
|
-
* ```typescript
|
|
718
|
-
*
|
|
719
|
-
* type PluginDog = NextEditorPlugin<'dog'>;
|
|
720
|
-
*
|
|
721
|
-
* const dogPlugin: PluginDog = ({ api }) => {
|
|
722
|
-
* type ReceivedAPI = typeof api;
|
|
723
|
-
* type BuiltAPI = ExtractInjectionAPI<PluginDog>;
|
|
724
|
-
*
|
|
725
|
-
* type AssertTrue = BuiltAPI extends ReceivedAPI ? true : false;
|
|
726
|
-
* return {
|
|
727
|
-
* name: 'dog';
|
|
728
|
-
* }
|
|
729
|
-
* };
|
|
730
|
-
* ```
|
|
731
|
-
*
|
|
732
|
-
* However, this is not compatible with the EditorPresetBuilder API
|
|
733
|
-
* due to possibility some plugins maybe be not be available on runtime.
|
|
734
|
-
*
|
|
735
|
-
* ```typescript
|
|
736
|
-
*
|
|
737
|
-
* type PluginDog = NextEditorPlugin<'dog'>;
|
|
738
|
-
*
|
|
739
|
-
* const dogPlugin: PluginDog = ({ api }) => ({ name: 'dog' });
|
|
740
|
-
* const preset = new EditorPresetBuilder()
|
|
741
|
-
* .maybeAdd(dogPlugin, false);
|
|
742
|
-
*
|
|
743
|
-
* type BuiltAPI = ExtractInjectionAPI<typeof dogPlugin>;
|
|
744
|
-
* type PresetAPI = ExtractPresetAPI<typeof preset>;
|
|
745
|
-
*
|
|
746
|
-
*
|
|
747
|
-
* type AssertFalse = BuiltAPI extends PresetAPI ? true : false;
|
|
748
|
-
* // If you need to match the API from a Preset, you should use `PublicPluginAPI`
|
|
749
|
-
*
|
|
750
|
-
* ```
|
|
751
|
-
*
|
|
752
|
-
* P.S.: This type will implicitly inject the CorePlugin as required attribute.
|
|
753
|
-
*/
|
|
754
|
-
export type ExtractInjectionAPI<Plugin extends NextEditorPlugin<any, any>> = Plugin extends NextEditorPlugin<infer Name, infer Metadata> ? EditorInjectionAPI<Name, Metadata> : never;
|
|
755
|
-
/**
|
|
756
|
-
* 📢 Public Type API: Helps Product developers to build the EditorInjectAPI type for external use in the product codebase.
|
|
757
|
-
*
|
|
758
|
-
* You may use more than one plugin:
|
|
759
|
-
* ```typescript
|
|
760
|
-
* PublicPluginAPI<[PluginDog, PluginCat]>
|
|
761
|
-
* ```
|
|
762
|
-
*
|
|
763
|
-
* You should use this API if you are:
|
|
764
|
-
* - Working inside a non EditorPlugin, e.g.: `@atlaskit/chat-ai-mate`.
|
|
765
|
-
* - Trying to use it to receive an API directly from EditorPresetBuilder
|
|
766
|
-
*
|
|
767
|
-
* - Working
|
|
768
|
-
*
|
|
769
|
-
* The API type will consider all plugins as optional. That means,
|
|
770
|
-
* you will need to do the null safe check when using the type implementation,
|
|
771
|
-
*
|
|
772
|
-
* ```typescript
|
|
773
|
-
*
|
|
774
|
-
* type MyCustomEditorPlugin = NextEditorPlugin<'custom', { actions: { something: () => boolean } }>;
|
|
775
|
-
* const myPlugin: MyCustomEditorPlugin = () => ({ name: 'custom', actions: { something: () => true }});
|
|
776
|
-
*
|
|
777
|
-
* type Props = {
|
|
778
|
-
* api?: PublicPluginAPI<[MyCustomEditorPlugin]>
|
|
779
|
-
* }
|
|
780
|
-
*
|
|
781
|
-
* // There is no way to guarantee the API will have the plugin requested.
|
|
782
|
-
* // So, this will force developers to do the safe check.
|
|
783
|
-
* function useMyHook({ api }: Props) {
|
|
784
|
-
* api?.custom?.actions.something();
|
|
785
|
-
* return null;
|
|
786
|
-
* }
|
|
787
|
-
* ```
|
|
788
|
-
*
|
|
789
|
-
* P.S.: This type will implicitly inject the CorePlugin as required attribute.
|
|
790
|
-
*/
|
|
791
|
-
export type PublicPluginAPI<MaybePlugin extends NextEditorPlugin<any, any>[] | NextEditorPlugin<any, any>> = MaybePlugin extends NextEditorPlugin<infer Name, infer Metadata> ? EditorOptionalInjectionAPI<Name, Metadata> : PublicPluginAPIFromPlugins<MaybePlugin extends NextEditorPlugin<any, any>[] ? MaybePlugin : never>;
|
|
792
|
-
export {};
|