@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,56 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import type { Decoration, DecorationSource, EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
+
import type { EventDispatcher } from '../event-dispatcher';
|
|
5
|
+
import type { PortalProviderAPI } from '../ui/PortalProvider';
|
|
6
|
+
import type { ForwardRef, getPosHandler, ProsemirrorGetPosHandler, ReactComponentProps, shouldUpdate } from './types';
|
|
7
|
+
export type { getPosHandler, ReactComponentProps, shouldUpdate, ProsemirrorGetPosHandler, ForwardRef, };
|
|
8
|
+
export type { InlineNodeViewComponentProps } from './getInlineNodeViewProducer';
|
|
9
|
+
export { getInlineNodeViewProducer, inlineNodeViewClassname, } from './getInlineNodeViewProducer';
|
|
10
|
+
export default class ReactNodeView<P = ReactComponentProps> implements NodeView {
|
|
11
|
+
private domRef?;
|
|
12
|
+
private contentDOMWrapper?;
|
|
13
|
+
private reactComponent?;
|
|
14
|
+
private portalProviderAPI;
|
|
15
|
+
private hasAnalyticsContext;
|
|
16
|
+
private _viewShouldUpdate?;
|
|
17
|
+
protected eventDispatcher?: EventDispatcher;
|
|
18
|
+
private hasIntlContext;
|
|
19
|
+
protected decorations: ReadonlyArray<Decoration>;
|
|
20
|
+
reactComponentProps: P;
|
|
21
|
+
view: EditorView;
|
|
22
|
+
getPos: getPosHandler;
|
|
23
|
+
contentDOM: HTMLElement | null | undefined;
|
|
24
|
+
node: PMNode;
|
|
25
|
+
constructor(node: PMNode, view: EditorView, getPos: getPosHandler, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, reactComponentProps?: P, reactComponent?: React.ComponentType<any>, hasAnalyticsContext?: boolean, viewShouldUpdate?: shouldUpdate, hasIntlContext?: boolean);
|
|
26
|
+
/**
|
|
27
|
+
* This method exists to move initialization logic out of the constructor,
|
|
28
|
+
* so object can be initialized properly before calling render first time.
|
|
29
|
+
*
|
|
30
|
+
* Example:
|
|
31
|
+
* Instance properties get added to an object only after super call in
|
|
32
|
+
* constructor, which leads to some methods being undefined during the
|
|
33
|
+
* first render.
|
|
34
|
+
*/
|
|
35
|
+
init(): this;
|
|
36
|
+
private renderReactComponent;
|
|
37
|
+
createDomRef(): HTMLElement;
|
|
38
|
+
getContentDOM(): {
|
|
39
|
+
dom: HTMLElement;
|
|
40
|
+
contentDOM?: HTMLElement | null | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
handleRef: (node: HTMLElement | null) => void;
|
|
43
|
+
private _handleRef;
|
|
44
|
+
render(props: P, forwardRef?: ForwardRef): React.ReactElement<any> | null;
|
|
45
|
+
update(node: PMNode, decorations: ReadonlyArray<Decoration>, _innerDecorations?: DecorationSource, validUpdate?: (currentNode: PMNode, newNode: PMNode) => boolean): boolean;
|
|
46
|
+
viewShouldUpdate(nextNode: PMNode, decorations?: Array<Decoration>): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Copies the attributes from a ProseMirror Node to a DOM node.
|
|
49
|
+
* @param node The Prosemirror Node from which to source the attributes
|
|
50
|
+
*/
|
|
51
|
+
setDomAttrs(node: PMNode, element: HTMLElement): void;
|
|
52
|
+
get dom(): HTMLElement;
|
|
53
|
+
destroy(): void;
|
|
54
|
+
private dispatchAnalyticsEvent;
|
|
55
|
+
static fromComponent(component: React.ComponentType<any>, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, props?: ReactComponentProps, viewShouldUpdate?: (nextNode: PMNode) => boolean, hasIntlContext?: boolean): (node: PMNode, view: EditorView, getPos: getPosHandler) => ReactNodeView<ReactComponentProps>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
export interface ReactNodeProps {
|
|
3
|
+
selected: boolean;
|
|
4
|
+
}
|
|
5
|
+
export type ProsemirrorGetPosHandler = () => number;
|
|
6
|
+
export type getPosHandler = getPosHandlerNode | boolean;
|
|
7
|
+
export type getPosHandlerNode = () => number | undefined;
|
|
8
|
+
export type ReactComponentProps = {
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
};
|
|
11
|
+
export type ForwardRef = (node: HTMLElement | null) => void;
|
|
12
|
+
export type shouldUpdate = (nextNode: PMNode) => boolean;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { CSSProperties, PropsWithChildren } from 'react';
|
|
2
|
+
import type { TooltipProps } from '@atlaskit/tooltip';
|
|
3
|
+
import type { EnabledHandles, HandleAlignmentMethod, HandleHighlight, HandlePositioning, HandleResize, HandleResizeStart, HandleSize, HandleStyles, ResizerAppearance, Snap } from './types';
|
|
4
|
+
export type ResizerProps = {
|
|
5
|
+
className?: string;
|
|
6
|
+
enable: EnabledHandles;
|
|
7
|
+
width: number;
|
|
8
|
+
minWidth?: number | string;
|
|
9
|
+
maxWidth?: number | string;
|
|
10
|
+
snap?: Snap;
|
|
11
|
+
snapGap?: number;
|
|
12
|
+
resizeRatio?: number;
|
|
13
|
+
appearance?: ResizerAppearance;
|
|
14
|
+
isHandleVisible?: boolean;
|
|
15
|
+
handleResizeStart: HandleResizeStart;
|
|
16
|
+
handleResize: HandleResize;
|
|
17
|
+
handleResizeStop: HandleResize;
|
|
18
|
+
/**
|
|
19
|
+
* This can be used to override the css class name applied to the resize handle.
|
|
20
|
+
*/
|
|
21
|
+
handleClassName?: string;
|
|
22
|
+
/**
|
|
23
|
+
* This is used to override the style of resize handles wrapper.
|
|
24
|
+
*/
|
|
25
|
+
handleWrapperStyle?: CSSProperties;
|
|
26
|
+
/**
|
|
27
|
+
* This property is used to override the style of one or more resize handles. Only the axis you specify will have
|
|
28
|
+
* its handle style overriden.
|
|
29
|
+
*/
|
|
30
|
+
handleStyles?: HandleStyles;
|
|
31
|
+
/**
|
|
32
|
+
* The handleAlignmentMethod is used in determining the vertical positioning of the resizer handle in relation to its children.
|
|
33
|
+
*/
|
|
34
|
+
handleAlignmentMethod?: HandleAlignmentMethod;
|
|
35
|
+
/**
|
|
36
|
+
* The handlePositioning is used to determine the horizontal position of the resizer handle in relation to its children.
|
|
37
|
+
*/
|
|
38
|
+
handlePositioning?: HandlePositioning;
|
|
39
|
+
/**
|
|
40
|
+
* The handleSize is used to determine the width/height of the handle element.
|
|
41
|
+
*/
|
|
42
|
+
handleSize?: HandleSize;
|
|
43
|
+
/**
|
|
44
|
+
* The handleHighlight is used to determine how the handle looks when the users mouse hovers over the handle element.
|
|
45
|
+
*/
|
|
46
|
+
handleHighlight?: HandleHighlight;
|
|
47
|
+
/**
|
|
48
|
+
* The handle can display a tooltip when mouse hovers.
|
|
49
|
+
*/
|
|
50
|
+
handleTooltipContent?: TooltipProps['content'];
|
|
51
|
+
};
|
|
52
|
+
export default function ResizerNext(props: PropsWithChildren<ResizerProps>): JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type EnabledHandles = {
|
|
3
|
+
left?: boolean;
|
|
4
|
+
right?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export type Dimensions = {
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
};
|
|
10
|
+
export type Position = {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
};
|
|
14
|
+
export type Snap = {
|
|
15
|
+
x?: Array<number>;
|
|
16
|
+
y?: Array<number>;
|
|
17
|
+
};
|
|
18
|
+
export type HandleResize = (newWidth: Position & Dimensions, delta: Dimensions) => void;
|
|
19
|
+
export type HandleResizeStart = () => void;
|
|
20
|
+
export type HandleStyles = {
|
|
21
|
+
right?: React.CSSProperties;
|
|
22
|
+
left?: React.CSSProperties;
|
|
23
|
+
};
|
|
24
|
+
export type HandleSize = 'small' | 'medium' | 'large';
|
|
25
|
+
export type HandleAlignmentMethod = 'center' | 'sticky';
|
|
26
|
+
export type HandlePositioning = 'overlap' | 'adjacent';
|
|
27
|
+
export type ResizerAppearance = 'danger';
|
|
28
|
+
export type HandleHighlight = 'none' | 'shadow' | 'full-height';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Plugin } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import type { SafePluginSpec } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
export declare class SafePlugin<T = any> extends Plugin<T> {
|
|
4
|
+
_isATypeSafePlugin: never;
|
|
5
|
+
constructor(spec: SafePluginSpec<T>);
|
|
6
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import type { Command } from '../../types';
|
|
3
|
+
import { Side } from './selection';
|
|
4
|
+
export declare const setSelectionTopLevelBlocks: (tr: Transaction, event: React.MouseEvent<any>, editorRef: HTMLElement, posAtCoords: (coords: {
|
|
5
|
+
left: number;
|
|
6
|
+
top: number;
|
|
7
|
+
}) => {
|
|
8
|
+
pos: number;
|
|
9
|
+
inside: number;
|
|
10
|
+
} | null | void, editorFocused: boolean) => void;
|
|
11
|
+
export declare const setGapCursorAtPos: (position: number, side?: Side) => Command;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Node as PMNode, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
import type { Mapping } from '@atlaskit/editor-prosemirror/transform';
|
|
5
|
+
export declare enum Side {
|
|
6
|
+
LEFT = "left",
|
|
7
|
+
RIGHT = "right"
|
|
8
|
+
}
|
|
9
|
+
export declare const JSON_ID = "gapcursor";
|
|
10
|
+
export declare class GapCursorSelection extends Selection {
|
|
11
|
+
readonly side: Side;
|
|
12
|
+
readonly visible: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Construct a GapCursorSelection
|
|
15
|
+
* @param {ResolvedPos} $pos resolved position
|
|
16
|
+
* @param {Side} side side where the gap cursor is drawn
|
|
17
|
+
*/
|
|
18
|
+
constructor($pos: ResolvedPos, side?: Side);
|
|
19
|
+
static valid($pos: ResolvedPos): boolean;
|
|
20
|
+
static findFrom($pos: ResolvedPos, dir: number, mustMove?: boolean): GapCursorSelection | null;
|
|
21
|
+
static fromJSON(doc: PMNode, json: {
|
|
22
|
+
pos: number;
|
|
23
|
+
type: string;
|
|
24
|
+
side: Side;
|
|
25
|
+
}): GapCursorSelection;
|
|
26
|
+
map(doc: PMNode, mapping: Mapping): Selection;
|
|
27
|
+
eq(other: Selection): boolean;
|
|
28
|
+
content(): Slice;
|
|
29
|
+
getBookmark(): GapBookmark;
|
|
30
|
+
toJSON(): {
|
|
31
|
+
pos: number;
|
|
32
|
+
type: string;
|
|
33
|
+
side: Side;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export declare class GapBookmark {
|
|
37
|
+
private readonly pos;
|
|
38
|
+
constructor(pos: number);
|
|
39
|
+
map(mapping: any): GapBookmark;
|
|
40
|
+
resolve(doc: PMNode): GapCursorSelection | Selection;
|
|
41
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
+
import type { AnalyticsEventPayload } from '../analytics';
|
|
5
|
+
import type { Command } from '../types';
|
|
6
|
+
export { RelativeSelectionPos } from './types';
|
|
7
|
+
export type { SelectionPluginState, EditorSelectionAPI, SelectionPluginOptions, SelectionSharedState, SetSelectionRelativeToNode, } from './types';
|
|
8
|
+
export { GapCursorSelection, Side, JSON_ID, GapBookmark, } from './gap-cursor/selection';
|
|
9
|
+
export { setSelectionTopLevelBlocks, setGapCursorAtPos, } from './gap-cursor/actions';
|
|
10
|
+
export { isIgnored, isValidTargetNode } from './gap-cursor/utils';
|
|
11
|
+
export { setGapCursorSelection } from './gap-cursor/utils/setGapCursorSelection';
|
|
12
|
+
export { hideCaretModifier, gapCursorStyles } from './gap-cursor/styles';
|
|
13
|
+
export { atTheBeginningOfBlock, atTheBeginningOfDoc, atTheEndOfBlock, atTheEndOfDoc, endPositionOfParent, isSelectionAtEndOfNode, isSelectionAtStartOfNode, startPositionOfParent, } from './utils';
|
|
14
|
+
export declare function getNodeSelectionAnalyticsPayload(selection: Selection): AnalyticsEventPayload | undefined;
|
|
15
|
+
export declare function getAllSelectionAnalyticsPayload(selection: Selection): AnalyticsEventPayload | undefined;
|
|
16
|
+
export declare function getCellSelectionAnalyticsPayload(state: EditorState): AnalyticsEventPayload | undefined;
|
|
17
|
+
export declare function getRangeSelectionAnalyticsPayload(selection: Selection, doc: PmNode): AnalyticsEventPayload | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Insert content, delete a range and create a new selection
|
|
20
|
+
* This function automatically handles the mapping of positions for insertion and deletion.
|
|
21
|
+
* The new selection is handled as a function since it may not always be necessary to resolve a position to the transactions mapping
|
|
22
|
+
*
|
|
23
|
+
* @param getSelectionResolvedPos get the resolved position to create a new selection
|
|
24
|
+
* @param insertions content to insert at the specified position
|
|
25
|
+
* @param deletions the ranges to delete
|
|
26
|
+
*/
|
|
27
|
+
export declare const selectNode: (pos: number) => Command;
|
|
28
|
+
export declare function createSelectionClickHandler(nodes: string[], isValidTarget: (target: HTMLElement) => boolean, options: {
|
|
29
|
+
useLongPressSelection: boolean;
|
|
30
|
+
getNodeSelectionPos?: (state: EditorState, nodePos: number) => number;
|
|
31
|
+
}): (view: EditorView, pos: number, node: PmNode, nodePos: number, event: MouseEvent, direct: boolean) => boolean;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { EditorState, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
+
import type { LongPressSelectionPluginOptions } from '../types';
|
|
4
|
+
export declare enum RelativeSelectionPos {
|
|
5
|
+
Before = "Before",
|
|
6
|
+
Start = "Start",
|
|
7
|
+
Inside = "Inside",
|
|
8
|
+
End = "End"
|
|
9
|
+
}
|
|
10
|
+
export interface SelectionPluginState {
|
|
11
|
+
/** Selected node class decorations */
|
|
12
|
+
decorationSet: DecorationSet;
|
|
13
|
+
/** Selection the decorations were built for */
|
|
14
|
+
selection: Selection;
|
|
15
|
+
/**
|
|
16
|
+
* Relative position of selection to either its parent node or, if a NodeSelection, its own node
|
|
17
|
+
* Used to manage where the selection should go when using arrow keys
|
|
18
|
+
*/
|
|
19
|
+
selectionRelativeToNode?: RelativeSelectionPos;
|
|
20
|
+
}
|
|
21
|
+
export type SetSelectionRelativeToNode = (props: {
|
|
22
|
+
selectionRelativeToNode?: RelativeSelectionPos;
|
|
23
|
+
selection?: Selection | null;
|
|
24
|
+
}) => (state: EditorState) => Transaction;
|
|
25
|
+
export type EditorSelectionAPI = {
|
|
26
|
+
setSelectionRelativeToNode: SetSelectionRelativeToNode;
|
|
27
|
+
getSelectionPluginState: (state: EditorState) => SelectionPluginState;
|
|
28
|
+
};
|
|
29
|
+
export interface SelectionPluginOptions extends LongPressSelectionPluginOptions {
|
|
30
|
+
}
|
|
31
|
+
export type SelectionSharedState = {
|
|
32
|
+
selectionRelativeToNode?: RelativeSelectionPos | undefined;
|
|
33
|
+
} | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
4
|
+
export declare const isSelectionAtStartOfNode: ($pos: ResolvedPos, parentNode?: ContentNodeWithPos) => boolean;
|
|
5
|
+
export declare const isSelectionAtEndOfNode: ($pos: ResolvedPos, parentNode?: ContentNodeWithPos) => boolean;
|
|
6
|
+
export declare function atTheEndOfDoc(state: EditorState): boolean;
|
|
7
|
+
export declare function atTheBeginningOfDoc(state: EditorState): boolean;
|
|
8
|
+
export declare function atTheEndOfBlock(state: EditorState): boolean;
|
|
9
|
+
export declare function atTheBeginningOfBlock(state: EditorState): boolean;
|
|
10
|
+
export declare function startPositionOfParent(resolvedPos: ResolvedPos): number;
|
|
11
|
+
export declare function endPositionOfParent(resolvedPos: ResolvedPos): number;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
+
import { EventDispatcher } from '../event-dispatcher';
|
|
5
|
+
import ReactNodeView, { getPosHandler, ReactComponentProps, shouldUpdate } from '../react-node-view';
|
|
6
|
+
import { PortalProviderAPI } from '../ui/PortalProvider';
|
|
7
|
+
/**
|
|
8
|
+
* A ReactNodeView that handles React components sensitive
|
|
9
|
+
* to selection changes.
|
|
10
|
+
*
|
|
11
|
+
* If the selection changes, it will attempt to re-render the
|
|
12
|
+
* React component. Otherwise it does nothing.
|
|
13
|
+
*
|
|
14
|
+
* You can subclass `viewShouldUpdate` to include other
|
|
15
|
+
* props that your component might want to consider before
|
|
16
|
+
* entering the React lifecycle. These are usually props you
|
|
17
|
+
* compare in `shouldComponentUpdate`.
|
|
18
|
+
*
|
|
19
|
+
* An example:
|
|
20
|
+
*
|
|
21
|
+
* ```
|
|
22
|
+
* viewShouldUpdate(nextNode) {
|
|
23
|
+
* if (nextNode.attrs !== this.node.attrs) {
|
|
24
|
+
* return true;
|
|
25
|
+
* }
|
|
26
|
+
*
|
|
27
|
+
* return super.viewShouldUpdate(nextNode);
|
|
28
|
+
* }```
|
|
29
|
+
*/
|
|
30
|
+
export declare class SelectionBasedNodeView<P = ReactComponentProps> extends ReactNodeView<P> {
|
|
31
|
+
protected isSelectedNode: boolean;
|
|
32
|
+
pos: number | undefined;
|
|
33
|
+
posEnd: number | undefined;
|
|
34
|
+
constructor(node: PMNode, view: EditorView, getPos: getPosHandler, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, reactComponentProps: P, reactComponent?: React.ComponentType<any>, hasContext?: boolean, viewShouldUpdate?: shouldUpdate, hasIntlContext?: boolean);
|
|
35
|
+
/**
|
|
36
|
+
* Update current node's start and end positions.
|
|
37
|
+
*
|
|
38
|
+
* Prefer `this.pos` rather than getPos(), because calling getPos is
|
|
39
|
+
* expensive, unless you know you're definitely going to render.
|
|
40
|
+
*/
|
|
41
|
+
private updatePos;
|
|
42
|
+
private getPositionsWithDefault;
|
|
43
|
+
private isNodeInsideSelection;
|
|
44
|
+
private isSelectionInsideNode;
|
|
45
|
+
insideSelection: () => boolean;
|
|
46
|
+
nodeInsideSelection: () => boolean;
|
|
47
|
+
selectNode(): void;
|
|
48
|
+
deselectNode(): void;
|
|
49
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SelectionBasedNodeView } from './SelectionBasedNodeView';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export { textColorStyles } from './shared/text-color';
|
|
2
|
+
export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding, tableMarginTopWithControl, } from './shared/table';
|
|
3
|
+
export { AnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles, } from './shared/annotation';
|
|
4
|
+
export { columnLayoutSharedStyle } from './shared/column-layout';
|
|
5
|
+
export { mediaSingleSharedStyle, richMediaClassName, } from './shared/media-single';
|
|
6
|
+
export { blockquoteSharedStyles } from './shared/blockquote';
|
|
7
|
+
export { headingsSharedStyles } from './shared/headings';
|
|
8
|
+
export { ruleSharedStyles } from './shared/rule';
|
|
9
|
+
export { whitespaceSharedStyles } from './shared/whitespace';
|
|
10
|
+
export { paragraphSharedStyles } from './shared/paragraph';
|
|
11
|
+
export { linkSharedStyle } from './shared/link';
|
|
12
|
+
export { listsSharedStyles, listItemCounterPadding, getOrderedListInlineStyles, } from './shared/lists';
|
|
13
|
+
export { indentationSharedStyles } from './shared/indentation';
|
|
14
|
+
export { blockMarksSharedStyles } from './shared/block-marks';
|
|
15
|
+
export { codeMarkSharedStyles } from './shared/code-mark';
|
|
16
|
+
export { shadowSharedStyle } from './shared/shadow';
|
|
17
|
+
export { dateSharedStyle, DateSharedCssClassName } from './shared/date';
|
|
18
|
+
export { tasksAndDecisionsStyles, TaskDecisionSharedCssClassName, } from './shared/task-decision';
|
|
19
|
+
export { StatusSharedCssClassName } from './shared/status';
|
|
20
|
+
export { smartCardSharedStyles, SmartCardSharedCssClassName, } from './shared/smart-card';
|
|
21
|
+
export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
|
|
22
|
+
export { CodeBlockSharedCssClassName, codeBlockSharedStyles, codeBlockInListSafariFix, } from './shared/code-block';
|
|
23
|
+
export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING } from './shared/layout';
|
|
24
|
+
export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
|
|
25
|
+
export { resizerStyles, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, } from './shared/resizer';
|
|
26
|
+
export { gridStyles, GRID_GUTTER } from './shared/grid';
|
|
27
|
+
export { smartCardStyles, FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME, } from './shared/smartCard';
|
|
28
|
+
export { embedCardStyles, embedSpacingStyles } from './shared/embedCard';
|
|
29
|
+
export { buttonGroupStyle, separatorStyles, wrapperStyle, triggerWrapperStyles, } from './shared/plugins';
|
|
30
|
+
export { UnsupportedSharedCssClassName, unsupportedStyles, } from './shared/unsupported-content';
|
|
31
|
+
export { expandIconWrapperStyle } from './shared/expand';
|
|
32
|
+
export { ClassNames as MediaSharedClassNames } from './shared/media';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ThemeProps } from '@atlaskit/theme/types';
|
|
2
|
+
export declare const annotationPrefix = "ak-editor-annotation";
|
|
3
|
+
export declare const AnnotationSharedClassNames: {
|
|
4
|
+
focus: string;
|
|
5
|
+
blur: string;
|
|
6
|
+
draft: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const AnnotationSharedCSSByState: (props: ThemeProps) => {
|
|
9
|
+
focus: import("@emotion/react").SerializedStyles;
|
|
10
|
+
blur: import("@emotion/react").SerializedStyles;
|
|
11
|
+
};
|
|
12
|
+
export declare const annotationSharedStyles: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const blockMarksSharedStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const blockquoteSharedStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ThemeProps } from '@atlaskit/theme/types';
|
|
2
|
+
export declare const CodeBlockSharedCssClassName: {
|
|
3
|
+
CODEBLOCK_CONTAINER: string;
|
|
4
|
+
CODEBLOCK_START: string;
|
|
5
|
+
CODEBLOCK_END: string;
|
|
6
|
+
CODEBLOCK_CONTENT_WRAPPER: string;
|
|
7
|
+
CODEBLOCK_LINE_NUMBER_GUTTER: string;
|
|
8
|
+
CODEBLOCK_CONTENT: string;
|
|
9
|
+
DS_CODEBLOCK: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const codeBlockSharedStyles: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
|
|
12
|
+
export declare const codeBlockInListSafariFix: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const expandIconWrapperStyle: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const indentationSharedStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const listItemCounterPadding = 24;
|
|
2
|
+
export declare function getOrderedListInlineStyles(itemCounterDigitsSize: number, styleFormat: 'string'): string;
|
|
3
|
+
export declare function getOrderedListInlineStyles(itemCounterDigitsSize: number, styleFormat: 'object'): Record<string, any>;
|
|
4
|
+
export declare const listsSharedStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { PanelType } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { ThemeProps } from '@atlaskit/theme/types';
|
|
3
|
+
export declare const darkPanelColors: {
|
|
4
|
+
info: string;
|
|
5
|
+
error: string;
|
|
6
|
+
warning: string;
|
|
7
|
+
tip: string;
|
|
8
|
+
success: string;
|
|
9
|
+
note: string;
|
|
10
|
+
R900: string;
|
|
11
|
+
R100S: string;
|
|
12
|
+
R300S: string;
|
|
13
|
+
R500S: string;
|
|
14
|
+
R800S: string;
|
|
15
|
+
R1200S: string;
|
|
16
|
+
Y900: string;
|
|
17
|
+
Y100S: string;
|
|
18
|
+
Y300S: string;
|
|
19
|
+
Y500S: string;
|
|
20
|
+
Y800S: string;
|
|
21
|
+
Y1200S: string;
|
|
22
|
+
G900: string;
|
|
23
|
+
G100S: string;
|
|
24
|
+
G300S: string;
|
|
25
|
+
G400S: string;
|
|
26
|
+
G900S: string;
|
|
27
|
+
G1200S: string;
|
|
28
|
+
B900: string;
|
|
29
|
+
B100S: string;
|
|
30
|
+
B300S: string;
|
|
31
|
+
B500S: string;
|
|
32
|
+
B800S: string;
|
|
33
|
+
B1200S: string;
|
|
34
|
+
P900: string;
|
|
35
|
+
P100S: string;
|
|
36
|
+
P300S: string;
|
|
37
|
+
P500S: string;
|
|
38
|
+
P800S: string;
|
|
39
|
+
P1200S: string;
|
|
40
|
+
T900: string;
|
|
41
|
+
T100S: string;
|
|
42
|
+
T300S: string;
|
|
43
|
+
T400S: string;
|
|
44
|
+
T900S: string;
|
|
45
|
+
T1200S: string;
|
|
46
|
+
DarkGray: string;
|
|
47
|
+
Gray: string;
|
|
48
|
+
LightGray: string;
|
|
49
|
+
TextColor: string;
|
|
50
|
+
};
|
|
51
|
+
export declare const getPanelDarkColor: (panelColor: string) => string;
|
|
52
|
+
export declare const getPanelBackgroundDarkModeColors: string;
|
|
53
|
+
export declare function getPanelDarkModeCSS(colorName: string, colorValue: string): string;
|
|
54
|
+
export declare const PanelSharedCssClassName: {
|
|
55
|
+
prefix: string;
|
|
56
|
+
content: string;
|
|
57
|
+
icon: string;
|
|
58
|
+
};
|
|
59
|
+
export declare const PanelSharedSelectors: {
|
|
60
|
+
infoPanel: string;
|
|
61
|
+
notePanel: string;
|
|
62
|
+
warningPanel: string;
|
|
63
|
+
errorPanel: string;
|
|
64
|
+
successPanel: string;
|
|
65
|
+
noteButton: string;
|
|
66
|
+
warningButton: string;
|
|
67
|
+
removeButton: string;
|
|
68
|
+
colorPalette: string;
|
|
69
|
+
selectedColor: string;
|
|
70
|
+
removeEmojiIcon: string;
|
|
71
|
+
emojiIcon: string;
|
|
72
|
+
selectedEmoji: string;
|
|
73
|
+
addYourOwnEmoji: string;
|
|
74
|
+
emojiNameInCustomEmoji: string;
|
|
75
|
+
title: string;
|
|
76
|
+
emojiPopup: string;
|
|
77
|
+
searchEmoji: string;
|
|
78
|
+
orangeWarningIcon: string;
|
|
79
|
+
yellowWarningIcon: string;
|
|
80
|
+
copyButton: string;
|
|
81
|
+
};
|
|
82
|
+
export declare const getPanelTypeBackgroundNoTokens: (panelType: Exclude<PanelType, PanelType.CUSTOM>, props?: ThemeProps) => string;
|
|
83
|
+
export declare const getPanelTypeBackground: (panelType: Exclude<PanelType, PanelType.CUSTOM>, props?: ThemeProps) => string;
|
|
84
|
+
export declare const panelSharedStylesWithoutPrefix: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
|
|
85
|
+
export declare const panelSharedStyles: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const paragraphSharedStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const buttonGroupStyle: import("@emotion/react").SerializedStyles;
|
|
2
|
+
export declare const separatorStyles: import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const wrapperStyle: import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const triggerWrapperStyles: import("@emotion/react").SerializedStyles;
|