@atlaskit/editor-core 188.7.0 → 188.7.3
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 +7 -0
- package/dist/cjs/plugins/status/ui/statusPicker.js +7 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/plugins/status/ui/statusPicker.js +6 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/plugins/status/ui/statusPicker.js +7 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/plugins/status/ui/statusPicker.d.ts +1 -0
- package/dist/types-ts4.5/actions/index.d.ts +49 -0
- package/dist/types-ts4.5/commands/index.d.ts +1 -0
- package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +34 -0
- package/dist/types-ts4.5/composable-editor/editor.d.ts +9 -0
- package/dist/types-ts4.5/composable-editor/hooks/useEditorMeasuresConstructor.d.ts +17 -0
- package/dist/types-ts4.5/composable-editor/hooks/useMeasureEditorMountTime.d.ts +13 -0
- package/dist/types-ts4.5/composable-editor/hooks/useProviderFactory.d.ts +14 -0
- package/dist/types-ts4.5/composable-editor/utils/editorMeasureTTICallback.d.ts +5 -0
- package/dist/types-ts4.5/composable-editor/utils/getBaseFontSize.d.ts +6 -0
- package/dist/types-ts4.5/composable-editor/utils/getProvidersFromEditorProps.d.ts +9 -0
- package/dist/types-ts4.5/composable-editor/utils/handleProviders.d.ts +12 -0
- package/dist/types-ts4.5/composable-editor/utils/sendDurationAnalytics.d.ts +15 -0
- package/dist/types-ts4.5/composable-editor/utils/trackEditorActions.d.ts +29 -0
- package/dist/types-ts4.5/composable-editor.d.ts +1 -0
- package/dist/types-ts4.5/create-editor/ErrorBoundary.d.ts +44 -0
- package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +8 -0
- package/dist/types-ts4.5/create-editor/ReactEditorViewContext.d.ts +2 -0
- package/dist/types-ts4.5/create-editor/ReactEditorViewInternal.d.ts +119 -0
- package/dist/types-ts4.5/create-editor/ReactEditorViewNext.d.ts +8 -0
- package/dist/types-ts4.5/create-editor/WithEditorView.d.ts +6 -0
- package/dist/types-ts4.5/create-editor/consts.d.ts +3 -0
- package/dist/types-ts4.5/create-editor/create-editor.d.ts +18 -0
- package/dist/types-ts4.5/create-editor/create-plugins-list.d.ts +16 -0
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +3 -0
- package/dist/types-ts4.5/create-editor/create-schema.d.ts +6 -0
- package/dist/types-ts4.5/create-editor/feature-flags-from-props.d.ts +7 -0
- package/dist/types-ts4.5/create-editor/get-plugins.d.ts +44 -0
- package/dist/types-ts4.5/create-editor/get-ui-component.d.ts +3 -0
- package/dist/types-ts4.5/create-editor/index.d.ts +3 -0
- package/dist/types-ts4.5/create-editor/messages.d.ts +7 -0
- package/dist/types-ts4.5/create-editor/preset-utils.d.ts +2 -0
- package/dist/types-ts4.5/create-editor/sort-by-order.d.ts +14 -0
- package/dist/types-ts4.5/editor.d.ts +10 -0
- package/dist/types-ts4.5/element-browser.d.ts +1 -0
- package/dist/types-ts4.5/event-dispatcher/index.d.ts +2 -0
- package/dist/types-ts4.5/extensibility.d.ts +15 -0
- package/dist/types-ts4.5/extensions.d.ts +1 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +140 -0
- package/dist/types-ts4.5/i18n/da.d.ts +139 -0
- package/dist/types-ts4.5/i18n/de.d.ts +139 -0
- package/dist/types-ts4.5/i18n/en.d.ts +141 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +141 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +141 -0
- package/dist/types-ts4.5/i18n/es.d.ts +139 -0
- package/dist/types-ts4.5/i18n/et.d.ts +168 -0
- package/dist/types-ts4.5/i18n/fi.d.ts +139 -0
- package/dist/types-ts4.5/i18n/fr.d.ts +139 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +139 -0
- package/dist/types-ts4.5/i18n/index.d.ts +35 -0
- package/dist/types-ts4.5/i18n/is.d.ts +153 -0
- package/dist/types-ts4.5/i18n/it.d.ts +139 -0
- package/dist/types-ts4.5/i18n/ja.d.ts +139 -0
- package/dist/types-ts4.5/i18n/ko.d.ts +139 -0
- package/dist/types-ts4.5/i18n/languages.d.ts +38 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +139 -0
- package/dist/types-ts4.5/i18n/nl.d.ts +139 -0
- package/dist/types-ts4.5/i18n/pl.d.ts +139 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +139 -0
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +180 -0
- package/dist/types-ts4.5/i18n/ro.d.ts +153 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +139 -0
- package/dist/types-ts4.5/i18n/sk.d.ts +168 -0
- package/dist/types-ts4.5/i18n/sv.d.ts +139 -0
- package/dist/types-ts4.5/i18n/th.d.ts +139 -0
- package/dist/types-ts4.5/i18n/tr.d.ts +139 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +139 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +139 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +139 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +139 -0
- package/dist/types-ts4.5/index.d.ts +46 -0
- package/dist/types-ts4.5/keymaps/index.d.ts +2 -0
- package/dist/types-ts4.5/labs/CollapsedEditor/index.d.ts +26 -0
- package/dist/types-ts4.5/labs/EditorWithActions/index.d.ts +26 -0
- package/dist/types-ts4.5/labs/next/presets/default.d.ts +1160 -0
- package/dist/types-ts4.5/labs/next/presets/types.d.ts +6 -0
- package/dist/types-ts4.5/labs/next/presets/universal.d.ts +21 -0
- package/dist/types-ts4.5/labs/next/presets/useUniversalPreset.d.ts +7 -0
- package/dist/types-ts4.5/labs-next.d.ts +1 -0
- package/dist/types-ts4.5/messages.d.ts +8 -0
- package/dist/types-ts4.5/nodeviews/context-adapter.d.ts +2 -0
- package/dist/types-ts4.5/nodeviews/getInlineNodeViewProducer.styles.d.ts +1 -0
- package/dist/types-ts4.5/nodeviews/getPerformanceOptions.d.ts +2 -0
- package/dist/types-ts4.5/nodeviews/index.d.ts +1 -0
- package/dist/types-ts4.5/nodeviews/types.d.ts +12 -0
- package/dist/types-ts4.5/plugins/alignment/commands/index.d.ts +4 -0
- package/dist/types-ts4.5/plugins/alignment/index.d.ts +5 -0
- package/dist/types-ts4.5/plugins/alignment/pm-plugins/keymap.d.ts +2 -0
- package/dist/types-ts4.5/plugins/alignment/pm-plugins/main.d.ts +8 -0
- package/dist/types-ts4.5/plugins/alignment/pm-plugins/types.d.ts +5 -0
- package/dist/types-ts4.5/plugins/alignment/ui/ToolbarAlignment/icon-map.d.ts +6 -0
- package/dist/types-ts4.5/plugins/alignment/ui/ToolbarAlignment/index.d.ts +33 -0
- package/dist/types-ts4.5/plugins/alignment/ui/ToolbarAlignment/messages.d.ts +22 -0
- package/dist/types-ts4.5/plugins/alignment/ui/ToolbarAlignment/styles.d.ts +3 -0
- package/dist/types-ts4.5/plugins/alignment/utils/index.d.ts +3 -0
- package/dist/types-ts4.5/plugins/analytics/consts.d.ts +3 -0
- package/dist/types-ts4.5/plugins/analytics/index.d.ts +8 -0
- package/dist/types-ts4.5/plugins/analytics/plugin-key.d.ts +8 -0
- package/dist/types-ts4.5/plugins/analytics/plugin.d.ts +29 -0
- package/dist/types-ts4.5/plugins/analytics/types/dispatch-analytics-event.d.ts +1 -0
- package/dist/types-ts4.5/plugins/analytics/types/enums.d.ts +1 -0
- package/dist/types-ts4.5/plugins/analytics/types/events.d.ts +1 -0
- package/dist/types-ts4.5/plugins/analytics/types/experimental-events.d.ts +1 -0
- package/dist/types-ts4.5/plugins/analytics/types/extension-events.d.ts +2 -0
- package/dist/types-ts4.5/plugins/analytics/types/general-events.d.ts +2 -0
- package/dist/types-ts4.5/plugins/analytics/types/index.d.ts +9 -0
- package/dist/types-ts4.5/plugins/analytics/types/inline-comment-events.d.ts +2 -0
- package/dist/types-ts4.5/plugins/analytics/types/link-tool-bar-events.d.ts +1 -0
- package/dist/types-ts4.5/plugins/analytics/types/media-events.d.ts +1 -0
- package/dist/types-ts4.5/plugins/analytics/types/node-events.d.ts +2 -0
- package/dist/types-ts4.5/plugins/analytics/types/selection-events.d.ts +1 -0
- package/dist/types-ts4.5/plugins/analytics/types/smart-links.d.ts +2 -0
- package/dist/types-ts4.5/plugins/analytics/types/toolbar-button.d.ts +2 -0
- package/dist/types-ts4.5/plugins/analytics/utils.d.ts +22 -0
- package/dist/types-ts4.5/plugins/annotation/commands/index.d.ts +16 -0
- package/dist/types-ts4.5/plugins/annotation/commands/transform.d.ts +11 -0
- package/dist/types-ts4.5/plugins/annotation/index.d.ts +12 -0
- package/dist/types-ts4.5/plugins/annotation/nodeviews/index.d.ts +11 -0
- package/dist/types-ts4.5/plugins/annotation/pm-plugins/inline-comment.d.ts +3 -0
- package/dist/types-ts4.5/plugins/annotation/pm-plugins/keymap.d.ts +2 -0
- package/dist/types-ts4.5/plugins/annotation/pm-plugins/plugin-factory.d.ts +2 -0
- package/dist/types-ts4.5/plugins/annotation/pm-plugins/reducer.d.ts +3 -0
- package/dist/types-ts4.5/plugins/annotation/pm-plugins/types.d.ts +78 -0
- package/dist/types-ts4.5/plugins/annotation/toolbar.d.ts +4 -0
- package/dist/types-ts4.5/plugins/annotation/types.d.ts +86 -0
- package/dist/types-ts4.5/plugins/annotation/ui/AnnotationViewWrapper.d.ts +10 -0
- package/dist/types-ts4.5/plugins/annotation/ui/InlineCommentView.d.ts +11 -0
- package/dist/types-ts4.5/plugins/annotation/update-provider.d.ts +8 -0
- package/dist/types-ts4.5/plugins/annotation/utils.d.ts +40 -0
- package/dist/types-ts4.5/plugins/avatar-group/index.d.ts +14 -0
- package/dist/types-ts4.5/plugins/avatar-group/messages.d.ts +7 -0
- package/dist/types-ts4.5/plugins/avatar-group/ui/AvatarGroupPluginWrapper.d.ts +15 -0
- package/dist/types-ts4.5/plugins/before-primaryToolbar/index.d.ts +8 -0
- package/dist/types-ts4.5/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.d.ts +5 -0
- package/dist/types-ts4.5/plugins/better-type-history/index.d.ts +13 -0
- package/dist/types-ts4.5/plugins/better-type-history/pm-plugins/main.d.ts +3 -0
- package/dist/types-ts4.5/plugins/better-type-history/pm-plugins/plugin-key.d.ts +2 -0
- package/dist/types-ts4.5/plugins/breakout/commands/remove-breakout.d.ts +2 -0
- package/dist/types-ts4.5/plugins/breakout/commands/set-breakout-mode.d.ts +3 -0
- package/dist/types-ts4.5/plugins/breakout/constants.d.ts +4 -0
- package/dist/types-ts4.5/plugins/breakout/index.d.ts +14 -0
- package/dist/types-ts4.5/plugins/breakout/plugin-key.d.ts +5 -0
- package/dist/types-ts4.5/plugins/breakout/types.d.ts +4 -0
- package/dist/types-ts4.5/plugins/breakout/ui/LayoutButton.d.ts +17 -0
- package/dist/types-ts4.5/plugins/breakout/utils/find-breakout-node.d.ts +9 -0
- package/dist/types-ts4.5/plugins/breakout/utils/get-breakout-mode.d.ts +7 -0
- package/dist/types-ts4.5/plugins/breakout/utils/is-breakout-mark-allowed.d.ts +9 -0
- package/dist/types-ts4.5/plugins/breakout/utils/is-supported-node.d.ts +6 -0
- package/dist/types-ts4.5/plugins/clear-marks-on-change-to-empty-document/index.d.ts +7 -0
- package/dist/types-ts4.5/plugins/code-bidi-warning/index.d.ts +8 -0
- package/dist/types-ts4.5/plugins/code-bidi-warning/plugin-key.d.ts +2 -0
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/main.d.ts +5 -0
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/plugin-factory.d.ts +8 -0
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/reducer.d.ts +3 -0
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/types.d.ts +6 -0
- package/dist/types-ts4.5/plugins/code-block/actions.d.ts +18 -0
- package/dist/types-ts4.5/plugins/code-block/ide-ux/bracket-handling.d.ts +12 -0
- package/dist/types-ts4.5/plugins/code-block/ide-ux/commands.d.ts +6 -0
- package/dist/types-ts4.5/plugins/code-block/ide-ux/line-handling.d.ts +25 -0
- package/dist/types-ts4.5/plugins/code-block/ide-ux/paired-character-handling.d.ts +2 -0
- package/dist/types-ts4.5/plugins/code-block/ide-ux/quote-handling.d.ts +12 -0
- package/dist/types-ts4.5/plugins/code-block/index.d.ts +19 -0
- package/dist/types-ts4.5/plugins/code-block/language-list.d.ts +1641 -0
- package/dist/types-ts4.5/plugins/code-block/nodeviews/code-block.d.ts +21 -0
- package/dist/types-ts4.5/plugins/code-block/plugin-key.d.ts +2 -0
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/actions.d.ts +4 -0
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/codeBlockCopySelectionPlugin.d.ts +14 -0
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/ide-ux.d.ts +5 -0
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/input-rule.d.ts +3 -0
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/keymaps.d.ts +4 -0
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/main-state.d.ts +8 -0
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/main.d.ts +10 -0
- package/dist/types-ts4.5/plugins/code-block/refresh-browser-selection.d.ts +5 -0
- package/dist/types-ts4.5/plugins/code-block/styles.d.ts +2 -0
- package/dist/types-ts4.5/plugins/code-block/toolbar.d.ts +14 -0
- package/dist/types-ts4.5/plugins/code-block/transform-to-code-block.d.ts +3 -0
- package/dist/types-ts4.5/plugins/code-block/types.d.ts +7 -0
- package/dist/types-ts4.5/plugins/code-block/ui/class-names.d.ts +8 -0
- package/dist/types-ts4.5/plugins/code-block/utils.d.ts +6 -0
- package/dist/types-ts4.5/plugins/collab-edit/actions.d.ts +11 -0
- package/dist/types-ts4.5/plugins/collab-edit/analytics.d.ts +6 -0
- package/dist/types-ts4.5/plugins/collab-edit/events/handlers.d.ts +24 -0
- package/dist/types-ts4.5/plugins/collab-edit/events/initialize.d.ts +16 -0
- package/dist/types-ts4.5/plugins/collab-edit/events/send-transaction.d.ts +11 -0
- package/dist/types-ts4.5/plugins/collab-edit/get-participants-count.d.ts +2 -0
- package/dist/types-ts4.5/plugins/collab-edit/index.d.ts +14 -0
- package/dist/types-ts4.5/plugins/collab-edit/native-collab-provider-plugin.d.ts +7 -0
- package/dist/types-ts4.5/plugins/collab-edit/participants.d.ts +18 -0
- package/dist/types-ts4.5/plugins/collab-edit/plugin-key.d.ts +3 -0
- package/dist/types-ts4.5/plugins/collab-edit/plugin-state.d.ts +24 -0
- package/dist/types-ts4.5/plugins/collab-edit/plugin.d.ts +11 -0
- package/dist/types-ts4.5/plugins/collab-edit/styles.d.ts +1 -0
- package/dist/types-ts4.5/plugins/collab-edit/types.d.ts +8 -0
- package/dist/types-ts4.5/plugins/collab-edit/ui/avatars-with-plugin-state.d.ts +23 -0
- package/dist/types-ts4.5/plugins/collab-edit/ui/avatars.d.ts +12 -0
- package/dist/types-ts4.5/plugins/collab-edit/ui/colored-avatar-item.d.ts +7 -0
- package/dist/types-ts4.5/plugins/collab-edit/ui/index.d.ts +2 -0
- package/dist/types-ts4.5/plugins/collab-edit/ui/invite-to-edit.d.ts +10 -0
- package/dist/types-ts4.5/plugins/collab-edit/ui/styles.d.ts +3 -0
- package/dist/types-ts4.5/plugins/collab-edit/ui/to-avatar.d.ts +4 -0
- package/dist/types-ts4.5/plugins/collab-edit/utils.d.ts +18 -0
- package/dist/types-ts4.5/plugins/custom-autoformat/doc.d.ts +6 -0
- package/dist/types-ts4.5/plugins/custom-autoformat/index.d.ts +6 -0
- package/dist/types-ts4.5/plugins/custom-autoformat/input-rules.d.ts +9 -0
- package/dist/types-ts4.5/plugins/custom-autoformat/reducers.d.ts +4 -0
- package/dist/types-ts4.5/plugins/custom-autoformat/types.d.ts +31 -0
- package/dist/types-ts4.5/plugins/custom-autoformat/utils.d.ts +6 -0
- package/dist/types-ts4.5/plugins/data-consumer/index.d.ts +3 -0
- package/dist/types-ts4.5/plugins/date/actions.d.ts +64 -0
- package/dist/types-ts4.5/plugins/date/index.d.ts +2 -0
- package/dist/types-ts4.5/plugins/date/nodeviews/date.d.ts +3 -0
- package/dist/types-ts4.5/plugins/date/nodeviews/messages.d.ts +7 -0
- package/dist/types-ts4.5/plugins/date/plugin.d.ts +3 -0
- package/dist/types-ts4.5/plugins/date/pm-plugins/keymap.d.ts +3 -0
- package/dist/types-ts4.5/plugins/date/pm-plugins/main.d.ts +6 -0
- package/dist/types-ts4.5/plugins/date/pm-plugins/plugin-key.d.ts +3 -0
- package/dist/types-ts4.5/plugins/date/pm-plugins/types.d.ts +12 -0
- package/dist/types-ts4.5/plugins/date/pm-plugins/utils.d.ts +5 -0
- package/dist/types-ts4.5/plugins/date/types.d.ts +31 -0
- package/dist/types-ts4.5/plugins/date/ui/DatePicker/date-picker-input.d.ts +24 -0
- package/dist/types-ts4.5/plugins/date/ui/DatePicker/index.d.ts +36 -0
- package/dist/types-ts4.5/plugins/date/utils/formatParse.d.ts +27 -0
- package/dist/types-ts4.5/plugins/date/utils/internal.d.ts +33 -0
- package/dist/types-ts4.5/plugins/expand/commands.d.ts +12 -0
- package/dist/types-ts4.5/plugins/expand/index.d.ts +24 -0
- package/dist/types-ts4.5/plugins/expand/nodeviews/index.d.ts +55 -0
- package/dist/types-ts4.5/plugins/expand/pm-plugins/keymap.d.ts +4 -0
- package/dist/types-ts4.5/plugins/expand/pm-plugins/main.d.ts +8 -0
- package/dist/types-ts4.5/plugins/expand/pm-plugins/plugin-factory.d.ts +3 -0
- package/dist/types-ts4.5/plugins/expand/reducer.d.ts +3 -0
- package/dist/types-ts4.5/plugins/expand/toolbar.d.ts +3 -0
- package/dist/types-ts4.5/plugins/expand/types.d.ts +9 -0
- package/dist/types-ts4.5/plugins/expand/ui/ExpandIconButton.d.ts +43 -0
- package/dist/types-ts4.5/plugins/expand/ui/class-names.d.ts +11 -0
- package/dist/types-ts4.5/plugins/expand/ui/styles.d.ts +2 -0
- package/dist/types-ts4.5/plugins/expand/utils.d.ts +1 -0
- package/dist/types-ts4.5/plugins/extension/actions.d.ts +17 -0
- package/dist/types-ts4.5/plugins/extension/commands.d.ts +12 -0
- package/dist/types-ts4.5/plugins/extension/context-panel.d.ts +8 -0
- package/dist/types-ts4.5/plugins/extension/extension-api.d.ts +10 -0
- package/dist/types-ts4.5/plugins/extension/index.d.ts +3 -0
- package/dist/types-ts4.5/plugins/extension/nodeviews/extension.d.ts +32 -0
- package/dist/types-ts4.5/plugins/extension/plugin-factory.d.ts +4 -0
- package/dist/types-ts4.5/plugins/extension/plugin-key.d.ts +3 -0
- package/dist/types-ts4.5/plugins/extension/pm-plugins/keymap.d.ts +3 -0
- package/dist/types-ts4.5/plugins/extension/pm-plugins/main.d.ts +27 -0
- package/dist/types-ts4.5/plugins/extension/pm-plugins/unique-id.d.ts +3 -0
- package/dist/types-ts4.5/plugins/extension/pm-plugins/utils.d.ts +3 -0
- package/dist/types-ts4.5/plugins/extension/reducer.d.ts +2 -0
- package/dist/types-ts4.5/plugins/extension/toolbar.d.ts +42 -0
- package/dist/types-ts4.5/plugins/extension/types.d.ts +22 -0
- package/dist/types-ts4.5/plugins/extension/ui/Extension/Extension/index.d.ts +109 -0
- package/dist/types-ts4.5/plugins/extension/ui/Extension/Extension/styles.d.ts +6 -0
- package/dist/types-ts4.5/plugins/extension/ui/Extension/ExtensionComponent.d.ts +51 -0
- package/dist/types-ts4.5/plugins/extension/ui/Extension/ExtensionNodeWrapper.d.ts +7 -0
- package/dist/types-ts4.5/plugins/extension/ui/Extension/InlineExtension/index.d.ts +12 -0
- package/dist/types-ts4.5/plugins/extension/ui/Extension/InlineExtension/styles.d.ts +2 -0
- package/dist/types-ts4.5/plugins/extension/ui/Extension/Lozenge.d.ts +14 -0
- package/dist/types-ts4.5/plugins/extension/ui/Extension/index.d.ts +28 -0
- package/dist/types-ts4.5/plugins/extension/ui/Extension/styles.d.ts +8 -0
- package/dist/types-ts4.5/plugins/extension/ui/SaveIndicator/SaveIndicator.d.ts +4 -0
- package/dist/types-ts4.5/plugins/extension/ui/SaveIndicator/messages.d.ts +7 -0
- package/dist/types-ts4.5/plugins/extension/ui/SaveIndicator/types.d.ts +11 -0
- package/dist/types-ts4.5/plugins/extension/ui/styles.d.ts +1 -0
- package/dist/types-ts4.5/plugins/extension/utils.d.ts +10 -0
- package/dist/types-ts4.5/plugins/fake-text-cursor/cursor.d.ts +30 -0
- package/dist/types-ts4.5/plugins/fake-text-cursor/index.d.ts +7 -0
- package/dist/types-ts4.5/plugins/fake-text-cursor/styles.d.ts +1 -0
- package/dist/types-ts4.5/plugins/feedback-dialog/getBrowserInfo.d.ts +6 -0
- package/dist/types-ts4.5/plugins/feedback-dialog/getDeviceInfo.d.ts +6 -0
- package/dist/types-ts4.5/plugins/feedback-dialog/index.d.ts +7 -0
- package/dist/types-ts4.5/plugins/feedback-dialog/loadJiraCollectorDialogScript.d.ts +8 -0
- package/dist/types-ts4.5/plugins/find-replace/FindReplaceToolbarButtonWithState.d.ts +17 -0
- package/dist/types-ts4.5/plugins/find-replace/actions.d.ts +64 -0
- package/dist/types-ts4.5/plugins/find-replace/commands-with-analytics.d.ts +27 -0
- package/dist/types-ts4.5/plugins/find-replace/commands.d.ts +12 -0
- package/dist/types-ts4.5/plugins/find-replace/index.d.ts +13 -0
- package/dist/types-ts4.5/plugins/find-replace/keymap.d.ts +3 -0
- package/dist/types-ts4.5/plugins/find-replace/plugin.d.ts +6 -0
- package/dist/types-ts4.5/plugins/find-replace/reducer.d.ts +4 -0
- package/dist/types-ts4.5/plugins/find-replace/styles.d.ts +3 -0
- package/dist/types-ts4.5/plugins/find-replace/types.d.ts +44 -0
- package/dist/types-ts4.5/plugins/find-replace/ui/Find.d.ts +71 -0
- package/dist/types-ts4.5/plugins/find-replace/ui/FindReplace.d.ts +43 -0
- package/dist/types-ts4.5/plugins/find-replace/ui/FindReplaceToolbarButton.d.ts +21 -0
- package/dist/types-ts4.5/plugins/find-replace/ui/FindReplaceTooltipButton.d.ts +18 -0
- package/dist/types-ts4.5/plugins/find-replace/ui/Replace.d.ts +26 -0
- package/dist/types-ts4.5/plugins/find-replace/ui/styles.d.ts +5 -0
- package/dist/types-ts4.5/plugins/find-replace/utils/batch-decorations.d.ts +36 -0
- package/dist/types-ts4.5/plugins/find-replace/utils/index.d.ts +49 -0
- package/dist/types-ts4.5/plugins/fragment/index.d.ts +3 -0
- package/dist/types-ts4.5/plugins/fragment/plugin-key.d.ts +2 -0
- package/dist/types-ts4.5/plugins/fragment/pm-plugins/fragment-consistency.d.ts +15 -0
- package/dist/types-ts4.5/plugins/history/actions.d.ts +8 -0
- package/dist/types-ts4.5/plugins/history/index.d.ts +13 -0
- package/dist/types-ts4.5/plugins/history/pm-history-types.d.ts +17 -0
- package/dist/types-ts4.5/plugins/history/reducer.d.ts +4 -0
- package/dist/types-ts4.5/plugins/history/types.d.ts +4 -0
- package/dist/types-ts4.5/plugins/history/utils.d.ts +4 -0
- package/dist/types-ts4.5/plugins/indentation/commands/index.d.ts +8 -0
- package/dist/types-ts4.5/plugins/indentation/commands/utils.d.ts +36 -0
- package/dist/types-ts4.5/plugins/indentation/index.d.ts +3 -0
- package/dist/types-ts4.5/plugins/indentation/messages.d.ts +12 -0
- package/dist/types-ts4.5/plugins/indentation/pm-plugins/keymap.d.ts +3 -0
- package/dist/types-ts4.5/plugins/index.d.ts +43 -0
- package/dist/types-ts4.5/plugins/insert-block/index.d.ts +16 -0
- package/dist/types-ts4.5/plugins/insert-block/types.d.ts +35 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.d.ts +28 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.d.ts +18 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.d.ts +30 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/create-items.d.ts +44 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.d.ts +16 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/index.d.ts +46 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/item.d.ts +34 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/messages.d.ts +1 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/shallow-equals.d.ts +1 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/sort-items.d.ts +2 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/styles.d.ts +1 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/types.d.ts +60 -0
- package/dist/types-ts4.5/plugins/jira-issue/index.d.ts +5 -0
- package/dist/types-ts4.5/plugins/jira-issue/nodeviews/jira-issue.d.ts +7 -0
- package/dist/types-ts4.5/plugins/layout/actions.d.ts +22 -0
- package/dist/types-ts4.5/plugins/layout/index.d.ts +15 -0
- package/dist/types-ts4.5/plugins/layout/pm-plugins/main.d.ts +6 -0
- package/dist/types-ts4.5/plugins/layout/pm-plugins/plugin-key.d.ts +3 -0
- package/dist/types-ts4.5/plugins/layout/pm-plugins/types.d.ts +14 -0
- package/dist/types-ts4.5/plugins/layout/styles.d.ts +4 -0
- package/dist/types-ts4.5/plugins/layout/toolbar-messages.d.ts +32 -0
- package/dist/types-ts4.5/plugins/layout/toolbar.d.ts +6 -0
- package/dist/types-ts4.5/plugins/layout/types.d.ts +13 -0
- package/dist/types-ts4.5/plugins/layout/utils.d.ts +1 -0
- package/dist/types-ts4.5/plugins/macro/actions.d.ts +8 -0
- package/dist/types-ts4.5/plugins/macro/index.d.ts +11 -0
- package/dist/types-ts4.5/plugins/macro/plugin-key.d.ts +3 -0
- package/dist/types-ts4.5/plugins/macro/types.d.ts +4 -0
- package/dist/types-ts4.5/plugins/max-content-size/index.d.ts +13 -0
- package/dist/types-ts4.5/plugins/mentions/analytics.d.ts +13 -0
- package/dist/types-ts4.5/plugins/mentions/index.d.ts +22 -0
- package/dist/types-ts4.5/plugins/mentions/messages.d.ts +22 -0
- package/dist/types-ts4.5/plugins/mentions/nodeviews/mention.d.ts +9 -0
- package/dist/types-ts4.5/plugins/mentions/pm-plugins/key.d.ts +3 -0
- package/dist/types-ts4.5/plugins/mentions/pm-plugins/main.d.ts +6 -0
- package/dist/types-ts4.5/plugins/mentions/pm-plugins/utils.d.ts +4 -0
- package/dist/types-ts4.5/plugins/mentions/type-ahead/index.d.ts +17 -0
- package/dist/types-ts4.5/plugins/mentions/types.d.ts +24 -0
- package/dist/types-ts4.5/plugins/mentions/ui/InviteItem/index.d.ts +22 -0
- package/dist/types-ts4.5/plugins/mentions/ui/InviteItem/styles.d.ts +8 -0
- package/dist/types-ts4.5/plugins/mentions/ui/Mention/index.d.ts +19 -0
- package/dist/types-ts4.5/plugins/mentions/ui/ToolbarMention/index.d.ts +13 -0
- package/dist/types-ts4.5/plugins/mentions/utils.d.ts +8 -0
- package/dist/types-ts4.5/plugins/mobile-dimensions/actions.d.ts +18 -0
- package/dist/types-ts4.5/plugins/mobile-dimensions/commands.d.ts +3 -0
- package/dist/types-ts4.5/plugins/mobile-dimensions/index.d.ts +3 -0
- package/dist/types-ts4.5/plugins/mobile-dimensions/plugin-factory.d.ts +5 -0
- package/dist/types-ts4.5/plugins/mobile-dimensions/reducer.d.ts +3 -0
- package/dist/types-ts4.5/plugins/mobile-dimensions/types.d.ts +8 -0
- package/dist/types-ts4.5/plugins/mobile-dimensions/utils.d.ts +2 -0
- package/dist/types-ts4.5/plugins/mobile-selection/content-in-selection.d.ts +5 -0
- package/dist/types-ts4.5/plugins/mobile-selection/index.d.ts +2 -0
- package/dist/types-ts4.5/plugins/mobile-selection/mobile-selection-plugin.d.ts +7 -0
- package/dist/types-ts4.5/plugins/mobile-selection/types.d.ts +32 -0
- package/dist/types-ts4.5/plugins/panel/actions.d.ts +12 -0
- package/dist/types-ts4.5/plugins/panel/index.d.ts +17 -0
- package/dist/types-ts4.5/plugins/panel/message.d.ts +37 -0
- package/dist/types-ts4.5/plugins/panel/nodeviews/panel.d.ts +36 -0
- package/dist/types-ts4.5/plugins/panel/pm-plugins/keymaps.d.ts +3 -0
- package/dist/types-ts4.5/plugins/panel/pm-plugins/main.d.ts +11 -0
- package/dist/types-ts4.5/plugins/panel/styles.d.ts +2 -0
- package/dist/types-ts4.5/plugins/panel/toolbar.d.ts +14 -0
- package/dist/types-ts4.5/plugins/panel/types.d.ts +21 -0
- package/dist/types-ts4.5/plugins/panel/utils.d.ts +5 -0
- package/dist/types-ts4.5/plugins/paste/actions.d.ts +15 -0
- package/dist/types-ts4.5/plugins/paste/commands.d.ts +30 -0
- package/dist/types-ts4.5/plugins/paste/edge-cases/index.d.ts +7 -0
- package/dist/types-ts4.5/plugins/paste/edge-cases/lists.d.ts +18 -0
- package/dist/types-ts4.5/plugins/paste/handlers.d.ts +54 -0
- package/dist/types-ts4.5/plugins/paste/index.d.ts +25 -0
- package/dist/types-ts4.5/plugins/paste/plugins/media.d.ts +12 -0
- package/dist/types-ts4.5/plugins/paste/pm-plugins/analytics.d.ts +45 -0
- package/dist/types-ts4.5/plugins/paste/pm-plugins/clipboard-text-serializer.d.ts +13 -0
- package/dist/types-ts4.5/plugins/paste/pm-plugins/main.d.ts +10 -0
- package/dist/types-ts4.5/plugins/paste/pm-plugins/plugin-factory.d.ts +3 -0
- package/dist/types-ts4.5/plugins/paste/reducer.d.ts +3 -0
- package/dist/types-ts4.5/plugins/paste/types.d.ts +6 -0
- package/dist/types-ts4.5/plugins/paste/util/index.d.ts +21 -0
- package/dist/types-ts4.5/plugins/paste/util/tinyMCE.d.ts +32 -0
- package/dist/types-ts4.5/plugins/placeholder-text/actions.d.ts +4 -0
- package/dist/types-ts4.5/plugins/placeholder-text/index.d.ts +22 -0
- package/dist/types-ts4.5/plugins/placeholder-text/placeholder-text-nodeview.d.ts +17 -0
- package/dist/types-ts4.5/plugins/placeholder-text/plugin-key.d.ts +3 -0
- package/dist/types-ts4.5/plugins/placeholder-text/selection-utils.d.ts +2 -0
- package/dist/types-ts4.5/plugins/placeholder-text/styles.d.ts +1 -0
- package/dist/types-ts4.5/plugins/placeholder-text/types.d.ts +7 -0
- package/dist/types-ts4.5/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.d.ts +25 -0
- package/dist/types-ts4.5/plugins/rank.d.ts +6 -0
- package/dist/types-ts4.5/plugins/save-on-enter/index.d.ts +10 -0
- package/dist/types-ts4.5/plugins/scroll-into-view/index.d.ts +14 -0
- package/dist/types-ts4.5/plugins/status/actions.d.ts +16 -0
- package/dist/types-ts4.5/plugins/status/analytics.d.ts +4 -0
- package/dist/types-ts4.5/plugins/status/index.d.ts +17 -0
- package/dist/types-ts4.5/plugins/status/keymap.d.ts +3 -0
- package/dist/types-ts4.5/plugins/status/nodeviews/messages.d.ts +17 -0
- package/dist/types-ts4.5/plugins/status/nodeviews/status.d.ts +24 -0
- package/dist/types-ts4.5/plugins/status/plugin-key.d.ts +4 -0
- package/dist/types-ts4.5/plugins/status/plugin.d.ts +7 -0
- package/dist/types-ts4.5/plugins/status/styles.d.ts +1 -0
- package/dist/types-ts4.5/plugins/status/types.d.ts +18 -0
- package/dist/types-ts4.5/plugins/status/ui/statusPicker.d.ts +63 -0
- package/dist/types-ts4.5/plugins/status/utils.d.ts +5 -0
- package/dist/types-ts4.5/plugins/submit-editor/index.d.ts +16 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/commands.d.ts +16 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/index.d.ts +6 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/nodeviews/decisionItem.d.ts +5 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/nodeviews/taskItem.d.ts +9 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/commands.d.ts +15 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/helpers.d.ts +76 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/input-rules.d.ts +5 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/keymaps.d.ts +8 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/main.d.ts +5 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/plugin-key.d.ts +2 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/types.d.ts +8 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/styles.d.ts +1 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/types.d.ts +26 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/ui/Decision/index.d.ts +14 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/ui/Task/index.d.ts +27 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/ui/Task/task-item-with-providers.d.ts +28 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/ui/ToolbarDecision/index.d.ts +20 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/ui/ToolbarTask/index.d.ts +20 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/utils.d.ts +5 -0
- package/dist/types-ts4.5/plugins/text-color/commands/change-color.d.ts +3 -0
- package/dist/types-ts4.5/plugins/text-color/commands/remove-color.d.ts +2 -0
- package/dist/types-ts4.5/plugins/text-color/commands/toggle-color.d.ts +2 -0
- package/dist/types-ts4.5/plugins/text-color/index.d.ts +7 -0
- package/dist/types-ts4.5/plugins/text-color/pm-plugins/main.d.ts +25 -0
- package/dist/types-ts4.5/plugins/text-color/types.d.ts +12 -0
- package/dist/types-ts4.5/plugins/text-color/ui/ToolbarTextColor/icon.d.ts +2 -0
- package/dist/types-ts4.5/plugins/text-color/ui/ToolbarTextColor/index.d.ts +53 -0
- package/dist/types-ts4.5/plugins/text-color/ui/ToolbarTextColor/styles.d.ts +3 -0
- package/dist/types-ts4.5/plugins/text-color/utils/color.d.ts +6 -0
- package/dist/types-ts4.5/plugins/text-color/utils/disabled.d.ts +2 -0
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/index.d.ts +19 -0
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/pm-plugins/indentation-buttons.d.ts +17 -0
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/types.d.ts +20 -0
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/ui/Toolbar.d.ts +4 -0
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.d.ts +9 -0
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/ui/index.d.ts +24 -0
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/ui/onItemActivated.d.ts +8 -0
- package/dist/types-ts4.5/plugins/type-ahead/api.d.ts +61 -0
- package/dist/types-ts4.5/plugins/type-ahead/commands/insert-type-ahead-item.d.ts +12 -0
- package/dist/types-ts4.5/plugins/type-ahead/commands/update-list-items.d.ts +3 -0
- package/dist/types-ts4.5/plugins/type-ahead/commands/update-query.d.ts +2 -0
- package/dist/types-ts4.5/plugins/type-ahead/commands/update-selected-index.d.ts +2 -0
- package/dist/types-ts4.5/plugins/type-ahead/constants.d.ts +8 -0
- package/dist/types-ts4.5/plugins/type-ahead/index.d.ts +15 -0
- package/dist/types-ts4.5/plugins/type-ahead/insert-utils.d.ts +18 -0
- package/dist/types-ts4.5/plugins/type-ahead/messages.d.ts +72 -0
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/actions.d.ts +9 -0
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/decorations.d.ts +14 -0
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/input-rules.d.ts +6 -0
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/insert-item-plugin.d.ts +2 -0
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/key.d.ts +3 -0
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/main.d.ts +14 -0
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/reducer.d.ts +10 -0
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/utils.d.ts +4 -0
- package/dist/types-ts4.5/plugins/type-ahead/stats-modifier.d.ts +20 -0
- package/dist/types-ts4.5/plugins/type-ahead/transforms/close-type-ahead.d.ts +2 -0
- package/dist/types-ts4.5/plugins/type-ahead/transforms/open-typeahead-at-cursor.d.ts +11 -0
- package/dist/types-ts4.5/plugins/type-ahead/transforms/set-selection-before-query.d.ts +2 -0
- package/dist/types-ts4.5/plugins/type-ahead/types.d.ts +64 -0
- package/dist/types-ts4.5/plugins/type-ahead/ui/AssistiveText.d.ts +33 -0
- package/dist/types-ts4.5/plugins/type-ahead/ui/InputQuery.d.ts +26 -0
- package/dist/types-ts4.5/plugins/type-ahead/ui/TypeAheadList.d.ts +25 -0
- package/dist/types-ts4.5/plugins/type-ahead/ui/TypeAheadListItem.d.ts +18 -0
- package/dist/types-ts4.5/plugins/type-ahead/ui/TypeAheadPopup.d.ts +29 -0
- package/dist/types-ts4.5/plugins/type-ahead/ui/WrapperTypeAhead.d.ts +20 -0
- package/dist/types-ts4.5/plugins/type-ahead/ui/hooks/use-item-insert.d.ts +7 -0
- package/dist/types-ts4.5/plugins/type-ahead/ui/hooks/use-load-items.d.ts +3 -0
- package/dist/types-ts4.5/plugins/type-ahead/ui/hooks/use-on-force-select.d.ts +11 -0
- package/dist/types-ts4.5/plugins/type-ahead/utils.d.ts +27 -0
- package/dist/types-ts4.5/plugins/undo-redo/attach-input-meta.d.ts +5 -0
- package/dist/types-ts4.5/plugins/undo-redo/commands.d.ts +4 -0
- package/dist/types-ts4.5/plugins/undo-redo/enums.d.ts +4 -0
- package/dist/types-ts4.5/plugins/undo-redo/index.d.ts +3 -0
- package/dist/types-ts4.5/plugins/undo-redo/pm-plugins/keymaps.d.ts +2 -0
- package/dist/types-ts4.5/plugins/undo-redo/pm-plugins/main.d.ts +2 -0
- package/dist/types-ts4.5/plugins/undo-redo/pm-plugins/plugin-key.d.ts +2 -0
- package/dist/types-ts4.5/plugins/undo-redo/types.d.ts +7 -0
- package/dist/types-ts4.5/plugins/undo-redo/ui/ToolbarUndoRedo/index.d.ts +24 -0
- package/dist/types-ts4.5/plugins/view-update-subscription/index.d.ts +19 -0
- package/dist/types-ts4.5/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.d.ts +12 -0
- package/dist/types-ts4.5/plugins/view-update-subscription/subscribe/type-ahead-updates.d.ts +9 -0
- package/dist/types-ts4.5/preset-default.d.ts +1 -0
- package/dist/types-ts4.5/preset-universal.d.ts +1 -0
- package/dist/types-ts4.5/presets/context.d.ts +15 -0
- package/dist/types-ts4.5/stories/examples.d.ts +9 -0
- package/dist/types-ts4.5/test-utils.d.ts +40 -0
- package/dist/types-ts4.5/types/browser.d.ts +1 -0
- package/dist/types-ts4.5/types/command.d.ts +5 -0
- package/dist/types-ts4.5/types/dom-at-pos.d.ts +4 -0
- package/dist/types-ts4.5/types/editor-appearance-component.d.ts +50 -0
- package/dist/types-ts4.5/types/editor-appearance.d.ts +1 -0
- package/dist/types-ts4.5/types/editor-config.d.ts +25 -0
- package/dist/types-ts4.5/types/editor-instance.d.ts +19 -0
- package/dist/types-ts4.5/types/editor-onchange.d.ts +4 -0
- package/dist/types-ts4.5/types/editor-plugin.d.ts +1 -0
- package/dist/types-ts4.5/types/editor-props.d.ts +262 -0
- package/dist/types-ts4.5/types/editor-react-context.d.ts +1 -0
- package/dist/types-ts4.5/types/empty-state-handler.d.ts +1 -0
- package/dist/types-ts4.5/types/extension-config.d.ts +5 -0
- package/dist/types-ts4.5/types/feature-flags.d.ts +1 -0
- package/dist/types-ts4.5/types/i18n.d.ts +5 -0
- package/dist/types-ts4.5/types/index.d.ts +18 -0
- package/dist/types-ts4.5/types/performance-tracking.d.ts +1 -0
- package/dist/types-ts4.5/types/pm-config.d.ts +1 -0
- package/dist/types-ts4.5/types/pm-plugin-list.d.ts +9 -0
- package/dist/types-ts4.5/types/pm-plugin.d.ts +1 -0
- package/dist/types-ts4.5/types/ui-components.d.ts +1 -0
- package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/index.d.ts +10 -0
- package/dist/types-ts4.5/ui/Addon/ClickAreaInline/index.d.ts +8 -0
- package/dist/types-ts4.5/ui/Addon/ClickAreaMobile/index.d.ts +31 -0
- package/dist/types-ts4.5/ui/Addon/Dropdown/index.d.ts +14 -0
- package/dist/types-ts4.5/ui/Addon/Dropdown/styles.d.ts +1 -0
- package/dist/types-ts4.5/ui/Addon/DropdownItem/index.d.ts +5 -0
- package/dist/types-ts4.5/ui/Addon/DropdownItem/styles.d.ts +1 -0
- package/dist/types-ts4.5/ui/Addon/click-area-helper.d.ts +13 -0
- package/dist/types-ts4.5/ui/Addon/index.d.ts +6 -0
- package/dist/types-ts4.5/ui/Addon/types.d.ts +17 -0
- package/dist/types-ts4.5/ui/Alignment/AlignmentButton/index.d.ts +17 -0
- package/dist/types-ts4.5/ui/Alignment/index.d.ts +12 -0
- package/dist/types-ts4.5/ui/Alignment/styles.d.ts +1 -0
- package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +11 -0
- package/dist/types-ts4.5/ui/Appearance/Comment/Comment.d.ts +7 -0
- package/dist/types-ts4.5/ui/Appearance/Comment/Toolbar.d.ts +9 -0
- package/dist/types-ts4.5/ui/Appearance/Comment/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage.d.ts +3 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +39 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +38 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbar.d.ts +7 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +19 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/Appearance/Mobile.d.ts +3 -0
- package/dist/types-ts4.5/ui/AppearanceComponents/Mobile.d.ts +14 -0
- package/dist/types-ts4.5/ui/ChromeCollapsed/index.d.ts +11 -0
- package/dist/types-ts4.5/ui/ChromeCollapsed/messages.d.ts +7 -0
- package/dist/types-ts4.5/ui/ChromeCollapsed/styles.d.ts +1 -0
- package/dist/types-ts4.5/ui/CollapsedEditor/index.d.ts +19 -0
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/cellBackgroundColorPalette.d.ts +2 -0
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/common.d.ts +1 -0
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/paletteMessages.d.ts +2 -0
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/panelBackgroundPalette.d.ts +1 -0
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/statusColorPalette.d.ts +1 -0
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/textColorPalette.d.ts +1 -0
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/type.d.ts +1 -0
- package/dist/types-ts4.5/ui/ColorPalette/index.d.ts +3 -0
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanel.d.ts +22 -0
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanelFieldsLoader.d.ts +20 -0
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanelLoader.d.ts +5 -0
- package/dist/types-ts4.5/ui/ConfigPanel/ErrorMessage/ErrorImage.d.ts +4 -0
- package/dist/types-ts4.5/ui/ConfigPanel/ErrorMessage/index.d.ts +10 -0
- package/dist/types-ts4.5/ui/ConfigPanel/FieldMessages.d.ts +12 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Boolean.d.ts +8 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/CheckboxGroup.d.ts +8 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/ColorPicker.d.ts +21 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/CustomSelect.d.ts +24 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Date.d.ts +20 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/DateRange.d.ts +20 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Enum.d.ts +10 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Expand.d.ts +18 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Fieldset.d.ts +20 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Number.d.ts +10 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/RadioGroup.d.ts +8 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Select.d.ts +11 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/SelectItem.d.ts +5 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/String.d.ts +10 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/TabGroup.d.ts +15 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/UnhandledType.d.ts +6 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/UserSelect.d.ts +10 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/common/RequiredIndicator.d.ts +1 -0
- package/dist/types-ts4.5/ui/ConfigPanel/FormContent.d.ts +4 -0
- package/dist/types-ts4.5/ui/ConfigPanel/FormErrorBoundary.d.ts +16 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Header.d.ts +21 -0
- package/dist/types-ts4.5/ui/ConfigPanel/LoadingState.d.ts +4 -0
- package/dist/types-ts4.5/ui/ConfigPanel/NestedForms/RemovableField.d.ts +19 -0
- package/dist/types-ts4.5/ui/ConfigPanel/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/ConfigPanel/messages.d.ts +87 -0
- package/dist/types-ts4.5/ui/ConfigPanel/transformers.d.ts +9 -0
- package/dist/types-ts4.5/ui/ConfigPanel/types.d.ts +40 -0
- package/dist/types-ts4.5/ui/ConfigPanel/utils.d.ts +13 -0
- package/dist/types-ts4.5/ui/ContentStyles/date.d.ts +1 -0
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +14 -0
- package/dist/types-ts4.5/ui/ContentStyles/media.d.ts +1 -0
- package/dist/types-ts4.5/ui/ContextPanel/index.d.ts +41 -0
- package/dist/types-ts4.5/ui/EditorContext/index.d.ts +18 -0
- package/dist/types-ts4.5/ui/ElementBrowser/InsertMenu.d.ts +4 -0
- package/dist/types-ts4.5/ui/ElementBrowser/types.d.ts +22 -0
- package/dist/types-ts4.5/ui/ErrorBoundary/index.d.ts +26 -0
- package/dist/types-ts4.5/ui/FloatingToolbar/index.d.ts +28 -0
- package/dist/types-ts4.5/ui/FloatingToolbar/styles.d.ts +1 -0
- package/dist/types-ts4.5/ui/FloatingToolbar/utils.d.ts +13 -0
- package/dist/types-ts4.5/ui/MediaAndEmbedsToolbar/toolbar-messages.d.ts +12 -0
- package/dist/types-ts4.5/ui/PluginSlot/index.d.ts +39 -0
- package/dist/types-ts4.5/ui/PluginSlot/mount-plugin-hooks.d.ts +10 -0
- package/dist/types-ts4.5/ui/Toolbar/Toolbar.d.ts +3 -0
- package/dist/types-ts4.5/ui/Toolbar/ToolbarInner.d.ts +8 -0
- package/dist/types-ts4.5/ui/Toolbar/ToolbarWithSizeDetector.d.ts +4 -0
- package/dist/types-ts4.5/ui/Toolbar/hooks.d.ts +4 -0
- package/dist/types-ts4.5/ui/Toolbar/index.d.ts +4 -0
- package/dist/types-ts4.5/ui/Toolbar/toolbar-size.d.ts +4 -0
- package/dist/types-ts4.5/ui/Toolbar/toolbar-types.d.ts +34 -0
- package/dist/types-ts4.5/ui/Toolbar/types.d.ts +2 -0
- package/dist/types-ts4.5/ui/ToolbarButton/index.d.ts +4 -0
- package/dist/types-ts4.5/ui/ToolbarFeedback/index.d.ts +27 -0
- package/dist/types-ts4.5/ui/ToolbarFeedback/styles.d.ts +6 -0
- package/dist/types-ts4.5/ui/ToolbarHelp/index.d.ts +11 -0
- package/dist/types-ts4.5/ui/ToolbarHelp/messages.d.ts +7 -0
- package/dist/types-ts4.5/ui/WithEditorActions/index.d.ts +18 -0
- package/dist/types-ts4.5/ui/WithFlash/index.d.ts +11 -0
- package/dist/types-ts4.5/ui/WithHelpTrigger/index.d.ts +13 -0
- package/dist/types-ts4.5/ui/WithPluginState/index.d.ts +3 -0
- package/dist/types-ts4.5/ui/styles.d.ts +2 -0
- package/dist/types-ts4.5/ui/with-outer-listeners.d.ts +2 -0
- package/dist/types-ts4.5/use-preset.d.ts +46 -0
- package/dist/types-ts4.5/utils/action.d.ts +9 -0
- package/dist/types-ts4.5/utils/array.d.ts +1 -0
- package/dist/types-ts4.5/utils/clipboard.d.ts +1 -0
- package/dist/types-ts4.5/utils/commands.d.ts +14 -0
- package/dist/types-ts4.5/utils/deprecation-warnings.d.ts +8 -0
- package/dist/types-ts4.5/utils/document-logger.d.ts +6 -0
- package/dist/types-ts4.5/utils/document.d.ts +27 -0
- package/dist/types-ts4.5/utils/dom.d.ts +2 -0
- package/dist/types-ts4.5/utils/editorDeprecationWarnings.d.ts +2 -0
- package/dist/types-ts4.5/utils/extensions.d.ts +6 -0
- package/dist/types-ts4.5/utils/getAttrsWithChangesRecorder.d.ts +23 -0
- package/dist/types-ts4.5/utils/index.d.ts +65 -0
- package/dist/types-ts4.5/utils/is-full-page.d.ts +2 -0
- package/dist/types-ts4.5/utils/is-text-input.d.ts +2 -0
- package/dist/types-ts4.5/utils/node-width.d.ts +7 -0
- package/dist/types-ts4.5/utils/nodes-by-localIds.d.ts +8 -0
- package/dist/types-ts4.5/utils/nodes.d.ts +1 -0
- package/dist/types-ts4.5/utils/performance/components/RenderTracking.d.ts +13 -0
- package/dist/types-ts4.5/utils/performance/instrumented-plugin.d.ts +16 -0
- package/dist/types-ts4.5/utils/performance/measure-enum.d.ts +8 -0
- package/dist/types-ts4.5/utils/performance/outlier.d.ts +1 -0
- package/dist/types-ts4.5/utils/performance/percentile.d.ts +1 -0
- package/dist/types-ts4.5/utils/performance/plugin-performance-observer.d.ts +22 -0
- package/dist/types-ts4.5/utils/performance/plugin-performance-report.d.ts +48 -0
- package/dist/types-ts4.5/utils/performance/safer-transactions.d.ts +9 -0
- package/dist/types-ts4.5/utils/performance/simple-measure-to-entries.d.ts +28 -0
- package/dist/types-ts4.5/utils/performance/track-transactions.d.ts +30 -0
- package/dist/types-ts4.5/utils/pick-by.d.ts +2 -0
- package/dist/types-ts4.5/utils/plugin-state-factory.d.ts +2 -0
- package/dist/types-ts4.5/utils/prepare-extension-provider.d.ts +5 -0
- package/dist/types-ts4.5/utils/prepare-quick-insert-provider.d.ts +16 -0
- package/dist/types-ts4.5/utils/react-hooks/use-abortable-effect/index.d.ts +16 -0
- package/dist/types-ts4.5/utils/react-hooks/use-state-from-promise/index.d.ts +18 -0
- package/dist/types-ts4.5/utils/selection.d.ts +5 -0
- package/dist/types-ts4.5/utils/slice.d.ts +2 -0
- package/dist/types-ts4.5/utils/step.d.ts +1 -0
- package/dist/types-ts4.5/version-wrapper.d.ts +3 -0
- package/package.json +3 -3
- package/tmp/api-report-tmp.d.ts +791 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
+
import type { EmojiProvider } from '@atlaskit/emoji/resource';
|
|
5
|
+
import type { BlockType } from '@atlaskit/editor-plugin-block-type';
|
|
6
|
+
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
7
|
+
import type { MacroProvider } from '../../../macro';
|
|
8
|
+
export interface CreateItemsConfig {
|
|
9
|
+
isTypeAheadAllowed?: boolean;
|
|
10
|
+
tableSupported?: boolean;
|
|
11
|
+
mediaUploadsEnabled?: boolean;
|
|
12
|
+
mediaSupported?: boolean;
|
|
13
|
+
imageUploadSupported?: boolean;
|
|
14
|
+
imageUploadEnabled?: boolean;
|
|
15
|
+
mentionsSupported?: boolean;
|
|
16
|
+
mentionsDisabled?: boolean;
|
|
17
|
+
availableWrapperBlockTypes?: BlockType[];
|
|
18
|
+
actionSupported?: boolean;
|
|
19
|
+
decisionSupported?: boolean;
|
|
20
|
+
linkSupported?: boolean;
|
|
21
|
+
linkDisabled?: boolean;
|
|
22
|
+
emojiDisabled?: boolean;
|
|
23
|
+
nativeStatusSupported?: boolean;
|
|
24
|
+
dateEnabled?: boolean;
|
|
25
|
+
placeholderTextEnabled?: boolean;
|
|
26
|
+
horizontalRuleEnabled?: boolean;
|
|
27
|
+
layoutSectionEnabled?: boolean;
|
|
28
|
+
showElementBrowserLink?: boolean;
|
|
29
|
+
expandEnabled?: boolean;
|
|
30
|
+
insertMenuItems?: MenuItem[];
|
|
31
|
+
macroProvider?: MacroProvider | null;
|
|
32
|
+
emojiProvider?: Promise<EmojiProvider>;
|
|
33
|
+
schema: Schema;
|
|
34
|
+
numberOfButtons: number;
|
|
35
|
+
formatMessage: WrappedComponentProps['intl']['formatMessage'];
|
|
36
|
+
isNewMenuEnabled?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface BlockMenuItem extends MenuItem {
|
|
39
|
+
title: JSX.Element | null;
|
|
40
|
+
}
|
|
41
|
+
export declare const createItems: import("memoize-one").MemoizedFn<(config: CreateItemsConfig) => readonly [
|
|
42
|
+
BlockMenuItem[],
|
|
43
|
+
BlockMenuItem[]
|
|
44
|
+
]>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { ToolbarButtonRef } from '../../../../ui/ToolbarButton';
|
|
4
|
+
export interface DropDownButtonProps {
|
|
5
|
+
label: string;
|
|
6
|
+
selected: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
'aria-expanded': React.AriaAttributes['aria-expanded'];
|
|
9
|
+
'aria-haspopup': React.AriaAttributes['aria-haspopup'];
|
|
10
|
+
'aria-keyshortcuts'?: React.AriaAttributes['aria-keyshortcuts'];
|
|
11
|
+
onClick: React.MouseEventHandler;
|
|
12
|
+
onKeyDown?: React.KeyboardEventHandler;
|
|
13
|
+
spacing: 'none' | 'default';
|
|
14
|
+
handleRef(el: ToolbarButtonRef): void;
|
|
15
|
+
}
|
|
16
|
+
export declare const DropDownButton: React.StatelessComponent<DropDownButtonProps>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
+
import type { Props, State } from './types';
|
|
6
|
+
export declare class ToolbarInsertBlock extends React.PureComponent<Props & WrappedComponentProps, State> {
|
|
7
|
+
private dropdownButtonRef?;
|
|
8
|
+
private emojiButtonRef?;
|
|
9
|
+
private plusButtonRef?;
|
|
10
|
+
state: State;
|
|
11
|
+
static getDerivedStateFromProps(props: Props & WrappedComponentProps, state: State): State | null;
|
|
12
|
+
componentDidUpdate(prevProps: Props): void;
|
|
13
|
+
private onOpenChange;
|
|
14
|
+
private togglePlusMenuVisibility;
|
|
15
|
+
private toggleEmojiPicker;
|
|
16
|
+
private handleEmojiPressEscape;
|
|
17
|
+
private handleEmojiClickOutside;
|
|
18
|
+
private renderPopup;
|
|
19
|
+
private handleEmojiButtonRef;
|
|
20
|
+
private handlePlusButtonRef;
|
|
21
|
+
private handleDropDownButtonRef;
|
|
22
|
+
render(): jsx.JSX.Element | null;
|
|
23
|
+
private handleClick;
|
|
24
|
+
private handleOpenByKeyboard;
|
|
25
|
+
private toggleLinkPanel;
|
|
26
|
+
private insertMention;
|
|
27
|
+
private insertTable;
|
|
28
|
+
private createDate;
|
|
29
|
+
private createPlaceholderText;
|
|
30
|
+
private insertLayoutColumns;
|
|
31
|
+
private createStatus;
|
|
32
|
+
private openMediaPicker;
|
|
33
|
+
private insertTaskDecision;
|
|
34
|
+
private insertHorizontalRule;
|
|
35
|
+
private insertExpand;
|
|
36
|
+
private insertBlockType;
|
|
37
|
+
private handleSelectedEmoji;
|
|
38
|
+
private openElementBrowser;
|
|
39
|
+
private onItemActivated;
|
|
40
|
+
private insertToolbarMenuItem;
|
|
41
|
+
private insertInsertMenuItem;
|
|
42
|
+
}
|
|
43
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
44
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
45
|
+
};
|
|
46
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
4
|
+
export interface CreateInit {
|
|
5
|
+
content: string;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
tooltipDescription?: string;
|
|
8
|
+
'aria-label'?: React.AriaAttributes['aria-label'];
|
|
9
|
+
'aria-haspopup'?: React.AriaAttributes['aria-haspopup'];
|
|
10
|
+
}
|
|
11
|
+
export declare const action: (init: CreateInit) => MenuItem;
|
|
12
|
+
export declare const link: (init: CreateInit) => MenuItem;
|
|
13
|
+
export declare const media: (init: CreateInit) => MenuItem;
|
|
14
|
+
export declare const imageUpload: (init: CreateInit) => MenuItem;
|
|
15
|
+
export declare const mention: (init: CreateInit) => MenuItem;
|
|
16
|
+
export declare const emoji: (init: CreateInit) => MenuItem;
|
|
17
|
+
export declare const table: (init: CreateInit) => MenuItem;
|
|
18
|
+
export declare const layout: (init: CreateInit) => MenuItem;
|
|
19
|
+
export declare const codeblock: (init: CreateInit & {
|
|
20
|
+
shortcut?: string;
|
|
21
|
+
}) => MenuItem;
|
|
22
|
+
export declare const panel: (init: CreateInit & {
|
|
23
|
+
shortcut?: string;
|
|
24
|
+
}) => MenuItem;
|
|
25
|
+
export declare const blockquote: (init: CreateInit & {
|
|
26
|
+
shortcut?: string;
|
|
27
|
+
}) => MenuItem;
|
|
28
|
+
export declare const decision: (init: CreateInit) => MenuItem;
|
|
29
|
+
export declare const horizontalrule: (init: CreateInit) => MenuItem;
|
|
30
|
+
export declare const expand: (init: CreateInit) => MenuItem;
|
|
31
|
+
export declare const date: (init: CreateInit) => MenuItem;
|
|
32
|
+
export declare const placeholder: (init: CreateInit) => MenuItem;
|
|
33
|
+
export declare const status: (init: CreateInit) => MenuItem;
|
|
34
|
+
export declare const more: (init: CreateInit) => MenuItem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const shallowEquals: <T extends {}>([aRaw]: ReadonlyArray<unknown>, [bRaw]: ReadonlyArray<unknown>) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const triggerWrapper: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
+
import type { EditorActionsOptions as EditorActions, FeatureFlags, ImageUploadPluginReferenceEvent, Command, PluginInjectionAPIWithDependencies } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { EmojiProvider } from '@atlaskit/emoji';
|
|
5
|
+
import type { BlockType } from '@atlaskit/editor-plugin-block-type';
|
|
6
|
+
import type { MacroProvider } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
+
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
8
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
9
|
+
import type { BlockMenuItem } from './create-items';
|
|
10
|
+
import type { InsertBlockPluginDependencies } from '../../types';
|
|
11
|
+
export interface Props {
|
|
12
|
+
buttons: number;
|
|
13
|
+
isReducedSpacing: boolean;
|
|
14
|
+
isDisabled?: boolean;
|
|
15
|
+
isTypeAheadAllowed?: boolean;
|
|
16
|
+
editorView: EditorView;
|
|
17
|
+
editorActions?: EditorActions;
|
|
18
|
+
tableSupported?: boolean;
|
|
19
|
+
actionSupported?: boolean;
|
|
20
|
+
decisionSupported?: boolean;
|
|
21
|
+
mentionsSupported?: boolean;
|
|
22
|
+
mediaUploadsEnabled?: boolean;
|
|
23
|
+
mediaSupported?: boolean;
|
|
24
|
+
imageUploadSupported?: boolean;
|
|
25
|
+
imageUploadEnabled?: boolean;
|
|
26
|
+
handleImageUpload?: (event?: ImageUploadPluginReferenceEvent) => Command;
|
|
27
|
+
dateEnabled?: boolean;
|
|
28
|
+
horizontalRuleEnabled?: boolean;
|
|
29
|
+
placeholderTextEnabled?: boolean;
|
|
30
|
+
layoutSectionEnabled?: boolean;
|
|
31
|
+
expandEnabled?: boolean;
|
|
32
|
+
emojiProvider?: Promise<EmojiProvider>;
|
|
33
|
+
availableWrapperBlockTypes?: BlockType[];
|
|
34
|
+
linkSupported?: boolean;
|
|
35
|
+
linkDisabled?: boolean;
|
|
36
|
+
emojiDisabled?: boolean;
|
|
37
|
+
nativeStatusSupported?: boolean;
|
|
38
|
+
popupsMountPoint?: HTMLElement;
|
|
39
|
+
popupsBoundariesElement?: HTMLElement;
|
|
40
|
+
popupsScrollableElement?: HTMLElement;
|
|
41
|
+
macroProvider?: MacroProvider | null;
|
|
42
|
+
insertMenuItems?: MenuItem[];
|
|
43
|
+
showElementBrowserLink?: boolean;
|
|
44
|
+
showSeparator?: boolean;
|
|
45
|
+
replacePlusMenuWithElementBrowser?: boolean;
|
|
46
|
+
onShowMediaPicker?: () => void;
|
|
47
|
+
onInsertBlockType?: (name: string) => Command;
|
|
48
|
+
onInsertMacroFromMacroBrowser?: (macroProvider: MacroProvider, node?: PMNode, isEditing?: boolean) => (view: EditorView) => void;
|
|
49
|
+
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
50
|
+
featureFlags: FeatureFlags;
|
|
51
|
+
pluginInjectionApi?: PluginInjectionAPIWithDependencies<InsertBlockPluginDependencies>;
|
|
52
|
+
mentionsDisabled?: boolean;
|
|
53
|
+
}
|
|
54
|
+
export interface State {
|
|
55
|
+
isPlusMenuOpen: boolean;
|
|
56
|
+
emojiPickerOpen: boolean;
|
|
57
|
+
buttons: BlockMenuItem[];
|
|
58
|
+
dropdownItems: BlockMenuItem[];
|
|
59
|
+
isOpenedByKeyboard: boolean;
|
|
60
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import type { NextEditorPlugin } from '../../types';
|
|
3
|
+
export declare const pluginKey: PluginKey<any>;
|
|
4
|
+
declare const jiraIssuePlugin: NextEditorPlugin<'confluenceJiraIssue'>;
|
|
5
|
+
export default jiraIssuePlugin;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { Command } from '../../types/command';
|
|
3
|
+
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
import type { Change, PresetLayout } from './types';
|
|
5
|
+
import type { TOOLBAR_MENU_TYPE } from '@atlaskit/editor-common/types';
|
|
6
|
+
export declare const ONE_COL_LAYOUTS: PresetLayout[];
|
|
7
|
+
export declare const TWO_COL_LAYOUTS: PresetLayout[];
|
|
8
|
+
export declare const THREE_COL_LAYOUTS: PresetLayout[];
|
|
9
|
+
/**
|
|
10
|
+
* Finds layout preset based on the width attrs of all the layoutColumn nodes
|
|
11
|
+
* inside the layoutSection node
|
|
12
|
+
*/
|
|
13
|
+
export declare const getPresetLayout: (section: Node) => PresetLayout | undefined;
|
|
14
|
+
export declare const getSelectedLayout: (maybeLayoutSection: Node | undefined, current: PresetLayout) => PresetLayout;
|
|
15
|
+
export declare const createDefaultLayoutSection: (state: EditorState) => Node;
|
|
16
|
+
export declare const insertLayoutColumns: Command;
|
|
17
|
+
export declare const insertLayoutColumnsWithAnalytics: (inputMethod: TOOLBAR_MENU_TYPE) => Command;
|
|
18
|
+
export declare function forceSectionToPresetLayout(state: EditorState, node: Node, pos: number, presetLayout: PresetLayout): Transaction;
|
|
19
|
+
export declare const setPresetLayout: (layout: PresetLayout) => Command;
|
|
20
|
+
export declare const fixColumnSizes: (changedTr: Transaction, state: EditorState) => Change | undefined;
|
|
21
|
+
export declare const fixColumnStructure: (state: EditorState) => Transaction | undefined;
|
|
22
|
+
export declare const deleteActiveLayoutNode: Command;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
+
import { pluginKey } from './pm-plugins/plugin-key';
|
|
3
|
+
import type { LayoutPluginOptions } from './types';
|
|
4
|
+
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
5
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
6
|
+
export { pluginKey };
|
|
7
|
+
export type LayoutPlugin = NextEditorPlugin<'layout', {
|
|
8
|
+
pluginConfiguration: LayoutPluginOptions | undefined;
|
|
9
|
+
dependencies: [
|
|
10
|
+
DecorationsPlugin,
|
|
11
|
+
OptionalPlugin<AnalyticsPlugin>
|
|
12
|
+
];
|
|
13
|
+
}>;
|
|
14
|
+
declare const layoutPlugin: LayoutPlugin;
|
|
15
|
+
export default layoutPlugin;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
+
import type { LayoutState } from './types';
|
|
3
|
+
import type { LayoutPluginOptions } from '../types';
|
|
4
|
+
export declare const DEFAULT_LAYOUT = "two_equal";
|
|
5
|
+
declare const _default: (options: LayoutPluginOptions) => SafePlugin<LayoutState>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { PresetLayout } from '../types';
|
|
3
|
+
export type LayoutState = {
|
|
4
|
+
pos: number | null;
|
|
5
|
+
allowBreakout: boolean;
|
|
6
|
+
addSidebarLayouts: boolean;
|
|
7
|
+
selectedLayout: PresetLayout | undefined;
|
|
8
|
+
allowSingleColumnLayout: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type Change = {
|
|
11
|
+
from: number;
|
|
12
|
+
to: number;
|
|
13
|
+
slice: Slice;
|
|
14
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ThemeProps } from '@atlaskit/theme/types';
|
|
2
|
+
import { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING } from '@atlaskit/editor-common/styles';
|
|
3
|
+
export { LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN };
|
|
4
|
+
export declare const layoutStyles: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const toolbarMessages: {
|
|
2
|
+
singleColumn: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
twoColumns: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
threeColumns: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
rightSidebar: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
leftSidebar: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
threeColumnsWithSidebars: {
|
|
28
|
+
id: string;
|
|
29
|
+
defaultMessage: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IntlShape } from 'react-intl-next';
|
|
2
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
|
|
5
|
+
export declare const layoutToolbarTitle = "Layout floating controls";
|
|
6
|
+
export declare const buildToolbar: (state: EditorState, intl: IntlShape, pos: number, _allowBreakout: boolean, addSidebarLayouts: boolean, allowSingleColumnLayout: boolean, hoverDecoration: HoverDecorationHandler | undefined) => FloatingToolbarConfig | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
|
|
3
|
+
export interface LayoutPluginOptions extends LongPressSelectionPluginOptions {
|
|
4
|
+
allowBreakout?: boolean;
|
|
5
|
+
UNSAFE_addSidebarLayouts?: boolean;
|
|
6
|
+
UNSAFE_allowSingleColumnLayout?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export type PresetLayout = 'single' | 'two_equal' | 'three_equal' | 'two_right_sidebar' | 'two_left_sidebar' | 'three_with_sidebars';
|
|
9
|
+
export interface Change {
|
|
10
|
+
from: number;
|
|
11
|
+
to: number;
|
|
12
|
+
slice: Slice;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { unwrapContentFromLayout, removeLayoutFromFirstChild, removeLayoutFromLastChild, transformSliceToRemoveOpenLayoutNodes, } from '@atlaskit/editor-common/transforms';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
+
import type { Providers, MacroProvider, MacroAttributes } from '@atlaskit/editor-common/provider-factory';
|
|
5
|
+
export declare const insertMacroFromMacroBrowser: (macroProvider: MacroProvider, macroNode?: PmNode, isEditing?: boolean) => (view: EditorView) => Promise<boolean>;
|
|
6
|
+
export declare const resolveMacro: (macro?: MacroAttributes, state?: EditorState, optionalAttrs?: object) => PmNode | null;
|
|
7
|
+
export declare const runMacroAutoConvert: (state: EditorState, text: String) => PmNode | null;
|
|
8
|
+
export declare const setMacroProvider: (provider: Providers['macroProvider']) => (view: EditorView) => Promise<boolean>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
+
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
+
import type { Dispatch } from '../../event-dispatcher';
|
|
4
|
+
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { MacroState } from './types';
|
|
6
|
+
export type { MacroProvider, MacroAttributes, ExtensionType, } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
+
export { insertMacroFromMacroBrowser, resolveMacro, runMacroAutoConvert, setMacroProvider, } from './actions';
|
|
8
|
+
export type { MacroState };
|
|
9
|
+
export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory) => SafePlugin<any>;
|
|
10
|
+
declare const macroPlugin: NextEditorPlugin<'macro'>;
|
|
11
|
+
export default macroPlugin;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
+
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { Dispatch } from '../../event-dispatcher';
|
|
5
|
+
export declare const pluginKey: PluginKey<MaxContentSizePluginState>;
|
|
6
|
+
export type MaxContentSizePluginState = {
|
|
7
|
+
maxContentSizeReached: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare function createPlugin(dispatch: Dispatch, maxContentSize?: number): SafePlugin | undefined;
|
|
10
|
+
declare const maxContentSizePlugin: NextEditorPlugin<'maxContentSize', {
|
|
11
|
+
pluginConfiguration: number | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
export default maxContentSizePlugin;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { EventType, GasPayload } from '@atlaskit/analytics-gas-types';
|
|
2
|
+
import type { MentionDescription } from '@atlaskit/mention/resource';
|
|
3
|
+
import type { InviteExperimentCohort, UserRole } from '@atlaskit/mention';
|
|
4
|
+
import type { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
5
|
+
import type { TeamInfoAttrAnalytics } from './types';
|
|
6
|
+
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
+
export declare const buildAnalyticsPayload: (actionSubject: string, action: string, eventType: EventType, sessionId: string, otherAttributes?: {}, tags?: Array<string>) => GasPayload;
|
|
8
|
+
export declare const buildTypeAheadCancelPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, query?: string) => GasPayload;
|
|
9
|
+
export declare const buildTypeAheadInviteItemViewedPayload: (sessionId: string, contextIdentifierProvider?: ContextIdentifierProvider, userRole?: UserRole) => GasPayload;
|
|
10
|
+
export declare const buildTypeAheadInviteExposurePayload: (sessionId: string, contextIdentifierProvider?: ContextIdentifierProvider, inviteExperimentCohort?: InviteExperimentCohort, userRole?: UserRole) => GasPayload;
|
|
11
|
+
export declare const buildTypeAheadInviteItemClickedPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, insertType: SelectItemMode, query?: string, contextIdentifierProvider?: ContextIdentifierProvider, userRole?: UserRole) => GasPayload;
|
|
12
|
+
export declare const buildTypeAheadInsertedPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, insertType: SelectItemMode, mention: MentionDescription, mentionList?: MentionDescription[], query?: string, contextIdentifierProvider?: ContextIdentifierProvider) => GasPayload;
|
|
13
|
+
export declare const buildTypeAheadRenderedPayload: (duration: number, userIds: Array<string> | null, query: string, teams: TeamInfoAttrAnalytics[] | null) => GasPayload;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { NextEditorPlugin, OptionalPlugin, TypeAheadHandler } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { MentionPluginOptions, MentionPluginState } from './types';
|
|
3
|
+
import { mentionPluginKey } from './pm-plugins/key';
|
|
4
|
+
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
|
+
import type { TypeAheadPlugin, TypeAheadInputMethod } from '@atlaskit/editor-plugin-type-ahead';
|
|
6
|
+
export { mentionPluginKey };
|
|
7
|
+
export type MentionSharedState = MentionPluginState & {
|
|
8
|
+
typeAheadHandler: TypeAheadHandler;
|
|
9
|
+
};
|
|
10
|
+
export type MentionPlugin = NextEditorPlugin<'mention', {
|
|
11
|
+
pluginConfiguration: MentionPluginOptions | undefined;
|
|
12
|
+
dependencies: [
|
|
13
|
+
OptionalPlugin<typeof analyticsPlugin>,
|
|
14
|
+
TypeAheadPlugin
|
|
15
|
+
];
|
|
16
|
+
sharedState: MentionSharedState | undefined;
|
|
17
|
+
actions: {
|
|
18
|
+
openTypeAhead: (inputMethod: TypeAheadInputMethod) => boolean;
|
|
19
|
+
};
|
|
20
|
+
}>;
|
|
21
|
+
declare const mentionsPlugin: MentionPlugin;
|
|
22
|
+
export default mentionsPlugin;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const messages: {
|
|
2
|
+
inviteItemTitle: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
mentionsAddLabel: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
mentionsIconLabel: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
mentionsNodeLabel: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
+
import { MentionPluginOptions } from '../types';
|
|
4
|
+
import type { InlineNodeViewComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
5
|
+
export type Props = InlineNodeViewComponentProps & {
|
|
6
|
+
options: MentionPluginOptions | undefined;
|
|
7
|
+
providerFactory: ProviderFactory;
|
|
8
|
+
};
|
|
9
|
+
export declare const MentionNodeView: React.FC<Props>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
+
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
+
import type { Command, PMPluginFactoryParams } from '../../../types';
|
|
4
|
+
import type { MentionPluginOptions, MentionPluginState } from '../types';
|
|
5
|
+
export declare const setContext: (context: ContextIdentifierProvider | undefined) => Command;
|
|
6
|
+
export declare function createMentionPlugin(pmPluginFactoryParams: PMPluginFactoryParams, fireEvent: (payload: any) => void, options?: MentionPluginOptions): SafePlugin<MentionPluginState>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import type { MentionPluginState } from '../types';
|
|
3
|
+
export declare function getMentionPluginState(state: EditorState): MentionPluginState;
|
|
4
|
+
export declare const canMentionBeCreatedInRange: (from: number, to: number) => (state: EditorState) => boolean;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { MentionDescription } from '@atlaskit/mention/resource';
|
|
3
|
+
import type { TypeAheadHandler, TypeAheadItem } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { FireElementsChannelEvent } from '../types';
|
|
5
|
+
export declare const mentionToTypeaheadItem: (mention: MentionDescription) => TypeAheadItem;
|
|
6
|
+
export declare function memoize<ResultFn extends (mention: MentionDescription) => TypeAheadItem>(fn: ResultFn): {
|
|
7
|
+
call: ResultFn;
|
|
8
|
+
clear(): void;
|
|
9
|
+
};
|
|
10
|
+
type Props = {
|
|
11
|
+
sanitizePrivateContent?: boolean;
|
|
12
|
+
mentionInsertDisplayName?: boolean;
|
|
13
|
+
HighlightComponent?: React.ComponentType;
|
|
14
|
+
fireEvent: FireElementsChannelEvent;
|
|
15
|
+
};
|
|
16
|
+
export declare const createTypeAheadConfig: ({ sanitizePrivateContent, mentionInsertDisplayName, fireEvent, HighlightComponent, }: Props) => TypeAheadHandler;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { MentionDescription, MentionProvider } from '@atlaskit/mention';
|
|
3
|
+
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
+
import type { AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
5
|
+
export interface TeamInfoAttrAnalytics {
|
|
6
|
+
teamId: String;
|
|
7
|
+
includesYou: boolean;
|
|
8
|
+
memberCount: number;
|
|
9
|
+
}
|
|
10
|
+
export interface MentionPluginConfig {
|
|
11
|
+
HighlightComponent?: React.ComponentType;
|
|
12
|
+
insertDisplayName?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface MentionPluginOptions extends MentionPluginConfig {
|
|
15
|
+
sanitizePrivateContent?: boolean;
|
|
16
|
+
allowZeroWidthSpaceAfter?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export type MentionPluginState = {
|
|
19
|
+
mentionProvider?: MentionProvider;
|
|
20
|
+
contextIdentifierProvider?: ContextIdentifierProvider;
|
|
21
|
+
mentions?: Array<MentionDescription>;
|
|
22
|
+
canInsertMention?: boolean;
|
|
23
|
+
};
|
|
24
|
+
export type FireElementsChannelEvent = <T extends AnalyticsEventPayload>(payload: T) => void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MentionDescription } from '@atlaskit/mention/resource';
|
|
2
|
+
import { UserRole } from '@atlaskit/mention';
|
|
3
|
+
import React, { SyntheticEvent } from 'react';
|
|
4
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
+
interface OnMentionEvent {
|
|
6
|
+
(mention: MentionDescription, event?: SyntheticEvent<any>): void;
|
|
7
|
+
}
|
|
8
|
+
export declare const INVITE_ITEM_DESCRIPTION: {
|
|
9
|
+
id: string;
|
|
10
|
+
};
|
|
11
|
+
interface Props {
|
|
12
|
+
productName?: string;
|
|
13
|
+
onMount?: () => void;
|
|
14
|
+
onMouseEnter?: OnMentionEvent;
|
|
15
|
+
onSelection?: OnMentionEvent;
|
|
16
|
+
selected?: boolean;
|
|
17
|
+
userRole?: UserRole;
|
|
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,8 @@
|
|
|
1
|
+
export declare const ROW_SIDE_PADDING = 14;
|
|
2
|
+
export declare const rowStyle: import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const AVATAR_HEIGHT = 36;
|
|
4
|
+
export declare const avatarStyle: import("@emotion/react").SerializedStyles;
|
|
5
|
+
export declare const nameSectionStyle: import("@emotion/react").SerializedStyles;
|
|
6
|
+
export declare const mentionItemStyle: import("@emotion/react").SerializedStyles;
|
|
7
|
+
export declare const mentionItemSelectedStyle: import("@emotion/react").SerializedStyles;
|
|
8
|
+
export declare const capitalizedStyle: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PureComponent } from 'react';
|
|
2
|
+
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
+
import type { MentionEventHandlers } from '@atlaskit/editor-common/ui';
|
|
4
|
+
export interface MentionProps {
|
|
5
|
+
id: string;
|
|
6
|
+
providers?: ProviderFactory;
|
|
7
|
+
eventHandlers?: MentionEventHandlers;
|
|
8
|
+
text: string;
|
|
9
|
+
accessLevel?: string;
|
|
10
|
+
}
|
|
11
|
+
export default class Mention extends PureComponent<MentionProps, {}> {
|
|
12
|
+
static displayName: string;
|
|
13
|
+
private providerFactory;
|
|
14
|
+
constructor(props: MentionProps);
|
|
15
|
+
componentDidMount(): void;
|
|
16
|
+
componentWillUnmount(): void;
|
|
17
|
+
private renderWithProvider;
|
|
18
|
+
render(): JSX.Element;
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
interface Props {
|
|
5
|
+
onInsertMention: () => void;
|
|
6
|
+
editorView?: EditorView;
|
|
7
|
+
isDisabled?: boolean;
|
|
8
|
+
testId?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
11
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MentionDescription } from '@atlaskit/mention';
|
|
2
|
+
export declare const isTeamType: (userType: any) => Boolean;
|
|
3
|
+
export declare const isTeamStats: (stat: any) => Boolean;
|
|
4
|
+
export declare const isInviteItem: (mention: MentionDescription) => Boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Actions
|
|
7
|
+
*/
|
|
8
|
+
export declare const shouldKeepInviteItem: (query: string, firstQueryWithoutResults: string) => boolean;
|