@atlaskit/editor-core 188.7.0 → 188.7.5
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 +14 -0
- package/dist/cjs/messages.js +1 -2
- package/dist/cjs/plugins/status/index.js +3 -3
- package/dist/cjs/plugins/status/nodeviews/status.js +4 -3
- package/dist/cjs/plugins/status/ui/statusPicker.js +7 -2
- package/dist/cjs/ui/ContentStyles/index.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/messages.js +1 -2
- package/dist/es2019/plugins/status/index.js +1 -1
- package/dist/es2019/plugins/status/nodeviews/status.js +3 -2
- package/dist/es2019/plugins/status/ui/statusPicker.js +6 -2
- package/dist/es2019/ui/ContentStyles/index.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/messages.js +1 -2
- package/dist/esm/plugins/status/index.js +1 -1
- package/dist/esm/plugins/status/nodeviews/status.js +3 -2
- package/dist/esm/plugins/status/ui/statusPicker.js +7 -2
- package/dist/esm/ui/ContentStyles/index.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/messages.d.ts +1 -2
- package/dist/types/plugins/status/analytics.d.ts +1 -1
- package/dist/types/plugins/status/nodeviews/status.d.ts +2 -1
- package/dist/types/plugins/status/ui/statusPicker.d.ts +1 -0
- package/dist/types/ui/ContentStyles/status.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 +7 -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/plugins/status/nodeviews → types-ts4.5/plugins/alignment/ui/ToolbarAlignment}/messages.d.ts +8 -3
- 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/status.d.ts +25 -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/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 +4 -4
- package/tmp/api-report-tmp.d.ts +791 -0
- package/dist/cjs/plugins/status/nodeviews/messages.js +0 -24
- package/dist/es2019/plugins/status/nodeviews/messages.js +0 -18
- package/dist/esm/plugins/status/nodeviews/messages.js +0 -18
- /package/dist/cjs/{plugins/status/styles.js → ui/ContentStyles/status.js} +0 -0
- /package/dist/es2019/{plugins/status/styles.js → ui/ContentStyles/status.js} +0 -0
- /package/dist/esm/{plugins/status/styles.js → ui/ContentStyles/status.js} +0 -0
- /package/dist/{types/plugins/status/styles.d.ts → types-ts4.5/ui/ContentStyles/status.d.ts} +0 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
+
import type { ExtensionProvider, ReferenceEntity } from '@atlaskit/editor-common/extensions';
|
|
5
|
+
import type { ProsemirrorGetPosHandler } from '../../../../../nodeviews';
|
|
6
|
+
import type { EditorAppearance } from '../../../../../types/editor-appearance';
|
|
7
|
+
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
8
|
+
import type { PluginInjectionAPIWithDependency } from '@atlaskit/editor-common/types';
|
|
9
|
+
export interface Props {
|
|
10
|
+
node: PmNode;
|
|
11
|
+
getPos: ProsemirrorGetPosHandler;
|
|
12
|
+
view: EditorView;
|
|
13
|
+
extensionProvider?: ExtensionProvider;
|
|
14
|
+
handleContentDOMRef: (node: HTMLElement | null) => void;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
references?: ReferenceEntity[];
|
|
17
|
+
hideFrame?: boolean;
|
|
18
|
+
editorAppearance?: EditorAppearance;
|
|
19
|
+
pluginInjectionApi: PluginInjectionAPIWithDependency<WidthPlugin> | undefined;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* End workaround
|
|
23
|
+
*/
|
|
24
|
+
declare const _default: {
|
|
25
|
+
new (props: Props | Readonly<Props>): {
|
|
26
|
+
overflowContainer?: HTMLElement | null | undefined;
|
|
27
|
+
container?: HTMLElement | undefined;
|
|
28
|
+
shadowObserver?: import("@atlaskit/editor-common/ui").ShadowObserver | undefined;
|
|
29
|
+
overflowContainerWidth: number;
|
|
30
|
+
scrollable?: NodeList | undefined;
|
|
31
|
+
diff?: number | undefined;
|
|
32
|
+
state: {
|
|
33
|
+
showLeftShadow: boolean;
|
|
34
|
+
showRightShadow: boolean;
|
|
35
|
+
};
|
|
36
|
+
componentWillUnmount(): void;
|
|
37
|
+
componentDidUpdate(): void;
|
|
38
|
+
handleScroll: (event: Event) => void;
|
|
39
|
+
updateShadows: () => void;
|
|
40
|
+
showLeftShadow: (overflowContainer: HTMLElement | null | undefined) => boolean;
|
|
41
|
+
calcOverflowDiff: () => number;
|
|
42
|
+
calcScrollableWidth: () => number;
|
|
43
|
+
handleContainer: (container: HTMLElement | null) => void;
|
|
44
|
+
initShadowObserver(): void;
|
|
45
|
+
render(): JSX.Element;
|
|
46
|
+
context: any;
|
|
47
|
+
setState<K extends keyof import("@atlaskit/editor-common/ui").OverflowShadowState>(state: import("@atlaskit/editor-common/ui").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common/ui").OverflowShadowState | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K> | null) | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
|
|
48
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
49
|
+
readonly props: Readonly<Props> & Readonly<{
|
|
50
|
+
children?: React.ReactNode;
|
|
51
|
+
}>;
|
|
52
|
+
refs: {
|
|
53
|
+
[key: string]: React.ReactInstance;
|
|
54
|
+
};
|
|
55
|
+
componentDidMount?(): void;
|
|
56
|
+
shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): boolean;
|
|
57
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
58
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>): any;
|
|
59
|
+
componentWillMount?(): void;
|
|
60
|
+
UNSAFE_componentWillMount?(): void;
|
|
61
|
+
componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
|
|
62
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
|
|
63
|
+
componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
64
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
65
|
+
};
|
|
66
|
+
new (props: Props, context: any): {
|
|
67
|
+
overflowContainer?: HTMLElement | null | undefined;
|
|
68
|
+
container?: HTMLElement | undefined;
|
|
69
|
+
shadowObserver?: import("@atlaskit/editor-common/ui").ShadowObserver | undefined;
|
|
70
|
+
overflowContainerWidth: number;
|
|
71
|
+
scrollable?: NodeList | undefined;
|
|
72
|
+
diff?: number | undefined;
|
|
73
|
+
state: {
|
|
74
|
+
showLeftShadow: boolean;
|
|
75
|
+
showRightShadow: boolean;
|
|
76
|
+
};
|
|
77
|
+
componentWillUnmount(): void;
|
|
78
|
+
componentDidUpdate(): void;
|
|
79
|
+
handleScroll: (event: Event) => void;
|
|
80
|
+
updateShadows: () => void;
|
|
81
|
+
showLeftShadow: (overflowContainer: HTMLElement | null | undefined) => boolean;
|
|
82
|
+
calcOverflowDiff: () => number;
|
|
83
|
+
calcScrollableWidth: () => number;
|
|
84
|
+
handleContainer: (container: HTMLElement | null) => void;
|
|
85
|
+
initShadowObserver(): void;
|
|
86
|
+
render(): JSX.Element;
|
|
87
|
+
context: any;
|
|
88
|
+
setState<K_1 extends keyof import("@atlaskit/editor-common/ui").OverflowShadowState>(state: import("@atlaskit/editor-common/ui").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common/ui").OverflowShadowState | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K_1> | null) | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K_1> | null, callback?: (() => void) | undefined): void;
|
|
89
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
90
|
+
readonly props: Readonly<Props> & Readonly<{
|
|
91
|
+
children?: React.ReactNode;
|
|
92
|
+
}>;
|
|
93
|
+
refs: {
|
|
94
|
+
[key: string]: React.ReactInstance;
|
|
95
|
+
};
|
|
96
|
+
componentDidMount?(): void;
|
|
97
|
+
shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): boolean;
|
|
98
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
99
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>): any;
|
|
100
|
+
componentWillMount?(): void;
|
|
101
|
+
UNSAFE_componentWillMount?(): void;
|
|
102
|
+
componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
|
|
103
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
|
|
104
|
+
componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
105
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
106
|
+
};
|
|
107
|
+
contextType?: React.Context<any> | undefined;
|
|
108
|
+
};
|
|
109
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ThemeProps } from '@atlaskit/theme/types';
|
|
2
|
+
export declare const widerLayoutClassName = "wider-layout";
|
|
3
|
+
export declare const wrapperStyle: (theme: ThemeProps) => import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const header: import("@emotion/react").SerializedStyles;
|
|
5
|
+
export declare const content: (theme: ThemeProps) => import("@emotion/react").SerializedStyles;
|
|
6
|
+
export declare const contentWrapper: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
+
import { getNodeRenderer, getExtensionModuleNodePrivateProps } from '@atlaskit/editor-common/extensions';
|
|
5
|
+
import type { ExtensionHandlers, ExtensionProvider, ReferenceEntity } from '@atlaskit/editor-common/extensions';
|
|
6
|
+
import type { ProsemirrorGetPosHandler } from '../../../../nodeviews';
|
|
7
|
+
import type { EditorAppearance } from '../../../../types/editor-appearance';
|
|
8
|
+
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
9
|
+
import type { PluginInjectionAPIWithDependency } from '@atlaskit/editor-common/types';
|
|
10
|
+
export interface Props {
|
|
11
|
+
editorView: EditorView;
|
|
12
|
+
node: PMNode;
|
|
13
|
+
getPos: ProsemirrorGetPosHandler;
|
|
14
|
+
handleContentDOMRef: (node: HTMLElement | null) => void;
|
|
15
|
+
extensionHandlers: ExtensionHandlers;
|
|
16
|
+
extensionProvider?: Promise<ExtensionProvider>;
|
|
17
|
+
references?: ReferenceEntity[];
|
|
18
|
+
editorAppearance?: EditorAppearance;
|
|
19
|
+
pluginInjectionApi: PluginInjectionAPIWithDependency<WidthPlugin> | undefined;
|
|
20
|
+
}
|
|
21
|
+
export interface State {
|
|
22
|
+
extensionProvider?: ExtensionProvider;
|
|
23
|
+
extensionHandlersFromProvider?: ExtensionHandlers;
|
|
24
|
+
_privateProps?: {
|
|
25
|
+
__hideFrame?: boolean;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export default class ExtensionComponent extends Component<Props, State> {
|
|
29
|
+
private privatePropsParsed;
|
|
30
|
+
state: State;
|
|
31
|
+
mounted: boolean;
|
|
32
|
+
UNSAFE_componentWillMount(): void;
|
|
33
|
+
componentDidMount(): void;
|
|
34
|
+
componentDidUpdate(): void;
|
|
35
|
+
componentWillUnmount(): void;
|
|
36
|
+
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
|
|
37
|
+
getNodeRenderer: import("memoize-one").MemoizedFn<typeof getNodeRenderer>;
|
|
38
|
+
getExtensionModuleNodePrivateProps: import("memoize-one").MemoizedFn<typeof getExtensionModuleNodePrivateProps>;
|
|
39
|
+
render(): JSX.Element | null;
|
|
40
|
+
private setStateFromPromise;
|
|
41
|
+
/**
|
|
42
|
+
* Parses any private nodes once an extension provider is available.
|
|
43
|
+
*
|
|
44
|
+
* We do this separately from resolving a node renderer component since the
|
|
45
|
+
* private props come from extension provider, rather than an extension
|
|
46
|
+
* handler which only handles `render`/component concerns.
|
|
47
|
+
*/
|
|
48
|
+
private parsePrivateNodePropsIfNeeded;
|
|
49
|
+
private tryExtensionHandler;
|
|
50
|
+
private handleExtension;
|
|
51
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
import { Component } from 'react';
|
|
5
|
+
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
6
|
+
export interface Props {
|
|
7
|
+
node: PmNode;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export default class InlineExtension extends Component<Props, any> {
|
|
11
|
+
render(): jsx.JSX.Element;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
|
+
import { Component } from 'react';
|
|
4
|
+
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
+
export declare const capitalizeFirstLetter: (str: string) => string;
|
|
6
|
+
export interface Props {
|
|
7
|
+
node: PmNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const ICON_SIZE = 24;
|
|
10
|
+
export default class ExtensionLozenge extends Component<Props, any> {
|
|
11
|
+
render(): jsx.JSX.Element;
|
|
12
|
+
private renderImage;
|
|
13
|
+
private renderFallback;
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
+
import type { ExtensionHandlers, ReferenceEntity } from '@atlaskit/editor-common/extensions';
|
|
5
|
+
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
|
+
import type { ProsemirrorGetPosHandler } from '../../../../nodeviews/types';
|
|
7
|
+
import type { EditorAppearance } from '../../../../types/editor-appearance';
|
|
8
|
+
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
9
|
+
import type { PluginInjectionAPIWithDependency } from '@atlaskit/editor-common/types';
|
|
10
|
+
export interface Props {
|
|
11
|
+
editorView: EditorView;
|
|
12
|
+
node: PMNode;
|
|
13
|
+
getPos: ProsemirrorGetPosHandler;
|
|
14
|
+
providerFactory?: ProviderFactory;
|
|
15
|
+
handleContentDOMRef: (node: HTMLElement | null) => void;
|
|
16
|
+
extensionHandlers: ExtensionHandlers;
|
|
17
|
+
references?: ReferenceEntity[];
|
|
18
|
+
editorAppearance?: EditorAppearance;
|
|
19
|
+
pluginInjectionApi: PluginInjectionAPIWithDependency<WidthPlugin> | undefined;
|
|
20
|
+
}
|
|
21
|
+
export default class Extension extends Component<Props, any> {
|
|
22
|
+
static displayName: string;
|
|
23
|
+
private providerFactory;
|
|
24
|
+
constructor(props: Props);
|
|
25
|
+
componentWillUnmount(): void;
|
|
26
|
+
private renderWithProvider;
|
|
27
|
+
render(): JSX.Element;
|
|
28
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ThemeProps } from '@atlaskit/theme/types';
|
|
2
|
+
import { EXTENSION_PADDING, BODIED_EXT_PADDING } from '@atlaskit/editor-common/styles';
|
|
3
|
+
export { EXTENSION_PADDING as padding, BODIED_EXT_PADDING };
|
|
4
|
+
export declare const wrapperDefault: (theme: ThemeProps) => import("@emotion/react").SerializedStyles;
|
|
5
|
+
export declare const overlay: import("@emotion/react").SerializedStyles;
|
|
6
|
+
export declare const placeholderFallback: import("@emotion/react").SerializedStyles;
|
|
7
|
+
export declare const placeholderFallbackParams: import("@emotion/react").SerializedStyles;
|
|
8
|
+
export declare const styledImage: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface SaveIndicatorRenderOptions {
|
|
3
|
+
onSaveStarted: () => void;
|
|
4
|
+
onSaveEnded: () => void;
|
|
5
|
+
}
|
|
6
|
+
export interface SaveIndicatorProps {
|
|
7
|
+
children: (options: SaveIndicatorRenderOptions) => ReactNode;
|
|
8
|
+
duration: number;
|
|
9
|
+
visible?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const extensionStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Schema, Mark } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
+
import type { NodeWithPos, DomAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
5
|
+
export declare const getSelectedExtension: (state: EditorState, searchParent?: boolean) => import("prosemirror-utils/dist/types").ContentNodeWithPos | undefined;
|
|
6
|
+
export declare const findExtensionWithLocalId: (state: EditorState, localId?: string) => NodeWithPos | undefined;
|
|
7
|
+
export declare const getSelectedDomElement: (schema: Schema, domAtPos: DomAtPos, selectedExtensionNode: NodeWithPos) => HTMLElement;
|
|
8
|
+
export declare const getDataConsumerMark: (newNode: PMNode) => Mark | undefined;
|
|
9
|
+
export declare const getNodeTypesReferenced: (ids: string[], state: EditorState) => string[];
|
|
10
|
+
export declare const findNodePosWithLocalId: (state: EditorState, localId: string) => NodeWithPos | undefined;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { EditorState, SelectionBookmark, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
+
import type { Node, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
+
import { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
6
|
+
import type { Mappable } from '@atlaskit/editor-prosemirror/transform';
|
|
7
|
+
export declare class FakeTextCursorBookmark {
|
|
8
|
+
pos: undefined | number;
|
|
9
|
+
visible: boolean;
|
|
10
|
+
constructor(pos: number);
|
|
11
|
+
map(mapping: Mappable): FakeTextCursorBookmark;
|
|
12
|
+
resolve(doc: Node): Selection;
|
|
13
|
+
}
|
|
14
|
+
export declare class FakeTextCursorSelection extends Selection {
|
|
15
|
+
constructor($pos: ResolvedPos);
|
|
16
|
+
map(doc: Node, mapping: Mappable): Selection;
|
|
17
|
+
static content(): Slice;
|
|
18
|
+
eq(other: Selection): boolean;
|
|
19
|
+
toJSON(): {
|
|
20
|
+
type: string;
|
|
21
|
+
pos: number;
|
|
22
|
+
};
|
|
23
|
+
static fromJSON(doc: Node, json: {
|
|
24
|
+
pos: number;
|
|
25
|
+
}): Selection;
|
|
26
|
+
getBookmark(): SelectionBookmark;
|
|
27
|
+
}
|
|
28
|
+
export declare const addFakeTextCursor: (state: EditorState, dispatch: (tr: Transaction) => void) => void;
|
|
29
|
+
export declare const removeFakeTextCursor: (state: EditorState, dispatch: (tr: Transaction) => void) => void;
|
|
30
|
+
export declare const drawFakeTextCursor: (state: EditorState) => DecorationSet | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
export declare const stateKey: PluginKey<any>;
|
|
5
|
+
export declare const createPlugin: () => SafePlugin<any>;
|
|
6
|
+
declare const fakeTextCursorPlugin: NextEditorPlugin<'fakeTextCursor'>;
|
|
7
|
+
export default fakeTextCursorPlugin;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const fakeCursorStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FeedbackInfo } from '../../types';
|
|
2
|
+
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
3
|
+
export declare const openFeedbackDialog: (feedbackInfo?: FeedbackInfo) => Promise<unknown>;
|
|
4
|
+
declare const feedbackDialog: NextEditorPlugin<'feedbackDialog', {
|
|
5
|
+
pluginConfiguration: FeedbackInfo;
|
|
6
|
+
}>;
|
|
7
|
+
export default feedbackDialog;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Window {
|
|
3
|
+
jQuery: any;
|
|
4
|
+
ATL_JQ_PAGE_PROPS: any;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
declare const loadJiraCollectorDialogScript: (labels: Array<string>, packageName: string, coreVersion: string, packageVersion: string, sessionId: string, contentId: string, tabId: string) => Promise<() => void>;
|
|
8
|
+
export default loadJiraCollectorDialogScript;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
+
import type { DispatchAnalyticsEvent } from '../analytics';
|
|
4
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
|
+
export type FindReplaceToolbarButtonWithStateProps = {
|
|
6
|
+
popupsBoundariesElement?: HTMLElement;
|
|
7
|
+
popupsMountPoint?: HTMLElement;
|
|
8
|
+
popupsScrollableElement?: HTMLElement;
|
|
9
|
+
isToolbarReducedSpacing?: boolean;
|
|
10
|
+
editorView: EditorView;
|
|
11
|
+
containerElement: HTMLElement | null;
|
|
12
|
+
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
13
|
+
takeFullWidth?: boolean;
|
|
14
|
+
featureFlags: FeatureFlags;
|
|
15
|
+
};
|
|
16
|
+
declare const FindReplaceToolbarButtonWithState: React.FunctionComponent<FindReplaceToolbarButtonWithStateProps>;
|
|
17
|
+
export default FindReplaceToolbarButtonWithState;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
+
import type { Match } from './types';
|
|
3
|
+
export declare enum FindReplaceActionTypes {
|
|
4
|
+
ACTIVATE = "ACTIVATE",
|
|
5
|
+
FIND = "FIND",
|
|
6
|
+
UPDATE_DECORATIONS = "UPDATE_DECORATIONS",
|
|
7
|
+
FIND_NEXT = "FIND_NEXT",
|
|
8
|
+
FIND_PREVIOUS = "FIND_PREVIOUS",
|
|
9
|
+
REPLACE = "REPLACE",
|
|
10
|
+
REPLACE_ALL = "REPLACE_ALL",
|
|
11
|
+
CANCEL = "CANCEL",
|
|
12
|
+
BLUR = "BLUR",
|
|
13
|
+
TOGGLE_MATCH_CASE = "TOGGLE_MATCH_CASE"
|
|
14
|
+
}
|
|
15
|
+
export interface Activate {
|
|
16
|
+
type: FindReplaceActionTypes.ACTIVATE;
|
|
17
|
+
findText?: string;
|
|
18
|
+
matches?: Match[];
|
|
19
|
+
index?: number;
|
|
20
|
+
}
|
|
21
|
+
export interface Find {
|
|
22
|
+
type: FindReplaceActionTypes.FIND;
|
|
23
|
+
findText: string;
|
|
24
|
+
matches: Match[];
|
|
25
|
+
index: number;
|
|
26
|
+
}
|
|
27
|
+
export interface FindNext {
|
|
28
|
+
type: FindReplaceActionTypes.FIND_NEXT;
|
|
29
|
+
index: number;
|
|
30
|
+
decorationSet: DecorationSet;
|
|
31
|
+
}
|
|
32
|
+
export interface FindPrevious {
|
|
33
|
+
type: FindReplaceActionTypes.FIND_PREVIOUS;
|
|
34
|
+
index: number;
|
|
35
|
+
decorationSet: DecorationSet;
|
|
36
|
+
}
|
|
37
|
+
export interface Replace {
|
|
38
|
+
type: FindReplaceActionTypes.REPLACE;
|
|
39
|
+
replaceText: string;
|
|
40
|
+
decorationSet: DecorationSet;
|
|
41
|
+
matches: Match[];
|
|
42
|
+
index: number;
|
|
43
|
+
}
|
|
44
|
+
export interface ReplaceAll {
|
|
45
|
+
type: FindReplaceActionTypes.REPLACE_ALL;
|
|
46
|
+
replaceText: string;
|
|
47
|
+
decorationSet: DecorationSet;
|
|
48
|
+
matches: Match[];
|
|
49
|
+
index: number;
|
|
50
|
+
}
|
|
51
|
+
export interface Cancel {
|
|
52
|
+
type: FindReplaceActionTypes.CANCEL;
|
|
53
|
+
}
|
|
54
|
+
export interface Blur {
|
|
55
|
+
type: FindReplaceActionTypes.BLUR;
|
|
56
|
+
}
|
|
57
|
+
export interface UpdateDecorations {
|
|
58
|
+
type: FindReplaceActionTypes.UPDATE_DECORATIONS;
|
|
59
|
+
decorationSet: DecorationSet;
|
|
60
|
+
}
|
|
61
|
+
export interface ToggleMatchCase {
|
|
62
|
+
type: FindReplaceActionTypes.TOGGLE_MATCH_CASE;
|
|
63
|
+
}
|
|
64
|
+
export type FindReplaceAction = Activate | Find | FindNext | FindPrevious | Replace | ReplaceAll | Cancel | Blur | UpdateDecorations | ToggleMatchCase;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
+
import type { Command } from '../../types';
|
|
3
|
+
import type { TRIGGER_METHOD } from '../analytics';
|
|
4
|
+
export declare const activateWithAnalytics: ({ triggerMethod, }: {
|
|
5
|
+
triggerMethod: TRIGGER_METHOD.SHORTCUT | TRIGGER_METHOD.TOOLBAR;
|
|
6
|
+
}) => Command;
|
|
7
|
+
export declare const findWithAnalytics: ({ editorView, containerElement, keyword, }: {
|
|
8
|
+
editorView: EditorView;
|
|
9
|
+
containerElement: HTMLElement | null;
|
|
10
|
+
keyword?: string | undefined;
|
|
11
|
+
}) => Command;
|
|
12
|
+
export declare const findNextWithAnalytics: ({ triggerMethod, }: {
|
|
13
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
14
|
+
}) => Command;
|
|
15
|
+
export declare const findPrevWithAnalytics: ({ triggerMethod, }: {
|
|
16
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
17
|
+
}) => Command;
|
|
18
|
+
export declare const replaceWithAnalytics: ({ triggerMethod, replaceText, }: {
|
|
19
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
20
|
+
replaceText: string;
|
|
21
|
+
}) => Command;
|
|
22
|
+
export declare const replaceAllWithAnalytics: ({ replaceText, }: {
|
|
23
|
+
replaceText: string;
|
|
24
|
+
}) => Command;
|
|
25
|
+
export declare const cancelSearchWithAnalytics: ({ triggerMethod, }: {
|
|
26
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
27
|
+
}) => Command;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Decoration, EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
+
export declare const activate: () => import("@atlaskit/editor-common/types").Command;
|
|
3
|
+
export declare const find: (editorView: EditorView, containerElement: HTMLElement | null, keyword?: string) => import("@atlaskit/editor-common/types").Command;
|
|
4
|
+
export declare const findNext: () => import("@atlaskit/editor-common/types").Command;
|
|
5
|
+
export declare const findPrevious: () => import("@atlaskit/editor-common/types").Command;
|
|
6
|
+
export declare const replace: (replaceText: string) => import("@atlaskit/editor-common/types").Command;
|
|
7
|
+
export declare const replaceAll: (replaceText: string) => import("@atlaskit/editor-common/types").Command;
|
|
8
|
+
export declare const addDecorations: (decorations: Decoration[]) => import("@atlaskit/editor-common/types").Command;
|
|
9
|
+
export declare const removeDecorations: (decorations: Decoration[]) => import("@atlaskit/editor-common/types").Command;
|
|
10
|
+
export declare const cancelSearch: () => import("@atlaskit/editor-common/types").Command;
|
|
11
|
+
export declare const blur: () => import("@atlaskit/editor-common/types").Command;
|
|
12
|
+
export declare const toggleMatchCase: () => import("@atlaskit/editor-common/types").Command;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
3
|
+
type Config = {
|
|
4
|
+
takeFullWidth: boolean;
|
|
5
|
+
twoLineEditorToolbar: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const findReplacePlugin: NextEditorPlugin<'findReplace', {
|
|
8
|
+
pluginConfiguration: Config;
|
|
9
|
+
dependencies: [
|
|
10
|
+
FeatureFlagsPlugin
|
|
11
|
+
];
|
|
12
|
+
}>;
|
|
13
|
+
export default findReplacePlugin;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
+
import type { Dispatch } from '../../event-dispatcher';
|
|
3
|
+
import type { FindReplacePluginState } from './types';
|
|
4
|
+
export declare const initialState: FindReplacePluginState;
|
|
5
|
+
export declare const createCommand: <A = import("./actions").FindReplaceAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => FindReplacePluginState, createPluginState: (dispatch: Dispatch<any>, initialState: FindReplacePluginState | ((state: import("prosemirror-state").EditorState) => FindReplacePluginState)) => import("prosemirror-state").SafeStateField<FindReplacePluginState>;
|
|
6
|
+
export declare const createPlugin: (dispatch: Dispatch) => SafePlugin<FindReplacePluginState>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FindReplacePluginState } from './types';
|
|
2
|
+
import { FindReplaceAction } from './actions';
|
|
3
|
+
declare const reducer: (getInitialState: () => FindReplacePluginState) => (state: FindReplacePluginState, action: FindReplaceAction) => FindReplacePluginState;
|
|
4
|
+
export default reducer;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
+
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
export interface FindReplacePluginState {
|
|
4
|
+
/** Whether find/replace is active, i.e. displayed */
|
|
5
|
+
isActive: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Whether we should set focus into and select all text of find textfield
|
|
8
|
+
* This will be true if user highlights a word and hits cmd+f
|
|
9
|
+
*/
|
|
10
|
+
shouldFocus: boolean;
|
|
11
|
+
/** Search keyword */
|
|
12
|
+
findText: string;
|
|
13
|
+
/** Text to replace with */
|
|
14
|
+
replaceText: string;
|
|
15
|
+
/** Index of selected word in array of matches, this gets updated as user finds next/prev */
|
|
16
|
+
index: number;
|
|
17
|
+
/** Positions of find results */
|
|
18
|
+
matches: Match[];
|
|
19
|
+
/** Decorations for the search results */
|
|
20
|
+
decorationSet: DecorationSet;
|
|
21
|
+
/** Whether find/replace should match case when searching for results */
|
|
22
|
+
shouldMatchCase: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare const findReplacePluginKey: PluginKey<FindReplacePluginState>;
|
|
25
|
+
export type Match = {
|
|
26
|
+
/** Start position */
|
|
27
|
+
start: number;
|
|
28
|
+
/** End position */
|
|
29
|
+
end: number;
|
|
30
|
+
};
|
|
31
|
+
export type TextGrouping = {
|
|
32
|
+
/** The concatenated text across nodes */
|
|
33
|
+
text: string;
|
|
34
|
+
/** Start position */
|
|
35
|
+
pos: number;
|
|
36
|
+
} | null;
|
|
37
|
+
export type FindReplaceOptions = {
|
|
38
|
+
allowMatchCase?: boolean;
|
|
39
|
+
};
|
|
40
|
+
export type MatchCaseProps = {
|
|
41
|
+
allowMatchCase?: boolean;
|
|
42
|
+
shouldMatchCase?: boolean;
|
|
43
|
+
onToggleMatchCase?: () => void;
|
|
44
|
+
};
|