@atlaskit/editor-common 74.0.0 → 74.1.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 +26 -0
- package/analytics/package.json +2 -2
- package/card/package.json +2 -2
- package/collab/package.json +2 -2
- package/core-utils/package.json +2 -2
- package/dist/cjs/event-dispatcher/index.js +6 -3
- package/dist/cjs/insert/index.js +274 -0
- package/dist/cjs/monitoring/error.js +106 -0
- package/dist/cjs/monitoring/index.js +12 -0
- package/dist/cjs/node-width/index.js +5 -0
- package/dist/cjs/paste/index.js +12 -0
- package/dist/cjs/paste/md-plugins/ignore-list-heading-md-plugin.js +47 -0
- package/dist/cjs/paste/md-plugins/linkify-md-plugin.js +135 -0
- package/dist/cjs/paste/md-plugins/newline-md-plugin.js +67 -0
- package/dist/cjs/paste/md-plugins/paragraph-md-plugin.js +73 -0
- package/dist/cjs/paste/md.js +31 -0
- package/dist/cjs/preset/plugin-injection-api.js +4 -2
- package/dist/cjs/provider-helpers/combine-providers.js +1 -1
- package/dist/cjs/resizer.js +13 -0
- package/dist/cjs/styles/index.js +8 -1
- package/dist/cjs/styles/shared/blockquote.js +1 -2
- package/dist/cjs/styles/shared/code-block.js +5 -5
- package/dist/cjs/styles/shared/extension.js +4 -0
- package/dist/cjs/styles/shared/layout.js +4 -0
- package/dist/cjs/styles/shared/panel.js +4 -1
- package/dist/cjs/styles/shared/resizer.js +31 -0
- package/dist/cjs/styles/shared/smart-card.js +5 -0
- package/dist/cjs/styles/shared/table.js +2 -3
- package/dist/cjs/types/performance-tracking.js +5 -0
- package/dist/cjs/ui/DropList/index.js +6 -4
- package/dist/cjs/ui/ErrorBoundary/index.js +7 -0
- package/dist/cjs/ui/Expand/index.js +11 -8
- package/dist/cjs/ui/FloatingToolbar/Button.js +93 -0
- package/dist/cjs/ui/FloatingToolbar/styles.js +79 -0
- package/dist/cjs/ui/MediaSingle/grid.js +52 -1
- package/dist/cjs/ui/MediaSingle/index.js +2 -4
- package/dist/cjs/ui/Messages/index.js +2 -3
- package/dist/cjs/ui/Resizer/index.js +97 -0
- package/dist/cjs/ui/Resizer/types.js +5 -0
- package/dist/cjs/ui/Resizer/utils.js +8 -0
- package/dist/cjs/ui/index.js +14 -1
- package/dist/cjs/ui-color/ColorPalette/styles.js +1 -2
- package/dist/cjs/utils/editor-core-utils.js +9 -1
- package/dist/cjs/utils/hyperlink.js +200 -0
- package/dist/cjs/utils/index.js +96 -8
- package/dist/cjs/utils/list.js +19 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/event-dispatcher/index.js +4 -2
- package/dist/es2019/insert/index.js +264 -0
- package/dist/es2019/monitoring/error.js +68 -0
- package/dist/es2019/monitoring/index.js +1 -0
- package/dist/es2019/node-width/index.js +4 -0
- package/dist/es2019/paste/index.js +1 -0
- package/dist/es2019/paste/md-plugins/ignore-list-heading-md-plugin.js +43 -0
- package/dist/es2019/paste/md-plugins/linkify-md-plugin.js +128 -0
- package/dist/es2019/paste/md-plugins/newline-md-plugin.js +58 -0
- package/dist/es2019/paste/md-plugins/paragraph-md-plugin.js +64 -0
- package/dist/es2019/paste/md.js +22 -0
- package/dist/es2019/preset/plugin-injection-api.js +4 -2
- package/dist/es2019/provider-helpers/combine-providers.js +1 -1
- package/dist/es2019/resizer.js +1 -0
- package/dist/es2019/styles/index.js +2 -1
- package/dist/es2019/styles/shared/blockquote.js +2 -3
- package/dist/es2019/styles/shared/code-block.js +8 -7
- package/dist/es2019/styles/shared/extension.js +4 -0
- package/dist/es2019/styles/shared/layout.js +4 -0
- package/dist/es2019/styles/shared/panel.js +7 -4
- package/dist/es2019/styles/shared/resizer.js +72 -0
- package/dist/es2019/styles/shared/smart-card.js +4 -0
- package/dist/es2019/styles/shared/table.js +2 -3
- package/dist/es2019/types/performance-tracking.js +1 -0
- package/dist/es2019/ui/DropList/index.js +7 -3
- package/dist/es2019/ui/ErrorBoundary/index.js +7 -0
- package/dist/es2019/ui/Expand/index.js +14 -9
- package/dist/es2019/ui/FloatingToolbar/Button.js +85 -0
- package/dist/es2019/ui/FloatingToolbar/styles.js +64 -0
- package/dist/es2019/ui/MediaSingle/grid.js +50 -0
- package/dist/es2019/ui/MediaSingle/index.js +1 -2
- package/dist/es2019/ui/Messages/index.js +2 -3
- package/dist/es2019/ui/Resizer/index.js +92 -0
- package/dist/es2019/ui/Resizer/types.js +1 -0
- package/dist/es2019/ui/Resizer/utils.js +1 -0
- package/dist/es2019/ui/index.js +4 -3
- package/dist/es2019/ui-color/ColorPalette/styles.js +1 -2
- package/dist/es2019/utils/editor-core-utils.js +7 -0
- package/dist/es2019/utils/hyperlink.js +165 -0
- package/dist/es2019/utils/index.js +6 -3
- package/dist/es2019/utils/list.js +13 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/event-dispatcher/index.js +4 -2
- package/dist/esm/insert/index.js +262 -0
- package/dist/esm/monitoring/error.js +91 -0
- package/dist/esm/monitoring/index.js +1 -0
- package/dist/esm/node-width/index.js +4 -0
- package/dist/esm/paste/index.js +1 -0
- package/dist/esm/paste/md-plugins/ignore-list-heading-md-plugin.js +41 -0
- package/dist/esm/paste/md-plugins/linkify-md-plugin.js +128 -0
- package/dist/esm/paste/md-plugins/newline-md-plugin.js +60 -0
- package/dist/esm/paste/md-plugins/paragraph-md-plugin.js +66 -0
- package/dist/esm/paste/md.js +22 -0
- package/dist/esm/preset/plugin-injection-api.js +4 -2
- package/dist/esm/provider-helpers/combine-providers.js +1 -1
- package/dist/esm/resizer.js +1 -0
- package/dist/esm/styles/index.js +2 -1
- package/dist/esm/styles/shared/blockquote.js +1 -2
- package/dist/esm/styles/shared/code-block.js +6 -6
- package/dist/esm/styles/shared/extension.js +4 -0
- package/dist/esm/styles/shared/layout.js +4 -0
- package/dist/esm/styles/shared/panel.js +4 -1
- package/dist/esm/styles/shared/resizer.js +18 -0
- package/dist/esm/styles/shared/smart-card.js +4 -0
- package/dist/esm/styles/shared/table.js +2 -3
- package/dist/esm/types/performance-tracking.js +1 -0
- package/dist/esm/ui/DropList/index.js +6 -3
- package/dist/esm/ui/ErrorBoundary/index.js +7 -0
- package/dist/esm/ui/Expand/index.js +11 -8
- package/dist/esm/ui/FloatingToolbar/Button.js +85 -0
- package/dist/esm/ui/FloatingToolbar/styles.js +68 -0
- package/dist/esm/ui/MediaSingle/grid.js +48 -0
- package/dist/esm/ui/MediaSingle/index.js +1 -2
- package/dist/esm/ui/Messages/index.js +2 -3
- package/dist/esm/ui/Resizer/index.js +90 -0
- package/dist/esm/ui/Resizer/types.js +1 -0
- package/dist/esm/ui/Resizer/utils.js +1 -0
- package/dist/esm/ui/index.js +4 -3
- package/dist/esm/ui-color/ColorPalette/styles.js +1 -2
- package/dist/esm/utils/editor-core-utils.js +7 -0
- package/dist/esm/utils/hyperlink.js +184 -0
- package/dist/esm/utils/index.js +6 -3
- package/dist/esm/utils/list.js +13 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/__tests_external__/cases/fundamentals/test-cases/editor-is-present.d.ts +1 -1
- package/dist/types/__tests_external__/cases/fundamentals/test-cases/editor-typing.d.ts +1 -1
- package/dist/types/__tests_external__/page-objects/Editor.d.ts +2 -0
- package/dist/types/__tests_external__/page-objects/EditorSmartLink.d.ts +2 -0
- package/dist/types/__tests_external__/page-objects/Renderer.d.ts +2 -0
- package/dist/types/analytics/api.d.ts +2 -2
- package/dist/types/analytics/types/avatar.d.ts +2 -2
- package/dist/types/analytics/types/block.d.ts +3 -3
- package/dist/types/analytics/types/config-panel-events.d.ts +4 -4
- package/dist/types/analytics/types/cut-copy-events.d.ts +3 -3
- package/dist/types/analytics/types/date-events.d.ts +6 -6
- package/dist/types/analytics/types/dispatch-analytics-event.d.ts +1 -1
- package/dist/types/analytics/types/element-browser-events.d.ts +4 -4
- package/dist/types/analytics/types/events.d.ts +26 -26
- package/dist/types/analytics/types/experimental-events.d.ts +4 -4
- package/dist/types/analytics/types/extension-events.d.ts +5 -5
- package/dist/types/analytics/types/find-replace-events.d.ts +9 -9
- package/dist/types/analytics/types/format-events.d.ts +10 -10
- package/dist/types/analytics/types/general-events.d.ts +40 -40
- package/dist/types/analytics/types/inline-comment-events.d.ts +5 -5
- package/dist/types/analytics/types/insert-events.d.ts +23 -23
- package/dist/types/analytics/types/link-tool-bar-events.d.ts +14 -14
- package/dist/types/analytics/types/list-events.d.ts +11 -11
- package/dist/types/analytics/types/media-events.d.ts +12 -12
- package/dist/types/analytics/types/node-events.d.ts +11 -11
- package/dist/types/analytics/types/paste-events.d.ts +10 -10
- package/dist/types/analytics/types/performance-report.d.ts +1 -1
- package/dist/types/analytics/types/referentiality-events.d.ts +10 -10
- package/dist/types/analytics/types/selection-events.d.ts +6 -6
- package/dist/types/analytics/types/smart-links.d.ts +2 -2
- package/dist/types/analytics/types/substitute-events.d.ts +5 -5
- package/dist/types/analytics/types/table-events.d.ts +18 -18
- package/dist/types/analytics/types/toolbar-button.d.ts +2 -2
- package/dist/types/analytics/types/type-ahead.d.ts +8 -8
- package/dist/types/analytics/types/utils.d.ts +9 -9
- package/dist/types/card/utils.d.ts +2 -2
- package/dist/types/collab/types.d.ts +2 -2
- package/dist/types/event-dispatcher/index.d.ts +4 -2
- package/dist/types/extensions/combine-extension-providers.d.ts +1 -1
- package/dist/types/extensions/default-extension-provider.d.ts +1 -1
- package/dist/types/extensions/extension-handlers.d.ts +2 -2
- package/dist/types/extensions/manifest-helpers.d.ts +6 -5
- package/dist/types/extensions/module-helpers.d.ts +4 -4
- package/dist/types/extensions/types/extension-handler.d.ts +9 -9
- package/dist/types/extensions/types/extension-manifest-common.d.ts +4 -4
- package/dist/types/extensions/types/extension-manifest-toolbar-item.d.ts +11 -11
- package/dist/types/extensions/types/extension-manifest.d.ts +30 -30
- package/dist/types/extensions/types/extension-parameters.d.ts +2 -2
- package/dist/types/extensions/types/field-definitions.d.ts +12 -12
- package/dist/types/extensions/types/utils.d.ts +2 -2
- package/dist/types/hooks/useSharedPluginState.d.ts +2 -2
- package/dist/types/i18n/cs.d.ts +6 -6
- package/dist/types/i18n/da.d.ts +6 -6
- package/dist/types/i18n/de.d.ts +6 -6
- package/dist/types/i18n/en.d.ts +6 -6
- package/dist/types/i18n/en_GB.d.ts +6 -6
- package/dist/types/i18n/en_ZZ.d.ts +6 -6
- package/dist/types/i18n/es.d.ts +6 -6
- package/dist/types/i18n/et.d.ts +1 -1
- package/dist/types/i18n/fi.d.ts +6 -6
- package/dist/types/i18n/fr.d.ts +6 -6
- package/dist/types/i18n/hu.d.ts +6 -6
- package/dist/types/i18n/it.d.ts +6 -6
- package/dist/types/i18n/ja.d.ts +6 -6
- package/dist/types/i18n/ko.d.ts +6 -6
- package/dist/types/i18n/languages.d.ts +6 -6
- package/dist/types/i18n/nb.d.ts +6 -6
- package/dist/types/i18n/nl.d.ts +6 -6
- package/dist/types/i18n/pl.d.ts +6 -6
- package/dist/types/i18n/pt_BR.d.ts +6 -6
- package/dist/types/i18n/pt_PT.d.ts +1 -1
- package/dist/types/i18n/ru.d.ts +6 -6
- package/dist/types/i18n/sk.d.ts +1 -1
- package/dist/types/i18n/sv.d.ts +6 -6
- package/dist/types/i18n/th.d.ts +6 -6
- package/dist/types/i18n/tr.d.ts +6 -6
- package/dist/types/i18n/uk.d.ts +6 -6
- package/dist/types/i18n/vi.d.ts +6 -6
- package/dist/types/i18n/zh.d.ts +6 -6
- package/dist/types/i18n/zh_TW.d.ts +6 -6
- package/dist/types/insert/index.d.ts +25 -0
- package/dist/types/monitoring/error.d.ts +4 -0
- package/dist/types/monitoring/index.d.ts +1 -0
- package/dist/types/node-width/index.d.ts +1 -1
- package/dist/types/normalize-feature-flags.d.ts +2 -2
- package/dist/types/paste/index.d.ts +1 -0
- package/dist/types/paste/md-plugins/ignore-list-heading-md-plugin.d.ts +2 -0
- package/dist/types/paste/md-plugins/linkify-md-plugin.d.ts +2 -0
- package/dist/types/paste/md-plugins/newline-md-plugin.d.ts +2 -0
- package/dist/types/paste/md-plugins/paragraph-md-plugin.d.ts +2 -0
- package/dist/types/paste/md.d.ts +2 -0
- package/dist/types/preset/plugin-injection-api.d.ts +5 -5
- package/dist/types/provider-factory/autoformatting-provider.d.ts +3 -3
- package/dist/types/provider-factory/card-provider.d.ts +1 -1
- package/dist/types/provider-factory/image-upload-provider.d.ts +2 -2
- package/dist/types/provider-factory/macro-provider.d.ts +1 -1
- package/dist/types/provider-factory/media-provider.d.ts +1 -1
- package/dist/types/provider-factory/quick-insert-provider.d.ts +4 -4
- package/dist/types/provider-factory/search-provider.d.ts +1 -1
- package/dist/types/provider-factory/types.d.ts +3 -3
- package/dist/types/provider-factory/with-providers.d.ts +1 -1
- package/dist/types/provider-helpers/combine-providers.d.ts +4 -4
- package/dist/types/provider-helpers/promise-helpers.d.ts +2 -2
- package/dist/types/react-node-view/types.d.ts +6 -6
- package/dist/types/resizer.d.ts +1 -0
- package/dist/types/selection/gap-cursor/utils/is-ignored.d.ts +1 -1
- package/dist/types/selection/gap-cursor/utils/is-valid-target-node.d.ts +1 -1
- package/dist/types/selection/types.d.ts +1 -1
- package/dist/types/selection/utils.d.ts +2 -2
- package/dist/types/styles/index.d.ts +1 -0
- package/dist/types/styles/shared/resizer.d.ts +6 -0
- package/dist/types/styles/shared/table.d.ts +1 -1
- package/dist/types/transforms/expand.d.ts +1 -1
- package/dist/types/types/annotation/emitter.d.ts +5 -5
- package/dist/types/types/annotation/index.d.ts +8 -8
- package/dist/types/types/collab.d.ts +2 -2
- package/dist/types/types/command.d.ts +3 -3
- package/dist/types/types/context-panel.d.ts +1 -1
- package/dist/types/types/copy-button.d.ts +2 -2
- package/dist/types/types/editor-actions.d.ts +2 -2
- package/dist/types/types/editor-appearance.d.ts +1 -1
- package/dist/types/types/editor-container-width.d.ts +2 -2
- package/dist/types/types/editor-plugin.d.ts +4 -4
- package/dist/types/types/editor-react-context.d.ts +1 -1
- package/dist/types/types/empty-state-handler.d.ts +2 -2
- package/dist/types/types/feature-flags.d.ts +3 -3
- package/dist/types/types/floating-toolbar.d.ts +26 -26
- package/dist/types/types/index.d.ts +3 -2
- package/dist/types/types/next-editor-plugin.d.ts +38 -38
- package/dist/types/types/performance-tracking.d.ts +343 -0
- package/dist/types/types/plugin-factory.d.ts +3 -3
- package/dist/types/types/quick-insert.d.ts +5 -5
- package/dist/types/types/supported-browsers.d.ts +3 -3
- package/dist/types/types/toolbar.d.ts +2 -2
- package/dist/types/types/type-ahead.d.ts +7 -7
- package/dist/types/types/ui-components.d.ts +2 -2
- package/dist/types/ufo/experience-store.d.ts +2 -2
- package/dist/types/ui/BaseTheme/index.d.ts +2 -2
- package/dist/types/ui/Caption/index.d.ts +1 -1
- package/dist/types/ui/DropList/index.d.ts +2 -2
- package/dist/types/ui/ErrorBoundary/index.d.ts +1 -1
- package/dist/types/ui/EventHandlers/index.d.ts +5 -5
- package/dist/types/ui/FloatingToolbar/Button.d.ts +30 -0
- package/dist/types/ui/FloatingToolbar/styles.d.ts +20 -0
- package/dist/types/ui/Layer/index.d.ts +2 -2
- package/dist/types/ui/MediaSingle/grid.d.ts +14 -0
- package/dist/types/ui/MediaSingle/index.d.ts +1 -2
- package/dist/types/ui/OverflowShadow/shadowObserver.d.ts +1 -1
- package/dist/types/ui/PortalProvider/index.d.ts +5 -5
- package/dist/types/ui/Resizer/index.d.ts +22 -0
- package/dist/types/ui/Resizer/types.d.ts +18 -0
- package/dist/types/ui/Resizer/utils.d.ts +1 -0
- package/dist/types/ui/WidthProvider/index.d.ts +4 -4
- package/dist/types/ui/WithCreateAnalyticsEvent/index.d.ts +1 -1
- package/dist/types/ui/index.d.ts +3 -2
- package/dist/types/ui/with-outer-listeners.d.ts +1 -1
- package/dist/types/ui-color/ColorPalette/Palettes/type.d.ts +2 -2
- package/dist/types/ui-menu/ArrowKeyNavigationProvider/types.d.ts +7 -7
- package/dist/types/ui-menu/ToolbarButton/index.d.ts +2 -2
- package/dist/types/ui-react/ReactEditorViewContext.d.ts +1 -1
- package/dist/types/ui-react/with-react-editor-view-outer-listeners.d.ts +2 -2
- package/dist/types/utils/analytics.d.ts +7 -7
- package/dist/types/utils/annotation/index.d.ts +1 -1
- package/dist/types/utils/browser-extensions.d.ts +6 -6
- package/dist/types/utils/collab.d.ts +1 -1
- package/dist/types/utils/compare-props.d.ts +8 -8
- package/dist/types/utils/compareNodes.d.ts +2 -2
- package/dist/types/utils/compose.d.ts +1 -1
- package/dist/types/utils/date.d.ts +1 -1
- package/dist/types/utils/dom.d.ts +1 -1
- package/dist/types/utils/editor-core-utils.d.ts +4 -0
- package/dist/types/utils/error-reporter.d.ts +1 -1
- package/dist/types/utils/extension-handler.d.ts +2 -2
- package/dist/types/utils/hyperlink.d.ts +27 -0
- package/dist/types/utils/imageLoader.d.ts +1 -1
- package/dist/types/utils/index.d.ts +4 -3
- package/dist/types/utils/list.d.ts +4 -0
- package/dist/types/utils/nodes.d.ts +2 -2
- package/dist/types/utils/performance/hooks/use-component-render-tracking/index.d.ts +3 -3
- package/dist/types/utils/plugin-state-factory.d.ts +3 -3
- package/dist/types/utils/profiler/render-count.d.ts +2 -2
- package/dist/types/utils/referentiality.d.ts +6 -6
- package/dist/types/utils/slice.d.ts +2 -2
- package/dist/types/utils/track-unsupported-content.d.ts +4 -4
- package/dist/types/utils/traversor.d.ts +1 -1
- package/dist/types/utils/types.d.ts +2 -2
- package/dist/types/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +2 -2
- package/dist/types/utils/validate-using-spec.d.ts +3 -3
- package/dist/types/utils/validator.d.ts +1 -1
- package/dist/types/with-plugin-state/index.d.ts +6 -6
- package/dist/types/with-plugin-state/types.d.ts +3 -3
- package/dist/types-ts4.5/__tests_external__/cases/fundamentals/collection.d.ts +3 -0
- package/dist/types-ts4.5/__tests_external__/cases/fundamentals/test-cases/editor-is-present.d.ts +3 -0
- package/dist/types-ts4.5/__tests_external__/cases/fundamentals/test-cases/editor-typing.d.ts +3 -0
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/index.d.ts +4 -0
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/delete.d.ts +3 -0
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/edit.d.ts +4 -0
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/index.d.ts +3 -0
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/insert.d.ts +3 -0
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/delete.d.ts +3 -0
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/edit.d.ts +4 -0
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/index.d.ts +3 -0
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/insert.d.ts +3 -0
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/delete.d.ts +3 -0
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/edit.d.ts +4 -0
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/index.d.ts +3 -0
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/insert.d.ts +3 -0
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/unlink.d.ts +3 -0
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/types.d.ts +4 -0
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/url/index.d.ts +3 -0
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/url/insert.d.ts +3 -0
- package/dist/types-ts4.5/__tests_external__/cases/types.d.ts +7 -0
- package/dist/types-ts4.5/__tests_external__/index.d.ts +3 -0
- package/dist/types-ts4.5/__tests_external__/page-objects/Editor.d.ts +9 -0
- package/dist/types-ts4.5/__tests_external__/page-objects/EditorSmartLink.d.ts +40 -0
- package/dist/types-ts4.5/__tests_external__/page-objects/Renderer.d.ts +6 -0
- package/dist/types-ts4.5/analytics/analytics-queue.d.ts +10 -0
- package/dist/types-ts4.5/analytics/api.d.ts +5 -0
- package/dist/types-ts4.5/analytics/fire-analytics-event.d.ts +2 -0
- package/dist/types-ts4.5/analytics/index.d.ts +5 -0
- package/dist/types-ts4.5/analytics/types/avatar.d.ts +5 -0
- package/dist/types-ts4.5/analytics/types/block.d.ts +3 -0
- package/dist/types-ts4.5/analytics/types/config-panel-events.d.ts +17 -0
- package/dist/types-ts4.5/analytics/types/cut-copy-events.d.ts +12 -0
- package/dist/types-ts4.5/analytics/types/date-events.d.ts +17 -0
- package/dist/types-ts4.5/analytics/types/dispatch-analytics-event.d.ts +2 -0
- package/dist/types-ts4.5/analytics/types/element-browser-events.d.ts +11 -0
- package/dist/types-ts4.5/analytics/types/enums.d.ts +357 -0
- package/dist/types-ts4.5/analytics/types/events.d.ts +130 -0
- package/dist/types-ts4.5/analytics/types/experimental-events.d.ts +16 -0
- package/dist/types-ts4.5/analytics/types/extension-events.d.ts +37 -0
- package/dist/types-ts4.5/analytics/types/find-replace-events.d.ts +23 -0
- package/dist/types-ts4.5/analytics/types/format-events.d.ts +49 -0
- package/dist/types-ts4.5/analytics/types/general-events.d.ts +187 -0
- package/dist/types-ts4.5/analytics/types/index.d.ts +36 -0
- package/dist/types-ts4.5/analytics/types/inline-comment-events.d.ts +17 -0
- package/dist/types-ts4.5/analytics/types/insert-events.d.ts +128 -0
- package/dist/types-ts4.5/analytics/types/link-tool-bar-events.d.ts +76 -0
- package/dist/types-ts4.5/analytics/types/list-events.d.ts +66 -0
- package/dist/types-ts4.5/analytics/types/media-events.d.ts +18 -0
- package/dist/types-ts4.5/analytics/types/node-events.d.ts +56 -0
- package/dist/types-ts4.5/analytics/types/paste-events.d.ts +39 -0
- package/dist/types-ts4.5/analytics/types/performance-report.d.ts +24 -0
- package/dist/types-ts4.5/analytics/types/referentiality-events.d.ts +52 -0
- package/dist/types-ts4.5/analytics/types/selection-events.d.ts +18 -0
- package/dist/types-ts4.5/analytics/types/smart-links.d.ts +14 -0
- package/dist/types-ts4.5/analytics/types/substitute-events.d.ts +26 -0
- package/dist/types-ts4.5/analytics/types/table-events.d.ts +102 -0
- package/dist/types-ts4.5/analytics/types/toolbar-button.d.ts +22 -0
- package/dist/types-ts4.5/analytics/types/type-ahead.d.ts +27 -0
- package/dist/types-ts4.5/analytics/types/utils.d.ts +46 -0
- package/dist/types-ts4.5/analytics/utils.d.ts +3 -0
- package/dist/types-ts4.5/card/cardOptions.d.ts +12 -0
- package/dist/types-ts4.5/card/index.d.ts +2 -0
- package/dist/types-ts4.5/card/utils.d.ts +18 -0
- package/dist/types-ts4.5/collab/types.d.ts +101 -0
- package/dist/types-ts4.5/collab.d.ts +1 -0
- package/dist/types-ts4.5/core-utils/index.d.ts +1 -0
- package/dist/types-ts4.5/core-utils/inside.d.ts +2 -0
- package/dist/types-ts4.5/emoji.d.ts +3 -0
- package/dist/types-ts4.5/event-dispatcher/index.d.ts +21 -0
- package/dist/types-ts4.5/extensions/combine-extension-providers.d.ts +7 -0
- package/dist/types-ts4.5/extensions/default-extension-provider.d.ts +17 -0
- package/dist/types-ts4.5/extensions/extension-fields-helpers.d.ts +10 -0
- package/dist/types-ts4.5/extensions/extension-handlers.d.ts +13 -0
- package/dist/types-ts4.5/extensions/index.d.ts +8 -0
- package/dist/types-ts4.5/extensions/manifest-helpers.d.ts +9 -0
- package/dist/types-ts4.5/extensions/module-helpers.d.ts +11 -0
- package/dist/types-ts4.5/extensions/types/extension-handler.d.ts +40 -0
- package/dist/types-ts4.5/extensions/types/extension-manifest-common.d.ts +8 -0
- package/dist/types-ts4.5/extensions/types/extension-manifest-toolbar-item.d.ts +45 -0
- package/dist/types-ts4.5/extensions/types/extension-manifest.d.ts +101 -0
- package/dist/types-ts4.5/extensions/types/extension-parameters.d.ts +5 -0
- package/dist/types-ts4.5/extensions/types/extension-provider.d.ts +8 -0
- package/dist/types-ts4.5/extensions/types/field-definitions.d.ts +171 -0
- package/dist/types-ts4.5/extensions/types/index.d.ts +8 -0
- package/dist/types-ts4.5/extensions/types/utils.d.ts +18 -0
- package/dist/types-ts4.5/extensions.d.ts +2 -0
- package/dist/types-ts4.5/hooks/index.d.ts +3 -0
- package/dist/types-ts4.5/hooks/useConstructor.d.ts +9 -0
- package/dist/types-ts4.5/hooks/usePreviousState.d.ts +11 -0
- package/dist/types-ts4.5/hooks/useSharedPluginState.d.ts +39 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +133 -0
- package/dist/types-ts4.5/i18n/da.d.ts +133 -0
- package/dist/types-ts4.5/i18n/de.d.ts +133 -0
- package/dist/types-ts4.5/i18n/en.d.ts +133 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +133 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +115 -0
- package/dist/types-ts4.5/i18n/es.d.ts +133 -0
- package/dist/types-ts4.5/i18n/et.d.ts +8 -0
- package/dist/types-ts4.5/i18n/fi.d.ts +133 -0
- package/dist/types-ts4.5/i18n/fr.d.ts +133 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +133 -0
- package/dist/types-ts4.5/i18n/index.d.ts +32 -0
- package/dist/types-ts4.5/i18n/it.d.ts +133 -0
- package/dist/types-ts4.5/i18n/ja.d.ts +133 -0
- package/dist/types-ts4.5/i18n/ko.d.ts +133 -0
- package/dist/types-ts4.5/i18n/languages.d.ts +35 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +133 -0
- package/dist/types-ts4.5/i18n/nl.d.ts +133 -0
- package/dist/types-ts4.5/i18n/pl.d.ts +133 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +133 -0
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +8 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +133 -0
- package/dist/types-ts4.5/i18n/sk.d.ts +8 -0
- package/dist/types-ts4.5/i18n/sv.d.ts +133 -0
- package/dist/types-ts4.5/i18n/th.d.ts +133 -0
- package/dist/types-ts4.5/i18n/tr.d.ts +133 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +133 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +133 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +133 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +133 -0
- package/dist/types-ts4.5/icons/index.d.ts +10 -0
- package/dist/types-ts4.5/icons/shared/BorderIcon.d.ts +3 -0
- package/dist/types-ts4.5/icons/shared/PanelErrorIcon.d.ts +3 -0
- package/dist/types-ts4.5/icons/shared/PanelInfoIcon.d.ts +3 -0
- package/dist/types-ts4.5/icons/shared/PanelNoteIcon.d.ts +3 -0
- package/dist/types-ts4.5/icons/shared/PanelSuccessIcon.d.ts +3 -0
- package/dist/types-ts4.5/icons/shared/PanelWarningIcon.d.ts +3 -0
- package/dist/types-ts4.5/icons/shared/table.d.ts +2 -0
- package/dist/types-ts4.5/in-product.d.ts +1 -0
- package/dist/types-ts4.5/index.d.ts +1 -0
- package/dist/types-ts4.5/insert/index.d.ts +25 -0
- package/dist/types-ts4.5/keymaps/consts.d.ts +12 -0
- package/dist/types-ts4.5/keymaps/index.d.ts +91 -0
- package/dist/types-ts4.5/mention.d.ts +2 -0
- package/dist/types-ts4.5/messages/codeBidiWarning.d.ts +11 -0
- package/dist/types-ts4.5/messages/codeBlockButton.d.ts +22 -0
- package/dist/types-ts4.5/messages/index.d.ts +128 -0
- package/dist/types-ts4.5/messages/insert-block.d.ts +172 -0
- package/dist/types-ts4.5/messages/link.d.ts +7 -0
- package/dist/types-ts4.5/messages/unsupportedContent.d.ts +17 -0
- package/dist/types-ts4.5/monitoring/error.d.ts +4 -0
- package/dist/types-ts4.5/monitoring/index.d.ts +1 -0
- package/dist/types-ts4.5/node-width/index.d.ts +7 -0
- package/dist/types-ts4.5/normalize-feature-flags.d.ts +27 -0
- package/dist/types-ts4.5/panel.d.ts +1 -0
- package/dist/types-ts4.5/paste/index.d.ts +1 -0
- package/dist/types-ts4.5/paste/md-plugins/ignore-list-heading-md-plugin.d.ts +2 -0
- package/dist/types-ts4.5/paste/md-plugins/linkify-md-plugin.d.ts +2 -0
- package/dist/types-ts4.5/paste/md-plugins/newline-md-plugin.d.ts +2 -0
- package/dist/types-ts4.5/paste/md-plugins/paragraph-md-plugin.d.ts +2 -0
- package/dist/types-ts4.5/paste/md.d.ts +2 -0
- package/dist/types-ts4.5/preset/builder.d.ts +36 -0
- package/dist/types-ts4.5/preset/index.d.ts +2 -0
- package/dist/types-ts4.5/preset/plugin-injection-api.d.ts +50 -0
- package/dist/types-ts4.5/provider-factory/autoformatting-provider.d.ts +9 -0
- package/dist/types-ts4.5/provider-factory/card-provider.d.ts +7 -0
- package/dist/types-ts4.5/provider-factory/context-identifier-provider.d.ts +6 -0
- package/dist/types-ts4.5/provider-factory/context.d.ts +6 -0
- package/dist/types-ts4.5/provider-factory/image-upload-provider.d.ts +6 -0
- package/dist/types-ts4.5/provider-factory/macro-provider.d.ts +25 -0
- package/dist/types-ts4.5/provider-factory/media-provider.d.ts +15 -0
- package/dist/types-ts4.5/provider-factory/profile-card-provider.d.ts +6 -0
- package/dist/types-ts4.5/provider-factory/provider-factory.d.ts +17 -0
- package/dist/types-ts4.5/provider-factory/quick-insert-provider.d.ts +24 -0
- package/dist/types-ts4.5/provider-factory/search-provider.d.ts +12 -0
- package/dist/types-ts4.5/provider-factory/types.d.ts +37 -0
- package/dist/types-ts4.5/provider-factory/with-providers.d.ts +18 -0
- package/dist/types-ts4.5/provider-factory.d.ts +13 -0
- package/dist/types-ts4.5/provider-helpers/combine-providers.d.ts +9 -0
- package/dist/types-ts4.5/provider-helpers/index.d.ts +1 -0
- package/dist/types-ts4.5/provider-helpers/promise-helpers.d.ts +32 -0
- package/dist/types-ts4.5/react-node-view/index.d.ts +52 -0
- package/dist/types-ts4.5/react-node-view/types.d.ts +12 -0
- package/dist/types-ts4.5/resizer.d.ts +1 -0
- package/dist/types-ts4.5/safe-plugin/index.d.ts +6 -0
- package/dist/types-ts4.5/selection/gap-cursor/selection.d.ts +40 -0
- package/dist/types-ts4.5/selection/gap-cursor/utils/index.d.ts +2 -0
- package/dist/types-ts4.5/selection/gap-cursor/utils/is-ignored.d.ts +2 -0
- package/dist/types-ts4.5/selection/gap-cursor/utils/is-valid-target-node.d.ts +2 -0
- package/dist/types-ts4.5/selection/index.d.ts +5 -0
- package/dist/types-ts4.5/selection/types.d.ts +26 -0
- package/dist/types-ts4.5/selection/utils.d.ts +4 -0
- package/dist/types-ts4.5/styles/index.d.ts +25 -0
- package/dist/types-ts4.5/styles/shared/annotation.d.ts +12 -0
- package/dist/types-ts4.5/styles/shared/block-marks.d.ts +1 -0
- package/dist/types-ts4.5/styles/shared/blockquote.d.ts +1 -0
- package/dist/types-ts4.5/styles/shared/code-block.d.ts +12 -0
- package/dist/types-ts4.5/styles/shared/code-mark.d.ts +2 -0
- package/dist/types-ts4.5/styles/shared/column-layout.d.ts +2 -0
- package/dist/types-ts4.5/styles/shared/date.d.ts +5 -0
- package/dist/types-ts4.5/styles/shared/dropdown-menu.d.ts +4 -0
- package/dist/types-ts4.5/styles/shared/emoji.d.ts +7 -0
- package/dist/types-ts4.5/styles/shared/extension.d.ts +2 -0
- package/dist/types-ts4.5/styles/shared/headings.d.ts +2 -0
- package/dist/types-ts4.5/styles/shared/indentation.d.ts +1 -0
- package/dist/types-ts4.5/styles/shared/layout.d.ts +2 -0
- package/dist/types-ts4.5/styles/shared/link.d.ts +2 -0
- package/dist/types-ts4.5/styles/shared/lists.d.ts +4 -0
- package/dist/types-ts4.5/styles/shared/media-single.d.ts +3 -0
- package/dist/types-ts4.5/styles/shared/mention.d.ts +3 -0
- package/dist/types-ts4.5/styles/shared/panel.d.ts +85 -0
- package/dist/types-ts4.5/styles/shared/paragraph.d.ts +1 -0
- package/dist/types-ts4.5/styles/shared/resizer.d.ts +6 -0
- package/dist/types-ts4.5/styles/shared/rule.d.ts +2 -0
- package/dist/types-ts4.5/styles/shared/shadow.d.ts +15 -0
- package/dist/types-ts4.5/styles/shared/smart-card.d.ts +7 -0
- package/dist/types-ts4.5/styles/shared/status.d.ts +4 -0
- package/dist/types-ts4.5/styles/shared/table.d.ts +31 -0
- package/dist/types-ts4.5/styles/shared/tableCell.d.ts +1 -0
- package/dist/types-ts4.5/styles/shared/task-decision.d.ts +4 -0
- package/dist/types-ts4.5/styles/shared/text-color.d.ts +1 -0
- package/dist/types-ts4.5/styles/shared/whitespace.d.ts +2 -0
- package/dist/types-ts4.5/transforms/expand.d.ts +5 -0
- package/dist/types-ts4.5/transforms/extension.d.ts +6 -0
- package/dist/types-ts4.5/transforms/index.d.ts +3 -0
- package/dist/types-ts4.5/transforms/layout.d.ts +15 -0
- package/dist/types-ts4.5/type-ahead/index.d.ts +12 -0
- package/dist/types-ts4.5/types/annotation/emitter.d.ts +33 -0
- package/dist/types-ts4.5/types/annotation/index.d.ts +84 -0
- package/dist/types-ts4.5/types/collab.d.ts +8 -0
- package/dist/types-ts4.5/types/command.d.ts +5 -0
- package/dist/types-ts4.5/types/context-panel.d.ts +3 -0
- package/dist/types-ts4.5/types/copy-button.d.ts +24 -0
- package/dist/types-ts4.5/types/editor-actions.d.ts +21 -0
- package/dist/types-ts4.5/types/editor-appearance.d.ts +1 -0
- package/dist/types-ts4.5/types/editor-container-width.d.ts +20 -0
- package/dist/types-ts4.5/types/editor-plugin.d.ts +83 -0
- package/dist/types-ts4.5/types/editor-react-context.d.ts +6 -0
- package/dist/types-ts4.5/types/empty-state-handler.d.ts +7 -0
- package/dist/types-ts4.5/types/feature-flags.d.ts +432 -0
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +256 -0
- package/dist/types-ts4.5/types/index.d.ts +36 -0
- package/dist/types-ts4.5/types/next-editor-plugin.d.ts +113 -0
- package/dist/types-ts4.5/types/performance-tracking.d.ts +343 -0
- package/dist/types-ts4.5/types/plugin-factory.d.ts +27 -0
- package/dist/types-ts4.5/types/prosemirror-config.d.ts +14 -0
- package/dist/types-ts4.5/types/quick-insert.d.ts +26 -0
- package/dist/types-ts4.5/types/supported-browsers.d.ts +15 -0
- package/dist/types-ts4.5/types/toolbar.d.ts +30 -0
- package/dist/types-ts4.5/types/type-ahead.d.ts +72 -0
- package/dist/types-ts4.5/types/ui-components.d.ts +22 -0
- package/dist/types-ts4.5/ufo/experience-store.d.ts +33 -0
- package/dist/types-ts4.5/ufo/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/BaseTheme/index.d.ts +15 -0
- package/dist/types-ts4.5/ui/Caption/index.d.ts +19 -0
- package/dist/types-ts4.5/ui/Caption/messages.d.ts +7 -0
- package/dist/types-ts4.5/ui/DropList/index.d.ts +20 -0
- package/dist/types-ts4.5/ui/Emoji/index.d.ts +22 -0
- package/dist/types-ts4.5/ui/ErrorBoundary/index.d.ts +24 -0
- package/dist/types-ts4.5/ui/EventHandlers/index.d.ts +36 -0
- package/dist/types-ts4.5/ui/Expand/index.d.ts +43 -0
- package/dist/types-ts4.5/ui/FloatingToolbar/Button.d.ts +30 -0
- package/dist/types-ts4.5/ui/FloatingToolbar/styles.d.ts +20 -0
- package/dist/types-ts4.5/ui/IntlErrorBoundary/index.d.ts +15 -0
- package/dist/types-ts4.5/ui/IntlProviderIfMissingWrapper/index.d.ts +6 -0
- package/dist/types-ts4.5/ui/Layer/index.d.ts +47 -0
- package/dist/types-ts4.5/ui/Layer/internal/helpers.d.ts +5 -0
- package/dist/types-ts4.5/ui/MediaSingle/grid.d.ts +24 -0
- package/dist/types-ts4.5/ui/MediaSingle/index.d.ts +23 -0
- package/dist/types-ts4.5/ui/MediaSingle/link.d.ts +1 -0
- package/dist/types-ts4.5/ui/MediaSingle/styled.d.ts +43 -0
- package/dist/types-ts4.5/ui/Mention/index.d.ts +21 -0
- package/dist/types-ts4.5/ui/Mention/mention-with-profilecard.d.ts +15 -0
- package/dist/types-ts4.5/ui/Mention/mention-with-providers.d.ts +22 -0
- package/dist/types-ts4.5/ui/Mention/types.d.ts +2 -0
- package/dist/types-ts4.5/ui/Messages/index.d.ts +11 -0
- package/dist/types-ts4.5/ui/OverflowShadow/index.d.ts +103 -0
- package/dist/types-ts4.5/ui/OverflowShadow/shadowObserver.d.ts +27 -0
- package/dist/types-ts4.5/ui/Popup/index.d.ts +83 -0
- package/dist/types-ts4.5/ui/Popup/utils.d.ts +42 -0
- package/dist/types-ts4.5/ui/PortalProvider/PortalProviderThemesProvider.d.ts +6 -0
- package/dist/types-ts4.5/ui/PortalProvider/index.d.ts +51 -0
- package/dist/types-ts4.5/ui/Resizer/index.d.ts +22 -0
- package/dist/types-ts4.5/ui/Resizer/types.d.ts +18 -0
- package/dist/types-ts4.5/ui/Resizer/utils.d.ts +1 -0
- package/dist/types-ts4.5/ui/UnsupportedBlock/index.d.ts +14 -0
- package/dist/types-ts4.5/ui/UnsupportedInline/index.d.ts +14 -0
- package/dist/types-ts4.5/ui/WidthProvider/index.d.ts +29 -0
- package/dist/types-ts4.5/ui/WithCreateAnalyticsEvent/index.d.ts +6 -0
- package/dist/types-ts4.5/ui/clear-next-sibling-margin-top.d.ts +2 -0
- package/dist/types-ts4.5/ui/index.d.ts +28 -0
- package/dist/types-ts4.5/ui/unsupported-content-helper.d.ts +3 -0
- package/dist/types-ts4.5/ui/with-outer-listeners.d.ts +8 -0
- package/dist/types-ts4.5/ui-color/ColorPalette/Color/index.d.ts +20 -0
- package/dist/types-ts4.5/ui-color/ColorPalette/Color/styles.d.ts +4 -0
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/borderColorPalette.d.ts +3 -0
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.d.ts +3 -0
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/common.d.ts +2 -0
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/getColorMessage.d.ts +2 -0
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/index.d.ts +3 -0
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/paletteMessages.d.ts +123 -0
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/paletteMessagesTokenModeNames.d.ts +1444 -0
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/panelBackgroundPalette.d.ts +4 -0
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/statusColorPalette.d.ts +4 -0
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/textColorPalette.d.ts +2 -0
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/type.d.ts +12 -0
- package/dist/types-ts4.5/ui-color/ColorPalette/index.d.ts +50 -0
- package/dist/types-ts4.5/ui-color/ColorPalette/styles.d.ts +1 -0
- package/dist/types-ts4.5/ui-color/ColorPalette/utils.d.ts +11 -0
- package/dist/types-ts4.5/ui-color/index.d.ts +12 -0
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.d.ts +7 -0
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.d.ts +7 -0
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/index.d.ts +3 -0
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/types.d.ts +36 -0
- package/dist/types-ts4.5/ui-menu/Dropdown/index.d.ts +40 -0
- package/dist/types-ts4.5/ui-menu/DropdownMenu/index.d.ts +22 -0
- package/dist/types-ts4.5/ui-menu/DropdownMenu/types.d.ts +52 -0
- package/dist/types-ts4.5/ui-menu/ToolbarButton/index.d.ts +57 -0
- package/dist/types-ts4.5/ui-menu/ToolbarButton/styles.d.ts +4 -0
- package/dist/types-ts4.5/ui-menu/index.d.ts +8 -0
- package/dist/types-ts4.5/ui-react/ReactEditorViewContext.d.ts +8 -0
- package/dist/types-ts4.5/ui-react/index.d.ts +2 -0
- package/dist/types-ts4.5/ui-react/with-react-editor-view-outer-listeners.d.ts +11 -0
- package/dist/types-ts4.5/utils/analytics.d.ts +29 -0
- package/dist/types-ts4.5/utils/annotation/index.d.ts +8 -0
- package/dist/types-ts4.5/utils/breakout.d.ts +43 -0
- package/dist/types-ts4.5/utils/browser-extensions.d.ts +43 -0
- package/dist/types-ts4.5/utils/browser.d.ts +4 -0
- package/dist/types-ts4.5/utils/collab.d.ts +2 -0
- package/dist/types-ts4.5/utils/compare-props.d.ts +32 -0
- package/dist/types-ts4.5/utils/compareNodes.d.ts +47 -0
- package/dist/types-ts4.5/utils/compose.d.ts +30 -0
- package/dist/types-ts4.5/utils/date.d.ts +18 -0
- package/dist/types-ts4.5/utils/dom.d.ts +40 -0
- package/dist/types-ts4.5/utils/editor-core-utils.d.ts +28 -0
- package/dist/types-ts4.5/utils/error-reporter.d.ts +13 -0
- package/dist/types-ts4.5/utils/extension-handler.d.ts +2 -0
- package/dist/types-ts4.5/utils/get-performance-options.d.ts +18 -0
- package/dist/types-ts4.5/utils/getModeFromTheme.d.ts +1 -0
- package/dist/types-ts4.5/utils/hyperlink.d.ts +27 -0
- package/dist/types-ts4.5/utils/imageLoader.d.ts +14 -0
- package/dist/types-ts4.5/utils/index.d.ts +51 -0
- package/dist/types-ts4.5/utils/is-text-input.d.ts +2 -0
- package/dist/types-ts4.5/utils/list.d.ts +14 -0
- package/dist/types-ts4.5/utils/macro.d.ts +10 -0
- package/dist/types-ts4.5/utils/nodes.d.ts +49 -0
- package/dist/types-ts4.5/utils/outdated-browsers.d.ts +1 -0
- package/dist/types-ts4.5/utils/performance/hooks/use-component-render-tracking/index.d.ts +19 -0
- package/dist/types-ts4.5/utils/performance/is-performance-api-available.d.ts +3 -0
- package/dist/types-ts4.5/utils/performance/measure-render.d.ts +53 -0
- package/dist/types-ts4.5/utils/performance/measure-tti.d.ts +14 -0
- package/dist/types-ts4.5/utils/performance/measure.d.ts +3 -0
- package/dist/types-ts4.5/utils/performance/navigation.d.ts +1 -0
- package/dist/types-ts4.5/utils/plugin-state-factory.d.ts +16 -0
- package/dist/types-ts4.5/utils/profiler/render-count.d.ts +50 -0
- package/dist/types-ts4.5/utils/referentiality.d.ts +18 -0
- package/dist/types-ts4.5/utils/should-force-tracking.d.ts +1 -0
- package/dist/types-ts4.5/utils/slice.d.ts +11 -0
- package/dist/types-ts4.5/utils/table.d.ts +4 -0
- package/dist/types-ts4.5/utils/track-unsupported-content.d.ts +20 -0
- package/dist/types-ts4.5/utils/traversor.d.ts +9 -0
- package/dist/types-ts4.5/utils/types.d.ts +2 -0
- package/dist/types-ts4.5/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +57 -0
- package/dist/types-ts4.5/utils/validate-using-spec.d.ts +19 -0
- package/dist/types-ts4.5/utils/validator.d.ts +42 -0
- package/dist/types-ts4.5/utils/whitespace.d.ts +2 -0
- package/dist/types-ts4.5/validator.d.ts +2 -0
- package/dist/types-ts4.5/with-plugin-state/index.d.ts +88 -0
- package/dist/types-ts4.5/with-plugin-state/types.d.ts +10 -0
- package/emoji/package.json +2 -2
- package/error-boundary/package.json +2 -2
- package/event-dispatcher/package.json +2 -2
- package/extensions/package.json +2 -2
- package/hooks/package.json +2 -2
- package/icons/package.json +2 -2
- package/in-product/package.json +2 -2
- package/insert/package.json +15 -0
- package/keymaps/package.json +2 -2
- package/mention/package.json +2 -2
- package/messages/package.json +2 -2
- package/monitoring/package.json +15 -0
- package/node-width/package.json +2 -2
- package/normalize-feature-flags/package.json +2 -2
- package/package.json +41 -15
- package/panel/package.json +2 -2
- package/paste/package.json +15 -0
- package/portal-provider/package.json +2 -2
- package/preset/package.json +2 -2
- package/provider-factory/package.json +2 -2
- package/provider-helpers/package.json +2 -2
- package/react-node-view/package.json +2 -2
- package/report.api.md +1 -1
- package/resizer/package.json +15 -0
- package/safe-plugin/package.json +2 -2
- package/selection/package.json +2 -2
- package/styles/package.json +2 -2
- package/transforms/package.json +2 -2
- package/type-ahead/package.json +2 -2
- package/types/package.json +2 -2
- package/ufo/package.json +2 -2
- package/ui/package.json +2 -2
- package/ui-color/package.json +2 -2
- package/ui-menu/package.json +2 -2
- package/ui-react/package.json +2 -2
- package/utils/package.json +2 -2
- package/validator/package.json +2 -2
- package/with-plugin-state/package.json +2 -2
- package/dist/cjs/utils/sendLogs.js +0 -17
- package/dist/es2019/utils/sendLogs.js +0 -8
- package/dist/esm/utils/sendLogs.js +0 -10
- package/dist/types/utils/sendLogs.d.ts +0 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
2
|
+
import { ExtensionAPI } from './extension-handler';
|
|
3
|
+
import { ExtensionIconModule } from './extension-manifest-common';
|
|
4
|
+
export type ToolbarButtonAction = (contextNode: ADFEntity, api: ExtensionAPI) => Promise<void>;
|
|
5
|
+
export type ToolbarButton = ExtensionModuleToolbarButtonLabelOrIcon & {
|
|
6
|
+
key: string;
|
|
7
|
+
action: ToolbarButtonAction;
|
|
8
|
+
label: string;
|
|
9
|
+
tooltip?: string;
|
|
10
|
+
icon?: () => ExtensionIconModule;
|
|
11
|
+
display?: 'icon' | 'label' | 'icon-and-label';
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type ToolbarItem = ToolbarButton;
|
|
15
|
+
export type ToolbarContext = ExtensionNodeContext | StandardNodeContext;
|
|
16
|
+
export type ContextualToolbar = {
|
|
17
|
+
context: ToolbarContext;
|
|
18
|
+
toolbarItems: ToolbarItem[] | ((contextNode: ADFEntity, api: ExtensionAPI) => ToolbarItem[]);
|
|
19
|
+
};
|
|
20
|
+
export type ExtensionModuleToolbarButtonLabelOrIcon = ExtensionModuleToolbarButtonWithIcon | ExtensionModuleToolbarButtonWithLabel;
|
|
21
|
+
export type ExtensionModuleToolbarButtonWithIcon = {
|
|
22
|
+
icon: () => ExtensionIconModule;
|
|
23
|
+
display?: 'icon' | 'icon-and-label';
|
|
24
|
+
};
|
|
25
|
+
export type ExtensionModuleToolbarButtonWithLabel = {
|
|
26
|
+
display?: 'label';
|
|
27
|
+
};
|
|
28
|
+
export type ExtensionNodeContext = {
|
|
29
|
+
type: 'extension';
|
|
30
|
+
nodeType: 'extension' | 'inlineExtension' | 'bodiedExtension';
|
|
31
|
+
extensionKey: string | string[];
|
|
32
|
+
extensionType?: string;
|
|
33
|
+
};
|
|
34
|
+
export type StandardNodeContext = {
|
|
35
|
+
type: 'node';
|
|
36
|
+
nodeType: 'table';
|
|
37
|
+
};
|
|
38
|
+
export type ExtensionToolbarButton = {
|
|
39
|
+
key: string;
|
|
40
|
+
label?: string;
|
|
41
|
+
tooltip?: string;
|
|
42
|
+
icon?: () => ExtensionIconModule;
|
|
43
|
+
action: ToolbarButtonAction;
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
3
|
+
import { ExtensionParams, UpdateExtension } from './extension-handler';
|
|
4
|
+
import { ExtensionIconModule, MaybeESModule } from './extension-manifest-common';
|
|
5
|
+
import { ContextualToolbar } from './extension-manifest-toolbar-item';
|
|
6
|
+
import { Parameters } from './extension-parameters';
|
|
7
|
+
import { FieldDefinition, Option, UserFieldContext } from './field-definitions';
|
|
8
|
+
export type ExtensionType = string;
|
|
9
|
+
export type ExtensionKey = string;
|
|
10
|
+
export type ExtensionModuleKey = string;
|
|
11
|
+
export type ExtensionComponentProps<T extends Parameters = Parameters> = {
|
|
12
|
+
node: ExtensionParams<T>;
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
export type ExtensionComponent<T extends Parameters> = ComponentType<ExtensionComponentProps<T>>;
|
|
16
|
+
export type ExtensionComponentModule<T extends Parameters> = Promise<MaybeESModule<ExtensionComponent<T>>>;
|
|
17
|
+
export type Serializer<T extends Parameters = Parameters> = (data: T) => string;
|
|
18
|
+
export type Deserializer<T extends Parameters = Parameters> = (value: string) => T;
|
|
19
|
+
export type ExtensionModuleActionObject<T extends Parameters = Parameters> = {
|
|
20
|
+
key: ExtensionModuleKey;
|
|
21
|
+
type: 'node';
|
|
22
|
+
parameters?: T;
|
|
23
|
+
};
|
|
24
|
+
export type MaybeADFEntity = MaybeESModule<ADFEntity | Array<ADFEntity> | void>;
|
|
25
|
+
export type ExtensionModuleActionHandler = () => Promise<MaybeADFEntity>;
|
|
26
|
+
export type ExtensionModuleAction<T extends Parameters = Parameters> = ExtensionModuleActionObject<T> | ExtensionModuleActionHandler;
|
|
27
|
+
export type ExtensionModule<T extends Parameters = Parameters> = {
|
|
28
|
+
key: string;
|
|
29
|
+
title?: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
icon?: () => ExtensionIconModule;
|
|
32
|
+
priority?: number;
|
|
33
|
+
featured?: boolean;
|
|
34
|
+
keywords?: string[];
|
|
35
|
+
categories?: string[];
|
|
36
|
+
action: ExtensionModuleAction<T>;
|
|
37
|
+
parameters?: T;
|
|
38
|
+
};
|
|
39
|
+
export type DynamicFieldDefinitions<T> = (parameters: T) => FieldDefinition[];
|
|
40
|
+
export type ExtensionModuleNode<T extends Parameters = Parameters> = {
|
|
41
|
+
type: 'extension' | 'inlineExtension' | 'bodiedExtension';
|
|
42
|
+
render: () => ExtensionComponentModule<T>;
|
|
43
|
+
update?: UpdateExtension<T>;
|
|
44
|
+
getFieldsDefinition?: (extensionParameters: T) => Promise<FieldDefinition[] | DynamicFieldDefinitions<T>>;
|
|
45
|
+
};
|
|
46
|
+
export type ExtensionModuleNodes<T extends Parameters = Parameters> = {
|
|
47
|
+
[key: string]: ExtensionModuleNode<T>;
|
|
48
|
+
};
|
|
49
|
+
export type ExtensionAutoConvertHandler = (text: string) => ADFEntity | undefined;
|
|
50
|
+
export type ExtensionModuleAutoConvert = {
|
|
51
|
+
url?: ExtensionAutoConvertHandler[];
|
|
52
|
+
};
|
|
53
|
+
export type CustomFieldResolver = (searchTerm?: string, defaultValue?: string | string[], parameters?: Parameters) => Promise<Option[]>;
|
|
54
|
+
export type UserFieldContextProvider = () => Promise<UserFieldContext>;
|
|
55
|
+
export type ExtensionModuleFieldTypeCustom = {
|
|
56
|
+
resolver: CustomFieldResolver;
|
|
57
|
+
};
|
|
58
|
+
export type ExtensionModuleFieldTypeUser = {
|
|
59
|
+
provider: UserFieldContextProvider;
|
|
60
|
+
};
|
|
61
|
+
export type ExtensionModuleFieldTypeFieldset<T extends Parameters = Parameters> = {
|
|
62
|
+
serializer?: Serializer<T>;
|
|
63
|
+
deserializer?: Deserializer<T>;
|
|
64
|
+
};
|
|
65
|
+
export type ExtensionModuleFields<T extends Parameters = Parameters> = {
|
|
66
|
+
custom?: {
|
|
67
|
+
[key: string]: ExtensionModuleFieldTypeCustom;
|
|
68
|
+
};
|
|
69
|
+
fieldset?: {
|
|
70
|
+
[key: string]: ExtensionModuleFieldTypeFieldset<T>;
|
|
71
|
+
};
|
|
72
|
+
user?: {
|
|
73
|
+
[key: string]: ExtensionModuleFieldTypeUser;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export type ExtensionModules<T extends Parameters = Parameters> = {
|
|
77
|
+
quickInsert?: ExtensionModule<T>[];
|
|
78
|
+
nodes?: ExtensionModuleNodes<T>;
|
|
79
|
+
fields?: ExtensionModuleFields<T>;
|
|
80
|
+
autoConvert?: ExtensionModuleAutoConvert;
|
|
81
|
+
contextualToolbars?: ContextualToolbar[];
|
|
82
|
+
};
|
|
83
|
+
export type ExtensionQuickInsertModule = 'quickInsert';
|
|
84
|
+
export type ExtensionModuleType<T extends Parameters = Parameters> = Exclude<keyof ExtensionModules<T>, 'nodes' | 'fields'>;
|
|
85
|
+
export type ExtensionManifest<T extends Parameters = Parameters> = {
|
|
86
|
+
type: ExtensionType;
|
|
87
|
+
key: ExtensionKey;
|
|
88
|
+
title: string;
|
|
89
|
+
description?: string;
|
|
90
|
+
summary?: string;
|
|
91
|
+
categories?: string[];
|
|
92
|
+
keywords?: string[];
|
|
93
|
+
documentationUrl?: string;
|
|
94
|
+
icons: {
|
|
95
|
+
'48': () => ExtensionIconModule;
|
|
96
|
+
[dimensions: string]: () => ExtensionIconModule;
|
|
97
|
+
};
|
|
98
|
+
modules: ExtensionModules<T>;
|
|
99
|
+
};
|
|
100
|
+
export type Icon = () => ExtensionIconModule;
|
|
101
|
+
export type Module<T extends Parameters> = MaybeESModule<T>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ExtensionAutoConvertHandler, ExtensionKey, ExtensionManifest, ExtensionType } from './extension-manifest';
|
|
2
|
+
import { Parameters } from './extension-parameters';
|
|
3
|
+
export interface ExtensionProvider<T extends Parameters = any> {
|
|
4
|
+
getExtensions(): Promise<ExtensionManifest<T>[]>;
|
|
5
|
+
getExtension(type: ExtensionType, key: ExtensionKey): Promise<ExtensionManifest<T> | undefined>;
|
|
6
|
+
search(keyword: string): Promise<ExtensionManifest<T>[]>;
|
|
7
|
+
getAutoConverter(): Promise<ExtensionAutoConvertHandler[]>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type Option = {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
/**
|
|
7
|
+
* If a string is passed, we use a image tag to create an icon.
|
|
8
|
+
* If a react component is passed, we render as is.
|
|
9
|
+
* The recommendation is to pass a 16x16 icon if no description is provided, or 24x24 if provided.
|
|
10
|
+
* We can't enforce the size if a React component is passed so it's on the consumer to make the appropriate choice.
|
|
11
|
+
*/
|
|
12
|
+
icon?: string | React.ReactNode;
|
|
13
|
+
};
|
|
14
|
+
import { Props as SmartUserPickerProps } from '@atlaskit/smart-user-picker';
|
|
15
|
+
export type UserFieldContext = Pick<SmartUserPickerProps, 'siteId' | 'principalId' | 'fieldId' | 'productKey' | 'containerId' | 'objectId' | 'childObjectId' | 'productAttributes' | 'includeUsers'>;
|
|
16
|
+
interface BaseFieldDefinition {
|
|
17
|
+
description?: string;
|
|
18
|
+
label: string;
|
|
19
|
+
name: string;
|
|
20
|
+
isRequired?: boolean;
|
|
21
|
+
allowDuplicates?: boolean;
|
|
22
|
+
isHidden?: boolean;
|
|
23
|
+
}
|
|
24
|
+
interface BaseEnumField extends BaseFieldDefinition {
|
|
25
|
+
type: 'enum';
|
|
26
|
+
items: Option[];
|
|
27
|
+
}
|
|
28
|
+
export interface EnumSingleSelectField extends BaseEnumField {
|
|
29
|
+
style: 'select';
|
|
30
|
+
isMultiple?: false;
|
|
31
|
+
defaultValue?: string;
|
|
32
|
+
placeholder?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface EnumRadioFieldBase extends BaseEnumField {
|
|
35
|
+
style: 'radio';
|
|
36
|
+
isMultiple?: false;
|
|
37
|
+
}
|
|
38
|
+
export interface EnumRadioFieldDefaulted extends EnumRadioFieldBase {
|
|
39
|
+
isRequired?: false;
|
|
40
|
+
defaultValue: string;
|
|
41
|
+
}
|
|
42
|
+
export interface EnumRadioFieldRequired extends EnumRadioFieldBase {
|
|
43
|
+
isRequired: true;
|
|
44
|
+
defaultValue?: string;
|
|
45
|
+
}
|
|
46
|
+
export type EnumRadioField = EnumRadioFieldDefaulted | EnumRadioFieldRequired;
|
|
47
|
+
export interface EnumMultipleSelectField extends BaseEnumField {
|
|
48
|
+
style: 'select';
|
|
49
|
+
isMultiple: true;
|
|
50
|
+
defaultValue?: string[];
|
|
51
|
+
placeholder?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface EnumCheckboxField extends BaseEnumField {
|
|
54
|
+
style: 'checkbox';
|
|
55
|
+
isMultiple: true;
|
|
56
|
+
defaultValue?: string[];
|
|
57
|
+
}
|
|
58
|
+
export type EnumSelectField = EnumSingleSelectField | EnumMultipleSelectField;
|
|
59
|
+
export type EnumField = EnumSelectField | EnumRadioField | EnumCheckboxField;
|
|
60
|
+
export interface StringOneLineField extends BaseFieldDefinition {
|
|
61
|
+
type: 'string';
|
|
62
|
+
style?: 'oneline';
|
|
63
|
+
defaultValue?: string;
|
|
64
|
+
placeholder?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface StringMultilineField extends BaseFieldDefinition {
|
|
67
|
+
type: 'string';
|
|
68
|
+
style: 'multiline';
|
|
69
|
+
defaultValue?: string;
|
|
70
|
+
placeholder?: string;
|
|
71
|
+
options?: {
|
|
72
|
+
minimumRows: number;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export type StringField = StringOneLineField | StringMultilineField;
|
|
76
|
+
export interface NumberField extends BaseFieldDefinition {
|
|
77
|
+
type: 'number';
|
|
78
|
+
defaultValue?: number;
|
|
79
|
+
placeholder?: string;
|
|
80
|
+
}
|
|
81
|
+
export interface BooleanField extends BaseFieldDefinition {
|
|
82
|
+
type: 'boolean';
|
|
83
|
+
defaultValue?: boolean;
|
|
84
|
+
style?: 'checkbox' | 'toggle';
|
|
85
|
+
}
|
|
86
|
+
export interface ColorField extends BaseFieldDefinition {
|
|
87
|
+
type: 'color';
|
|
88
|
+
defaultValue?: string;
|
|
89
|
+
}
|
|
90
|
+
export interface DateField extends BaseFieldDefinition {
|
|
91
|
+
type: 'date';
|
|
92
|
+
defaultValue?: string;
|
|
93
|
+
placeholder?: string;
|
|
94
|
+
}
|
|
95
|
+
export interface DateRangeField extends BaseFieldDefinition {
|
|
96
|
+
type: 'date-range';
|
|
97
|
+
defaultValue?: DateRangeResult;
|
|
98
|
+
items: Option[];
|
|
99
|
+
}
|
|
100
|
+
export interface DateRangeResult {
|
|
101
|
+
type: 'date-range';
|
|
102
|
+
value: 'custom' | any;
|
|
103
|
+
from?: string;
|
|
104
|
+
to?: string;
|
|
105
|
+
}
|
|
106
|
+
export type FieldHandlerLink = {
|
|
107
|
+
type: string;
|
|
108
|
+
};
|
|
109
|
+
interface BaseCustomField extends BaseFieldDefinition {
|
|
110
|
+
type: 'custom';
|
|
111
|
+
style?: 'select';
|
|
112
|
+
options: {
|
|
113
|
+
isCreatable?: boolean;
|
|
114
|
+
resolver: FieldHandlerLink;
|
|
115
|
+
};
|
|
116
|
+
placeholder?: string;
|
|
117
|
+
}
|
|
118
|
+
export interface CustomSingleField extends BaseCustomField {
|
|
119
|
+
isMultiple?: false;
|
|
120
|
+
defaultValue?: string;
|
|
121
|
+
}
|
|
122
|
+
export interface CustomMultipleField extends BaseCustomField {
|
|
123
|
+
isMultiple: true;
|
|
124
|
+
defaultValue?: string[];
|
|
125
|
+
}
|
|
126
|
+
export interface UserField extends BaseFieldDefinition {
|
|
127
|
+
type: 'user';
|
|
128
|
+
defaultValue?: string | string[] | null | undefined;
|
|
129
|
+
placeholder?: string;
|
|
130
|
+
isMultiple?: boolean;
|
|
131
|
+
options: {
|
|
132
|
+
provider: FieldHandlerLink;
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
export type CustomField = CustomSingleField | CustomMultipleField;
|
|
136
|
+
export type NativeField = EnumField | StringField | NumberField | BooleanField | ColorField | DateField | DateRangeField;
|
|
137
|
+
export type NestedFieldDefinition = NativeField | CustomField | UserField;
|
|
138
|
+
export interface Fieldset extends BaseFieldDefinition {
|
|
139
|
+
type: 'fieldset';
|
|
140
|
+
fields: NestedFieldDefinition[];
|
|
141
|
+
options: {
|
|
142
|
+
isDynamic?: boolean;
|
|
143
|
+
transformer: FieldHandlerLink;
|
|
144
|
+
showTitle?: boolean;
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
export type FieldDefinition = NestedFieldDefinition | Fieldset | GroupingField;
|
|
148
|
+
export declare const isFieldset: (field: FieldDefinition) => field is Fieldset;
|
|
149
|
+
export declare const isTabGroup: (field: FieldDefinition) => field is TabGroupField;
|
|
150
|
+
export declare const isTabField: (field: any) => field is TabField;
|
|
151
|
+
export declare const isExpand: (field: FieldDefinition) => field is ExpandField;
|
|
152
|
+
export declare const isDateRange: (value: any) => value is DateRangeResult;
|
|
153
|
+
export interface GroupedField extends BaseFieldDefinition {
|
|
154
|
+
fields: NestedFieldDefinition[];
|
|
155
|
+
hasGroupedValues?: boolean;
|
|
156
|
+
}
|
|
157
|
+
export interface ExpandField extends GroupedField {
|
|
158
|
+
type: 'expand';
|
|
159
|
+
isExpanded?: boolean;
|
|
160
|
+
}
|
|
161
|
+
export interface TabGroupField extends Omit<GroupedField, 'fields'> {
|
|
162
|
+
type: 'tab-group';
|
|
163
|
+
defaultTab?: string;
|
|
164
|
+
fields: TabField[];
|
|
165
|
+
}
|
|
166
|
+
export interface TabField extends Omit<GroupedField, 'fields'> {
|
|
167
|
+
type: 'tab';
|
|
168
|
+
fields: (NestedFieldDefinition | ExpandField)[];
|
|
169
|
+
}
|
|
170
|
+
export type GroupingField = ExpandField | TabGroupField;
|
|
171
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type { ExtensionParams, ExtensionHandler, UpdateExtension, Extension, ExtensionHandlers, ExtensionAPI, OnSaveCallback, TransformBefore, TransformAfter, ReferenceEntity, ParametersGetter, AsyncParametersGetter, } from './extension-handler';
|
|
2
|
+
export type { ExtensionProvider } from './extension-provider';
|
|
3
|
+
export type { ExtensionAutoConvertHandler, ExtensionComponentProps, ExtensionKey, ExtensionManifest, ExtensionModule, ExtensionModuleAction, ExtensionModuleActionHandler, ExtensionModuleActionObject, ExtensionModuleAutoConvert, ExtensionModuleNode, ExtensionModuleNodes, ExtensionModuleType, ExtensionModules, ExtensionQuickInsertModule, ExtensionType, CustomFieldResolver, UserFieldContextProvider, Icon, MaybeADFEntity, Deserializer, Serializer, DynamicFieldDefinitions, } from './extension-manifest';
|
|
4
|
+
export type { ContextualToolbar, ToolbarItem, ExtensionToolbarButton, } from './extension-manifest-toolbar-item';
|
|
5
|
+
export type { Parameters, ParametersWithDuplicateFields, } from './extension-parameters';
|
|
6
|
+
export type { MenuItem, MenuItemMap } from './utils';
|
|
7
|
+
export { isFieldset, isTabGroup, isTabField, isExpand, isDateRange, } from './field-definitions';
|
|
8
|
+
export type { BooleanField, CustomField, ColorField, DateField, DateRangeField, DateRangeResult, EnumField, EnumCheckboxField, EnumRadioField, EnumSelectField, ExpandField, FieldDefinition, Fieldset, GroupingField, NativeField, NestedFieldDefinition, NumberField, Option, StringField, StringOneLineField, StringMultilineField, TabGroupField, TabField, UserField, UserFieldContext, FieldHandlerLink, } from './field-definitions';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
2
|
+
import { ExtensionModuleActionHandler, ExtensionType, Icon } from './extension-manifest';
|
|
3
|
+
export type MenuItem = {
|
|
4
|
+
key: string;
|
|
5
|
+
extensionType: ExtensionType;
|
|
6
|
+
title: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
summary?: string;
|
|
9
|
+
documentationUrl?: string;
|
|
10
|
+
featured: boolean;
|
|
11
|
+
keywords: string[];
|
|
12
|
+
categories: string[];
|
|
13
|
+
icon: Icon;
|
|
14
|
+
node: ADFEntity | ExtensionModuleActionHandler;
|
|
15
|
+
};
|
|
16
|
+
export type MenuItemMap = {
|
|
17
|
+
[key: string]: MenuItem;
|
|
18
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { DefaultExtensionProvider, combineExtensionProviders, createAutoConverterRunner, getExtensionAutoConvertersFromProvider, getExtensionKeyAndNodeKey, getExtensionModuleNode, getQuickInsertItemsFromModule, getNodeRenderer, getExtensionModuleNodePrivateProps, getContextualToolbarItemsFromModule, resolveImport, getCustomFieldResolver, getFieldSerializer, getFieldDeserializer, isFieldset, isTabGroup, isTabField, isExpand, isDateRange, getUserFieldContextProvider, buildMenuItem, } from './extensions/index';
|
|
2
|
+
export type { ExtensionAutoConvertHandler, Extension, ExtensionComponentProps, ExtensionHandler, ExtensionHandlers, ExtensionKey, ExtensionManifest, ExtensionModule, ExtensionModuleAction, ExtensionModuleActionHandler, ExtensionModuleActionObject, ExtensionModuleNode, ExtensionModuleNodes, ExtensionQuickInsertModule, ExtensionModules, ExtensionParams, ExtensionProvider, ExtensionType, ExtensionToolbarButton, ToolbarItem, ContextualToolbar, Icon, MaybeADFEntity, MenuItem, MenuItemMap, UpdateExtension, Parameters, ParametersWithDuplicateFields, BooleanField, CustomField, CustomFieldResolver, ColorField, DateField, DateRangeField, DateRangeResult, EnumField, EnumCheckboxField, EnumRadioField, EnumSelectField, ExpandField, FieldDefinition, DynamicFieldDefinitions, Fieldset, GroupingField, NativeField, NestedFieldDefinition, NumberField, Option, StringField, StringOneLineField, StringMultilineField, TabGroupField, TabField, UserField, UserFieldContext, UserFieldContextProvider, FieldHandlerLink, OnSaveCallback, ExtensionAPI, TransformBefore, TransformAfter, ReferenceEntity, ParametersGetter, AsyncParametersGetter, } from './extensions/index';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Hook to run code once in a functional component.
|
|
4
|
+
* Emulates the behaviour of a `constructor` in a class component
|
|
5
|
+
* Place this at the top of your functional component so that it is run first.
|
|
6
|
+
*
|
|
7
|
+
* @param callback Callback function to run once
|
|
8
|
+
*/
|
|
9
|
+
export default function useConstructor(callback: () => void): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Can be used to get the previous state of a prop.
|
|
4
|
+
* This can be helpful when converting class components to functional
|
|
5
|
+
* where we don't have the `prevProps`.
|
|
6
|
+
*
|
|
7
|
+
* @param value New state of the
|
|
8
|
+
* @param initialValue Optional parameter for the inital state of the component
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
export default function usePreviousState<T>(value: T, initialValue?: T): T | undefined;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { ExtractPluginSharedState, NextEditorPluginMetadata, PluginDependenciesAPI, PluginInjectionAPI } from '../types/next-editor-plugin';
|
|
2
|
+
type NamedPluginStatesFromInjectionAPI<API extends PluginInjectionAPI<any, any> | undefined, PluginList extends string[]> = Readonly<{
|
|
3
|
+
[K in PluginList[number] as `${K}State`]: API extends PluginInjectionAPI<any, any> ? API['dependencies'][K] extends PluginDependenciesAPI<infer Plugin> | undefined ? ExtractPluginSharedState<Plugin> | undefined : never : never;
|
|
4
|
+
}>;
|
|
5
|
+
type ExtractPluginNames<Name extends string, Metadata extends NextEditorPluginMetadata> = keyof PluginInjectionAPI<Name, Metadata>['dependencies'];
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* Used to return the current plugin state of
|
|
9
|
+
* input dependencies
|
|
10
|
+
*
|
|
11
|
+
* Example in plugin:
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* function ExampleContent({ api }: Props) {
|
|
15
|
+
* const { dogState, exampleState } = useSharedPluginState(
|
|
16
|
+
* api,
|
|
17
|
+
* ['dog', 'example']
|
|
18
|
+
* )
|
|
19
|
+
* return <p>{ dogState.title } { exampleState.description }</p>
|
|
20
|
+
* }
|
|
21
|
+
*
|
|
22
|
+
* const examplePlugin: NextEditorPlugin<'example', { dependencies: [typeof pluginDog] }> = (_, api) => {
|
|
23
|
+
* return {
|
|
24
|
+
* name: 'example',
|
|
25
|
+
* contentComponent: () =>
|
|
26
|
+
* <ExampleContent
|
|
27
|
+
* api={api}
|
|
28
|
+
* />
|
|
29
|
+
* }
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @param injectionApi Plugin injection API from `NextEditorPlugin`
|
|
34
|
+
* @param plugins Plugin names to get the shared plugin state for
|
|
35
|
+
* @returns A corresponding object, the keys are names of the plugin with `State` appended,
|
|
36
|
+
* the values are the shared state exposed by that plugin.
|
|
37
|
+
*/
|
|
38
|
+
export declare function useSharedPluginState<Name extends string, Metadata extends NextEditorPluginMetadata, PluginNames extends ExtractPluginNames<Name, Metadata>[]>(injectionApi: PluginInjectionAPI<Name, Metadata> | undefined, plugins: PluginNames): NamedPluginStatesFromInjectionAPI<typeof injectionApi, PluginNames>;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.editor.action': string;
|
|
9
|
+
'fabric.editor.action.description': string;
|
|
10
|
+
'fabric.editor.addMediaFiles': string;
|
|
11
|
+
'fabric.editor.alignImageCenter': string;
|
|
12
|
+
'fabric.editor.alignImageLeft': string;
|
|
13
|
+
'fabric.editor.alignImageRight': string;
|
|
14
|
+
'fabric.editor.blockquote': string;
|
|
15
|
+
'fabric.editor.cancelButton': string;
|
|
16
|
+
'fabric.editor.captionPlaceholder': string;
|
|
17
|
+
'fabric.editor.codeBidiWarningLabel': string;
|
|
18
|
+
'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
|
|
19
|
+
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
20
|
+
'fabric.editor.codeBlockWrapButton.unwrapCodeBlock': string;
|
|
21
|
+
'fabric.editor.codeBlockWrapButton.wrapCodeBlock': string;
|
|
22
|
+
'fabric.editor.collapseNode': string;
|
|
23
|
+
'fabric.editor.columns': string;
|
|
24
|
+
'fabric.editor.columns.description': string;
|
|
25
|
+
'fabric.editor.copiedToClipboard': string;
|
|
26
|
+
'fabric.editor.copyToClipboard': string;
|
|
27
|
+
'fabric.editor.date': string;
|
|
28
|
+
'fabric.editor.date.description': string;
|
|
29
|
+
'fabric.editor.decision': string;
|
|
30
|
+
'fabric.editor.decision.description': string;
|
|
31
|
+
'fabric.editor.editMode.inviteToEditButton.title': string;
|
|
32
|
+
'fabric.editor.emoji': string;
|
|
33
|
+
'fabric.editor.emoji.description': string;
|
|
34
|
+
'fabric.editor.expand': string;
|
|
35
|
+
'fabric.editor.expand.description': string;
|
|
36
|
+
'fabric.editor.expandDefaultTitle': string;
|
|
37
|
+
'fabric.editor.expandNode': string;
|
|
38
|
+
'fabric.editor.expandPlaceholder': string;
|
|
39
|
+
'fabric.editor.feedbackDialog': string;
|
|
40
|
+
'fabric.editor.feedbackDialog.description': string;
|
|
41
|
+
'fabric.editor.help': string;
|
|
42
|
+
'fabric.editor.help.description': string;
|
|
43
|
+
'fabric.editor.horizontalRule': string;
|
|
44
|
+
'fabric.editor.horizontalRule.description': string;
|
|
45
|
+
'fabric.editor.image': string;
|
|
46
|
+
'fabric.editor.insertMenu': string;
|
|
47
|
+
'fabric.editor.layoutFixedWidth': string;
|
|
48
|
+
'fabric.editor.layoutFullWidth': string;
|
|
49
|
+
'fabric.editor.layoutWide': string;
|
|
50
|
+
'fabric.editor.link': string;
|
|
51
|
+
'fabric.editor.link.description': string;
|
|
52
|
+
'fabric.editor.mediaFiles': string;
|
|
53
|
+
'fabric.editor.mediaFiles.description': string;
|
|
54
|
+
'fabric.editor.mention': string;
|
|
55
|
+
'fabric.editor.mention.description': string;
|
|
56
|
+
'fabric.editor.openLink': string;
|
|
57
|
+
'fabric.editor.placeholderText': string;
|
|
58
|
+
'fabric.editor.placeholderText.description': string;
|
|
59
|
+
'fabric.editor.remove': string;
|
|
60
|
+
'fabric.editor.removeEmoji': string;
|
|
61
|
+
'fabric.editor.saveButton': string;
|
|
62
|
+
'fabric.editor.status': string;
|
|
63
|
+
'fabric.editor.status.description': string;
|
|
64
|
+
'fabric.editor.table': string;
|
|
65
|
+
'fabric.editor.table.description': string;
|
|
66
|
+
'fabric.editor.time.ago': string;
|
|
67
|
+
'fabric.editor.time.updated': string;
|
|
68
|
+
'fabric.editor.time.viewed': string;
|
|
69
|
+
'fabric.editor.tooltip.blockPanel': string;
|
|
70
|
+
'fabric.editor.tooltip.bulletList': string;
|
|
71
|
+
'fabric.editor.tooltip.decisionList': string;
|
|
72
|
+
'fabric.editor.tooltip.defaultBlockNode': string;
|
|
73
|
+
'fabric.editor.tooltip.nestedExpand': string;
|
|
74
|
+
'fabric.editor.tooltip.taskList': string;
|
|
75
|
+
'fabric.editor.unsupportedBlockContent': string;
|
|
76
|
+
'fabric.editor.unsupportedContentTooltip': string;
|
|
77
|
+
'fabric.editor.unsupportedInlineContent': string;
|
|
78
|
+
'fabric.editor.viewMore': string;
|
|
79
|
+
'fabric.editor.visit': string;
|
|
80
|
+
'fabric.theme.blue': string;
|
|
81
|
+
'fabric.theme.bold-blue': string;
|
|
82
|
+
'fabric.theme.bold-gray': string;
|
|
83
|
+
'fabric.theme.bold-green': string;
|
|
84
|
+
'fabric.theme.bold-magenta': string;
|
|
85
|
+
'fabric.theme.bold-orange': string;
|
|
86
|
+
'fabric.theme.bold-purple': string;
|
|
87
|
+
'fabric.theme.bold-red': string;
|
|
88
|
+
'fabric.theme.bold-teal': string;
|
|
89
|
+
'fabric.theme.bold-yellow': string;
|
|
90
|
+
'fabric.theme.bolder-blue': string;
|
|
91
|
+
'fabric.theme.bolder-gray': string;
|
|
92
|
+
'fabric.theme.bolder-green': string;
|
|
93
|
+
'fabric.theme.bolder-magenta': string;
|
|
94
|
+
'fabric.theme.bolder-orange': string;
|
|
95
|
+
'fabric.theme.bolder-purple': string;
|
|
96
|
+
'fabric.theme.bolder-red': string;
|
|
97
|
+
'fabric.theme.bolder-teal': string;
|
|
98
|
+
'fabric.theme.bolder-yellow': string;
|
|
99
|
+
'fabric.theme.dark-blue': string;
|
|
100
|
+
'fabric.theme.dark-gray': string;
|
|
101
|
+
'fabric.theme.dark-green': string;
|
|
102
|
+
'fabric.theme.dark-purple': string;
|
|
103
|
+
'fabric.theme.dark-red': string;
|
|
104
|
+
'fabric.theme.dark-teal': string;
|
|
105
|
+
'fabric.theme.dark-yellow': string;
|
|
106
|
+
'fabric.theme.default': string;
|
|
107
|
+
'fabric.theme.gray': string;
|
|
108
|
+
'fabric.theme.green': string;
|
|
109
|
+
'fabric.theme.light-blue': string;
|
|
110
|
+
'fabric.theme.light-gray': string;
|
|
111
|
+
'fabric.theme.light-green': string;
|
|
112
|
+
'fabric.theme.light-purple': string;
|
|
113
|
+
'fabric.theme.light-red': string;
|
|
114
|
+
'fabric.theme.light-teal': string;
|
|
115
|
+
'fabric.theme.light-yellow': string;
|
|
116
|
+
'fabric.theme.magenta': string;
|
|
117
|
+
'fabric.theme.orange': string;
|
|
118
|
+
'fabric.theme.purple': string;
|
|
119
|
+
'fabric.theme.red': string;
|
|
120
|
+
'fabric.theme.subtle-blue': string;
|
|
121
|
+
'fabric.theme.subtle-gray': string;
|
|
122
|
+
'fabric.theme.subtle-green': string;
|
|
123
|
+
'fabric.theme.subtle-magenta': string;
|
|
124
|
+
'fabric.theme.subtle-orange': string;
|
|
125
|
+
'fabric.theme.subtle-purple': string;
|
|
126
|
+
'fabric.theme.subtle-red': string;
|
|
127
|
+
'fabric.theme.subtle-teal': string;
|
|
128
|
+
'fabric.theme.subtle-yellow': string;
|
|
129
|
+
'fabric.theme.teal': string;
|
|
130
|
+
'fabric.theme.white': string;
|
|
131
|
+
'fabric.theme.yellow': string;
|
|
132
|
+
};
|
|
133
|
+
export default _default;
|