@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
|
@@ -41,12 +41,6 @@ Object.defineProperty(exports, "betterTypeHistoryPlugin", {
|
|
|
41
41
|
return _betterTypeHistory.default;
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
|
-
Object.defineProperty(exports, "borderPlugin", {
|
|
45
|
-
enumerable: true,
|
|
46
|
-
get: function get() {
|
|
47
|
-
return _border.default;
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
44
|
Object.defineProperty(exports, "breakoutPlugin", {
|
|
51
45
|
enumerable: true,
|
|
52
46
|
get: function get() {
|
|
@@ -92,7 +86,7 @@ Object.defineProperty(exports, "dataConsumerMarkPlugin", {
|
|
|
92
86
|
Object.defineProperty(exports, "datePlugin", {
|
|
93
87
|
enumerable: true,
|
|
94
88
|
get: function get() {
|
|
95
|
-
return _date.
|
|
89
|
+
return _date.datePlugin;
|
|
96
90
|
}
|
|
97
91
|
});
|
|
98
92
|
Object.defineProperty(exports, "expandPlugin", {
|
|
@@ -285,7 +279,7 @@ var _betterTypeHistory = _interopRequireDefault(require("./better-type-history")
|
|
|
285
279
|
var _clearMarksOnChangeToEmptyDocument = _interopRequireDefault(require("./clear-marks-on-change-to-empty-document"));
|
|
286
280
|
var _codeBlock = _interopRequireDefault(require("./code-block"));
|
|
287
281
|
var _collabEdit = _interopRequireDefault(require("./collab-edit"));
|
|
288
|
-
var _date =
|
|
282
|
+
var _date = require("./date");
|
|
289
283
|
var _extension = _interopRequireDefault(require("./extension"));
|
|
290
284
|
var _fakeTextCursor = _interopRequireDefault(require("./fake-text-cursor"));
|
|
291
285
|
var _insertBlock = _interopRequireDefault(require("./insert-block"));
|
|
@@ -325,6 +319,5 @@ var _avatarGroup = _interopRequireDefault(require("./avatar-group"));
|
|
|
325
319
|
var _viewUpdateSubscription = _interopRequireDefault(require("./view-update-subscription"));
|
|
326
320
|
var _beforePrimaryToolbar = _interopRequireDefault(require("./before-primaryToolbar"));
|
|
327
321
|
var _codeBidiWarning = _interopRequireDefault(require("./code-bidi-warning"));
|
|
328
|
-
var _border = _interopRequireDefault(require("./border"));
|
|
329
322
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
330
323
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -22,13 +22,11 @@ var _ui = require("@atlaskit/editor-common/ui");
|
|
|
22
22
|
var _ToolbarButton = _interopRequireDefault(require("../../../../ui/ToolbarButton"));
|
|
23
23
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
24
24
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
25
|
-
var _actions = require("../../../
|
|
26
|
-
var _actions2 = require("../../../
|
|
27
|
-
var _actions3 = require("../../../layout/actions");
|
|
25
|
+
var _actions = require("../../../placeholder-text/actions");
|
|
26
|
+
var _actions2 = require("../../../layout/actions");
|
|
28
27
|
var _commands = require("../../../tasks-and-decisions/commands");
|
|
29
28
|
var _commands2 = require("../../../expand/commands");
|
|
30
|
-
var
|
|
31
|
-
var _actions4 = require("../../../status/actions");
|
|
29
|
+
var _actions3 = require("../../../status/actions");
|
|
32
30
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
33
31
|
var _messages = require("./messages");
|
|
34
32
|
var _createItems3 = require("./create-items");
|
|
@@ -174,7 +172,7 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
174
172
|
return (_pluginInjectionApi$c = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.core.actions.execute(pluginInjectionApi === null || pluginInjectionApi === 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;
|
|
175
173
|
});
|
|
176
174
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "insertMention", function (inputMethod) {
|
|
177
|
-
var _pluginInjectionApi$m;
|
|
175
|
+
var _pluginInjectionApi$m, _pluginInjectionApi$m2;
|
|
178
176
|
var _this$props = _this.props,
|
|
179
177
|
editorView = _this$props.editorView,
|
|
180
178
|
pluginInjectionApi = _this$props.pluginInjectionApi;
|
|
@@ -185,8 +183,7 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
185
183
|
if (pluginState && pluginState.canInsertMention === false) {
|
|
186
184
|
return false;
|
|
187
185
|
}
|
|
188
|
-
(0
|
|
189
|
-
return true;
|
|
186
|
+
return Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$m2 = pluginInjectionApi.mention) === null || _pluginInjectionApi$m2 === void 0 || (_pluginInjectionApi$m2 = _pluginInjectionApi$m2.actions) === null || _pluginInjectionApi$m2 === void 0 ? void 0 : _pluginInjectionApi$m2.openTypeAhead(inputMethod));
|
|
190
187
|
});
|
|
191
188
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "insertTable", function (inputMethod) {
|
|
192
189
|
var _pluginInjectionApi$t, _pluginInjectionApi$t2, _pluginInjectionApi$t3, _pluginInjectionApi$t4;
|
|
@@ -206,29 +203,31 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
206
203
|
})(state, dispatch)) !== null && _pluginInjectionApi$t !== void 0 ? _pluginInjectionApi$t : false;
|
|
207
204
|
});
|
|
208
205
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "createDate", function (inputMethod) {
|
|
209
|
-
var
|
|
210
|
-
|
|
211
|
-
|
|
206
|
+
var _pluginInjectionApi$d, _pluginInjectionApi$d2;
|
|
207
|
+
var _this$props3 = _this.props,
|
|
208
|
+
pluginInjectionApi = _this$props3.pluginInjectionApi,
|
|
209
|
+
editorView = _this$props3.editorView;
|
|
210
|
+
return (_pluginInjectionApi$d = pluginInjectionApi === null || pluginInjectionApi === 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;
|
|
212
211
|
});
|
|
213
212
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "createPlaceholderText", function () {
|
|
214
213
|
var editorView = _this.props.editorView;
|
|
215
|
-
(0,
|
|
214
|
+
(0, _actions.showPlaceholderFloatingToolbar)(editorView.state, editorView.dispatch);
|
|
216
215
|
return true;
|
|
217
216
|
});
|
|
218
217
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "insertLayoutColumns", function (inputMethod) {
|
|
219
218
|
var editorView = _this.props.editorView;
|
|
220
|
-
(0,
|
|
219
|
+
(0, _actions2.insertLayoutColumnsWithAnalytics)(inputMethod)(editorView.state, editorView.dispatch);
|
|
221
220
|
return true;
|
|
222
221
|
});
|
|
223
222
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "createStatus", function (inputMethod) {
|
|
224
223
|
var editorView = _this.props.editorView;
|
|
225
|
-
(0,
|
|
224
|
+
(0, _actions3.updateStatusWithAnalytics)(inputMethod)(editorView.state, editorView.dispatch);
|
|
226
225
|
return true;
|
|
227
226
|
});
|
|
228
227
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "openMediaPicker", function (inputMethod) {
|
|
229
|
-
var _this$
|
|
230
|
-
onShowMediaPicker = _this$
|
|
231
|
-
dispatchAnalyticsEvent = _this$
|
|
228
|
+
var _this$props4 = _this.props,
|
|
229
|
+
onShowMediaPicker = _this$props4.onShowMediaPicker,
|
|
230
|
+
dispatchAnalyticsEvent = _this$props4.dispatchAnalyticsEvent;
|
|
232
231
|
if (onShowMediaPicker) {
|
|
233
232
|
onShowMediaPicker();
|
|
234
233
|
if (dispatchAnalyticsEvent) {
|
|
@@ -256,11 +255,11 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
256
255
|
});
|
|
257
256
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "insertHorizontalRule", function (inputMethod) {
|
|
258
257
|
var _pluginInjectionApi$r, _pluginInjectionApi$r2;
|
|
259
|
-
var _this$
|
|
260
|
-
_this$
|
|
261
|
-
state = _this$
|
|
262
|
-
dispatch = _this$
|
|
263
|
-
pluginInjectionApi = _this$
|
|
258
|
+
var _this$props5 = _this.props,
|
|
259
|
+
_this$props5$editorVi = _this$props5.editorView,
|
|
260
|
+
state = _this$props5$editorVi.state,
|
|
261
|
+
dispatch = _this$props5$editorVi.dispatch,
|
|
262
|
+
pluginInjectionApi = _this$props5.pluginInjectionApi;
|
|
264
263
|
return (_pluginInjectionApi$r = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$r2 = pluginInjectionApi.rule) === null || _pluginInjectionApi$r2 === void 0 ? void 0 : _pluginInjectionApi$r2.actions.insertHorizontalRule(inputMethod)(state, dispatch)) !== null && _pluginInjectionApi$r !== void 0 ? _pluginInjectionApi$r : false;
|
|
265
264
|
});
|
|
266
265
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "insertExpand", function () {
|
|
@@ -271,9 +270,9 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
271
270
|
});
|
|
272
271
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "insertBlockType", function (itemName) {
|
|
273
272
|
return function () {
|
|
274
|
-
var _this$
|
|
275
|
-
editorView = _this$
|
|
276
|
-
onInsertBlockType = _this$
|
|
273
|
+
var _this$props6 = _this.props,
|
|
274
|
+
editorView = _this$props6.editorView,
|
|
275
|
+
onInsertBlockType = _this$props6.onInsertBlockType;
|
|
277
276
|
var state = editorView.state,
|
|
278
277
|
dispatch = editorView.dispatch;
|
|
279
278
|
onInsertBlockType(itemName)(state, dispatch);
|
|
@@ -296,11 +295,11 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
296
295
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onItemActivated", function (_ref2) {
|
|
297
296
|
var item = _ref2.item,
|
|
298
297
|
inputMethod = _ref2.inputMethod;
|
|
299
|
-
var _this$
|
|
300
|
-
editorView = _this$
|
|
301
|
-
editorActions = _this$
|
|
302
|
-
handleImageUpload = _this$
|
|
303
|
-
expandEnabled = _this$
|
|
298
|
+
var _this$props7 = _this.props,
|
|
299
|
+
editorView = _this$props7.editorView,
|
|
300
|
+
editorActions = _this$props7.editorActions,
|
|
301
|
+
handleImageUpload = _this$props7.handleImageUpload,
|
|
302
|
+
expandEnabled = _this$props7.expandEnabled;
|
|
304
303
|
|
|
305
304
|
// need to do this before inserting nodes so scrollIntoView works properly
|
|
306
305
|
if (!editorView.hasFocus()) {
|
|
@@ -416,12 +415,12 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
416
415
|
key: "renderPopup",
|
|
417
416
|
value: function renderPopup() {
|
|
418
417
|
var emojiPickerOpen = this.state.emojiPickerOpen;
|
|
419
|
-
var _this$
|
|
420
|
-
popupsMountPoint = _this$
|
|
421
|
-
popupsBoundariesElement = _this$
|
|
422
|
-
popupsScrollableElement = _this$
|
|
423
|
-
emojiProvider = _this$
|
|
424
|
-
replacePlusMenuWithElementBrowser = _this$
|
|
418
|
+
var _this$props8 = this.props,
|
|
419
|
+
popupsMountPoint = _this$props8.popupsMountPoint,
|
|
420
|
+
popupsBoundariesElement = _this$props8.popupsBoundariesElement,
|
|
421
|
+
popupsScrollableElement = _this$props8.popupsScrollableElement,
|
|
422
|
+
emojiProvider = _this$props8.emojiProvider,
|
|
423
|
+
replacePlusMenuWithElementBrowser = _this$props8.replacePlusMenuWithElementBrowser;
|
|
425
424
|
var dropdownEmoji = this.state.dropdownItems.some(function (_ref4) {
|
|
426
425
|
var name = _ref4.value.name;
|
|
427
426
|
return name === 'emoji';
|
|
@@ -458,9 +457,9 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
458
457
|
buttons = _this$state.buttons,
|
|
459
458
|
dropdownItems = _this$state.dropdownItems,
|
|
460
459
|
emojiPickerOpen = _this$state.emojiPickerOpen;
|
|
461
|
-
var _this$
|
|
462
|
-
isDisabled = _this$
|
|
463
|
-
isReducedSpacing = _this$
|
|
460
|
+
var _this$props9 = this.props,
|
|
461
|
+
isDisabled = _this$props9.isDisabled,
|
|
462
|
+
isReducedSpacing = _this$props9.isReducedSpacing;
|
|
464
463
|
if (buttons.length === 0 && dropdownItems.length === 0) {
|
|
465
464
|
return null;
|
|
466
465
|
}
|
|
@@ -11,6 +11,7 @@ Object.defineProperty(exports, "mentionPluginKey", {
|
|
|
11
11
|
return _key.mentionPluginKey;
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
15
|
var _react = _interopRequireDefault(require("react"));
|
|
15
16
|
var _uuid = _interopRequireDefault(require("uuid"));
|
|
16
17
|
var _resource = require("@atlaskit/mention/resource");
|
|
@@ -23,12 +24,8 @@ var _messages = require("@atlaskit/editor-common/messages");
|
|
|
23
24
|
var _typeAhead = require("./type-ahead");
|
|
24
25
|
var _key = require("./pm-plugins/key");
|
|
25
26
|
var _main = require("./pm-plugins/main");
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
return undefined;
|
|
29
|
-
}
|
|
30
|
-
return _key.mentionPluginKey.getState(editorState);
|
|
31
|
-
};
|
|
27
|
+
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; }
|
|
28
|
+
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) { (0, _defineProperty2.default)(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; }
|
|
32
29
|
var mentionsPlugin = function mentionsPlugin(_ref) {
|
|
33
30
|
var options = _ref.config,
|
|
34
31
|
api = _ref.api;
|
|
@@ -70,6 +67,13 @@ var mentionsPlugin = function mentionsPlugin(_ref) {
|
|
|
70
67
|
secondaryToolbarComponent: function secondaryToolbarComponent(_ref3) {
|
|
71
68
|
var editorView = _ref3.editorView,
|
|
72
69
|
disabled = _ref3.disabled;
|
|
70
|
+
var openMentionTypeAhead = function openMentionTypeAhead() {
|
|
71
|
+
var _api$typeAhead;
|
|
72
|
+
api === null || api === void 0 || (_api$typeAhead = api.typeAhead) === null || _api$typeAhead === void 0 || (_api$typeAhead = _api$typeAhead.actions) === null || _api$typeAhead === void 0 || _api$typeAhead.open({
|
|
73
|
+
triggerHandler: typeAhead,
|
|
74
|
+
inputMethod: _analytics.INPUT_METHOD.INSERT_MENU
|
|
75
|
+
});
|
|
76
|
+
};
|
|
73
77
|
return /*#__PURE__*/_react.default.createElement(_withPluginState.WithPluginState, {
|
|
74
78
|
editorView: editorView,
|
|
75
79
|
plugins: {
|
|
@@ -80,12 +84,30 @@ var mentionsPlugin = function mentionsPlugin(_ref) {
|
|
|
80
84
|
mentionState = _ref4$mentionState === void 0 ? {} : _ref4$mentionState;
|
|
81
85
|
return !mentionState.mentionProvider ? null : /*#__PURE__*/_react.default.createElement(_ToolbarMention.default, {
|
|
82
86
|
editorView: editorView,
|
|
87
|
+
onInsertMention: openMentionTypeAhead,
|
|
83
88
|
isDisabled: disabled || (api === null || api === void 0 ? void 0 : api.typeAhead.actions.isAllowed(editorView.state))
|
|
84
89
|
});
|
|
85
90
|
}
|
|
86
91
|
});
|
|
87
92
|
},
|
|
88
|
-
|
|
93
|
+
actions: {
|
|
94
|
+
openTypeAhead: function openTypeAhead(inputMethod) {
|
|
95
|
+
var _api$typeAhead2;
|
|
96
|
+
return Boolean(api === null || api === void 0 || (_api$typeAhead2 = api.typeAhead) === null || _api$typeAhead2 === void 0 || (_api$typeAhead2 = _api$typeAhead2.actions) === null || _api$typeAhead2 === void 0 ? void 0 : _api$typeAhead2.open({
|
|
97
|
+
triggerHandler: typeAhead,
|
|
98
|
+
inputMethod: inputMethod
|
|
99
|
+
}));
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
getSharedState: function getSharedState(editorState) {
|
|
103
|
+
if (!editorState) {
|
|
104
|
+
return undefined;
|
|
105
|
+
}
|
|
106
|
+
var mentionPluginState = _key.mentionPluginKey.getState(editorState);
|
|
107
|
+
return _objectSpread(_objectSpread({}, mentionPluginState), {}, {
|
|
108
|
+
typeAheadHandler: typeAhead
|
|
109
|
+
});
|
|
110
|
+
},
|
|
89
111
|
pluginsOptions: {
|
|
90
112
|
quickInsert: function quickInsert(_ref5) {
|
|
91
113
|
var formatMessage = _ref5.formatMessage;
|
|
@@ -100,26 +122,14 @@ var mentionsPlugin = function mentionsPlugin(_ref) {
|
|
|
100
122
|
return /*#__PURE__*/_react.default.createElement(_quickInsert.IconMention, null);
|
|
101
123
|
},
|
|
102
124
|
action: function action(insert, state) {
|
|
103
|
-
var _api$analytics2;
|
|
104
125
|
var tr = insert(undefined);
|
|
105
|
-
var pluginState =
|
|
126
|
+
var pluginState = _key.mentionPluginKey.getState(state);
|
|
106
127
|
if (pluginState && pluginState.canInsertMention === false) {
|
|
107
128
|
return false;
|
|
108
129
|
}
|
|
109
|
-
api === null || api === void 0 || api.typeAhead.
|
|
130
|
+
api === null || api === void 0 || api.typeAhead.actions.openAtTransaction({
|
|
110
131
|
triggerHandler: typeAhead,
|
|
111
132
|
inputMethod: _analytics.INPUT_METHOD.QUICK_INSERT
|
|
112
|
-
})({
|
|
113
|
-
tr: tr
|
|
114
|
-
});
|
|
115
|
-
api === null || api === void 0 || (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 || _api$analytics2.actions.attachAnalyticsEvent({
|
|
116
|
-
action: _analytics.ACTION.INVOKED,
|
|
117
|
-
actionSubject: _analytics.ACTION_SUBJECT.TYPEAHEAD,
|
|
118
|
-
actionSubjectId: _analytics.ACTION_SUBJECT_ID.TYPEAHEAD_MENTION,
|
|
119
|
-
attributes: {
|
|
120
|
-
inputMethod: _analytics.INPUT_METHOD.QUICK_INSERT
|
|
121
|
-
},
|
|
122
|
-
eventType: _analytics.EVENT_TYPE.UI
|
|
123
133
|
})(tr);
|
|
124
134
|
return tr;
|
|
125
135
|
}
|
|
@@ -16,8 +16,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
17
|
var _mention = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/mention"));
|
|
18
18
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
19
|
-
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
20
|
-
var _api = require("../../../type-ahead/api");
|
|
21
19
|
var _reactIntlNext = require("react-intl-next");
|
|
22
20
|
var _messages = require("../../messages");
|
|
23
21
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -38,7 +36,7 @@ var ToolbarMention = /*#__PURE__*/function (_PureComponent) {
|
|
|
38
36
|
if (!_this.props.editorView) {
|
|
39
37
|
return false;
|
|
40
38
|
}
|
|
41
|
-
|
|
39
|
+
_this.props.onInsertMention();
|
|
42
40
|
return true;
|
|
43
41
|
});
|
|
44
42
|
return _this;
|
|
@@ -21,19 +21,18 @@ var _pluginKey = require("./plugin-key");
|
|
|
21
21
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
22
22
|
var _messages = require("../insert-block/ui/ToolbarInsertBlock/messages");
|
|
23
23
|
var _selectionUtils = require("./selection-utils");
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var typeAheadHandler = typeAheadAPI.findTypeAheadHandler(content);
|
|
24
|
+
var getOpenTypeAhead = function getOpenTypeAhead(trigger, api) {
|
|
25
|
+
var _api$typeAhead, _api$typeAhead2;
|
|
26
|
+
var typeAheadHandler = api === null || api === void 0 || (_api$typeAhead = api.typeAhead) === null || _api$typeAhead === void 0 || (_api$typeAhead = _api$typeAhead.actions) === null || _api$typeAhead === void 0 ? void 0 : _api$typeAhead.findHandlerByTrigger(trigger);
|
|
28
27
|
if (!typeAheadHandler || !typeAheadHandler.id) {
|
|
29
28
|
return null;
|
|
30
29
|
}
|
|
31
|
-
return
|
|
30
|
+
return api === null || api === void 0 || (_api$typeAhead2 = api.typeAhead) === null || _api$typeAhead2 === void 0 || (_api$typeAhead2 = _api$typeAhead2.actions) === null || _api$typeAhead2 === void 0 ? void 0 : _api$typeAhead2.openAtTransaction({
|
|
32
31
|
triggerHandler: typeAheadHandler,
|
|
33
32
|
inputMethod: _analytics.INPUT_METHOD.KEYBOARD
|
|
34
33
|
});
|
|
35
34
|
};
|
|
36
|
-
function createPlugin(dispatch, options) {
|
|
35
|
+
function createPlugin(dispatch, options, api) {
|
|
37
36
|
var allowInserting = !!options.allowInserting;
|
|
38
37
|
return new _safePlugin.SafePlugin({
|
|
39
38
|
key: _pluginKey.pluginKey,
|
|
@@ -111,7 +110,7 @@ function createPlugin(dispatch, options) {
|
|
|
111
110
|
var content = event.data || '';
|
|
112
111
|
var tr = view.state.tr;
|
|
113
112
|
tr.delete(startNodePosition, startNodePosition + 1);
|
|
114
|
-
var openTypeAhead = getOpenTypeAhead(
|
|
113
|
+
var openTypeAhead = getOpenTypeAhead(content, api);
|
|
115
114
|
if (openTypeAhead) {
|
|
116
115
|
openTypeAhead(tr);
|
|
117
116
|
} else {
|
|
@@ -132,7 +131,8 @@ function createPlugin(dispatch, options) {
|
|
|
132
131
|
});
|
|
133
132
|
}
|
|
134
133
|
var basePlaceholderTextPlugin = function basePlaceholderTextPlugin(_ref) {
|
|
135
|
-
var
|
|
134
|
+
var api = _ref.api,
|
|
135
|
+
options = _ref.config;
|
|
136
136
|
return {
|
|
137
137
|
name: 'placeholderText',
|
|
138
138
|
nodes: function nodes() {
|
|
@@ -146,7 +146,7 @@ var basePlaceholderTextPlugin = function basePlaceholderTextPlugin(_ref) {
|
|
|
146
146
|
name: 'placeholderText',
|
|
147
147
|
plugin: function plugin(_ref2) {
|
|
148
148
|
var dispatch = _ref2.dispatch;
|
|
149
|
-
return createPlugin(dispatch, options);
|
|
149
|
+
return createPlugin(dispatch, options, api);
|
|
150
150
|
}
|
|
151
151
|
}];
|
|
152
152
|
},
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.createTypeAheadTools =
|
|
6
|
+
exports.createTypeAheadTools = void 0;
|
|
7
7
|
var _typeAhead = require("@atlaskit/editor-common/type-ahead");
|
|
8
8
|
var _utils = require("./utils");
|
|
9
9
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
@@ -186,32 +186,14 @@ var currentQuery = function currentQuery(_ref8) {
|
|
|
186
186
|
return (0, _utils.getTypeAheadQuery)(editorView.state);
|
|
187
187
|
};
|
|
188
188
|
};
|
|
189
|
-
var find = function find(_ref9) {
|
|
190
|
-
var editorView = _ref9.editorView;
|
|
191
|
-
return function (trigger) {
|
|
192
|
-
var editorState = editorView.state;
|
|
193
|
-
var handler = (0, _utils.findHandlerByTrigger)({
|
|
194
|
-
trigger: trigger,
|
|
195
|
-
editorState: editorState
|
|
196
|
-
});
|
|
197
|
-
if (!handler) {
|
|
198
|
-
return null;
|
|
199
|
-
}
|
|
200
|
-
return handler;
|
|
201
|
-
};
|
|
202
|
-
};
|
|
203
189
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
findTypeAheadHandler: find(props),
|
|
212
|
-
openTypeAheadHandler: _openTypeaheadAtCursor.openTypeAhead
|
|
213
|
-
};
|
|
214
|
-
};
|
|
190
|
+
/**
|
|
191
|
+
* Please do not use it. Ping #help-editor and talk to the Lego team before use it.
|
|
192
|
+
*
|
|
193
|
+
* @private
|
|
194
|
+
* @deprecated
|
|
195
|
+
*
|
|
196
|
+
*/
|
|
215
197
|
var createTypeAheadTools = exports.createTypeAheadTools = function createTypeAheadTools(editorView) {
|
|
216
198
|
var props = {
|
|
217
199
|
editorView: editorView
|
|
@@ -14,6 +14,7 @@ Object.defineProperty(exports, "typeAheadPluginKey", {
|
|
|
14
14
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
15
15
|
var _react = _interopRequireDefault(require("react"));
|
|
16
16
|
var _typeAhead = require("@atlaskit/editor-common/type-ahead");
|
|
17
|
+
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
17
18
|
var _main = require("./pm-plugins/main");
|
|
18
19
|
var _insertItemPlugin = require("./pm-plugins/insert-item-plugin");
|
|
19
20
|
var _withPluginState = require("@atlaskit/editor-common/with-plugin-state");
|
|
@@ -27,6 +28,8 @@ var _updateSelectedIndex = require("./commands/update-selected-index");
|
|
|
27
28
|
var _statsModifier = require("./stats-modifier");
|
|
28
29
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
29
30
|
var _openTypeaheadAtCursor = require("./transforms/open-typeahead-at-cursor");
|
|
31
|
+
var _closeTypeAhead = require("./transforms/close-type-ahead");
|
|
32
|
+
var _insertTypeAheadItem = require("./commands/insert-type-ahead-item");
|
|
30
33
|
/**
|
|
31
34
|
*
|
|
32
35
|
* Revamped typeahead using decorations instead of the `typeAheadQuery` mark
|
|
@@ -118,6 +121,103 @@ var TypeAheadMenu = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
118
121
|
cancel: cancel
|
|
119
122
|
});
|
|
120
123
|
});
|
|
124
|
+
var createOpenAtTransaction = function createOpenAtTransaction(editorAnalyticsAPI) {
|
|
125
|
+
return function (props) {
|
|
126
|
+
return function (tr) {
|
|
127
|
+
var triggerHandler = props.triggerHandler,
|
|
128
|
+
inputMethod = props.inputMethod;
|
|
129
|
+
(0, _openTypeaheadAtCursor.openTypeAheadAtCursor)({
|
|
130
|
+
triggerHandler: triggerHandler,
|
|
131
|
+
inputMethod: inputMethod
|
|
132
|
+
})({
|
|
133
|
+
tr: tr
|
|
134
|
+
});
|
|
135
|
+
editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 || editorAnalyticsAPI.attachAnalyticsEvent({
|
|
136
|
+
action: _analytics.ACTION.INVOKED,
|
|
137
|
+
actionSubject: _analytics.ACTION_SUBJECT.TYPEAHEAD,
|
|
138
|
+
actionSubjectId: triggerHandler.id,
|
|
139
|
+
attributes: {
|
|
140
|
+
inputMethod: inputMethod
|
|
141
|
+
},
|
|
142
|
+
eventType: _analytics.EVENT_TYPE.UI
|
|
143
|
+
})(tr);
|
|
144
|
+
return true;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
var createOpenTypeAhead = function createOpenTypeAhead(editorViewRef, editorAnalyticsAPI) {
|
|
149
|
+
return function (props) {
|
|
150
|
+
if (!editorViewRef.current) {
|
|
151
|
+
return false;
|
|
152
|
+
}
|
|
153
|
+
var view = editorViewRef.current;
|
|
154
|
+
var tr = view.state.tr;
|
|
155
|
+
createOpenAtTransaction(editorAnalyticsAPI)(props)(tr);
|
|
156
|
+
view.dispatch(tr);
|
|
157
|
+
return true;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
var createInsertTypeAheadItem = function createInsertTypeAheadItem(editorViewRef) {
|
|
161
|
+
return function (props) {
|
|
162
|
+
if (!editorViewRef.current) {
|
|
163
|
+
return false;
|
|
164
|
+
}
|
|
165
|
+
var view = editorViewRef.current;
|
|
166
|
+
var triggerHandler = props.triggerHandler,
|
|
167
|
+
contentItem = props.contentItem,
|
|
168
|
+
query = props.query,
|
|
169
|
+
sourceListItem = props.sourceListItem,
|
|
170
|
+
mode = props.mode;
|
|
171
|
+
(0, _insertTypeAheadItem.insertTypeAheadItem)(view)({
|
|
172
|
+
handler: triggerHandler,
|
|
173
|
+
item: contentItem,
|
|
174
|
+
mode: mode || _typeAhead.SelectItemMode.SELECTED,
|
|
175
|
+
query: query,
|
|
176
|
+
sourceListItem: sourceListItem
|
|
177
|
+
});
|
|
178
|
+
return true;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
var createFindHandlerByTrigger = function createFindHandlerByTrigger(editorViewRef) {
|
|
182
|
+
return function (trigger) {
|
|
183
|
+
if (!editorViewRef.current) {
|
|
184
|
+
return null;
|
|
185
|
+
}
|
|
186
|
+
var view = editorViewRef.current;
|
|
187
|
+
return (0, _utils.findHandler)(trigger, view.state);
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
var createCloseTypeAhead = function createCloseTypeAhead(editorViewRef) {
|
|
191
|
+
return function (options) {
|
|
192
|
+
if (!editorViewRef.current) {
|
|
193
|
+
return false;
|
|
194
|
+
}
|
|
195
|
+
var view = editorViewRef.current;
|
|
196
|
+
var currentQuery = (0, _utils.getTypeAheadQuery)(view.state) || '';
|
|
197
|
+
var state = view.state;
|
|
198
|
+
var tr = state.tr;
|
|
199
|
+
if (options.attachCommand) {
|
|
200
|
+
var fakeDispatch = function fakeDispatch(customTr) {
|
|
201
|
+
tr = customTr;
|
|
202
|
+
};
|
|
203
|
+
options.attachCommand(state, fakeDispatch);
|
|
204
|
+
}
|
|
205
|
+
(0, _closeTypeAhead.closeTypeAhead)(tr);
|
|
206
|
+
if (options.insertCurrentQueryAsRawText && currentQuery && currentQuery.length > 0) {
|
|
207
|
+
var handler = (0, _utils.getTypeAheadHandler)(state);
|
|
208
|
+
if (!handler) {
|
|
209
|
+
return false;
|
|
210
|
+
}
|
|
211
|
+
var text = handler.trigger.concat(currentQuery);
|
|
212
|
+
tr.replaceSelectionWith(state.schema.text(text));
|
|
213
|
+
}
|
|
214
|
+
view.dispatch(tr);
|
|
215
|
+
if (!view.hasFocus()) {
|
|
216
|
+
view.focus();
|
|
217
|
+
}
|
|
218
|
+
return true;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
121
221
|
|
|
122
222
|
/**
|
|
123
223
|
*
|
|
@@ -128,11 +228,16 @@ var TypeAheadMenu = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
128
228
|
*
|
|
129
229
|
*/
|
|
130
230
|
var typeAheadPlugin = function typeAheadPlugin(_ref4) {
|
|
131
|
-
var
|
|
231
|
+
var _api$analytics, _api$analytics2;
|
|
232
|
+
var options = _ref4.config,
|
|
233
|
+
api = _ref4.api;
|
|
132
234
|
var fireAnalyticsCallback = (0, _analytics.fireAnalyticsEvent)(options === null || options === void 0 ? void 0 : options.createAnalyticsEvent);
|
|
133
235
|
var popupMountRef = {
|
|
134
236
|
current: null
|
|
135
237
|
};
|
|
238
|
+
var editorViewRef = {
|
|
239
|
+
current: null
|
|
240
|
+
};
|
|
136
241
|
return {
|
|
137
242
|
name: 'typeAhead',
|
|
138
243
|
marks: function marks() {
|
|
@@ -158,6 +263,20 @@ var typeAheadPlugin = function typeAheadPlugin(_ref4) {
|
|
|
158
263
|
createAnalyticsEvent: options === null || options === void 0 ? void 0 : options.createAnalyticsEvent
|
|
159
264
|
});
|
|
160
265
|
}
|
|
266
|
+
}, {
|
|
267
|
+
name: 'typeAheadEditorViewRef',
|
|
268
|
+
plugin: function plugin() {
|
|
269
|
+
return new _safePlugin.SafePlugin({
|
|
270
|
+
view: function view(_view) {
|
|
271
|
+
editorViewRef.current = _view;
|
|
272
|
+
return {
|
|
273
|
+
destroy: function destroy() {
|
|
274
|
+
editorViewRef.current = null;
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
}
|
|
161
280
|
}, {
|
|
162
281
|
name: 'typeAheadInsertItem',
|
|
163
282
|
plugin: _insertItemPlugin.createPlugin
|
|
@@ -170,12 +289,24 @@ var typeAheadPlugin = function typeAheadPlugin(_ref4) {
|
|
|
170
289
|
}
|
|
171
290
|
}];
|
|
172
291
|
},
|
|
173
|
-
|
|
174
|
-
|
|
292
|
+
getSharedState: function getSharedState(editorState) {
|
|
293
|
+
if (!editorState) {
|
|
294
|
+
return {
|
|
295
|
+
query: ''
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
return {
|
|
299
|
+
query: (0, _utils.getTypeAheadQuery)(editorState) || ''
|
|
300
|
+
};
|
|
175
301
|
},
|
|
176
302
|
actions: {
|
|
177
303
|
isOpen: _utils.isTypeAheadOpen,
|
|
178
|
-
isAllowed: _utils.isTypeAheadAllowed
|
|
304
|
+
isAllowed: _utils.isTypeAheadAllowed,
|
|
305
|
+
open: createOpenTypeAhead(editorViewRef, api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions),
|
|
306
|
+
openAtTransaction: createOpenAtTransaction(api === null || api === void 0 || (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.actions),
|
|
307
|
+
findHandlerByTrigger: createFindHandlerByTrigger(editorViewRef),
|
|
308
|
+
insert: createInsertTypeAheadItem(editorViewRef),
|
|
309
|
+
close: createCloseTypeAhead(editorViewRef)
|
|
179
310
|
},
|
|
180
311
|
contentComponent: function contentComponent(_ref7) {
|
|
181
312
|
var editorView = _ref7.editorView,
|
|
@@ -11,7 +11,8 @@ var _main = require("./pm-plugins/main");
|
|
|
11
11
|
var _history = require("../history");
|
|
12
12
|
var _ToolbarUndoRedo = _interopRequireDefault(require("./ui/ToolbarUndoRedo"));
|
|
13
13
|
var _WithPluginState = _interopRequireDefault(require("../../ui/WithPluginState"));
|
|
14
|
-
var undoRedoPlugin = function undoRedoPlugin() {
|
|
14
|
+
var undoRedoPlugin = function undoRedoPlugin(_ref) {
|
|
15
|
+
var api = _ref.api;
|
|
15
16
|
return {
|
|
16
17
|
name: 'undoRedoPlugin',
|
|
17
18
|
pmPlugins: function pmPlugins() {
|
|
@@ -27,21 +28,22 @@ var undoRedoPlugin = function undoRedoPlugin() {
|
|
|
27
28
|
}
|
|
28
29
|
}];
|
|
29
30
|
},
|
|
30
|
-
primaryToolbarComponent: function primaryToolbarComponent(
|
|
31
|
-
var editorView =
|
|
32
|
-
disabled =
|
|
33
|
-
isToolbarReducedSpacing =
|
|
31
|
+
primaryToolbarComponent: function primaryToolbarComponent(_ref2) {
|
|
32
|
+
var editorView = _ref2.editorView,
|
|
33
|
+
disabled = _ref2.disabled,
|
|
34
|
+
isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing;
|
|
34
35
|
return /*#__PURE__*/_react.default.createElement(_WithPluginState.default, {
|
|
35
36
|
plugins: {
|
|
36
37
|
historyState: _history.historyPluginKey
|
|
37
38
|
},
|
|
38
|
-
render: function render(
|
|
39
|
-
var historyState =
|
|
39
|
+
render: function render(_ref3) {
|
|
40
|
+
var historyState = _ref3.historyState;
|
|
40
41
|
return /*#__PURE__*/_react.default.createElement(_ToolbarUndoRedo.default, {
|
|
41
42
|
isReducedSpacing: isToolbarReducedSpacing,
|
|
42
43
|
disabled: disabled,
|
|
43
44
|
historyState: historyState,
|
|
44
|
-
editorView: editorView
|
|
45
|
+
editorView: editorView,
|
|
46
|
+
api: api
|
|
45
47
|
});
|
|
46
48
|
}
|
|
47
49
|
});
|