@atlaskit/editor-core 188.7.0 → 188.7.3
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 +7 -0
- package/dist/cjs/plugins/status/ui/statusPicker.js +7 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/plugins/status/ui/statusPicker.js +6 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/plugins/status/ui/statusPicker.js +7 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/plugins/status/ui/statusPicker.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 +8 -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-ts4.5/plugins/alignment/ui/ToolbarAlignment/messages.d.ts +22 -0
- 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/messages.d.ts +17 -0
- package/dist/types-ts4.5/plugins/status/nodeviews/status.d.ts +24 -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/styles.d.ts +1 -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 +3 -3
- package/tmp/api-report-tmp.d.ts +791 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type DatePluginState = {
|
|
2
|
+
isQuickInsertAction?: boolean;
|
|
3
|
+
isNew: boolean;
|
|
4
|
+
showDatePickerAt: number | null;
|
|
5
|
+
isDateEmpty: boolean;
|
|
6
|
+
focusDateInput: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type DatePluginMeta = {
|
|
9
|
+
isNew?: boolean;
|
|
10
|
+
showDatePickerAt?: number | null;
|
|
11
|
+
isDateEmpty?: boolean;
|
|
12
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import type { DatePluginState, DatePluginMeta } from './types';
|
|
3
|
+
export declare function reducer(pluginState: DatePluginState, meta: DatePluginMeta): DatePluginState;
|
|
4
|
+
export declare function mapping(tr: ReadonlyTransaction, pluginState: DatePluginState): DatePluginState;
|
|
5
|
+
export declare function onSelectionChanged(tr: ReadonlyTransaction, pluginState: DatePluginState): DatePluginState;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { WeekDay } from '@atlaskit/calendar/types';
|
|
2
|
+
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
4
|
+
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
|
+
import type { insertDate, deleteDate } from './actions';
|
|
6
|
+
export type DateType = {
|
|
7
|
+
year: number;
|
|
8
|
+
month: number;
|
|
9
|
+
day?: number;
|
|
10
|
+
};
|
|
11
|
+
export type DateSegment = 'day' | 'month' | 'year';
|
|
12
|
+
export interface DatePluginConfig {
|
|
13
|
+
weekStartDay?: WeekDay;
|
|
14
|
+
}
|
|
15
|
+
export type DatePluginSharedState = {
|
|
16
|
+
showDatePickerAt?: number | null;
|
|
17
|
+
isNew: boolean;
|
|
18
|
+
focusDateInput: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type DatePlugin = NextEditorPlugin<'date', {
|
|
21
|
+
pluginConfiguration: DatePluginConfig | undefined;
|
|
22
|
+
dependencies: [
|
|
23
|
+
typeof analyticsPlugin,
|
|
24
|
+
EditorDisabledPlugin
|
|
25
|
+
];
|
|
26
|
+
sharedState: DatePluginSharedState;
|
|
27
|
+
actions: {
|
|
28
|
+
insertDate: typeof insertDate;
|
|
29
|
+
deleteDate: typeof deleteDate;
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import type { DateType } from '../../types';
|
|
5
|
+
export interface InputProps {
|
|
6
|
+
/** Locale code string (eg. "en-AU") */
|
|
7
|
+
locale: string;
|
|
8
|
+
date: DateType;
|
|
9
|
+
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
10
|
+
onNewDate: (date: DateType) => void;
|
|
11
|
+
onSubmitDate: (date: DateType | null) => void;
|
|
12
|
+
onEmptySubmit: () => void;
|
|
13
|
+
/** Automatically focus the text field */
|
|
14
|
+
autoFocus?: boolean;
|
|
15
|
+
/** Automatically select all text in the field. Requires autoFocus to be true. */
|
|
16
|
+
autoSelectAll?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface InputState {
|
|
19
|
+
inputText: string;
|
|
20
|
+
}
|
|
21
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<InputProps & WrappedComponentProps<"intl">>> & {
|
|
22
|
+
WrappedComponent: React.ComponentType<InputProps & WrappedComponentProps<"intl">>;
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { WeekDay } from '@atlaskit/calendar/types';
|
|
4
|
+
import type { DateType } from '../../types';
|
|
5
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
7
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
8
|
+
export interface Props {
|
|
9
|
+
element: HTMLElement | null;
|
|
10
|
+
closeDatePicker: () => void;
|
|
11
|
+
/** Whether the date is newly created, selcting and focusing the input */
|
|
12
|
+
isNew: boolean;
|
|
13
|
+
/** Whether to automatically focus the input */
|
|
14
|
+
autoFocus?: boolean;
|
|
15
|
+
onSelect: (date: DateType | null, commitMethod: INPUT_METHOD.PICKER | INPUT_METHOD.KEYBOARD) => void;
|
|
16
|
+
onDelete: () => void;
|
|
17
|
+
mountTo?: HTMLElement;
|
|
18
|
+
boundariesElement?: HTMLElement;
|
|
19
|
+
scrollableElement?: HTMLElement;
|
|
20
|
+
closeDatePickerWithAnalytics: ({ date }: {
|
|
21
|
+
date?: DateType;
|
|
22
|
+
}) => void;
|
|
23
|
+
onTextChanged: (date: DateType) => void;
|
|
24
|
+
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
25
|
+
weekStartDay?: WeekDay;
|
|
26
|
+
}
|
|
27
|
+
export interface State {
|
|
28
|
+
date: DateType;
|
|
29
|
+
selected: Array<string>;
|
|
30
|
+
setInputSelectionPos?: number;
|
|
31
|
+
latestValidDate: DateType;
|
|
32
|
+
}
|
|
33
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
34
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
35
|
+
};
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DateType } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Attempt to parse a string representing a date in a particular locale to a date object
|
|
4
|
+
* @param dateString The string representing the date in the given locale, eg '02/12/2000'
|
|
5
|
+
* @param l10n The localisation provider created by createLocalizationProvider
|
|
6
|
+
* @returns Editor DateType when can parse, null when can't parse or invalid
|
|
7
|
+
*/
|
|
8
|
+
export declare function parseDateType(dateString: string, locale: string): DateType | null;
|
|
9
|
+
/**
|
|
10
|
+
* Convert an EditorDateType to a date string string formatted for a particular locale
|
|
11
|
+
* @param date The date object
|
|
12
|
+
* @param locale The locale code string (eg. "en-AU")
|
|
13
|
+
* @returns Date string, eg "25/5/20"
|
|
14
|
+
*/
|
|
15
|
+
export declare function formatDateType(date: DateType, locale: string): string;
|
|
16
|
+
/**
|
|
17
|
+
* Convert an Editor DateType to a JavaScript Date object
|
|
18
|
+
* @param date Editor DateType
|
|
19
|
+
* @returns JavaScript Date object
|
|
20
|
+
*/
|
|
21
|
+
export declare function dateTypeToDate(date: DateType): Date;
|
|
22
|
+
/**
|
|
23
|
+
* Convert a JavaScript Date to an editor DateType
|
|
24
|
+
* @param date JavaScript Date object
|
|
25
|
+
* @returns Editor DateType
|
|
26
|
+
*/
|
|
27
|
+
export declare function dateToDateType(date: Date): DateType;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { DateType } from '../types';
|
|
2
|
+
import type { DateSegment } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Inconclusively check if a date string is valid - a value of false means it is definitely
|
|
5
|
+
* invalid, a value of true means it might be valid.
|
|
6
|
+
* @param date Date string to be parsed
|
|
7
|
+
*/
|
|
8
|
+
export declare function isDatePossiblyValid(date: string): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Find the segment of a date a position refers to. Eg: pos 2 in 29/03/2020 is in
|
|
11
|
+
* the day segment.
|
|
12
|
+
* @param position Cursor position, with 0 referring to the left of the first char
|
|
13
|
+
* @param date The localised date string
|
|
14
|
+
* @param locale The language to interpret the date string in
|
|
15
|
+
*/
|
|
16
|
+
export declare function findDateSegmentByPosition(position: number, date: string, locale: string): DateSegment | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Generate a placeholder date string for a given locale
|
|
19
|
+
* eg: locale 'hu-HU' -> 'yyyy. mm. dd.'
|
|
20
|
+
* @param locale A locale string supported by Intl.DateTimeFormat
|
|
21
|
+
* @returns A placeholder string. d=1 or 2 digit day, dd=zero padded
|
|
22
|
+
* day, same for month but letter m, yyyy=year
|
|
23
|
+
*/
|
|
24
|
+
export declare function getLocaleDatePlaceholder(locale: string): string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Adjust date segment up or down. Eg. If day is the active segment and adjustment is -1,
|
|
27
|
+
* reduce the day by one.
|
|
28
|
+
* @param date Valid datetype
|
|
29
|
+
* @param activeSegment which part of the date is selected/being adjusted
|
|
30
|
+
* @param adjustment how many units the segment is being adjusted (can be pos or neg, usually 1 or -1)
|
|
31
|
+
*/
|
|
32
|
+
export declare function adjustDate(date: DateType, activeSegment: DateSegment, adjustment: number): DateType;
|
|
33
|
+
export declare function isToday(date: DateType | undefined): boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import type { Node as PMNode, NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import type { Command } from '../../types';
|
|
4
|
+
export declare const setExpandRef: (ref?: HTMLDivElement | null) => Command;
|
|
5
|
+
export declare const deleteExpandAtPos: (expandNodePos: number, expandNode: PMNode) => Command;
|
|
6
|
+
export declare const deleteExpand: () => Command;
|
|
7
|
+
export declare const updateExpandTitle: (title: string, pos: number, nodeType: NodeType) => Command;
|
|
8
|
+
export declare const toggleExpandExpanded: (pos: number, nodeType: NodeType) => Command;
|
|
9
|
+
export declare const createExpandNode: (state: EditorState) => PMNode | null;
|
|
10
|
+
export declare const insertExpand: Command;
|
|
11
|
+
export declare const focusTitle: (pos: number) => Command;
|
|
12
|
+
export declare const setSelectionInsideExpand: (expandPos: number) => Command;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { NextEditorPlugin, EditorProps } from '../../types';
|
|
2
|
+
import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
4
|
+
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
5
|
+
import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
|
|
6
|
+
interface ExpandPluginOptions extends LongPressSelectionPluginOptions {
|
|
7
|
+
allowInsertion?: boolean;
|
|
8
|
+
appearance?: EditorProps['appearance'];
|
|
9
|
+
}
|
|
10
|
+
declare const expandPlugin: NextEditorPlugin<'expand', {
|
|
11
|
+
pluginConfiguration: ExpandPluginOptions | undefined;
|
|
12
|
+
dependencies: [
|
|
13
|
+
FeatureFlagsPlugin,
|
|
14
|
+
typeof decorationsPlugin,
|
|
15
|
+
SelectionPlugin
|
|
16
|
+
];
|
|
17
|
+
}>;
|
|
18
|
+
interface ExpandEditorProps {
|
|
19
|
+
allowExpand?: EditorProps['allowExpand'];
|
|
20
|
+
}
|
|
21
|
+
export default expandPlugin;
|
|
22
|
+
export type { ExpandPluginState } from './types';
|
|
23
|
+
export declare function isExpandInsertionEnabled({ allowExpand }: ExpandEditorProps): boolean;
|
|
24
|
+
export { pluginKey } from './pm-plugins/plugin-factory';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { IntlShape } from 'react-intl-next';
|
|
2
|
+
import type { EditorView, NodeView, Decoration } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
+
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
+
import type { getPosHandlerNode, getPosHandler } from '../../../nodeviews/';
|
|
5
|
+
import type { FeatureFlags, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
|
+
import type expandPlugin from '../index';
|
|
7
|
+
import type { SetSelectionRelativeToNode } from '@atlaskit/editor-common/selection';
|
|
8
|
+
export declare class ExpandNodeView implements NodeView {
|
|
9
|
+
private selectNearNode;
|
|
10
|
+
node: PmNode;
|
|
11
|
+
view: EditorView;
|
|
12
|
+
dom: HTMLElement;
|
|
13
|
+
contentDOM?: HTMLElement;
|
|
14
|
+
icon?: HTMLElement | null;
|
|
15
|
+
input?: HTMLInputElement | null;
|
|
16
|
+
titleContainer?: HTMLElement | null;
|
|
17
|
+
content?: HTMLElement | null;
|
|
18
|
+
getPos: getPosHandlerNode;
|
|
19
|
+
intl: IntlShape;
|
|
20
|
+
allowInteractiveExpand: boolean;
|
|
21
|
+
isMobile: boolean;
|
|
22
|
+
featureFlags: FeatureFlags;
|
|
23
|
+
api: ExtractInjectionAPI<typeof expandPlugin> | undefined;
|
|
24
|
+
constructor(node: PmNode, view: EditorView, getPos: getPosHandlerNode, getIntl: () => IntlShape, isMobile: boolean, featureFlags: FeatureFlags, selectNearNode: SetSelectionRelativeToNode | undefined, api: ExtractInjectionAPI<typeof expandPlugin> | undefined);
|
|
25
|
+
private initHandlers;
|
|
26
|
+
private focusTitle;
|
|
27
|
+
private handleIconKeyDown;
|
|
28
|
+
private renderIcon;
|
|
29
|
+
private isAllowInteractiveExpandEnabled;
|
|
30
|
+
private handleClick;
|
|
31
|
+
private handleInput;
|
|
32
|
+
private handleFocus;
|
|
33
|
+
private handleTitleKeydown;
|
|
34
|
+
private deleteExpand;
|
|
35
|
+
private toggleExpand;
|
|
36
|
+
private moveToOutsideOfTitle;
|
|
37
|
+
private isCollapsed;
|
|
38
|
+
private setRightGapCursor;
|
|
39
|
+
private setLeftGapCursor;
|
|
40
|
+
private handleArrowRightFromTitle;
|
|
41
|
+
private handleArrowLeftFromTitle;
|
|
42
|
+
stopEvent(event: Event): boolean;
|
|
43
|
+
ignoreMutation(mutationRecord: MutationRecord | {
|
|
44
|
+
type: 'selection';
|
|
45
|
+
target: Element;
|
|
46
|
+
}): boolean;
|
|
47
|
+
update(node: PmNode, _decorations: readonly Decoration[]): boolean;
|
|
48
|
+
destroy(): void;
|
|
49
|
+
}
|
|
50
|
+
export default function ({ getIntl, isMobile, featureFlags, api, }: {
|
|
51
|
+
getIntl: () => IntlShape;
|
|
52
|
+
isMobile: boolean;
|
|
53
|
+
featureFlags: FeatureFlags;
|
|
54
|
+
api: ExtractInjectionAPI<typeof expandPlugin> | undefined;
|
|
55
|
+
}): (node: PmNode, view: EditorView, getPos: getPosHandler) => NodeView;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type expandPlugin from '../index';
|
|
4
|
+
export declare function expandKeymap(api: ExtractInjectionAPI<typeof expandPlugin> | undefined): SafePlugin;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
+
import type { Dispatch } from '../../../event-dispatcher';
|
|
3
|
+
import type { EditorProps } from '../../../types';
|
|
4
|
+
import type { IntlShape } from 'react-intl-next';
|
|
5
|
+
import type { FeatureFlags, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
|
+
import type expandPlugin from '../index';
|
|
7
|
+
export declare function containsClass(element: Element | null, className: string): boolean;
|
|
8
|
+
export declare const createPlugin: (dispatch: Dispatch, getIntl: () => IntlShape, appearance: EditorProps['appearance'], useLongPressSelection: boolean | undefined, featureFlags: FeatureFlags, api: ExtractInjectionAPI<typeof expandPlugin> | undefined) => SafePlugin<import("../types").ExpandPluginState>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
export declare const pluginKey: PluginKey<any>;
|
|
3
|
+
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: import("..").ExpandPluginState | ((state: import("prosemirror-state").EditorState) => import("..").ExpandPluginState)) => import("prosemirror-state").SafeStateField<import("..").ExpandPluginState>, createCommand: <A = import("../types").ExpandPluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => import("..").ExpandPluginState;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { FloatingToolbarHandler } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
|
|
3
|
+
export declare const getToolbarConfig: (hoverDecoration: HoverDecorationHandler | undefined) => FloatingToolbarHandler;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
import { IntlShape } from 'react-intl-next';
|
|
5
|
+
interface ExpandIconButtonProps {
|
|
6
|
+
allowInteractiveExpand: boolean;
|
|
7
|
+
expanded: boolean;
|
|
8
|
+
intl?: IntlShape;
|
|
9
|
+
}
|
|
10
|
+
interface ExpandIconButtonWithLabelProps extends ExpandIconButtonProps {
|
|
11
|
+
label: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const withTooltip: (WrapperComponent: React.ElementType) => {
|
|
14
|
+
new (props: ExpandIconButtonWithLabelProps): {
|
|
15
|
+
render(): jsx.JSX.Element;
|
|
16
|
+
context: any;
|
|
17
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<ExpandIconButtonWithLabelProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
18
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
19
|
+
readonly props: Readonly<ExpandIconButtonWithLabelProps> & Readonly<{
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
}>;
|
|
22
|
+
state: Readonly<{}>;
|
|
23
|
+
refs: {
|
|
24
|
+
[key: string]: React.ReactInstance;
|
|
25
|
+
};
|
|
26
|
+
componentDidMount?(): void;
|
|
27
|
+
shouldComponentUpdate?(nextProps: Readonly<ExpandIconButtonWithLabelProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
28
|
+
componentWillUnmount?(): void;
|
|
29
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
30
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<ExpandIconButtonWithLabelProps>, prevState: Readonly<{}>): any;
|
|
31
|
+
componentDidUpdate?(prevProps: Readonly<ExpandIconButtonWithLabelProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
32
|
+
componentWillMount?(): void;
|
|
33
|
+
UNSAFE_componentWillMount?(): void;
|
|
34
|
+
componentWillReceiveProps?(nextProps: Readonly<ExpandIconButtonWithLabelProps>, nextContext: any): void;
|
|
35
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<ExpandIconButtonWithLabelProps>, nextContext: any): void;
|
|
36
|
+
componentWillUpdate?(nextProps: Readonly<ExpandIconButtonWithLabelProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
37
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<ExpandIconButtonWithLabelProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
38
|
+
};
|
|
39
|
+
contextType?: React.Context<any> | undefined;
|
|
40
|
+
};
|
|
41
|
+
export declare const CustomButton: (props: ExpandIconButtonWithLabelProps) => jsx.JSX.Element;
|
|
42
|
+
export declare const ExpandIconButton: (props: ExpandIconButtonProps) => jsx.JSX.Element;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { findExpand, transformSliceToRemoveOpenExpand, transformSliceNestedExpandToExpand, } from '@atlaskit/editor-common/transforms';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
+
import type { Schema, Node as PmNode, Fragment, Mark } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
import type { UpdateExtension, ExtensionAPI } from '@atlaskit/editor-common/extensions';
|
|
5
|
+
import type { MacroProvider } from '@atlaskit/editor-common/provider-factory';
|
|
6
|
+
export { transformSliceToRemoveOpenBodiedExtension } from '@atlaskit/editor-common/transforms';
|
|
7
|
+
import type { Command, CommandDispatch } from '../../types';
|
|
8
|
+
import type EditorActions from '../../actions';
|
|
9
|
+
import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
|
|
10
|
+
export declare const buildExtensionNode: <S extends Schema<any, any>>(type: 'inlineExtension' | 'extension' | 'bodiedExtension', schema: S, attrs: object, content?: Fragment, marks?: readonly Mark[]) => PmNode;
|
|
11
|
+
export declare const performNodeUpdate: (type: 'inlineExtension' | 'extension' | 'bodiedExtension', newAttrs: object, content: Fragment, marks: readonly Mark[], shouldScrollIntoView: boolean) => Command;
|
|
12
|
+
export declare const updateExtensionParams: (updateExtension: UpdateExtension<object>, node: {
|
|
13
|
+
node: PmNode;
|
|
14
|
+
pos: number;
|
|
15
|
+
}, actions: ExtensionAPI) => (state: EditorState, dispatch?: CommandDispatch, view?: EditorView) => Promise<boolean>;
|
|
16
|
+
export declare const editSelectedExtension: (editorActions: EditorActions) => boolean;
|
|
17
|
+
export declare const editExtension: (macroProvider: MacroProvider | null | undefined, applyChangeToContextPanel: ApplyChangeHandler | undefined, updateExtension?: Promise<UpdateExtension<object> | void>) => Command;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import type { ExtensionState } from './types';
|
|
4
|
+
import type { Parameters, TransformBefore, TransformAfter } from '@atlaskit/editor-common/src/extensions';
|
|
5
|
+
import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
|
|
6
|
+
export declare function updateState(state: Partial<ExtensionState>): import("@atlaskit/editor-common/types").Command;
|
|
7
|
+
export declare function setEditingContextToContextPanel<T extends Parameters = Parameters>(processParametersBefore: TransformBefore<T>, processParametersAfter: TransformAfter<T>, applyChangeToContextPanel: ApplyChangeHandler | undefined): import("@atlaskit/editor-common/types").Command;
|
|
8
|
+
export declare const clearEditingContext: (applyChangeToContextPanel: ApplyChangeHandler | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
9
|
+
export declare const forceAutoSave: (applyChangeToContextPanel: ApplyChangeHandler | undefined) => (resolve: () => void, reject?: ((reason?: any) => void) | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
10
|
+
export declare const updateExtensionLayout: (layout: ExtensionLayout) => import("@atlaskit/editor-common/types").Command;
|
|
11
|
+
export declare const removeExtension: () => import("@atlaskit/editor-common/types").Command;
|
|
12
|
+
export declare const removeDescendantNodes: (sourceNode?: PMNode) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
+
import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
6
|
+
import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
|
|
7
|
+
export declare const getContextPanel: (allowAutoSave?: boolean, featureFlags?: FeatureFlags, applyChange?: ApplyChangeHandler) => (state: EditorState) => JSX.Element | undefined;
|
|
8
|
+
export declare function onChangeAction(editorView: EditorView, updatedParameters: object | undefined, oldParameters: object | undefined, nodeWithPos: ContentNodeWithPos, onSaving?: () => void): Promise<void>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
+
import type { MacroProvider } from '../macro';
|
|
3
|
+
import type { CreateExtensionAPI } from '@atlaskit/editor-plugin-extension';
|
|
4
|
+
interface EditInLegacyMacroBrowserArgs {
|
|
5
|
+
view: EditorView;
|
|
6
|
+
macroProvider?: MacroProvider;
|
|
7
|
+
}
|
|
8
|
+
export declare const getEditInLegacyMacroBrowser: ({ view, macroProvider, }: EditInLegacyMacroBrowserArgs) => () => void;
|
|
9
|
+
export declare const createExtensionAPI: CreateExtensionAPI;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
+
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
+
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
5
|
+
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
|
+
import type { PluginInjectionAPIWithDependency } from '@atlaskit/editor-common/types';
|
|
7
|
+
import type { EditorAppearance } from '../../../types/editor-appearance';
|
|
8
|
+
import type { ForwardRef, getPosHandler } from '../../../nodeviews';
|
|
9
|
+
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
10
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
11
|
+
import type { EventDispatcher } from '../../../event-dispatcher';
|
|
12
|
+
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
13
|
+
interface ExtensionNodeViewOptions {
|
|
14
|
+
appearance?: EditorAppearance;
|
|
15
|
+
}
|
|
16
|
+
export declare class ExtensionNode extends ReactNodeView {
|
|
17
|
+
ignoreMutation(mutation: MutationRecord | {
|
|
18
|
+
type: 'selection';
|
|
19
|
+
target: Element;
|
|
20
|
+
}): boolean;
|
|
21
|
+
getContentDOM(): {
|
|
22
|
+
dom: HTMLDivElement;
|
|
23
|
+
} | undefined;
|
|
24
|
+
render(props: {
|
|
25
|
+
providerFactory: ProviderFactory;
|
|
26
|
+
extensionHandlers: ExtensionHandlers;
|
|
27
|
+
extensionNodeViewOptions?: ExtensionNodeViewOptions;
|
|
28
|
+
pluginInjectionApi: PluginInjectionAPIWithDependency<WidthPlugin> | undefined;
|
|
29
|
+
}, forwardRef: ForwardRef): JSX.Element;
|
|
30
|
+
}
|
|
31
|
+
export default function ExtensionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, extensionNodeViewOptions: ExtensionNodeViewOptions, pluginInjectionApi: PluginInjectionAPIWithDependency<WidthPlugin> | undefined): (node: PmNode, view: EditorView, getPos: getPosHandler) => NodeView;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ExtensionState } from './types';
|
|
2
|
+
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: ExtensionState<import("@atlaskit/editor-common/extensions").Parameters> | ((state: import("prosemirror-state").EditorState) => ExtensionState<import("@atlaskit/editor-common/extensions").Parameters>)) => import("prosemirror-state").SafeStateField<ExtensionState<import("@atlaskit/editor-common/extensions").Parameters>>;
|
|
3
|
+
export declare const createCommand: <A = import("./types").ExtensionAction<import("@atlaskit/editor-common/extensions").Parameters>>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
4
|
+
export declare const getPluginState: (state: import("prosemirror-state").EditorState) => ExtensionState<import("@atlaskit/editor-common/extensions").Parameters>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
|
+
import type { ExtensionHandlers, ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
5
|
+
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
|
+
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
8
|
+
import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
|
|
9
|
+
import type { EditorAppearance } from '../../../types/editor-appearance';
|
|
10
|
+
import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
11
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
12
|
+
import { getPluginState, createCommand } from '../plugin-factory';
|
|
13
|
+
import { pluginKey } from '../plugin-key';
|
|
14
|
+
import type extensionPlugin from '../index';
|
|
15
|
+
export declare const createExtensionProviderHandler: (view: EditorView) => (name: string, provider?: Promise<ExtensionProvider>) => Promise<void>;
|
|
16
|
+
export declare const createContextIdentifierProviderHandler: (view: EditorView) => (name: string, provider?: Promise<ContextIdentifierProvider>) => Promise<void>;
|
|
17
|
+
export declare const handleUpdate: ({ view, prevState, domAtPos, extensionHandlers, applyChange, }: {
|
|
18
|
+
view: EditorView;
|
|
19
|
+
prevState: EditorState;
|
|
20
|
+
domAtPos: EditorView['domAtPos'];
|
|
21
|
+
extensionHandlers: ExtensionHandlers;
|
|
22
|
+
applyChange: ApplyChangeHandler | undefined;
|
|
23
|
+
}) => true | undefined;
|
|
24
|
+
declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<typeof extensionPlugin> | undefined, useLongPressSelection?: boolean, options?: {
|
|
25
|
+
appearance?: EditorAppearance;
|
|
26
|
+
}) => SafePlugin<import("../types").ExtensionState<import("@atlaskit/editor-common/extensions").Parameters>>;
|
|
27
|
+
export { pluginKey, createPlugin, createCommand, getPluginState };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
+
import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
3
|
+
export declare const updateEditButton: (view: EditorView, extensionProvider: ExtensionProvider) => Promise<import("@atlaskit/editor-common/extensions").UpdateExtension<any> | undefined>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { FloatingToolbarHandler } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
|
|
3
|
+
import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
|
|
4
|
+
export declare const messages: {
|
|
5
|
+
edit: {
|
|
6
|
+
id: string;
|
|
7
|
+
defaultMessage: string;
|
|
8
|
+
description: string;
|
|
9
|
+
};
|
|
10
|
+
deleteElementTitle: {
|
|
11
|
+
id: string;
|
|
12
|
+
defaultMessage: string;
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
15
|
+
unnamedSource: {
|
|
16
|
+
id: string;
|
|
17
|
+
defaultMessage: string;
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
confirmDeleteLinkedModalOKButton: {
|
|
21
|
+
id: string;
|
|
22
|
+
defaultMessage: string;
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
confirmDeleteLinkedModalMessage: {
|
|
26
|
+
id: string;
|
|
27
|
+
defaultMessage: string;
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
confirmModalCheckboxLabel: {
|
|
31
|
+
id: string;
|
|
32
|
+
defaultMessage: string;
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
interface GetToolbarConfigProps {
|
|
37
|
+
breakoutEnabled: boolean | undefined;
|
|
38
|
+
hoverDecoration: HoverDecorationHandler | undefined;
|
|
39
|
+
applyChangeToContextPanel: ApplyChangeHandler | undefined;
|
|
40
|
+
}
|
|
41
|
+
export declare const getToolbarConfig: ({ breakoutEnabled, hoverDecoration, applyChangeToContextPanel, }: GetToolbarConfigProps) => FloatingToolbarHandler;
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
2
|
+
import { UpdateExtension, ExtensionProvider, Parameters, TransformBefore, TransformAfter } from '@atlaskit/editor-common/extensions';
|
|
3
|
+
import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
|
|
4
|
+
export type ExtensionState<T extends Parameters = Parameters> = {
|
|
5
|
+
localId?: string;
|
|
6
|
+
autoSaveResolve?: () => void;
|
|
7
|
+
autoSaveReject?: (reason?: any) => void;
|
|
8
|
+
showEditButton: boolean;
|
|
9
|
+
showContextPanel: boolean;
|
|
10
|
+
updateExtension?: Promise<UpdateExtension<T> | void>;
|
|
11
|
+
element?: HTMLElement;
|
|
12
|
+
extensionProvider?: ExtensionProvider<T>;
|
|
13
|
+
contextIdentifierProvider?: ContextIdentifierProvider;
|
|
14
|
+
processParametersBefore?: TransformBefore<T>;
|
|
15
|
+
processParametersAfter?: TransformAfter<T>;
|
|
16
|
+
positions?: Record<number, number>;
|
|
17
|
+
applyChangeToContextPanel: ApplyChangeHandler | undefined;
|
|
18
|
+
};
|
|
19
|
+
export type ExtensionAction<T extends Parameters = Parameters> = {
|
|
20
|
+
type: 'UPDATE_STATE';
|
|
21
|
+
data: Partial<ExtensionState<T>>;
|
|
22
|
+
};
|