@atlaskit/editor-core 188.8.0 → 188.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/cjs/composable-editor/editor-internal.js +2 -2
- package/dist/cjs/create-editor/ReactEditorView.js +796 -8
- package/dist/cjs/labs/next/presets/default.js +2 -2
- package/dist/cjs/labs/next/presets/universal.js +7 -4
- package/dist/cjs/plugins/index.js +0 -28
- package/dist/cjs/plugins/insert-block/index.js +4 -6
- package/dist/cjs/plugins/tasks-and-decisions/index.js +4 -3
- package/dist/cjs/plugins/tasks-and-decisions/nodeviews/decisionItem.js +26 -6
- package/dist/cjs/plugins/tasks-and-decisions/nodeviews/taskItem.js +45 -13
- package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/main.js +15 -7
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +753 -2
- package/dist/es2019/labs/next/presets/default.js +1 -1
- package/dist/es2019/labs/next/presets/universal.js +4 -1
- package/dist/es2019/plugins/index.js +0 -4
- package/dist/es2019/plugins/insert-block/index.js +4 -6
- package/dist/es2019/plugins/tasks-and-decisions/index.js +4 -3
- package/dist/es2019/plugins/tasks-and-decisions/nodeviews/decisionItem.js +26 -6
- package/dist/es2019/plugins/tasks-and-decisions/nodeviews/taskItem.js +43 -10
- package/dist/es2019/plugins/tasks-and-decisions/pm-plugins/main.js +13 -6
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal.js +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +797 -8
- package/dist/esm/labs/next/presets/default.js +1 -1
- package/dist/esm/labs/next/presets/universal.js +4 -1
- package/dist/esm/plugins/index.js +0 -4
- package/dist/esm/plugins/insert-block/index.js +4 -6
- package/dist/esm/plugins/tasks-and-decisions/index.js +4 -3
- package/dist/esm/plugins/tasks-and-decisions/nodeviews/decisionItem.js +26 -6
- package/dist/esm/plugins/tasks-and-decisions/nodeviews/taskItem.js +45 -12
- package/dist/esm/plugins/tasks-and-decisions/pm-plugins/main.js +14 -7
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/ReactEditorView.d.ts +119 -5
- package/dist/types/labs/next/presets/default.d.ts +43 -43
- package/dist/types/plugins/index.d.ts +0 -4
- package/dist/types/plugins/insert-block/types.d.ts +3 -1
- package/dist/types/plugins/tasks-and-decisions/index.d.ts +2 -5
- package/dist/types/plugins/tasks-and-decisions/nodeviews/decisionItem.d.ts +9 -4
- package/dist/types/plugins/tasks-and-decisions/nodeviews/taskItem.d.ts +9 -4
- package/dist/types/plugins/tasks-and-decisions/pm-plugins/main.d.ts +4 -2
- package/dist/types/plugins/tasks-and-decisions/types.d.ts +6 -1
- package/dist/types/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +119 -5
- package/dist/types-ts4.5/labs/next/presets/default.d.ts +43 -43
- package/dist/types-ts4.5/plugins/index.d.ts +0 -4
- package/dist/types-ts4.5/plugins/insert-block/types.d.ts +3 -1
- package/dist/types-ts4.5/plugins/tasks-and-decisions/index.d.ts +2 -5
- package/dist/types-ts4.5/plugins/tasks-and-decisions/nodeviews/decisionItem.d.ts +9 -4
- package/dist/types-ts4.5/plugins/tasks-and-decisions/nodeviews/taskItem.d.ts +9 -4
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/main.d.ts +4 -2
- package/dist/types-ts4.5/plugins/tasks-and-decisions/types.d.ts +8 -1
- package/dist/types-ts4.5/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.d.ts +1 -1
- package/package.json +7 -7
- package/dist/cjs/create-editor/ReactEditorViewInternal.js +0 -812
- package/dist/cjs/create-editor/ReactEditorViewNext.js +0 -15
- package/dist/cjs/plugins/save-on-enter/index.js +0 -70
- package/dist/cjs/plugins/scroll-into-view/index.js +0 -55
- package/dist/cjs/plugins/status/actions.js +0 -158
- package/dist/cjs/plugins/status/analytics.js +0 -31
- package/dist/cjs/plugins/status/index.js +0 -143
- package/dist/cjs/plugins/status/keymap.js +0 -22
- package/dist/cjs/plugins/status/nodeviews/status.js +0 -58
- package/dist/cjs/plugins/status/plugin-key.js +0 -9
- package/dist/cjs/plugins/status/plugin.js +0 -133
- package/dist/cjs/plugins/status/types.js +0 -5
- package/dist/cjs/plugins/status/ui/statusPicker.js +0 -314
- package/dist/cjs/plugins/status/utils.js +0 -22
- package/dist/cjs/plugins/type-ahead/api.js +0 -215
- package/dist/cjs/plugins/type-ahead/commands/insert-type-ahead-item.js +0 -205
- package/dist/cjs/plugins/type-ahead/commands/update-list-items.js +0 -23
- package/dist/cjs/plugins/type-ahead/commands/update-query.js +0 -27
- package/dist/cjs/plugins/type-ahead/commands/update-selected-index.js +0 -27
- package/dist/cjs/plugins/type-ahead/constants.js +0 -15
- package/dist/cjs/plugins/type-ahead/index.js +0 -14
- package/dist/cjs/plugins/type-ahead/insert-utils.js +0 -107
- package/dist/cjs/plugins/type-ahead/messages.js +0 -79
- package/dist/cjs/plugins/type-ahead/plugin.js +0 -382
- package/dist/cjs/plugins/type-ahead/pm-plugins/actions.js +0 -16
- package/dist/cjs/plugins/type-ahead/pm-plugins/decorations.js +0 -148
- package/dist/cjs/plugins/type-ahead/pm-plugins/input-rules.js +0 -36
- package/dist/cjs/plugins/type-ahead/pm-plugins/insert-item-plugin.js +0 -22
- package/dist/cjs/plugins/type-ahead/pm-plugins/key.js +0 -8
- package/dist/cjs/plugins/type-ahead/pm-plugins/main.js +0 -110
- package/dist/cjs/plugins/type-ahead/pm-plugins/reducer.js +0 -158
- package/dist/cjs/plugins/type-ahead/pm-plugins/utils.js +0 -18
- package/dist/cjs/plugins/type-ahead/stats-modifier.js +0 -42
- package/dist/cjs/plugins/type-ahead/transforms/close-type-ahead.js +0 -13
- package/dist/cjs/plugins/type-ahead/transforms/open-typeahead-at-cursor.js +0 -75
- package/dist/cjs/plugins/type-ahead/transforms/set-selection-before-query.js +0 -18
- package/dist/cjs/plugins/type-ahead/types.js +0 -5
- package/dist/cjs/plugins/type-ahead/ui/AssistiveText.js +0 -120
- package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +0 -400
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadList.js +0 -285
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadListItem.js +0 -179
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +0 -230
- package/dist/cjs/plugins/type-ahead/ui/WrapperTypeAhead.js +0 -127
- package/dist/cjs/plugins/type-ahead/ui/hooks/use-item-insert.js +0 -109
- package/dist/cjs/plugins/type-ahead/ui/hooks/use-load-items.js +0 -50
- package/dist/cjs/plugins/type-ahead/ui/hooks/use-on-force-select.js +0 -41
- package/dist/cjs/plugins/type-ahead/utils.js +0 -130
- package/dist/es2019/create-editor/ReactEditorViewInternal.js +0 -753
- package/dist/es2019/create-editor/ReactEditorViewNext.js +0 -7
- package/dist/es2019/plugins/save-on-enter/index.js +0 -63
- package/dist/es2019/plugins/scroll-into-view/index.js +0 -44
- package/dist/es2019/plugins/status/actions.js +0 -144
- package/dist/es2019/plugins/status/analytics.js +0 -18
- package/dist/es2019/plugins/status/index.js +0 -135
- package/dist/es2019/plugins/status/keymap.js +0 -13
- package/dist/es2019/plugins/status/nodeviews/status.js +0 -60
- package/dist/es2019/plugins/status/plugin-key.js +0 -3
- package/dist/es2019/plugins/status/plugin.js +0 -113
- package/dist/es2019/plugins/status/types.js +0 -1
- package/dist/es2019/plugins/status/ui/statusPicker.js +0 -293
- package/dist/es2019/plugins/status/utils.js +0 -12
- package/dist/es2019/plugins/type-ahead/api.js +0 -205
- package/dist/es2019/plugins/type-ahead/commands/insert-type-ahead-item.js +0 -204
- package/dist/es2019/plugins/type-ahead/commands/update-list-items.js +0 -17
- package/dist/es2019/plugins/type-ahead/commands/update-query.js +0 -21
- package/dist/es2019/plugins/type-ahead/commands/update-selected-index.js +0 -21
- package/dist/es2019/plugins/type-ahead/constants.js +0 -9
- package/dist/es2019/plugins/type-ahead/index.js +0 -3
- package/dist/es2019/plugins/type-ahead/insert-utils.js +0 -106
- package/dist/es2019/plugins/type-ahead/messages.js +0 -73
- package/dist/es2019/plugins/type-ahead/plugin.js +0 -381
- package/dist/es2019/plugins/type-ahead/pm-plugins/actions.js +0 -10
- package/dist/es2019/plugins/type-ahead/pm-plugins/decorations.js +0 -148
- package/dist/es2019/plugins/type-ahead/pm-plugins/input-rules.js +0 -29
- package/dist/es2019/plugins/type-ahead/pm-plugins/insert-item-plugin.js +0 -16
- package/dist/es2019/plugins/type-ahead/pm-plugins/key.js +0 -2
- package/dist/es2019/plugins/type-ahead/pm-plugins/main.js +0 -106
- package/dist/es2019/plugins/type-ahead/pm-plugins/reducer.js +0 -160
- package/dist/es2019/plugins/type-ahead/pm-plugins/utils.js +0 -12
- package/dist/es2019/plugins/type-ahead/stats-modifier.js +0 -33
- package/dist/es2019/plugins/type-ahead/transforms/close-type-ahead.js +0 -7
- package/dist/es2019/plugins/type-ahead/transforms/open-typeahead-at-cursor.js +0 -71
- package/dist/es2019/plugins/type-ahead/transforms/set-selection-before-query.js +0 -10
- package/dist/es2019/plugins/type-ahead/types.js +0 -1
- package/dist/es2019/plugins/type-ahead/ui/AssistiveText.js +0 -88
- package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +0 -393
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadList.js +0 -273
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadListItem.js +0 -214
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadPopup.js +0 -233
- package/dist/es2019/plugins/type-ahead/ui/WrapperTypeAhead.js +0 -109
- package/dist/es2019/plugins/type-ahead/ui/hooks/use-item-insert.js +0 -112
- package/dist/es2019/plugins/type-ahead/ui/hooks/use-load-items.js +0 -41
- package/dist/es2019/plugins/type-ahead/ui/hooks/use-on-force-select.js +0 -38
- package/dist/es2019/plugins/type-ahead/utils.js +0 -126
- package/dist/esm/create-editor/ReactEditorViewInternal.js +0 -806
- package/dist/esm/create-editor/ReactEditorViewNext.js +0 -7
- package/dist/esm/plugins/save-on-enter/index.js +0 -63
- package/dist/esm/plugins/scroll-into-view/index.js +0 -50
- package/dist/esm/plugins/status/actions.js +0 -151
- package/dist/esm/plugins/status/analytics.js +0 -24
- package/dist/esm/plugins/status/index.js +0 -136
- package/dist/esm/plugins/status/keymap.js +0 -15
- package/dist/esm/plugins/status/nodeviews/status.js +0 -51
- package/dist/esm/plugins/status/plugin-key.js +0 -3
- package/dist/esm/plugins/status/plugin.js +0 -115
- package/dist/esm/plugins/status/types.js +0 -1
- package/dist/esm/plugins/status/ui/statusPicker.js +0 -308
- package/dist/esm/plugins/status/utils.js +0 -16
- package/dist/esm/plugins/type-ahead/api.js +0 -209
- package/dist/esm/plugins/type-ahead/commands/insert-type-ahead-item.js +0 -198
- package/dist/esm/plugins/type-ahead/commands/update-list-items.js +0 -17
- package/dist/esm/plugins/type-ahead/commands/update-query.js +0 -21
- package/dist/esm/plugins/type-ahead/commands/update-selected-index.js +0 -21
- package/dist/esm/plugins/type-ahead/constants.js +0 -9
- package/dist/esm/plugins/type-ahead/index.js +0 -3
- package/dist/esm/plugins/type-ahead/insert-utils.js +0 -101
- package/dist/esm/plugins/type-ahead/messages.js +0 -73
- package/dist/esm/plugins/type-ahead/plugin.js +0 -374
- package/dist/esm/plugins/type-ahead/pm-plugins/actions.js +0 -10
- package/dist/esm/plugins/type-ahead/pm-plugins/decorations.js +0 -141
- package/dist/esm/plugins/type-ahead/pm-plugins/input-rules.js +0 -29
- package/dist/esm/plugins/type-ahead/pm-plugins/insert-item-plugin.js +0 -16
- package/dist/esm/plugins/type-ahead/pm-plugins/key.js +0 -2
- package/dist/esm/plugins/type-ahead/pm-plugins/main.js +0 -104
- package/dist/esm/plugins/type-ahead/pm-plugins/reducer.js +0 -151
- package/dist/esm/plugins/type-ahead/pm-plugins/utils.js +0 -12
- package/dist/esm/plugins/type-ahead/stats-modifier.js +0 -35
- package/dist/esm/plugins/type-ahead/transforms/close-type-ahead.js +0 -7
- package/dist/esm/plugins/type-ahead/transforms/open-typeahead-at-cursor.js +0 -69
- package/dist/esm/plugins/type-ahead/transforms/set-selection-before-query.js +0 -12
- package/dist/esm/plugins/type-ahead/types.js +0 -1
- package/dist/esm/plugins/type-ahead/ui/AssistiveText.js +0 -115
- package/dist/esm/plugins/type-ahead/ui/InputQuery.js +0 -390
- package/dist/esm/plugins/type-ahead/ui/TypeAheadList.js +0 -276
- package/dist/esm/plugins/type-ahead/ui/TypeAheadListItem.js +0 -169
- package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +0 -220
- package/dist/esm/plugins/type-ahead/ui/WrapperTypeAhead.js +0 -117
- package/dist/esm/plugins/type-ahead/ui/hooks/use-item-insert.js +0 -103
- package/dist/esm/plugins/type-ahead/ui/hooks/use-load-items.js +0 -43
- package/dist/esm/plugins/type-ahead/ui/hooks/use-on-force-select.js +0 -35
- package/dist/esm/plugins/type-ahead/utils.js +0 -124
- package/dist/types/create-editor/ReactEditorViewInternal.d.ts +0 -119
- package/dist/types/create-editor/ReactEditorViewNext.d.ts +0 -8
- package/dist/types/plugins/save-on-enter/index.d.ts +0 -10
- package/dist/types/plugins/scroll-into-view/index.d.ts +0 -14
- package/dist/types/plugins/status/actions.d.ts +0 -16
- package/dist/types/plugins/status/analytics.d.ts +0 -4
- package/dist/types/plugins/status/index.d.ts +0 -15
- package/dist/types/plugins/status/keymap.d.ts +0 -3
- package/dist/types/plugins/status/nodeviews/status.d.ts +0 -25
- package/dist/types/plugins/status/plugin-key.d.ts +0 -4
- package/dist/types/plugins/status/plugin.d.ts +0 -7
- package/dist/types/plugins/status/types.d.ts +0 -18
- package/dist/types/plugins/status/ui/statusPicker.d.ts +0 -63
- package/dist/types/plugins/status/utils.d.ts +0 -5
- package/dist/types/plugins/type-ahead/api.d.ts +0 -61
- package/dist/types/plugins/type-ahead/commands/insert-type-ahead-item.d.ts +0 -12
- package/dist/types/plugins/type-ahead/commands/update-list-items.d.ts +0 -3
- package/dist/types/plugins/type-ahead/commands/update-query.d.ts +0 -2
- package/dist/types/plugins/type-ahead/commands/update-selected-index.d.ts +0 -2
- package/dist/types/plugins/type-ahead/constants.d.ts +0 -8
- package/dist/types/plugins/type-ahead/index.d.ts +0 -4
- package/dist/types/plugins/type-ahead/insert-utils.d.ts +0 -18
- package/dist/types/plugins/type-ahead/messages.d.ts +0 -72
- package/dist/types/plugins/type-ahead/plugin.d.ts +0 -10
- package/dist/types/plugins/type-ahead/pm-plugins/actions.d.ts +0 -9
- package/dist/types/plugins/type-ahead/pm-plugins/decorations.d.ts +0 -14
- package/dist/types/plugins/type-ahead/pm-plugins/input-rules.d.ts +0 -6
- package/dist/types/plugins/type-ahead/pm-plugins/insert-item-plugin.d.ts +0 -2
- package/dist/types/plugins/type-ahead/pm-plugins/key.d.ts +0 -3
- package/dist/types/plugins/type-ahead/pm-plugins/main.d.ts +0 -14
- package/dist/types/plugins/type-ahead/pm-plugins/reducer.d.ts +0 -10
- package/dist/types/plugins/type-ahead/pm-plugins/utils.d.ts +0 -4
- package/dist/types/plugins/type-ahead/stats-modifier.d.ts +0 -20
- package/dist/types/plugins/type-ahead/transforms/close-type-ahead.d.ts +0 -2
- package/dist/types/plugins/type-ahead/transforms/open-typeahead-at-cursor.d.ts +0 -11
- package/dist/types/plugins/type-ahead/transforms/set-selection-before-query.d.ts +0 -2
- package/dist/types/plugins/type-ahead/types.d.ts +0 -109
- package/dist/types/plugins/type-ahead/ui/AssistiveText.d.ts +0 -33
- package/dist/types/plugins/type-ahead/ui/InputQuery.d.ts +0 -26
- package/dist/types/plugins/type-ahead/ui/TypeAheadList.d.ts +0 -25
- package/dist/types/plugins/type-ahead/ui/TypeAheadListItem.d.ts +0 -18
- package/dist/types/plugins/type-ahead/ui/TypeAheadPopup.d.ts +0 -29
- package/dist/types/plugins/type-ahead/ui/WrapperTypeAhead.d.ts +0 -20
- package/dist/types/plugins/type-ahead/ui/hooks/use-item-insert.d.ts +0 -3
- package/dist/types/plugins/type-ahead/ui/hooks/use-load-items.d.ts +0 -3
- package/dist/types/plugins/type-ahead/ui/hooks/use-on-force-select.d.ts +0 -11
- package/dist/types/plugins/type-ahead/utils.d.ts +0 -27
- package/dist/types-ts4.5/create-editor/ReactEditorViewInternal.d.ts +0 -119
- package/dist/types-ts4.5/create-editor/ReactEditorViewNext.d.ts +0 -8
- package/dist/types-ts4.5/plugins/save-on-enter/index.d.ts +0 -10
- package/dist/types-ts4.5/plugins/scroll-into-view/index.d.ts +0 -14
- package/dist/types-ts4.5/plugins/status/actions.d.ts +0 -16
- package/dist/types-ts4.5/plugins/status/analytics.d.ts +0 -4
- package/dist/types-ts4.5/plugins/status/index.d.ts +0 -17
- package/dist/types-ts4.5/plugins/status/keymap.d.ts +0 -3
- package/dist/types-ts4.5/plugins/status/nodeviews/status.d.ts +0 -25
- package/dist/types-ts4.5/plugins/status/plugin-key.d.ts +0 -4
- package/dist/types-ts4.5/plugins/status/plugin.d.ts +0 -7
- package/dist/types-ts4.5/plugins/status/types.d.ts +0 -18
- package/dist/types-ts4.5/plugins/status/ui/statusPicker.d.ts +0 -63
- package/dist/types-ts4.5/plugins/status/utils.d.ts +0 -5
- package/dist/types-ts4.5/plugins/type-ahead/api.d.ts +0 -61
- package/dist/types-ts4.5/plugins/type-ahead/commands/insert-type-ahead-item.d.ts +0 -12
- package/dist/types-ts4.5/plugins/type-ahead/commands/update-list-items.d.ts +0 -3
- package/dist/types-ts4.5/plugins/type-ahead/commands/update-query.d.ts +0 -2
- package/dist/types-ts4.5/plugins/type-ahead/commands/update-selected-index.d.ts +0 -2
- package/dist/types-ts4.5/plugins/type-ahead/constants.d.ts +0 -8
- package/dist/types-ts4.5/plugins/type-ahead/index.d.ts +0 -4
- package/dist/types-ts4.5/plugins/type-ahead/insert-utils.d.ts +0 -18
- package/dist/types-ts4.5/plugins/type-ahead/messages.d.ts +0 -72
- package/dist/types-ts4.5/plugins/type-ahead/plugin.d.ts +0 -10
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/actions.d.ts +0 -9
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/decorations.d.ts +0 -14
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/input-rules.d.ts +0 -6
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/insert-item-plugin.d.ts +0 -2
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/key.d.ts +0 -3
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/main.d.ts +0 -14
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/reducer.d.ts +0 -10
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/utils.d.ts +0 -4
- package/dist/types-ts4.5/plugins/type-ahead/stats-modifier.d.ts +0 -20
- package/dist/types-ts4.5/plugins/type-ahead/transforms/close-type-ahead.d.ts +0 -2
- package/dist/types-ts4.5/plugins/type-ahead/transforms/open-typeahead-at-cursor.d.ts +0 -11
- package/dist/types-ts4.5/plugins/type-ahead/transforms/set-selection-before-query.d.ts +0 -2
- package/dist/types-ts4.5/plugins/type-ahead/types.d.ts +0 -111
- package/dist/types-ts4.5/plugins/type-ahead/ui/AssistiveText.d.ts +0 -33
- package/dist/types-ts4.5/plugins/type-ahead/ui/InputQuery.d.ts +0 -26
- package/dist/types-ts4.5/plugins/type-ahead/ui/TypeAheadList.d.ts +0 -25
- package/dist/types-ts4.5/plugins/type-ahead/ui/TypeAheadListItem.d.ts +0 -18
- package/dist/types-ts4.5/plugins/type-ahead/ui/TypeAheadPopup.d.ts +0 -29
- package/dist/types-ts4.5/plugins/type-ahead/ui/WrapperTypeAhead.d.ts +0 -20
- package/dist/types-ts4.5/plugins/type-ahead/ui/hooks/use-item-insert.d.ts +0 -7
- package/dist/types-ts4.5/plugins/type-ahead/ui/hooks/use-load-items.d.ts +0 -3
- package/dist/types-ts4.5/plugins/type-ahead/ui/hooks/use-on-force-select.d.ts +0 -11
- package/dist/types-ts4.5/plugins/type-ahead/utils.d.ts +0 -27
|
@@ -10,7 +10,7 @@ import type { TextFormattingOptions, HyperlinkPluginOptions, QuickInsertPluginOp
|
|
|
10
10
|
import type { CodeBlockOptions } from '../../../plugins/code-block/types';
|
|
11
11
|
import type { SelectionPluginOptions } from '@atlaskit/editor-common/selection';
|
|
12
12
|
import type { CardOptions } from '@atlaskit/editor-common/card';
|
|
13
|
-
import type { TypeAheadPluginOptions } from '
|
|
13
|
+
import type { TypeAheadPluginOptions } from '@atlaskit/editor-plugin-type-ahead';
|
|
14
14
|
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
15
15
|
export type DefaultPresetPluginOptions = {
|
|
16
16
|
paste: PastePluginOptions;
|
|
@@ -281,7 +281,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
281
281
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
|
|
282
282
|
sharedState: import("@atlaskit/editor-plugin-composition").CompositionState;
|
|
283
283
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
284
|
-
pluginConfiguration:
|
|
284
|
+
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
285
285
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
286
286
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
287
287
|
sharedState: {
|
|
@@ -298,21 +298,21 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
298
298
|
query: string;
|
|
299
299
|
isOpen: boolean;
|
|
300
300
|
isAllowed: boolean;
|
|
301
|
-
currentHandler?: import("@atlaskit/editor-
|
|
301
|
+
currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
|
|
302
302
|
};
|
|
303
303
|
actions: {
|
|
304
304
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
305
305
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
306
306
|
insert: (props: {
|
|
307
|
-
triggerHandler: import("@atlaskit/editor-
|
|
307
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
308
308
|
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
309
309
|
query: string;
|
|
310
310
|
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
311
311
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
312
312
|
}) => boolean;
|
|
313
|
-
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-
|
|
313
|
+
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | null;
|
|
314
314
|
open: (props: {
|
|
315
|
-
triggerHandler: import("@atlaskit/editor-
|
|
315
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
316
316
|
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
317
317
|
query?: string | undefined;
|
|
318
318
|
}) => boolean;
|
|
@@ -321,12 +321,12 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
321
321
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
322
322
|
}) => boolean;
|
|
323
323
|
openAtTransaction: (props: {
|
|
324
|
-
triggerHandler: import("@atlaskit/editor-
|
|
324
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
325
325
|
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
326
326
|
query?: string | undefined;
|
|
327
327
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
328
328
|
};
|
|
329
|
-
},
|
|
329
|
+
}, TypeAheadPluginOptions | undefined>];
|
|
330
330
|
}, PlaceholderPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
331
331
|
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
332
332
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -345,22 +345,22 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
345
345
|
query: string;
|
|
346
346
|
isOpen: boolean;
|
|
347
347
|
isAllowed: boolean;
|
|
348
|
-
currentHandler?: import("@atlaskit/editor-
|
|
348
|
+
currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
|
|
349
349
|
};
|
|
350
350
|
actions: {
|
|
351
351
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
352
352
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
353
353
|
insert: (props: {
|
|
354
|
-
triggerHandler: import("@atlaskit/editor-
|
|
354
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
355
355
|
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
356
356
|
query: string;
|
|
357
357
|
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
358
358
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
359
359
|
}) => boolean;
|
|
360
|
-
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-
|
|
360
|
+
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | null;
|
|
361
361
|
open: (props: {
|
|
362
|
-
triggerHandler: import("@atlaskit/editor-
|
|
363
|
-
inputMethod: import("
|
|
362
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
363
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
364
364
|
query?: string | undefined;
|
|
365
365
|
}) => boolean;
|
|
366
366
|
close: (props: {
|
|
@@ -368,15 +368,15 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
368
368
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
369
369
|
}) => boolean;
|
|
370
370
|
openAtTransaction: (props: {
|
|
371
|
-
triggerHandler: import("@atlaskit/editor-
|
|
372
|
-
inputMethod: import("
|
|
371
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
372
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
373
373
|
query?: string | undefined;
|
|
374
374
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
375
375
|
};
|
|
376
376
|
}, TypeAheadPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"quickInsert", {
|
|
377
377
|
pluginConfiguration: QuickInsertPluginOptions | undefined;
|
|
378
378
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
379
|
-
pluginConfiguration:
|
|
379
|
+
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
380
380
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
381
381
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
382
382
|
sharedState: {
|
|
@@ -393,21 +393,21 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
393
393
|
query: string;
|
|
394
394
|
isOpen: boolean;
|
|
395
395
|
isAllowed: boolean;
|
|
396
|
-
currentHandler?: import("@atlaskit/editor-
|
|
396
|
+
currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
|
|
397
397
|
};
|
|
398
398
|
actions: {
|
|
399
399
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
400
400
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
401
401
|
insert: (props: {
|
|
402
|
-
triggerHandler: import("@atlaskit/editor-
|
|
402
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
403
403
|
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
404
404
|
query: string;
|
|
405
405
|
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
406
406
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
407
407
|
}) => boolean;
|
|
408
|
-
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-
|
|
408
|
+
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | null;
|
|
409
409
|
open: (props: {
|
|
410
|
-
triggerHandler: import("@atlaskit/editor-
|
|
410
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
411
411
|
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
412
412
|
query?: string | undefined;
|
|
413
413
|
}) => boolean;
|
|
@@ -416,12 +416,12 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
416
416
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
417
417
|
}) => boolean;
|
|
418
418
|
openAtTransaction: (props: {
|
|
419
|
-
triggerHandler: import("@atlaskit/editor-
|
|
419
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
420
420
|
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
421
421
|
query?: string | undefined;
|
|
422
422
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
423
423
|
};
|
|
424
|
-
},
|
|
424
|
+
}, TypeAheadPluginOptions | undefined>];
|
|
425
425
|
sharedState: import("@atlaskit/editor-plugin-quick-insert").QuickInsertSharedState | null;
|
|
426
426
|
actions: {
|
|
427
427
|
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
@@ -732,7 +732,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
732
732
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
|
|
733
733
|
sharedState: import("@atlaskit/editor-plugin-composition").CompositionState;
|
|
734
734
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
735
|
-
pluginConfiguration:
|
|
735
|
+
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
736
736
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
737
737
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
738
738
|
sharedState: {
|
|
@@ -749,21 +749,21 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
749
749
|
query: string;
|
|
750
750
|
isOpen: boolean;
|
|
751
751
|
isAllowed: boolean;
|
|
752
|
-
currentHandler?: import("@atlaskit/editor-
|
|
752
|
+
currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
|
|
753
753
|
};
|
|
754
754
|
actions: {
|
|
755
755
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
756
756
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
757
757
|
insert: (props: {
|
|
758
|
-
triggerHandler: import("@atlaskit/editor-
|
|
758
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
759
759
|
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
760
760
|
query: string;
|
|
761
761
|
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
762
762
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
763
763
|
}) => boolean;
|
|
764
|
-
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-
|
|
764
|
+
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | null;
|
|
765
765
|
open: (props: {
|
|
766
|
-
triggerHandler: import("@atlaskit/editor-
|
|
766
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
767
767
|
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
768
768
|
query?: string | undefined;
|
|
769
769
|
}) => boolean;
|
|
@@ -772,12 +772,12 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
772
772
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
773
773
|
}) => boolean;
|
|
774
774
|
openAtTransaction: (props: {
|
|
775
|
-
triggerHandler: import("@atlaskit/editor-
|
|
775
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
776
776
|
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
777
777
|
query?: string | undefined;
|
|
778
778
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
779
779
|
};
|
|
780
|
-
},
|
|
780
|
+
}, TypeAheadPluginOptions | undefined>];
|
|
781
781
|
}, PlaceholderPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
782
782
|
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
783
783
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -796,22 +796,22 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
796
796
|
query: string;
|
|
797
797
|
isOpen: boolean;
|
|
798
798
|
isAllowed: boolean;
|
|
799
|
-
currentHandler?: import("@atlaskit/editor-
|
|
799
|
+
currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
|
|
800
800
|
};
|
|
801
801
|
actions: {
|
|
802
802
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
803
803
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
804
804
|
insert: (props: {
|
|
805
|
-
triggerHandler: import("@atlaskit/editor-
|
|
805
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
806
806
|
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
807
807
|
query: string;
|
|
808
808
|
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
809
809
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
810
810
|
}) => boolean;
|
|
811
|
-
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-
|
|
811
|
+
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | null;
|
|
812
812
|
open: (props: {
|
|
813
|
-
triggerHandler: import("@atlaskit/editor-
|
|
814
|
-
inputMethod: import("
|
|
813
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
814
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
815
815
|
query?: string | undefined;
|
|
816
816
|
}) => boolean;
|
|
817
817
|
close: (props: {
|
|
@@ -819,15 +819,15 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
819
819
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
820
820
|
}) => boolean;
|
|
821
821
|
openAtTransaction: (props: {
|
|
822
|
-
triggerHandler: import("@atlaskit/editor-
|
|
823
|
-
inputMethod: import("
|
|
822
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
823
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
824
824
|
query?: string | undefined;
|
|
825
825
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
826
826
|
};
|
|
827
827
|
}, TypeAheadPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"quickInsert", {
|
|
828
828
|
pluginConfiguration: QuickInsertPluginOptions | undefined;
|
|
829
829
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
830
|
-
pluginConfiguration:
|
|
830
|
+
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
831
831
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
832
832
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
833
833
|
sharedState: {
|
|
@@ -844,21 +844,21 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
844
844
|
query: string;
|
|
845
845
|
isOpen: boolean;
|
|
846
846
|
isAllowed: boolean;
|
|
847
|
-
currentHandler?: import("@atlaskit/editor-
|
|
847
|
+
currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
|
|
848
848
|
};
|
|
849
849
|
actions: {
|
|
850
850
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
851
851
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
852
852
|
insert: (props: {
|
|
853
|
-
triggerHandler: import("@atlaskit/editor-
|
|
853
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
854
854
|
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
855
855
|
query: string;
|
|
856
856
|
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
857
857
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
858
858
|
}) => boolean;
|
|
859
|
-
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-
|
|
859
|
+
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | null;
|
|
860
860
|
open: (props: {
|
|
861
|
-
triggerHandler: import("@atlaskit/editor-
|
|
861
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
862
862
|
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
863
863
|
query?: string | undefined;
|
|
864
864
|
}) => boolean;
|
|
@@ -867,12 +867,12 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
867
867
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
868
868
|
}) => boolean;
|
|
869
869
|
openAtTransaction: (props: {
|
|
870
|
-
triggerHandler: import("@atlaskit/editor-
|
|
870
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
871
871
|
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
872
872
|
query?: string | undefined;
|
|
873
873
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
874
874
|
};
|
|
875
|
-
},
|
|
875
|
+
}, TypeAheadPluginOptions | undefined>];
|
|
876
876
|
sharedState: import("@atlaskit/editor-plugin-quick-insert").QuickInsertSharedState | null;
|
|
877
877
|
actions: {
|
|
878
878
|
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
@@ -15,12 +15,9 @@ export { default as mentionsPlugin } from './mentions';
|
|
|
15
15
|
export { default as panelPlugin } from './panel';
|
|
16
16
|
export { default as pastePlugin } from './paste';
|
|
17
17
|
export { default as placeholderTextPlugin } from './placeholder-text';
|
|
18
|
-
export { default as saveOnEnterPlugin } from './save-on-enter';
|
|
19
18
|
export { default as submitEditorPlugin } from './submit-editor';
|
|
20
19
|
export { default as tasksAndDecisionsPlugin } from './tasks-and-decisions';
|
|
21
20
|
export { default as textColorPlugin } from './text-color';
|
|
22
|
-
export { default as typeAheadPlugin } from './type-ahead';
|
|
23
|
-
export { default as statusPlugin } from './status';
|
|
24
21
|
export { default as breakoutPlugin } from './breakout';
|
|
25
22
|
export { default as alignmentPlugin } from './alignment';
|
|
26
23
|
export { default as dataConsumerMarkPlugin } from './data-consumer';
|
|
@@ -32,7 +29,6 @@ export { default as customAutoformatPlugin } from './custom-autoformat';
|
|
|
32
29
|
export { default as feedbackDialogPlugin } from './feedback-dialog';
|
|
33
30
|
export { default as historyPlugin } from './history';
|
|
34
31
|
export { default as expandPlugin, isExpandInsertionEnabled } from './expand';
|
|
35
|
-
export { default as scrollIntoViewPlugin } from './scroll-into-view';
|
|
36
32
|
export { default as mobileDimensionsPlugin } from './mobile-dimensions';
|
|
37
33
|
export { default as findReplacePlugin } from './find-replace';
|
|
38
34
|
export { default as mobileSelectionPlugin } from './mobile-selection';
|
|
@@ -13,10 +13,12 @@ import type codeBlockPlugin from '../code-block';
|
|
|
13
13
|
import type panelPlugin from '../panel';
|
|
14
14
|
import type { RulePlugin } from '@atlaskit/editor-plugin-rule';
|
|
15
15
|
import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
|
|
16
|
+
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
16
17
|
import type { MentionPlugin } from '../mentions';
|
|
17
|
-
import type { StatusPlugin } from '
|
|
18
|
+
import type { StatusPlugin } from '@atlaskit/editor-plugin-status';
|
|
18
19
|
export type InsertBlockPluginDependencies = [
|
|
19
20
|
FeatureFlagsPlugin,
|
|
21
|
+
TypeAheadPlugin,
|
|
20
22
|
OptionalPlugin<typeof tablesPlugin>,
|
|
21
23
|
OptionalPlugin<typeof hyperlinkPlugin>,
|
|
22
24
|
OptionalPlugin<DatePlugin>,
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
declare const tasksAndDecisionsPlugin: NextEditorPlugin<'taskDecision', {
|
|
4
|
-
pluginConfiguration: TaskDecisionPluginOptions | undefined;
|
|
5
|
-
}>;
|
|
1
|
+
import type { TaskAndDecisionsPlugin } from './types';
|
|
2
|
+
declare const tasksAndDecisionsPlugin: TaskAndDecisionsPlugin;
|
|
6
3
|
export default tasksAndDecisionsPlugin;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
1
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
+
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
4
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
5
|
-
|
|
5
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
|
+
import type { TaskAndDecisionsPlugin } from '../types';
|
|
7
|
+
type getPosHandler = getPosHandlerNode | boolean;
|
|
8
|
+
type getPosHandlerNode = () => number | undefined;
|
|
9
|
+
export declare const decisionItemNodeView: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, api: ExtractInjectionAPI<TaskAndDecisionsPlugin> | undefined) => (node: PMNode, view: EditorView, getPos: getPosHandler) => NodeView;
|
|
10
|
+
export {};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
2
3
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type { EventDispatcher } from '
|
|
4
|
-
import type { getPosHandler } from '../../../nodeviews';
|
|
4
|
+
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
5
5
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
6
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
7
|
+
import type { TaskAndDecisionsPlugin } from '../types';
|
|
8
|
+
type getPosHandler = getPosHandlerNode | boolean;
|
|
9
|
+
type getPosHandlerNode = () => number | undefined;
|
|
6
10
|
export interface Props {
|
|
7
11
|
providerFactory: ProviderFactory;
|
|
8
12
|
}
|
|
9
|
-
export declare function taskItemNodeViewFactory(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory): (node:
|
|
13
|
+
export declare function taskItemNodeViewFactory(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, api: ExtractInjectionAPI<TaskAndDecisionsPlugin> | undefined): (node: PMNode, view: EditorView, getPos: getPosHandler) => NodeView;
|
|
14
|
+
export {};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { TaskAndDecisionsPlugin } from '../types';
|
|
5
|
+
import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
6
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
5
|
-
export declare function createPlugin(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, dispatch: Dispatch, useLongPressSelection?: boolean): SafePlugin<any>;
|
|
7
|
+
export declare function createPlugin(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, dispatch: Dispatch, api: ExtractInjectionAPI<TaskAndDecisionsPlugin> | undefined, useLongPressSelection?: boolean): SafePlugin<any>;
|
|
@@ -2,7 +2,8 @@ import type { DecisionItemDefinition, TaskItemDefinition } from '@atlaskit/adf-s
|
|
|
2
2
|
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { INPUT_METHOD, USER_CONTEXT } from '@atlaskit/editor-common/analytics';
|
|
5
|
-
import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { NextEditorPlugin, OptionalPlugin, LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
|
|
6
|
+
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
6
7
|
export type TaskDecisionListType = 'taskList' | 'decisionList';
|
|
7
8
|
export type TaskDecisionInputMethod = INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD;
|
|
8
9
|
export type ContextData = {
|
|
@@ -24,3 +25,7 @@ export interface TaskDecisionPluginOptions extends LongPressSelectionPluginOptio
|
|
|
24
25
|
allowNestedTasks?: boolean;
|
|
25
26
|
consumeTabs?: boolean;
|
|
26
27
|
}
|
|
28
|
+
export type TaskAndDecisionsPlugin = NextEditorPlugin<'taskDecision', {
|
|
29
|
+
pluginConfiguration: TaskDecisionPluginOptions | undefined;
|
|
30
|
+
dependencies: [OptionalPlugin<TypeAheadPlugin>];
|
|
31
|
+
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
2
|
import type { DatePluginSharedState } from '../../date';
|
|
3
3
|
import type { ConfigWithNodeInfo } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
4
|
-
import type { StatusState } from '
|
|
4
|
+
import type { StatusState } from '@atlaskit/editor-plugin-status';
|
|
5
5
|
type SubscribeToToolbarAndPickerUpdatesCallbackArgs = {
|
|
6
6
|
dateState?: DatePluginSharedState;
|
|
7
7
|
statusState?: StatusState;
|
|
@@ -1,8 +1,122 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
import type { DirectEditorProps } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
7
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
8
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
9
|
+
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
10
|
+
import type { ErrorReporter, SEVERITY } from '@atlaskit/editor-common/utils';
|
|
11
|
+
import { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
12
|
+
import type { Transformer, AllEditorPresetPluginTypes } from '@atlaskit/editor-common/types';
|
|
13
|
+
import type { Dispatch } from '../event-dispatcher';
|
|
14
|
+
import { EventDispatcher } from '../event-dispatcher';
|
|
15
|
+
import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
|
|
16
|
+
import type { EditorAppearance, EditorConfig, EditorReactContext, EditorPlugin, EditorProps } from '../types';
|
|
17
|
+
import type { EditorNextProps } from '../types/editor-props';
|
|
18
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
19
|
+
import type { SetEditorAPI } from '../presets/context';
|
|
20
|
+
import { TransactionTracker } from '../utils/performance/track-transactions';
|
|
21
|
+
import type { FireAnalyticsCallback, AnalyticsEventPayload, DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
22
|
+
import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
23
|
+
export interface EditorViewProps {
|
|
24
|
+
editorProps: EditorProps | EditorNextProps;
|
|
25
|
+
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
26
|
+
providerFactory: ProviderFactory;
|
|
27
|
+
portalProviderAPI: PortalProviderAPI;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
experienceStore?: ExperienceStore;
|
|
30
|
+
setEditorApi?: SetEditorAPI;
|
|
31
|
+
render?: (props: {
|
|
32
|
+
editor: JSX.Element;
|
|
33
|
+
view?: EditorView;
|
|
34
|
+
config: EditorConfig;
|
|
35
|
+
eventDispatcher: EventDispatcher;
|
|
36
|
+
transformer?: Transformer<string>;
|
|
37
|
+
dispatchAnalyticsEvent: DispatchAnalyticsEvent;
|
|
38
|
+
editorRef: React.RefObject<HTMLDivElement>;
|
|
39
|
+
}) => JSX.Element;
|
|
40
|
+
onEditorCreated: (instance: {
|
|
41
|
+
view: EditorView;
|
|
42
|
+
config: EditorConfig;
|
|
43
|
+
eventDispatcher: EventDispatcher;
|
|
44
|
+
transformer?: Transformer<string>;
|
|
45
|
+
}) => void;
|
|
46
|
+
onEditorDestroyed: (instance: {
|
|
47
|
+
view: EditorView;
|
|
48
|
+
config: EditorConfig;
|
|
49
|
+
eventDispatcher: EventDispatcher;
|
|
50
|
+
transformer?: Transformer<string>;
|
|
51
|
+
}) => void;
|
|
52
|
+
preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
|
|
4
53
|
}
|
|
5
|
-
|
|
6
|
-
|
|
54
|
+
interface CreateEditorStateOptions {
|
|
55
|
+
props: EditorViewProps;
|
|
56
|
+
context: EditorReactContext;
|
|
57
|
+
doc?: string | Object | PMNode;
|
|
58
|
+
resetting?: boolean;
|
|
59
|
+
selectionAtStart?: boolean;
|
|
60
|
+
}
|
|
61
|
+
export declare class ReactEditorView<T = {}> extends React.Component<EditorViewProps & WrappedComponentProps & T, {}, EditorReactContext> {
|
|
62
|
+
view?: EditorView;
|
|
63
|
+
eventDispatcher: EventDispatcher;
|
|
64
|
+
contentTransformer?: Transformer<string>;
|
|
65
|
+
config: EditorConfig;
|
|
66
|
+
editorState: EditorState;
|
|
67
|
+
errorReporter: ErrorReporter;
|
|
68
|
+
dispatch: Dispatch;
|
|
69
|
+
proseMirrorRenderedSeverity?: SEVERITY;
|
|
70
|
+
transactionTracker: TransactionTracker;
|
|
71
|
+
validTransactionCount: number;
|
|
72
|
+
experienceStore?: ExperienceStore;
|
|
73
|
+
editorRef: React.RefObject<HTMLDivElement>;
|
|
74
|
+
static contextTypes: {
|
|
75
|
+
getAtlaskitAnalyticsEventHandlers: PropTypes.Requireable<(...args: any[]) => any>;
|
|
76
|
+
};
|
|
77
|
+
private canDispatchTransactions;
|
|
78
|
+
private focusTimeoutId?;
|
|
79
|
+
private reliabilityInterval?;
|
|
80
|
+
private pluginPerformanceObserver;
|
|
81
|
+
private featureFlags;
|
|
82
|
+
private pluginInjectionAPI;
|
|
83
|
+
private onPluginObservation;
|
|
84
|
+
get transactionTracking(): import("@atlaskit/editor-common/types").TransactionTracking;
|
|
85
|
+
private getPluginNames;
|
|
86
|
+
private countNodes;
|
|
87
|
+
private isTransactionTrackingExplicitlyDisabled;
|
|
88
|
+
constructor(props: EditorViewProps & WrappedComponentProps & T, context: EditorReactContext);
|
|
89
|
+
getEditorState: () => EditorState | undefined;
|
|
90
|
+
getEditorView: () => EditorView | undefined;
|
|
91
|
+
UNSAFE_componentWillReceiveProps(nextProps: EditorViewProps): void;
|
|
92
|
+
formatFullWidthAppearance: (appearance: EditorAppearance | undefined) => FULL_WIDTH_MODE;
|
|
93
|
+
resetEditorState: ({ doc, shouldScrollToBottom, }: {
|
|
94
|
+
doc: string;
|
|
95
|
+
shouldScrollToBottom: boolean;
|
|
96
|
+
}) => void;
|
|
97
|
+
blur: () => void;
|
|
98
|
+
reconfigureState(props: EditorViewProps): void;
|
|
99
|
+
handleAnalyticsEvent: FireAnalyticsCallback;
|
|
100
|
+
componentDidMount(): void;
|
|
101
|
+
/**
|
|
102
|
+
* Clean up any non-PM resources when the editor is unmounted
|
|
103
|
+
*/
|
|
104
|
+
componentWillUnmount(): void;
|
|
105
|
+
private editorPlugins;
|
|
106
|
+
getPlugins(preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>): EditorPlugin[];
|
|
107
|
+
createEditorState: (options: CreateEditorStateOptions) => EditorState;
|
|
108
|
+
private onEditorViewStateUpdated;
|
|
109
|
+
private trackValidTransactions;
|
|
110
|
+
private dispatchTransaction;
|
|
111
|
+
getDirectEditorProps: (state?: EditorState) => DirectEditorProps;
|
|
112
|
+
private createEditorView;
|
|
113
|
+
handleEditorViewRef: (node: HTMLDivElement) => void;
|
|
114
|
+
dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void;
|
|
115
|
+
private createEditor;
|
|
116
|
+
private editor;
|
|
117
|
+
render(): JSX.Element;
|
|
118
|
+
}
|
|
119
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<EditorViewProps & WrappedComponentProps<"intl">>> & {
|
|
120
|
+
WrappedComponent: React.ComponentType<EditorViewProps & WrappedComponentProps<"intl">>;
|
|
7
121
|
};
|
|
8
122
|
export default _default;
|