@atlaskit/editor-core 188.3.1 → 188.5.0
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 +21 -0
- package/dist/cjs/labs/next/presets/universal.js +4 -2
- package/dist/cjs/plugins/date/actions.js +14 -8
- package/dist/cjs/plugins/date/index.js +5 -179
- package/dist/cjs/plugins/date/plugin.js +191 -0
- package/dist/cjs/plugins/date/pm-plugins/main.js +5 -5
- package/dist/cjs/plugins/date/ui/DatePicker/date-picker-input.js +14 -14
- package/dist/cjs/plugins/date/ui/DatePicker/index.js +4 -5
- package/dist/cjs/plugins/index.js +2 -9
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +38 -39
- package/dist/cjs/plugins/mentions/index.js +31 -21
- package/dist/cjs/plugins/mentions/ui/ToolbarMention/index.js +1 -3
- package/dist/cjs/plugins/placeholder-text/index.js +9 -9
- package/dist/cjs/plugins/type-ahead/api.js +8 -26
- package/dist/cjs/plugins/type-ahead/index.js +135 -4
- package/dist/cjs/plugins/undo-redo/index.js +10 -8
- package/dist/cjs/plugins/undo-redo/types.js +5 -0
- package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +10 -9
- package/dist/cjs/test-utils.js +0 -7
- package/dist/cjs/ui/ContentStyles/index.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/labs/next/presets/universal.js +3 -1
- package/dist/es2019/plugins/date/actions.js +24 -17
- package/dist/es2019/plugins/date/index.js +1 -173
- package/dist/es2019/plugins/date/plugin.js +177 -0
- package/dist/es2019/plugins/date/pm-plugins/main.js +1 -1
- package/dist/es2019/plugins/date/ui/DatePicker/date-picker-input.js +3 -2
- package/dist/es2019/plugins/date/ui/DatePicker/index.js +2 -2
- package/dist/es2019/plugins/index.js +2 -3
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +5 -7
- package/dist/es2019/plugins/mentions/index.js +30 -22
- package/dist/es2019/plugins/mentions/ui/ToolbarMention/index.js +2 -5
- package/dist/es2019/plugins/placeholder-text/index.js +8 -8
- package/dist/es2019/plugins/type-ahead/api.js +9 -28
- package/dist/es2019/plugins/type-ahead/index.js +140 -5
- package/dist/es2019/plugins/undo-redo/index.js +5 -2
- package/dist/es2019/plugins/undo-redo/types.js +1 -0
- package/dist/es2019/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +10 -9
- package/dist/es2019/test-utils.js +0 -1
- package/dist/es2019/ui/ContentStyles/index.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/labs/next/presets/universal.js +3 -1
- package/dist/esm/plugins/date/actions.js +14 -8
- package/dist/esm/plugins/date/index.js +1 -175
- package/dist/esm/plugins/date/plugin.js +179 -0
- package/dist/esm/plugins/date/pm-plugins/main.js +1 -1
- package/dist/esm/plugins/date/ui/DatePicker/date-picker-input.js +3 -2
- package/dist/esm/plugins/date/ui/DatePicker/index.js +2 -2
- package/dist/esm/plugins/index.js +2 -3
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +32 -33
- package/dist/esm/plugins/mentions/index.js +32 -22
- package/dist/esm/plugins/mentions/ui/ToolbarMention/index.js +2 -5
- package/dist/esm/plugins/placeholder-text/index.js +9 -9
- package/dist/esm/plugins/type-ahead/api.js +9 -27
- package/dist/esm/plugins/type-ahead/index.js +136 -5
- package/dist/esm/plugins/undo-redo/index.js +10 -8
- package/dist/esm/plugins/undo-redo/types.js +1 -0
- package/dist/esm/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +10 -9
- package/dist/esm/test-utils.js +0 -1
- package/dist/esm/ui/ContentStyles/index.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/labs/next/presets/default.d.ts +228 -18
- package/dist/types/plugins/date/actions.d.ts +42 -6
- package/dist/types/plugins/date/index.d.ts +2 -14
- package/dist/types/plugins/date/plugin.d.ts +3 -0
- package/dist/types/plugins/date/pm-plugins/main.d.ts +2 -2
- package/dist/types/plugins/date/types.d.ts +18 -0
- package/dist/types/plugins/date/ui/DatePicker/date-picker-input.d.ts +3 -4
- package/dist/types/plugins/date/ui/DatePicker/index.d.ts +1 -1
- package/dist/types/plugins/date/utils/internal.d.ts +2 -2
- package/dist/types/plugins/index.d.ts +1 -2
- package/dist/types/plugins/insert-block/types.d.ts +5 -3
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/types.d.ts +1 -2
- package/dist/types/plugins/layout/actions.d.ts +1 -1
- package/dist/types/plugins/mentions/index.d.ts +11 -4
- package/dist/types/plugins/mentions/ui/ToolbarMention/index.d.ts +1 -0
- package/dist/types/plugins/placeholder-text/index.d.ts +8 -3
- package/dist/types/plugins/status/actions.d.ts +1 -1
- package/dist/types/plugins/tasks-and-decisions/commands.d.ts +1 -1
- package/dist/types/plugins/type-ahead/api.d.ts +7 -9
- package/dist/types/plugins/type-ahead/utils.d.ts +1 -2
- package/dist/types/plugins/undo-redo/index.d.ts +2 -2
- package/dist/types/plugins/undo-redo/types.d.ts +5 -0
- package/dist/types/plugins/undo-redo/ui/ToolbarUndoRedo/index.d.ts +3 -0
- package/dist/types/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.d.ts +2 -2
- package/dist/types/test-utils.d.ts +0 -1
- package/dist/types/types/editor-props.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
- package/dist/types/ui/ContentStyles/index.d.ts +2 -2
- package/package.json +12 -7
- package/dist/cjs/plugins/border/index.js +0 -19
- package/dist/es2019/plugins/border/index.js +0 -11
- package/dist/esm/plugins/border/index.js +0 -13
- package/dist/types/plugins/border/index.d.ts +0 -3
- package/dist/types/plugins/date/styles.d.ts +0 -1
- package/dist/types-ts4.5/actions/index.d.ts +0 -49
- package/dist/types-ts4.5/commands/index.d.ts +0 -1
- package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +0 -34
- package/dist/types-ts4.5/composable-editor/editor.d.ts +0 -9
- package/dist/types-ts4.5/composable-editor/hooks/useEditorMeasuresConstructor.d.ts +0 -17
- package/dist/types-ts4.5/composable-editor/hooks/useMeasureEditorMountTime.d.ts +0 -13
- package/dist/types-ts4.5/composable-editor/hooks/useProviderFactory.d.ts +0 -14
- package/dist/types-ts4.5/composable-editor/utils/editorMeasureTTICallback.d.ts +0 -5
- package/dist/types-ts4.5/composable-editor/utils/getBaseFontSize.d.ts +0 -6
- package/dist/types-ts4.5/composable-editor/utils/getProvidersFromEditorProps.d.ts +0 -9
- package/dist/types-ts4.5/composable-editor/utils/handleProviders.d.ts +0 -12
- package/dist/types-ts4.5/composable-editor/utils/sendDurationAnalytics.d.ts +0 -15
- package/dist/types-ts4.5/composable-editor/utils/trackEditorActions.d.ts +0 -29
- package/dist/types-ts4.5/composable-editor.d.ts +0 -1
- package/dist/types-ts4.5/create-editor/ErrorBoundary.d.ts +0 -44
- package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +0 -8
- package/dist/types-ts4.5/create-editor/ReactEditorViewContext.d.ts +0 -2
- 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/create-editor/WithEditorView.d.ts +0 -6
- package/dist/types-ts4.5/create-editor/consts.d.ts +0 -3
- package/dist/types-ts4.5/create-editor/create-editor.d.ts +0 -18
- package/dist/types-ts4.5/create-editor/create-plugins-list.d.ts +0 -16
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +0 -3
- package/dist/types-ts4.5/create-editor/create-schema.d.ts +0 -6
- package/dist/types-ts4.5/create-editor/feature-flags-from-props.d.ts +0 -7
- package/dist/types-ts4.5/create-editor/get-plugins.d.ts +0 -44
- package/dist/types-ts4.5/create-editor/get-ui-component.d.ts +0 -3
- package/dist/types-ts4.5/create-editor/index.d.ts +0 -3
- package/dist/types-ts4.5/create-editor/messages.d.ts +0 -7
- package/dist/types-ts4.5/create-editor/preset-utils.d.ts +0 -2
- package/dist/types-ts4.5/create-editor/sort-by-order.d.ts +0 -14
- package/dist/types-ts4.5/editor.d.ts +0 -10
- package/dist/types-ts4.5/element-browser.d.ts +0 -1
- package/dist/types-ts4.5/event-dispatcher/index.d.ts +0 -2
- package/dist/types-ts4.5/extensibility.d.ts +0 -15
- package/dist/types-ts4.5/extensions.d.ts +0 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -140
- package/dist/types-ts4.5/i18n/da.d.ts +0 -139
- package/dist/types-ts4.5/i18n/de.d.ts +0 -139
- package/dist/types-ts4.5/i18n/en.d.ts +0 -141
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -141
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -141
- package/dist/types-ts4.5/i18n/es.d.ts +0 -139
- package/dist/types-ts4.5/i18n/et.d.ts +0 -168
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -139
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -139
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -139
- package/dist/types-ts4.5/i18n/index.d.ts +0 -35
- package/dist/types-ts4.5/i18n/is.d.ts +0 -153
- package/dist/types-ts4.5/i18n/it.d.ts +0 -139
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -139
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -139
- package/dist/types-ts4.5/i18n/languages.d.ts +0 -38
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -139
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -139
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -139
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -139
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -180
- package/dist/types-ts4.5/i18n/ro.d.ts +0 -153
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -139
- package/dist/types-ts4.5/i18n/sk.d.ts +0 -168
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -139
- package/dist/types-ts4.5/i18n/th.d.ts +0 -139
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -139
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -139
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -139
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -139
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -139
- package/dist/types-ts4.5/index.d.ts +0 -46
- package/dist/types-ts4.5/keymaps/index.d.ts +0 -2
- package/dist/types-ts4.5/labs/CollapsedEditor/index.d.ts +0 -26
- package/dist/types-ts4.5/labs/EditorWithActions/index.d.ts +0 -26
- package/dist/types-ts4.5/labs/next/presets/default.d.ts +0 -906
- package/dist/types-ts4.5/labs/next/presets/types.d.ts +0 -6
- package/dist/types-ts4.5/labs/next/presets/universal.d.ts +0 -21
- package/dist/types-ts4.5/labs/next/presets/useUniversalPreset.d.ts +0 -7
- package/dist/types-ts4.5/labs-next.d.ts +0 -1
- package/dist/types-ts4.5/messages.d.ts +0 -8
- package/dist/types-ts4.5/nodeviews/context-adapter.d.ts +0 -2
- package/dist/types-ts4.5/nodeviews/getInlineNodeViewProducer.styles.d.ts +0 -1
- package/dist/types-ts4.5/nodeviews/getPerformanceOptions.d.ts +0 -2
- package/dist/types-ts4.5/nodeviews/index.d.ts +0 -1
- package/dist/types-ts4.5/nodeviews/types.d.ts +0 -12
- package/dist/types-ts4.5/plugins/alignment/commands/index.d.ts +0 -4
- package/dist/types-ts4.5/plugins/alignment/index.d.ts +0 -5
- package/dist/types-ts4.5/plugins/alignment/pm-plugins/keymap.d.ts +0 -2
- package/dist/types-ts4.5/plugins/alignment/pm-plugins/main.d.ts +0 -8
- package/dist/types-ts4.5/plugins/alignment/pm-plugins/types.d.ts +0 -5
- package/dist/types-ts4.5/plugins/alignment/ui/ToolbarAlignment/icon-map.d.ts +0 -6
- package/dist/types-ts4.5/plugins/alignment/ui/ToolbarAlignment/index.d.ts +0 -33
- package/dist/types-ts4.5/plugins/alignment/ui/ToolbarAlignment/messages.d.ts +0 -22
- package/dist/types-ts4.5/plugins/alignment/ui/ToolbarAlignment/styles.d.ts +0 -3
- package/dist/types-ts4.5/plugins/alignment/utils/index.d.ts +0 -3
- package/dist/types-ts4.5/plugins/analytics/consts.d.ts +0 -3
- package/dist/types-ts4.5/plugins/analytics/index.d.ts +0 -8
- package/dist/types-ts4.5/plugins/analytics/plugin-key.d.ts +0 -8
- package/dist/types-ts4.5/plugins/analytics/plugin.d.ts +0 -29
- package/dist/types-ts4.5/plugins/analytics/types/dispatch-analytics-event.d.ts +0 -1
- package/dist/types-ts4.5/plugins/analytics/types/enums.d.ts +0 -1
- package/dist/types-ts4.5/plugins/analytics/types/events.d.ts +0 -1
- package/dist/types-ts4.5/plugins/analytics/types/experimental-events.d.ts +0 -1
- package/dist/types-ts4.5/plugins/analytics/types/extension-events.d.ts +0 -2
- package/dist/types-ts4.5/plugins/analytics/types/general-events.d.ts +0 -2
- package/dist/types-ts4.5/plugins/analytics/types/index.d.ts +0 -9
- package/dist/types-ts4.5/plugins/analytics/types/inline-comment-events.d.ts +0 -2
- package/dist/types-ts4.5/plugins/analytics/types/link-tool-bar-events.d.ts +0 -1
- package/dist/types-ts4.5/plugins/analytics/types/media-events.d.ts +0 -1
- package/dist/types-ts4.5/plugins/analytics/types/node-events.d.ts +0 -2
- package/dist/types-ts4.5/plugins/analytics/types/selection-events.d.ts +0 -1
- package/dist/types-ts4.5/plugins/analytics/types/smart-links.d.ts +0 -2
- package/dist/types-ts4.5/plugins/analytics/types/toolbar-button.d.ts +0 -2
- package/dist/types-ts4.5/plugins/analytics/utils.d.ts +0 -22
- package/dist/types-ts4.5/plugins/annotation/commands/index.d.ts +0 -16
- package/dist/types-ts4.5/plugins/annotation/commands/transform.d.ts +0 -11
- package/dist/types-ts4.5/plugins/annotation/index.d.ts +0 -12
- package/dist/types-ts4.5/plugins/annotation/nodeviews/index.d.ts +0 -11
- package/dist/types-ts4.5/plugins/annotation/pm-plugins/inline-comment.d.ts +0 -3
- package/dist/types-ts4.5/plugins/annotation/pm-plugins/keymap.d.ts +0 -2
- package/dist/types-ts4.5/plugins/annotation/pm-plugins/plugin-factory.d.ts +0 -2
- package/dist/types-ts4.5/plugins/annotation/pm-plugins/reducer.d.ts +0 -3
- package/dist/types-ts4.5/plugins/annotation/pm-plugins/types.d.ts +0 -78
- package/dist/types-ts4.5/plugins/annotation/toolbar.d.ts +0 -4
- package/dist/types-ts4.5/plugins/annotation/types.d.ts +0 -86
- package/dist/types-ts4.5/plugins/annotation/ui/AnnotationViewWrapper.d.ts +0 -10
- package/dist/types-ts4.5/plugins/annotation/ui/InlineCommentView.d.ts +0 -11
- package/dist/types-ts4.5/plugins/annotation/update-provider.d.ts +0 -8
- package/dist/types-ts4.5/plugins/annotation/utils.d.ts +0 -40
- package/dist/types-ts4.5/plugins/avatar-group/index.d.ts +0 -14
- package/dist/types-ts4.5/plugins/avatar-group/messages.d.ts +0 -7
- package/dist/types-ts4.5/plugins/avatar-group/ui/AvatarGroupPluginWrapper.d.ts +0 -15
- package/dist/types-ts4.5/plugins/before-primaryToolbar/index.d.ts +0 -8
- package/dist/types-ts4.5/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.d.ts +0 -5
- package/dist/types-ts4.5/plugins/better-type-history/index.d.ts +0 -13
- package/dist/types-ts4.5/plugins/better-type-history/pm-plugins/main.d.ts +0 -3
- package/dist/types-ts4.5/plugins/better-type-history/pm-plugins/plugin-key.d.ts +0 -2
- package/dist/types-ts4.5/plugins/border/index.d.ts +0 -3
- package/dist/types-ts4.5/plugins/breakout/commands/remove-breakout.d.ts +0 -2
- package/dist/types-ts4.5/plugins/breakout/commands/set-breakout-mode.d.ts +0 -3
- package/dist/types-ts4.5/plugins/breakout/constants.d.ts +0 -4
- package/dist/types-ts4.5/plugins/breakout/index.d.ts +0 -14
- package/dist/types-ts4.5/plugins/breakout/plugin-key.d.ts +0 -5
- package/dist/types-ts4.5/plugins/breakout/types.d.ts +0 -4
- package/dist/types-ts4.5/plugins/breakout/ui/LayoutButton.d.ts +0 -17
- package/dist/types-ts4.5/plugins/breakout/utils/find-breakout-node.d.ts +0 -9
- package/dist/types-ts4.5/plugins/breakout/utils/get-breakout-mode.d.ts +0 -7
- package/dist/types-ts4.5/plugins/breakout/utils/is-breakout-mark-allowed.d.ts +0 -9
- package/dist/types-ts4.5/plugins/breakout/utils/is-supported-node.d.ts +0 -6
- package/dist/types-ts4.5/plugins/clear-marks-on-change-to-empty-document/index.d.ts +0 -7
- package/dist/types-ts4.5/plugins/code-bidi-warning/index.d.ts +0 -8
- package/dist/types-ts4.5/plugins/code-bidi-warning/plugin-key.d.ts +0 -2
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/main.d.ts +0 -5
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/plugin-factory.d.ts +0 -8
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/reducer.d.ts +0 -3
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/types.d.ts +0 -6
- package/dist/types-ts4.5/plugins/code-block/actions.d.ts +0 -18
- package/dist/types-ts4.5/plugins/code-block/ide-ux/bracket-handling.d.ts +0 -12
- package/dist/types-ts4.5/plugins/code-block/ide-ux/commands.d.ts +0 -6
- package/dist/types-ts4.5/plugins/code-block/ide-ux/line-handling.d.ts +0 -25
- package/dist/types-ts4.5/plugins/code-block/ide-ux/paired-character-handling.d.ts +0 -2
- package/dist/types-ts4.5/plugins/code-block/ide-ux/quote-handling.d.ts +0 -12
- package/dist/types-ts4.5/plugins/code-block/index.d.ts +0 -19
- package/dist/types-ts4.5/plugins/code-block/language-list.d.ts +0 -1641
- package/dist/types-ts4.5/plugins/code-block/nodeviews/code-block.d.ts +0 -21
- package/dist/types-ts4.5/plugins/code-block/plugin-key.d.ts +0 -2
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/actions.d.ts +0 -4
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/codeBlockCopySelectionPlugin.d.ts +0 -14
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/ide-ux.d.ts +0 -5
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/input-rule.d.ts +0 -3
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/keymaps.d.ts +0 -4
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/main-state.d.ts +0 -8
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/main.d.ts +0 -10
- package/dist/types-ts4.5/plugins/code-block/refresh-browser-selection.d.ts +0 -5
- package/dist/types-ts4.5/plugins/code-block/styles.d.ts +0 -2
- package/dist/types-ts4.5/plugins/code-block/toolbar.d.ts +0 -14
- package/dist/types-ts4.5/plugins/code-block/transform-to-code-block.d.ts +0 -3
- package/dist/types-ts4.5/plugins/code-block/types.d.ts +0 -7
- package/dist/types-ts4.5/plugins/code-block/ui/class-names.d.ts +0 -8
- package/dist/types-ts4.5/plugins/code-block/utils.d.ts +0 -6
- package/dist/types-ts4.5/plugins/collab-edit/actions.d.ts +0 -11
- package/dist/types-ts4.5/plugins/collab-edit/analytics.d.ts +0 -6
- package/dist/types-ts4.5/plugins/collab-edit/events/handlers.d.ts +0 -24
- package/dist/types-ts4.5/plugins/collab-edit/events/initialize.d.ts +0 -16
- package/dist/types-ts4.5/plugins/collab-edit/events/send-transaction.d.ts +0 -11
- package/dist/types-ts4.5/plugins/collab-edit/get-participants-count.d.ts +0 -2
- package/dist/types-ts4.5/plugins/collab-edit/index.d.ts +0 -14
- package/dist/types-ts4.5/plugins/collab-edit/native-collab-provider-plugin.d.ts +0 -7
- package/dist/types-ts4.5/plugins/collab-edit/participants.d.ts +0 -18
- package/dist/types-ts4.5/plugins/collab-edit/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/plugins/collab-edit/plugin-state.d.ts +0 -24
- package/dist/types-ts4.5/plugins/collab-edit/plugin.d.ts +0 -11
- package/dist/types-ts4.5/plugins/collab-edit/styles.d.ts +0 -1
- package/dist/types-ts4.5/plugins/collab-edit/types.d.ts +0 -8
- package/dist/types-ts4.5/plugins/collab-edit/ui/avatars-with-plugin-state.d.ts +0 -23
- package/dist/types-ts4.5/plugins/collab-edit/ui/avatars.d.ts +0 -12
- package/dist/types-ts4.5/plugins/collab-edit/ui/colored-avatar-item.d.ts +0 -7
- package/dist/types-ts4.5/plugins/collab-edit/ui/index.d.ts +0 -2
- package/dist/types-ts4.5/plugins/collab-edit/ui/invite-to-edit.d.ts +0 -10
- package/dist/types-ts4.5/plugins/collab-edit/ui/styles.d.ts +0 -3
- package/dist/types-ts4.5/plugins/collab-edit/ui/to-avatar.d.ts +0 -4
- package/dist/types-ts4.5/plugins/collab-edit/utils.d.ts +0 -18
- package/dist/types-ts4.5/plugins/custom-autoformat/doc.d.ts +0 -6
- package/dist/types-ts4.5/plugins/custom-autoformat/index.d.ts +0 -6
- package/dist/types-ts4.5/plugins/custom-autoformat/input-rules.d.ts +0 -9
- package/dist/types-ts4.5/plugins/custom-autoformat/reducers.d.ts +0 -4
- package/dist/types-ts4.5/plugins/custom-autoformat/types.d.ts +0 -31
- package/dist/types-ts4.5/plugins/custom-autoformat/utils.d.ts +0 -6
- package/dist/types-ts4.5/plugins/data-consumer/index.d.ts +0 -3
- package/dist/types-ts4.5/plugins/date/actions.d.ts +0 -17
- package/dist/types-ts4.5/plugins/date/index.d.ts +0 -17
- package/dist/types-ts4.5/plugins/date/nodeviews/date.d.ts +0 -3
- package/dist/types-ts4.5/plugins/date/nodeviews/messages.d.ts +0 -7
- package/dist/types-ts4.5/plugins/date/pm-plugins/keymap.d.ts +0 -3
- package/dist/types-ts4.5/plugins/date/pm-plugins/main.d.ts +0 -6
- package/dist/types-ts4.5/plugins/date/pm-plugins/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/plugins/date/pm-plugins/types.d.ts +0 -12
- package/dist/types-ts4.5/plugins/date/pm-plugins/utils.d.ts +0 -5
- package/dist/types-ts4.5/plugins/date/types.d.ts +0 -10
- package/dist/types-ts4.5/plugins/date/ui/DatePicker/date-picker-input.d.ts +0 -25
- package/dist/types-ts4.5/plugins/date/ui/DatePicker/index.d.ts +0 -36
- package/dist/types-ts4.5/plugins/date/utils/formatParse.d.ts +0 -27
- package/dist/types-ts4.5/plugins/date/utils/internal.d.ts +0 -33
- package/dist/types-ts4.5/plugins/expand/commands.d.ts +0 -12
- package/dist/types-ts4.5/plugins/expand/index.d.ts +0 -24
- package/dist/types-ts4.5/plugins/expand/nodeviews/index.d.ts +0 -54
- package/dist/types-ts4.5/plugins/expand/pm-plugins/keymap.d.ts +0 -4
- package/dist/types-ts4.5/plugins/expand/pm-plugins/main.d.ts +0 -8
- package/dist/types-ts4.5/plugins/expand/pm-plugins/plugin-factory.d.ts +0 -3
- package/dist/types-ts4.5/plugins/expand/reducer.d.ts +0 -3
- package/dist/types-ts4.5/plugins/expand/toolbar.d.ts +0 -3
- package/dist/types-ts4.5/plugins/expand/types.d.ts +0 -9
- package/dist/types-ts4.5/plugins/expand/ui/ExpandIconButton.d.ts +0 -43
- package/dist/types-ts4.5/plugins/expand/ui/class-names.d.ts +0 -11
- package/dist/types-ts4.5/plugins/expand/ui/styles.d.ts +0 -2
- package/dist/types-ts4.5/plugins/expand/utils.d.ts +0 -1
- package/dist/types-ts4.5/plugins/extension/actions.d.ts +0 -17
- package/dist/types-ts4.5/plugins/extension/commands.d.ts +0 -12
- package/dist/types-ts4.5/plugins/extension/context-panel.d.ts +0 -8
- package/dist/types-ts4.5/plugins/extension/extension-api.d.ts +0 -10
- package/dist/types-ts4.5/plugins/extension/index.d.ts +0 -3
- package/dist/types-ts4.5/plugins/extension/nodeviews/extension.d.ts +0 -32
- package/dist/types-ts4.5/plugins/extension/plugin-factory.d.ts +0 -4
- package/dist/types-ts4.5/plugins/extension/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/plugins/extension/pm-plugins/keymap.d.ts +0 -3
- package/dist/types-ts4.5/plugins/extension/pm-plugins/main.d.ts +0 -27
- package/dist/types-ts4.5/plugins/extension/pm-plugins/unique-id.d.ts +0 -3
- package/dist/types-ts4.5/plugins/extension/pm-plugins/utils.d.ts +0 -3
- package/dist/types-ts4.5/plugins/extension/reducer.d.ts +0 -2
- package/dist/types-ts4.5/plugins/extension/toolbar.d.ts +0 -42
- package/dist/types-ts4.5/plugins/extension/types.d.ts +0 -22
- package/dist/types-ts4.5/plugins/extension/ui/Extension/Extension/index.d.ts +0 -109
- package/dist/types-ts4.5/plugins/extension/ui/Extension/Extension/styles.d.ts +0 -6
- package/dist/types-ts4.5/plugins/extension/ui/Extension/ExtensionComponent.d.ts +0 -51
- package/dist/types-ts4.5/plugins/extension/ui/Extension/ExtensionNodeWrapper.d.ts +0 -7
- package/dist/types-ts4.5/plugins/extension/ui/Extension/InlineExtension/index.d.ts +0 -12
- package/dist/types-ts4.5/plugins/extension/ui/Extension/InlineExtension/styles.d.ts +0 -2
- package/dist/types-ts4.5/plugins/extension/ui/Extension/Lozenge.d.ts +0 -14
- package/dist/types-ts4.5/plugins/extension/ui/Extension/index.d.ts +0 -28
- package/dist/types-ts4.5/plugins/extension/ui/Extension/styles.d.ts +0 -8
- package/dist/types-ts4.5/plugins/extension/ui/SaveIndicator/SaveIndicator.d.ts +0 -4
- package/dist/types-ts4.5/plugins/extension/ui/SaveIndicator/messages.d.ts +0 -7
- package/dist/types-ts4.5/plugins/extension/ui/SaveIndicator/types.d.ts +0 -11
- package/dist/types-ts4.5/plugins/extension/ui/styles.d.ts +0 -1
- package/dist/types-ts4.5/plugins/extension/utils.d.ts +0 -10
- package/dist/types-ts4.5/plugins/fake-text-cursor/cursor.d.ts +0 -30
- package/dist/types-ts4.5/plugins/fake-text-cursor/index.d.ts +0 -7
- package/dist/types-ts4.5/plugins/fake-text-cursor/styles.d.ts +0 -1
- package/dist/types-ts4.5/plugins/feedback-dialog/getBrowserInfo.d.ts +0 -6
- package/dist/types-ts4.5/plugins/feedback-dialog/getDeviceInfo.d.ts +0 -6
- package/dist/types-ts4.5/plugins/feedback-dialog/index.d.ts +0 -7
- package/dist/types-ts4.5/plugins/feedback-dialog/loadJiraCollectorDialogScript.d.ts +0 -8
- package/dist/types-ts4.5/plugins/find-replace/FindReplaceToolbarButtonWithState.d.ts +0 -17
- package/dist/types-ts4.5/plugins/find-replace/actions.d.ts +0 -64
- package/dist/types-ts4.5/plugins/find-replace/commands-with-analytics.d.ts +0 -27
- package/dist/types-ts4.5/plugins/find-replace/commands.d.ts +0 -12
- package/dist/types-ts4.5/plugins/find-replace/index.d.ts +0 -13
- package/dist/types-ts4.5/plugins/find-replace/keymap.d.ts +0 -3
- package/dist/types-ts4.5/plugins/find-replace/plugin.d.ts +0 -6
- package/dist/types-ts4.5/plugins/find-replace/reducer.d.ts +0 -4
- package/dist/types-ts4.5/plugins/find-replace/styles.d.ts +0 -3
- package/dist/types-ts4.5/plugins/find-replace/types.d.ts +0 -44
- package/dist/types-ts4.5/plugins/find-replace/ui/Find.d.ts +0 -71
- package/dist/types-ts4.5/plugins/find-replace/ui/FindReplace.d.ts +0 -43
- package/dist/types-ts4.5/plugins/find-replace/ui/FindReplaceToolbarButton.d.ts +0 -21
- package/dist/types-ts4.5/plugins/find-replace/ui/FindReplaceTooltipButton.d.ts +0 -18
- package/dist/types-ts4.5/plugins/find-replace/ui/Replace.d.ts +0 -26
- package/dist/types-ts4.5/plugins/find-replace/ui/styles.d.ts +0 -5
- package/dist/types-ts4.5/plugins/find-replace/utils/batch-decorations.d.ts +0 -36
- package/dist/types-ts4.5/plugins/find-replace/utils/index.d.ts +0 -49
- package/dist/types-ts4.5/plugins/fragment/index.d.ts +0 -3
- package/dist/types-ts4.5/plugins/fragment/plugin-key.d.ts +0 -2
- package/dist/types-ts4.5/plugins/fragment/pm-plugins/fragment-consistency.d.ts +0 -15
- package/dist/types-ts4.5/plugins/history/actions.d.ts +0 -8
- package/dist/types-ts4.5/plugins/history/index.d.ts +0 -13
- package/dist/types-ts4.5/plugins/history/pm-history-types.d.ts +0 -17
- package/dist/types-ts4.5/plugins/history/reducer.d.ts +0 -4
- package/dist/types-ts4.5/plugins/history/types.d.ts +0 -4
- package/dist/types-ts4.5/plugins/history/utils.d.ts +0 -4
- package/dist/types-ts4.5/plugins/indentation/commands/index.d.ts +0 -8
- package/dist/types-ts4.5/plugins/indentation/commands/utils.d.ts +0 -36
- package/dist/types-ts4.5/plugins/indentation/index.d.ts +0 -3
- package/dist/types-ts4.5/plugins/indentation/messages.d.ts +0 -12
- package/dist/types-ts4.5/plugins/indentation/pm-plugins/keymap.d.ts +0 -3
- package/dist/types-ts4.5/plugins/index.d.ts +0 -45
- package/dist/types-ts4.5/plugins/insert-block/index.d.ts +0 -16
- package/dist/types-ts4.5/plugins/insert-block/types.d.ts +0 -31
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.d.ts +0 -28
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.d.ts +0 -18
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.d.ts +0 -30
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/create-items.d.ts +0 -44
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.d.ts +0 -16
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/index.d.ts +0 -46
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/item.d.ts +0 -34
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/messages.d.ts +0 -1
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/shallow-equals.d.ts +0 -1
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/sort-items.d.ts +0 -2
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/styles.d.ts +0 -1
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/types.d.ts +0 -61
- package/dist/types-ts4.5/plugins/jira-issue/index.d.ts +0 -5
- package/dist/types-ts4.5/plugins/jira-issue/nodeviews/jira-issue.d.ts +0 -7
- package/dist/types-ts4.5/plugins/layout/actions.d.ts +0 -22
- package/dist/types-ts4.5/plugins/layout/index.d.ts +0 -15
- package/dist/types-ts4.5/plugins/layout/pm-plugins/main.d.ts +0 -6
- package/dist/types-ts4.5/plugins/layout/pm-plugins/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/plugins/layout/pm-plugins/types.d.ts +0 -14
- package/dist/types-ts4.5/plugins/layout/styles.d.ts +0 -4
- package/dist/types-ts4.5/plugins/layout/toolbar-messages.d.ts +0 -32
- package/dist/types-ts4.5/plugins/layout/toolbar.d.ts +0 -6
- package/dist/types-ts4.5/plugins/layout/types.d.ts +0 -13
- package/dist/types-ts4.5/plugins/layout/utils.d.ts +0 -1
- package/dist/types-ts4.5/plugins/macro/actions.d.ts +0 -8
- package/dist/types-ts4.5/plugins/macro/index.d.ts +0 -11
- package/dist/types-ts4.5/plugins/macro/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/plugins/macro/types.d.ts +0 -4
- package/dist/types-ts4.5/plugins/max-content-size/index.d.ts +0 -13
- package/dist/types-ts4.5/plugins/mentions/analytics.d.ts +0 -13
- package/dist/types-ts4.5/plugins/mentions/index.d.ts +0 -15
- package/dist/types-ts4.5/plugins/mentions/messages.d.ts +0 -22
- package/dist/types-ts4.5/plugins/mentions/nodeviews/mention.d.ts +0 -9
- package/dist/types-ts4.5/plugins/mentions/pm-plugins/key.d.ts +0 -3
- package/dist/types-ts4.5/plugins/mentions/pm-plugins/main.d.ts +0 -6
- package/dist/types-ts4.5/plugins/mentions/pm-plugins/utils.d.ts +0 -4
- package/dist/types-ts4.5/plugins/mentions/type-ahead/index.d.ts +0 -17
- package/dist/types-ts4.5/plugins/mentions/types.d.ts +0 -24
- package/dist/types-ts4.5/plugins/mentions/ui/InviteItem/index.d.ts +0 -22
- package/dist/types-ts4.5/plugins/mentions/ui/InviteItem/styles.d.ts +0 -8
- package/dist/types-ts4.5/plugins/mentions/ui/Mention/index.d.ts +0 -19
- package/dist/types-ts4.5/plugins/mentions/ui/ToolbarMention/index.d.ts +0 -12
- package/dist/types-ts4.5/plugins/mentions/utils.d.ts +0 -8
- package/dist/types-ts4.5/plugins/mobile-dimensions/actions.d.ts +0 -18
- package/dist/types-ts4.5/plugins/mobile-dimensions/commands.d.ts +0 -3
- package/dist/types-ts4.5/plugins/mobile-dimensions/index.d.ts +0 -3
- package/dist/types-ts4.5/plugins/mobile-dimensions/plugin-factory.d.ts +0 -5
- package/dist/types-ts4.5/plugins/mobile-dimensions/reducer.d.ts +0 -3
- package/dist/types-ts4.5/plugins/mobile-dimensions/types.d.ts +0 -8
- package/dist/types-ts4.5/plugins/mobile-dimensions/utils.d.ts +0 -2
- package/dist/types-ts4.5/plugins/mobile-selection/content-in-selection.d.ts +0 -5
- package/dist/types-ts4.5/plugins/mobile-selection/index.d.ts +0 -2
- package/dist/types-ts4.5/plugins/mobile-selection/mobile-selection-plugin.d.ts +0 -7
- package/dist/types-ts4.5/plugins/mobile-selection/types.d.ts +0 -32
- package/dist/types-ts4.5/plugins/panel/actions.d.ts +0 -12
- package/dist/types-ts4.5/plugins/panel/index.d.ts +0 -17
- package/dist/types-ts4.5/plugins/panel/message.d.ts +0 -37
- package/dist/types-ts4.5/plugins/panel/nodeviews/panel.d.ts +0 -36
- package/dist/types-ts4.5/plugins/panel/pm-plugins/keymaps.d.ts +0 -3
- package/dist/types-ts4.5/plugins/panel/pm-plugins/main.d.ts +0 -11
- package/dist/types-ts4.5/plugins/panel/styles.d.ts +0 -2
- package/dist/types-ts4.5/plugins/panel/toolbar.d.ts +0 -14
- package/dist/types-ts4.5/plugins/panel/types.d.ts +0 -21
- package/dist/types-ts4.5/plugins/panel/utils.d.ts +0 -5
- package/dist/types-ts4.5/plugins/paste/actions.d.ts +0 -15
- package/dist/types-ts4.5/plugins/paste/commands.d.ts +0 -30
- package/dist/types-ts4.5/plugins/paste/edge-cases/index.d.ts +0 -7
- package/dist/types-ts4.5/plugins/paste/edge-cases/lists.d.ts +0 -18
- package/dist/types-ts4.5/plugins/paste/handlers.d.ts +0 -54
- package/dist/types-ts4.5/plugins/paste/index.d.ts +0 -25
- package/dist/types-ts4.5/plugins/paste/plugins/media.d.ts +0 -12
- package/dist/types-ts4.5/plugins/paste/pm-plugins/analytics.d.ts +0 -45
- package/dist/types-ts4.5/plugins/paste/pm-plugins/clipboard-text-serializer.d.ts +0 -13
- package/dist/types-ts4.5/plugins/paste/pm-plugins/main.d.ts +0 -10
- package/dist/types-ts4.5/plugins/paste/pm-plugins/plugin-factory.d.ts +0 -3
- package/dist/types-ts4.5/plugins/paste/reducer.d.ts +0 -3
- package/dist/types-ts4.5/plugins/paste/types.d.ts +0 -6
- package/dist/types-ts4.5/plugins/paste/util/index.d.ts +0 -21
- package/dist/types-ts4.5/plugins/paste/util/tinyMCE.d.ts +0 -32
- package/dist/types-ts4.5/plugins/placeholder-text/actions.d.ts +0 -4
- package/dist/types-ts4.5/plugins/placeholder-text/index.d.ts +0 -13
- package/dist/types-ts4.5/plugins/placeholder-text/placeholder-text-nodeview.d.ts +0 -17
- package/dist/types-ts4.5/plugins/placeholder-text/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/plugins/placeholder-text/selection-utils.d.ts +0 -2
- package/dist/types-ts4.5/plugins/placeholder-text/styles.d.ts +0 -1
- package/dist/types-ts4.5/plugins/placeholder-text/types.d.ts +0 -7
- package/dist/types-ts4.5/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.d.ts +0 -25
- package/dist/types-ts4.5/plugins/rank.d.ts +0 -6
- 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/selection/actions.d.ts +0 -17
- package/dist/types-ts4.5/plugins/selection/commands.d.ts +0 -10
- package/dist/types-ts4.5/plugins/selection/gap-cursor/actions.d.ts +0 -25
- package/dist/types-ts4.5/plugins/selection/gap-cursor/direction.d.ts +0 -10
- package/dist/types-ts4.5/plugins/selection/gap-cursor/selection.d.ts +0 -1
- package/dist/types-ts4.5/plugins/selection/gap-cursor/styles.d.ts +0 -2
- package/dist/types-ts4.5/plugins/selection/gap-cursor/utils/is-ignored.d.ts +0 -1
- package/dist/types-ts4.5/plugins/selection/gap-cursor/utils/is-valid-target-node.d.ts +0 -1
- package/dist/types-ts4.5/plugins/selection/gap-cursor/utils/place-gap-cursor.d.ts +0 -2
- package/dist/types-ts4.5/plugins/selection/gap-cursor/utils.d.ts +0 -8
- package/dist/types-ts4.5/plugins/selection/gap-cursor-selection.d.ts +0 -2
- package/dist/types-ts4.5/plugins/selection/index.d.ts +0 -13
- package/dist/types-ts4.5/plugins/selection/plugin-factory.d.ts +0 -2
- package/dist/types-ts4.5/plugins/selection/pm-plugins/events/create-selection-between.d.ts +0 -4
- package/dist/types-ts4.5/plugins/selection/pm-plugins/events/keydown.d.ts +0 -2
- package/dist/types-ts4.5/plugins/selection/pm-plugins/gap-cursor-keymap.d.ts +0 -2
- package/dist/types-ts4.5/plugins/selection/pm-plugins/gap-cursor-main.d.ts +0 -6
- package/dist/types-ts4.5/plugins/selection/pm-plugins/gap-cursor-plugin-key.d.ts +0 -2
- package/dist/types-ts4.5/plugins/selection/pm-plugins/keymap.d.ts +0 -3
- package/dist/types-ts4.5/plugins/selection/pm-plugins/selection-main.d.ts +0 -7
- package/dist/types-ts4.5/plugins/selection/reducer.d.ts +0 -3
- package/dist/types-ts4.5/plugins/selection/types.d.ts +0 -12
- package/dist/types-ts4.5/plugins/selection/utils.d.ts +0 -58
- package/dist/types-ts4.5/plugins/status/actions.d.ts +0 -14
- package/dist/types-ts4.5/plugins/status/analytics.d.ts +0 -4
- package/dist/types-ts4.5/plugins/status/index.d.ts +0 -6
- package/dist/types-ts4.5/plugins/status/keymap.d.ts +0 -3
- package/dist/types-ts4.5/plugins/status/nodeviews/messages.d.ts +0 -17
- package/dist/types-ts4.5/plugins/status/nodeviews/status.d.ts +0 -24
- 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/styles.d.ts +0 -1
- package/dist/types-ts4.5/plugins/status/types.d.ts +0 -18
- package/dist/types-ts4.5/plugins/status/ui/statusPicker.d.ts +0 -62
- package/dist/types-ts4.5/plugins/status/utils.d.ts +0 -5
- package/dist/types-ts4.5/plugins/submit-editor/index.d.ts +0 -16
- package/dist/types-ts4.5/plugins/tasks-and-decisions/commands.d.ts +0 -16
- package/dist/types-ts4.5/plugins/tasks-and-decisions/index.d.ts +0 -6
- package/dist/types-ts4.5/plugins/tasks-and-decisions/nodeviews/decisionItem.d.ts +0 -5
- package/dist/types-ts4.5/plugins/tasks-and-decisions/nodeviews/taskItem.d.ts +0 -9
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/commands.d.ts +0 -15
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/helpers.d.ts +0 -76
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/input-rules.d.ts +0 -5
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/keymaps.d.ts +0 -8
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/main.d.ts +0 -5
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/plugin-key.d.ts +0 -2
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/types.d.ts +0 -8
- package/dist/types-ts4.5/plugins/tasks-and-decisions/styles.d.ts +0 -1
- package/dist/types-ts4.5/plugins/tasks-and-decisions/types.d.ts +0 -26
- package/dist/types-ts4.5/plugins/tasks-and-decisions/ui/Decision/index.d.ts +0 -14
- package/dist/types-ts4.5/plugins/tasks-and-decisions/ui/Task/index.d.ts +0 -27
- package/dist/types-ts4.5/plugins/tasks-and-decisions/ui/Task/task-item-with-providers.d.ts +0 -28
- package/dist/types-ts4.5/plugins/tasks-and-decisions/ui/ToolbarDecision/index.d.ts +0 -20
- package/dist/types-ts4.5/plugins/tasks-and-decisions/ui/ToolbarTask/index.d.ts +0 -20
- package/dist/types-ts4.5/plugins/tasks-and-decisions/utils.d.ts +0 -5
- package/dist/types-ts4.5/plugins/text-color/commands/change-color.d.ts +0 -3
- package/dist/types-ts4.5/plugins/text-color/commands/remove-color.d.ts +0 -2
- package/dist/types-ts4.5/plugins/text-color/commands/toggle-color.d.ts +0 -2
- package/dist/types-ts4.5/plugins/text-color/index.d.ts +0 -7
- package/dist/types-ts4.5/plugins/text-color/pm-plugins/main.d.ts +0 -25
- package/dist/types-ts4.5/plugins/text-color/types.d.ts +0 -12
- package/dist/types-ts4.5/plugins/text-color/ui/ToolbarTextColor/icon.d.ts +0 -2
- package/dist/types-ts4.5/plugins/text-color/ui/ToolbarTextColor/index.d.ts +0 -53
- package/dist/types-ts4.5/plugins/text-color/ui/ToolbarTextColor/styles.d.ts +0 -3
- package/dist/types-ts4.5/plugins/text-color/utils/color.d.ts +0 -6
- package/dist/types-ts4.5/plugins/text-color/utils/disabled.d.ts +0 -2
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/index.d.ts +0 -19
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/pm-plugins/indentation-buttons.d.ts +0 -17
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/types.d.ts +0 -20
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/ui/Toolbar.d.ts +0 -4
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.d.ts +0 -9
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/ui/index.d.ts +0 -24
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/ui/onItemActivated.d.ts +0 -8
- package/dist/types-ts4.5/plugins/type-ahead/api.d.ts +0 -63
- 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 -15
- 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/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 -64
- 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 -28
- package/dist/types-ts4.5/plugins/undo-redo/attach-input-meta.d.ts +0 -5
- package/dist/types-ts4.5/plugins/undo-redo/commands.d.ts +0 -4
- package/dist/types-ts4.5/plugins/undo-redo/enums.d.ts +0 -4
- package/dist/types-ts4.5/plugins/undo-redo/index.d.ts +0 -3
- package/dist/types-ts4.5/plugins/undo-redo/pm-plugins/keymaps.d.ts +0 -2
- package/dist/types-ts4.5/plugins/undo-redo/pm-plugins/main.d.ts +0 -2
- package/dist/types-ts4.5/plugins/undo-redo/pm-plugins/plugin-key.d.ts +0 -2
- package/dist/types-ts4.5/plugins/undo-redo/ui/ToolbarUndoRedo/index.d.ts +0 -21
- package/dist/types-ts4.5/plugins/view-update-subscription/index.d.ts +0 -19
- package/dist/types-ts4.5/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.d.ts +0 -12
- package/dist/types-ts4.5/plugins/view-update-subscription/subscribe/type-ahead-updates.d.ts +0 -9
- package/dist/types-ts4.5/preset-default.d.ts +0 -1
- package/dist/types-ts4.5/preset-universal.d.ts +0 -1
- package/dist/types-ts4.5/presets/context.d.ts +0 -15
- package/dist/types-ts4.5/selection-api/api.d.ts +0 -11
- package/dist/types-ts4.5/stories/examples.d.ts +0 -9
- package/dist/types-ts4.5/test-utils.d.ts +0 -41
- package/dist/types-ts4.5/types/browser.d.ts +0 -1
- package/dist/types-ts4.5/types/command.d.ts +0 -5
- package/dist/types-ts4.5/types/dom-at-pos.d.ts +0 -4
- package/dist/types-ts4.5/types/editor-appearance-component.d.ts +0 -50
- package/dist/types-ts4.5/types/editor-appearance.d.ts +0 -1
- package/dist/types-ts4.5/types/editor-config.d.ts +0 -25
- package/dist/types-ts4.5/types/editor-instance.d.ts +0 -19
- package/dist/types-ts4.5/types/editor-onchange.d.ts +0 -4
- package/dist/types-ts4.5/types/editor-plugin.d.ts +0 -1
- package/dist/types-ts4.5/types/editor-props.d.ts +0 -262
- package/dist/types-ts4.5/types/editor-react-context.d.ts +0 -1
- package/dist/types-ts4.5/types/empty-state-handler.d.ts +0 -1
- package/dist/types-ts4.5/types/extension-config.d.ts +0 -5
- package/dist/types-ts4.5/types/feature-flags.d.ts +0 -1
- package/dist/types-ts4.5/types/i18n.d.ts +0 -5
- package/dist/types-ts4.5/types/index.d.ts +0 -18
- package/dist/types-ts4.5/types/performance-tracking.d.ts +0 -1
- package/dist/types-ts4.5/types/pm-config.d.ts +0 -1
- package/dist/types-ts4.5/types/pm-plugin-list.d.ts +0 -9
- package/dist/types-ts4.5/types/pm-plugin.d.ts +0 -1
- package/dist/types-ts4.5/types/ui-components.d.ts +0 -1
- package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/index.d.ts +0 -10
- package/dist/types-ts4.5/ui/Addon/ClickAreaInline/index.d.ts +0 -8
- package/dist/types-ts4.5/ui/Addon/ClickAreaMobile/index.d.ts +0 -31
- package/dist/types-ts4.5/ui/Addon/Dropdown/index.d.ts +0 -14
- package/dist/types-ts4.5/ui/Addon/Dropdown/styles.d.ts +0 -1
- package/dist/types-ts4.5/ui/Addon/DropdownItem/index.d.ts +0 -5
- package/dist/types-ts4.5/ui/Addon/DropdownItem/styles.d.ts +0 -1
- package/dist/types-ts4.5/ui/Addon/click-area-helper.d.ts +0 -13
- package/dist/types-ts4.5/ui/Addon/index.d.ts +0 -6
- package/dist/types-ts4.5/ui/Addon/types.d.ts +0 -17
- package/dist/types-ts4.5/ui/Alignment/AlignmentButton/index.d.ts +0 -17
- package/dist/types-ts4.5/ui/Alignment/index.d.ts +0 -12
- package/dist/types-ts4.5/ui/Alignment/styles.d.ts +0 -1
- package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +0 -11
- package/dist/types-ts4.5/ui/Appearance/Comment/Comment.d.ts +0 -7
- package/dist/types-ts4.5/ui/Appearance/Comment/Toolbar.d.ts +0 -9
- package/dist/types-ts4.5/ui/Appearance/Comment/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage.d.ts +0 -3
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +0 -39
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +0 -38
- package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbar.d.ts +0 -7
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +0 -19
- package/dist/types-ts4.5/ui/Appearance/FullPage/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/Appearance/Mobile.d.ts +0 -3
- package/dist/types-ts4.5/ui/AppearanceComponents/Mobile.d.ts +0 -14
- package/dist/types-ts4.5/ui/ChromeCollapsed/index.d.ts +0 -11
- package/dist/types-ts4.5/ui/ChromeCollapsed/messages.d.ts +0 -7
- package/dist/types-ts4.5/ui/ChromeCollapsed/styles.d.ts +0 -1
- package/dist/types-ts4.5/ui/CollapsedEditor/index.d.ts +0 -19
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/cellBackgroundColorPalette.d.ts +0 -2
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/common.d.ts +0 -1
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/paletteMessages.d.ts +0 -2
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/panelBackgroundPalette.d.ts +0 -1
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/statusColorPalette.d.ts +0 -1
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/textColorPalette.d.ts +0 -1
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/type.d.ts +0 -1
- package/dist/types-ts4.5/ui/ColorPalette/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanel.d.ts +0 -22
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanelFieldsLoader.d.ts +0 -20
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanelLoader.d.ts +0 -5
- package/dist/types-ts4.5/ui/ConfigPanel/ErrorMessage/ErrorImage.d.ts +0 -4
- package/dist/types-ts4.5/ui/ConfigPanel/ErrorMessage/index.d.ts +0 -10
- package/dist/types-ts4.5/ui/ConfigPanel/FieldMessages.d.ts +0 -12
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Boolean.d.ts +0 -8
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/CheckboxGroup.d.ts +0 -8
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/ColorPicker.d.ts +0 -21
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/CustomSelect.d.ts +0 -24
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Date.d.ts +0 -20
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/DateRange.d.ts +0 -20
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Enum.d.ts +0 -10
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Expand.d.ts +0 -18
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Fieldset.d.ts +0 -20
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Number.d.ts +0 -10
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/RadioGroup.d.ts +0 -8
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Select.d.ts +0 -11
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/SelectItem.d.ts +0 -5
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/String.d.ts +0 -10
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/TabGroup.d.ts +0 -15
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/UnhandledType.d.ts +0 -6
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/UserSelect.d.ts +0 -10
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/common/RequiredIndicator.d.ts +0 -1
- package/dist/types-ts4.5/ui/ConfigPanel/FormContent.d.ts +0 -4
- package/dist/types-ts4.5/ui/ConfigPanel/FormErrorBoundary.d.ts +0 -16
- package/dist/types-ts4.5/ui/ConfigPanel/Header.d.ts +0 -21
- package/dist/types-ts4.5/ui/ConfigPanel/LoadingState.d.ts +0 -4
- package/dist/types-ts4.5/ui/ConfigPanel/NestedForms/RemovableField.d.ts +0 -19
- package/dist/types-ts4.5/ui/ConfigPanel/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/ConfigPanel/messages.d.ts +0 -87
- package/dist/types-ts4.5/ui/ConfigPanel/transformers.d.ts +0 -9
- package/dist/types-ts4.5/ui/ConfigPanel/types.d.ts +0 -40
- package/dist/types-ts4.5/ui/ConfigPanel/utils.d.ts +0 -13
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +0 -14
- package/dist/types-ts4.5/ui/ContentStyles/media.d.ts +0 -1
- package/dist/types-ts4.5/ui/ContextPanel/index.d.ts +0 -41
- package/dist/types-ts4.5/ui/EditorContext/index.d.ts +0 -18
- package/dist/types-ts4.5/ui/ElementBrowser/InsertMenu.d.ts +0 -4
- package/dist/types-ts4.5/ui/ElementBrowser/types.d.ts +0 -22
- package/dist/types-ts4.5/ui/ErrorBoundary/index.d.ts +0 -26
- package/dist/types-ts4.5/ui/FloatingToolbar/index.d.ts +0 -28
- package/dist/types-ts4.5/ui/FloatingToolbar/styles.d.ts +0 -1
- package/dist/types-ts4.5/ui/FloatingToolbar/utils.d.ts +0 -13
- package/dist/types-ts4.5/ui/MediaAndEmbedsToolbar/toolbar-messages.d.ts +0 -12
- package/dist/types-ts4.5/ui/PluginSlot/index.d.ts +0 -39
- package/dist/types-ts4.5/ui/PluginSlot/mount-plugin-hooks.d.ts +0 -10
- package/dist/types-ts4.5/ui/Toolbar/Toolbar.d.ts +0 -3
- package/dist/types-ts4.5/ui/Toolbar/ToolbarInner.d.ts +0 -8
- package/dist/types-ts4.5/ui/Toolbar/ToolbarWithSizeDetector.d.ts +0 -4
- package/dist/types-ts4.5/ui/Toolbar/hooks.d.ts +0 -4
- package/dist/types-ts4.5/ui/Toolbar/index.d.ts +0 -4
- package/dist/types-ts4.5/ui/Toolbar/toolbar-size.d.ts +0 -4
- package/dist/types-ts4.5/ui/Toolbar/toolbar-types.d.ts +0 -34
- package/dist/types-ts4.5/ui/Toolbar/types.d.ts +0 -2
- package/dist/types-ts4.5/ui/ToolbarButton/index.d.ts +0 -4
- package/dist/types-ts4.5/ui/ToolbarFeedback/index.d.ts +0 -27
- package/dist/types-ts4.5/ui/ToolbarFeedback/styles.d.ts +0 -6
- package/dist/types-ts4.5/ui/ToolbarHelp/index.d.ts +0 -11
- package/dist/types-ts4.5/ui/ToolbarHelp/messages.d.ts +0 -7
- package/dist/types-ts4.5/ui/WithEditorActions/index.d.ts +0 -18
- package/dist/types-ts4.5/ui/WithFlash/index.d.ts +0 -11
- package/dist/types-ts4.5/ui/WithHelpTrigger/index.d.ts +0 -13
- package/dist/types-ts4.5/ui/WithPluginState/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/styles.d.ts +0 -2
- package/dist/types-ts4.5/ui/with-outer-listeners.d.ts +0 -2
- package/dist/types-ts4.5/use-preset.d.ts +0 -46
- package/dist/types-ts4.5/utils/action.d.ts +0 -9
- package/dist/types-ts4.5/utils/array.d.ts +0 -1
- package/dist/types-ts4.5/utils/clipboard.d.ts +0 -1
- package/dist/types-ts4.5/utils/commands.d.ts +0 -14
- package/dist/types-ts4.5/utils/deprecation-warnings.d.ts +0 -8
- package/dist/types-ts4.5/utils/document-logger.d.ts +0 -6
- package/dist/types-ts4.5/utils/document.d.ts +0 -27
- package/dist/types-ts4.5/utils/dom.d.ts +0 -2
- package/dist/types-ts4.5/utils/editorDeprecationWarnings.d.ts +0 -2
- package/dist/types-ts4.5/utils/extensions.d.ts +0 -6
- package/dist/types-ts4.5/utils/getAttrsWithChangesRecorder.d.ts +0 -23
- package/dist/types-ts4.5/utils/index.d.ts +0 -65
- package/dist/types-ts4.5/utils/is-full-page.d.ts +0 -2
- package/dist/types-ts4.5/utils/is-text-input.d.ts +0 -2
- package/dist/types-ts4.5/utils/node-width.d.ts +0 -7
- package/dist/types-ts4.5/utils/nodes-by-localIds.d.ts +0 -8
- package/dist/types-ts4.5/utils/nodes.d.ts +0 -1
- package/dist/types-ts4.5/utils/performance/components/RenderTracking.d.ts +0 -13
- package/dist/types-ts4.5/utils/performance/instrumented-plugin.d.ts +0 -16
- package/dist/types-ts4.5/utils/performance/measure-enum.d.ts +0 -8
- package/dist/types-ts4.5/utils/performance/outlier.d.ts +0 -1
- package/dist/types-ts4.5/utils/performance/percentile.d.ts +0 -1
- package/dist/types-ts4.5/utils/performance/plugin-performance-observer.d.ts +0 -22
- package/dist/types-ts4.5/utils/performance/plugin-performance-report.d.ts +0 -48
- package/dist/types-ts4.5/utils/performance/safer-transactions.d.ts +0 -9
- package/dist/types-ts4.5/utils/performance/simple-measure-to-entries.d.ts +0 -28
- package/dist/types-ts4.5/utils/performance/track-transactions.d.ts +0 -30
- package/dist/types-ts4.5/utils/pick-by.d.ts +0 -2
- package/dist/types-ts4.5/utils/plugin-state-factory.d.ts +0 -2
- package/dist/types-ts4.5/utils/prepare-extension-provider.d.ts +0 -5
- package/dist/types-ts4.5/utils/prepare-quick-insert-provider.d.ts +0 -16
- package/dist/types-ts4.5/utils/react-hooks/use-abortable-effect/index.d.ts +0 -16
- package/dist/types-ts4.5/utils/react-hooks/use-state-from-promise/index.d.ts +0 -18
- package/dist/types-ts4.5/utils/selection.d.ts +0 -8
- package/dist/types-ts4.5/utils/slice.d.ts +0 -2
- package/dist/types-ts4.5/utils/step.d.ts +0 -1
- package/dist/types-ts4.5/version-wrapper.d.ts +0 -3
- package/tmp/api-report-tmp.d.ts +0 -791
- /package/dist/cjs/{plugins/date/styles.js → ui/ContentStyles/date.js} +0 -0
- /package/dist/es2019/{plugins/date/styles.js → ui/ContentStyles/date.js} +0 -0
- /package/dist/esm/{plugins/date/styles.js → ui/ContentStyles/date.js} +0 -0
- /package/dist/{types-ts4.5/plugins/date/styles.d.ts → types/ui/ContentStyles/date.d.ts} +0 -0
|
@@ -9,12 +9,10 @@ import { Popup } from '@atlaskit/editor-common/ui';
|
|
|
9
9
|
import ToolbarButton from '../../../../ui/ToolbarButton';
|
|
10
10
|
import { separatorStyles, buttonGroupStyle, wrapperStyle } from '@atlaskit/editor-common/styles';
|
|
11
11
|
import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
12
|
-
import { insertDate } from '../../../date/actions';
|
|
13
12
|
import { showPlaceholderFloatingToolbar } from '../../../placeholder-text/actions';
|
|
14
13
|
import { insertLayoutColumnsWithAnalytics } from '../../../layout/actions';
|
|
15
14
|
import { insertTaskDecisionCommand } from '../../../tasks-and-decisions/commands';
|
|
16
15
|
import { insertExpand } from '../../../expand/commands';
|
|
17
|
-
import { createTypeAheadTools } from '../../../type-ahead/api';
|
|
18
16
|
import { updateStatusWithAnalytics } from '../../../status/actions';
|
|
19
17
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
20
18
|
import { messages } from './messages';
|
|
@@ -157,7 +155,7 @@ export class ToolbarInsertBlock extends React.PureComponent {
|
|
|
157
155
|
return (_pluginInjectionApi$c = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.core.actions.execute(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$h = pluginInjectionApi.hyperlink) === null || _pluginInjectionApi$h === void 0 ? void 0 : _pluginInjectionApi$h.commands.showLinkToolbar(inputMethod))) !== null && _pluginInjectionApi$c !== void 0 ? _pluginInjectionApi$c : false;
|
|
158
156
|
});
|
|
159
157
|
_defineProperty(this, "insertMention", inputMethod => {
|
|
160
|
-
var _pluginInjectionApi$m;
|
|
158
|
+
var _pluginInjectionApi$m, _pluginInjectionApi$m2, _pluginInjectionApi$m3;
|
|
161
159
|
const {
|
|
162
160
|
editorView,
|
|
163
161
|
pluginInjectionApi
|
|
@@ -169,8 +167,7 @@ export class ToolbarInsertBlock extends React.PureComponent {
|
|
|
169
167
|
if (pluginState && pluginState.canInsertMention === false) {
|
|
170
168
|
return false;
|
|
171
169
|
}
|
|
172
|
-
|
|
173
|
-
return true;
|
|
170
|
+
return Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$m2 = pluginInjectionApi.mention) === null || _pluginInjectionApi$m2 === void 0 ? void 0 : (_pluginInjectionApi$m3 = _pluginInjectionApi$m2.actions) === null || _pluginInjectionApi$m3 === void 0 ? void 0 : _pluginInjectionApi$m3.openTypeAhead(inputMethod));
|
|
174
171
|
});
|
|
175
172
|
_defineProperty(this, "insertTable", inputMethod => {
|
|
176
173
|
var _pluginInjectionApi$t, _pluginInjectionApi$t2, _pluginInjectionApi$t3, _pluginInjectionApi$t4;
|
|
@@ -193,11 +190,12 @@ export class ToolbarInsertBlock extends React.PureComponent {
|
|
|
193
190
|
})(state, dispatch)) !== null && _pluginInjectionApi$t !== void 0 ? _pluginInjectionApi$t : false;
|
|
194
191
|
});
|
|
195
192
|
_defineProperty(this, "createDate", inputMethod => {
|
|
193
|
+
var _pluginInjectionApi$d, _pluginInjectionApi$d2;
|
|
196
194
|
const {
|
|
195
|
+
pluginInjectionApi,
|
|
197
196
|
editorView
|
|
198
197
|
} = this.props;
|
|
199
|
-
insertDate(undefined, inputMethod)(editorView.state, editorView.dispatch);
|
|
200
|
-
return true;
|
|
198
|
+
return (_pluginInjectionApi$d = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$d2 = pluginInjectionApi.date) === null || _pluginInjectionApi$d2 === void 0 ? void 0 : _pluginInjectionApi$d2.actions.insertDate(undefined, inputMethod)(editorView.state, editorView.dispatch)) !== null && _pluginInjectionApi$d !== void 0 ? _pluginInjectionApi$d : false;
|
|
201
199
|
});
|
|
202
200
|
_defineProperty(this, "createPlaceholderText", () => {
|
|
203
201
|
const {
|
|
@@ -4,19 +4,13 @@ import { ELEMENTS_CHANNEL } from '@atlaskit/mention/resource';
|
|
|
4
4
|
import { mention } from '@atlaskit/adf-schema';
|
|
5
5
|
import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
|
|
6
6
|
import ToolbarMention from './ui/ToolbarMention';
|
|
7
|
-
import {
|
|
7
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import { IconMention } from '@atlaskit/editor-common/quick-insert';
|
|
9
9
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
10
10
|
import { createTypeAheadConfig } from './type-ahead';
|
|
11
11
|
import { mentionPluginKey } from './pm-plugins/key';
|
|
12
12
|
import { createMentionPlugin } from './pm-plugins/main';
|
|
13
13
|
export { mentionPluginKey };
|
|
14
|
-
const getSharedState = editorState => {
|
|
15
|
-
if (!editorState) {
|
|
16
|
-
return undefined;
|
|
17
|
-
}
|
|
18
|
-
return mentionPluginKey.getState(editorState);
|
|
19
|
-
};
|
|
20
14
|
const mentionsPlugin = ({
|
|
21
15
|
config: options,
|
|
22
16
|
api
|
|
@@ -59,6 +53,13 @@ const mentionsPlugin = ({
|
|
|
59
53
|
editorView,
|
|
60
54
|
disabled
|
|
61
55
|
}) {
|
|
56
|
+
const openMentionTypeAhead = () => {
|
|
57
|
+
var _api$typeAhead, _api$typeAhead$action;
|
|
58
|
+
api === null || api === void 0 ? void 0 : (_api$typeAhead = api.typeAhead) === null || _api$typeAhead === void 0 ? void 0 : (_api$typeAhead$action = _api$typeAhead.actions) === null || _api$typeAhead$action === void 0 ? void 0 : _api$typeAhead$action.open({
|
|
59
|
+
triggerHandler: typeAhead,
|
|
60
|
+
inputMethod: INPUT_METHOD.INSERT_MENU
|
|
61
|
+
});
|
|
62
|
+
};
|
|
62
63
|
return /*#__PURE__*/React.createElement(WithPluginState, {
|
|
63
64
|
editorView: editorView,
|
|
64
65
|
plugins: {
|
|
@@ -68,11 +69,30 @@ const mentionsPlugin = ({
|
|
|
68
69
|
mentionState = {}
|
|
69
70
|
}) => !mentionState.mentionProvider ? null : /*#__PURE__*/React.createElement(ToolbarMention, {
|
|
70
71
|
editorView: editorView,
|
|
72
|
+
onInsertMention: openMentionTypeAhead,
|
|
71
73
|
isDisabled: disabled || (api === null || api === void 0 ? void 0 : api.typeAhead.actions.isAllowed(editorView.state))
|
|
72
74
|
})
|
|
73
75
|
});
|
|
74
76
|
},
|
|
75
|
-
|
|
77
|
+
actions: {
|
|
78
|
+
openTypeAhead(inputMethod) {
|
|
79
|
+
var _api$typeAhead2, _api$typeAhead2$actio;
|
|
80
|
+
return Boolean(api === null || api === void 0 ? void 0 : (_api$typeAhead2 = api.typeAhead) === null || _api$typeAhead2 === void 0 ? void 0 : (_api$typeAhead2$actio = _api$typeAhead2.actions) === null || _api$typeAhead2$actio === void 0 ? void 0 : _api$typeAhead2$actio.open({
|
|
81
|
+
triggerHandler: typeAhead,
|
|
82
|
+
inputMethod
|
|
83
|
+
}));
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
getSharedState(editorState) {
|
|
87
|
+
if (!editorState) {
|
|
88
|
+
return undefined;
|
|
89
|
+
}
|
|
90
|
+
const mentionPluginState = mentionPluginKey.getState(editorState);
|
|
91
|
+
return {
|
|
92
|
+
...mentionPluginState,
|
|
93
|
+
typeAheadHandler: typeAhead
|
|
94
|
+
};
|
|
95
|
+
},
|
|
76
96
|
pluginsOptions: {
|
|
77
97
|
quickInsert: ({
|
|
78
98
|
formatMessage
|
|
@@ -85,26 +105,14 @@ const mentionsPlugin = ({
|
|
|
85
105
|
keyshortcut: '@',
|
|
86
106
|
icon: () => /*#__PURE__*/React.createElement(IconMention, null),
|
|
87
107
|
action(insert, state) {
|
|
88
|
-
var _api$analytics2;
|
|
89
108
|
const tr = insert(undefined);
|
|
90
|
-
const pluginState =
|
|
109
|
+
const pluginState = mentionPluginKey.getState(state);
|
|
91
110
|
if (pluginState && pluginState.canInsertMention === false) {
|
|
92
111
|
return false;
|
|
93
112
|
}
|
|
94
|
-
api === null || api === void 0 ? void 0 : api.typeAhead.
|
|
113
|
+
api === null || api === void 0 ? void 0 : api.typeAhead.actions.openAtTransaction({
|
|
95
114
|
triggerHandler: typeAhead,
|
|
96
115
|
inputMethod: INPUT_METHOD.QUICK_INSERT
|
|
97
|
-
})({
|
|
98
|
-
tr
|
|
99
|
-
});
|
|
100
|
-
api === null || api === void 0 ? void 0 : (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.actions.attachAnalyticsEvent({
|
|
101
|
-
action: ACTION.INVOKED,
|
|
102
|
-
actionSubject: ACTION_SUBJECT.TYPEAHEAD,
|
|
103
|
-
actionSubjectId: ACTION_SUBJECT_ID.TYPEAHEAD_MENTION,
|
|
104
|
-
attributes: {
|
|
105
|
-
inputMethod: INPUT_METHOD.QUICK_INSERT
|
|
106
|
-
},
|
|
107
|
-
eventType: EVENT_TYPE.UI
|
|
108
116
|
})(tr);
|
|
109
117
|
return tr;
|
|
110
118
|
}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { PureComponent } from 'react';
|
|
2
|
+
import React, { PureComponent } from 'react';
|
|
4
3
|
import MentionIcon from '@atlaskit/icon/glyph/editor/mention';
|
|
5
4
|
import { ToolbarButton, TOOLBAR_BUTTON } from '@atlaskit/editor-common/ui-menu';
|
|
6
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
7
|
-
import { createTypeAheadTools } from '../../../type-ahead/api';
|
|
8
5
|
import { injectIntl } from 'react-intl-next';
|
|
9
6
|
import { messages } from '../../messages';
|
|
10
7
|
class ToolbarMention extends PureComponent {
|
|
@@ -14,7 +11,7 @@ class ToolbarMention extends PureComponent {
|
|
|
14
11
|
if (!this.props.editorView) {
|
|
15
12
|
return false;
|
|
16
13
|
}
|
|
17
|
-
|
|
14
|
+
this.props.onInsertMention();
|
|
18
15
|
return true;
|
|
19
16
|
});
|
|
20
17
|
}
|
|
@@ -13,19 +13,18 @@ import { pluginKey } from './plugin-key';
|
|
|
13
13
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
14
14
|
import { messages } from '../insert-block/ui/ToolbarInsertBlock/messages';
|
|
15
15
|
import { isSelectionAtPlaceholder } from './selection-utils';
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
const typeAheadHandler = typeAheadAPI.findTypeAheadHandler(content);
|
|
16
|
+
const getOpenTypeAhead = (trigger, api) => {
|
|
17
|
+
var _api$typeAhead, _api$typeAhead$action, _api$typeAhead2, _api$typeAhead2$actio;
|
|
18
|
+
const typeAheadHandler = api === null || api === void 0 ? void 0 : (_api$typeAhead = api.typeAhead) === null || _api$typeAhead === void 0 ? void 0 : (_api$typeAhead$action = _api$typeAhead.actions) === null || _api$typeAhead$action === void 0 ? void 0 : _api$typeAhead$action.findHandlerByTrigger(trigger);
|
|
20
19
|
if (!typeAheadHandler || !typeAheadHandler.id) {
|
|
21
20
|
return null;
|
|
22
21
|
}
|
|
23
|
-
return
|
|
22
|
+
return api === null || api === void 0 ? void 0 : (_api$typeAhead2 = api.typeAhead) === null || _api$typeAhead2 === void 0 ? void 0 : (_api$typeAhead2$actio = _api$typeAhead2.actions) === null || _api$typeAhead2$actio === void 0 ? void 0 : _api$typeAhead2$actio.openAtTransaction({
|
|
24
23
|
triggerHandler: typeAheadHandler,
|
|
25
24
|
inputMethod: INPUT_METHOD.KEYBOARD
|
|
26
25
|
});
|
|
27
26
|
};
|
|
28
|
-
export function createPlugin(dispatch, options) {
|
|
27
|
+
export function createPlugin(dispatch, options, api) {
|
|
29
28
|
const allowInserting = !!options.allowInserting;
|
|
30
29
|
return new SafePlugin({
|
|
31
30
|
key: pluginKey,
|
|
@@ -106,7 +105,7 @@ export function createPlugin(dispatch, options) {
|
|
|
106
105
|
const content = event.data || '';
|
|
107
106
|
const tr = view.state.tr;
|
|
108
107
|
tr.delete(startNodePosition, startNodePosition + 1);
|
|
109
|
-
const openTypeAhead = getOpenTypeAhead(
|
|
108
|
+
const openTypeAhead = getOpenTypeAhead(content, api);
|
|
110
109
|
if (openTypeAhead) {
|
|
111
110
|
openTypeAhead(tr);
|
|
112
111
|
} else {
|
|
@@ -125,6 +124,7 @@ export function createPlugin(dispatch, options) {
|
|
|
125
124
|
});
|
|
126
125
|
}
|
|
127
126
|
const basePlaceholderTextPlugin = ({
|
|
127
|
+
api,
|
|
128
128
|
config: options
|
|
129
129
|
}) => ({
|
|
130
130
|
name: 'placeholderText',
|
|
@@ -139,7 +139,7 @@ const basePlaceholderTextPlugin = ({
|
|
|
139
139
|
name: 'placeholderText',
|
|
140
140
|
plugin: ({
|
|
141
141
|
dispatch
|
|
142
|
-
}) => createPlugin(dispatch, options)
|
|
142
|
+
}) => createPlugin(dispatch, options, api)
|
|
143
143
|
}];
|
|
144
144
|
},
|
|
145
145
|
contentComponent({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TypeAheadAvailableNodes, SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
2
|
-
import { findHandler,
|
|
2
|
+
import { findHandler, isTypeAheadOpen, getTypeAheadHandler, getTypeAheadQuery } from './utils';
|
|
3
3
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import { openTypeAheadAtCursor
|
|
4
|
+
import { openTypeAheadAtCursor } from './transforms/open-typeahead-at-cursor';
|
|
5
5
|
import { closeTypeAhead } from './transforms/close-type-ahead';
|
|
6
6
|
import { updateQuery } from './commands/update-query';
|
|
7
7
|
import { insertTypeAheadItem } from './commands/insert-type-ahead-item';
|
|
@@ -176,33 +176,14 @@ const currentQuery = ({
|
|
|
176
176
|
}) => () => {
|
|
177
177
|
return getTypeAheadQuery(editorView.state);
|
|
178
178
|
};
|
|
179
|
-
const find = ({
|
|
180
|
-
editorView
|
|
181
|
-
}) => trigger => {
|
|
182
|
-
const {
|
|
183
|
-
state: editorState
|
|
184
|
-
} = editorView;
|
|
185
|
-
const handler = findHandlerByTrigger({
|
|
186
|
-
trigger,
|
|
187
|
-
editorState
|
|
188
|
-
});
|
|
189
|
-
if (!handler) {
|
|
190
|
-
return null;
|
|
191
|
-
}
|
|
192
|
-
return handler;
|
|
193
|
-
};
|
|
194
179
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
findTypeAheadHandler: find(props),
|
|
203
|
-
openTypeAheadHandler: openTypeAhead
|
|
204
|
-
};
|
|
205
|
-
};
|
|
180
|
+
/**
|
|
181
|
+
* Please do not use it. Ping #help-editor and talk to the Lego team before use it.
|
|
182
|
+
*
|
|
183
|
+
* @private
|
|
184
|
+
* @deprecated
|
|
185
|
+
*
|
|
186
|
+
*/
|
|
206
187
|
export const createTypeAheadTools = editorView => {
|
|
207
188
|
const props = {
|
|
208
189
|
editorView
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
11
|
+
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
11
12
|
import { createPlugin } from './pm-plugins/main';
|
|
12
13
|
import { createPlugin as createInsertItemPlugin } from './pm-plugins/insert-item-plugin';
|
|
13
14
|
import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
|
|
@@ -15,12 +16,14 @@ import { typeAheadQuery } from '@atlaskit/adf-schema';
|
|
|
15
16
|
import { pluginKey as typeAheadPluginKey } from './pm-plugins/key';
|
|
16
17
|
import { inputRulePlugin } from './pm-plugins/input-rules';
|
|
17
18
|
import { TypeAheadPopup } from './ui/TypeAheadPopup';
|
|
18
|
-
import { getPluginState, isTypeAheadOpen, isTypeAheadAllowed } from './utils';
|
|
19
|
+
import { findHandler, getPluginState, isTypeAheadOpen, isTypeAheadAllowed, getTypeAheadQuery, getTypeAheadHandler } from './utils';
|
|
19
20
|
import { useItemInsert } from './ui/hooks/use-item-insert';
|
|
20
21
|
import { updateSelectedIndex } from './commands/update-selected-index';
|
|
21
22
|
import { StatsModifier } from './stats-modifier';
|
|
22
23
|
import { ACTION, ACTION_SUBJECT, INPUT_METHOD, EVENT_TYPE, fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
23
24
|
import { openTypeAheadAtCursor } from './transforms/open-typeahead-at-cursor';
|
|
25
|
+
import { closeTypeAhead } from './transforms/close-type-ahead';
|
|
26
|
+
import { insertTypeAheadItem } from './commands/insert-type-ahead-item';
|
|
24
27
|
const TypeAheadMenu = /*#__PURE__*/React.memo(({
|
|
25
28
|
editorView,
|
|
26
29
|
popupMountRef,
|
|
@@ -102,6 +105,107 @@ const TypeAheadMenu = /*#__PURE__*/React.memo(({
|
|
|
102
105
|
cancel: cancel
|
|
103
106
|
});
|
|
104
107
|
});
|
|
108
|
+
const createOpenAtTransaction = editorAnalyticsAPI => props => tr => {
|
|
109
|
+
const {
|
|
110
|
+
triggerHandler,
|
|
111
|
+
inputMethod
|
|
112
|
+
} = props;
|
|
113
|
+
openTypeAheadAtCursor({
|
|
114
|
+
triggerHandler,
|
|
115
|
+
inputMethod
|
|
116
|
+
})({
|
|
117
|
+
tr
|
|
118
|
+
});
|
|
119
|
+
editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 ? void 0 : editorAnalyticsAPI.attachAnalyticsEvent({
|
|
120
|
+
action: ACTION.INVOKED,
|
|
121
|
+
actionSubject: ACTION_SUBJECT.TYPEAHEAD,
|
|
122
|
+
actionSubjectId: triggerHandler.id,
|
|
123
|
+
attributes: {
|
|
124
|
+
inputMethod
|
|
125
|
+
},
|
|
126
|
+
eventType: EVENT_TYPE.UI
|
|
127
|
+
})(tr);
|
|
128
|
+
return true;
|
|
129
|
+
};
|
|
130
|
+
const createOpenTypeAhead = (editorViewRef, editorAnalyticsAPI) => props => {
|
|
131
|
+
if (!editorViewRef.current) {
|
|
132
|
+
return false;
|
|
133
|
+
}
|
|
134
|
+
const {
|
|
135
|
+
current: view
|
|
136
|
+
} = editorViewRef;
|
|
137
|
+
const {
|
|
138
|
+
tr
|
|
139
|
+
} = view.state;
|
|
140
|
+
createOpenAtTransaction(editorAnalyticsAPI)(props)(tr);
|
|
141
|
+
view.dispatch(tr);
|
|
142
|
+
return true;
|
|
143
|
+
};
|
|
144
|
+
const createInsertTypeAheadItem = editorViewRef => props => {
|
|
145
|
+
if (!editorViewRef.current) {
|
|
146
|
+
return false;
|
|
147
|
+
}
|
|
148
|
+
const {
|
|
149
|
+
current: view
|
|
150
|
+
} = editorViewRef;
|
|
151
|
+
const {
|
|
152
|
+
triggerHandler,
|
|
153
|
+
contentItem,
|
|
154
|
+
query,
|
|
155
|
+
sourceListItem,
|
|
156
|
+
mode
|
|
157
|
+
} = props;
|
|
158
|
+
insertTypeAheadItem(view)({
|
|
159
|
+
handler: triggerHandler,
|
|
160
|
+
item: contentItem,
|
|
161
|
+
mode: mode || SelectItemMode.SELECTED,
|
|
162
|
+
query,
|
|
163
|
+
sourceListItem
|
|
164
|
+
});
|
|
165
|
+
return true;
|
|
166
|
+
};
|
|
167
|
+
const createFindHandlerByTrigger = editorViewRef => trigger => {
|
|
168
|
+
if (!editorViewRef.current) {
|
|
169
|
+
return null;
|
|
170
|
+
}
|
|
171
|
+
const {
|
|
172
|
+
current: view
|
|
173
|
+
} = editorViewRef;
|
|
174
|
+
return findHandler(trigger, view.state);
|
|
175
|
+
};
|
|
176
|
+
const createCloseTypeAhead = editorViewRef => options => {
|
|
177
|
+
if (!editorViewRef.current) {
|
|
178
|
+
return false;
|
|
179
|
+
}
|
|
180
|
+
const {
|
|
181
|
+
current: view
|
|
182
|
+
} = editorViewRef;
|
|
183
|
+
const currentQuery = getTypeAheadQuery(view.state) || '';
|
|
184
|
+
const {
|
|
185
|
+
state
|
|
186
|
+
} = view;
|
|
187
|
+
let tr = state.tr;
|
|
188
|
+
if (options.attachCommand) {
|
|
189
|
+
const fakeDispatch = customTr => {
|
|
190
|
+
tr = customTr;
|
|
191
|
+
};
|
|
192
|
+
options.attachCommand(state, fakeDispatch);
|
|
193
|
+
}
|
|
194
|
+
closeTypeAhead(tr);
|
|
195
|
+
if (options.insertCurrentQueryAsRawText && currentQuery && currentQuery.length > 0) {
|
|
196
|
+
const handler = getTypeAheadHandler(state);
|
|
197
|
+
if (!handler) {
|
|
198
|
+
return false;
|
|
199
|
+
}
|
|
200
|
+
const text = handler.trigger.concat(currentQuery);
|
|
201
|
+
tr.replaceSelectionWith(state.schema.text(text));
|
|
202
|
+
}
|
|
203
|
+
view.dispatch(tr);
|
|
204
|
+
if (!view.hasFocus()) {
|
|
205
|
+
view.focus();
|
|
206
|
+
}
|
|
207
|
+
return true;
|
|
208
|
+
};
|
|
105
209
|
|
|
106
210
|
/**
|
|
107
211
|
*
|
|
@@ -112,12 +216,17 @@ const TypeAheadMenu = /*#__PURE__*/React.memo(({
|
|
|
112
216
|
*
|
|
113
217
|
*/
|
|
114
218
|
const typeAheadPlugin = ({
|
|
115
|
-
config: options
|
|
219
|
+
config: options,
|
|
220
|
+
api
|
|
116
221
|
}) => {
|
|
222
|
+
var _api$analytics, _api$analytics2;
|
|
117
223
|
const fireAnalyticsCallback = fireAnalyticsEvent(options === null || options === void 0 ? void 0 : options.createAnalyticsEvent);
|
|
118
224
|
const popupMountRef = {
|
|
119
225
|
current: null
|
|
120
226
|
};
|
|
227
|
+
const editorViewRef = {
|
|
228
|
+
current: null
|
|
229
|
+
};
|
|
121
230
|
return {
|
|
122
231
|
name: 'typeAhead',
|
|
123
232
|
marks() {
|
|
@@ -141,6 +250,20 @@ const typeAheadPlugin = ({
|
|
|
141
250
|
typeAheadHandlers: typeAhead,
|
|
142
251
|
createAnalyticsEvent: options === null || options === void 0 ? void 0 : options.createAnalyticsEvent
|
|
143
252
|
})
|
|
253
|
+
}, {
|
|
254
|
+
name: 'typeAheadEditorViewRef',
|
|
255
|
+
plugin: () => {
|
|
256
|
+
return new SafePlugin({
|
|
257
|
+
view(view) {
|
|
258
|
+
editorViewRef.current = view;
|
|
259
|
+
return {
|
|
260
|
+
destroy() {
|
|
261
|
+
editorViewRef.current = null;
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
}
|
|
144
267
|
}, {
|
|
145
268
|
name: 'typeAheadInsertItem',
|
|
146
269
|
plugin: createInsertItemPlugin
|
|
@@ -152,12 +275,24 @@ const typeAheadPlugin = ({
|
|
|
152
275
|
}) => inputRulePlugin(schema, typeAhead, featureFlags)
|
|
153
276
|
}];
|
|
154
277
|
},
|
|
155
|
-
|
|
156
|
-
|
|
278
|
+
getSharedState(editorState) {
|
|
279
|
+
if (!editorState) {
|
|
280
|
+
return {
|
|
281
|
+
query: ''
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
return {
|
|
285
|
+
query: getTypeAheadQuery(editorState) || ''
|
|
286
|
+
};
|
|
157
287
|
},
|
|
158
288
|
actions: {
|
|
159
289
|
isOpen: isTypeAheadOpen,
|
|
160
|
-
isAllowed: isTypeAheadAllowed
|
|
290
|
+
isAllowed: isTypeAheadAllowed,
|
|
291
|
+
open: createOpenTypeAhead(editorViewRef, api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions),
|
|
292
|
+
openAtTransaction: createOpenAtTransaction(api === null || api === void 0 ? void 0 : (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.actions),
|
|
293
|
+
findHandlerByTrigger: createFindHandlerByTrigger(editorViewRef),
|
|
294
|
+
insert: createInsertTypeAheadItem(editorViewRef),
|
|
295
|
+
close: createCloseTypeAhead(editorViewRef)
|
|
161
296
|
},
|
|
162
297
|
contentComponent({
|
|
163
298
|
editorView,
|
|
@@ -4,7 +4,9 @@ import { createPlugin } from './pm-plugins/main';
|
|
|
4
4
|
import { historyPluginKey } from '../history';
|
|
5
5
|
import ToolbarUndoRedo from './ui/ToolbarUndoRedo';
|
|
6
6
|
import WithPluginState from '../../ui/WithPluginState';
|
|
7
|
-
const undoRedoPlugin = (
|
|
7
|
+
const undoRedoPlugin = ({
|
|
8
|
+
api
|
|
9
|
+
}) => ({
|
|
8
10
|
name: 'undoRedoPlugin',
|
|
9
11
|
pmPlugins() {
|
|
10
12
|
return [{
|
|
@@ -31,7 +33,8 @@ const undoRedoPlugin = () => ({
|
|
|
31
33
|
isReducedSpacing: isToolbarReducedSpacing,
|
|
32
34
|
disabled: disabled,
|
|
33
35
|
historyState: historyState,
|
|
34
|
-
editorView: editorView
|
|
36
|
+
editorView: editorView,
|
|
37
|
+
api: api
|
|
35
38
|
});
|
|
36
39
|
}
|
|
37
40
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -8,16 +8,16 @@ import { undo as undoKeymap, redo as redoKeymap, ToolTipContent, tooltip } from
|
|
|
8
8
|
import { separatorStyles, buttonGroupStyle } from '@atlaskit/editor-common/styles';
|
|
9
9
|
import ToolbarButton, { TOOLBAR_BUTTON } from '../../../../ui/ToolbarButton';
|
|
10
10
|
import { undoRedoMessages } from '@atlaskit/editor-common/messages';
|
|
11
|
-
import { createTypeAheadTools } from '../../../type-ahead/api';
|
|
12
11
|
import { undoFromToolbar, redoFromToolbar } from '../../commands';
|
|
13
12
|
import { getAriaKeyshortcuts } from '@atlaskit/editor-common/keymaps';
|
|
14
|
-
const closeTypeAheadAndRunCommand = editorView => command => {
|
|
13
|
+
const closeTypeAheadAndRunCommand = (editorView, api) => command => {
|
|
14
|
+
var _api$typeAhead, _api$typeAhead$action;
|
|
15
15
|
if (!editorView) {
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
if (api !== null && api !== void 0 && (_api$typeAhead = api.typeAhead) !== null && _api$typeAhead !== void 0 && (_api$typeAhead$action = _api$typeAhead.actions) !== null && _api$typeAhead$action !== void 0 && _api$typeAhead$action.isOpen(editorView.state)) {
|
|
19
|
+
var _api$typeAhead2, _api$typeAhead2$actio;
|
|
20
|
+
api === null || api === void 0 ? void 0 : (_api$typeAhead2 = api.typeAhead) === null || _api$typeAhead2 === void 0 ? void 0 : (_api$typeAhead2$actio = _api$typeAhead2.actions) === null || _api$typeAhead2$actio === void 0 ? void 0 : _api$typeAhead2$actio.close({
|
|
21
21
|
attachCommand: command,
|
|
22
22
|
insertCurrentQueryAsRawText: false
|
|
23
23
|
});
|
|
@@ -25,8 +25,8 @@ const closeTypeAheadAndRunCommand = editorView => command => {
|
|
|
25
25
|
command(editorView.state, editorView.dispatch);
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
const forceFocus = editorView => command => {
|
|
29
|
-
closeTypeAheadAndRunCommand(editorView)(command);
|
|
28
|
+
const forceFocus = (editorView, api) => command => {
|
|
29
|
+
closeTypeAheadAndRunCommand(editorView, api)(command);
|
|
30
30
|
if (!editorView.hasFocus()) {
|
|
31
31
|
editorView.focus();
|
|
32
32
|
}
|
|
@@ -38,15 +38,16 @@ export class ToolbarUndoRedo extends PureComponent {
|
|
|
38
38
|
isReducedSpacing,
|
|
39
39
|
historyState,
|
|
40
40
|
editorView,
|
|
41
|
+
api,
|
|
41
42
|
intl: {
|
|
42
43
|
formatMessage
|
|
43
44
|
}
|
|
44
45
|
} = this.props;
|
|
45
46
|
const handleUndo = () => {
|
|
46
|
-
forceFocus(editorView)(undoFromToolbar);
|
|
47
|
+
forceFocus(editorView, api)(undoFromToolbar);
|
|
47
48
|
};
|
|
48
49
|
const handleRedo = () => {
|
|
49
|
-
forceFocus(editorView)(redoFromToolbar);
|
|
50
|
+
forceFocus(editorView, api)(redoFromToolbar);
|
|
50
51
|
};
|
|
51
52
|
const labelUndo = formatMessage(undoRedoMessages.undo);
|
|
52
53
|
const labelRedo = formatMessage(undoRedoMessages.redo);
|
|
@@ -4,7 +4,6 @@ import { createSchema } from './create-editor/create-schema';
|
|
|
4
4
|
import { sortByOrder } from './create-editor/sort-by-order';
|
|
5
5
|
import { analyticsPluginKey } from './plugins/analytics/plugin-key';
|
|
6
6
|
import { basePlugin } from '@atlaskit/editor-plugin-base';
|
|
7
|
-
export { createTypeAheadTools } from './plugins/type-ahead/api';
|
|
8
7
|
export function getFireAnalytics(editorView) {
|
|
9
8
|
var _analyticsPluginKey$g;
|
|
10
9
|
return analyticsPluginKey === null || analyticsPluginKey === void 0 ? void 0 : (_analyticsPluginKey$g = analyticsPluginKey.getState(editorView.state)) === null || _analyticsPluginKey$g === void 0 ? void 0 : _analyticsPluginKey$g.fireAnalytics;
|
|
@@ -20,7 +20,7 @@ import { MediaSharedClassNames } from '@atlaskit/editor-common/styles';
|
|
|
20
20
|
import { findReplaceStyles } from '../../plugins/find-replace/styles';
|
|
21
21
|
import { taskDecisionStyles } from '../../plugins/tasks-and-decisions/styles';
|
|
22
22
|
import { statusStyles } from '../../plugins/status/styles';
|
|
23
|
-
import { dateStyles } from '
|
|
23
|
+
import { dateStyles } from './date';
|
|
24
24
|
import { InlineNodeViewSharedStyles } from '../../nodeviews/getInlineNodeViewProducer.styles';
|
|
25
25
|
import { linkSharedStyle, codeMarkSharedStyles, ruleSharedStyles } from '@atlaskit/editor-common/styles';
|
|
26
26
|
import { browser } from '@atlaskit/editor-common/utils';
|
|
@@ -3,8 +3,10 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
import { createEditorSelectionAPI } from '../../../selection-api/api';
|
|
6
|
-
import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin,
|
|
6
|
+
import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, extensionPlugin, fragmentMarkPlugin, insertBlockPlugin, jiraIssuePlugin, layoutPlugin, toolbarListsIndentationPlugin, macroPlugin, maxContentSizePlugin, mentionsPlugin, panelPlugin, placeholderTextPlugin, saveOnEnterPlugin, tasksAndDecisionsPlugin, textColorPlugin, statusPlugin, alignmentPlugin, indentationPlugin, customAutoformatPlugin, feedbackDialogPlugin, historyPlugin, expandPlugin, isExpandInsertionEnabled, scrollIntoViewPlugin, mobileDimensionsPlugin, findReplacePlugin, mobileSelectionPlugin, annotationPlugin, avatarGroupPlugin, viewUpdateSubscriptionPlugin, beforePrimaryToolbarPlugin, codeBidiWarningPlugin } from '../../../plugins';
|
|
7
|
+
import { datePlugin } from '../../../plugins/date';
|
|
7
8
|
import { captionPlugin } from '@atlaskit/editor-plugin-caption';
|
|
9
|
+
import { borderPlugin } from '@atlaskit/editor-plugin-border';
|
|
8
10
|
import { helpDialogPlugin } from '@atlaskit/editor-plugin-help-dialog';
|
|
9
11
|
import { mediaPlugin } from '@atlaskit/editor-plugin-media';
|
|
10
12
|
import { rulePlugin } from '@atlaskit/editor-plugin-rule';
|
|
@@ -2,7 +2,7 @@ import { NodeSelection, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
|
2
2
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import { todayTimestampInUTC } from '@atlaskit/editor-common/utils';
|
|
4
4
|
import { pluginKey } from './pm-plugins/plugin-key';
|
|
5
|
-
import {
|
|
5
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import { isToday } from './utils/internal';
|
|
7
7
|
import { canInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
8
8
|
export var createDate = function createDate(isQuickInsertAction) {
|
|
@@ -63,6 +63,7 @@ export var focusDateInput = function focusDateInput() {
|
|
|
63
63
|
};
|
|
64
64
|
export var insertDate = function insertDate(date, inputMethod, commitMethod) {
|
|
65
65
|
var enterPressed = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
|
|
66
|
+
var pluginInjectionApi = arguments.length > 4 ? arguments[4] : undefined;
|
|
66
67
|
return function (state, dispatch) {
|
|
67
68
|
var schema = state.schema;
|
|
68
69
|
var timestamp;
|
|
@@ -73,7 +74,8 @@ export var insertDate = function insertDate(date, inputMethod, commitMethod) {
|
|
|
73
74
|
}
|
|
74
75
|
var tr = state.tr;
|
|
75
76
|
if (inputMethod) {
|
|
76
|
-
|
|
77
|
+
var _pluginInjectionApi$a;
|
|
78
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 || (_pluginInjectionApi$a = _pluginInjectionApi$a.actions) === null || _pluginInjectionApi$a === void 0 || _pluginInjectionApi$a.attachAnalyticsEvent({
|
|
77
79
|
action: ACTION.INSERTED,
|
|
78
80
|
actionSubject: ACTION_SUBJECT.DOCUMENT,
|
|
79
81
|
actionSubjectId: ACTION_SUBJECT_ID.DATE,
|
|
@@ -81,10 +83,11 @@ export var insertDate = function insertDate(date, inputMethod, commitMethod) {
|
|
|
81
83
|
attributes: {
|
|
82
84
|
inputMethod: inputMethod
|
|
83
85
|
}
|
|
84
|
-
});
|
|
86
|
+
})(tr);
|
|
85
87
|
}
|
|
86
88
|
if (commitMethod) {
|
|
87
|
-
|
|
89
|
+
var _pluginInjectionApi$a2;
|
|
90
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a2 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a2 === void 0 || (_pluginInjectionApi$a2 = _pluginInjectionApi$a2.actions) === null || _pluginInjectionApi$a2 === void 0 || _pluginInjectionApi$a2.attachAnalyticsEvent({
|
|
88
91
|
eventType: EVENT_TYPE.TRACK,
|
|
89
92
|
action: ACTION.COMMITTED,
|
|
90
93
|
actionSubject: ACTION_SUBJECT.DATE,
|
|
@@ -93,7 +96,7 @@ export var insertDate = function insertDate(date, inputMethod, commitMethod) {
|
|
|
93
96
|
isValid: date !== undefined,
|
|
94
97
|
isToday: isToday(date)
|
|
95
98
|
}
|
|
96
|
-
});
|
|
99
|
+
})(tr);
|
|
97
100
|
}
|
|
98
101
|
var _ref = pluginKey.getState(state) || {},
|
|
99
102
|
showDatePickerAt = _ref.showDatePickerAt;
|
|
@@ -170,8 +173,10 @@ export var closeDatePicker = function closeDatePicker() {
|
|
|
170
173
|
};
|
|
171
174
|
};
|
|
172
175
|
export var closeDatePickerWithAnalytics = function closeDatePickerWithAnalytics(_ref3) {
|
|
173
|
-
var
|
|
174
|
-
|
|
176
|
+
var _pluginInjectionApi$a3;
|
|
177
|
+
var date = _ref3.date,
|
|
178
|
+
pluginInjectionApi = _ref3.pluginInjectionApi;
|
|
179
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a3 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a3 === void 0 || (_pluginInjectionApi$a3 = _pluginInjectionApi$a3.actions) === null || _pluginInjectionApi$a3 === void 0 || _pluginInjectionApi$a3.attachAnalyticsEvent({
|
|
175
180
|
eventType: EVENT_TYPE.TRACK,
|
|
176
181
|
action: ACTION.COMMITTED,
|
|
177
182
|
actionSubject: ACTION_SUBJECT.DATE,
|
|
@@ -180,7 +185,8 @@ export var closeDatePickerWithAnalytics = function closeDatePickerWithAnalytics(
|
|
|
180
185
|
isValid: date !== undefined,
|
|
181
186
|
isToday: isToday(date)
|
|
182
187
|
}
|
|
183
|
-
})
|
|
188
|
+
});
|
|
189
|
+
return closeDatePicker();
|
|
184
190
|
};
|
|
185
191
|
export var openDatePicker = function openDatePicker() {
|
|
186
192
|
return function (state, dispatch) {
|