@atlaskit/editor-common 76.9.0 → 76.9.2
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 +12 -0
- package/dist/cjs/__tests_external__/page-objects/EditorSmartLink.js +1 -1
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +2 -2
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +43 -42
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +2 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/PanelTextInput/index.js +4 -2
- package/dist/cjs/ui/PanelTextInput/styles.js +1 -1
- package/dist/es2019/__tests_external__/page-objects/EditorSmartLink.js +1 -1
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +5 -1
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +56 -48
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +3 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/PanelTextInput/index.js +5 -2
- package/dist/es2019/ui/PanelTextInput/styles.js +5 -3
- package/dist/esm/__tests_external__/page-objects/EditorSmartLink.js +1 -1
- package/dist/esm/element-browser/components/ElementList/ElementList.js +2 -2
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +45 -43
- package/dist/esm/link/LinkSearch/LinkSearchList.js +2 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/PanelTextInput/index.js +5 -2
- package/dist/esm/ui/PanelTextInput/styles.js +2 -2
- package/dist/types/__tests_external__/page-objects/EditorSmartLink.d.ts +3 -2
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +11 -7
- package/dist/types/link/LinkSearch/LinkSearchList.d.ts +1 -1
- package/dist/types/ui/PanelTextInput/index.d.ts +3 -1
- 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 +41 -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 +4 -0
- package/dist/types-ts4.5/analytics/index.d.ts +7 -0
- package/dist/types-ts4.5/analytics/linking-utils.d.ts +14 -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 +182 -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 +35 -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 +21 -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 +142 -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/LinkToolbarButtonGroup.d.ts +16 -0
- package/dist/types-ts4.5/card/MediaAndEmbedsToolbar/index.d.ts +11 -0
- package/dist/types-ts4.5/card/cardOptions.d.ts +13 -0
- package/dist/types-ts4.5/card/index.d.ts +7 -0
- package/dist/types-ts4.5/card/link-toolbar-button-group-options.d.ts +5 -0
- package/dist/types-ts4.5/card/types.d.ts +27 -0
- package/dist/types-ts4.5/card/ui/assets/card.d.ts +3 -0
- package/dist/types-ts4.5/card/ui/assets/embed.d.ts +3 -0
- package/dist/types-ts4.5/card/ui/assets/inline.d.ts +3 -0
- package/dist/types-ts4.5/card/ui/assets/url.d.ts +3 -0
- package/dist/types-ts4.5/card/utils.d.ts +18 -0
- package/dist/types-ts4.5/clipboard/index.d.ts +6 -0
- package/dist/types-ts4.5/collab/index.d.ts +379 -0
- package/dist/types-ts4.5/commands/index.d.ts +21 -0
- package/dist/types-ts4.5/commands/insert-block.d.ts +5 -0
- package/dist/types-ts4.5/copy-button/index.d.ts +7 -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/editor-analytics/index.d.ts +1 -0
- package/dist/types-ts4.5/editor-analytics/withAnalytics.d.ts +34 -0
- package/dist/types-ts4.5/element-browser/ElementBrowser.d.ts +37 -0
- package/dist/types-ts4.5/element-browser/ViewMore.d.ts +6 -0
- package/dist/types-ts4.5/element-browser/components/CategoryList.d.ts +10 -0
- package/dist/types-ts4.5/element-browser/components/ElementBrowserLoader.d.ts +6 -0
- package/dist/types-ts4.5/element-browser/components/ElementList/ElementList.d.ts +33 -0
- package/dist/types-ts4.5/element-browser/components/ElementList/EmptyState.d.ts +6 -0
- package/dist/types-ts4.5/element-browser/components/ElementList/NotFoundIllustration.d.ts +2 -0
- package/dist/types-ts4.5/element-browser/components/ElementList/cellSizeAndPositionGetter.d.ts +7 -0
- package/dist/types-ts4.5/element-browser/components/ElementList/utils.d.ts +12 -0
- package/dist/types-ts4.5/element-browser/components/ElementSearch.d.ts +18 -0
- package/dist/types-ts4.5/element-browser/components/StatelessElementBrowser.d.ts +23 -0
- package/dist/types-ts4.5/element-browser/constants.d.ts +19 -0
- package/dist/types-ts4.5/element-browser/hooks/use-container-width.d.ts +33 -0
- package/dist/types-ts4.5/element-browser/hooks/use-focus.d.ts +35 -0
- package/dist/types-ts4.5/element-browser/hooks/use-select-and-focus-on-arrow-navigation.d.ts +72 -0
- package/dist/types-ts4.5/element-browser/index.d.ts +2 -0
- package/dist/types-ts4.5/element-browser/types.d.ts +12 -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/floating-toolbar/index.d.ts +6 -0
- package/dist/types-ts4.5/guideline/constants.d.ts +2 -0
- package/dist/types-ts4.5/guideline/defaultGuideline.d.ts +2 -0
- package/dist/types-ts4.5/guideline/dynamicGuideline.d.ts +6 -0
- package/dist/types-ts4.5/guideline/fixedGuideline.d.ts +32 -0
- package/dist/types-ts4.5/guideline/index.d.ts +9 -0
- package/dist/types-ts4.5/guideline/relativeGuideline.d.ts +8 -0
- package/dist/types-ts4.5/guideline/snapping.d.ts +19 -0
- package/dist/types-ts4.5/guideline/types.d.ts +67 -0
- package/dist/types-ts4.5/guideline/updateGuideline.d.ts +5 -0
- package/dist/types-ts4.5/guideline/utils.d.ts +27 -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 +68 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +211 -0
- package/dist/types-ts4.5/i18n/da.d.ts +211 -0
- package/dist/types-ts4.5/i18n/de.d.ts +211 -0
- package/dist/types-ts4.5/i18n/en.d.ts +211 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +211 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +211 -0
- package/dist/types-ts4.5/i18n/es.d.ts +211 -0
- package/dist/types-ts4.5/i18n/et.d.ts +8 -0
- package/dist/types-ts4.5/i18n/fi.d.ts +211 -0
- package/dist/types-ts4.5/i18n/fr.d.ts +211 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +211 -0
- package/dist/types-ts4.5/i18n/index.d.ts +32 -0
- package/dist/types-ts4.5/i18n/it.d.ts +211 -0
- package/dist/types-ts4.5/i18n/ja.d.ts +211 -0
- package/dist/types-ts4.5/i18n/ko.d.ts +211 -0
- package/dist/types-ts4.5/i18n/languages.d.ts +35 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +211 -0
- package/dist/types-ts4.5/i18n/nl.d.ts +211 -0
- package/dist/types-ts4.5/i18n/pl.d.ts +211 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +211 -0
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +8 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +211 -0
- package/dist/types-ts4.5/i18n/sk.d.ts +8 -0
- package/dist/types-ts4.5/i18n/sv.d.ts +211 -0
- package/dist/types-ts4.5/i18n/th.d.ts +211 -0
- package/dist/types-ts4.5/i18n/tr.d.ts +211 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +211 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +211 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +211 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +211 -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 +26 -0
- package/dist/types-ts4.5/keymaps/consts.d.ts +12 -0
- package/dist/types-ts4.5/keymaps/index.d.ts +97 -0
- package/dist/types-ts4.5/keymaps/keymap.d.ts +11 -0
- package/dist/types-ts4.5/link/LinkPicker/EditorLinkPicker/index.d.ts +23 -0
- package/dist/types-ts4.5/link/LinkPicker/EditorLinkPicker/useEscapeClickaway.d.ts +2 -0
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +119 -0
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +21 -0
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/messages.d.ts +32 -0
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/utils.d.ts +8 -0
- package/dist/types-ts4.5/link/LinkSearch/LinkSearchList.d.ts +20 -0
- package/dist/types-ts4.5/link/LinkSearch/LinkSearchListItem.d.ts +22 -0
- package/dist/types-ts4.5/link/LinkSearch/ToolbarComponents.d.ts +3 -0
- package/dist/types-ts4.5/link/LinkSearch/index.d.ts +59 -0
- package/dist/types-ts4.5/link/LinkSearch/listItemAlts.d.ts +2 -0
- package/dist/types-ts4.5/link/LinkSearch/transformTimeStamp.d.ts +10 -0
- package/dist/types-ts4.5/link/LinkSearch/types.d.ts +49 -0
- package/dist/types-ts4.5/link/LinkSearch/withActivityProvider.d.ts +66 -0
- package/dist/types-ts4.5/link/index.d.ts +16 -0
- package/dist/types-ts4.5/link/types.d.ts +40 -0
- package/dist/types-ts4.5/link/utils.d.ts +3 -0
- package/dist/types-ts4.5/lists/analytics.d.ts +4 -0
- package/dist/types-ts4.5/lists/indentation.d.ts +5 -0
- package/dist/types-ts4.5/lists/index.d.ts +6 -0
- package/dist/types-ts4.5/lists/node.d.ts +18 -0
- package/dist/types-ts4.5/lists/replace-content.d.ts +8 -0
- package/dist/types-ts4.5/lists/selection.d.ts +13 -0
- package/dist/types-ts4.5/mark/commands.d.ts +18 -0
- package/dist/types-ts4.5/mark/index.d.ts +2 -0
- package/dist/types-ts4.5/mark/text-formatting.d.ts +8 -0
- package/dist/types-ts4.5/media-single/constants.d.ts +22 -0
- package/dist/types-ts4.5/media-single/index.d.ts +2 -0
- package/dist/types-ts4.5/media-single/utils.d.ts +92 -0
- package/dist/types-ts4.5/mention.d.ts +2 -0
- package/dist/types-ts4.5/messages/alignment.d.ts +17 -0
- package/dist/types-ts4.5/messages/annotation.d.ts +17 -0
- package/dist/types-ts4.5/messages/block-type.d.ts +152 -0
- package/dist/types-ts4.5/messages/card.d.ts +87 -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/full-page.d.ts +17 -0
- package/dist/types-ts4.5/messages/index.d.ts +138 -0
- package/dist/types-ts4.5/messages/insert-block.d.ts +172 -0
- package/dist/types-ts4.5/messages/link-toolbar.d.ts +57 -0
- package/dist/types-ts4.5/messages/link.d.ts +7 -0
- package/dist/types-ts4.5/messages/list.d.ts +27 -0
- package/dist/types-ts4.5/messages/media-and-embed-toolbar.d.ts +12 -0
- package/dist/types-ts4.5/messages/toolbar.d.ts +92 -0
- package/dist/types-ts4.5/messages/undo-redo.d.ts +12 -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 +15 -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/clipboard.d.ts +2 -0
- package/dist/types-ts4.5/paste/index.d.ts +2 -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/core-plugin.d.ts +22 -0
- package/dist/types-ts4.5/preset/editor-commands.d.ts +21 -0
- package/dist/types-ts4.5/preset/index.d.ts +3 -0
- package/dist/types-ts4.5/preset/plugin-injection-api.d.ts +53 -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 +7 -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 +30 -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/quick-insert/assets/action.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/code.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/custom-panel.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/datasource-assets-objects.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/datasource-jira-issue.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/date.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/decision.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/divider.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/emoji.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/expand.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/fallback.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/feedback.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/heading1.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/heading2.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/heading3.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/heading4.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/heading5.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/heading6.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/images.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/index.d.ts +32 -0
- package/dist/types-ts4.5/quick-insert/assets/layout.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/link.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/list-number.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/list.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/mention.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/panel-error.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/panel-note.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/panel-success.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/panel-warning.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/panel.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/quote.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/status.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/index.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/use-icon-themed.d.ts +9 -0
- package/dist/types-ts4.5/quick-insert/utils.d.ts +7 -0
- package/dist/types-ts4.5/react-node-view/getInlineNodeViewProducer.d.ts +20 -0
- package/dist/types-ts4.5/react-node-view/index.d.ts +56 -0
- package/dist/types-ts4.5/react-node-view/types.d.ts +12 -0
- package/dist/types-ts4.5/resizer/Resizer.d.ts +52 -0
- package/dist/types-ts4.5/resizer/index.d.ts +2 -0
- package/dist/types-ts4.5/resizer/types.d.ts +28 -0
- package/dist/types-ts4.5/resizer/utils.d.ts +6 -0
- package/dist/types-ts4.5/safe-plugin/index.d.ts +6 -0
- package/dist/types-ts4.5/selection/gap-cursor/actions.d.ts +11 -0
- package/dist/types-ts4.5/selection/gap-cursor/selection.d.ts +41 -0
- package/dist/types-ts4.5/selection/gap-cursor/styles.d.ts +2 -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/gap-cursor/utils/setGapCursorSelection.d.ts +3 -0
- package/dist/types-ts4.5/selection/index.d.ts +31 -0
- package/dist/types-ts4.5/selection/types.d.ts +33 -0
- package/dist/types-ts4.5/selection/utils.d.ts +11 -0
- package/dist/types-ts4.5/selection-based-node-view/SelectionBasedNodeView.d.ts +49 -0
- package/dist/types-ts4.5/selection-based-node-view/index.d.ts +1 -0
- package/dist/types-ts4.5/styles/index.d.ts +32 -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/embedCard.d.ts +2 -0
- package/dist/types-ts4.5/styles/shared/emoji.d.ts +7 -0
- package/dist/types-ts4.5/styles/shared/expand.d.ts +1 -0
- package/dist/types-ts4.5/styles/shared/extension.d.ts +2 -0
- package/dist/types-ts4.5/styles/shared/grid.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/media.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/plugins.d.ts +4 -0
- package/dist/types-ts4.5/styles/shared/resizer.d.ts +9 -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 +8 -0
- package/dist/types-ts4.5/styles/shared/smartCard.d.ts +3 -0
- package/dist/types-ts4.5/styles/shared/status.d.ts +4 -0
- package/dist/types-ts4.5/styles/shared/table.d.ts +35 -0
- package/dist/types-ts4.5/styles/shared/tableCell.d.ts +1 -0
- package/dist/types-ts4.5/styles/shared/task-decision.d.ts +6 -0
- package/dist/types-ts4.5/styles/shared/text-color.d.ts +1 -0
- package/dist/types-ts4.5/styles/shared/unsupported-content.d.ts +5 -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 +85 -0
- package/dist/types-ts4.5/types/block-type.d.ts +4 -0
- package/dist/types-ts4.5/types/breakout.d.ts +1 -0
- package/dist/types-ts4.5/types/command.d.ts +6 -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/datasource.d.ts +1 -0
- package/dist/types-ts4.5/types/doc-builder.d.ts +26 -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-command.d.ts +5 -0
- package/dist/types-ts4.5/types/editor-container-width.d.ts +19 -0
- package/dist/types-ts4.5/types/editor-plugin.d.ts +92 -0
- package/dist/types-ts4.5/types/editor-public-api.d.ts +4 -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 +311 -0
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +260 -0
- package/dist/types-ts4.5/types/grid.d.ts +1 -0
- package/dist/types-ts4.5/types/hyperlink.d.ts +35 -0
- package/dist/types-ts4.5/types/image-upload-reference-event.d.ts +10 -0
- package/dist/types-ts4.5/types/index.d.ts +52 -0
- package/dist/types-ts4.5/types/input-rules.d.ts +8 -0
- package/dist/types-ts4.5/types/insert-block.d.ts +2 -0
- package/dist/types-ts4.5/types/layout.d.ts +6 -0
- package/dist/types-ts4.5/types/next-editor-plugin.d.ts +157 -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 +38 -0
- package/dist/types-ts4.5/types/resizable-media-single.d.ts +15 -0
- package/dist/types-ts4.5/types/selection.d.ts +3 -0
- package/dist/types-ts4.5/types/supported-browsers.d.ts +15 -0
- package/dist/types-ts4.5/types/tables.d.ts +13 -0
- package/dist/types-ts4.5/types/text-formatting.d.ts +36 -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 +23 -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/Announcer/announcer.d.ts +23 -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/ContextPanel/context.d.ts +24 -0
- package/dist/types-ts4.5/ui/DropList/index.d.ts +21 -0
- package/dist/types-ts4.5/ui/Emoji/index.d.ts +22 -0
- package/dist/types-ts4.5/ui/ErrorBoundary/index.d.ts +25 -0
- package/dist/types-ts4.5/ui/EventHandlers/index.d.ts +36 -0
- package/dist/types-ts4.5/ui/Expand/index.d.ts +42 -0
- package/dist/types-ts4.5/ui/FloatingToolbar/Button.d.ts +30 -0
- package/dist/types-ts4.5/ui/FloatingToolbar/Separator.d.ts +4 -0
- package/dist/types-ts4.5/ui/FloatingToolbar/SmallerEditIcon.d.ts +3 -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/LinkSearch/const.d.ts +4 -0
- package/dist/types-ts4.5/ui/MediaSingle/grid.d.ts +25 -0
- package/dist/types-ts4.5/ui/MediaSingle/index.d.ts +28 -0
- package/dist/types-ts4.5/ui/MediaSingle/link.d.ts +1 -0
- package/dist/types-ts4.5/ui/MediaSingle/styled.d.ts +57 -0
- package/dist/types-ts4.5/ui/MediaSingle/types.d.ts +12 -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/PanelTextInput/index.d.ts +47 -0
- package/dist/types-ts4.5/ui/PanelTextInput/styles.d.ts +2 -0
- package/dist/types-ts4.5/ui/Popup/index.d.ts +85 -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/ResizerLegacy/index.d.ts +43 -0
- package/dist/types-ts4.5/ui/ResizerLegacy/styled.d.ts +2 -0
- package/dist/types-ts4.5/ui/ResizerLegacy/types.d.ts +26 -0
- package/dist/types-ts4.5/ui/ResizerLegacy/utils.d.ts +6 -0
- package/dist/types-ts4.5/ui/Toolbar/index.d.ts +5 -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 +43 -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 +38 -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 +12 -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/ColorPickerButton/index.d.ts +28 -0
- package/dist/types-ts4.5/ui-menu/Dropdown/index.d.ts +44 -0
- package/dist/types-ts4.5/ui-menu/DropdownContainer/index.d.ts +3 -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/ToolbarArrowKeyNavigationProvider/index.d.ts +31 -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 +11 -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 +12 -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 +50 -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/commands.d.ts +48 -0
- package/dist/types-ts4.5/utils/compare-props.d.ts +32 -0
- package/dist/types-ts4.5/utils/compareNodes.d.ts +49 -0
- package/dist/types-ts4.5/utils/compose.d.ts +30 -0
- package/dist/types-ts4.5/utils/count-nodes.d.ts +8 -0
- package/dist/types-ts4.5/utils/create-wrap-selection-transaction.d.ts +15 -0
- package/dist/types-ts4.5/utils/datasource.d.ts +3 -0
- package/dist/types-ts4.5/utils/date.d.ts +18 -0
- package/dist/types-ts4.5/utils/dedupe.d.ts +1 -0
- package/dist/types-ts4.5/utils/document.d.ts +25 -0
- package/dist/types-ts4.5/utils/dom.d.ts +40 -0
- package/dist/types-ts4.5/utils/editor-core-utils.d.ts +37 -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/filter/privacy-filter.d.ts +9 -0
- package/dist/types-ts4.5/utils/get-performance-options.d.ts +16 -0
- package/dist/types-ts4.5/utils/getModeFromTheme.d.ts +1 -0
- package/dist/types-ts4.5/utils/grid.d.ts +3 -0
- package/dist/types-ts4.5/utils/hyperlink.d.ts +29 -0
- package/dist/types-ts4.5/utils/imageLoader.d.ts +14 -0
- package/dist/types-ts4.5/utils/index.d.ts +86 -0
- package/dist/types-ts4.5/utils/input-rules.d.ts +16 -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 +52 -0
- package/dist/types-ts4.5/utils/outdated-browsers.d.ts +1 -0
- package/dist/types-ts4.5/utils/performance/get-performance-timing.d.ts +8 -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 +52 -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/prosemirror/autojoin.d.ts +13 -0
- package/dist/types-ts4.5/utils/referentiality.d.ts +18 -0
- package/dist/types-ts4.5/utils/rich-media-utils.d.ts +9 -0
- package/dist/types-ts4.5/utils/scroll-gutter.d.ts +3 -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 +5 -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/utils/wrap-selection-in.d.ts +9 -0
- package/dist/types-ts4.5/validator.d.ts +2 -0
- package/dist/types-ts4.5/with-plugin-state/index.d.ts +108 -0
- package/dist/types-ts4.5/with-plugin-state/types.d.ts +10 -0
- package/package.json +2 -2
- package/tmp/api-report-tmp.d.ts +9 -0
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import type { DisableSpellcheckByBrowser } from './supported-browsers';
|
|
2
|
+
/**
|
|
3
|
+
* Feature Flags for experimental features/behaviours.
|
|
4
|
+
*
|
|
5
|
+
* This feature flags are not meant to be used as plugin configuration and are only for temporary flags that will eventually be enabled be default or removed.
|
|
6
|
+
* If your plugin requires permanent configuration options it's better to keep them in plugin options.
|
|
7
|
+
*
|
|
8
|
+
* # ADDING NEW FEATURE FLAG
|
|
9
|
+
*
|
|
10
|
+
* – Every feature flag must have a description explaining what it's meant to be doing.
|
|
11
|
+
* – Every feature flag must have an associated ticket and a DUE DATE when this flag will be removed and an owner who will remove it.
|
|
12
|
+
*
|
|
13
|
+
* ## TEMPLATE
|
|
14
|
+
*
|
|
15
|
+
* When adding a new feature flag use the following template:
|
|
16
|
+
*
|
|
17
|
+
* ```
|
|
18
|
+
* @description
|
|
19
|
+
* What this feature flag is doing. Do not lead with "Feature flag to".
|
|
20
|
+
*
|
|
21
|
+
* @see https://product-fabric.atlassian.net/browse/ED-1
|
|
22
|
+
* @default false
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ## NAMING
|
|
26
|
+
* – Name feature flags without `allow`.
|
|
27
|
+
* – A name should read as "Feature flag to enable ...".
|
|
28
|
+
*
|
|
29
|
+
* Example: name = "newInsertionBehaviour" -> "Enable new insertion behaviour"
|
|
30
|
+
*/
|
|
31
|
+
export type FeatureFlags = {
|
|
32
|
+
/**
|
|
33
|
+
* @description Enable single layout option
|
|
34
|
+
*
|
|
35
|
+
* @see https://hello.atlassian.net/browse/LOVE-187
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
38
|
+
singleLayout?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* @description Enable new insertion behaviour
|
|
41
|
+
*
|
|
42
|
+
* @see https://product-fabric.atlassian.net/l/c/JYoSEu00
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
newInsertionBehaviour?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* @description Allows to toggle expand open state
|
|
48
|
+
* @default true
|
|
49
|
+
*/
|
|
50
|
+
interactiveExpand?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* @description
|
|
53
|
+
* Whether a placeholder bracket hint was provided (`string => boolean`)
|
|
54
|
+
* Placeholder text to be displayed when a bracket '{' is typed and the line is empty e.g. 'Did you mean to use '/' to insert content?'
|
|
55
|
+
* This is used to aid migration for TinyMCE power users to the new Fabric editor power user shortcuts.
|
|
56
|
+
*
|
|
57
|
+
* @see https://product-fabric.atlassian.net/l/c/4JLjusAP
|
|
58
|
+
* @default true
|
|
59
|
+
*/
|
|
60
|
+
placeholderBracketHint?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* @description
|
|
63
|
+
* Whether placeholder hints were provided (`string[] => boolean`)
|
|
64
|
+
* Placeholder text values to display on new empty lines.
|
|
65
|
+
*
|
|
66
|
+
* @see https://product-fabric.atlassian.net/l/c/GG1Yv9cK
|
|
67
|
+
* @default false
|
|
68
|
+
*/
|
|
69
|
+
placeholderHints?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* @description
|
|
72
|
+
* Enable find/replace functionality within the editor
|
|
73
|
+
*
|
|
74
|
+
* @see https://product-fabric.atlassian.net/browse/ED-3504
|
|
75
|
+
* @default false
|
|
76
|
+
*/
|
|
77
|
+
findReplace?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* @description
|
|
80
|
+
* Enable case matching functionality in find/replace feature within the editor
|
|
81
|
+
*
|
|
82
|
+
* @see https://product-fabric.atlassian.net/browse/ED-9684
|
|
83
|
+
* @default false
|
|
84
|
+
*/
|
|
85
|
+
findReplaceMatchCase?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* @description
|
|
88
|
+
* Enable `localId` generation for extensions.
|
|
89
|
+
*
|
|
90
|
+
* @see https://product-fabric.atlassian.net/l/c/2m0i9jLX
|
|
91
|
+
* @default false
|
|
92
|
+
*/
|
|
93
|
+
extensionLocalIdGeneration?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* @description
|
|
96
|
+
* Enable add column custom step
|
|
97
|
+
*
|
|
98
|
+
* @see https://product-fabric.atlassian.net/browse/ED-8856
|
|
99
|
+
* @default false
|
|
100
|
+
*/
|
|
101
|
+
addColumnWithCustomStep?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* @description
|
|
104
|
+
* Enable undo/redo buttons and functionality within the editor
|
|
105
|
+
*
|
|
106
|
+
* @see https://product-fabric.atlassian.net/browse/ED-9537
|
|
107
|
+
* @default false
|
|
108
|
+
*/
|
|
109
|
+
undoRedoButtons?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* @description
|
|
112
|
+
* Measure render performance for all tracked analytics events
|
|
113
|
+
*
|
|
114
|
+
* @default false
|
|
115
|
+
*/
|
|
116
|
+
catchAllTracking?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* @description
|
|
119
|
+
* Yield to user interaction work before sending analytics
|
|
120
|
+
*
|
|
121
|
+
* @see https://product-fabric.atlassian.net/browse/ED-10584
|
|
122
|
+
* @default false
|
|
123
|
+
*/
|
|
124
|
+
queueAnalytics?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Enable extend floating toolbars
|
|
127
|
+
* @see https://product-fabric.atlassian.net/browse/ED-11963
|
|
128
|
+
* @default false
|
|
129
|
+
*/
|
|
130
|
+
extendFloatingToolbar?: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* Show the avatar group as a plugin
|
|
133
|
+
* @see https://product-fabric.atlassian.net/browse/CERN-747
|
|
134
|
+
* @default false
|
|
135
|
+
*/
|
|
136
|
+
showAvatarGroupAsPlugin?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* @description
|
|
139
|
+
* Enables docStructure for unhandleErrorEvents
|
|
140
|
+
*
|
|
141
|
+
* @see https://product-fabric.atlassian.net/browse/ED-12998
|
|
142
|
+
* @default false
|
|
143
|
+
*/
|
|
144
|
+
errorBoundaryDocStructure?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* @description
|
|
147
|
+
* Enables docStructure for synchronyError
|
|
148
|
+
*
|
|
149
|
+
* @see https://product-fabric.atlassian.net/browse/ED-12998
|
|
150
|
+
* @default false
|
|
151
|
+
*/
|
|
152
|
+
synchronyErrorDocStructure?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* @decsription
|
|
155
|
+
* Enables the view update subscription plugin
|
|
156
|
+
*
|
|
157
|
+
* @default false
|
|
158
|
+
*/
|
|
159
|
+
enableViewUpdateSubscription?: boolean;
|
|
160
|
+
/**
|
|
161
|
+
* @description
|
|
162
|
+
* Enable scroll-to-telepointer for collab avatars
|
|
163
|
+
*
|
|
164
|
+
* @see https://product-fabric.atlassian.net/browse/ED-12460
|
|
165
|
+
* @default false
|
|
166
|
+
*/
|
|
167
|
+
collabAvatarScroll?: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* @description
|
|
170
|
+
* Enable UFO experiences
|
|
171
|
+
*
|
|
172
|
+
* @see https://product-fabric.atlassian.net/browse/ED-13059
|
|
173
|
+
* @default false
|
|
174
|
+
*/
|
|
175
|
+
ufo?: boolean;
|
|
176
|
+
/**
|
|
177
|
+
* Split editor toolbar to two lines when viewport is small
|
|
178
|
+
* @see https://product-fabric.atlassian.net/browse/CERN-1124
|
|
179
|
+
* @default false
|
|
180
|
+
*/
|
|
181
|
+
twoLineEditorToolbar?: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Prevent transactions from being mutated (e.g. apply, filterTransaction, appendTransaction) after being dispatched,
|
|
184
|
+
* will throw on transaction dispatch unless saferDispatchedTransactionsAnalyticsOnly is enabled.
|
|
185
|
+
* @see https://product-fabric.atlassian.net/wiki/spaces/E/pages/3131836958/Editor+DACI+013+Avoid+content+loss+with+bad+transactions+Ghost+Steps
|
|
186
|
+
* @see https://product-fabric.atlassian.net/browse/ED-14002
|
|
187
|
+
* @default false
|
|
188
|
+
*/
|
|
189
|
+
saferDispatchedTransactions?: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* Detect when transaction is being mutated after being dispatched and emit analytics event if so (e.g. apply, filterTransaction,
|
|
192
|
+
* appendTransaction)
|
|
193
|
+
* @see https://product-fabric.atlassian.net/wiki/spaces/E/pages/3131836958/Editor+DACI+013+Avoid+content+loss+with+bad+transactions+Ghost+Steps
|
|
194
|
+
* @see https://product-fabric.atlassian.net/browse/ED-14002
|
|
195
|
+
* @see https://product-fabric.atlassian.net/wiki/spaces/AS/pages/3321201329/Rolling+out+safer-dispatched+transaction
|
|
196
|
+
* @default false
|
|
197
|
+
*/
|
|
198
|
+
saferDispatchedTransactionsAnalyticsOnly?: boolean;
|
|
199
|
+
/**
|
|
200
|
+
* @description
|
|
201
|
+
* Enable new collab service
|
|
202
|
+
* @see https://product-fabric.atlassian.net/browse/ED-14097
|
|
203
|
+
* @default false
|
|
204
|
+
*/
|
|
205
|
+
useNativeCollabPlugin?: boolean;
|
|
206
|
+
/**
|
|
207
|
+
* Enable custom up/down key handler when cursor below/above an inline media
|
|
208
|
+
* @see https://product-fabric.atlassian.net/browse/ED-13066
|
|
209
|
+
* Chrome bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1227468
|
|
210
|
+
* @default undefined
|
|
211
|
+
*/
|
|
212
|
+
chromeCursorHandlerFixedVersion?: number;
|
|
213
|
+
/**
|
|
214
|
+
* @description
|
|
215
|
+
* Enable display of a preview modal on mouse over of inline smart card
|
|
216
|
+
*
|
|
217
|
+
* @see https://product-fabric.atlassian.net/browse/EDM-2860
|
|
218
|
+
* @default false
|
|
219
|
+
*/
|
|
220
|
+
showHoverPreview?: boolean;
|
|
221
|
+
/**
|
|
222
|
+
* @description
|
|
223
|
+
* Generic way of disabling spellcheck per browser by version range
|
|
224
|
+
*
|
|
225
|
+
* @see https://product-fabric.atlassian.net/browse/ED-14510
|
|
226
|
+
* @default {}
|
|
227
|
+
* Example:
|
|
228
|
+
* {
|
|
229
|
+
* ie: {
|
|
230
|
+
* minimum: 101,
|
|
231
|
+
* },
|
|
232
|
+
* chrome: {
|
|
233
|
+
* minimum: 96,
|
|
234
|
+
* maximum: 109,
|
|
235
|
+
* },
|
|
236
|
+
* };
|
|
237
|
+
*/
|
|
238
|
+
disableSpellcheckByBrowser?: DisableSpellcheckByBrowser | undefined;
|
|
239
|
+
/**
|
|
240
|
+
* @description
|
|
241
|
+
* Show indentation buttons in the Editor toolbar
|
|
242
|
+
*
|
|
243
|
+
* @see https://product-fabric.atlassian.net/wiki/spaces/E/pages/3237512038/EXPLORE+Indentation+buttons+in+the+Editor+toolbar
|
|
244
|
+
* @see https://product-fabric.atlassian.net/browse/ED-15067
|
|
245
|
+
* @default false
|
|
246
|
+
*/
|
|
247
|
+
indentationButtonsInTheToolbar?: boolean;
|
|
248
|
+
/**
|
|
249
|
+
* @description
|
|
250
|
+
* Use the linking platform link picker for link insertion and edit
|
|
251
|
+
*
|
|
252
|
+
* @see https://product-fabric.atlassian.net/wiki/spaces/EM/pages/3158246501/PP+Link+Picker+-+Standalone
|
|
253
|
+
* @see https://product-fabric.atlassian.net/browse/EDM-2577
|
|
254
|
+
* @default false
|
|
255
|
+
*/
|
|
256
|
+
lpLinkPicker?: boolean;
|
|
257
|
+
/**
|
|
258
|
+
* @description
|
|
259
|
+
* Enables focus trap for the linking platform link picker
|
|
260
|
+
*
|
|
261
|
+
* @see https://product-fabric.atlassian.net/wiki/spaces/EM/pages/3158246501/PP+Link+Picker+-+Standalone
|
|
262
|
+
* @see https://product-fabric.atlassian.net/browse/EDM-2577
|
|
263
|
+
* @see https://product-fabric.atlassian.net/browse/EDM-4919
|
|
264
|
+
* @default false
|
|
265
|
+
*/
|
|
266
|
+
lpLinkPickerFocusTrap?: boolean;
|
|
267
|
+
/**
|
|
268
|
+
* @description
|
|
269
|
+
* Enables linking platform event tracking using @atlaskit/link-analytics
|
|
270
|
+
*
|
|
271
|
+
* @default false
|
|
272
|
+
*/
|
|
273
|
+
lpAnalyticsEventsNext?: boolean;
|
|
274
|
+
/**
|
|
275
|
+
* @description
|
|
276
|
+
* Show link settings button in the Floating toolbar
|
|
277
|
+
*
|
|
278
|
+
* @see https://product-fabric.atlassian.net/wiki/spaces/EM/pages/3199172609/POP+Some+users+need+to+work+with+URLs+to+get+their+job+done
|
|
279
|
+
* @see https://product-fabric.atlassian.net/browse/EDM-3268
|
|
280
|
+
* @default null
|
|
281
|
+
*/
|
|
282
|
+
floatingToolbarLinkSettingsButton?: string;
|
|
283
|
+
/**
|
|
284
|
+
* @description
|
|
285
|
+
* Allow numbered lists to start from any number greater than 0, not just 1
|
|
286
|
+
*
|
|
287
|
+
* @see https://product-fabric.atlassian.net/wiki/spaces/EUXQ/pages/3257270398/MAKE+PP+Restart+Numbered+Lists
|
|
288
|
+
* @see https://product-fabric.atlassian.net/browse/ED-15210
|
|
289
|
+
* @default false
|
|
290
|
+
*/
|
|
291
|
+
restartNumberedLists?: boolean;
|
|
292
|
+
/**
|
|
293
|
+
* @description
|
|
294
|
+
* Force the Popup placement if the space does not accomodate the Popup fitHeight
|
|
295
|
+
*
|
|
296
|
+
* @see https://product-fabric.atlassian.net/wiki/spaces/EM/pages/3158246501/PP+Link+Picker+-+Standalone
|
|
297
|
+
* @see https://product-fabric.atlassian.net/browse/EDM-2577
|
|
298
|
+
* @default false
|
|
299
|
+
*/
|
|
300
|
+
preventPopupOverflow?: boolean;
|
|
301
|
+
/**
|
|
302
|
+
* @description
|
|
303
|
+
* Enable the new editor media resize experience.
|
|
304
|
+
*
|
|
305
|
+
* @see https://product-fabric.atlassian.net/browse/ED-18316
|
|
306
|
+
* @default false
|
|
307
|
+
*/
|
|
308
|
+
extendedMediaResizeExperience?: boolean | undefined;
|
|
309
|
+
};
|
|
310
|
+
export type FeatureFlagKey = keyof FeatureFlags;
|
|
311
|
+
export type GetEditorFeatureFlags = () => FeatureFlags;
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { IntlShape } from 'react-intl-next';
|
|
3
|
+
import type { Node, NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
|
+
import type { EmojiId } from '@atlaskit/emoji/types';
|
|
7
|
+
import type { DispatchAnalyticsEvent } from '../analytics/types/dispatch-analytics-event';
|
|
8
|
+
import type { ProviderFactory } from '../provider-factory';
|
|
9
|
+
import type { PaletteColor } from '../ui-color/ColorPalette/Palettes/type';
|
|
10
|
+
import type { Command } from './command';
|
|
11
|
+
import type { MarkOptions, NodeOptions } from './copy-button';
|
|
12
|
+
export interface RenderOptionsPropsT<T extends {}> {
|
|
13
|
+
hide: () => void;
|
|
14
|
+
dispatchCommand: (command: T) => void;
|
|
15
|
+
}
|
|
16
|
+
export interface DropdownOptionT<T extends {}> {
|
|
17
|
+
id?: string;
|
|
18
|
+
title: string;
|
|
19
|
+
onClick: T;
|
|
20
|
+
onMouseDown?: T;
|
|
21
|
+
onMouseOver?: T;
|
|
22
|
+
onMouseEnter?: T;
|
|
23
|
+
onMouseLeave?: T;
|
|
24
|
+
onMouseOut?: T;
|
|
25
|
+
onFocus?: T;
|
|
26
|
+
onBlur?: T;
|
|
27
|
+
selected?: boolean;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
hidden?: boolean;
|
|
30
|
+
testId?: string;
|
|
31
|
+
tooltip?: string;
|
|
32
|
+
elemAfter?: React.ReactNode;
|
|
33
|
+
}
|
|
34
|
+
export type DropdownOptions<T extends {}> = Array<DropdownOptionT<T>> | {
|
|
35
|
+
render: (props: RenderOptionsPropsT<T>) => React.ReactElement<any> | null;
|
|
36
|
+
height: number;
|
|
37
|
+
width: number;
|
|
38
|
+
};
|
|
39
|
+
export interface SelectOption<T extends {} = {}> {
|
|
40
|
+
value: string;
|
|
41
|
+
label: string;
|
|
42
|
+
selected?: boolean;
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
hidden?: boolean;
|
|
45
|
+
data?: T;
|
|
46
|
+
}
|
|
47
|
+
export type ButtonAppearance = 'subtle' | 'danger';
|
|
48
|
+
export type Icon = React.ComponentType<{
|
|
49
|
+
label: string;
|
|
50
|
+
}>;
|
|
51
|
+
export type RenderOptionsProps = RenderOptionsPropsT<Command>;
|
|
52
|
+
export type AlignType = 'left' | 'center' | 'right';
|
|
53
|
+
interface Position {
|
|
54
|
+
top?: number;
|
|
55
|
+
right?: number;
|
|
56
|
+
bottom?: number;
|
|
57
|
+
left?: number;
|
|
58
|
+
}
|
|
59
|
+
type PositionOffset = Position;
|
|
60
|
+
export type ConfirmDialogChildInfo = {
|
|
61
|
+
id: string;
|
|
62
|
+
name: string | null;
|
|
63
|
+
amount: number;
|
|
64
|
+
};
|
|
65
|
+
export interface ConfirmDialogOptions {
|
|
66
|
+
title?: string;
|
|
67
|
+
message: string;
|
|
68
|
+
okButtonLabel?: string;
|
|
69
|
+
cancelButtonLabel?: string;
|
|
70
|
+
isReferentialityDialog?: boolean;
|
|
71
|
+
checkboxLabel?: string;
|
|
72
|
+
messagePrefix?: string;
|
|
73
|
+
getChildrenInfo?: () => ConfirmDialogChildInfo[];
|
|
74
|
+
onConfirm?: (...args: any[]) => Command;
|
|
75
|
+
}
|
|
76
|
+
export type ConfirmationDialogProps = {
|
|
77
|
+
onConfirm: (isCheck?: boolean) => void;
|
|
78
|
+
/**
|
|
79
|
+
* onClose is called every time when the dialog is closed.
|
|
80
|
+
* Either clicking on 'Confirm' button or 'Cancel' button,
|
|
81
|
+
* which means it is being called after onConfirm, or by itself when clicking 'Cancel' button.
|
|
82
|
+
*/
|
|
83
|
+
onClose: () => void;
|
|
84
|
+
options?: ConfirmDialogOptions;
|
|
85
|
+
testId?: string;
|
|
86
|
+
};
|
|
87
|
+
export type FloatingToolbarCopyButton = {
|
|
88
|
+
type: 'copy-button';
|
|
89
|
+
items: Array<FloatingToolbarSeparator | MarkOptions | NodeOptions>;
|
|
90
|
+
hidden?: boolean;
|
|
91
|
+
};
|
|
92
|
+
export type FloatingToolbarButton<T extends {}> = {
|
|
93
|
+
id?: string;
|
|
94
|
+
type: 'button';
|
|
95
|
+
title: string;
|
|
96
|
+
onClick: T;
|
|
97
|
+
showTitle?: boolean;
|
|
98
|
+
onMouseEnter?: T;
|
|
99
|
+
onMouseLeave?: T;
|
|
100
|
+
onFocus?: T;
|
|
101
|
+
onBlur?: T;
|
|
102
|
+
icon?: Icon;
|
|
103
|
+
selected?: boolean;
|
|
104
|
+
disabled?: boolean;
|
|
105
|
+
hidden?: boolean;
|
|
106
|
+
appearance?: ButtonAppearance;
|
|
107
|
+
href?: string;
|
|
108
|
+
target?: string;
|
|
109
|
+
className?: string;
|
|
110
|
+
tooltipContent?: React.ReactNode;
|
|
111
|
+
testId?: string;
|
|
112
|
+
hideTooltipOnClick?: boolean;
|
|
113
|
+
confirmDialog?: ConfirmDialogOptions | (() => ConfirmDialogOptions);
|
|
114
|
+
metadata?: {
|
|
115
|
+
[key: string]: string;
|
|
116
|
+
};
|
|
117
|
+
ariaHasPopup?: boolean | 'dialog' | 'menu' | 'listbox' | 'tree' | 'grid' | undefined;
|
|
118
|
+
tabIndex?: number | null | undefined;
|
|
119
|
+
focusEditoronEnter?: boolean;
|
|
120
|
+
};
|
|
121
|
+
export type FloatingToolbarInput<T extends {}> = {
|
|
122
|
+
id: string;
|
|
123
|
+
type: 'input';
|
|
124
|
+
title?: string;
|
|
125
|
+
description?: string;
|
|
126
|
+
onSubmit: (...args: any[]) => T;
|
|
127
|
+
onBlur: (...args: any[]) => T;
|
|
128
|
+
defaultValue?: string;
|
|
129
|
+
placeholder?: string;
|
|
130
|
+
hidden?: boolean;
|
|
131
|
+
};
|
|
132
|
+
export type FloatingToolbarCustom<T extends {}> = {
|
|
133
|
+
type: 'custom';
|
|
134
|
+
/**
|
|
135
|
+
* By default -- the floating toolbar supports navigating between
|
|
136
|
+
* items using arrow keys (to meet aria guidelines).
|
|
137
|
+
* In some cases the floating toolbar is being used to present
|
|
138
|
+
* non toolbar content -- such as the link editing experience.
|
|
139
|
+
* In these cases you can opt out of arrow navigation using the
|
|
140
|
+
* this property.
|
|
141
|
+
*
|
|
142
|
+
* @default false
|
|
143
|
+
*/
|
|
144
|
+
disableArrowNavigation?: boolean;
|
|
145
|
+
fallback: Array<FloatingToolbarFallbackItem<T>>;
|
|
146
|
+
render: (view?: EditorView, idx?: number, dispatchAnalyticsEvent?: DispatchAnalyticsEvent) => React.ComponentClass | React.SFC | React.ReactElement<any> | null;
|
|
147
|
+
hidden?: boolean;
|
|
148
|
+
};
|
|
149
|
+
type FloatingToolbarSelectBase<T extends {}, V = SelectOption> = {
|
|
150
|
+
id: string;
|
|
151
|
+
type: 'select';
|
|
152
|
+
selectType: 'list' | 'emoji' | 'date' | 'color';
|
|
153
|
+
title?: string;
|
|
154
|
+
options: V[];
|
|
155
|
+
hidden?: boolean;
|
|
156
|
+
hideExpandIcon?: boolean;
|
|
157
|
+
defaultValue?: V | null;
|
|
158
|
+
placeholder?: string;
|
|
159
|
+
onChange: (selected: V) => T;
|
|
160
|
+
filterOption?: ((option: V, rawInput: string) => boolean) | null;
|
|
161
|
+
};
|
|
162
|
+
export type FloatingToolbarListPicker<T extends {}> = FloatingToolbarSelectBase<T> & {
|
|
163
|
+
selectType: 'list';
|
|
164
|
+
};
|
|
165
|
+
export type FloatingToolbarColorPicker<T extends {}> = FloatingToolbarSelectBase<T, PaletteColor> & {
|
|
166
|
+
selectType: 'color';
|
|
167
|
+
};
|
|
168
|
+
export type FloatingToolbarEmojiPicker<T extends {}> = FloatingToolbarSelectBase<T, EmojiId> & {
|
|
169
|
+
selectType: 'emoji';
|
|
170
|
+
selected?: boolean;
|
|
171
|
+
options: never[];
|
|
172
|
+
};
|
|
173
|
+
export type FloatingToolbarDatePicker<T extends {}> = FloatingToolbarSelectBase<T, number> & {
|
|
174
|
+
selectType: 'date';
|
|
175
|
+
options: never[];
|
|
176
|
+
};
|
|
177
|
+
export type FloatingToolbarSelect<T extends {}> = FloatingToolbarEmojiPicker<T> | FloatingToolbarColorPicker<T> | FloatingToolbarListPicker<T> | FloatingToolbarDatePicker<T>;
|
|
178
|
+
export type FloatingToolbarSeparator = {
|
|
179
|
+
type: 'separator';
|
|
180
|
+
hidden?: boolean;
|
|
181
|
+
};
|
|
182
|
+
export type FloatingToolbarDropdown<T extends {}> = {
|
|
183
|
+
testId?: string;
|
|
184
|
+
id?: string;
|
|
185
|
+
type: 'dropdown';
|
|
186
|
+
title: string;
|
|
187
|
+
icon?: Icon;
|
|
188
|
+
options: DropdownOptions<T>;
|
|
189
|
+
hidden?: boolean;
|
|
190
|
+
hideExpandIcon?: boolean;
|
|
191
|
+
disabled?: boolean;
|
|
192
|
+
tooltip?: string;
|
|
193
|
+
dropdownWidth?: number;
|
|
194
|
+
showSelected?: boolean;
|
|
195
|
+
alignDropdownWithToolbar?: boolean;
|
|
196
|
+
};
|
|
197
|
+
type FloatingToolbarExtensionsPlaceholder = {
|
|
198
|
+
type: 'extensions-placeholder';
|
|
199
|
+
hidden?: boolean;
|
|
200
|
+
separator?: 'start' | 'end' | 'both';
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* This additional type is introduced in order to prevent infinite loop due to
|
|
204
|
+
* `extract-react-types-loader`. The issue occurs when custom type `fallback` field
|
|
205
|
+
* is an array of FloatingToolbarItem. Since FloatingToolbarItem is a FloatingToolbarCustom
|
|
206
|
+
* type, it stucks in an infinite loop. Custom - Item -> Custom .... go on.
|
|
207
|
+
*
|
|
208
|
+
* This type is restricted with the items that can be used for fallback.
|
|
209
|
+
* Make sure that this type is not a FloatingToolbarCustom type.
|
|
210
|
+
*/
|
|
211
|
+
export type FloatingToolbarFallbackItem<T extends {}> = FloatingToolbarButton<T> | FloatingToolbarCopyButton | FloatingToolbarDropdown<T> | FloatingToolbarSelect<T> | FloatingToolbarInput<T> | FloatingToolbarSeparator;
|
|
212
|
+
export type FloatingToolbarItem<T extends {}> = FloatingToolbarButton<T> | FloatingToolbarCopyButton | FloatingToolbarDropdown<T> | FloatingToolbarSelect<T> | FloatingToolbarInput<T> | FloatingToolbarCustom<T> | FloatingToolbarSeparator | FloatingToolbarExtensionsPlaceholder;
|
|
213
|
+
export interface FloatingToolbarConfig {
|
|
214
|
+
/** Used for the ariaLabel on the <Popup /> component */
|
|
215
|
+
title: string;
|
|
216
|
+
/**
|
|
217
|
+
* Override the DOM reference used to apply as the target for the
|
|
218
|
+
* floating toolbar, if the config matches.
|
|
219
|
+
*
|
|
220
|
+
* By default, it will find the DOM reference of the node from the
|
|
221
|
+
* head of the current selection.
|
|
222
|
+
*/
|
|
223
|
+
getDomRef?: (view: EditorView) => HTMLElement | undefined;
|
|
224
|
+
/** Can prevent the Toolbar from rendering */
|
|
225
|
+
visible?: boolean;
|
|
226
|
+
/**
|
|
227
|
+
* nodeType or list of `nodeType`s this floating toolbar should be shown for.
|
|
228
|
+
**/
|
|
229
|
+
nodeType: NodeType | NodeType[];
|
|
230
|
+
/** Items that will populate the Toolbar.
|
|
231
|
+
*
|
|
232
|
+
* See: `FloatingToolbarItem`
|
|
233
|
+
*/
|
|
234
|
+
items: Array<FloatingToolbarItem<Command>> | ((node: Node) => Array<FloatingToolbarItem<Command>>);
|
|
235
|
+
align?: AlignType;
|
|
236
|
+
/** Class added to Toolbar wrapper */
|
|
237
|
+
className?: string;
|
|
238
|
+
/** Toolbar height */
|
|
239
|
+
height?: number;
|
|
240
|
+
/** Toolbar width */
|
|
241
|
+
width?: number;
|
|
242
|
+
zIndex?: number;
|
|
243
|
+
/** Offset the position of the toolbar. */
|
|
244
|
+
offset?: [
|
|
245
|
+
number,
|
|
246
|
+
number
|
|
247
|
+
];
|
|
248
|
+
/** Absolute offset of the toolbar */
|
|
249
|
+
absoluteOffset?: PositionOffset;
|
|
250
|
+
forcePlacement?: boolean;
|
|
251
|
+
onPositionCalculated?: (editorView: EditorView, nextPos: Position) => Position;
|
|
252
|
+
scrollable?: boolean;
|
|
253
|
+
/**
|
|
254
|
+
* Enable Popup component's focus trap
|
|
255
|
+
*/
|
|
256
|
+
focusTrap?: boolean;
|
|
257
|
+
preventPopupOverflow?: boolean;
|
|
258
|
+
}
|
|
259
|
+
export type FloatingToolbarHandler = (state: EditorState, intl: IntlShape, providerFactory: ProviderFactory) => FloatingToolbarConfig | undefined;
|
|
260
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type GridType = 'full' | 'wrapped';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { LinkPickerProps } from '@atlaskit/link-picker';
|
|
2
|
+
import { INPUT_METHOD } from '../analytics';
|
|
3
|
+
import { CardOptions } from '../card';
|
|
4
|
+
import { EditorAppearance } from './editor-appearance';
|
|
5
|
+
export type LinkInputType = INPUT_METHOD.MANUAL | INPUT_METHOD.TYPEAHEAD;
|
|
6
|
+
/**
|
|
7
|
+
* Configuration for the link picker
|
|
8
|
+
* Extends `LinkPickerProps` to provide future extensibility out-of-the-box
|
|
9
|
+
*/
|
|
10
|
+
export interface LinkPickerOptions extends Partial<LinkPickerProps> {
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Configuration for editor linking behaviours
|
|
14
|
+
*/
|
|
15
|
+
export interface LinkingOptions {
|
|
16
|
+
/**
|
|
17
|
+
* Initial props to configure the link picker component with. Primarily used to provide link search and suggestions capabilities.
|
|
18
|
+
* @see https://atlaskit.atlassian.com/packages/editor/editor-core/example/full-page-with-link-picker
|
|
19
|
+
* @see https://atlaskit.atlassian.com/packages/linking-platform/link-picker
|
|
20
|
+
*/
|
|
21
|
+
linkPicker?: LinkPickerOptions;
|
|
22
|
+
/**
|
|
23
|
+
* Enables and configure smart link behaviour
|
|
24
|
+
*/
|
|
25
|
+
smartLinks?: CardOptions;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Configuration for the Hyperlink plugin
|
|
29
|
+
*/
|
|
30
|
+
export interface HyperlinkPluginOptions {
|
|
31
|
+
cardOptions?: CardOptions;
|
|
32
|
+
linkPicker?: LinkPickerOptions;
|
|
33
|
+
platform?: 'mobile' | 'web';
|
|
34
|
+
editorAppearance?: EditorAppearance;
|
|
35
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type ImageUploadPluginReferenceEventBase = {
|
|
2
|
+
type: 'drop' | 'paste';
|
|
3
|
+
};
|
|
4
|
+
export type ImageUploadPluginReferenceEventDragEvent = ImageUploadPluginReferenceEventBase & {
|
|
5
|
+
dataTransfer?: DataTransfer;
|
|
6
|
+
};
|
|
7
|
+
export type ImageUploadPluginReferenceEventClipboardEvent = ImageUploadPluginReferenceEventBase & {
|
|
8
|
+
clipboardData?: DataTransfer;
|
|
9
|
+
};
|
|
10
|
+
export type ImageUploadPluginReferenceEvent = ImageUploadPluginReferenceEventDragEvent | ImageUploadPluginReferenceEventClipboardEvent;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
export interface Transformer<T> {
|
|
3
|
+
encode(node: Node): T;
|
|
4
|
+
parse(content: T): Node;
|
|
5
|
+
}
|
|
6
|
+
export declare enum SortOrder {
|
|
7
|
+
ASC = "asc",
|
|
8
|
+
DESC = "desc",
|
|
9
|
+
NO_ORDER = "no_order"
|
|
10
|
+
}
|
|
11
|
+
export { AnnotationUpdateEmitter, AnnotationUpdateEvent } from './annotation';
|
|
12
|
+
export type { AnnotationState, AnnotationProviders, AnnotationUpdateEventPayloads, InlineCommentSelectionComponentProps, InlineCommentViewComponentProps, InlineCommentAnnotationProvider, OnAnnotationClickPayload, AnnotationByMatches, AnnotationActionResult, } from './annotation';
|
|
13
|
+
export type { ContextUpdateHandler, EditorActionsOptions, ReplaceRawValue, } from './editor-actions';
|
|
14
|
+
export type { TypeAheadStats, TypeAheadItemRenderProps, TypeAheadInsert, TypeAheadSelectItem, TypeAheadItem, TypeAheadForceSelect, TypeAheadHandler, } from './type-ahead';
|
|
15
|
+
export type { CommandDispatch, Command, HigherOrderCommand, Predicate, } from './command';
|
|
16
|
+
export type { FeatureFlags, FeatureFlagKey, GetEditorFeatureFlags, } from './feature-flags';
|
|
17
|
+
export type { Browsers, Range, DisableSpellcheckByBrowser, } from './supported-browsers';
|
|
18
|
+
export type { EditorContainerWidth, GetEditorContainerWidth, } from './editor-container-width';
|
|
19
|
+
export type { EmptyStateHandler, EmptyStateHandlerParams, } from './empty-state-handler';
|
|
20
|
+
export type { RenderOptionsPropsT, DropdownOptionT, DropdownOptions, SelectOption, ButtonAppearance, Icon, RenderOptionsProps, AlignType, ConfirmDialogChildInfo, ConfirmDialogOptions, ConfirmationDialogProps, FloatingToolbarButton, FloatingToolbarCopyButton, FloatingToolbarInput, FloatingToolbarCustom, FloatingToolbarListPicker, FloatingToolbarColorPicker, FloatingToolbarEmojiPicker, FloatingToolbarDatePicker, FloatingToolbarSelect, FloatingToolbarSeparator, FloatingToolbarDropdown, FloatingToolbarFallbackItem, FloatingToolbarItem, FloatingToolbarConfig, FloatingToolbarHandler, } from './floating-toolbar';
|
|
21
|
+
export type { MarkOptions, NodeOptions } from './copy-button';
|
|
22
|
+
export type { ContextPanelHandler } from './context-panel';
|
|
23
|
+
export type { EditorAppearance } from './editor-appearance';
|
|
24
|
+
export type { ToolbarUiComponentFactoryParams, ToolbarUIComponentFactory, } from './toolbar';
|
|
25
|
+
export { ToolbarSize, ToolbarWidths, ToolbarWidthsFullPage } from './toolbar';
|
|
26
|
+
export type { UiComponentFactoryParams, UIComponentFactory, ReactHookFactory, } from './ui-components';
|
|
27
|
+
export type { EditorReactContext } from './editor-react-context';
|
|
28
|
+
export type { PMPluginFactoryParams, PMPluginFactory, PMPlugin, } from './plugin-factory';
|
|
29
|
+
export type { NodeConfig, MarkConfig, NodeViewConfig, } from './prosemirror-config';
|
|
30
|
+
export type { PluginsOptions, EditorPlugin, getPosHandler, getPosHandlerNode, } from './editor-plugin';
|
|
31
|
+
export type { NextEditorPlugin, AllEditorPresetPluginTypes, PluginDependenciesAPI, ExtractPluginNameFromAllBuilderPlugins, SafePresetCheck, DefaultEditorPlugin, OptionalPlugin, PluginInjectionAPI, CreatePluginDependenciesAPI, NextEditorPluginMetadata, ExtractInjectionAPI, ExtractPluginActions, PluginInjectionAPIWithDependency, PluginInjectionAPIWithDependencies, PublicPluginAPI, NextEditorPluginFunctionOptionalConfigDefinition, } from './next-editor-plugin';
|
|
32
|
+
export type { ExtractPublicEditorAPI } from './editor-public-api';
|
|
33
|
+
export type { EditorCommand, EditorCommandWithMetadata, } from './editor-command';
|
|
34
|
+
export type IconProps = {
|
|
35
|
+
label?: string;
|
|
36
|
+
};
|
|
37
|
+
export type { TTITracking, TransactionTracking, UITracking, CatchAllTracking, NodeViewTracking, BrowserFreezetracking, ProseMirrorRenderedTracking, InputTracking, ContentRetrievalTracking, OnChangeCallbackTracking, OnEditorReadyCallbackTracking, PasteTracking, RenderTracking, PerformanceTracking, } from './performance-tracking';
|
|
38
|
+
export type { GridType } from './grid';
|
|
39
|
+
export type { LinkInputType, LinkPickerOptions, LinkingOptions, HyperlinkPluginOptions, } from './hyperlink';
|
|
40
|
+
export type { SnapPointsProps } from './resizable-media-single';
|
|
41
|
+
export type { BreakoutMode } from './breakout';
|
|
42
|
+
export type { DatasourceModalType } from './datasource';
|
|
43
|
+
export type { ImageUploadPluginReferenceEventBase, ImageUploadPluginReferenceEventDragEvent, ImageUploadPluginReferenceEventClipboardEvent, ImageUploadPluginReferenceEvent, } from './image-upload-reference-event';
|
|
44
|
+
export type { AllowedBlockTypes, HeadingLevels, NormalTextLevel, HeadingLevelsAndNormalText, } from './block-type';
|
|
45
|
+
export type { ColumnResizingPluginState } from './tables';
|
|
46
|
+
export type { InputRuleHandler, OnHandlerApply, InputRuleWrapper, } from './input-rules';
|
|
47
|
+
export type { TOOLBAR_MENU_TYPE } from './insert-block';
|
|
48
|
+
export type { TextFormattingOptions, TextFormattingState, InputMethodToolbar, InputMethodBasic, } from './text-formatting';
|
|
49
|
+
export type { LayoutPluginOptions } from './layout';
|
|
50
|
+
export type { LongPressSelectionPluginOptions } from './selection';
|
|
51
|
+
export type { QuickInsertPluginState, QuickInsertPluginStateKeys, QuickInsertOptions, QuickInsertPluginOptions, QuickInsertSearchOptions, QuickInsertSharedState, QuickInsertHandler, } from './quick-insert';
|
|
52
|
+
export type { Refs, RefsNode, DocBuilder } from './doc-builder';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
export type InputRuleHandler = (state: EditorState, matchResult: RegExpExecArray, start: number, end: number) => Transaction | null;
|
|
3
|
+
export type OnHandlerApply = (state: EditorState, tr: Transaction, matchResult: RegExpExecArray) => void;
|
|
4
|
+
export interface InputRuleWrapper {
|
|
5
|
+
match: RegExp;
|
|
6
|
+
handler: InputRuleHandler;
|
|
7
|
+
onHandlerApply?: OnHandlerApply;
|
|
8
|
+
}
|