@atlaskit/editor-common 76.9.1 → 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 +6 -0
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +2 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +5 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/element-browser/components/ElementList/ElementList.js +2 -2
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -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 @@
|
|
|
1
|
+
export { fundamentalsTestCollection, blueLinksTestCollection, inlineSmartLinksTestCollection, blockSmartLinksTestCollection, embedSmartLinksTestCollection, EditorPageObject, } from './__tests_external__';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { Fragment, Node } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
export type InsertableContent = Node | Fragment;
|
|
5
|
+
export declare enum LookDirection {
|
|
6
|
+
Before = "before",
|
|
7
|
+
After = "after"
|
|
8
|
+
}
|
|
9
|
+
export declare const normaliseNestedLayout: ({ selection, doc }: EditorState | Transaction, node: Node) => Node;
|
|
10
|
+
export declare const safeInsert: (content: InsertableContent, position?: number) => (tr: Transaction) => Transaction | null;
|
|
11
|
+
/**
|
|
12
|
+
* Method extracted from typeahead plugin to be shared with the element browser on handling element insertion.
|
|
13
|
+
*/
|
|
14
|
+
export declare const insertSelectedItem: (maybeNode?: Node | Object | string | Fragment, opts?: {
|
|
15
|
+
selectInlineNode?: boolean;
|
|
16
|
+
}) => (state: EditorState, tr: Transaction, start: number) => Transaction;
|
|
17
|
+
/**
|
|
18
|
+
* ED-14584: Util to check if the destination node is a paragraph & the
|
|
19
|
+
* content being inserted is a valid child of the grandparent node.
|
|
20
|
+
* In this case, the destination node should split
|
|
21
|
+
*/
|
|
22
|
+
export declare const shouldSplitSelectedNodeOnNodeInsertion: ({ parentNodeType, grandParentNodeType, content, }: {
|
|
23
|
+
parentNodeType: NodeType;
|
|
24
|
+
grandParentNodeType: NodeType;
|
|
25
|
+
content: Node;
|
|
26
|
+
}) => boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const LEFT = 37;
|
|
2
|
+
export declare const RIGHT = 39;
|
|
3
|
+
export declare const UP = 38;
|
|
4
|
+
export declare const DOWN = 40;
|
|
5
|
+
export declare const KEY_0 = 48;
|
|
6
|
+
export declare const KEY_1 = 49;
|
|
7
|
+
export declare const KEY_2 = 50;
|
|
8
|
+
export declare const KEY_3 = 51;
|
|
9
|
+
export declare const KEY_4 = 52;
|
|
10
|
+
export declare const KEY_5 = 53;
|
|
11
|
+
export declare const KEY_6 = 54;
|
|
12
|
+
export declare const HEADING_KEYS: number[];
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
import type { Command } from '../types/command';
|
|
5
|
+
import type { EditorCommand } from '../types/editor-command';
|
|
6
|
+
export declare const addAltText: Keymap;
|
|
7
|
+
export declare const navToEditorToolbar: Keymap;
|
|
8
|
+
export declare const navToFloatingToolbar: Keymap;
|
|
9
|
+
export declare const toggleBold: Keymap;
|
|
10
|
+
export declare const toggleItalic: Keymap;
|
|
11
|
+
export declare const toggleUnderline: Keymap;
|
|
12
|
+
export declare const toggleStrikethrough: Keymap;
|
|
13
|
+
export declare const toggleSubscript: Keymap;
|
|
14
|
+
export declare const toggleSuperscript: Keymap;
|
|
15
|
+
export declare const toggleCode: Keymap;
|
|
16
|
+
export declare const pastePlainText: Keymap;
|
|
17
|
+
export declare const clearFormatting: Keymap;
|
|
18
|
+
export declare const setNormalText: Keymap;
|
|
19
|
+
export declare const toggleHeading1: Keymap;
|
|
20
|
+
export declare const toggleHeading2: Keymap;
|
|
21
|
+
export declare const toggleHeading3: Keymap;
|
|
22
|
+
export declare const toggleHeading4: Keymap;
|
|
23
|
+
export declare const toggleHeading5: Keymap;
|
|
24
|
+
export declare const toggleHeading6: Keymap;
|
|
25
|
+
export declare const toggleOrderedList: Keymap;
|
|
26
|
+
export declare const ctrlBackSpace: Keymap;
|
|
27
|
+
export declare const toggleBulletList: Keymap;
|
|
28
|
+
export declare const toggleBlockQuote: Keymap;
|
|
29
|
+
export declare const insertNewLine: Keymap;
|
|
30
|
+
export declare const shiftBackspace: Keymap;
|
|
31
|
+
export declare const splitCodeBlock: Keymap;
|
|
32
|
+
export declare const splitListItem: Keymap;
|
|
33
|
+
export declare const insertRule: Keymap;
|
|
34
|
+
export declare const undo: Keymap;
|
|
35
|
+
export declare const moveUp: Keymap;
|
|
36
|
+
export declare const moveDown: Keymap;
|
|
37
|
+
export declare const moveLeft: Keymap;
|
|
38
|
+
export declare const moveRight: Keymap;
|
|
39
|
+
export declare const indentList: Keymap;
|
|
40
|
+
export declare const outdentList: Keymap;
|
|
41
|
+
export declare const redo: Keymap;
|
|
42
|
+
export declare const openHelp: Keymap;
|
|
43
|
+
export declare const addLink: Keymap;
|
|
44
|
+
export declare const addInlineComment: Keymap;
|
|
45
|
+
export declare const submit: Keymap;
|
|
46
|
+
export declare const enter: Keymap;
|
|
47
|
+
export declare const shiftEnter: Keymap;
|
|
48
|
+
export declare const tab: Keymap;
|
|
49
|
+
export declare const indent: Keymap;
|
|
50
|
+
export declare const outdent: Keymap;
|
|
51
|
+
export declare const backspace: Keymap;
|
|
52
|
+
export declare const deleteKey: Keymap;
|
|
53
|
+
export declare const forwardDelete: Keymap;
|
|
54
|
+
export declare const space: Keymap;
|
|
55
|
+
export declare const escape: Keymap;
|
|
56
|
+
export declare const nextCell: Keymap;
|
|
57
|
+
export declare const previousCell: Keymap;
|
|
58
|
+
export declare const shiftTab: Keymap;
|
|
59
|
+
export declare const toggleTable: Keymap;
|
|
60
|
+
export declare const addRowBefore: Keymap;
|
|
61
|
+
export declare const addRowAfter: Keymap;
|
|
62
|
+
export declare const addColumnAfter: Keymap;
|
|
63
|
+
export declare const addColumnBefore: Keymap;
|
|
64
|
+
export declare const cut: Keymap;
|
|
65
|
+
export declare const copy: Keymap;
|
|
66
|
+
export declare const paste: Keymap;
|
|
67
|
+
export declare const altPaste: Keymap;
|
|
68
|
+
export declare const find: Keymap;
|
|
69
|
+
export declare const alignLeft: Keymap;
|
|
70
|
+
export declare const toggleTaskItemCheckbox: Keymap;
|
|
71
|
+
export declare function tooltip(keymap?: Keymap, description?: string): string | undefined;
|
|
72
|
+
export declare const ToolTipContent: React.MemoExoticComponent<({ description, shortcutOverride, keymap, }: {
|
|
73
|
+
description?: string | React.ReactNode;
|
|
74
|
+
keymap?: Keymap | undefined;
|
|
75
|
+
shortcutOverride?: string | undefined;
|
|
76
|
+
}) => jsx.JSX.Element | null>;
|
|
77
|
+
export declare function findKeymapByDescription(description: string): Keymap | undefined;
|
|
78
|
+
export declare function findShortcutByDescription(description: string): string | undefined;
|
|
79
|
+
export declare function findShortcutByKeymap(keymap: Keymap): string | undefined;
|
|
80
|
+
export declare function getAriaKeyshortcuts(keymap: Keymap | string | undefined): string | undefined;
|
|
81
|
+
export declare function makeKeymap(description: string, windows: string, mac: string, common?: string): Keymap;
|
|
82
|
+
export declare function makeKeyMapWithCommon(description: string, common: string): Keymap;
|
|
83
|
+
export interface Keymap {
|
|
84
|
+
description: string;
|
|
85
|
+
windows: string;
|
|
86
|
+
mac: string;
|
|
87
|
+
common?: string;
|
|
88
|
+
}
|
|
89
|
+
export declare function bindKeymapWithCommand(shortcut: string, cmd: Command, keymap: {
|
|
90
|
+
[key: string]: Command;
|
|
91
|
+
}): void;
|
|
92
|
+
export declare function bindKeymapWithEditorCommand(shortcut: string, cmd: EditorCommand, keymap: {
|
|
93
|
+
[key: string]: Command;
|
|
94
|
+
}): void;
|
|
95
|
+
export declare function findKeyMapForBrowser(keyMap: Keymap): string | undefined;
|
|
96
|
+
export { DOWN, HEADING_KEYS, KEY_0, KEY_1, KEY_2, KEY_3, KEY_4, KEY_5, KEY_6, LEFT, RIGHT, UP, } from './consts';
|
|
97
|
+
export { keymap } from './keymap';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SafePlugin } from '../safe-plugin';
|
|
2
|
+
/**
|
|
3
|
+
* A workaround for mostly Cyrillic but should have a positive affect
|
|
4
|
+
* on other languages / layouts. Attempts a similar approach to OS X.
|
|
5
|
+
* @see ED-7310
|
|
6
|
+
* @see https://github.com/ProseMirror/prosemirror/issues/957
|
|
7
|
+
* @param bindings
|
|
8
|
+
*/
|
|
9
|
+
export declare function keymap(bindings: {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}): SafePlugin<any>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
+
import { LinkPickerProps } from '@atlaskit/link-picker';
|
|
4
|
+
import type { Command, EditorAppearance } from '../../../types';
|
|
5
|
+
/**
|
|
6
|
+
* Returns a type that matches T but where keys (K) are now optional
|
|
7
|
+
*/
|
|
8
|
+
type OptionalKeys<T extends {}, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
9
|
+
export interface EditorLinkPickerProps extends OptionalKeys<LinkPickerProps, 'onCancel'> {
|
|
10
|
+
view: EditorView;
|
|
11
|
+
/**
|
|
12
|
+
* Used for analytics purposes to describe how the link picker was invoked
|
|
13
|
+
* Should be roughly equivalent to the `inputMethod` analytics value
|
|
14
|
+
*/
|
|
15
|
+
invokeMethod?: string;
|
|
16
|
+
editorAppearance?: EditorAppearance;
|
|
17
|
+
/** Callback to execute on unmount */
|
|
18
|
+
onClose?: () => void;
|
|
19
|
+
onEscapeCallback?: Command;
|
|
20
|
+
onClickAwayCallback?: Command;
|
|
21
|
+
}
|
|
22
|
+
export declare const EditorLinkPicker: ({ view, onCancel, invokeMethod, editorAppearance, onClose, onEscapeCallback, onClickAwayCallback, ...restProps }: EditorLinkPickerProps) => JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import React, { PureComponent } from 'react';
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import type { ActivityProvider } from '@atlaskit/activity-provider';
|
|
5
|
+
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
6
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
+
import type { HyperlinkState } from '../../../link';
|
|
8
|
+
import type { SearchProvider } from '../../../provider-factory';
|
|
9
|
+
import type { Command, LinkInputType } from '../../../types';
|
|
10
|
+
import type { LinkSearchListItemData } from '../../LinkSearch/types';
|
|
11
|
+
/**
|
|
12
|
+
* Visible only to screenreaders. Use when there is a need
|
|
13
|
+
* to provide more context to a non-sighted user.
|
|
14
|
+
*/
|
|
15
|
+
export declare const visuallyHiddenStyles: import("@emotion/react").SerializedStyles;
|
|
16
|
+
export declare const RECENT_SEARCH_LIST_SIZE = 5;
|
|
17
|
+
export declare const messages: {
|
|
18
|
+
displayText: {
|
|
19
|
+
id: string;
|
|
20
|
+
defaultMessage: string;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
clearText: {
|
|
24
|
+
id: string;
|
|
25
|
+
defaultMessage: string;
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
clearLink: {
|
|
29
|
+
id: string;
|
|
30
|
+
defaultMessage: string;
|
|
31
|
+
description: string;
|
|
32
|
+
};
|
|
33
|
+
searchLinkAriaDescription: {
|
|
34
|
+
id: string;
|
|
35
|
+
defaultMessage: string;
|
|
36
|
+
description: string;
|
|
37
|
+
};
|
|
38
|
+
searchLinkResults: {
|
|
39
|
+
id: string;
|
|
40
|
+
defaultMessage: string;
|
|
41
|
+
description: string;
|
|
42
|
+
};
|
|
43
|
+
linkVisibleLabel: {
|
|
44
|
+
id: string;
|
|
45
|
+
defaultMessage: string;
|
|
46
|
+
description: string;
|
|
47
|
+
};
|
|
48
|
+
textVisibleLabel: {
|
|
49
|
+
id: string;
|
|
50
|
+
defaultMessage: string;
|
|
51
|
+
description: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
interface BaseProps {
|
|
55
|
+
onSubmit?: (href: string, title: string | undefined, displayText: string | undefined, inputMethod: LinkInputType) => void;
|
|
56
|
+
popupsMountPoint?: HTMLElement;
|
|
57
|
+
popupsBoundariesElement?: HTMLElement;
|
|
58
|
+
autoFocus?: boolean;
|
|
59
|
+
activityProvider?: Promise<ActivityProvider>;
|
|
60
|
+
searchProvider?: Promise<SearchProvider>;
|
|
61
|
+
displayUrl?: string;
|
|
62
|
+
pluginState: HyperlinkState;
|
|
63
|
+
view: EditorView;
|
|
64
|
+
onEscapeCallback?: Command;
|
|
65
|
+
onClickAwayCallback?: Command;
|
|
66
|
+
}
|
|
67
|
+
interface DefaultProps {
|
|
68
|
+
displayText: string;
|
|
69
|
+
}
|
|
70
|
+
export type Props = WrappedComponentProps & BaseProps & DefaultProps & WithAnalyticsEventsProps;
|
|
71
|
+
type HyperlinkLinkAddToolbarProps = WrappedComponentProps & BaseProps & Partial<DefaultProps> & WithAnalyticsEventsProps;
|
|
72
|
+
export interface State {
|
|
73
|
+
activityProvider?: ActivityProvider;
|
|
74
|
+
searchProvider?: SearchProvider;
|
|
75
|
+
items: LinkSearchListItemData[];
|
|
76
|
+
selectedIndex: number;
|
|
77
|
+
displayUrl: string;
|
|
78
|
+
isLoading: boolean;
|
|
79
|
+
displayText: string;
|
|
80
|
+
}
|
|
81
|
+
export declare class HyperlinkLinkAddToolbar extends PureComponent<Props, State> {
|
|
82
|
+
private submitted;
|
|
83
|
+
private urlInputContainer;
|
|
84
|
+
private displayTextInputContainer;
|
|
85
|
+
private wrapperRef;
|
|
86
|
+
private handleClearText;
|
|
87
|
+
private handleClearDisplayText;
|
|
88
|
+
private debouncedQuickSearch;
|
|
89
|
+
private fireCustomAnalytics?;
|
|
90
|
+
private quickSearchQueryVersion;
|
|
91
|
+
private analyticSource;
|
|
92
|
+
constructor(props: Props);
|
|
93
|
+
componentDidMount(): Promise<void>;
|
|
94
|
+
componentWillUnmount(): void;
|
|
95
|
+
private getRecentItems;
|
|
96
|
+
private fireAnalytics;
|
|
97
|
+
private loadInitialLinkSearchResult;
|
|
98
|
+
private quickSearch;
|
|
99
|
+
private updateInput;
|
|
100
|
+
private createClearHandler;
|
|
101
|
+
private handleClickOutside;
|
|
102
|
+
private getScreenReaderText;
|
|
103
|
+
render(): jsx.JSX.Element;
|
|
104
|
+
private isUrlPopulatedWithSelectedItem;
|
|
105
|
+
private handleSelected;
|
|
106
|
+
private handleInsert;
|
|
107
|
+
private handleMouseEnterResultItem;
|
|
108
|
+
private handleMouseLeaveResultItem;
|
|
109
|
+
private handleSubmit;
|
|
110
|
+
private handleClearTextKeyDown;
|
|
111
|
+
private handleKeyDown;
|
|
112
|
+
private updateTextInput;
|
|
113
|
+
private handleCancel;
|
|
114
|
+
}
|
|
115
|
+
export declare const HyperlinkLinkAddToolbarWithIntl: React.FC<import("react-intl-next").WithIntlProps<HyperlinkLinkAddToolbarProps>> & {
|
|
116
|
+
WrappedComponent: React.ComponentType<HyperlinkLinkAddToolbarProps>;
|
|
117
|
+
};
|
|
118
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<HyperlinkLinkAddToolbarProps>>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
119
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
+
import type { HyperlinkState } from '../../../link';
|
|
5
|
+
import { ProviderFactory } from '../../../provider-factory';
|
|
6
|
+
import type { Command, FeatureFlags, LinkInputType, LinkPickerOptions } from '../../../types';
|
|
7
|
+
import { EditorLinkPickerProps } from '../EditorLinkPicker';
|
|
8
|
+
export interface HyperlinkAddToolbarProps extends Pick<EditorLinkPickerProps, 'onCancel' | 'invokeMethod' | 'onClose'> {
|
|
9
|
+
view: EditorView;
|
|
10
|
+
providerFactory: ProviderFactory;
|
|
11
|
+
onSubmit: (href: string, title: string | undefined, displayText: string | undefined, inputMethod: LinkInputType, analytic?: UIAnalyticsEvent | null | undefined) => void;
|
|
12
|
+
featureFlags: FeatureFlags;
|
|
13
|
+
linkPickerOptions?: LinkPickerOptions;
|
|
14
|
+
displayText?: string;
|
|
15
|
+
displayUrl?: string;
|
|
16
|
+
onEscapeCallback?: Command;
|
|
17
|
+
onClickAwayCallback?: Command;
|
|
18
|
+
}
|
|
19
|
+
export declare function HyperlinkAddToolbar({ linkPickerOptions, onSubmit, displayText, displayUrl, providerFactory, view, onCancel, invokeMethod, featureFlags, onClose, onEscapeCallback, onClickAwayCallback, hyperlinkPluginState, }: HyperlinkAddToolbarProps & {
|
|
20
|
+
hyperlinkPluginState: HyperlinkState | undefined;
|
|
21
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const utilMessages: {
|
|
2
|
+
hyperlinkIconIssueLabel: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
hyperlinkIconBugLabel: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
hyperlinkIconStoryLabel: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
hyperlinkIconTaskLabel: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
hyperlinkIconPageLabel: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
hyperlinkIconBlogLabel: {
|
|
28
|
+
id: string;
|
|
29
|
+
defaultMessage: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { LinkContentType } from '../../../provider-factory';
|
|
3
|
+
export declare function filterUniqueItems<T>(arr: Array<T>, comparator?: (firstItem: T, secondItem: T) => boolean): Array<T>;
|
|
4
|
+
export declare const mapContentTypeToIcon: {
|
|
5
|
+
[key in LinkContentType]?: React.ReactElement;
|
|
6
|
+
};
|
|
7
|
+
export declare const sha1: (input: string) => string;
|
|
8
|
+
export declare const wordCount: (input: string) => number;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { PureComponent } from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
import type { LinkSearchListItemData } from './types';
|
|
5
|
+
export declare const linkSearchList: import("@emotion/react").SerializedStyles;
|
|
6
|
+
export interface Props {
|
|
7
|
+
items?: LinkSearchListItemData[];
|
|
8
|
+
isLoading: boolean;
|
|
9
|
+
selectedIndex: number;
|
|
10
|
+
onSelect: (href: string, text: string) => void;
|
|
11
|
+
onMouseMove?: (objectId: string) => void;
|
|
12
|
+
onMouseEnter?: (objectId: string) => void;
|
|
13
|
+
onMouseLeave?: (objectId: string) => void;
|
|
14
|
+
ariaControls?: string;
|
|
15
|
+
role?: string;
|
|
16
|
+
id?: string;
|
|
17
|
+
}
|
|
18
|
+
export default class LinkSearchList extends PureComponent<Props, {}> {
|
|
19
|
+
render(): jsx.JSX.Element;
|
|
20
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import { LinkSearchListItemData } from './types';
|
|
5
|
+
export declare const container: import("@emotion/react").SerializedStyles;
|
|
6
|
+
export declare const containerSelected: import("@emotion/react").SerializedStyles;
|
|
7
|
+
export declare const nameStyle: import("@emotion/react").SerializedStyles;
|
|
8
|
+
export declare const containerName: import("@emotion/react").SerializedStyles;
|
|
9
|
+
export interface Props {
|
|
10
|
+
item: LinkSearchListItemData;
|
|
11
|
+
selected: boolean;
|
|
12
|
+
onSelect: (href: string, text: string) => void;
|
|
13
|
+
onMouseMove?: (objectId: string) => void;
|
|
14
|
+
onMouseEnter?: (objectId: string) => void;
|
|
15
|
+
onMouseLeave?: (objectId: string) => void;
|
|
16
|
+
id?: string;
|
|
17
|
+
role?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
20
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RecentSearchProps } from './types';
|
|
3
|
+
import { WithActivityProviderProps } from './withActivityProvider';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
new (props: (import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps) | Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>): {
|
|
6
|
+
renderNode: (providers: import("../../provider-factory").Providers) => JSX.Element;
|
|
7
|
+
render(): JSX.Element;
|
|
8
|
+
context: any;
|
|
9
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
10
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
11
|
+
readonly props: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps> & Readonly<{
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}>;
|
|
14
|
+
state: Readonly<{}>;
|
|
15
|
+
refs: {
|
|
16
|
+
[key: string]: React.ReactInstance;
|
|
17
|
+
};
|
|
18
|
+
componentDidMount?(): void;
|
|
19
|
+
shouldComponentUpdate?(nextProps: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
20
|
+
componentWillUnmount?(): void;
|
|
21
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
22
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, prevState: Readonly<{}>): any;
|
|
23
|
+
componentDidUpdate?(prevProps: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
24
|
+
componentWillMount?(): void;
|
|
25
|
+
UNSAFE_componentWillMount?(): void;
|
|
26
|
+
componentWillReceiveProps?(nextProps: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextContext: any): void;
|
|
27
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextContext: any): void;
|
|
28
|
+
componentWillUpdate?(nextProps: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
29
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
30
|
+
};
|
|
31
|
+
new (props: import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps, context: any): {
|
|
32
|
+
renderNode: (providers: import("../../provider-factory").Providers) => JSX.Element;
|
|
33
|
+
render(): JSX.Element;
|
|
34
|
+
context: any;
|
|
35
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
36
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
37
|
+
readonly props: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps> & Readonly<{
|
|
38
|
+
children?: React.ReactNode;
|
|
39
|
+
}>;
|
|
40
|
+
state: Readonly<{}>;
|
|
41
|
+
refs: {
|
|
42
|
+
[key: string]: React.ReactInstance;
|
|
43
|
+
};
|
|
44
|
+
componentDidMount?(): void;
|
|
45
|
+
shouldComponentUpdate?(nextProps: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
46
|
+
componentWillUnmount?(): void;
|
|
47
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
48
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, prevState: Readonly<{}>): any;
|
|
49
|
+
componentDidUpdate?(prevProps: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
50
|
+
componentWillMount?(): void;
|
|
51
|
+
UNSAFE_componentWillMount?(): void;
|
|
52
|
+
componentWillReceiveProps?(nextProps: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextContext: any): void;
|
|
53
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextContext: any): void;
|
|
54
|
+
componentWillUpdate?(nextProps: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
55
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
56
|
+
};
|
|
57
|
+
contextType?: React.Context<any> | undefined;
|
|
58
|
+
};
|
|
59
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IntlShape } from 'react-intl-next';
|
|
2
|
+
export declare const transformTimeStamp: (intl: IntlShape, lastViewedDate?: Date, lastUpdatedDate?: Date) => {
|
|
3
|
+
pageAction: string;
|
|
4
|
+
dateString: string;
|
|
5
|
+
timeSince?: undefined;
|
|
6
|
+
} | {
|
|
7
|
+
pageAction: string;
|
|
8
|
+
dateString: string;
|
|
9
|
+
timeSince: string;
|
|
10
|
+
} | undefined;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { KeyboardEvent } from 'react';
|
|
2
|
+
import { ActivityItem, ActivityProvider } from '@atlaskit/activity-provider';
|
|
3
|
+
import { INPUT_METHOD } from '../../analytics';
|
|
4
|
+
export type RecentSearchInputTypes = INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.MANUAL;
|
|
5
|
+
export interface ChildProps {
|
|
6
|
+
activityProvider: ActivityProvider | null;
|
|
7
|
+
inputProps: {
|
|
8
|
+
onChange(input: string): void;
|
|
9
|
+
onKeyDown(event: KeyboardEvent<any>): void;
|
|
10
|
+
onSubmit(): void;
|
|
11
|
+
value: string;
|
|
12
|
+
};
|
|
13
|
+
currentInputMethod?: RecentSearchInputTypes;
|
|
14
|
+
clearValue(): void;
|
|
15
|
+
renderRecentList(): React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export interface RecentSearchSubmitOptions {
|
|
18
|
+
text: string;
|
|
19
|
+
url: string;
|
|
20
|
+
inputMethod: RecentSearchInputTypes;
|
|
21
|
+
}
|
|
22
|
+
export interface RecentSearchProps {
|
|
23
|
+
defaultUrl?: string;
|
|
24
|
+
onSubmit(options: RecentSearchSubmitOptions): void;
|
|
25
|
+
onBlur(options: RecentSearchSubmitOptions): void;
|
|
26
|
+
render(state: ChildProps): React.ReactNode;
|
|
27
|
+
limit?: number;
|
|
28
|
+
}
|
|
29
|
+
export interface RecentSearchState {
|
|
30
|
+
items: Array<ActivityItem>;
|
|
31
|
+
selectedIndex: number;
|
|
32
|
+
isLoading: boolean;
|
|
33
|
+
url: string;
|
|
34
|
+
}
|
|
35
|
+
export type LinkSearchListItemData = {
|
|
36
|
+
objectId: string;
|
|
37
|
+
name: string;
|
|
38
|
+
container: string;
|
|
39
|
+
url: string;
|
|
40
|
+
iconUrl?: string | never;
|
|
41
|
+
icon?: React.ReactChild | never;
|
|
42
|
+
lastViewedDate?: Date;
|
|
43
|
+
lastUpdatedDate?: Date;
|
|
44
|
+
prefetch?: boolean;
|
|
45
|
+
} & ({
|
|
46
|
+
iconUrl: string;
|
|
47
|
+
} | {
|
|
48
|
+
icon: React.ReactChild;
|
|
49
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ActivityProvider } from '@atlaskit/activity-provider';
|
|
3
|
+
import { ProviderFactory } from '../../provider-factory';
|
|
4
|
+
import type { Providers } from '../../provider-factory';
|
|
5
|
+
import type { Diff } from '../../utils';
|
|
6
|
+
export interface ExpandedActivityProviderProps {
|
|
7
|
+
providerFactory: ProviderFactory;
|
|
8
|
+
}
|
|
9
|
+
export interface WithActivityProviderProps {
|
|
10
|
+
activityProvider: ActivityProvider;
|
|
11
|
+
}
|
|
12
|
+
export default function withActivityProvider<Props>(WrappedComponent: React.ComponentType<Props & WithActivityProviderProps>): {
|
|
13
|
+
new (props: (Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps) | Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>): {
|
|
14
|
+
renderNode: (providers: Providers) => JSX.Element;
|
|
15
|
+
render(): JSX.Element;
|
|
16
|
+
context: any;
|
|
17
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
18
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
19
|
+
readonly props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps> & Readonly<{
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
}>;
|
|
22
|
+
state: Readonly<{}>;
|
|
23
|
+
refs: {
|
|
24
|
+
[key: string]: React.ReactInstance;
|
|
25
|
+
};
|
|
26
|
+
componentDidMount?(): void;
|
|
27
|
+
shouldComponentUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
28
|
+
componentWillUnmount?(): void;
|
|
29
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
30
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>): any;
|
|
31
|
+
componentDidUpdate?(prevProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
32
|
+
componentWillMount?(): void;
|
|
33
|
+
UNSAFE_componentWillMount?(): void;
|
|
34
|
+
componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any): void;
|
|
35
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any): void;
|
|
36
|
+
componentWillUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
37
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
38
|
+
};
|
|
39
|
+
new (props: Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps, context: any): {
|
|
40
|
+
renderNode: (providers: Providers) => JSX.Element;
|
|
41
|
+
render(): JSX.Element;
|
|
42
|
+
context: any;
|
|
43
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
44
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
45
|
+
readonly props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps> & Readonly<{
|
|
46
|
+
children?: React.ReactNode;
|
|
47
|
+
}>;
|
|
48
|
+
state: Readonly<{}>;
|
|
49
|
+
refs: {
|
|
50
|
+
[key: string]: React.ReactInstance;
|
|
51
|
+
};
|
|
52
|
+
componentDidMount?(): void;
|
|
53
|
+
shouldComponentUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
54
|
+
componentWillUnmount?(): void;
|
|
55
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
56
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>): any;
|
|
57
|
+
componentDidUpdate?(prevProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
58
|
+
componentWillMount?(): void;
|
|
59
|
+
UNSAFE_componentWillMount?(): void;
|
|
60
|
+
componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any): void;
|
|
61
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any): void;
|
|
62
|
+
componentWillUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
63
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
64
|
+
};
|
|
65
|
+
contextType?: React.Context<any> | undefined;
|
|
66
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { transformTimeStamp } from './LinkSearch/transformTimeStamp';
|
|
2
|
+
export type { LinkSearchListItemData, ChildProps, RecentSearchInputTypes, RecentSearchSubmitOptions, } from './LinkSearch/types';
|
|
3
|
+
export { container, containerWithProvider, inputWrapper, } from './LinkSearch/ToolbarComponents';
|
|
4
|
+
export { default as LinkSearchListItem } from './LinkSearch/LinkSearchListItem';
|
|
5
|
+
export { default as LinkSearchList } from './LinkSearch/LinkSearchList';
|
|
6
|
+
export { default as RecentSearch } from './LinkSearch';
|
|
7
|
+
export type { InsertState, EditInsertedState, EditState, LinkToolbarState, HyperlinkState, } from './types';
|
|
8
|
+
export { InsertStatus, LinkAction } from './types';
|
|
9
|
+
export { EditorLinkPicker } from './LinkPicker/EditorLinkPicker';
|
|
10
|
+
export type { EditorLinkPickerProps } from './LinkPicker/EditorLinkPicker';
|
|
11
|
+
export { HyperlinkAddToolbar } from './LinkPicker/HyperlinkAddToolbar';
|
|
12
|
+
export { default as HyperlinkLinkAddToolbar, HyperlinkLinkAddToolbarWithIntl, RECENT_SEARCH_LIST_SIZE, } from './LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar';
|
|
13
|
+
export type { Props as HyperlinkLinkAddToolbarProps } from './LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar';
|
|
14
|
+
export type { HyperlinkAddToolbarProps } from './LinkPicker/HyperlinkAddToolbar';
|
|
15
|
+
export { sha1 } from './LinkPicker/HyperlinkAddToolbar/utils';
|
|
16
|
+
export { isLinkAtPos, isTextAtPos } from './utils';
|