@atlaskit/editor-common 107.28.2 → 107.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/afm-cc/tsconfig.json +7 -4
- package/dist/cjs/block-menu/messages.js +6 -1
- package/dist/cjs/messages/block-menu.js +3 -3
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/shared/smartCard.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/block-menu/messages.js +6 -1
- package/dist/es2019/messages/block-menu.js +3 -3
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/smartCard.js +2 -2
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/block-menu/messages.js +6 -1
- package/dist/esm/messages/block-menu.js +3 -3
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/shared/smartCard.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/api.d.ts +2 -2
- package/dist/types/analytics/types/activity-session-events.d.ts +14 -14
- package/dist/types/analytics/types/ai-definitions-events.d.ts +1 -1
- package/dist/types/analytics/types/ai-events.d.ts +2 -2
- package/dist/types/analytics/types/ai-inline-suggestion-events.d.ts +2 -2
- package/dist/types/analytics/types/ai-proactive-events.d.ts +12 -12
- package/dist/types/analytics/types/ai-unified-events.d.ts +11 -11
- package/dist/types/analytics/types/breakout-events.d.ts +4 -4
- package/dist/types/analytics/types/config-panel-events.d.ts +3 -3
- package/dist/types/analytics/types/cut-copy-events.d.ts +4 -4
- package/dist/types/analytics/types/datasource-clicked-events.d.ts +2 -2
- package/dist/types/analytics/types/date-events.d.ts +1 -1
- package/dist/types/analytics/types/element-events.d.ts +4 -4
- package/dist/types/analytics/types/events.d.ts +23 -23
- package/dist/types/analytics/types/extension-events.d.ts +5 -5
- package/dist/types/analytics/types/format-events.d.ts +6 -6
- package/dist/types/analytics/types/general-events.d.ts +32 -32
- package/dist/types/analytics/types/highlight-actions-menu-events.d.ts +1 -1
- package/dist/types/analytics/types/highlight-events.d.ts +1 -1
- package/dist/types/analytics/types/inline-comment-events.d.ts +1 -1
- package/dist/types/analytics/types/insert-events.d.ts +26 -26
- package/dist/types/analytics/types/link-events.d.ts +1 -1
- package/dist/types/analytics/types/link-tool-bar-events.d.ts +17 -17
- package/dist/types/analytics/types/list-events.d.ts +8 -8
- package/dist/types/analytics/types/loom-events.d.ts +1 -1
- package/dist/types/analytics/types/media-events.d.ts +9 -9
- package/dist/types/analytics/types/mention-events.d.ts +30 -30
- package/dist/types/analytics/types/move-content-events.d.ts +3 -3
- package/dist/types/analytics/types/ncs-session-step-events.d.ts +3 -3
- package/dist/types/analytics/types/node-events.d.ts +5 -5
- package/dist/types/analytics/types/offline-editing-event.d.ts +5 -5
- package/dist/types/analytics/types/paste-events.d.ts +6 -6
- package/dist/types/analytics/types/performance-report.d.ts +6 -6
- package/dist/types/analytics/types/referentiality-events.d.ts +2 -2
- package/dist/types/analytics/types/selection-events.d.ts +1 -1
- package/dist/types/analytics/types/smart-links.d.ts +2 -2
- package/dist/types/analytics/types/substitute-events.d.ts +1 -1
- package/dist/types/analytics/types/table-events.d.ts +19 -19
- package/dist/types/analytics/types/type-ahead.d.ts +3 -3
- package/dist/types/analytics/types/utils.d.ts +6 -6
- package/dist/types/analytics/types/view-events.d.ts +2 -2
- package/dist/types/annotation/index.d.ts +39 -39
- package/dist/types/block-menu/messages.d.ts +5 -0
- package/dist/types/card/LinkToolbarButtonGroup.d.ts +5 -5
- package/dist/types/card/MediaAndEmbedsToolbar/index.d.ts +2 -2
- package/dist/types/card/cardOptions.d.ts +36 -36
- package/dist/types/card/types.d.ts +8 -8
- package/dist/types/collab/index.d.ts +71 -71
- package/dist/types/doc-utils/editor-use-only.d.ts +1 -1
- package/dist/types/element-browser/ElementBrowser.d.ts +9 -9
- package/dist/types/element-browser/ViewMore.d.ts +1 -1
- package/dist/types/element-browser/components/CategoryList.d.ts +1 -1
- package/dist/types/element-browser/components/ElementList/ElementList.d.ts +11 -11
- package/dist/types/element-browser/components/ElementList/EmptyState.d.ts +1 -1
- package/dist/types/element-browser/components/ElementSearch.d.ts +4 -4
- package/dist/types/element-browser/components/StatelessElementBrowser.d.ts +14 -14
- package/dist/types/element-browser/hooks/use-select-and-focus-on-arrow-navigation.d.ts +12 -12
- package/dist/types/element-browser/types.d.ts +2 -2
- package/dist/types/extensibility/Extension/Extension/index.d.ts +12 -12
- package/dist/types/extensibility/Extension/InlineExtension/index.d.ts +5 -5
- package/dist/types/extensibility/Extension/LegacyContentHeader/index.d.ts +1 -1
- package/dist/types/extensibility/Extension/Lozenge/EditToggle.d.ts +2 -2
- package/dist/types/extensibility/Extension/Lozenge/ExtensionLabel.d.ts +6 -6
- package/dist/types/extensibility/Extension/Lozenge/LozengeComponent.d.ts +11 -11
- package/dist/types/extensibility/Extension/Lozenge/index.d.ts +9 -9
- package/dist/types/extensibility/Extension.d.ts +8 -8
- package/dist/types/extensibility/ExtensionComponent.d.ts +13 -13
- package/dist/types/extensibility/ExtensionNodeWrapper.d.ts +1 -1
- package/dist/types/extensibility/MultiBodiedExtension/action-api.d.ts +5 -5
- package/dist/types/extensibility/MultiBodiedExtension/index.d.ts +10 -10
- package/dist/types/extensibility/extensionNodeView.d.ts +8 -8
- package/dist/types/extensions/extension-handlers.d.ts +1 -1
- package/dist/types/extensions/types/extension-handler.d.ts +10 -10
- package/dist/types/extensions/types/extension-manifest-toolbar-item.d.ts +13 -13
- package/dist/types/extensions/types/extension-manifest.d.ts +26 -26
- package/dist/types/extensions/types/extension-provider.d.ts +3 -3
- package/dist/types/extensions/types/field-definitions.d.ts +40 -40
- package/dist/types/extensions/types/utils.d.ts +7 -7
- package/dist/types/floating-toolbar/DropdownMenuExtensionItems.d.ts +4 -4
- package/dist/types/floating-toolbar/DropdownMenuItem.d.ts +10 -10
- package/dist/types/guideline/relativeGuideline.d.ts +1 -1
- package/dist/types/guideline/types.d.ts +9 -9
- package/dist/types/guideline/updateGuideline.d.ts +1 -1
- package/dist/types/guideline/utils.d.ts +2 -2
- package/dist/types/icons/shared/DynamicStrokeIconDecoration.d.ts +1 -1
- package/dist/types/icons/shared/SteppedRainbowIconDecoration.d.ts +1 -1
- package/dist/types/insert/index.d.ts +2 -2
- package/dist/types/keymaps/index.d.ts +2 -2
- package/dist/types/lazy-node-view/index.d.ts +3 -3
- package/dist/types/link/ConfigureLinkOverlay/Dropdown.d.ts +3 -3
- package/dist/types/link/ConfigureLinkOverlay/handleNavigation.d.ts +1 -1
- package/dist/types/link/ConfigureLinkOverlay/index.d.ts +2 -2
- package/dist/types/link/LinkPicker/EditorLinkPicker/index.d.ts +3 -3
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +12 -12
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +8 -8
- package/dist/types/link/LinkSearch/LinkSearchList.d.ts +6 -6
- package/dist/types/link/LinkSearch/LinkSearchListItem.d.ts +4 -4
- package/dist/types/link/LinkSearch/types.d.ts +11 -11
- package/dist/types/link/types.d.ts +9 -9
- package/dist/types/lists/indentation.d.ts +1 -1
- package/dist/types/lists/node.d.ts +2 -2
- package/dist/types/lists/replace-content.d.ts +1 -1
- package/dist/types/lists/selection.d.ts +1 -1
- package/dist/types/media-inline/inline-image-card.d.ts +4 -4
- package/dist/types/media-inline/inline-image-wrapper.d.ts +3 -3
- package/dist/types/media-inline/media-inline-image-card.d.ts +8 -8
- package/dist/types/media-inline/types.d.ts +4 -4
- package/dist/types/media-inline/views/error-view.d.ts +3 -3
- package/dist/types/media-inline/views/loading-view.d.ts +2 -2
- package/dist/types/media-single/CommentBadge.d.ts +6 -6
- package/dist/types/media-single/CommentBadgeNext.d.ts +1 -1
- package/dist/types/media-single/MediaBadges.d.ts +4 -4
- package/dist/types/media-single/utils.d.ts +5 -5
- package/dist/types/node-visibility/node-visibility-manager.d.ts +5 -5
- package/dist/types/portal/PortalManager.d.ts +1 -1
- package/dist/types/portal/common.d.ts +2 -2
- package/dist/types/preset/builder.d.ts +1 -1
- package/dist/types/preset/plugin-injection-api.d.ts +3 -3
- package/dist/types/provider-factory/card-provider.d.ts +1 -1
- package/dist/types/provider-factory/context-identifier-provider.d.ts +1 -1
- package/dist/types/provider-factory/image-upload-provider.d.ts +1 -1
- package/dist/types/provider-factory/macro-provider.d.ts +4 -4
- package/dist/types/provider-factory/media-provider.d.ts +5 -5
- package/dist/types/provider-factory/profile-card-provider.d.ts +1 -1
- package/dist/types/provider-factory/quick-insert-provider.d.ts +10 -10
- package/dist/types/provider-factory/search-provider.d.ts +3 -3
- package/dist/types/provider-factory/types.d.ts +11 -11
- package/dist/types/provider-helpers/promise-helpers.d.ts +1 -1
- package/dist/types/quick-insert/use-icon-themed.d.ts +1 -1
- package/dist/types/react-node-view/getInlineNodeViewProducer.d.ts +6 -6
- package/dist/types/react-node-view/index.d.ts +1 -1
- package/dist/types/resizer/BreakoutResizer.d.ts +10 -10
- package/dist/types/resizer/Resizer.d.ts +32 -32
- package/dist/types/resizer/types.d.ts +2 -2
- package/dist/types/safe-plugin/index.d.ts +1 -1
- package/dist/types/selection/gap-cursor/actions.d.ts +1 -1
- package/dist/types/selection/gap-cursor/selection.d.ts +1 -1
- package/dist/types/selection/index.d.ts +1 -1
- package/dist/types/selection/types.d.ts +3 -3
- package/dist/types/table/SortingIcon.d.ts +1 -1
- package/dist/types/toolbar/context.d.ts +1 -1
- package/dist/types/types/annotation/index.d.ts +43 -43
- package/dist/types/types/copy-button.d.ts +8 -8
- package/dist/types/types/doc-builder.d.ts +1 -1
- package/dist/types/types/editor-actions.d.ts +6 -6
- package/dist/types/types/editor-container-width.d.ts +7 -7
- package/dist/types/types/editor-plugin.d.ts +33 -33
- package/dist/types/types/empty-state-handler.d.ts +1 -1
- package/dist/types/types/feature-flags.d.ts +107 -107
- package/dist/types/types/feedback-dialog.d.ts +5 -5
- package/dist/types/types/floating-toolbar.d.ts +142 -142
- package/dist/types/types/hyperlink.d.ts +10 -10
- package/dist/types/types/input-rules.d.ts +1 -1
- package/dist/types/types/next-editor-plugin.d.ts +47 -47
- package/dist/types/types/performance-tracking.d.ts +90 -90
- package/dist/types/types/plugin-factory.d.ts +6 -6
- package/dist/types/types/prosemirror-config.d.ts +1 -1
- package/dist/types/types/quick-insert.d.ts +9 -9
- package/dist/types/types/selection-toolbar.d.ts +2 -2
- package/dist/types/types/supported-browsers.d.ts +1 -1
- package/dist/types/types/tables.d.ts +3 -3
- package/dist/types/types/text-formatting.d.ts +14 -14
- package/dist/types/types/toolbar.d.ts +2 -2
- package/dist/types/types/type-ahead.d.ts +29 -29
- package/dist/types/types/ui-components.d.ts +7 -7
- package/dist/types/types/user-preferences.d.ts +6 -6
- package/dist/types/ugc-tokens/editor-ugc-token-names.d.ts +1 -1
- package/dist/types/ui/Announcer/announcer.d.ts +5 -5
- package/dist/types/ui/AssistiveText/AssistiveText.d.ts +2 -2
- package/dist/types/ui/BaseTheme/index.d.ts +2 -2
- package/dist/types/ui/Caption/index.d.ts +2 -2
- package/dist/types/ui/ContextPanel/context.d.ts +4 -4
- package/dist/types/ui/DropList/index.d.ts +7 -7
- package/dist/types/ui/Emoji/index.d.ts +3 -3
- package/dist/types/ui/ErrorBoundary/index.d.ts +1 -1
- package/dist/types/ui/EventHandlers/index.d.ts +7 -7
- package/dist/types/ui/Expand/sharedStyles.d.ts +2 -2
- package/dist/types/ui/FloatingToolbar/Button.d.ts +20 -20
- package/dist/types/ui/FloatingToolbar/ButtonSpotlightCard.d.ts +1 -1
- package/dist/types/ui/HoverLinkOverlay/types.d.ts +4 -4
- package/dist/types/ui/Layer/index.d.ts +6 -6
- package/dist/types/ui/MediaSingle/grid.d.ts +4 -4
- package/dist/types/ui/MediaSingle/index.d.ts +12 -12
- package/dist/types/ui/MediaSingle/styled.d.ts +8 -8
- package/dist/types/ui/Mention/index.d.ts +3 -3
- package/dist/types/ui/Mention/mention-with-profilecard.d.ts +4 -4
- package/dist/types/ui/Mention/mention-with-providers.d.ts +4 -4
- package/dist/types/ui/OverflowShadow/index.d.ts +1 -1
- package/dist/types/ui/OverflowShadow/shadowObserver.d.ts +1 -1
- package/dist/types/ui/PanelTextInput/index.d.ts +18 -18
- package/dist/types/ui/Popup/index.d.ts +16 -16
- package/dist/types/ui/Popup/utils.d.ts +6 -6
- package/dist/types/ui/Pulse/Pulse.d.ts +1 -1
- package/dist/types/ui/ResizerLegacy/index.d.ts +11 -11
- package/dist/types/ui/ResizerLegacy/types.d.ts +8 -8
- package/dist/types/ui/TableSelector/index.d.ts +11 -11
- package/dist/types/ui/TableSelector/table-selector.d.ts +7 -7
- package/dist/types/ui/UnsupportedBlock/index.d.ts +1 -1
- package/dist/types/ui/UnsupportedInline/index.d.ts +1 -1
- package/dist/types/ui/WidthProvider/index.d.ts +2 -2
- package/dist/types/ui-color/ColorPalette/Color/index.d.ts +8 -8
- package/dist/types/ui-color/ColorPalette/Palettes/type.d.ts +3 -3
- package/dist/types/ui-color/ColorPalette/index.d.ts +4 -4
- package/dist/types/ui-menu/ArrowKeyNavigationProvider/types.d.ts +11 -11
- package/dist/types/ui-menu/ColorPickerButton/index.d.ts +11 -11
- package/dist/types/ui-menu/Dropdown/index.d.ts +15 -15
- package/dist/types/ui-menu/DropdownMenu/types.d.ts +33 -33
- package/dist/types/ui-menu/ToolbarArrowKeyNavigationProvider/index.d.ts +4 -4
- package/dist/types/ui-menu/ToolbarButton/index.d.ts +19 -19
- package/dist/types/ui-react/ReactEditorViewContext.d.ts +1 -1
- package/dist/types/ui-react/with-react-editor-view-outer-listeners.d.ts +5 -5
- package/dist/types/user-preferences/persistence-api.d.ts +8 -8
- package/dist/types/utils/breakout.d.ts +12 -12
- package/dist/types/utils/calculate-toolbar-position.d.ts +1 -1
- package/dist/types/utils/compare-props.d.ts +3 -3
- package/dist/types/utils/count-nodes.d.ts +1 -1
- package/dist/types/utils/create-wrap-selection-transaction.d.ts +1 -1
- package/dist/types/utils/editor-core-utils.d.ts +1 -1
- package/dist/types/utils/error-reporter.d.ts +1 -1
- package/dist/types/utils/get-performance-options.d.ts +2 -2
- package/dist/types/utils/hyperlink.d.ts +1 -1
- package/dist/types/utils/imageLoader.d.ts +3 -3
- package/dist/types/utils/input-rules.d.ts +2 -2
- package/dist/types/utils/macro.d.ts +1 -1
- package/dist/types/utils/page-element-counts.d.ts +2 -2
- package/dist/types/utils/performance/hooks/use-component-render-tracking/index.d.ts +2 -2
- package/dist/types/utils/performance/measure-render.d.ts +3 -3
- package/dist/types/utils/performance/measure-tti.d.ts +1 -1
- package/dist/types/utils/plugin-state-factory.d.ts +1 -1
- package/dist/types/utils/profiler/render-count.d.ts +3 -3
- package/dist/types/utils/track-unsupported-content.d.ts +5 -5
- package/dist/types/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +1 -1
- package/dist/types/utils/unsupportedContent/types.d.ts +1 -1
- package/dist/types/utils/validator.d.ts +5 -5
- package/dist/types/with-plugin-state/index.d.ts +1 -1
- package/dist/types-ts4.5/analytics/api.d.ts +2 -2
- package/dist/types-ts4.5/analytics/types/activity-session-events.d.ts +14 -14
- package/dist/types-ts4.5/analytics/types/ai-definitions-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/ai-events.d.ts +2 -2
- package/dist/types-ts4.5/analytics/types/ai-inline-suggestion-events.d.ts +2 -2
- package/dist/types-ts4.5/analytics/types/ai-proactive-events.d.ts +12 -12
- package/dist/types-ts4.5/analytics/types/ai-unified-events.d.ts +11 -11
- package/dist/types-ts4.5/analytics/types/breakout-events.d.ts +4 -4
- package/dist/types-ts4.5/analytics/types/config-panel-events.d.ts +3 -3
- package/dist/types-ts4.5/analytics/types/cut-copy-events.d.ts +4 -4
- package/dist/types-ts4.5/analytics/types/datasource-clicked-events.d.ts +2 -2
- package/dist/types-ts4.5/analytics/types/date-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/element-events.d.ts +4 -4
- package/dist/types-ts4.5/analytics/types/events.d.ts +23 -23
- package/dist/types-ts4.5/analytics/types/extension-events.d.ts +5 -5
- package/dist/types-ts4.5/analytics/types/format-events.d.ts +6 -6
- package/dist/types-ts4.5/analytics/types/general-events.d.ts +32 -32
- package/dist/types-ts4.5/analytics/types/highlight-actions-menu-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/highlight-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/inline-comment-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/insert-events.d.ts +26 -26
- package/dist/types-ts4.5/analytics/types/link-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/link-tool-bar-events.d.ts +17 -17
- package/dist/types-ts4.5/analytics/types/list-events.d.ts +8 -8
- package/dist/types-ts4.5/analytics/types/loom-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/media-events.d.ts +9 -9
- package/dist/types-ts4.5/analytics/types/mention-events.d.ts +30 -30
- package/dist/types-ts4.5/analytics/types/move-content-events.d.ts +3 -3
- package/dist/types-ts4.5/analytics/types/ncs-session-step-events.d.ts +3 -3
- package/dist/types-ts4.5/analytics/types/node-events.d.ts +5 -5
- package/dist/types-ts4.5/analytics/types/offline-editing-event.d.ts +5 -5
- package/dist/types-ts4.5/analytics/types/paste-events.d.ts +6 -6
- package/dist/types-ts4.5/analytics/types/performance-report.d.ts +6 -6
- package/dist/types-ts4.5/analytics/types/referentiality-events.d.ts +2 -2
- package/dist/types-ts4.5/analytics/types/selection-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/smart-links.d.ts +2 -2
- package/dist/types-ts4.5/analytics/types/substitute-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/table-events.d.ts +19 -19
- package/dist/types-ts4.5/analytics/types/type-ahead.d.ts +3 -3
- package/dist/types-ts4.5/analytics/types/utils.d.ts +6 -6
- package/dist/types-ts4.5/analytics/types/view-events.d.ts +2 -2
- package/dist/types-ts4.5/annotation/index.d.ts +39 -39
- package/dist/types-ts4.5/block-menu/messages.d.ts +5 -0
- package/dist/types-ts4.5/card/LinkToolbarButtonGroup.d.ts +5 -5
- package/dist/types-ts4.5/card/MediaAndEmbedsToolbar/index.d.ts +2 -2
- package/dist/types-ts4.5/card/cardOptions.d.ts +36 -36
- package/dist/types-ts4.5/card/types.d.ts +8 -8
- package/dist/types-ts4.5/collab/index.d.ts +71 -71
- package/dist/types-ts4.5/doc-utils/editor-use-only.d.ts +1 -1
- package/dist/types-ts4.5/element-browser/ElementBrowser.d.ts +9 -9
- package/dist/types-ts4.5/element-browser/ViewMore.d.ts +1 -1
- package/dist/types-ts4.5/element-browser/components/CategoryList.d.ts +1 -1
- package/dist/types-ts4.5/element-browser/components/ElementList/ElementList.d.ts +11 -11
- package/dist/types-ts4.5/element-browser/components/ElementList/EmptyState.d.ts +1 -1
- package/dist/types-ts4.5/element-browser/components/ElementSearch.d.ts +4 -4
- package/dist/types-ts4.5/element-browser/components/StatelessElementBrowser.d.ts +14 -14
- package/dist/types-ts4.5/element-browser/hooks/use-select-and-focus-on-arrow-navigation.d.ts +12 -12
- package/dist/types-ts4.5/element-browser/types.d.ts +2 -2
- package/dist/types-ts4.5/extensibility/Extension/Extension/index.d.ts +12 -12
- package/dist/types-ts4.5/extensibility/Extension/InlineExtension/index.d.ts +5 -5
- package/dist/types-ts4.5/extensibility/Extension/LegacyContentHeader/index.d.ts +1 -1
- package/dist/types-ts4.5/extensibility/Extension/Lozenge/EditToggle.d.ts +2 -2
- package/dist/types-ts4.5/extensibility/Extension/Lozenge/ExtensionLabel.d.ts +6 -6
- package/dist/types-ts4.5/extensibility/Extension/Lozenge/LozengeComponent.d.ts +11 -11
- package/dist/types-ts4.5/extensibility/Extension/Lozenge/index.d.ts +9 -9
- package/dist/types-ts4.5/extensibility/Extension.d.ts +8 -8
- package/dist/types-ts4.5/extensibility/ExtensionComponent.d.ts +13 -13
- package/dist/types-ts4.5/extensibility/ExtensionNodeWrapper.d.ts +1 -1
- package/dist/types-ts4.5/extensibility/MultiBodiedExtension/action-api.d.ts +5 -5
- package/dist/types-ts4.5/extensibility/MultiBodiedExtension/index.d.ts +10 -10
- package/dist/types-ts4.5/extensibility/extensionNodeView.d.ts +8 -8
- package/dist/types-ts4.5/extensions/extension-handlers.d.ts +1 -1
- package/dist/types-ts4.5/extensions/types/extension-handler.d.ts +10 -10
- package/dist/types-ts4.5/extensions/types/extension-manifest-toolbar-item.d.ts +13 -13
- package/dist/types-ts4.5/extensions/types/extension-manifest.d.ts +26 -26
- package/dist/types-ts4.5/extensions/types/extension-provider.d.ts +3 -3
- package/dist/types-ts4.5/extensions/types/field-definitions.d.ts +40 -40
- package/dist/types-ts4.5/extensions/types/utils.d.ts +7 -7
- package/dist/types-ts4.5/floating-toolbar/DropdownMenuExtensionItems.d.ts +4 -4
- package/dist/types-ts4.5/floating-toolbar/DropdownMenuItem.d.ts +10 -10
- package/dist/types-ts4.5/guideline/relativeGuideline.d.ts +1 -1
- package/dist/types-ts4.5/guideline/types.d.ts +9 -9
- package/dist/types-ts4.5/guideline/updateGuideline.d.ts +1 -1
- package/dist/types-ts4.5/guideline/utils.d.ts +2 -2
- package/dist/types-ts4.5/icons/shared/DynamicStrokeIconDecoration.d.ts +1 -1
- package/dist/types-ts4.5/icons/shared/SteppedRainbowIconDecoration.d.ts +1 -1
- package/dist/types-ts4.5/insert/index.d.ts +2 -2
- package/dist/types-ts4.5/keymaps/index.d.ts +2 -2
- package/dist/types-ts4.5/lazy-node-view/index.d.ts +3 -3
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/Dropdown.d.ts +3 -3
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/handleNavigation.d.ts +1 -1
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/index.d.ts +2 -2
- package/dist/types-ts4.5/link/LinkPicker/EditorLinkPicker/index.d.ts +3 -3
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +12 -12
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +8 -8
- package/dist/types-ts4.5/link/LinkSearch/LinkSearchList.d.ts +6 -6
- package/dist/types-ts4.5/link/LinkSearch/LinkSearchListItem.d.ts +4 -4
- package/dist/types-ts4.5/link/LinkSearch/types.d.ts +11 -11
- package/dist/types-ts4.5/link/types.d.ts +9 -9
- package/dist/types-ts4.5/lists/indentation.d.ts +1 -1
- package/dist/types-ts4.5/lists/node.d.ts +2 -2
- package/dist/types-ts4.5/lists/replace-content.d.ts +1 -1
- package/dist/types-ts4.5/lists/selection.d.ts +1 -1
- package/dist/types-ts4.5/media-inline/inline-image-card.d.ts +4 -4
- package/dist/types-ts4.5/media-inline/inline-image-wrapper.d.ts +3 -3
- package/dist/types-ts4.5/media-inline/media-inline-image-card.d.ts +8 -8
- package/dist/types-ts4.5/media-inline/types.d.ts +4 -4
- package/dist/types-ts4.5/media-inline/views/error-view.d.ts +3 -3
- package/dist/types-ts4.5/media-inline/views/loading-view.d.ts +2 -2
- package/dist/types-ts4.5/media-single/CommentBadge.d.ts +6 -6
- package/dist/types-ts4.5/media-single/CommentBadgeNext.d.ts +1 -1
- package/dist/types-ts4.5/media-single/MediaBadges.d.ts +4 -4
- package/dist/types-ts4.5/media-single/utils.d.ts +5 -5
- package/dist/types-ts4.5/node-visibility/node-visibility-manager.d.ts +5 -5
- package/dist/types-ts4.5/portal/PortalManager.d.ts +1 -1
- package/dist/types-ts4.5/portal/common.d.ts +2 -2
- package/dist/types-ts4.5/preset/builder.d.ts +1 -1
- package/dist/types-ts4.5/preset/plugin-injection-api.d.ts +3 -3
- package/dist/types-ts4.5/provider-factory/card-provider.d.ts +1 -1
- package/dist/types-ts4.5/provider-factory/context-identifier-provider.d.ts +1 -1
- package/dist/types-ts4.5/provider-factory/image-upload-provider.d.ts +1 -1
- package/dist/types-ts4.5/provider-factory/macro-provider.d.ts +4 -4
- package/dist/types-ts4.5/provider-factory/media-provider.d.ts +5 -5
- package/dist/types-ts4.5/provider-factory/profile-card-provider.d.ts +1 -1
- package/dist/types-ts4.5/provider-factory/quick-insert-provider.d.ts +10 -10
- package/dist/types-ts4.5/provider-factory/search-provider.d.ts +3 -3
- package/dist/types-ts4.5/provider-factory/types.d.ts +11 -11
- package/dist/types-ts4.5/provider-helpers/promise-helpers.d.ts +1 -1
- package/dist/types-ts4.5/quick-insert/use-icon-themed.d.ts +1 -1
- package/dist/types-ts4.5/react-node-view/getInlineNodeViewProducer.d.ts +6 -6
- package/dist/types-ts4.5/react-node-view/index.d.ts +1 -1
- package/dist/types-ts4.5/resizer/BreakoutResizer.d.ts +10 -10
- package/dist/types-ts4.5/resizer/Resizer.d.ts +32 -32
- package/dist/types-ts4.5/resizer/types.d.ts +2 -2
- package/dist/types-ts4.5/safe-plugin/index.d.ts +1 -1
- package/dist/types-ts4.5/selection/gap-cursor/actions.d.ts +1 -1
- package/dist/types-ts4.5/selection/gap-cursor/selection.d.ts +1 -1
- package/dist/types-ts4.5/selection/index.d.ts +1 -1
- package/dist/types-ts4.5/selection/types.d.ts +3 -3
- package/dist/types-ts4.5/table/SortingIcon.d.ts +1 -1
- package/dist/types-ts4.5/toolbar/context.d.ts +1 -1
- package/dist/types-ts4.5/types/annotation/index.d.ts +43 -43
- package/dist/types-ts4.5/types/copy-button.d.ts +8 -8
- package/dist/types-ts4.5/types/doc-builder.d.ts +1 -1
- package/dist/types-ts4.5/types/editor-actions.d.ts +6 -6
- package/dist/types-ts4.5/types/editor-container-width.d.ts +7 -7
- package/dist/types-ts4.5/types/editor-plugin.d.ts +33 -33
- package/dist/types-ts4.5/types/empty-state-handler.d.ts +1 -1
- package/dist/types-ts4.5/types/feature-flags.d.ts +107 -107
- package/dist/types-ts4.5/types/feedback-dialog.d.ts +5 -5
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +142 -142
- package/dist/types-ts4.5/types/hyperlink.d.ts +10 -10
- package/dist/types-ts4.5/types/input-rules.d.ts +1 -1
- package/dist/types-ts4.5/types/next-editor-plugin.d.ts +47 -47
- package/dist/types-ts4.5/types/performance-tracking.d.ts +90 -90
- package/dist/types-ts4.5/types/plugin-factory.d.ts +6 -6
- package/dist/types-ts4.5/types/prosemirror-config.d.ts +1 -1
- package/dist/types-ts4.5/types/quick-insert.d.ts +9 -9
- package/dist/types-ts4.5/types/selection-toolbar.d.ts +2 -2
- package/dist/types-ts4.5/types/supported-browsers.d.ts +1 -1
- package/dist/types-ts4.5/types/tables.d.ts +3 -3
- package/dist/types-ts4.5/types/text-formatting.d.ts +14 -14
- package/dist/types-ts4.5/types/toolbar.d.ts +2 -2
- package/dist/types-ts4.5/types/type-ahead.d.ts +29 -29
- package/dist/types-ts4.5/types/ui-components.d.ts +7 -7
- package/dist/types-ts4.5/types/user-preferences.d.ts +6 -6
- package/dist/types-ts4.5/ugc-tokens/editor-ugc-token-names.d.ts +1 -1
- package/dist/types-ts4.5/ui/Announcer/announcer.d.ts +5 -5
- package/dist/types-ts4.5/ui/AssistiveText/AssistiveText.d.ts +2 -2
- package/dist/types-ts4.5/ui/BaseTheme/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/Caption/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/ContextPanel/context.d.ts +4 -4
- package/dist/types-ts4.5/ui/DropList/index.d.ts +7 -7
- package/dist/types-ts4.5/ui/Emoji/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/ErrorBoundary/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/EventHandlers/index.d.ts +7 -7
- package/dist/types-ts4.5/ui/Expand/sharedStyles.d.ts +2 -2
- package/dist/types-ts4.5/ui/FloatingToolbar/Button.d.ts +20 -20
- package/dist/types-ts4.5/ui/FloatingToolbar/ButtonSpotlightCard.d.ts +1 -1
- package/dist/types-ts4.5/ui/HoverLinkOverlay/types.d.ts +4 -4
- package/dist/types-ts4.5/ui/Layer/index.d.ts +6 -6
- package/dist/types-ts4.5/ui/MediaSingle/grid.d.ts +4 -4
- package/dist/types-ts4.5/ui/MediaSingle/index.d.ts +12 -12
- package/dist/types-ts4.5/ui/MediaSingle/styled.d.ts +8 -8
- package/dist/types-ts4.5/ui/Mention/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/Mention/mention-with-profilecard.d.ts +4 -4
- package/dist/types-ts4.5/ui/Mention/mention-with-providers.d.ts +4 -4
- package/dist/types-ts4.5/ui/OverflowShadow/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/OverflowShadow/shadowObserver.d.ts +1 -1
- package/dist/types-ts4.5/ui/PanelTextInput/index.d.ts +18 -18
- package/dist/types-ts4.5/ui/Popup/index.d.ts +16 -16
- package/dist/types-ts4.5/ui/Popup/utils.d.ts +6 -6
- package/dist/types-ts4.5/ui/Pulse/Pulse.d.ts +1 -1
- package/dist/types-ts4.5/ui/ResizerLegacy/index.d.ts +11 -11
- package/dist/types-ts4.5/ui/ResizerLegacy/types.d.ts +8 -8
- package/dist/types-ts4.5/ui/TableSelector/index.d.ts +11 -11
- package/dist/types-ts4.5/ui/TableSelector/table-selector.d.ts +7 -7
- package/dist/types-ts4.5/ui/UnsupportedBlock/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/UnsupportedInline/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/WidthProvider/index.d.ts +2 -2
- package/dist/types-ts4.5/ui-color/ColorPalette/Color/index.d.ts +8 -8
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/type.d.ts +3 -3
- package/dist/types-ts4.5/ui-color/ColorPalette/index.d.ts +4 -4
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/types.d.ts +11 -11
- package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +11 -11
- package/dist/types-ts4.5/ui-menu/Dropdown/index.d.ts +15 -15
- package/dist/types-ts4.5/ui-menu/DropdownMenu/types.d.ts +33 -33
- package/dist/types-ts4.5/ui-menu/ToolbarArrowKeyNavigationProvider/index.d.ts +4 -4
- package/dist/types-ts4.5/ui-menu/ToolbarButton/index.d.ts +19 -19
- package/dist/types-ts4.5/ui-react/ReactEditorViewContext.d.ts +1 -1
- package/dist/types-ts4.5/ui-react/with-react-editor-view-outer-listeners.d.ts +5 -5
- package/dist/types-ts4.5/user-preferences/persistence-api.d.ts +8 -8
- package/dist/types-ts4.5/utils/breakout.d.ts +12 -12
- package/dist/types-ts4.5/utils/calculate-toolbar-position.d.ts +1 -1
- package/dist/types-ts4.5/utils/compare-props.d.ts +3 -3
- package/dist/types-ts4.5/utils/count-nodes.d.ts +1 -1
- package/dist/types-ts4.5/utils/create-wrap-selection-transaction.d.ts +1 -1
- package/dist/types-ts4.5/utils/editor-core-utils.d.ts +1 -1
- package/dist/types-ts4.5/utils/error-reporter.d.ts +1 -1
- package/dist/types-ts4.5/utils/get-performance-options.d.ts +2 -2
- package/dist/types-ts4.5/utils/hyperlink.d.ts +1 -1
- package/dist/types-ts4.5/utils/imageLoader.d.ts +3 -3
- package/dist/types-ts4.5/utils/input-rules.d.ts +2 -2
- package/dist/types-ts4.5/utils/macro.d.ts +1 -1
- package/dist/types-ts4.5/utils/page-element-counts.d.ts +2 -2
- package/dist/types-ts4.5/utils/performance/hooks/use-component-render-tracking/index.d.ts +2 -2
- package/dist/types-ts4.5/utils/performance/measure-render.d.ts +3 -3
- package/dist/types-ts4.5/utils/performance/measure-tti.d.ts +1 -1
- package/dist/types-ts4.5/utils/plugin-state-factory.d.ts +1 -1
- package/dist/types-ts4.5/utils/profiler/render-count.d.ts +3 -3
- package/dist/types-ts4.5/utils/track-unsupported-content.d.ts +5 -5
- package/dist/types-ts4.5/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +1 -1
- package/dist/types-ts4.5/utils/unsupportedContent/types.d.ts +1 -1
- package/dist/types-ts4.5/utils/validator.d.ts +5 -5
- package/dist/types-ts4.5/with-plugin-state/index.d.ts +1 -1
- package/package.json +4 -8
|
@@ -16,18 +16,22 @@ export interface Transformer<T> {
|
|
|
16
16
|
parse(content: T): Node;
|
|
17
17
|
}
|
|
18
18
|
export type CorePlugin = NextEditorPlugin<'core', {
|
|
19
|
-
|
|
20
|
-
getEditorView: () => EditorView | undefined;
|
|
21
|
-
fireAnalyticsEvent?: FireAnalyticsCallback;
|
|
22
|
-
};
|
|
23
|
-
sharedState: {
|
|
19
|
+
actions: {
|
|
24
20
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
21
|
+
* Blurs the editor.
|
|
22
|
+
*
|
|
23
|
+
* Calls blur on the editor DOM element.
|
|
24
|
+
*
|
|
25
|
+
* @returns (boolean) if the blur was successful
|
|
27
26
|
*/
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
blur: () => boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Create a transformer
|
|
30
|
+
*
|
|
31
|
+
* @param schema Schema of the document
|
|
32
|
+
* @returns Transformer which can be used to request a document
|
|
33
|
+
*/
|
|
34
|
+
createTransformer<Format>(cb: (schema: Schema) => Transformer<Format>): Transformer<Format> | undefined;
|
|
31
35
|
/**
|
|
32
36
|
* Dispatches an EditorCommand to ProseMirror
|
|
33
37
|
*
|
|
@@ -50,21 +54,12 @@ export type CorePlugin = NextEditorPlugin<'core', {
|
|
|
50
54
|
scrollIntoView: boolean;
|
|
51
55
|
}) => boolean;
|
|
52
56
|
/**
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* Calls blur on the editor DOM element.
|
|
56
|
-
*
|
|
57
|
-
* @returns (boolean) if the blur was successful
|
|
58
|
-
*/
|
|
59
|
-
blur: () => boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Scroll to a specific position in the editor using native Element.scrollIntoView
|
|
57
|
+
* Get the anchor ID for a ProseMirror node.
|
|
62
58
|
*
|
|
63
|
-
* @param
|
|
64
|
-
* @
|
|
65
|
-
* @returns (boolean) if scroll was successful
|
|
59
|
+
* @param node - The ProseMirror node to get the anchor ID for.
|
|
60
|
+
* @returns The anchor ID if found, otherwise undefined.
|
|
66
61
|
*/
|
|
67
|
-
|
|
62
|
+
getAnchorIdForNode: (node: PMNode) => string | undefined;
|
|
68
63
|
/**
|
|
69
64
|
* Replaces the current content of the editor with the provided raw value.
|
|
70
65
|
*
|
|
@@ -92,19 +87,24 @@ export type CorePlugin = NextEditorPlugin<'core', {
|
|
|
92
87
|
transformer?: GenericTransformer;
|
|
93
88
|
}): void;
|
|
94
89
|
/**
|
|
95
|
-
*
|
|
90
|
+
* Scroll to a specific position in the editor using native Element.scrollIntoView
|
|
96
91
|
*
|
|
97
|
-
* @param
|
|
98
|
-
* @
|
|
92
|
+
* @param pos - Position number scroll to
|
|
93
|
+
* @param scrollOptions - [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView)
|
|
94
|
+
* @returns (boolean) if scroll was successful
|
|
99
95
|
*/
|
|
100
|
-
|
|
96
|
+
scrollToPos: (pos: number, scrollOptions?: boolean | ScrollIntoViewOptions) => boolean;
|
|
97
|
+
};
|
|
98
|
+
pluginConfiguration: {
|
|
99
|
+
fireAnalyticsEvent?: FireAnalyticsCallback;
|
|
100
|
+
getEditorView: () => EditorView | undefined;
|
|
101
|
+
};
|
|
102
|
+
sharedState: {
|
|
101
103
|
/**
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
* @param node - The ProseMirror node to get the anchor ID for.
|
|
105
|
-
* @returns The anchor ID if found, otherwise undefined.
|
|
104
|
+
* The schema of the editor. It is guarranteed to be static for its lifecycle
|
|
105
|
+
* so is safe to use `currentState`
|
|
106
106
|
*/
|
|
107
|
-
|
|
107
|
+
schema: Schema | undefined;
|
|
108
108
|
};
|
|
109
109
|
}>;
|
|
110
110
|
export type TransformerResult<GenericTransformer = Transformer<JSONDocNode>> = GenericTransformer extends Transformer<infer Content> ? Content : JSONDocNode;
|
|
@@ -344,8 +344,8 @@ type ExtractOptionalPlugins<TuplePluginList extends [...any[]]> = TuplePluginLis
|
|
|
344
344
|
* @returns The type of the shared state if defined, otherwise `never`.
|
|
345
345
|
*/
|
|
346
346
|
export type ExtractPluginSharedState<PluginOrMetadata> = PluginOrMetadata extends NextEditorPlugin<any, any> ? PluginOrMetadata extends (props: {
|
|
347
|
-
config: any;
|
|
348
347
|
api: any;
|
|
348
|
+
config: any;
|
|
349
349
|
}) => DefaultEditorPlugin<any, infer Metadata> ? ExtractSharedStateFromMetadata<Metadata> : never : PluginOrMetadata extends NextEditorPluginMetadata ? ExtractSharedStateFromMetadata<PluginOrMetadata> : never;
|
|
350
350
|
/**
|
|
351
351
|
* 🧱 Internal Type: Editor FE Platform
|
|
@@ -360,8 +360,8 @@ export type ExtractPluginSharedState<PluginOrMetadata> = PluginOrMetadata extend
|
|
|
360
360
|
* @returns The actions definition if available, otherwise `never`.
|
|
361
361
|
*/
|
|
362
362
|
export type ExtractPluginActions<PluginOrMetadata> = PluginOrMetadata extends NextEditorPlugin<any, any> ? PluginOrMetadata extends (props: {
|
|
363
|
-
config: any;
|
|
364
363
|
api: any;
|
|
364
|
+
config: any;
|
|
365
365
|
}) => DefaultEditorPlugin<any, infer Metadata> ? ExtractActionsFromMetadata<Metadata> : never : PluginOrMetadata extends NextEditorPluginMetadata ? ExtractActionsFromMetadata<PluginOrMetadata> : never;
|
|
366
366
|
/*****************************
|
|
367
367
|
* *
|
|
@@ -470,28 +470,28 @@ export type DefaultEditorPlugin<Name extends string, Metadata extends NextEditor
|
|
|
470
470
|
*/
|
|
471
471
|
export interface NextEditorPluginMetadata {
|
|
472
472
|
/**
|
|
473
|
-
*
|
|
474
|
-
* internal types.
|
|
473
|
+
* @see NextEditorPluginActions
|
|
475
474
|
*/
|
|
476
|
-
readonly
|
|
475
|
+
readonly actions?: NextEditorPluginActions;
|
|
477
476
|
/**
|
|
478
|
-
*
|
|
477
|
+
*
|
|
478
|
+
* @see NextEditorEditorCommands
|
|
479
479
|
*/
|
|
480
|
-
readonly
|
|
480
|
+
readonly commands?: NextEditorEditorCommands;
|
|
481
481
|
/**
|
|
482
482
|
* This is used only on compile time. There is no runtime implementation for the dependencies
|
|
483
483
|
* @see DependencyPlugin
|
|
484
484
|
*/
|
|
485
485
|
readonly dependencies?: DependencyPlugin[];
|
|
486
486
|
/**
|
|
487
|
-
* @see
|
|
487
|
+
* The real implementation will be infered by Preset internal types and @see NextEditorPluginFunctionOptionalConfigDefinition
|
|
488
488
|
*/
|
|
489
|
-
readonly
|
|
489
|
+
readonly pluginConfiguration?: any;
|
|
490
490
|
/**
|
|
491
|
-
*
|
|
492
|
-
*
|
|
491
|
+
* The real implementation will be infered by BasePluginDependenciesAPI and other
|
|
492
|
+
* internal types.
|
|
493
493
|
*/
|
|
494
|
-
readonly
|
|
494
|
+
readonly sharedState?: any;
|
|
495
495
|
}
|
|
496
496
|
/**
|
|
497
497
|
* 🧱 Internal Type: Editor FE Platform
|
|
@@ -499,10 +499,10 @@ export interface NextEditorPluginMetadata {
|
|
|
499
499
|
* ⚠️⚠️⚠️ Any breaking change here will have a massive impact across all Editor Plugin packages ⚠️⚠️⚠️
|
|
500
500
|
*/
|
|
501
501
|
export type NextEditorPluginFunctionOptionalConfigDefinition<Name extends string, Metadata extends NextEditorPluginMetadata, Configuration = undefined> = (props: {
|
|
502
|
-
config: Configuration;
|
|
503
502
|
api?: {
|
|
504
503
|
[Plugin in Name]: BasePluginDependenciesAPI<Metadata>;
|
|
505
504
|
} & RequiredPluginDependenciesAPI<ExtractRequiredPlugins<[CorePlugin, ...ExtractPluginDependenciesFromMetadata<Metadata>]>> & OptionalPluginDependenciesAPI<ExtractOptionalPlugins<ExtractPluginDependenciesFromMetadata<Metadata>>>;
|
|
505
|
+
config: Configuration;
|
|
506
506
|
}) => DefaultEditorPlugin<Name, Metadata>;
|
|
507
507
|
/**
|
|
508
508
|
* 📢 Public Type API: Helps Editor Plugin developers to defined optional dependencies for their plugins.
|
|
@@ -557,6 +557,8 @@ type Unsubscribe = () => void;
|
|
|
557
557
|
*
|
|
558
558
|
*/
|
|
559
559
|
export type BasePluginDependenciesAPI<Metadata extends NextEditorPluginMetadata> = {
|
|
560
|
+
actions: ExtractPluginActions<Metadata>;
|
|
561
|
+
commands: ExtractCommandsFromMetadata<Metadata>;
|
|
560
562
|
sharedState: {
|
|
561
563
|
currentState: () => ExtractPluginSharedState<Metadata> | undefined;
|
|
562
564
|
onChange: (sub: (props: {
|
|
@@ -564,8 +566,6 @@ export type BasePluginDependenciesAPI<Metadata extends NextEditorPluginMetadata>
|
|
|
564
566
|
prevSharedState: ExtractPluginSharedState<Metadata>;
|
|
565
567
|
}) => void) => Unsubscribe;
|
|
566
568
|
};
|
|
567
|
-
actions: ExtractPluginActions<Metadata>;
|
|
568
|
-
commands: ExtractCommandsFromMetadata<Metadata>;
|
|
569
569
|
};
|
|
570
570
|
/**
|
|
571
571
|
* 🧱 Internal Type: Editor FE Platform
|
|
@@ -5,40 +5,40 @@ export type TTITracking = {
|
|
|
5
5
|
*/
|
|
6
6
|
enabled: boolean;
|
|
7
7
|
/**
|
|
8
|
-
* @description
|
|
9
|
-
* @default
|
|
8
|
+
* @description Control whether TTI severity is tracked. When this is false the severity is not recorded.
|
|
9
|
+
* @default false
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
trackSeverity?: boolean;
|
|
12
12
|
/**
|
|
13
13
|
* @description Time in [seconds] after which to stop tti measurements, used to prevent issues when page never becomes responsive, e.g. infinite loops in rendering / etc...
|
|
14
14
|
* @default: 60
|
|
15
15
|
*/
|
|
16
16
|
ttiCancelTimeout?: number;
|
|
17
17
|
/**
|
|
18
|
-
* @description Control
|
|
19
|
-
* @default
|
|
18
|
+
* @description Control for calculating ttiFromInvocation severity level (NORMAL/DEGRADED/BLOCKING). Depends on trackSeverity being true.
|
|
19
|
+
* @default 8000
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
ttiFromInvocationSeverityDegradedThreshold?: number;
|
|
22
22
|
/**
|
|
23
|
-
* @description Control for calculating
|
|
24
|
-
* @default
|
|
23
|
+
* @description Control for calculating ttiFromInvocation severity level (NORMAL/DEGRADED/BLOCKING). Depends on trackSeverity being true.
|
|
24
|
+
* @default 5000
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
ttiFromInvocationSeverityNormalThreshold?: number;
|
|
27
|
+
/**
|
|
28
|
+
* @description Time between long tasks that tti measurement considers long enough to treat page as interactive in ms
|
|
29
|
+
* @default: 1000
|
|
30
|
+
*/
|
|
31
|
+
ttiIdleThreshold?: number;
|
|
27
32
|
/**
|
|
28
33
|
* @description Control for calculating tti severity level (NORMAL/DEGRADED/BLOCKING). Depends on trackSeverity being true.
|
|
29
34
|
* @default 60000
|
|
30
35
|
*/
|
|
31
36
|
ttiSeverityDegradedThreshold?: number;
|
|
32
37
|
/**
|
|
33
|
-
* @description Control for calculating
|
|
34
|
-
* @default
|
|
35
|
-
*/
|
|
36
|
-
ttiFromInvocationSeverityNormalThreshold?: number;
|
|
37
|
-
/**
|
|
38
|
-
* @description Control for calculating ttiFromInvocation severity level (NORMAL/DEGRADED/BLOCKING). Depends on trackSeverity being true.
|
|
39
|
-
* @default 8000
|
|
38
|
+
* @description Control for calculating tti severity level (NORMAL/DEGRADED/BLOCKING). Depends on trackSeverity being true.
|
|
39
|
+
* @default 40000
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
ttiSeverityNormalThreshold?: number;
|
|
42
42
|
};
|
|
43
43
|
export type TransactionTracking = {
|
|
44
44
|
/**
|
|
@@ -47,10 +47,15 @@ export type TransactionTracking = {
|
|
|
47
47
|
**/
|
|
48
48
|
enabled: boolean;
|
|
49
49
|
/**
|
|
50
|
-
* @description
|
|
51
|
-
* @default
|
|
50
|
+
* @description The factor by which statistically significant outliers in plugin execution times are computed where t = p75 + (p75 - p25) * outlierFactor.
|
|
51
|
+
* @default 3
|
|
52
52
|
**/
|
|
53
|
-
|
|
53
|
+
outlierFactor?: number;
|
|
54
|
+
/**
|
|
55
|
+
* @description Transactions that need longer to dispatch than [outlierThreshold]ms AND have outlier plugins generate a `dispatchTransaction` event. Depends on enabled being true.
|
|
56
|
+
* @default 30
|
|
57
|
+
**/
|
|
58
|
+
outlierThreshold?: number;
|
|
54
59
|
/**
|
|
55
60
|
* @description The nth transaction after which a `dispatchTransaction` event is sent. Depends on enabled being true.
|
|
56
61
|
* @default 100
|
|
@@ -62,15 +67,10 @@ export type TransactionTracking = {
|
|
|
62
67
|
**/
|
|
63
68
|
slowThreshold?: number;
|
|
64
69
|
/**
|
|
65
|
-
* @description
|
|
66
|
-
* @default
|
|
67
|
-
**/
|
|
68
|
-
outlierThreshold?: number;
|
|
69
|
-
/**
|
|
70
|
-
* @description The factor by which statistically significant outliers in plugin execution times are computed where t = p75 + (p75 - p25) * outlierFactor.
|
|
71
|
-
* @default 3
|
|
70
|
+
* @description Enable timing using browser performance API. This option has been added to verify memory leaks.
|
|
71
|
+
* @default false
|
|
72
72
|
**/
|
|
73
|
-
|
|
73
|
+
usePerformanceMarks?: boolean;
|
|
74
74
|
};
|
|
75
75
|
export type UITracking = {
|
|
76
76
|
/**
|
|
@@ -116,6 +116,16 @@ export type NodeViewTracking = {
|
|
|
116
116
|
};
|
|
117
117
|
export type BrowserFreezetracking = {
|
|
118
118
|
enabled?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* @description Control for calculating severity level (NORMAL/DEGRADED/BLOCKING). Depends on severityTracking being true.
|
|
121
|
+
* @default 3000
|
|
122
|
+
*/
|
|
123
|
+
severityDegradedThreshold?: number;
|
|
124
|
+
/**
|
|
125
|
+
* @description Control for calculating severity level (NORMAL/DEGRADED/BLOCKING). Depends on severityTracking being true.
|
|
126
|
+
* @default 2000
|
|
127
|
+
*/
|
|
128
|
+
severityNormalThreshold?: number;
|
|
119
129
|
/**
|
|
120
130
|
* @description Control whether browser freeze interaction type is tracked. When this is false the interaction type is not recorded.
|
|
121
131
|
* @default false
|
|
@@ -126,86 +136,76 @@ export type BrowserFreezetracking = {
|
|
|
126
136
|
* @default false
|
|
127
137
|
*/
|
|
128
138
|
trackSeverity?: boolean;
|
|
129
|
-
/**
|
|
130
|
-
* @description Control for calculating severity level (NORMAL/DEGRADED/BLOCKING). Depends on severityTracking being true.
|
|
131
|
-
* @default 2000
|
|
132
|
-
*/
|
|
133
|
-
severityNormalThreshold?: number;
|
|
134
|
-
/**
|
|
135
|
-
* @description Control for calculating severity level (NORMAL/DEGRADED/BLOCKING). Depends on severityTracking being true.
|
|
136
|
-
* @default 3000
|
|
137
|
-
*/
|
|
138
|
-
severityDegradedThreshold?: number;
|
|
139
139
|
};
|
|
140
140
|
export type ProseMirrorRenderedTracking = {
|
|
141
141
|
enabled?: boolean;
|
|
142
142
|
/**
|
|
143
|
-
* @description Control
|
|
144
|
-
* @default
|
|
143
|
+
* @description Control for calculating severity level (NORMAL/DEGRADED/BLOCKING). Depends on severityTracking being true.
|
|
144
|
+
* @default 3000
|
|
145
145
|
*/
|
|
146
|
-
|
|
146
|
+
severityDegradedThreshold: number;
|
|
147
147
|
/**
|
|
148
148
|
* @description Control for calculating severity level (NORMAL/DEGRADED/BLOCKING). Depends on severityTracking being true.
|
|
149
149
|
* @default 2000
|
|
150
150
|
*/
|
|
151
151
|
severityNormalThreshold: number;
|
|
152
152
|
/**
|
|
153
|
-
* @description Control
|
|
154
|
-
* @default
|
|
153
|
+
* @description Control whether proseMirror rendered event severity is tracked. When this is false the severity is not recorded.
|
|
154
|
+
* @default false
|
|
155
155
|
*/
|
|
156
|
-
|
|
156
|
+
trackSeverity: boolean;
|
|
157
157
|
};
|
|
158
158
|
export interface InputTracking {
|
|
159
|
+
/**
|
|
160
|
+
* @description Control whether samples of typing performance are taken. Depends on enabled being true.
|
|
161
|
+
* @default false
|
|
162
|
+
*/
|
|
163
|
+
countNodes?: boolean;
|
|
159
164
|
/**
|
|
160
165
|
* @description Control whether samples of typing performance are taken. When this is false no measurements are taken and no events are sent.
|
|
161
166
|
* @default false
|
|
162
167
|
*/
|
|
163
168
|
enabled: boolean;
|
|
164
169
|
/**
|
|
165
|
-
* @description
|
|
166
|
-
* @default
|
|
170
|
+
* @description input events that exceed [freezeThreshold]ms generate analytics event. Depends on enabled being true.
|
|
171
|
+
* @default 600
|
|
167
172
|
*/
|
|
168
|
-
|
|
173
|
+
freezeThreshold?: number;
|
|
169
174
|
/**
|
|
170
175
|
* @description Control for which nth transaction a typing performance sample is taken. Depends on enabled being true.
|
|
171
176
|
* @default 100
|
|
172
177
|
*/
|
|
173
178
|
samplingRate?: number;
|
|
179
|
+
/**
|
|
180
|
+
* @description Control for calculating severity level (NORMAL/DEGRADED/BLOCKING). Depends on severityTracking being true.
|
|
181
|
+
* @default 500
|
|
182
|
+
*/
|
|
183
|
+
severityDegradedThreshold?: number;
|
|
184
|
+
/**
|
|
185
|
+
* @description Control for calculating severity level (NORMAL/DEGRADED/BLOCKING). Depends on severityTracking being true.
|
|
186
|
+
* @default 100
|
|
187
|
+
*/
|
|
188
|
+
severityNormalThreshold?: number;
|
|
174
189
|
/**
|
|
175
190
|
* @description input events that exceed [slowThreshold]ms generate analytics event. Depends on enabled being true.
|
|
176
191
|
* @default 300
|
|
177
192
|
*/
|
|
178
193
|
slowThreshold?: number;
|
|
179
194
|
/**
|
|
180
|
-
* @description
|
|
181
|
-
* @default
|
|
195
|
+
* @description Track keypress processing time including browser rendering time.
|
|
196
|
+
* @default false
|
|
182
197
|
*/
|
|
183
|
-
|
|
198
|
+
trackRenderingTime?: boolean;
|
|
184
199
|
/**
|
|
185
200
|
* @description Control whether input tracking severity is tracked. When this is false the severity is not recorded.
|
|
186
201
|
* @default false
|
|
187
202
|
*/
|
|
188
203
|
trackSeverity?: boolean;
|
|
189
|
-
/**
|
|
190
|
-
* @description Control for calculating severity level (NORMAL/DEGRADED/BLOCKING). Depends on severityTracking being true.
|
|
191
|
-
* @default 100
|
|
192
|
-
*/
|
|
193
|
-
severityNormalThreshold?: number;
|
|
194
|
-
/**
|
|
195
|
-
* @description Control for calculating severity level (NORMAL/DEGRADED/BLOCKING). Depends on severityTracking being true.
|
|
196
|
-
* @default 500
|
|
197
|
-
*/
|
|
198
|
-
severityDegradedThreshold?: number;
|
|
199
204
|
/**
|
|
200
205
|
* @description Track individual keypress processing time when multiple keypress happened in one frame.
|
|
201
206
|
* @default false
|
|
202
207
|
*/
|
|
203
208
|
trackSingleKeypress?: boolean;
|
|
204
|
-
/**
|
|
205
|
-
* @description Track keypress processing time including browser rendering time.
|
|
206
|
-
* @default false
|
|
207
|
-
*/
|
|
208
|
-
trackRenderingTime?: boolean;
|
|
209
209
|
}
|
|
210
210
|
export type ContentRetrievalTracking = {
|
|
211
211
|
/**
|
|
@@ -214,11 +214,6 @@ export type ContentRetrievalTracking = {
|
|
|
214
214
|
* @default false
|
|
215
215
|
*/
|
|
216
216
|
enabled: boolean;
|
|
217
|
-
/**
|
|
218
|
-
* @description Control how frequently/at what rate successful editor content retrieval events are dispatched.
|
|
219
|
-
* @default 100
|
|
220
|
-
*/
|
|
221
|
-
successSamplingRate?: number;
|
|
222
217
|
/**
|
|
223
218
|
* @description Control how frequently/at what rate failed editor content retrieval events are dispatched.
|
|
224
219
|
* @default 100
|
|
@@ -229,6 +224,11 @@ export type ContentRetrievalTracking = {
|
|
|
229
224
|
* @default false
|
|
230
225
|
*/
|
|
231
226
|
reportErrorStack?: boolean;
|
|
227
|
+
/**
|
|
228
|
+
* @description Control how frequently/at what rate successful editor content retrieval events are dispatched.
|
|
229
|
+
* @default 100
|
|
230
|
+
*/
|
|
231
|
+
successSamplingRate?: number;
|
|
232
232
|
};
|
|
233
233
|
export type OnChangeCallbackTracking = {
|
|
234
234
|
/**
|
|
@@ -279,26 +279,23 @@ export type ErrorTracking = {
|
|
|
279
279
|
enabled?: boolean;
|
|
280
280
|
};
|
|
281
281
|
export type PerformanceTracking = {
|
|
282
|
+
bFreezeTracking?: BrowserFreezetracking;
|
|
282
283
|
/**
|
|
283
284
|
* @description Control whether measurements for all analytics events are performed
|
|
284
285
|
*/
|
|
285
286
|
catchAllTracking?: CatchAllTracking;
|
|
286
287
|
/**
|
|
287
|
-
* @description Control whether
|
|
288
|
+
* @description Control whether editor content retrieval events are tracked
|
|
288
289
|
*/
|
|
289
|
-
|
|
290
|
+
contentRetrievalTracking?: ContentRetrievalTracking;
|
|
290
291
|
/**
|
|
291
|
-
* @description Control whether
|
|
292
|
+
* @description Control whether top-level Editor errors caught by ErrorBoundary are tracked.
|
|
292
293
|
*/
|
|
293
|
-
|
|
294
|
+
errorTracking?: ErrorTracking;
|
|
294
295
|
/**
|
|
295
296
|
* @description Control whether transactions are tracked
|
|
296
297
|
*/
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* @description Control whether editor ui is tracked
|
|
300
|
-
*/
|
|
301
|
-
uiTracking?: UITracking;
|
|
298
|
+
inputTracking?: InputTracking;
|
|
302
299
|
/**
|
|
303
300
|
* @description Control whether nodeviews are tracked
|
|
304
301
|
*/
|
|
@@ -306,15 +303,6 @@ export type PerformanceTracking = {
|
|
|
306
303
|
/**
|
|
307
304
|
* @description Control whether browser freezes / long tasks are tracked
|
|
308
305
|
*/
|
|
309
|
-
bFreezeTracking?: BrowserFreezetracking;
|
|
310
|
-
/**
|
|
311
|
-
* @description Control whether proseMirror rendered event is tracked
|
|
312
|
-
*/
|
|
313
|
-
proseMirrorRenderedTracking?: ProseMirrorRenderedTracking;
|
|
314
|
-
/**
|
|
315
|
-
* @description Control whether editor content retrieval events are tracked
|
|
316
|
-
*/
|
|
317
|
-
contentRetrievalTracking?: ContentRetrievalTracking;
|
|
318
306
|
/**
|
|
319
307
|
* @description Control onChange callback is tracked. Requires TransactionTracking to be enabled,
|
|
320
308
|
* and uses the sampling rate in TransactionTracking.
|
|
@@ -328,6 +316,10 @@ export type PerformanceTracking = {
|
|
|
328
316
|
* @description Control whether paste is tracked.
|
|
329
317
|
*/
|
|
330
318
|
pasteTracking?: PasteTracking;
|
|
319
|
+
/**
|
|
320
|
+
* @description Control whether proseMirror rendered event is tracked
|
|
321
|
+
*/
|
|
322
|
+
proseMirrorRenderedTracking?: ProseMirrorRenderedTracking;
|
|
331
323
|
/**
|
|
332
324
|
* @description Control whether render of different component is tracked.
|
|
333
325
|
*/
|
|
@@ -337,7 +329,15 @@ export type PerformanceTracking = {
|
|
|
337
329
|
*/
|
|
338
330
|
startedTracking?: StartedTracking;
|
|
339
331
|
/**
|
|
340
|
-
* @description Control whether
|
|
332
|
+
* @description Control whether transactions are tracked
|
|
341
333
|
*/
|
|
342
|
-
|
|
334
|
+
transactionTracking?: TransactionTracking;
|
|
335
|
+
/**
|
|
336
|
+
* @description Control whether time to interactive is tracked
|
|
337
|
+
*/
|
|
338
|
+
ttiTracking?: TTITracking;
|
|
339
|
+
/**
|
|
340
|
+
* @description Control whether editor ui is tracked
|
|
341
|
+
*/
|
|
342
|
+
uiTracking?: UITracking;
|
|
343
343
|
};
|
|
@@ -8,16 +8,16 @@ import type { SafePlugin } from '../safe-plugin';
|
|
|
8
8
|
import type { ErrorReporter } from '../utils';
|
|
9
9
|
import type { FeatureFlags } from './feature-flags';
|
|
10
10
|
export type PMPluginFactoryParams = {
|
|
11
|
-
schema: Schema;
|
|
12
11
|
dispatch: Dispatch;
|
|
13
|
-
eventDispatcher: EventDispatcher;
|
|
14
|
-
providerFactory: ProviderFactory;
|
|
15
|
-
errorReporter?: ErrorReporter;
|
|
16
|
-
portalProviderAPI: PortalProviderAPI;
|
|
17
|
-
nodeViewPortalProviderAPI: PortalProviderAPI;
|
|
18
12
|
dispatchAnalyticsEvent: DispatchAnalyticsEvent;
|
|
13
|
+
errorReporter?: ErrorReporter;
|
|
14
|
+
eventDispatcher: EventDispatcher;
|
|
19
15
|
featureFlags: FeatureFlags;
|
|
20
16
|
getIntl: () => IntlShape;
|
|
17
|
+
nodeViewPortalProviderAPI: PortalProviderAPI;
|
|
18
|
+
portalProviderAPI: PortalProviderAPI;
|
|
19
|
+
providerFactory: ProviderFactory;
|
|
20
|
+
schema: Schema;
|
|
21
21
|
};
|
|
22
22
|
export type PMPluginFactory = (params: PMPluginFactoryParams) => SafePlugin | undefined;
|
|
23
23
|
export type PMPlugin = {
|
|
@@ -3,9 +3,9 @@ import type { IntlShape } from 'react-intl-next';
|
|
|
3
3
|
import type { QuickInsertItem, QuickInsertProvider } from '../provider-factory';
|
|
4
4
|
import type { EmptyStateHandler } from './empty-state-handler';
|
|
5
5
|
export type QuickInsertOptions = boolean | {
|
|
6
|
-
provider?: Promise<QuickInsertProvider>;
|
|
7
|
-
prioritySortingFn?: (items: QuickInsertItem[]) => Fuse.FuseSortFunction | undefined;
|
|
8
6
|
onInsert?: (item: QuickInsertItem) => void;
|
|
7
|
+
prioritySortingFn?: (items: QuickInsertItem[]) => Fuse.FuseSortFunction | undefined;
|
|
8
|
+
provider?: Promise<QuickInsertProvider>;
|
|
9
9
|
};
|
|
10
10
|
export type QuickInsertHandlerFn = ((intl: IntlShape) => Array<QuickInsertItem>) & {
|
|
11
11
|
disableMemo?: boolean;
|
|
@@ -15,18 +15,18 @@ export type IconProps = {
|
|
|
15
15
|
label?: string;
|
|
16
16
|
};
|
|
17
17
|
export type QuickInsertSearchOptions = {
|
|
18
|
-
query?: string;
|
|
19
18
|
category?: string;
|
|
20
19
|
disableDefaultItems?: boolean;
|
|
21
20
|
featuredItems?: boolean;
|
|
22
21
|
prioritySortingFn?: (items: QuickInsertItem[]) => Fuse.FuseSortFunction | undefined;
|
|
22
|
+
query?: string;
|
|
23
23
|
};
|
|
24
24
|
export type QuickInsertPluginState = {
|
|
25
|
+
emptyStateHandler?: EmptyStateHandler;
|
|
25
26
|
isElementBrowserModalOpen: boolean;
|
|
26
27
|
lazyDefaultItems: () => QuickInsertItem[];
|
|
27
28
|
providedItems?: QuickInsertItem[];
|
|
28
29
|
provider?: QuickInsertProvider;
|
|
29
|
-
emptyStateHandler?: EmptyStateHandler;
|
|
30
30
|
searchOptions?: QuickInsertSearchOptions;
|
|
31
31
|
};
|
|
32
32
|
export type QuickInsertPluginStateKeys = keyof QuickInsertPluginState;
|
|
@@ -36,17 +36,17 @@ export type QuickInsertPluginStateKeys = keyof QuickInsertPluginState;
|
|
|
36
36
|
* @see https://product-fabric.atlassian.net/browse/ED-27496
|
|
37
37
|
*/
|
|
38
38
|
export interface QuickInsertPluginOptions {
|
|
39
|
-
headless?: boolean;
|
|
40
39
|
disableDefaultItems?: boolean;
|
|
41
|
-
enableElementBrowser?: boolean;
|
|
42
40
|
elementBrowserHelpUrl?: string;
|
|
43
41
|
emptyStateHandler?: EmptyStateHandler;
|
|
44
|
-
|
|
42
|
+
enableElementBrowser?: boolean;
|
|
43
|
+
headless?: boolean;
|
|
45
44
|
onInsert?: (item: QuickInsertItem) => void;
|
|
45
|
+
prioritySortingFn?: (items: QuickInsertItem[]) => Fuse.FuseSortFunction | undefined;
|
|
46
46
|
}
|
|
47
47
|
export type QuickInsertSharedState = {
|
|
48
|
-
lazyDefaultItems: () => QuickInsertItem[];
|
|
49
48
|
emptyStateHandler?: EmptyStateHandler;
|
|
50
|
-
providedItems?: QuickInsertItem[];
|
|
51
49
|
isElementBrowserModalOpen: boolean;
|
|
50
|
+
lazyDefaultItems: () => QuickInsertItem[];
|
|
51
|
+
providedItems?: QuickInsertItem[];
|
|
52
52
|
};
|
|
@@ -4,13 +4,13 @@ import type { ProviderFactory } from '../provider-factory';
|
|
|
4
4
|
import type { Command } from './command';
|
|
5
5
|
import type { FloatingToolbarItem } from './floating-toolbar';
|
|
6
6
|
export type SelectionToolbarGroup = {
|
|
7
|
+
items: Array<FloatingToolbarItem<Command>>;
|
|
8
|
+
pluginName?: string;
|
|
7
9
|
/**
|
|
8
10
|
* by default these will be added in the order the plugin adds them
|
|
9
11
|
* To override this a rank can be provided
|
|
10
12
|
*/
|
|
11
13
|
rank?: number;
|
|
12
|
-
items: Array<FloatingToolbarItem<Command>>;
|
|
13
|
-
pluginName?: string;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* The selection toolbar is a floating toolbar that is displayed for
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare const SupportedBrowsers: readonly ["ie", "gecko", "chrome", "safari"];
|
|
2
2
|
export type Browsers = (typeof SupportedBrowsers)[number];
|
|
3
3
|
export type Range = {
|
|
4
|
-
minimum: number;
|
|
5
4
|
maximum?: number;
|
|
5
|
+
minimum: number;
|
|
6
6
|
};
|
|
7
7
|
export type DisableSpellcheckByBrowser = {
|
|
8
8
|
[b in Browsers]?: Range;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export interface ColumnResizingPluginState {
|
|
2
|
-
resizeHandlePos: number | null;
|
|
3
2
|
dragging: {
|
|
4
|
-
startX: number;
|
|
5
3
|
startWidth: number;
|
|
4
|
+
startX: number;
|
|
6
5
|
} | null;
|
|
7
6
|
lastClick: {
|
|
7
|
+
time: number;
|
|
8
8
|
x: number;
|
|
9
9
|
y: number;
|
|
10
|
-
time: number;
|
|
11
10
|
} | null;
|
|
12
11
|
lastColumnResizable?: boolean;
|
|
12
|
+
resizeHandlePos: number | null;
|
|
13
13
|
}
|