@atlaskit/editor-core 188.7.0 → 188.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/messages.js +1 -2
- package/dist/cjs/plugins/status/index.js +3 -3
- package/dist/cjs/plugins/status/nodeviews/status.js +4 -3
- package/dist/cjs/plugins/status/ui/statusPicker.js +7 -2
- package/dist/cjs/ui/ContentStyles/index.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/messages.js +1 -2
- package/dist/es2019/plugins/status/index.js +1 -1
- package/dist/es2019/plugins/status/nodeviews/status.js +3 -2
- package/dist/es2019/plugins/status/ui/statusPicker.js +6 -2
- package/dist/es2019/ui/ContentStyles/index.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/messages.js +1 -2
- package/dist/esm/plugins/status/index.js +1 -1
- package/dist/esm/plugins/status/nodeviews/status.js +3 -2
- package/dist/esm/plugins/status/ui/statusPicker.js +7 -2
- package/dist/esm/ui/ContentStyles/index.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/messages.d.ts +1 -2
- package/dist/types/plugins/status/analytics.d.ts +1 -1
- package/dist/types/plugins/status/nodeviews/status.d.ts +2 -1
- package/dist/types/plugins/status/ui/statusPicker.d.ts +1 -0
- package/dist/types/ui/ContentStyles/status.d.ts +1 -0
- package/dist/types-ts4.5/actions/index.d.ts +49 -0
- package/dist/types-ts4.5/commands/index.d.ts +1 -0
- package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +34 -0
- package/dist/types-ts4.5/composable-editor/editor.d.ts +9 -0
- package/dist/types-ts4.5/composable-editor/hooks/useEditorMeasuresConstructor.d.ts +17 -0
- package/dist/types-ts4.5/composable-editor/hooks/useMeasureEditorMountTime.d.ts +13 -0
- package/dist/types-ts4.5/composable-editor/hooks/useProviderFactory.d.ts +14 -0
- package/dist/types-ts4.5/composable-editor/utils/editorMeasureTTICallback.d.ts +5 -0
- package/dist/types-ts4.5/composable-editor/utils/getBaseFontSize.d.ts +6 -0
- package/dist/types-ts4.5/composable-editor/utils/getProvidersFromEditorProps.d.ts +9 -0
- package/dist/types-ts4.5/composable-editor/utils/handleProviders.d.ts +12 -0
- package/dist/types-ts4.5/composable-editor/utils/sendDurationAnalytics.d.ts +15 -0
- package/dist/types-ts4.5/composable-editor/utils/trackEditorActions.d.ts +29 -0
- package/dist/types-ts4.5/composable-editor.d.ts +1 -0
- package/dist/types-ts4.5/create-editor/ErrorBoundary.d.ts +44 -0
- package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +8 -0
- package/dist/types-ts4.5/create-editor/ReactEditorViewContext.d.ts +2 -0
- package/dist/types-ts4.5/create-editor/ReactEditorViewInternal.d.ts +119 -0
- package/dist/types-ts4.5/create-editor/ReactEditorViewNext.d.ts +8 -0
- package/dist/types-ts4.5/create-editor/WithEditorView.d.ts +6 -0
- package/dist/types-ts4.5/create-editor/consts.d.ts +3 -0
- package/dist/types-ts4.5/create-editor/create-editor.d.ts +18 -0
- package/dist/types-ts4.5/create-editor/create-plugins-list.d.ts +16 -0
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +3 -0
- package/dist/types-ts4.5/create-editor/create-schema.d.ts +6 -0
- package/dist/types-ts4.5/create-editor/feature-flags-from-props.d.ts +7 -0
- package/dist/types-ts4.5/create-editor/get-plugins.d.ts +44 -0
- package/dist/types-ts4.5/create-editor/get-ui-component.d.ts +3 -0
- package/dist/types-ts4.5/create-editor/index.d.ts +3 -0
- package/dist/types-ts4.5/create-editor/messages.d.ts +7 -0
- package/dist/types-ts4.5/create-editor/preset-utils.d.ts +2 -0
- package/dist/types-ts4.5/create-editor/sort-by-order.d.ts +14 -0
- package/dist/types-ts4.5/editor.d.ts +10 -0
- package/dist/types-ts4.5/element-browser.d.ts +1 -0
- package/dist/types-ts4.5/event-dispatcher/index.d.ts +2 -0
- package/dist/types-ts4.5/extensibility.d.ts +15 -0
- package/dist/types-ts4.5/extensions.d.ts +1 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +140 -0
- package/dist/types-ts4.5/i18n/da.d.ts +139 -0
- package/dist/types-ts4.5/i18n/de.d.ts +139 -0
- package/dist/types-ts4.5/i18n/en.d.ts +141 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +141 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +141 -0
- package/dist/types-ts4.5/i18n/es.d.ts +139 -0
- package/dist/types-ts4.5/i18n/et.d.ts +168 -0
- package/dist/types-ts4.5/i18n/fi.d.ts +139 -0
- package/dist/types-ts4.5/i18n/fr.d.ts +139 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +139 -0
- package/dist/types-ts4.5/i18n/index.d.ts +35 -0
- package/dist/types-ts4.5/i18n/is.d.ts +153 -0
- package/dist/types-ts4.5/i18n/it.d.ts +139 -0
- package/dist/types-ts4.5/i18n/ja.d.ts +139 -0
- package/dist/types-ts4.5/i18n/ko.d.ts +139 -0
- package/dist/types-ts4.5/i18n/languages.d.ts +38 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +139 -0
- package/dist/types-ts4.5/i18n/nl.d.ts +139 -0
- package/dist/types-ts4.5/i18n/pl.d.ts +139 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +139 -0
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +180 -0
- package/dist/types-ts4.5/i18n/ro.d.ts +153 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +139 -0
- package/dist/types-ts4.5/i18n/sk.d.ts +168 -0
- package/dist/types-ts4.5/i18n/sv.d.ts +139 -0
- package/dist/types-ts4.5/i18n/th.d.ts +139 -0
- package/dist/types-ts4.5/i18n/tr.d.ts +139 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +139 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +139 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +139 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +139 -0
- package/dist/types-ts4.5/index.d.ts +46 -0
- package/dist/types-ts4.5/keymaps/index.d.ts +2 -0
- package/dist/types-ts4.5/labs/CollapsedEditor/index.d.ts +26 -0
- package/dist/types-ts4.5/labs/EditorWithActions/index.d.ts +26 -0
- package/dist/types-ts4.5/labs/next/presets/default.d.ts +1160 -0
- package/dist/types-ts4.5/labs/next/presets/types.d.ts +6 -0
- package/dist/types-ts4.5/labs/next/presets/universal.d.ts +21 -0
- package/dist/types-ts4.5/labs/next/presets/useUniversalPreset.d.ts +7 -0
- package/dist/types-ts4.5/labs-next.d.ts +1 -0
- package/dist/types-ts4.5/messages.d.ts +7 -0
- package/dist/types-ts4.5/nodeviews/context-adapter.d.ts +2 -0
- package/dist/types-ts4.5/nodeviews/getInlineNodeViewProducer.styles.d.ts +1 -0
- package/dist/types-ts4.5/nodeviews/getPerformanceOptions.d.ts +2 -0
- package/dist/types-ts4.5/nodeviews/index.d.ts +1 -0
- package/dist/types-ts4.5/nodeviews/types.d.ts +12 -0
- package/dist/types-ts4.5/plugins/alignment/commands/index.d.ts +4 -0
- package/dist/types-ts4.5/plugins/alignment/index.d.ts +5 -0
- package/dist/types-ts4.5/plugins/alignment/pm-plugins/keymap.d.ts +2 -0
- package/dist/types-ts4.5/plugins/alignment/pm-plugins/main.d.ts +8 -0
- package/dist/types-ts4.5/plugins/alignment/pm-plugins/types.d.ts +5 -0
- package/dist/types-ts4.5/plugins/alignment/ui/ToolbarAlignment/icon-map.d.ts +6 -0
- package/dist/types-ts4.5/plugins/alignment/ui/ToolbarAlignment/index.d.ts +33 -0
- package/dist/{types/plugins/status/nodeviews → types-ts4.5/plugins/alignment/ui/ToolbarAlignment}/messages.d.ts +8 -3
- package/dist/types-ts4.5/plugins/alignment/ui/ToolbarAlignment/styles.d.ts +3 -0
- package/dist/types-ts4.5/plugins/alignment/utils/index.d.ts +3 -0
- package/dist/types-ts4.5/plugins/analytics/consts.d.ts +3 -0
- package/dist/types-ts4.5/plugins/analytics/index.d.ts +8 -0
- package/dist/types-ts4.5/plugins/analytics/plugin-key.d.ts +8 -0
- package/dist/types-ts4.5/plugins/analytics/plugin.d.ts +29 -0
- package/dist/types-ts4.5/plugins/analytics/types/dispatch-analytics-event.d.ts +1 -0
- package/dist/types-ts4.5/plugins/analytics/types/enums.d.ts +1 -0
- package/dist/types-ts4.5/plugins/analytics/types/events.d.ts +1 -0
- package/dist/types-ts4.5/plugins/analytics/types/experimental-events.d.ts +1 -0
- package/dist/types-ts4.5/plugins/analytics/types/extension-events.d.ts +2 -0
- package/dist/types-ts4.5/plugins/analytics/types/general-events.d.ts +2 -0
- package/dist/types-ts4.5/plugins/analytics/types/index.d.ts +9 -0
- package/dist/types-ts4.5/plugins/analytics/types/inline-comment-events.d.ts +2 -0
- package/dist/types-ts4.5/plugins/analytics/types/link-tool-bar-events.d.ts +1 -0
- package/dist/types-ts4.5/plugins/analytics/types/media-events.d.ts +1 -0
- package/dist/types-ts4.5/plugins/analytics/types/node-events.d.ts +2 -0
- package/dist/types-ts4.5/plugins/analytics/types/selection-events.d.ts +1 -0
- package/dist/types-ts4.5/plugins/analytics/types/smart-links.d.ts +2 -0
- package/dist/types-ts4.5/plugins/analytics/types/toolbar-button.d.ts +2 -0
- package/dist/types-ts4.5/plugins/analytics/utils.d.ts +22 -0
- package/dist/types-ts4.5/plugins/annotation/commands/index.d.ts +16 -0
- package/dist/types-ts4.5/plugins/annotation/commands/transform.d.ts +11 -0
- package/dist/types-ts4.5/plugins/annotation/index.d.ts +12 -0
- package/dist/types-ts4.5/plugins/annotation/nodeviews/index.d.ts +11 -0
- package/dist/types-ts4.5/plugins/annotation/pm-plugins/inline-comment.d.ts +3 -0
- package/dist/types-ts4.5/plugins/annotation/pm-plugins/keymap.d.ts +2 -0
- package/dist/types-ts4.5/plugins/annotation/pm-plugins/plugin-factory.d.ts +2 -0
- package/dist/types-ts4.5/plugins/annotation/pm-plugins/reducer.d.ts +3 -0
- package/dist/types-ts4.5/plugins/annotation/pm-plugins/types.d.ts +78 -0
- package/dist/types-ts4.5/plugins/annotation/toolbar.d.ts +4 -0
- package/dist/types-ts4.5/plugins/annotation/types.d.ts +86 -0
- package/dist/types-ts4.5/plugins/annotation/ui/AnnotationViewWrapper.d.ts +10 -0
- package/dist/types-ts4.5/plugins/annotation/ui/InlineCommentView.d.ts +11 -0
- package/dist/types-ts4.5/plugins/annotation/update-provider.d.ts +8 -0
- package/dist/types-ts4.5/plugins/annotation/utils.d.ts +40 -0
- package/dist/types-ts4.5/plugins/avatar-group/index.d.ts +14 -0
- package/dist/types-ts4.5/plugins/avatar-group/messages.d.ts +7 -0
- package/dist/types-ts4.5/plugins/avatar-group/ui/AvatarGroupPluginWrapper.d.ts +15 -0
- package/dist/types-ts4.5/plugins/before-primaryToolbar/index.d.ts +8 -0
- package/dist/types-ts4.5/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.d.ts +5 -0
- package/dist/types-ts4.5/plugins/better-type-history/index.d.ts +13 -0
- package/dist/types-ts4.5/plugins/better-type-history/pm-plugins/main.d.ts +3 -0
- package/dist/types-ts4.5/plugins/better-type-history/pm-plugins/plugin-key.d.ts +2 -0
- package/dist/types-ts4.5/plugins/breakout/commands/remove-breakout.d.ts +2 -0
- package/dist/types-ts4.5/plugins/breakout/commands/set-breakout-mode.d.ts +3 -0
- package/dist/types-ts4.5/plugins/breakout/constants.d.ts +4 -0
- package/dist/types-ts4.5/plugins/breakout/index.d.ts +14 -0
- package/dist/types-ts4.5/plugins/breakout/plugin-key.d.ts +5 -0
- package/dist/types-ts4.5/plugins/breakout/types.d.ts +4 -0
- package/dist/types-ts4.5/plugins/breakout/ui/LayoutButton.d.ts +17 -0
- package/dist/types-ts4.5/plugins/breakout/utils/find-breakout-node.d.ts +9 -0
- package/dist/types-ts4.5/plugins/breakout/utils/get-breakout-mode.d.ts +7 -0
- package/dist/types-ts4.5/plugins/breakout/utils/is-breakout-mark-allowed.d.ts +9 -0
- package/dist/types-ts4.5/plugins/breakout/utils/is-supported-node.d.ts +6 -0
- package/dist/types-ts4.5/plugins/clear-marks-on-change-to-empty-document/index.d.ts +7 -0
- package/dist/types-ts4.5/plugins/code-bidi-warning/index.d.ts +8 -0
- package/dist/types-ts4.5/plugins/code-bidi-warning/plugin-key.d.ts +2 -0
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/main.d.ts +5 -0
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/plugin-factory.d.ts +8 -0
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/reducer.d.ts +3 -0
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/types.d.ts +6 -0
- package/dist/types-ts4.5/plugins/code-block/actions.d.ts +18 -0
- package/dist/types-ts4.5/plugins/code-block/ide-ux/bracket-handling.d.ts +12 -0
- package/dist/types-ts4.5/plugins/code-block/ide-ux/commands.d.ts +6 -0
- package/dist/types-ts4.5/plugins/code-block/ide-ux/line-handling.d.ts +25 -0
- package/dist/types-ts4.5/plugins/code-block/ide-ux/paired-character-handling.d.ts +2 -0
- package/dist/types-ts4.5/plugins/code-block/ide-ux/quote-handling.d.ts +12 -0
- package/dist/types-ts4.5/plugins/code-block/index.d.ts +19 -0
- package/dist/types-ts4.5/plugins/code-block/language-list.d.ts +1641 -0
- package/dist/types-ts4.5/plugins/code-block/nodeviews/code-block.d.ts +21 -0
- package/dist/types-ts4.5/plugins/code-block/plugin-key.d.ts +2 -0
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/actions.d.ts +4 -0
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/codeBlockCopySelectionPlugin.d.ts +14 -0
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/ide-ux.d.ts +5 -0
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/input-rule.d.ts +3 -0
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/keymaps.d.ts +4 -0
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/main-state.d.ts +8 -0
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/main.d.ts +10 -0
- package/dist/types-ts4.5/plugins/code-block/refresh-browser-selection.d.ts +5 -0
- package/dist/types-ts4.5/plugins/code-block/styles.d.ts +2 -0
- package/dist/types-ts4.5/plugins/code-block/toolbar.d.ts +14 -0
- package/dist/types-ts4.5/plugins/code-block/transform-to-code-block.d.ts +3 -0
- package/dist/types-ts4.5/plugins/code-block/types.d.ts +7 -0
- package/dist/types-ts4.5/plugins/code-block/ui/class-names.d.ts +8 -0
- package/dist/types-ts4.5/plugins/code-block/utils.d.ts +6 -0
- package/dist/types-ts4.5/plugins/collab-edit/actions.d.ts +11 -0
- package/dist/types-ts4.5/plugins/collab-edit/analytics.d.ts +6 -0
- package/dist/types-ts4.5/plugins/collab-edit/events/handlers.d.ts +24 -0
- package/dist/types-ts4.5/plugins/collab-edit/events/initialize.d.ts +16 -0
- package/dist/types-ts4.5/plugins/collab-edit/events/send-transaction.d.ts +11 -0
- package/dist/types-ts4.5/plugins/collab-edit/get-participants-count.d.ts +2 -0
- package/dist/types-ts4.5/plugins/collab-edit/index.d.ts +14 -0
- package/dist/types-ts4.5/plugins/collab-edit/native-collab-provider-plugin.d.ts +7 -0
- package/dist/types-ts4.5/plugins/collab-edit/participants.d.ts +18 -0
- package/dist/types-ts4.5/plugins/collab-edit/plugin-key.d.ts +3 -0
- package/dist/types-ts4.5/plugins/collab-edit/plugin-state.d.ts +24 -0
- package/dist/types-ts4.5/plugins/collab-edit/plugin.d.ts +11 -0
- package/dist/types-ts4.5/plugins/collab-edit/styles.d.ts +1 -0
- package/dist/types-ts4.5/plugins/collab-edit/types.d.ts +8 -0
- package/dist/types-ts4.5/plugins/collab-edit/ui/avatars-with-plugin-state.d.ts +23 -0
- package/dist/types-ts4.5/plugins/collab-edit/ui/avatars.d.ts +12 -0
- package/dist/types-ts4.5/plugins/collab-edit/ui/colored-avatar-item.d.ts +7 -0
- package/dist/types-ts4.5/plugins/collab-edit/ui/index.d.ts +2 -0
- package/dist/types-ts4.5/plugins/collab-edit/ui/invite-to-edit.d.ts +10 -0
- package/dist/types-ts4.5/plugins/collab-edit/ui/styles.d.ts +3 -0
- package/dist/types-ts4.5/plugins/collab-edit/ui/to-avatar.d.ts +4 -0
- package/dist/types-ts4.5/plugins/collab-edit/utils.d.ts +18 -0
- package/dist/types-ts4.5/plugins/custom-autoformat/doc.d.ts +6 -0
- package/dist/types-ts4.5/plugins/custom-autoformat/index.d.ts +6 -0
- package/dist/types-ts4.5/plugins/custom-autoformat/input-rules.d.ts +9 -0
- package/dist/types-ts4.5/plugins/custom-autoformat/reducers.d.ts +4 -0
- package/dist/types-ts4.5/plugins/custom-autoformat/types.d.ts +31 -0
- package/dist/types-ts4.5/plugins/custom-autoformat/utils.d.ts +6 -0
- package/dist/types-ts4.5/plugins/data-consumer/index.d.ts +3 -0
- package/dist/types-ts4.5/plugins/date/actions.d.ts +64 -0
- package/dist/types-ts4.5/plugins/date/index.d.ts +2 -0
- package/dist/types-ts4.5/plugins/date/nodeviews/date.d.ts +3 -0
- package/dist/types-ts4.5/plugins/date/nodeviews/messages.d.ts +7 -0
- package/dist/types-ts4.5/plugins/date/plugin.d.ts +3 -0
- package/dist/types-ts4.5/plugins/date/pm-plugins/keymap.d.ts +3 -0
- package/dist/types-ts4.5/plugins/date/pm-plugins/main.d.ts +6 -0
- package/dist/types-ts4.5/plugins/date/pm-plugins/plugin-key.d.ts +3 -0
- package/dist/types-ts4.5/plugins/date/pm-plugins/types.d.ts +12 -0
- package/dist/types-ts4.5/plugins/date/pm-plugins/utils.d.ts +5 -0
- package/dist/types-ts4.5/plugins/date/types.d.ts +31 -0
- package/dist/types-ts4.5/plugins/date/ui/DatePicker/date-picker-input.d.ts +24 -0
- package/dist/types-ts4.5/plugins/date/ui/DatePicker/index.d.ts +36 -0
- package/dist/types-ts4.5/plugins/date/utils/formatParse.d.ts +27 -0
- package/dist/types-ts4.5/plugins/date/utils/internal.d.ts +33 -0
- package/dist/types-ts4.5/plugins/expand/commands.d.ts +12 -0
- package/dist/types-ts4.5/plugins/expand/index.d.ts +24 -0
- package/dist/types-ts4.5/plugins/expand/nodeviews/index.d.ts +55 -0
- package/dist/types-ts4.5/plugins/expand/pm-plugins/keymap.d.ts +4 -0
- package/dist/types-ts4.5/plugins/expand/pm-plugins/main.d.ts +8 -0
- package/dist/types-ts4.5/plugins/expand/pm-plugins/plugin-factory.d.ts +3 -0
- package/dist/types-ts4.5/plugins/expand/reducer.d.ts +3 -0
- package/dist/types-ts4.5/plugins/expand/toolbar.d.ts +3 -0
- package/dist/types-ts4.5/plugins/expand/types.d.ts +9 -0
- package/dist/types-ts4.5/plugins/expand/ui/ExpandIconButton.d.ts +43 -0
- package/dist/types-ts4.5/plugins/expand/ui/class-names.d.ts +11 -0
- package/dist/types-ts4.5/plugins/expand/ui/styles.d.ts +2 -0
- package/dist/types-ts4.5/plugins/expand/utils.d.ts +1 -0
- package/dist/types-ts4.5/plugins/extension/actions.d.ts +17 -0
- package/dist/types-ts4.5/plugins/extension/commands.d.ts +12 -0
- package/dist/types-ts4.5/plugins/extension/context-panel.d.ts +8 -0
- package/dist/types-ts4.5/plugins/extension/extension-api.d.ts +10 -0
- package/dist/types-ts4.5/plugins/extension/index.d.ts +3 -0
- package/dist/types-ts4.5/plugins/extension/nodeviews/extension.d.ts +32 -0
- package/dist/types-ts4.5/plugins/extension/plugin-factory.d.ts +4 -0
- package/dist/types-ts4.5/plugins/extension/plugin-key.d.ts +3 -0
- package/dist/types-ts4.5/plugins/extension/pm-plugins/keymap.d.ts +3 -0
- package/dist/types-ts4.5/plugins/extension/pm-plugins/main.d.ts +27 -0
- package/dist/types-ts4.5/plugins/extension/pm-plugins/unique-id.d.ts +3 -0
- package/dist/types-ts4.5/plugins/extension/pm-plugins/utils.d.ts +3 -0
- package/dist/types-ts4.5/plugins/extension/reducer.d.ts +2 -0
- package/dist/types-ts4.5/plugins/extension/toolbar.d.ts +42 -0
- package/dist/types-ts4.5/plugins/extension/types.d.ts +22 -0
- package/dist/types-ts4.5/plugins/extension/ui/Extension/Extension/index.d.ts +109 -0
- package/dist/types-ts4.5/plugins/extension/ui/Extension/Extension/styles.d.ts +6 -0
- package/dist/types-ts4.5/plugins/extension/ui/Extension/ExtensionComponent.d.ts +51 -0
- package/dist/types-ts4.5/plugins/extension/ui/Extension/ExtensionNodeWrapper.d.ts +7 -0
- package/dist/types-ts4.5/plugins/extension/ui/Extension/InlineExtension/index.d.ts +12 -0
- package/dist/types-ts4.5/plugins/extension/ui/Extension/InlineExtension/styles.d.ts +2 -0
- package/dist/types-ts4.5/plugins/extension/ui/Extension/Lozenge.d.ts +14 -0
- package/dist/types-ts4.5/plugins/extension/ui/Extension/index.d.ts +28 -0
- package/dist/types-ts4.5/plugins/extension/ui/Extension/styles.d.ts +8 -0
- package/dist/types-ts4.5/plugins/extension/ui/SaveIndicator/SaveIndicator.d.ts +4 -0
- package/dist/types-ts4.5/plugins/extension/ui/SaveIndicator/messages.d.ts +7 -0
- package/dist/types-ts4.5/plugins/extension/ui/SaveIndicator/types.d.ts +11 -0
- package/dist/types-ts4.5/plugins/extension/ui/styles.d.ts +1 -0
- package/dist/types-ts4.5/plugins/extension/utils.d.ts +10 -0
- package/dist/types-ts4.5/plugins/fake-text-cursor/cursor.d.ts +30 -0
- package/dist/types-ts4.5/plugins/fake-text-cursor/index.d.ts +7 -0
- package/dist/types-ts4.5/plugins/fake-text-cursor/styles.d.ts +1 -0
- package/dist/types-ts4.5/plugins/feedback-dialog/getBrowserInfo.d.ts +6 -0
- package/dist/types-ts4.5/plugins/feedback-dialog/getDeviceInfo.d.ts +6 -0
- package/dist/types-ts4.5/plugins/feedback-dialog/index.d.ts +7 -0
- package/dist/types-ts4.5/plugins/feedback-dialog/loadJiraCollectorDialogScript.d.ts +8 -0
- package/dist/types-ts4.5/plugins/find-replace/FindReplaceToolbarButtonWithState.d.ts +17 -0
- package/dist/types-ts4.5/plugins/find-replace/actions.d.ts +64 -0
- package/dist/types-ts4.5/plugins/find-replace/commands-with-analytics.d.ts +27 -0
- package/dist/types-ts4.5/plugins/find-replace/commands.d.ts +12 -0
- package/dist/types-ts4.5/plugins/find-replace/index.d.ts +13 -0
- package/dist/types-ts4.5/plugins/find-replace/keymap.d.ts +3 -0
- package/dist/types-ts4.5/plugins/find-replace/plugin.d.ts +6 -0
- package/dist/types-ts4.5/plugins/find-replace/reducer.d.ts +4 -0
- package/dist/types-ts4.5/plugins/find-replace/styles.d.ts +3 -0
- package/dist/types-ts4.5/plugins/find-replace/types.d.ts +44 -0
- package/dist/types-ts4.5/plugins/find-replace/ui/Find.d.ts +71 -0
- package/dist/types-ts4.5/plugins/find-replace/ui/FindReplace.d.ts +43 -0
- package/dist/types-ts4.5/plugins/find-replace/ui/FindReplaceToolbarButton.d.ts +21 -0
- package/dist/types-ts4.5/plugins/find-replace/ui/FindReplaceTooltipButton.d.ts +18 -0
- package/dist/types-ts4.5/plugins/find-replace/ui/Replace.d.ts +26 -0
- package/dist/types-ts4.5/plugins/find-replace/ui/styles.d.ts +5 -0
- package/dist/types-ts4.5/plugins/find-replace/utils/batch-decorations.d.ts +36 -0
- package/dist/types-ts4.5/plugins/find-replace/utils/index.d.ts +49 -0
- package/dist/types-ts4.5/plugins/fragment/index.d.ts +3 -0
- package/dist/types-ts4.5/plugins/fragment/plugin-key.d.ts +2 -0
- package/dist/types-ts4.5/plugins/fragment/pm-plugins/fragment-consistency.d.ts +15 -0
- package/dist/types-ts4.5/plugins/history/actions.d.ts +8 -0
- package/dist/types-ts4.5/plugins/history/index.d.ts +13 -0
- package/dist/types-ts4.5/plugins/history/pm-history-types.d.ts +17 -0
- package/dist/types-ts4.5/plugins/history/reducer.d.ts +4 -0
- package/dist/types-ts4.5/plugins/history/types.d.ts +4 -0
- package/dist/types-ts4.5/plugins/history/utils.d.ts +4 -0
- package/dist/types-ts4.5/plugins/indentation/commands/index.d.ts +8 -0
- package/dist/types-ts4.5/plugins/indentation/commands/utils.d.ts +36 -0
- package/dist/types-ts4.5/plugins/indentation/index.d.ts +3 -0
- package/dist/types-ts4.5/plugins/indentation/messages.d.ts +12 -0
- package/dist/types-ts4.5/plugins/indentation/pm-plugins/keymap.d.ts +3 -0
- package/dist/types-ts4.5/plugins/index.d.ts +43 -0
- package/dist/types-ts4.5/plugins/insert-block/index.d.ts +16 -0
- package/dist/types-ts4.5/plugins/insert-block/types.d.ts +35 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.d.ts +28 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.d.ts +18 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.d.ts +30 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/create-items.d.ts +44 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.d.ts +16 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/index.d.ts +46 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/item.d.ts +34 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/messages.d.ts +1 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/shallow-equals.d.ts +1 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/sort-items.d.ts +2 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/styles.d.ts +1 -0
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/types.d.ts +60 -0
- package/dist/types-ts4.5/plugins/jira-issue/index.d.ts +5 -0
- package/dist/types-ts4.5/plugins/jira-issue/nodeviews/jira-issue.d.ts +7 -0
- package/dist/types-ts4.5/plugins/layout/actions.d.ts +22 -0
- package/dist/types-ts4.5/plugins/layout/index.d.ts +15 -0
- package/dist/types-ts4.5/plugins/layout/pm-plugins/main.d.ts +6 -0
- package/dist/types-ts4.5/plugins/layout/pm-plugins/plugin-key.d.ts +3 -0
- package/dist/types-ts4.5/plugins/layout/pm-plugins/types.d.ts +14 -0
- package/dist/types-ts4.5/plugins/layout/styles.d.ts +4 -0
- package/dist/types-ts4.5/plugins/layout/toolbar-messages.d.ts +32 -0
- package/dist/types-ts4.5/plugins/layout/toolbar.d.ts +6 -0
- package/dist/types-ts4.5/plugins/layout/types.d.ts +13 -0
- package/dist/types-ts4.5/plugins/layout/utils.d.ts +1 -0
- package/dist/types-ts4.5/plugins/macro/actions.d.ts +8 -0
- package/dist/types-ts4.5/plugins/macro/index.d.ts +11 -0
- package/dist/types-ts4.5/plugins/macro/plugin-key.d.ts +3 -0
- package/dist/types-ts4.5/plugins/macro/types.d.ts +4 -0
- package/dist/types-ts4.5/plugins/max-content-size/index.d.ts +13 -0
- package/dist/types-ts4.5/plugins/mentions/analytics.d.ts +13 -0
- package/dist/types-ts4.5/plugins/mentions/index.d.ts +22 -0
- package/dist/types-ts4.5/plugins/mentions/messages.d.ts +22 -0
- package/dist/types-ts4.5/plugins/mentions/nodeviews/mention.d.ts +9 -0
- package/dist/types-ts4.5/plugins/mentions/pm-plugins/key.d.ts +3 -0
- package/dist/types-ts4.5/plugins/mentions/pm-plugins/main.d.ts +6 -0
- package/dist/types-ts4.5/plugins/mentions/pm-plugins/utils.d.ts +4 -0
- package/dist/types-ts4.5/plugins/mentions/type-ahead/index.d.ts +17 -0
- package/dist/types-ts4.5/plugins/mentions/types.d.ts +24 -0
- package/dist/types-ts4.5/plugins/mentions/ui/InviteItem/index.d.ts +22 -0
- package/dist/types-ts4.5/plugins/mentions/ui/InviteItem/styles.d.ts +8 -0
- package/dist/types-ts4.5/plugins/mentions/ui/Mention/index.d.ts +19 -0
- package/dist/types-ts4.5/plugins/mentions/ui/ToolbarMention/index.d.ts +13 -0
- package/dist/types-ts4.5/plugins/mentions/utils.d.ts +8 -0
- package/dist/types-ts4.5/plugins/mobile-dimensions/actions.d.ts +18 -0
- package/dist/types-ts4.5/plugins/mobile-dimensions/commands.d.ts +3 -0
- package/dist/types-ts4.5/plugins/mobile-dimensions/index.d.ts +3 -0
- package/dist/types-ts4.5/plugins/mobile-dimensions/plugin-factory.d.ts +5 -0
- package/dist/types-ts4.5/plugins/mobile-dimensions/reducer.d.ts +3 -0
- package/dist/types-ts4.5/plugins/mobile-dimensions/types.d.ts +8 -0
- package/dist/types-ts4.5/plugins/mobile-dimensions/utils.d.ts +2 -0
- package/dist/types-ts4.5/plugins/mobile-selection/content-in-selection.d.ts +5 -0
- package/dist/types-ts4.5/plugins/mobile-selection/index.d.ts +2 -0
- package/dist/types-ts4.5/plugins/mobile-selection/mobile-selection-plugin.d.ts +7 -0
- package/dist/types-ts4.5/plugins/mobile-selection/types.d.ts +32 -0
- package/dist/types-ts4.5/plugins/panel/actions.d.ts +12 -0
- package/dist/types-ts4.5/plugins/panel/index.d.ts +17 -0
- package/dist/types-ts4.5/plugins/panel/message.d.ts +37 -0
- package/dist/types-ts4.5/plugins/panel/nodeviews/panel.d.ts +36 -0
- package/dist/types-ts4.5/plugins/panel/pm-plugins/keymaps.d.ts +3 -0
- package/dist/types-ts4.5/plugins/panel/pm-plugins/main.d.ts +11 -0
- package/dist/types-ts4.5/plugins/panel/styles.d.ts +2 -0
- package/dist/types-ts4.5/plugins/panel/toolbar.d.ts +14 -0
- package/dist/types-ts4.5/plugins/panel/types.d.ts +21 -0
- package/dist/types-ts4.5/plugins/panel/utils.d.ts +5 -0
- package/dist/types-ts4.5/plugins/paste/actions.d.ts +15 -0
- package/dist/types-ts4.5/plugins/paste/commands.d.ts +30 -0
- package/dist/types-ts4.5/plugins/paste/edge-cases/index.d.ts +7 -0
- package/dist/types-ts4.5/plugins/paste/edge-cases/lists.d.ts +18 -0
- package/dist/types-ts4.5/plugins/paste/handlers.d.ts +54 -0
- package/dist/types-ts4.5/plugins/paste/index.d.ts +25 -0
- package/dist/types-ts4.5/plugins/paste/plugins/media.d.ts +12 -0
- package/dist/types-ts4.5/plugins/paste/pm-plugins/analytics.d.ts +45 -0
- package/dist/types-ts4.5/plugins/paste/pm-plugins/clipboard-text-serializer.d.ts +13 -0
- package/dist/types-ts4.5/plugins/paste/pm-plugins/main.d.ts +10 -0
- package/dist/types-ts4.5/plugins/paste/pm-plugins/plugin-factory.d.ts +3 -0
- package/dist/types-ts4.5/plugins/paste/reducer.d.ts +3 -0
- package/dist/types-ts4.5/plugins/paste/types.d.ts +6 -0
- package/dist/types-ts4.5/plugins/paste/util/index.d.ts +21 -0
- package/dist/types-ts4.5/plugins/paste/util/tinyMCE.d.ts +32 -0
- package/dist/types-ts4.5/plugins/placeholder-text/actions.d.ts +4 -0
- package/dist/types-ts4.5/plugins/placeholder-text/index.d.ts +22 -0
- package/dist/types-ts4.5/plugins/placeholder-text/placeholder-text-nodeview.d.ts +17 -0
- package/dist/types-ts4.5/plugins/placeholder-text/plugin-key.d.ts +3 -0
- package/dist/types-ts4.5/plugins/placeholder-text/selection-utils.d.ts +2 -0
- package/dist/types-ts4.5/plugins/placeholder-text/styles.d.ts +1 -0
- package/dist/types-ts4.5/plugins/placeholder-text/types.d.ts +7 -0
- package/dist/types-ts4.5/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.d.ts +25 -0
- package/dist/types-ts4.5/plugins/rank.d.ts +6 -0
- package/dist/types-ts4.5/plugins/save-on-enter/index.d.ts +10 -0
- package/dist/types-ts4.5/plugins/scroll-into-view/index.d.ts +14 -0
- package/dist/types-ts4.5/plugins/status/actions.d.ts +16 -0
- package/dist/types-ts4.5/plugins/status/analytics.d.ts +4 -0
- package/dist/types-ts4.5/plugins/status/index.d.ts +17 -0
- package/dist/types-ts4.5/plugins/status/keymap.d.ts +3 -0
- package/dist/types-ts4.5/plugins/status/nodeviews/status.d.ts +25 -0
- package/dist/types-ts4.5/plugins/status/plugin-key.d.ts +4 -0
- package/dist/types-ts4.5/plugins/status/plugin.d.ts +7 -0
- package/dist/types-ts4.5/plugins/status/types.d.ts +18 -0
- package/dist/types-ts4.5/plugins/status/ui/statusPicker.d.ts +63 -0
- package/dist/types-ts4.5/plugins/status/utils.d.ts +5 -0
- package/dist/types-ts4.5/plugins/submit-editor/index.d.ts +16 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/commands.d.ts +16 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/index.d.ts +6 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/nodeviews/decisionItem.d.ts +5 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/nodeviews/taskItem.d.ts +9 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/commands.d.ts +15 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/helpers.d.ts +76 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/input-rules.d.ts +5 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/keymaps.d.ts +8 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/main.d.ts +5 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/plugin-key.d.ts +2 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/types.d.ts +8 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/styles.d.ts +1 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/types.d.ts +26 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/ui/Decision/index.d.ts +14 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/ui/Task/index.d.ts +27 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/ui/Task/task-item-with-providers.d.ts +28 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/ui/ToolbarDecision/index.d.ts +20 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/ui/ToolbarTask/index.d.ts +20 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/utils.d.ts +5 -0
- package/dist/types-ts4.5/plugins/text-color/commands/change-color.d.ts +3 -0
- package/dist/types-ts4.5/plugins/text-color/commands/remove-color.d.ts +2 -0
- package/dist/types-ts4.5/plugins/text-color/commands/toggle-color.d.ts +2 -0
- package/dist/types-ts4.5/plugins/text-color/index.d.ts +7 -0
- package/dist/types-ts4.5/plugins/text-color/pm-plugins/main.d.ts +25 -0
- package/dist/types-ts4.5/plugins/text-color/types.d.ts +12 -0
- package/dist/types-ts4.5/plugins/text-color/ui/ToolbarTextColor/icon.d.ts +2 -0
- package/dist/types-ts4.5/plugins/text-color/ui/ToolbarTextColor/index.d.ts +53 -0
- package/dist/types-ts4.5/plugins/text-color/ui/ToolbarTextColor/styles.d.ts +3 -0
- package/dist/types-ts4.5/plugins/text-color/utils/color.d.ts +6 -0
- package/dist/types-ts4.5/plugins/text-color/utils/disabled.d.ts +2 -0
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/index.d.ts +19 -0
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/pm-plugins/indentation-buttons.d.ts +17 -0
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/types.d.ts +20 -0
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/ui/Toolbar.d.ts +4 -0
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.d.ts +9 -0
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/ui/index.d.ts +24 -0
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/ui/onItemActivated.d.ts +8 -0
- package/dist/types-ts4.5/plugins/type-ahead/api.d.ts +61 -0
- package/dist/types-ts4.5/plugins/type-ahead/commands/insert-type-ahead-item.d.ts +12 -0
- package/dist/types-ts4.5/plugins/type-ahead/commands/update-list-items.d.ts +3 -0
- package/dist/types-ts4.5/plugins/type-ahead/commands/update-query.d.ts +2 -0
- package/dist/types-ts4.5/plugins/type-ahead/commands/update-selected-index.d.ts +2 -0
- package/dist/types-ts4.5/plugins/type-ahead/constants.d.ts +8 -0
- package/dist/types-ts4.5/plugins/type-ahead/index.d.ts +15 -0
- package/dist/types-ts4.5/plugins/type-ahead/insert-utils.d.ts +18 -0
- package/dist/types-ts4.5/plugins/type-ahead/messages.d.ts +72 -0
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/actions.d.ts +9 -0
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/decorations.d.ts +14 -0
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/input-rules.d.ts +6 -0
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/insert-item-plugin.d.ts +2 -0
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/key.d.ts +3 -0
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/main.d.ts +14 -0
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/reducer.d.ts +10 -0
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/utils.d.ts +4 -0
- package/dist/types-ts4.5/plugins/type-ahead/stats-modifier.d.ts +20 -0
- package/dist/types-ts4.5/plugins/type-ahead/transforms/close-type-ahead.d.ts +2 -0
- package/dist/types-ts4.5/plugins/type-ahead/transforms/open-typeahead-at-cursor.d.ts +11 -0
- package/dist/types-ts4.5/plugins/type-ahead/transforms/set-selection-before-query.d.ts +2 -0
- package/dist/types-ts4.5/plugins/type-ahead/types.d.ts +64 -0
- package/dist/types-ts4.5/plugins/type-ahead/ui/AssistiveText.d.ts +33 -0
- package/dist/types-ts4.5/plugins/type-ahead/ui/InputQuery.d.ts +26 -0
- package/dist/types-ts4.5/plugins/type-ahead/ui/TypeAheadList.d.ts +25 -0
- package/dist/types-ts4.5/plugins/type-ahead/ui/TypeAheadListItem.d.ts +18 -0
- package/dist/types-ts4.5/plugins/type-ahead/ui/TypeAheadPopup.d.ts +29 -0
- package/dist/types-ts4.5/plugins/type-ahead/ui/WrapperTypeAhead.d.ts +20 -0
- package/dist/types-ts4.5/plugins/type-ahead/ui/hooks/use-item-insert.d.ts +7 -0
- package/dist/types-ts4.5/plugins/type-ahead/ui/hooks/use-load-items.d.ts +3 -0
- package/dist/types-ts4.5/plugins/type-ahead/ui/hooks/use-on-force-select.d.ts +11 -0
- package/dist/types-ts4.5/plugins/type-ahead/utils.d.ts +27 -0
- package/dist/types-ts4.5/plugins/undo-redo/attach-input-meta.d.ts +5 -0
- package/dist/types-ts4.5/plugins/undo-redo/commands.d.ts +4 -0
- package/dist/types-ts4.5/plugins/undo-redo/enums.d.ts +4 -0
- package/dist/types-ts4.5/plugins/undo-redo/index.d.ts +3 -0
- package/dist/types-ts4.5/plugins/undo-redo/pm-plugins/keymaps.d.ts +2 -0
- package/dist/types-ts4.5/plugins/undo-redo/pm-plugins/main.d.ts +2 -0
- package/dist/types-ts4.5/plugins/undo-redo/pm-plugins/plugin-key.d.ts +2 -0
- package/dist/types-ts4.5/plugins/undo-redo/types.d.ts +7 -0
- package/dist/types-ts4.5/plugins/undo-redo/ui/ToolbarUndoRedo/index.d.ts +24 -0
- package/dist/types-ts4.5/plugins/view-update-subscription/index.d.ts +19 -0
- package/dist/types-ts4.5/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.d.ts +12 -0
- package/dist/types-ts4.5/plugins/view-update-subscription/subscribe/type-ahead-updates.d.ts +9 -0
- package/dist/types-ts4.5/preset-default.d.ts +1 -0
- package/dist/types-ts4.5/preset-universal.d.ts +1 -0
- package/dist/types-ts4.5/presets/context.d.ts +15 -0
- package/dist/types-ts4.5/stories/examples.d.ts +9 -0
- package/dist/types-ts4.5/test-utils.d.ts +40 -0
- package/dist/types-ts4.5/types/browser.d.ts +1 -0
- package/dist/types-ts4.5/types/command.d.ts +5 -0
- package/dist/types-ts4.5/types/dom-at-pos.d.ts +4 -0
- package/dist/types-ts4.5/types/editor-appearance-component.d.ts +50 -0
- package/dist/types-ts4.5/types/editor-appearance.d.ts +1 -0
- package/dist/types-ts4.5/types/editor-config.d.ts +25 -0
- package/dist/types-ts4.5/types/editor-instance.d.ts +19 -0
- package/dist/types-ts4.5/types/editor-onchange.d.ts +4 -0
- package/dist/types-ts4.5/types/editor-plugin.d.ts +1 -0
- package/dist/types-ts4.5/types/editor-props.d.ts +262 -0
- package/dist/types-ts4.5/types/editor-react-context.d.ts +1 -0
- package/dist/types-ts4.5/types/empty-state-handler.d.ts +1 -0
- package/dist/types-ts4.5/types/extension-config.d.ts +5 -0
- package/dist/types-ts4.5/types/feature-flags.d.ts +1 -0
- package/dist/types-ts4.5/types/i18n.d.ts +5 -0
- package/dist/types-ts4.5/types/index.d.ts +18 -0
- package/dist/types-ts4.5/types/performance-tracking.d.ts +1 -0
- package/dist/types-ts4.5/types/pm-config.d.ts +1 -0
- package/dist/types-ts4.5/types/pm-plugin-list.d.ts +9 -0
- package/dist/types-ts4.5/types/pm-plugin.d.ts +1 -0
- package/dist/types-ts4.5/types/ui-components.d.ts +1 -0
- package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/index.d.ts +10 -0
- package/dist/types-ts4.5/ui/Addon/ClickAreaInline/index.d.ts +8 -0
- package/dist/types-ts4.5/ui/Addon/ClickAreaMobile/index.d.ts +31 -0
- package/dist/types-ts4.5/ui/Addon/Dropdown/index.d.ts +14 -0
- package/dist/types-ts4.5/ui/Addon/Dropdown/styles.d.ts +1 -0
- package/dist/types-ts4.5/ui/Addon/DropdownItem/index.d.ts +5 -0
- package/dist/types-ts4.5/ui/Addon/DropdownItem/styles.d.ts +1 -0
- package/dist/types-ts4.5/ui/Addon/click-area-helper.d.ts +13 -0
- package/dist/types-ts4.5/ui/Addon/index.d.ts +6 -0
- package/dist/types-ts4.5/ui/Addon/types.d.ts +17 -0
- package/dist/types-ts4.5/ui/Alignment/AlignmentButton/index.d.ts +17 -0
- package/dist/types-ts4.5/ui/Alignment/index.d.ts +12 -0
- package/dist/types-ts4.5/ui/Alignment/styles.d.ts +1 -0
- package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +11 -0
- package/dist/types-ts4.5/ui/Appearance/Comment/Comment.d.ts +7 -0
- package/dist/types-ts4.5/ui/Appearance/Comment/Toolbar.d.ts +9 -0
- package/dist/types-ts4.5/ui/Appearance/Comment/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage.d.ts +3 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +39 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +38 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbar.d.ts +7 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +19 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/Appearance/Mobile.d.ts +3 -0
- package/dist/types-ts4.5/ui/AppearanceComponents/Mobile.d.ts +14 -0
- package/dist/types-ts4.5/ui/ChromeCollapsed/index.d.ts +11 -0
- package/dist/types-ts4.5/ui/ChromeCollapsed/messages.d.ts +7 -0
- package/dist/types-ts4.5/ui/ChromeCollapsed/styles.d.ts +1 -0
- package/dist/types-ts4.5/ui/CollapsedEditor/index.d.ts +19 -0
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/cellBackgroundColorPalette.d.ts +2 -0
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/common.d.ts +1 -0
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/paletteMessages.d.ts +2 -0
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/panelBackgroundPalette.d.ts +1 -0
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/statusColorPalette.d.ts +1 -0
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/textColorPalette.d.ts +1 -0
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/type.d.ts +1 -0
- package/dist/types-ts4.5/ui/ColorPalette/index.d.ts +3 -0
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanel.d.ts +22 -0
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanelFieldsLoader.d.ts +20 -0
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanelLoader.d.ts +5 -0
- package/dist/types-ts4.5/ui/ConfigPanel/ErrorMessage/ErrorImage.d.ts +4 -0
- package/dist/types-ts4.5/ui/ConfigPanel/ErrorMessage/index.d.ts +10 -0
- package/dist/types-ts4.5/ui/ConfigPanel/FieldMessages.d.ts +12 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Boolean.d.ts +8 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/CheckboxGroup.d.ts +8 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/ColorPicker.d.ts +21 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/CustomSelect.d.ts +24 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Date.d.ts +20 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/DateRange.d.ts +20 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Enum.d.ts +10 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Expand.d.ts +18 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Fieldset.d.ts +20 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Number.d.ts +10 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/RadioGroup.d.ts +8 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Select.d.ts +11 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/SelectItem.d.ts +5 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/String.d.ts +10 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/TabGroup.d.ts +15 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/UnhandledType.d.ts +6 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/UserSelect.d.ts +10 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/common/RequiredIndicator.d.ts +1 -0
- package/dist/types-ts4.5/ui/ConfigPanel/FormContent.d.ts +4 -0
- package/dist/types-ts4.5/ui/ConfigPanel/FormErrorBoundary.d.ts +16 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Header.d.ts +21 -0
- package/dist/types-ts4.5/ui/ConfigPanel/LoadingState.d.ts +4 -0
- package/dist/types-ts4.5/ui/ConfigPanel/NestedForms/RemovableField.d.ts +19 -0
- package/dist/types-ts4.5/ui/ConfigPanel/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/ConfigPanel/messages.d.ts +87 -0
- package/dist/types-ts4.5/ui/ConfigPanel/transformers.d.ts +9 -0
- package/dist/types-ts4.5/ui/ConfigPanel/types.d.ts +40 -0
- package/dist/types-ts4.5/ui/ConfigPanel/utils.d.ts +13 -0
- package/dist/types-ts4.5/ui/ContentStyles/date.d.ts +1 -0
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +14 -0
- package/dist/types-ts4.5/ui/ContentStyles/media.d.ts +1 -0
- package/dist/types-ts4.5/ui/ContextPanel/index.d.ts +41 -0
- package/dist/types-ts4.5/ui/EditorContext/index.d.ts +18 -0
- package/dist/types-ts4.5/ui/ElementBrowser/InsertMenu.d.ts +4 -0
- package/dist/types-ts4.5/ui/ElementBrowser/types.d.ts +22 -0
- package/dist/types-ts4.5/ui/ErrorBoundary/index.d.ts +26 -0
- package/dist/types-ts4.5/ui/FloatingToolbar/index.d.ts +28 -0
- package/dist/types-ts4.5/ui/FloatingToolbar/styles.d.ts +1 -0
- package/dist/types-ts4.5/ui/FloatingToolbar/utils.d.ts +13 -0
- package/dist/types-ts4.5/ui/MediaAndEmbedsToolbar/toolbar-messages.d.ts +12 -0
- package/dist/types-ts4.5/ui/PluginSlot/index.d.ts +39 -0
- package/dist/types-ts4.5/ui/PluginSlot/mount-plugin-hooks.d.ts +10 -0
- package/dist/types-ts4.5/ui/Toolbar/Toolbar.d.ts +3 -0
- package/dist/types-ts4.5/ui/Toolbar/ToolbarInner.d.ts +8 -0
- package/dist/types-ts4.5/ui/Toolbar/ToolbarWithSizeDetector.d.ts +4 -0
- package/dist/types-ts4.5/ui/Toolbar/hooks.d.ts +4 -0
- package/dist/types-ts4.5/ui/Toolbar/index.d.ts +4 -0
- package/dist/types-ts4.5/ui/Toolbar/toolbar-size.d.ts +4 -0
- package/dist/types-ts4.5/ui/Toolbar/toolbar-types.d.ts +34 -0
- package/dist/types-ts4.5/ui/Toolbar/types.d.ts +2 -0
- package/dist/types-ts4.5/ui/ToolbarButton/index.d.ts +4 -0
- package/dist/types-ts4.5/ui/ToolbarFeedback/index.d.ts +27 -0
- package/dist/types-ts4.5/ui/ToolbarFeedback/styles.d.ts +6 -0
- package/dist/types-ts4.5/ui/ToolbarHelp/index.d.ts +11 -0
- package/dist/types-ts4.5/ui/ToolbarHelp/messages.d.ts +7 -0
- package/dist/types-ts4.5/ui/WithEditorActions/index.d.ts +18 -0
- package/dist/types-ts4.5/ui/WithFlash/index.d.ts +11 -0
- package/dist/types-ts4.5/ui/WithHelpTrigger/index.d.ts +13 -0
- package/dist/types-ts4.5/ui/WithPluginState/index.d.ts +3 -0
- package/dist/types-ts4.5/ui/styles.d.ts +2 -0
- package/dist/types-ts4.5/ui/with-outer-listeners.d.ts +2 -0
- package/dist/types-ts4.5/use-preset.d.ts +46 -0
- package/dist/types-ts4.5/utils/action.d.ts +9 -0
- package/dist/types-ts4.5/utils/array.d.ts +1 -0
- package/dist/types-ts4.5/utils/clipboard.d.ts +1 -0
- package/dist/types-ts4.5/utils/commands.d.ts +14 -0
- package/dist/types-ts4.5/utils/deprecation-warnings.d.ts +8 -0
- package/dist/types-ts4.5/utils/document-logger.d.ts +6 -0
- package/dist/types-ts4.5/utils/document.d.ts +27 -0
- package/dist/types-ts4.5/utils/dom.d.ts +2 -0
- package/dist/types-ts4.5/utils/editorDeprecationWarnings.d.ts +2 -0
- package/dist/types-ts4.5/utils/extensions.d.ts +6 -0
- package/dist/types-ts4.5/utils/getAttrsWithChangesRecorder.d.ts +23 -0
- package/dist/types-ts4.5/utils/index.d.ts +65 -0
- package/dist/types-ts4.5/utils/is-full-page.d.ts +2 -0
- package/dist/types-ts4.5/utils/is-text-input.d.ts +2 -0
- package/dist/types-ts4.5/utils/node-width.d.ts +7 -0
- package/dist/types-ts4.5/utils/nodes-by-localIds.d.ts +8 -0
- package/dist/types-ts4.5/utils/nodes.d.ts +1 -0
- package/dist/types-ts4.5/utils/performance/components/RenderTracking.d.ts +13 -0
- package/dist/types-ts4.5/utils/performance/instrumented-plugin.d.ts +16 -0
- package/dist/types-ts4.5/utils/performance/measure-enum.d.ts +8 -0
- package/dist/types-ts4.5/utils/performance/outlier.d.ts +1 -0
- package/dist/types-ts4.5/utils/performance/percentile.d.ts +1 -0
- package/dist/types-ts4.5/utils/performance/plugin-performance-observer.d.ts +22 -0
- package/dist/types-ts4.5/utils/performance/plugin-performance-report.d.ts +48 -0
- package/dist/types-ts4.5/utils/performance/safer-transactions.d.ts +9 -0
- package/dist/types-ts4.5/utils/performance/simple-measure-to-entries.d.ts +28 -0
- package/dist/types-ts4.5/utils/performance/track-transactions.d.ts +30 -0
- package/dist/types-ts4.5/utils/pick-by.d.ts +2 -0
- package/dist/types-ts4.5/utils/plugin-state-factory.d.ts +2 -0
- package/dist/types-ts4.5/utils/prepare-extension-provider.d.ts +5 -0
- package/dist/types-ts4.5/utils/prepare-quick-insert-provider.d.ts +16 -0
- package/dist/types-ts4.5/utils/react-hooks/use-abortable-effect/index.d.ts +16 -0
- package/dist/types-ts4.5/utils/react-hooks/use-state-from-promise/index.d.ts +18 -0
- package/dist/types-ts4.5/utils/selection.d.ts +5 -0
- package/dist/types-ts4.5/utils/slice.d.ts +2 -0
- package/dist/types-ts4.5/utils/step.d.ts +1 -0
- package/dist/types-ts4.5/version-wrapper.d.ts +3 -0
- package/package.json +4 -4
- package/tmp/api-report-tmp.d.ts +791 -0
- package/dist/cjs/plugins/status/nodeviews/messages.js +0 -24
- package/dist/es2019/plugins/status/nodeviews/messages.js +0 -18
- package/dist/esm/plugins/status/nodeviews/messages.js +0 -18
- /package/dist/cjs/{plugins/status/styles.js → ui/ContentStyles/status.js} +0 -0
- /package/dist/es2019/{plugins/status/styles.js → ui/ContentStyles/status.js} +0 -0
- /package/dist/esm/{plugins/status/styles.js → ui/ContentStyles/status.js} +0 -0
- /package/dist/{types/plugins/status/styles.d.ts → types-ts4.5/ui/ContentStyles/status.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 188.7.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#41452](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41452) [`53c21a4394a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/53c21a4394a) - Decouple status plugin from editor-core.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 188.7.3
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#41387](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41387) [`5b2cd469875`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5b2cd469875) - Fix scrolling to top of page on status selection.
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 188.7.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/dist/cjs/messages.js
CHANGED
|
@@ -26,12 +26,11 @@ Object.defineProperty(exports, "linkToolbarMessages", {
|
|
|
26
26
|
Object.defineProperty(exports, "statusMessages", {
|
|
27
27
|
enumerable: true,
|
|
28
28
|
get: function get() {
|
|
29
|
-
return
|
|
29
|
+
return _messages.statusMessages;
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
var _messages = _interopRequireWildcard(require("@atlaskit/editor-common/messages"));
|
|
33
33
|
var _messages2 = require("./plugins/date/nodeviews/messages");
|
|
34
|
-
var _messages3 = require("./plugins/status/nodeviews/messages");
|
|
35
34
|
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); }
|
|
36
35
|
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; }
|
|
37
36
|
// Common Translations will live here
|
|
@@ -10,7 +10,7 @@ var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
|
10
10
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
11
11
|
var _withPluginState = require("@atlaskit/editor-common/with-plugin-state");
|
|
12
12
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
13
|
-
var _messages = require("
|
|
13
|
+
var _messages = require("@atlaskit/editor-common/messages");
|
|
14
14
|
var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
15
15
|
var _actions = require("./actions");
|
|
16
16
|
var _keymap = require("./keymap");
|
|
@@ -106,8 +106,8 @@ var decorateWithPluginOptions = function decorateWithPluginOptions(plugin, optio
|
|
|
106
106
|
var formatMessage = _ref4.formatMessage;
|
|
107
107
|
return [{
|
|
108
108
|
id: 'status',
|
|
109
|
-
title: formatMessage(_messages.
|
|
110
|
-
description: formatMessage(_messages.
|
|
109
|
+
title: formatMessage(_messages.toolbarInsertBlockMessages.status),
|
|
110
|
+
description: formatMessage(_messages.toolbarInsertBlockMessages.statusDescription),
|
|
111
111
|
priority: 700,
|
|
112
112
|
keywords: ['lozenge'],
|
|
113
113
|
icon: function icon() {
|
|
@@ -10,7 +10,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _reactIntlNext = require("react-intl-next");
|
|
12
12
|
var _element = require("@atlaskit/status/element");
|
|
13
|
-
var _messages = require("
|
|
13
|
+
var _messages = require("@atlaskit/editor-common/messages");
|
|
14
14
|
var _templateObject, _templateObject2;
|
|
15
15
|
/** @jsx jsx */
|
|
16
16
|
var styledStatus = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n opacity: 1;\n"])));
|
|
@@ -21,7 +21,7 @@ var StatusContainerView = function StatusContainerView(props) {
|
|
|
21
21
|
localId = props.localId,
|
|
22
22
|
style = props.style,
|
|
23
23
|
formatMessage = props.intl.formatMessage;
|
|
24
|
-
var statusText = text ? text : formatMessage(_messages.
|
|
24
|
+
var statusText = text ? text : formatMessage(_messages.statusMessages.placeholder);
|
|
25
25
|
var handleClick = function handleClick(event) {
|
|
26
26
|
if (event.nativeEvent.stopImmediatePropagation) {
|
|
27
27
|
event.nativeEvent.stopImmediatePropagation();
|
|
@@ -30,7 +30,8 @@ var StatusContainerView = function StatusContainerView(props) {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
return (0, _react2.jsx)("span", {
|
|
33
|
-
css: text ? styledStatus : styledStatusPlaceholder
|
|
33
|
+
css: text ? styledStatus : styledStatusPlaceholder,
|
|
34
|
+
"data-testid": "statusContainerView"
|
|
34
35
|
}, (0, _react2.jsx)(_element.Status, {
|
|
35
36
|
text: statusText,
|
|
36
37
|
color: color,
|
|
@@ -224,17 +224,22 @@ var StatusPickerWithoutAnalytcs = exports.StatusPickerWithoutAnalytcs = /*#__PUR
|
|
|
224
224
|
}, {
|
|
225
225
|
key: "componentDidMount",
|
|
226
226
|
value: function componentDidMount() {
|
|
227
|
+
var _this2 = this;
|
|
227
228
|
this.reset();
|
|
228
229
|
this.fireStatusPopupOpenedAnalytics(this.state);
|
|
229
230
|
if (typeof this.props.isNew === 'boolean' && this.props.isNew === false) {
|
|
230
|
-
var _this$popupBodyWrappe2;
|
|
231
231
|
// Wrapper should be focused only if status already exists otherwise input field will receive focus
|
|
232
|
-
|
|
232
|
+
this.focusTimeout = requestAnimationFrame(function () {
|
|
233
|
+
var _this2$popupBodyWrapp;
|
|
234
|
+
// Defer to prevent editor scrolling to top. See https://product-fabric.atlassian.net/browse/DTR-1952
|
|
235
|
+
(_this2$popupBodyWrapp = _this2.popupBodyWrapper) === null || _this2$popupBodyWrapp === void 0 || (_this2$popupBodyWrapp = _this2$popupBodyWrapp.current) === null || _this2$popupBodyWrapp === void 0 || _this2$popupBodyWrapp.focus();
|
|
236
|
+
});
|
|
233
237
|
}
|
|
234
238
|
}
|
|
235
239
|
}, {
|
|
236
240
|
key: "componentWillUnmount",
|
|
237
241
|
value: function componentWillUnmount() {
|
|
242
|
+
this.focusTimeout && cancelAnimationFrame(this.focusTimeout);
|
|
238
243
|
this.fireStatusPopupClosedAnalytics(this.state);
|
|
239
244
|
this.startTime = 0;
|
|
240
245
|
}
|
|
@@ -25,7 +25,7 @@ var _styles9 = require("../../plugins/extension/ui/styles");
|
|
|
25
25
|
var _styles10 = require("../../plugins/expand/ui/styles");
|
|
26
26
|
var _styles11 = require("../../plugins/find-replace/styles");
|
|
27
27
|
var _styles12 = require("../../plugins/tasks-and-decisions/styles");
|
|
28
|
-
var
|
|
28
|
+
var _status = require("./status");
|
|
29
29
|
var _date = require("./date");
|
|
30
30
|
var _getInlineNodeViewProducer = require("../../nodeviews/getInlineNodeViewProducer.styles");
|
|
31
31
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
@@ -47,7 +47,7 @@ var placeholderStyles = exports.placeholderStyles = (0, _react2.css)(_templateOb
|
|
|
47
47
|
var contentStyles = function contentStyles(props) {
|
|
48
48
|
return (0, _react2.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n outline: none;\n font-size: ", "px;\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n }\n\n .ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n pointer-events: none;\n opacity: 0.7;\n }\n\n .ProseMirror-hideselection *::selection {\n background: transparent;\n }\n\n .ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n }\n\n .ProseMirror-selectednode {\n outline: none;\n }\n\n .ProseMirror-selectednode:empty {\n outline: 2px solid ", ";\n }\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n box-sizing: border-box;\n }\n\n .mediaGroupView-content-wrap ul {\n padding: 0;\n }\n\n /** Needed to override any cleared floats, e.g. image wrapping */\n\n div.fabric-editor-block-mark[class^='fabric-editor-align'] {\n clear: none !important;\n }\n\n .fabric-editor-align-end {\n text-align: right;\n }\n\n .fabric-editor-align-start {\n text-align: left;\n }\n\n .fabric-editor-align-center {\n text-align: center;\n }\n\n .pm-table-header-content-wrap :not(.fabric-editor-alignment),\n .pm-table-header-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark,\n .pm-table-cell-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark {\n p:first-of-type {\n margin-top: 0;\n }\n }\n\n .hyperlink-floating-toolbar,\n .", " {\n padding: 0;\n }\n\n /* Link icon in the Atlaskit package\n is bigger than the others\n */\n .hyperlink-open-link {\n svg {\n max-width: 18px;\n }\n &[href] {\n padding: 0 4px;\n }\n }\n"])), (0, _editorSharedStyles.editorFontSize)({
|
|
49
49
|
theme: props.theme
|
|
50
|
-
}), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", _styles8.placeholderTextStyles, placeholderStyles, (0, _styles4.codeBlockStyles)(props), (0, _styles3.blocktypeStyles)(props), (0, _styles.codeMarkSharedStyles)(props), _styles.textColorStyles, listsStyles, ruleStyles(props), _media.mediaStyles, (0, _styles5.layoutStyles)(props), _styles2.telepointerStyle, _selection.gapCursorStyles, (0, _commonStyles.tableStyles)(props), (0, _styles6.panelStyles)(props), _styles7.fakeCursorStyles, mentionsStyles, emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _styles9.extensionStyles, (0, _styles10.expandStyles)(props), _styles11.findReplaceStyles, _styles12.taskDecisionStyles,
|
|
50
|
+
}), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", _styles8.placeholderTextStyles, placeholderStyles, (0, _styles4.codeBlockStyles)(props), (0, _styles3.blocktypeStyles)(props), (0, _styles.codeMarkSharedStyles)(props), _styles.textColorStyles, listsStyles, ruleStyles(props), _media.mediaStyles, (0, _styles5.layoutStyles)(props), _styles2.telepointerStyle, _selection.gapCursorStyles, (0, _commonStyles.tableStyles)(props), (0, _styles6.panelStyles)(props), _styles7.fakeCursorStyles, mentionsStyles, emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _styles9.extensionStyles, (0, _styles10.expandStyles)(props), _styles11.findReplaceStyles, _styles12.taskDecisionStyles, _status.statusStyles, (0, _styles.annotationSharedStyles)(props), _styles.smartCardStyles, _styles.smartCardSharedStyles, _date.dateStyles, _styles.embedCardStyles, _styles.unsupportedStyles, _styles.resizerStyles, _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT);
|
|
51
51
|
};
|
|
52
52
|
var createEditorContentStyle = exports.createEditorContentStyle = function createEditorContentStyle(styles) {
|
|
53
53
|
return /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.version = exports.nextMajorVersion = exports.name = void 0;
|
|
7
7
|
var name = exports.name = "@atlaskit/editor-core";
|
|
8
|
-
var version = exports.version = "188.7.
|
|
8
|
+
var version = exports.version = "188.7.5";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
package/dist/es2019/messages.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Common Translations will live here
|
|
2
|
-
import commonMessages, { linkMessages, linkToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
2
|
+
import commonMessages, { linkMessages, linkToolbarMessages, statusMessages } from '@atlaskit/editor-common/messages';
|
|
3
3
|
import { messages as dateMessages } from './plugins/date/nodeviews/messages';
|
|
4
|
-
import { messages as statusMessages } from './plugins/status/nodeviews/messages';
|
|
5
4
|
export { linkMessages };
|
|
6
5
|
export { statusMessages };
|
|
7
6
|
export { dateMessages };
|
|
@@ -3,7 +3,7 @@ import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
|
3
3
|
import { status } from '@atlaskit/adf-schema';
|
|
4
4
|
import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
|
|
5
5
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
|
-
import { messages } from '
|
|
6
|
+
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
7
7
|
import { IconStatus } from '@atlaskit/editor-common/quick-insert';
|
|
8
8
|
import { updateStatusWithAnalytics, commitStatusPicker, createStatus, updateStatus } from './actions';
|
|
9
9
|
import { keymapPlugin } from './keymap';
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { injectIntl } from 'react-intl-next';
|
|
5
5
|
import { Status } from '@atlaskit/status/element';
|
|
6
|
-
import { messages } from '
|
|
6
|
+
import { statusMessages as messages } from '@atlaskit/editor-common/messages';
|
|
7
7
|
const styledStatus = css`
|
|
8
8
|
opacity: 1;
|
|
9
9
|
`;
|
|
@@ -29,7 +29,8 @@ const StatusContainerView = props => {
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
return jsx("span", {
|
|
32
|
-
css: text ? styledStatus : styledStatusPlaceholder
|
|
32
|
+
css: text ? styledStatus : styledStatusPlaceholder,
|
|
33
|
+
"data-testid": "statusContainerView"
|
|
33
34
|
}, jsx(Status, {
|
|
34
35
|
text: statusText,
|
|
35
36
|
color: color,
|
|
@@ -213,12 +213,16 @@ export class StatusPickerWithoutAnalytcs extends React.Component {
|
|
|
213
213
|
this.reset();
|
|
214
214
|
this.fireStatusPopupOpenedAnalytics(this.state);
|
|
215
215
|
if (typeof this.props.isNew === 'boolean' && this.props.isNew === false) {
|
|
216
|
-
var _this$popupBodyWrappe3, _this$popupBodyWrappe4;
|
|
217
216
|
// Wrapper should be focused only if status already exists otherwise input field will receive focus
|
|
218
|
-
|
|
217
|
+
this.focusTimeout = requestAnimationFrame(() => {
|
|
218
|
+
var _this$popupBodyWrappe3, _this$popupBodyWrappe4;
|
|
219
|
+
// Defer to prevent editor scrolling to top. See https://product-fabric.atlassian.net/browse/DTR-1952
|
|
220
|
+
(_this$popupBodyWrappe3 = this.popupBodyWrapper) === null || _this$popupBodyWrappe3 === void 0 ? void 0 : (_this$popupBodyWrappe4 = _this$popupBodyWrappe3.current) === null || _this$popupBodyWrappe4 === void 0 ? void 0 : _this$popupBodyWrappe4.focus();
|
|
221
|
+
});
|
|
219
222
|
}
|
|
220
223
|
}
|
|
221
224
|
componentWillUnmount() {
|
|
225
|
+
this.focusTimeout && cancelAnimationFrame(this.focusTimeout);
|
|
222
226
|
this.fireStatusPopupClosedAnalytics(this.state);
|
|
223
227
|
this.startTime = 0;
|
|
224
228
|
}
|
|
@@ -18,7 +18,7 @@ import { expandStyles } from '../../plugins/expand/ui/styles';
|
|
|
18
18
|
import { MediaSharedClassNames } from '@atlaskit/editor-common/styles';
|
|
19
19
|
import { findReplaceStyles } from '../../plugins/find-replace/styles';
|
|
20
20
|
import { taskDecisionStyles } from '../../plugins/tasks-and-decisions/styles';
|
|
21
|
-
import { statusStyles } from '
|
|
21
|
+
import { statusStyles } from './status';
|
|
22
22
|
import { dateStyles } from './date';
|
|
23
23
|
import { InlineNodeViewSharedStyles } from '../../nodeviews/getInlineNodeViewProducer.styles';
|
|
24
24
|
import { linkSharedStyle, codeMarkSharedStyles, ruleSharedStyles } from '@atlaskit/editor-common/styles';
|
package/dist/esm/messages.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Common Translations will live here
|
|
2
|
-
import commonMessages, { linkMessages, linkToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
2
|
+
import commonMessages, { linkMessages, linkToolbarMessages, statusMessages } from '@atlaskit/editor-common/messages';
|
|
3
3
|
import { messages as dateMessages } from './plugins/date/nodeviews/messages';
|
|
4
|
-
import { messages as statusMessages } from './plugins/status/nodeviews/messages';
|
|
5
4
|
export { linkMessages };
|
|
6
5
|
export { statusMessages };
|
|
7
6
|
export { dateMessages };
|
|
@@ -3,7 +3,7 @@ import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
|
3
3
|
import { status } from '@atlaskit/adf-schema';
|
|
4
4
|
import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
|
|
5
5
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
|
-
import { messages } from '
|
|
6
|
+
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
7
7
|
import { IconStatus } from '@atlaskit/editor-common/quick-insert';
|
|
8
8
|
import { updateStatusWithAnalytics, commitStatusPicker, createStatus, updateStatus } from './actions';
|
|
9
9
|
import { keymapPlugin } from './keymap';
|
|
@@ -5,7 +5,7 @@ import React from 'react';
|
|
|
5
5
|
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import { injectIntl } from 'react-intl-next';
|
|
7
7
|
import { Status } from '@atlaskit/status/element';
|
|
8
|
-
import { messages } from '
|
|
8
|
+
import { statusMessages as messages } from '@atlaskit/editor-common/messages';
|
|
9
9
|
var styledStatus = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n opacity: 1;\n"])));
|
|
10
10
|
var styledStatusPlaceholder = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n opacity: 0.5;\n"])));
|
|
11
11
|
var StatusContainerView = function StatusContainerView(props) {
|
|
@@ -23,7 +23,8 @@ var StatusContainerView = function StatusContainerView(props) {
|
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
return jsx("span", {
|
|
26
|
-
css: text ? styledStatus : styledStatusPlaceholder
|
|
26
|
+
css: text ? styledStatus : styledStatusPlaceholder,
|
|
27
|
+
"data-testid": "statusContainerView"
|
|
27
28
|
}, jsx(Status, {
|
|
28
29
|
text: statusText,
|
|
29
30
|
color: color,
|
|
@@ -218,17 +218,22 @@ export var StatusPickerWithoutAnalytcs = /*#__PURE__*/function (_React$Component
|
|
|
218
218
|
}, {
|
|
219
219
|
key: "componentDidMount",
|
|
220
220
|
value: function componentDidMount() {
|
|
221
|
+
var _this2 = this;
|
|
221
222
|
this.reset();
|
|
222
223
|
this.fireStatusPopupOpenedAnalytics(this.state);
|
|
223
224
|
if (typeof this.props.isNew === 'boolean' && this.props.isNew === false) {
|
|
224
|
-
var _this$popupBodyWrappe2;
|
|
225
225
|
// Wrapper should be focused only if status already exists otherwise input field will receive focus
|
|
226
|
-
|
|
226
|
+
this.focusTimeout = requestAnimationFrame(function () {
|
|
227
|
+
var _this2$popupBodyWrapp;
|
|
228
|
+
// Defer to prevent editor scrolling to top. See https://product-fabric.atlassian.net/browse/DTR-1952
|
|
229
|
+
(_this2$popupBodyWrapp = _this2.popupBodyWrapper) === null || _this2$popupBodyWrapp === void 0 || (_this2$popupBodyWrapp = _this2$popupBodyWrapp.current) === null || _this2$popupBodyWrapp === void 0 || _this2$popupBodyWrapp.focus();
|
|
230
|
+
});
|
|
227
231
|
}
|
|
228
232
|
}
|
|
229
233
|
}, {
|
|
230
234
|
key: "componentWillUnmount",
|
|
231
235
|
value: function componentWillUnmount() {
|
|
236
|
+
this.focusTimeout && cancelAnimationFrame(this.focusTimeout);
|
|
232
237
|
this.fireStatusPopupClosedAnalytics(this.state);
|
|
233
238
|
this.startTime = 0;
|
|
234
239
|
}
|
|
@@ -20,7 +20,7 @@ import { expandStyles } from '../../plugins/expand/ui/styles';
|
|
|
20
20
|
import { MediaSharedClassNames } from '@atlaskit/editor-common/styles';
|
|
21
21
|
import { findReplaceStyles } from '../../plugins/find-replace/styles';
|
|
22
22
|
import { taskDecisionStyles } from '../../plugins/tasks-and-decisions/styles';
|
|
23
|
-
import { statusStyles } from '
|
|
23
|
+
import { statusStyles } from './status';
|
|
24
24
|
import { dateStyles } from './date';
|
|
25
25
|
import { InlineNodeViewSharedStyles } from '../../nodeviews/getInlineNodeViewProducer.styles';
|
|
26
26
|
import { linkSharedStyle, codeMarkSharedStyles, ruleSharedStyles } from '@atlaskit/editor-common/styles';
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import commonMessages, { linkMessages, linkToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
1
|
+
import commonMessages, { linkMessages, linkToolbarMessages, statusMessages } from '@atlaskit/editor-common/messages';
|
|
2
2
|
import { messages as dateMessages } from './plugins/date/nodeviews/messages';
|
|
3
|
-
import { messages as statusMessages } from './plugins/status/nodeviews/messages';
|
|
4
3
|
export { linkMessages };
|
|
5
4
|
export { statusMessages };
|
|
6
5
|
export { dateMessages };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnalyticsEventPayload, CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
1
|
+
import type { AnalyticsEventPayload, CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
export declare const FABRIC_CHANNEL = "fabric-elements";
|
|
3
3
|
export declare const createStatusAnalyticsAndFire: (createAnalyticsEvent?: CreateUIAnalyticsEvent) => (payload: AnalyticsEventPayload) => void;
|
|
4
4
|
export declare const analyticsState: (isNew: boolean | undefined) => "update" | "new";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
3
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
5
|
import type { IntlShape } from 'react-intl-next';
|
|
5
6
|
import type { Color, StatusStyle } from '@atlaskit/status/element';
|
|
@@ -21,4 +22,4 @@ export declare const IntlStatusContainerView: React.FC<import("react-intl-next")
|
|
|
21
22
|
export type Props = InlineNodeViewComponentProps & {
|
|
22
23
|
options: StatusPluginOptions | undefined;
|
|
23
24
|
};
|
|
24
|
-
export declare const StatusNodeView:
|
|
25
|
+
export declare const StatusNodeView: (props: Props) => jsx.JSX.Element;
|
|
@@ -38,6 +38,7 @@ export declare class StatusPickerWithoutAnalytcs extends React.Component<Props,
|
|
|
38
38
|
private inputMethod?;
|
|
39
39
|
private createStatusAnalyticsAndFireFunc;
|
|
40
40
|
private popupBodyWrapper;
|
|
41
|
+
private focusTimeout;
|
|
41
42
|
constructor(props: Props);
|
|
42
43
|
private fireStatusPopupOpenedAnalytics;
|
|
43
44
|
private fireStatusPopupClosedAnalytics;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const statusStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
+
import type { AnalyticsEventPayload } from '@atlaskit/analytics-next/AnalyticsEvent';
|
|
4
|
+
import type { ResolvedEditorState } from '@atlaskit/editor-common/collab';
|
|
5
|
+
import type { ContextUpdateHandler, EditorActionsOptions, ReplaceRawValue, FeatureFlags, Transformer } from '@atlaskit/editor-common/types';
|
|
6
|
+
import type { EventDispatcher } from '../event-dispatcher';
|
|
7
|
+
export default class EditorActions<T = any> implements EditorActionsOptions<T> {
|
|
8
|
+
private editorView?;
|
|
9
|
+
private contentTransformer?;
|
|
10
|
+
private contentEncode?;
|
|
11
|
+
private eventDispatcher?;
|
|
12
|
+
private listeners;
|
|
13
|
+
static from<T>(view: EditorView, eventDispatcher: EventDispatcher, transformer?: Transformer<T>): EditorActions<T>;
|
|
14
|
+
_privateGetEditorView(): EditorView | undefined;
|
|
15
|
+
_privateGetEventDispatcher(): EventDispatcher | undefined;
|
|
16
|
+
private getFeatureFlags;
|
|
17
|
+
_privateRegisterEditor(editorView: EditorView, eventDispatcher: EventDispatcher, contentTransformer?: Transformer<T>, getFeatureFlags?: () => FeatureFlags): void;
|
|
18
|
+
_privateUnregisterEditor(): void;
|
|
19
|
+
_privateSubscribe(cb: ContextUpdateHandler): void;
|
|
20
|
+
_privateUnsubscribe(cb: ContextUpdateHandler): void;
|
|
21
|
+
focus(): boolean;
|
|
22
|
+
blur(): boolean;
|
|
23
|
+
clear(): boolean;
|
|
24
|
+
__temporaryFixForConfigPanel(): Promise<void>;
|
|
25
|
+
getValue(): Promise<T | import("@atlaskit/editor-json-transformer/types").JSONDocNode | undefined>;
|
|
26
|
+
getNodeByLocalId(id: string): Node | undefined;
|
|
27
|
+
getNodeByFragmentLocalId(id: string): Node | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* This method will return the currently selected `Node` if the selection is a `Node`.
|
|
30
|
+
* Otherwise, if the selection is textual or a non-selectable `Node` within another selectable `Node`, the closest selectable parent `Node` will be returned.
|
|
31
|
+
*/
|
|
32
|
+
getSelectedNode(): Node | undefined;
|
|
33
|
+
isDocumentEmpty(): boolean;
|
|
34
|
+
replaceDocument(rawValue: any, shouldScrollToBottom?: boolean,
|
|
35
|
+
/** @deprecated [ED-14158] shouldAddToHistory is not being used in this function */
|
|
36
|
+
shouldAddToHistory?: boolean): boolean;
|
|
37
|
+
replaceSelection(rawValue: ReplaceRawValue | Array<ReplaceRawValue>, tryToReplace?: boolean): boolean;
|
|
38
|
+
appendText(text: string): boolean;
|
|
39
|
+
dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void;
|
|
40
|
+
/**
|
|
41
|
+
* If editor is using new collab service,
|
|
42
|
+
* we want editor to call the collab provider to
|
|
43
|
+
* retrieve the final acknowledged state of the
|
|
44
|
+
* editor. The final acknowledged editor state
|
|
45
|
+
* refers to the latest state of editor with confirmed
|
|
46
|
+
* steps.
|
|
47
|
+
*/
|
|
48
|
+
getResolvedEditorState: () => Promise<ResolvedEditorState | undefined>;
|
|
49
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { addParagraphAtEnd, createParagraphAtEnd, changeImageAlignment, createToggleBlockMarkOnRange, toggleBlockMark, clearEditorContent, } from '@atlaskit/editor-common/commands';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
|
+
import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
6
|
+
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
+
import type { AllEditorPresetPluginTypes, Transformer } from '@atlaskit/editor-common/types';
|
|
8
|
+
import type EditorActions from '../actions';
|
|
9
|
+
import type { EventDispatcher } from '../event-dispatcher';
|
|
10
|
+
import type { EditorNextProps } from '../types/editor-props';
|
|
11
|
+
interface InternalProps {
|
|
12
|
+
props: EditorNextProps;
|
|
13
|
+
handleAnalyticsEvent: FireAnalyticsCallback;
|
|
14
|
+
createAnalyticsEvent: CreateUIAnalyticsEvent;
|
|
15
|
+
handleSave: (view: EditorView) => void;
|
|
16
|
+
editorActions: EditorActions;
|
|
17
|
+
onEditorCreated: (instance: {
|
|
18
|
+
view: EditorView;
|
|
19
|
+
eventDispatcher: EventDispatcher;
|
|
20
|
+
transformer?: Transformer<string>;
|
|
21
|
+
}) => void;
|
|
22
|
+
onEditorDestroyed: (_instance: {
|
|
23
|
+
view: EditorView;
|
|
24
|
+
transformer?: Transformer<string>;
|
|
25
|
+
}) => void;
|
|
26
|
+
preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
|
|
27
|
+
providerFactory: ProviderFactory;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* EditorInternalComponent is used to capture the common component
|
|
31
|
+
* from the `render` method of `Editor` and share it with `EditorNext`.
|
|
32
|
+
*/
|
|
33
|
+
export declare function EditorInternal({ props, handleAnalyticsEvent, createAnalyticsEvent, handleSave, editorActions, providerFactory, onEditorCreated, onEditorDestroyed, preset, }: InternalProps): jsx.JSX.Element;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
|
+
import type { EditorNextProps } from '../types/editor-props';
|
|
3
|
+
export declare function ComposableEditor(props: EditorNextProps): jsx.JSX.Element;
|
|
4
|
+
export declare namespace ComposableEditor {
|
|
5
|
+
var propTypes: {
|
|
6
|
+
minHeight: ({ appearance, minHeight, }: Pick<EditorNextProps, "appearance" | "minHeight">) => Error | null;
|
|
7
|
+
preset: ({ preset }: Pick<EditorNextProps, "preset">) => Error | null;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import type { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
4
|
+
import type { EditorProps } from '../../types/editor-props';
|
|
5
|
+
import type { PerformanceTracking } from '../../types/performance-tracking';
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* Hook to be used for running analytics on mounting the editor.
|
|
9
|
+
* Should run once.
|
|
10
|
+
* WARNING: Consider any changes to also make to `src/editor.tsx`
|
|
11
|
+
*
|
|
12
|
+
* @param performanceTracking
|
|
13
|
+
* @param featureFlags
|
|
14
|
+
* @param getExperienceStore function to retrieve the Editor's current ExperienceStore
|
|
15
|
+
* @param createAnalyticsEvent
|
|
16
|
+
*/
|
|
17
|
+
export default function useEditorConstructor(performanceTracking: PerformanceTracking | undefined, featureFlags: EditorProps['featureFlags'], getExperienceStore: () => ExperienceStore | undefined, createAnalyticsEvent: CreateUIAnalyticsEvent): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import type { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
3
|
+
import type { EditorNextProps, EditorProps } from '../../types/editor-props';
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Hook to run the analytics for the Editor component.
|
|
7
|
+
* WARNING: Consider any changes to also make to `src/editor.tsx`
|
|
8
|
+
*
|
|
9
|
+
* @param props EditorProps
|
|
10
|
+
* @param getExperienceStore function to retrieve the Editor's current ExperienceStore
|
|
11
|
+
* @param createAnalyticsEvent
|
|
12
|
+
*/
|
|
13
|
+
export default function useMeasureEditorMountTime(props: EditorProps | EditorNextProps, getExperienceStore: () => ExperienceStore | undefined, createAnalyticsEvent: CreateUIAnalyticsEvent): void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
+
import type EditorActions from '../../actions';
|
|
4
|
+
import type { EditorNextProps } from '../../types/editor-props';
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* This hook is used to create the provider factory object.
|
|
8
|
+
*
|
|
9
|
+
* @param props
|
|
10
|
+
* @param editorActions
|
|
11
|
+
* @param createAnalyticsEvent
|
|
12
|
+
* @returns ProviderFactory for Editor
|
|
13
|
+
*/
|
|
14
|
+
export default function useProviderFactory(props: EditorNextProps, editorActions: EditorActions, createAnalyticsEvent: CreateUIAnalyticsEvent): ProviderFactory;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import type { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
3
|
+
import type { EditorProps } from '../../types/editor-props';
|
|
4
|
+
import type { PerformanceTracking } from '../../types/performance-tracking';
|
|
5
|
+
export default function editorMeasureTTICallback(tti: number, ttiFromInvocation: number, canceled: boolean, distortedDuration: boolean, performanceTracking: PerformanceTracking | undefined, featureFlags: EditorProps['featureFlags'], createAnalyticsEvent?: CreateUIAnalyticsEvent, experienceStore?: ExperienceStore): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Providers } from '@atlaskit/editor-common/provider-factory';
|
|
2
|
+
import type { EditorProps } from '../../types/editor-props';
|
|
3
|
+
type Complete<T> = {
|
|
4
|
+
[P in keyof Required<T>]: Pick<T, P> extends Required<Pick<T, P>> ? T[P] : T[P] | undefined;
|
|
5
|
+
};
|
|
6
|
+
type EditorProviderProps = Pick<EditorProps, 'linking' | 'smartLinks' | 'UNSAFE_cards' | 'autoformattingProvider' | 'media' | 'emojiProvider' | 'mentionProvider' | 'taskDecisionProvider' | 'contextIdentifierProvider' | 'searchProvider' | 'macroProvider' | 'activityProvider' | 'collabEdit' | 'collabEditProvider' | 'presenceProvider' | 'legacyImageUploadProvider'>;
|
|
7
|
+
type RequiredProviders = Complete<Omit<Providers, 'reactionsStore' | 'profilecardProvider' | 'extensionProvider' | 'quickInsertProvider'>>;
|
|
8
|
+
export default function getProvidersFromEditorProps({ linking, smartLinks, UNSAFE_cards, autoformattingProvider, media, emojiProvider, mentionProvider, legacyImageUploadProvider, taskDecisionProvider, contextIdentifierProvider, searchProvider, macroProvider, activityProvider, collabEdit, collabEditProvider, presenceProvider, }: EditorProviderProps): RequiredProviders;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
2
|
+
import type { ProviderFactory, Providers, QuickInsertProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* Utility to set all the providers on a provider factory
|
|
6
|
+
*
|
|
7
|
+
* @param providerFactory
|
|
8
|
+
* @param props
|
|
9
|
+
* @param extensionProvider
|
|
10
|
+
* @param quickInsertProvider
|
|
11
|
+
*/
|
|
12
|
+
export default function handleProviders(providerFactory: ProviderFactory, { emojiProvider, mentionProvider, taskDecisionProvider, contextIdentifierProvider, collabEditProvider, activityProvider, presenceProvider, macroProvider, imageUploadProvider, mediaProvider, autoformattingProvider, searchProvider, cardProvider, }: Providers, extensionProvider?: ExtensionProvider, quickInsertProvider?: Promise<QuickInsertProvider>): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import type { ACTION } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import type { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
4
|
+
import type { EditorProps } from '../../types/editor-props';
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* Util function to be used with the Editor component to send duration analytics
|
|
8
|
+
*
|
|
9
|
+
* @param action
|
|
10
|
+
* @param props
|
|
11
|
+
* @param getExperienceStore return the ExperienceStore of the Editor
|
|
12
|
+
* @param getCreateAnalyticsEvent return the CreateUIAnalyticsEvent of the Editor
|
|
13
|
+
* @returns
|
|
14
|
+
*/
|
|
15
|
+
export default function sendDurationAnalytics(action: ACTION.EDITOR_MOUNTED | ACTION.ON_EDITOR_READY_CALLBACK, props: Pick<EditorProps, 'contextIdentifierProvider' | 'featureFlags'>, getExperienceStore: () => ExperienceStore | undefined, createAnalyticsEvent: CreateUIAnalyticsEvent | undefined): (duration: number, startTime: number) => Promise<void>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type EditorActions from '../../actions';
|
|
3
|
+
import type { PerformanceTracking } from '../../types/performance-tracking';
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Util function to be used with the Editor to track the EditorActions prop
|
|
7
|
+
*
|
|
8
|
+
* @param editorActions
|
|
9
|
+
* @param performanceTracking
|
|
10
|
+
* @param handleAnalyticsEvent
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export default function trackEditorActions(editorActions: EditorActions & {
|
|
14
|
+
_contentRetrievalTracking?: {
|
|
15
|
+
getValueTracked: boolean;
|
|
16
|
+
samplingCounters: {
|
|
17
|
+
success: number;
|
|
18
|
+
failure: number;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
}, performanceTracking: PerformanceTracking | undefined, handleAnalyticsEvent: FireAnalyticsCallback): EditorActions<any> & {
|
|
22
|
+
_contentRetrievalTracking?: {
|
|
23
|
+
getValueTracked: boolean;
|
|
24
|
+
samplingCounters: {
|
|
25
|
+
success: number;
|
|
26
|
+
failure: number;
|
|
27
|
+
};
|
|
28
|
+
} | undefined;
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ComposableEditor } from './composable-editor/editor';
|