@atlaskit/editor-core 183.0.0 → 183.0.8
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 +13 -0
- package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +7 -2
- package/dist/cjs/plugins/placeholder-text/styles.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +5 -1
- package/dist/es2019/plugins/placeholder-text/styles.js +5 -5
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +7 -2
- package/dist/esm/plugins/placeholder-text/styles.js +2 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/analytics-api/api.d.ts +1 -1
- package/dist/types/analytics-api/attach-payload-into-transaction.d.ts +1 -1
- package/dist/types/commands/index.d.ts +3 -3
- package/dist/types/create-editor/ErrorBoundary.d.ts +3 -3
- package/dist/types/create-editor/ReactEditorViewInternal.d.ts +1 -1
- package/dist/types/create-editor/get-plugins.d.ts +4 -4
- package/dist/types/editor-next/hooks/useProviderFactory.d.ts +1 -1
- package/dist/types/editor-next/utils/editorPropTypes.d.ts +1 -1
- package/dist/types/editor-next/utils/getProvidersFromEditorProps.d.ts +3 -3
- package/dist/types/editor.d.ts +2 -2
- package/dist/types/i18n/cs.d.ts +6 -6
- package/dist/types/i18n/da.d.ts +6 -6
- package/dist/types/i18n/de.d.ts +6 -6
- package/dist/types/i18n/en.d.ts +6 -6
- package/dist/types/i18n/en_GB.d.ts +6 -6
- package/dist/types/i18n/en_ZZ.d.ts +6 -6
- package/dist/types/i18n/es.d.ts +6 -6
- package/dist/types/i18n/et.d.ts +6 -6
- package/dist/types/i18n/fi.d.ts +6 -6
- package/dist/types/i18n/fr.d.ts +6 -6
- package/dist/types/i18n/hu.d.ts +6 -6
- package/dist/types/i18n/is.d.ts +6 -6
- package/dist/types/i18n/it.d.ts +6 -6
- package/dist/types/i18n/ja.d.ts +6 -6
- package/dist/types/i18n/ko.d.ts +6 -6
- package/dist/types/i18n/languages.d.ts +6 -6
- package/dist/types/i18n/nb.d.ts +6 -6
- package/dist/types/i18n/nl.d.ts +6 -6
- package/dist/types/i18n/pl.d.ts +6 -6
- package/dist/types/i18n/pt_BR.d.ts +6 -6
- package/dist/types/i18n/pt_PT.d.ts +6 -6
- package/dist/types/i18n/ro.d.ts +6 -6
- package/dist/types/i18n/ru.d.ts +6 -6
- package/dist/types/i18n/sk.d.ts +6 -6
- package/dist/types/i18n/sv.d.ts +6 -6
- package/dist/types/i18n/th.d.ts +6 -6
- package/dist/types/i18n/tr.d.ts +6 -6
- package/dist/types/i18n/uk.d.ts +6 -6
- package/dist/types/i18n/vi.d.ts +6 -6
- package/dist/types/i18n/zh.d.ts +6 -6
- package/dist/types/i18n/zh_TW.d.ts +6 -6
- package/dist/types/insert-api/api.d.ts +1 -1
- package/dist/types/insert-api/insert-content-handlers.d.ts +1 -1
- package/dist/types/insert-api/insert-node-helpers.d.ts +4 -4
- package/dist/types/insert-api/types.d.ts +3 -3
- package/dist/types/labs/CollapsedEditor/index.d.ts +1 -1
- package/dist/types/labs/next/ContentComponents.d.ts +1 -1
- package/dist/types/labs/next/full-page.d.ts +1 -1
- package/dist/types/labs/next/internal/context/shared-config.d.ts +1 -1
- package/dist/types/labs/next/internal/editor-props-type.d.ts +2 -2
- package/dist/types/labs/next/internal/hooks/use-editor/create-editor.d.ts +1 -1
- package/dist/types/labs/next/presets/cxhtml.d.ts +1 -1
- package/dist/types/labs/next/presets/default.d.ts +1 -1
- package/dist/types/labs/next/presets/mobile.d.ts +2 -2
- package/dist/types/labs/next/presets/universal.d.ts +1 -1
- package/dist/types/nodeviews/SelectionBasedNodeView.d.ts +2 -2
- package/dist/types/nodeviews/getInlineNodeViewProducer.d.ts +4 -4
- package/dist/types/nodeviews/types.d.ts +6 -6
- package/dist/types/plugins/alignment/commands/index.d.ts +2 -2
- package/dist/types/plugins/alignment/pm-plugins/types.d.ts +2 -2
- package/dist/types/plugins/alignment/ui/ToolbarAlignment/icon-map.d.ts +1 -1
- package/dist/types/plugins/analytics/utils.d.ts +1 -1
- package/dist/types/plugins/annotation/commands/index.d.ts +1 -1
- package/dist/types/plugins/annotation/pm-plugins/types.d.ts +3 -3
- package/dist/types/plugins/annotation/types.d.ts +6 -6
- package/dist/types/plugins/annotation/ui/AnnotationViewWrapper.d.ts +1 -1
- package/dist/types/plugins/annotation/update-provider.d.ts +2 -2
- package/dist/types/plugins/avatar-group/index.d.ts +1 -1
- package/dist/types/plugins/base/pm-plugins/context-identifier.d.ts +2 -2
- package/dist/types/plugins/base/pm-plugins/decoration.d.ts +1 -1
- package/dist/types/plugins/base/pm-plugins/frozen-editor.d.ts +1 -1
- package/dist/types/plugins/base/pm-plugins/react-nodeview.d.ts +1 -1
- package/dist/types/plugins/base/pm-plugins/scroll-gutter.d.ts +1 -1
- package/dist/types/plugins/before-primaryToolbar/index.d.ts +1 -1
- package/dist/types/plugins/block-type/commands/block-type.d.ts +1 -1
- package/dist/types/plugins/block-type/pm-plugins/main.d.ts +2 -2
- package/dist/types/plugins/block-type/types.d.ts +4 -4
- package/dist/types/plugins/block-type/ui/ToolbarBlockType/index.d.ts +1 -1
- package/dist/types/plugins/block-type/ui/ToolbarBlockType/styled.d.ts +1 -1
- package/dist/types/plugins/block-type/utils.d.ts +1 -1
- package/dist/types/plugins/breakout/commands/set-breakout-mode.d.ts +1 -1
- package/dist/types/plugins/card/nodeviews/blockCard.d.ts +1 -1
- package/dist/types/plugins/card/nodeviews/embedCard.d.ts +2 -2
- package/dist/types/plugins/card/nodeviews/genericCard.d.ts +1 -1
- package/dist/types/plugins/card/nodeviews/inlineCard.d.ts +1 -1
- package/dist/types/plugins/card/pm-plugins/analytics/types.d.ts +1 -1
- package/dist/types/plugins/card/pm-plugins/doc.d.ts +4 -4
- package/dist/types/plugins/card/toolbar.d.ts +2 -1
- package/dist/types/plugins/card/types.d.ts +19 -19
- package/dist/types/plugins/card/ui/EditLinkToolbar.d.ts +1 -1
- package/dist/types/plugins/card/ui/EditorSmartCardEventsNext.d.ts +1 -1
- package/dist/types/plugins/card/ui/LinkToolbarAppearance.d.ts +1 -1
- package/dist/types/plugins/card/ui/ResizableEmbedCard.d.ts +3 -3
- package/dist/types/plugins/card/utils.d.ts +4 -4
- package/dist/types/plugins/code-bidi-warning/index.d.ts +1 -1
- package/dist/types/plugins/code-bidi-warning/pm-plugins/types.d.ts +1 -1
- package/dist/types/plugins/code-block/ide-ux/bracket-handling.d.ts +1 -1
- package/dist/types/plugins/code-block/ide-ux/quote-handling.d.ts +1 -1
- package/dist/types/plugins/code-block/language-list.d.ts +1 -1
- package/dist/types/plugins/code-block/pm-plugins/codeBlockCopySelectionPlugin.d.ts +1 -1
- package/dist/types/plugins/code-block/pm-plugins/main-state.d.ts +1 -1
- package/dist/types/plugins/code-block/utils.d.ts +1 -1
- package/dist/types/plugins/collab-edit/actions.d.ts +2 -2
- package/dist/types/plugins/collab-edit/analytics.d.ts +1 -1
- package/dist/types/plugins/collab-edit/events/handlers.d.ts +2 -2
- package/dist/types/plugins/collab-edit/events/initialize.d.ts +1 -1
- package/dist/types/plugins/collab-edit/events/send-transaction.d.ts +1 -1
- package/dist/types/plugins/collab-edit/types.d.ts +6 -6
- package/dist/types/plugins/collab-edit/ui/avatars-with-plugin-state.d.ts +1 -1
- package/dist/types/plugins/collab-edit/utils.d.ts +1 -1
- package/dist/types/plugins/context-panel/index.d.ts +1 -1
- package/dist/types/plugins/copy-button/commands.d.ts +1 -1
- package/dist/types/plugins/copy-button/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/copy-button/toolbar.d.ts +1 -1
- package/dist/types/plugins/custom-autoformat/input-rules.d.ts +2 -2
- package/dist/types/plugins/custom-autoformat/reducers.d.ts +1 -1
- package/dist/types/plugins/custom-autoformat/types.d.ts +7 -7
- package/dist/types/plugins/date/actions.d.ts +2 -2
- package/dist/types/plugins/date/pm-plugins/types.d.ts +2 -2
- package/dist/types/plugins/date/types.d.ts +2 -2
- package/dist/types/plugins/editor-disabled/index.d.ts +1 -1
- package/dist/types/plugins/emoji/index.d.ts +2 -2
- package/dist/types/plugins/emoji/nodeviews/emoji.d.ts +1 -1
- package/dist/types/plugins/emoji/types.d.ts +1 -1
- package/dist/types/plugins/expand/commands.d.ts +1 -1
- package/dist/types/plugins/expand/types.d.ts +1 -1
- package/dist/types/plugins/extension/actions.d.ts +3 -3
- package/dist/types/plugins/extension/commands.d.ts +1 -1
- package/dist/types/plugins/extension/context-panel.d.ts +1 -1
- package/dist/types/plugins/extension/pm-plugins/main.d.ts +2 -2
- package/dist/types/plugins/extension/types.d.ts +2 -2
- package/dist/types/plugins/extension/ui/Extension/ExtensionNodeWrapper.d.ts +1 -1
- package/dist/types/plugins/extension/utils.d.ts +1 -1
- package/dist/types/plugins/feedback-dialog/index.d.ts +1 -1
- package/dist/types/plugins/find-replace/FindReplaceToolbarButtonWithState.d.ts +1 -1
- package/dist/types/plugins/find-replace/actions.d.ts +1 -1
- package/dist/types/plugins/find-replace/commands.d.ts +1 -1
- package/dist/types/plugins/find-replace/index.d.ts +1 -1
- package/dist/types/plugins/find-replace/types.d.ts +4 -4
- package/dist/types/plugins/find-replace/ui/Find.d.ts +1 -1
- package/dist/types/plugins/find-replace/ui/FindReplace.d.ts +1 -1
- package/dist/types/plugins/find-replace/ui/Replace.d.ts +2 -2
- package/dist/types/plugins/find-replace/utils/index.d.ts +1 -1
- package/dist/types/plugins/floating-toolbar/index.d.ts +2 -2
- package/dist/types/plugins/floating-toolbar/pm-plugins/force-focus/index.d.ts +1 -1
- package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/types.d.ts +2 -2
- package/dist/types/plugins/floating-toolbar/ui/Toolbar.d.ts +2 -2
- package/dist/types/plugins/floating-toolbar/utils.d.ts +2 -2
- package/dist/types/plugins/grid/index.d.ts +1 -1
- package/dist/types/plugins/grid/types.d.ts +2 -2
- package/dist/types/plugins/help-dialog/commands.d.ts +1 -1
- package/dist/types/plugins/help-dialog/ui/index.d.ts +1 -1
- package/dist/types/plugins/hyperlink/commands.d.ts +2 -2
- package/dist/types/plugins/hyperlink/pm-plugins/main.d.ts +5 -5
- package/dist/types/plugins/hyperlink/types.d.ts +1 -1
- package/dist/types/plugins/hyperlink/ui/EditorLinkPicker/index.d.ts +1 -1
- package/dist/types/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +2 -2
- package/dist/types/plugins/image-upload/types.d.ts +2 -2
- package/dist/types/plugins/indentation/commands/utils.d.ts +4 -4
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.d.ts +1 -1
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/shallow-equals.d.ts +1 -1
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/types.d.ts +1 -1
- package/dist/types/plugins/layout/pm-plugins/types.d.ts +2 -2
- package/dist/types/plugins/layout/types.d.ts +1 -1
- package/dist/types/plugins/list/actions/join-list-items-forward.d.ts +3 -3
- package/dist/types/plugins/list/actions/join-list-items-scenarios/join-list-item-with-paragraph.d.ts +1 -1
- package/dist/types/plugins/list/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.d.ts +1 -1
- package/dist/types/plugins/list/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.d.ts +1 -1
- package/dist/types/plugins/list/actions/join-list-items-scenarios/join-paragraph-with-list.d.ts +1 -1
- package/dist/types/plugins/list/actions/join-list-items-scenarios/join-sibling-list-items.d.ts +1 -1
- package/dist/types/plugins/list/actions/merge-lists.d.ts +1 -1
- package/dist/types/plugins/list/commands/indent-list.d.ts +1 -1
- package/dist/types/plugins/list/commands/index.d.ts +1 -1
- package/dist/types/plugins/list/commands/listBackspace.d.ts +1 -1
- package/dist/types/plugins/list/commands/outdent-list.d.ts +1 -1
- package/dist/types/plugins/list/pm-plugins/input-rules/create-list-input-rule.d.ts +1 -1
- package/dist/types/plugins/list/pm-plugins/input-rules/wrapping-join-rule.d.ts +1 -1
- package/dist/types/plugins/list/types.d.ts +1 -1
- package/dist/types/plugins/list/utils/node.d.ts +2 -2
- package/dist/types/plugins/list/utils/replace-content.d.ts +1 -1
- package/dist/types/plugins/list/utils/selection.d.ts +2 -2
- package/dist/types/plugins/macro/actions.d.ts +2 -2
- package/dist/types/plugins/macro/types.d.ts +1 -1
- package/dist/types/plugins/max-content-size/index.d.ts +1 -1
- package/dist/types/plugins/media/commands/linking.d.ts +1 -1
- package/dist/types/plugins/media/media-plugin-options.d.ts +1 -1
- package/dist/types/plugins/media/nodeviews/mediaGroup.d.ts +1 -1
- package/dist/types/plugins/media/nodeviews/mediaInline.d.ts +1 -1
- package/dist/types/plugins/media/nodeviews/mediaNodeUpdater.d.ts +3 -3
- package/dist/types/plugins/media/nodeviews/mediaNodeView/index.d.ts +1 -1
- package/dist/types/plugins/media/nodeviews/mediaSingle.d.ts +1 -1
- package/dist/types/plugins/media/nodeviews/styles.d.ts +1 -1
- package/dist/types/plugins/media/picker-facade.d.ts +7 -7
- package/dist/types/plugins/media/pm-plugins/alt-text/actions.d.ts +4 -4
- package/dist/types/plugins/media/pm-plugins/alt-text/types.d.ts +1 -1
- package/dist/types/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.d.ts +2 -2
- package/dist/types/plugins/media/pm-plugins/linking/actions.d.ts +1 -1
- package/dist/types/plugins/media/pm-plugins/linking/types.d.ts +2 -2
- package/dist/types/plugins/media/pm-plugins/main.d.ts +4 -4
- package/dist/types/plugins/media/pm-plugins/mediaTaskManager.d.ts +2 -2
- package/dist/types/plugins/media/toolbar/alt-text.d.ts +2 -2
- package/dist/types/plugins/media/toolbar/linking.d.ts +1 -1
- package/dist/types/plugins/media/types.d.ts +6 -6
- package/dist/types/plugins/media/ui/ImageBorder/styles.d.ts +1 -1
- package/dist/types/plugins/media/ui/Media/DropPlaceholder.d.ts +1 -1
- package/dist/types/plugins/media/ui/MediaLinkingToolbar.d.ts +1 -1
- package/dist/types/plugins/media/ui/MediaPicker/BrowserWrapper.d.ts +1 -1
- package/dist/types/plugins/media/ui/MediaPicker/ClipboardWrapper.d.ts +1 -1
- package/dist/types/plugins/media/ui/MediaPicker/DropzoneWrapper.d.ts +1 -1
- package/dist/types/plugins/media/ui/MediaPicker/PickerFacadeProvider.d.ts +2 -2
- package/dist/types/plugins/media/ui/MediaPicker/index.d.ts +2 -2
- package/dist/types/plugins/media/ui/ResizableMediaSingle/index.d.ts +2 -2
- package/dist/types/plugins/media/ui/ResizableMediaSingle/types.d.ts +2 -2
- package/dist/types/plugins/media/utils/is-image.d.ts +1 -1
- package/dist/types/plugins/media/utils/media-common.d.ts +1 -1
- package/dist/types/plugins/media/utils/media-files.d.ts +2 -2
- package/dist/types/plugins/media/utils/media-single.d.ts +3 -3
- package/dist/types/plugins/mentions/analytics.d.ts +5 -5
- package/dist/types/plugins/mentions/nodeviews/mention.d.ts +1 -1
- package/dist/types/plugins/mentions/type-ahead/index.d.ts +1 -1
- package/dist/types/plugins/mentions/types.d.ts +2 -2
- package/dist/types/plugins/mobile-dimensions/actions.d.ts +1 -1
- package/dist/types/plugins/mobile-dimensions/types.d.ts +1 -1
- package/dist/types/plugins/mobile-selection/types.d.ts +1 -1
- package/dist/types/plugins/panel/actions.d.ts +1 -1
- package/dist/types/plugins/panel/nodeviews/panel.d.ts +1 -1
- package/dist/types/plugins/panel/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/panel/toolbar.d.ts +1 -1
- package/dist/types/plugins/panel/types.d.ts +2 -2
- package/dist/types/plugins/panel/utils.d.ts +1 -1
- package/dist/types/plugins/paste/actions.d.ts +1 -1
- package/dist/types/plugins/paste/index.d.ts +1 -1
- package/dist/types/plugins/paste/pm-plugins/analytics.d.ts +2 -2
- package/dist/types/plugins/paste/util/index.d.ts +1 -1
- package/dist/types/plugins/placeholder-text/placeholder-text-nodeview.d.ts +1 -1
- package/dist/types/plugins/quick-insert/api.d.ts +1 -1
- package/dist/types/plugins/quick-insert/assets/index.d.ts +1 -1
- package/dist/types/plugins/quick-insert/index.d.ts +1 -1
- package/dist/types/plugins/quick-insert/search.d.ts +2 -2
- package/dist/types/plugins/quick-insert/types.d.ts +4 -4
- package/dist/types/plugins/quick-insert/ui/ModalElementBrowser/index.d.ts +1 -1
- package/dist/types/plugins/save-on-enter/index.d.ts +1 -1
- package/dist/types/plugins/selection/actions.d.ts +1 -1
- package/dist/types/plugins/selection/commands.d.ts +1 -1
- package/dist/types/plugins/selection/gap-cursor/actions.d.ts +2 -2
- package/dist/types/plugins/selection/utils.d.ts +2 -2
- package/dist/types/plugins/status/actions.d.ts +2 -2
- package/dist/types/plugins/status/analytics.d.ts +1 -1
- package/dist/types/plugins/status/nodeviews/status.d.ts +1 -1
- package/dist/types/plugins/status/plugin.d.ts +1 -1
- package/dist/types/plugins/status/types.d.ts +2 -2
- package/dist/types/plugins/submit-editor/index.d.ts +1 -1
- package/dist/types/plugins/tasks-and-decisions/commands.d.ts +3 -3
- package/dist/types/plugins/tasks-and-decisions/pm-plugins/helpers.d.ts +1 -1
- package/dist/types/plugins/tasks-and-decisions/pm-plugins/keymaps.d.ts +1 -1
- package/dist/types/plugins/tasks-and-decisions/types.d.ts +4 -4
- package/dist/types/plugins/text-color/index.d.ts +1 -1
- package/dist/types/plugins/text-color/pm-plugins/main.d.ts +2 -2
- package/dist/types/plugins/text-formatting/commands/text-formatting.d.ts +2 -2
- package/dist/types/plugins/text-formatting/ui/Toolbar/dropdown-menu.d.ts +1 -1
- package/dist/types/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.d.ts +1 -1
- package/dist/types/plugins/text-formatting/ui/Toolbar/hooks/responsive-toolbar-buttons.d.ts +1 -1
- package/dist/types/plugins/text-formatting/ui/Toolbar/index.d.ts +1 -1
- package/dist/types/plugins/text-formatting/ui/Toolbar/more-button.d.ts +1 -1
- package/dist/types/plugins/text-formatting/ui/Toolbar/types.d.ts +2 -2
- package/dist/types/plugins/toolbar-lists-indentation/index.d.ts +1 -1
- package/dist/types/plugins/toolbar-lists-indentation/types.d.ts +1 -1
- package/dist/types/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.d.ts +1 -1
- package/dist/types/plugins/type-ahead/api.d.ts +2 -2
- package/dist/types/plugins/type-ahead/commands/insert-type-ahead-item.d.ts +1 -1
- package/dist/types/plugins/type-ahead/index.d.ts +1 -1
- package/dist/types/plugins/type-ahead/insert-utils.d.ts +1 -1
- package/dist/types/plugins/type-ahead/pm-plugins/decorations.d.ts +2 -2
- package/dist/types/plugins/type-ahead/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/type-ahead/pm-plugins/reducer.d.ts +1 -1
- package/dist/types/plugins/type-ahead/transforms/open-typeahead-at-cursor.d.ts +1 -1
- package/dist/types/plugins/type-ahead/types.d.ts +14 -14
- package/dist/types/plugins/type-ahead/ui/AssistiveText.d.ts +3 -3
- package/dist/types/plugins/type-ahead/ui/InputQuery.d.ts +1 -1
- package/dist/types/plugins/type-ahead/ui/TypeAheadListItem.d.ts +1 -1
- package/dist/types/plugins/type-ahead/ui/TypeAheadPopup.d.ts +1 -1
- package/dist/types/plugins/type-ahead/ui/WrapperTypeAhead.d.ts +1 -1
- package/dist/types/plugins/type-ahead/ui/hooks/use-on-force-select.d.ts +1 -1
- package/dist/types/plugins/type-ahead/utils.d.ts +3 -3
- package/dist/types/plugins/undo-redo/attach-input-meta.d.ts +1 -1
- package/dist/types/plugins/unsupported-content/unsupported-inline-node-view.d.ts +1 -1
- package/dist/types/plugins/view-update-subscription/index.d.ts +2 -2
- package/dist/types/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.d.ts +2 -2
- package/dist/types/plugins/view-update-subscription/subscribe/type-ahead-updates.d.ts +2 -2
- package/dist/types/plugins/width/index.d.ts +1 -1
- package/dist/types/selection-api/api.d.ts +1 -1
- package/dist/types/test-utils.d.ts +1 -1
- package/dist/types/types/allowed-block-types.d.ts +1 -1
- package/dist/types/types/command.d.ts +3 -3
- package/dist/types/types/dom-at-pos.d.ts +1 -1
- package/dist/types/types/editor-config.d.ts +1 -1
- package/dist/types/types/editor-onchange.d.ts +1 -1
- package/dist/types/types/editor-props.d.ts +8 -8
- package/dist/types/types/get-editor-props.d.ts +2 -2
- package/dist/types/types/performance-tracking.d.ts +13 -13
- package/dist/types/types/pm-plugin-list.d.ts +1 -1
- package/dist/types/ui/Addon/types.d.ts +1 -1
- package/dist/types/ui/Appearance/Comment/Toolbar.d.ts +1 -1
- package/dist/types/ui/AppearanceComponents/Mobile.d.ts +1 -1
- package/dist/types/ui/CollapsedEditor/index.d.ts +1 -1
- package/dist/types/ui/ColorPickerButton/index.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/ConfigPanelFieldsLoader.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/Fields/Fieldset.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/types.d.ts +2 -2
- package/dist/types/ui/ConfigPanel/utils.d.ts +2 -2
- package/dist/types/ui/ContentStyles/index.d.ts +3 -3
- package/dist/types/ui/ContextPanel/context.d.ts +2 -2
- package/dist/types/ui/ContextPanel/index.d.ts +4 -4
- package/dist/types/ui/Dropdown/index.d.ts +1 -1
- package/dist/types/ui/EditorContext/index.d.ts +1 -1
- package/dist/types/ui/ElementBrowser/ElementBrowser.d.ts +1 -1
- package/dist/types/ui/ElementBrowser/components/ElementList/ElementList.d.ts +1 -1
- package/dist/types/ui/ElementBrowser/components/ElementList/EmptyState.d.ts +1 -1
- package/dist/types/ui/ElementBrowser/components/ElementList/utils.d.ts +2 -2
- package/dist/types/ui/ElementBrowser/components/StatelessElementBrowser.d.ts +1 -1
- package/dist/types/ui/ElementBrowser/hooks/use-container-width.d.ts +1 -1
- package/dist/types/ui/ElementBrowser/hooks/use-focus.d.ts +1 -1
- package/dist/types/ui/ElementBrowser/hooks/use-select-and-focus-on-arrow-navigation.d.ts +3 -3
- package/dist/types/ui/ElementBrowser/types.d.ts +5 -5
- package/dist/types/ui/ErrorBoundary/index.d.ts +1 -1
- package/dist/types/ui/FloatingToolbar/index.d.ts +1 -1
- package/dist/types/ui/FloatingToolbar/styles.d.ts +1 -1
- package/dist/types/ui/FloatingToolbar/utils.d.ts +1 -1
- package/dist/types/ui/LinkSearch/transformTimeStamp.d.ts +1 -1
- package/dist/types/ui/LinkSearch/types.d.ts +2 -2
- package/dist/types/ui/MediaAndEmbedsToolbar/index.d.ts +1 -1
- package/dist/types/ui/PluginSlot/index.d.ts +2 -2
- package/dist/types/ui/PortalProvider/index.d.ts +5 -5
- package/dist/types/ui/Resizer/index.d.ts +2 -2
- package/dist/types/ui/Resizer/types.d.ts +2 -2
- package/dist/types/ui/Toolbar/toolbar-size.d.ts +2 -2
- package/dist/types/ui/Toolbar/toolbar-types.d.ts +1 -1
- package/dist/types/ui/ToolbarFeedback/index.d.ts +1 -1
- package/dist/types/utils/announcer/announcer.d.ts +1 -1
- package/dist/types/utils/cell-selection.d.ts +1 -1
- package/dist/types/utils/clipboard.d.ts +1 -1
- package/dist/types/utils/commands.d.ts +3 -3
- package/dist/types/utils/count-nodes.d.ts +2 -2
- package/dist/types/utils/document-logger.d.ts +2 -2
- package/dist/types/utils/document.d.ts +1 -1
- package/dist/types/utils/getAttrsWithChangesRecorder.d.ts +1 -1
- package/dist/types/utils/index.d.ts +2 -2
- package/dist/types/utils/input-rules.d.ts +4 -4
- package/dist/types/utils/insert.d.ts +3 -3
- package/dist/types/utils/linking-utils.d.ts +1 -1
- package/dist/types/utils/mark.d.ts +4 -4
- package/dist/types/utils/nodes-by-localIds.d.ts +1 -1
- package/dist/types/utils/performance/components/RenderTracking.d.ts +3 -3
- package/dist/types/utils/performance/instrumented-plugin.d.ts +1 -1
- package/dist/types/utils/performance/plugin-performance-report.d.ts +1 -1
- package/dist/types/utils/performance/simple-measure-to-entries.d.ts +1 -1
- package/dist/types/utils/performance/track-transactions.d.ts +1 -1
- package/dist/types/utils/prepare-extension-provider.d.ts +1 -1
- package/dist/types/utils/react-hooks/use-abortable-effect/index.d.ts +2 -2
- package/dist/types/utils/react-hooks/use-state-from-promise/index.d.ts +1 -1
- package/dist/types/utils/rich-media-utils.d.ts +1 -1
- package/editor/package.json +2 -2
- package/element-browser/package.json +2 -2
- package/extensibility/package.json +2 -2
- package/extensions/package.json +2 -2
- package/labs-next/package.json +2 -2
- package/messages/package.json +2 -2
- package/package.json +24 -15
- package/test-utils/package.json +2 -2
- package/tsconfig.json +2 -1
- package/version-wrapper/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 183.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 183.0.6
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`98c74fa6f26`](https://bitbucket.org/atlassian/atlassian-frontend/commits/98c74fa6f26) - [ux] fix placeholder fallback
|
|
15
|
+
|
|
3
16
|
## 183.0.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -297,8 +297,13 @@ var isSameItem = function isSameItem(leftItem, rightItem) {
|
|
|
297
297
|
}
|
|
298
298
|
return compareItemWithKeys(leftItem, rightItem, ['type', 'onChange', 'options']);
|
|
299
299
|
case 'dropdown':
|
|
300
|
-
if (makeSameType(leftItem, rightItem) && Array.isArray(leftItem.options) && Array.isArray(rightItem.options) &&
|
|
301
|
-
|
|
300
|
+
if (makeSameType(leftItem, rightItem) && Array.isArray(leftItem.options) && Array.isArray(rightItem.options) &&
|
|
301
|
+
// @ts-expect-error TS2345: Argument of type 'DropdownOptionT<Function>[]' is not assignable to parameter of type 'any[][]'
|
|
302
|
+
!(0, _utils.compareArrays)(leftItem.options, rightItem.options, function (left, right) {
|
|
303
|
+
return (
|
|
304
|
+
// @ts-expect-error TS2322: Type '"onClick"' is not assignable to type 'keyof any[]'
|
|
305
|
+
compareItemWithKeys(left, right, ['onClick'])
|
|
306
|
+
);
|
|
302
307
|
})) {
|
|
303
308
|
return false;
|
|
304
309
|
}
|
|
@@ -10,5 +10,5 @@ var _react = require("@emotion/react");
|
|
|
10
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
11
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
12
12
|
var _templateObject;
|
|
13
|
-
var placeholderTextStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror span[data-placeholder] {\n color: ", ";\n display: inline;\n }\n\n .ProseMirror span.pm-placeholder {\n display: inline;\n color: ", ";\n }\n .ProseMirror span.pm-placeholder__text {\n display: inline;\n color: ", ";\n }\n\n .ProseMirror span.pm-placeholder.", " {\n ", "\n }\n\n .ProseMirror span.pm-placeholder__text[data-placeholder]::after {\n color: ", ";\n cursor: text;\n content: attr(data-placeholder);\n display: inline;\n }\n"])), "var(--ds-text-subtlest, ".concat(_colors.
|
|
13
|
+
var placeholderTextStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror span[data-placeholder] {\n color: ", ";\n display: inline;\n }\n\n .ProseMirror span.pm-placeholder {\n display: inline;\n color: ", ";\n }\n .ProseMirror span.pm-placeholder__text {\n display: inline;\n color: ", ";\n }\n\n .ProseMirror span.pm-placeholder.", " {\n ", "\n }\n\n .ProseMirror span.pm-placeholder__text[data-placeholder]::after {\n color: ", ";\n cursor: text;\n content: attr(data-placeholder);\n display: inline;\n }\n"])), "var(--ds-text-subtlest, ".concat(_colors.N200, ")"), "var(--ds-text-subtlest, ".concat(_colors.N200, ")"), "var(--ds-text-subtlest, ".concat(_colors.N200, ")"), _editorSharedStyles.akEditorSelectedNodeClassName, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.Background]), "var(--ds-text-subtlest, ".concat(_colors.N200, ")"));
|
|
14
14
|
exports.placeholderTextStyles = placeholderTextStyles;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.nextMajorVersion = exports.name = void 0;
|
|
7
7
|
var name = "@atlaskit/editor-core";
|
|
8
8
|
exports.name = name;
|
|
9
|
-
var version = "183.0.
|
|
9
|
+
var version = "183.0.8";
|
|
10
10
|
exports.version = version;
|
|
11
11
|
var nextMajorVersion = function nextMajorVersion() {
|
|
12
12
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
package/dist/cjs/version.json
CHANGED
|
@@ -299,7 +299,11 @@ export const isSameItem = (leftItem, rightItem) => {
|
|
|
299
299
|
}
|
|
300
300
|
return compareItemWithKeys(leftItem, rightItem, ['type', 'onChange', 'options']);
|
|
301
301
|
case 'dropdown':
|
|
302
|
-
if (makeSameType(leftItem, rightItem) && Array.isArray(leftItem.options) && Array.isArray(rightItem.options) &&
|
|
302
|
+
if (makeSameType(leftItem, rightItem) && Array.isArray(leftItem.options) && Array.isArray(rightItem.options) &&
|
|
303
|
+
// @ts-expect-error TS2345: Argument of type 'DropdownOptionT<Function>[]' is not assignable to parameter of type 'any[][]'
|
|
304
|
+
!compareArrays(leftItem.options, rightItem.options, (left, right) =>
|
|
305
|
+
// @ts-expect-error TS2322: Type '"onClick"' is not assignable to type 'keyof any[]'
|
|
306
|
+
compareItemWithKeys(left, right, ['onClick']))) {
|
|
303
307
|
return false;
|
|
304
308
|
}
|
|
305
309
|
return compareItemWithKeys(leftItem, rightItem, ['type', 'options']);
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
-
import {
|
|
2
|
+
import { N200 } from '@atlaskit/theme/colors';
|
|
3
3
|
import { SelectionStyle, getSelectionStyles, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
4
4
|
export const placeholderTextStyles = css`
|
|
5
5
|
.ProseMirror span[data-placeholder] {
|
|
6
|
-
color: ${`var(--ds-text-subtlest, ${
|
|
6
|
+
color: ${`var(--ds-text-subtlest, ${N200})`};
|
|
7
7
|
display: inline;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.ProseMirror span.pm-placeholder {
|
|
11
11
|
display: inline;
|
|
12
|
-
color: ${`var(--ds-text-subtlest, ${
|
|
12
|
+
color: ${`var(--ds-text-subtlest, ${N200})`};
|
|
13
13
|
}
|
|
14
14
|
.ProseMirror span.pm-placeholder__text {
|
|
15
15
|
display: inline;
|
|
16
|
-
color: ${`var(--ds-text-subtlest, ${
|
|
16
|
+
color: ${`var(--ds-text-subtlest, ${N200})`};
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.ProseMirror span.pm-placeholder.${akEditorSelectedNodeClassName} {
|
|
@@ -21,7 +21,7 @@ export const placeholderTextStyles = css`
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.ProseMirror span.pm-placeholder__text[data-placeholder]::after {
|
|
24
|
-
color: ${`var(--ds-text-subtlest, ${
|
|
24
|
+
color: ${`var(--ds-text-subtlest, ${N200})`};
|
|
25
25
|
cursor: text;
|
|
26
26
|
content: attr(data-placeholder);
|
|
27
27
|
display: inline;
|
package/dist/es2019/version.json
CHANGED
|
@@ -288,8 +288,13 @@ export var isSameItem = function isSameItem(leftItem, rightItem) {
|
|
|
288
288
|
}
|
|
289
289
|
return compareItemWithKeys(leftItem, rightItem, ['type', 'onChange', 'options']);
|
|
290
290
|
case 'dropdown':
|
|
291
|
-
if (makeSameType(leftItem, rightItem) && Array.isArray(leftItem.options) && Array.isArray(rightItem.options) &&
|
|
292
|
-
|
|
291
|
+
if (makeSameType(leftItem, rightItem) && Array.isArray(leftItem.options) && Array.isArray(rightItem.options) &&
|
|
292
|
+
// @ts-expect-error TS2345: Argument of type 'DropdownOptionT<Function>[]' is not assignable to parameter of type 'any[][]'
|
|
293
|
+
!compareArrays(leftItem.options, rightItem.options, function (left, right) {
|
|
294
|
+
return (
|
|
295
|
+
// @ts-expect-error TS2322: Type '"onClick"' is not assignable to type 'keyof any[]'
|
|
296
|
+
compareItemWithKeys(left, right, ['onClick'])
|
|
297
|
+
);
|
|
293
298
|
})) {
|
|
294
299
|
return false;
|
|
295
300
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
|
-
import {
|
|
4
|
+
import { N200 } from '@atlaskit/theme/colors';
|
|
5
5
|
import { SelectionStyle, getSelectionStyles, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
6
|
-
export var placeholderTextStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror span[data-placeholder] {\n color: ", ";\n display: inline;\n }\n\n .ProseMirror span.pm-placeholder {\n display: inline;\n color: ", ";\n }\n .ProseMirror span.pm-placeholder__text {\n display: inline;\n color: ", ";\n }\n\n .ProseMirror span.pm-placeholder.", " {\n ", "\n }\n\n .ProseMirror span.pm-placeholder__text[data-placeholder]::after {\n color: ", ";\n cursor: text;\n content: attr(data-placeholder);\n display: inline;\n }\n"])), "var(--ds-text-subtlest, ".concat(
|
|
6
|
+
export var placeholderTextStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror span[data-placeholder] {\n color: ", ";\n display: inline;\n }\n\n .ProseMirror span.pm-placeholder {\n display: inline;\n color: ", ";\n }\n .ProseMirror span.pm-placeholder__text {\n display: inline;\n color: ", ";\n }\n\n .ProseMirror span.pm-placeholder.", " {\n ", "\n }\n\n .ProseMirror span.pm-placeholder__text[data-placeholder]::after {\n color: ", ";\n cursor: text;\n content: attr(data-placeholder);\n display: inline;\n }\n"])), "var(--ds-text-subtlest, ".concat(N200, ")"), "var(--ds-text-subtlest, ".concat(N200, ")"), "var(--ds-text-subtlest, ".concat(N200, ")"), akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.Background]), "var(--ds-text-subtlest, ".concat(N200, ")"));
|
package/dist/esm/version.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { EditorView } from 'prosemirror-view';
|
|
2
2
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
|
-
|
|
4
|
+
type Props = {
|
|
5
5
|
getEditorView: () => EditorView | undefined | null;
|
|
6
6
|
getCreateUIAnalyticsEvent: () => CreateUIAnalyticsEvent | undefined | null;
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { Transaction, EditorState } from 'prosemirror-state';
|
|
3
|
-
|
|
3
|
+
type AttachPayloadIntoTransaction = (props: {
|
|
4
4
|
payload: AnalyticsEventPayload;
|
|
5
5
|
editorState: EditorState;
|
|
6
6
|
tr: Transaction;
|
|
@@ -10,8 +10,8 @@ export declare const createNewParagraphBelow: Command;
|
|
|
10
10
|
export declare function createParagraphNear(append?: boolean): Command;
|
|
11
11
|
export declare function addParagraphAtEnd(tr: Transaction): void;
|
|
12
12
|
export declare function createParagraphAtEnd(): Command;
|
|
13
|
-
export declare const changeImageAlignment: (align?: AlignmentState
|
|
14
|
-
export declare const createToggleBlockMarkOnRange: <T = object>(markType: MarkType, getAttrs: (prevAttrs?: T | undefined, node?: PMNode
|
|
13
|
+
export declare const changeImageAlignment: (align?: AlignmentState) => Command;
|
|
14
|
+
export declare const createToggleBlockMarkOnRange: <T extends {} = object>(markType: MarkType, getAttrs: (prevAttrs?: T | undefined, node?: PMNode) => false | T | undefined, allowedBlocks?: NodeType<any>[] | ((schema: Schema, node: PMNode, parent: PMNode) => boolean) | undefined) => (from: number, to: number, tr: Transaction, state: EditorState) => boolean;
|
|
15
15
|
/**
|
|
16
16
|
* Toggles block mark based on the return type of `getAttrs`.
|
|
17
17
|
* This is similar to ProseMirror's `getAttrs` from `AttributeSpec`
|
|
@@ -19,5 +19,5 @@ export declare const createToggleBlockMarkOnRange: <T = object>(markType: MarkTy
|
|
|
19
19
|
* return `undefined for no-op.
|
|
20
20
|
* return an `object` to update the mark.
|
|
21
21
|
*/
|
|
22
|
-
export declare const toggleBlockMark: <T = object>(markType: MarkType, getAttrs: (prevAttrs?: T | undefined, node?: PMNode
|
|
22
|
+
export declare const toggleBlockMark: <T extends {} = object>(markType: MarkType, getAttrs: (prevAttrs?: T | undefined, node?: PMNode) => false | T | undefined, allowedBlocks?: NodeType<any>[] | ((schema: Schema, node: PMNode, parent: PMNode) => boolean) | undefined) => Command;
|
|
23
23
|
export declare const clearEditorContent: Command;
|
|
@@ -5,7 +5,7 @@ import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider
|
|
|
5
5
|
import { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
6
6
|
import type { UserBrowserExtensionResults } from '@atlaskit/editor-common/utils';
|
|
7
7
|
import { FeatureFlags } from '../types/feature-flags';
|
|
8
|
-
export
|
|
8
|
+
export type ErrorBoundaryProps = {
|
|
9
9
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
10
10
|
contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
|
|
11
11
|
editorView?: EditorView;
|
|
@@ -13,10 +13,10 @@ export declare type ErrorBoundaryProps = {
|
|
|
13
13
|
children: React.ReactNode;
|
|
14
14
|
featureFlags: FeatureFlags;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type ErrorBoundaryState = {
|
|
17
17
|
error?: Error;
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
type AnalyticsErrorBoundaryErrorInfo = {
|
|
20
20
|
componentStack: string;
|
|
21
21
|
};
|
|
22
22
|
export declare class ErrorBoundaryWithEditorView extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
@@ -105,7 +105,7 @@ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewP
|
|
|
105
105
|
private onEditorViewStateUpdated;
|
|
106
106
|
private trackValidTransactions;
|
|
107
107
|
private dispatchTransaction;
|
|
108
|
-
getDirectEditorProps: (state?: EditorState
|
|
108
|
+
getDirectEditorProps: (state?: EditorState) => DirectEditorProps;
|
|
109
109
|
private createEditorView;
|
|
110
110
|
handleEditorViewRef: (node: HTMLDivElement) => void;
|
|
111
111
|
dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void;
|
|
@@ -7,7 +7,7 @@ import { MarkConfig, NodeConfig } from '../types/pm-config';
|
|
|
7
7
|
import { EditorReactContext } from '../types/editor-react-context';
|
|
8
8
|
import { FeatureFlags } from '../types/feature-flags';
|
|
9
9
|
import { IntlShape } from 'react-intl-next';
|
|
10
|
-
export
|
|
10
|
+
export type LightPMPluginFactoryParams = {
|
|
11
11
|
schema: Schema;
|
|
12
12
|
dispatch: Dispatch;
|
|
13
13
|
eventDispatcher: EventDispatcher;
|
|
@@ -20,12 +20,12 @@ export declare type LightPMPluginFactoryParams = {
|
|
|
20
20
|
featureFlags: FeatureFlags;
|
|
21
21
|
getIntl: () => IntlShape;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
24
|
-
export
|
|
23
|
+
export type LightPMPluginFactory = (params: LightPMPluginFactoryParams) => SafePlugin | undefined;
|
|
24
|
+
export type LightPMPlugin = {
|
|
25
25
|
name: string;
|
|
26
26
|
plugin: LightPMPluginFactory;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type OnEditorViewStateUpdated = (props: {
|
|
29
29
|
readonly originalTransaction: Readonly<Transaction>;
|
|
30
30
|
readonly transactions: Transaction[];
|
|
31
31
|
readonly oldEditorState: Readonly<EditorState>;
|
|
@@ -4,7 +4,7 @@ import EditorActions from '../../actions';
|
|
|
4
4
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
5
5
|
import { QuickInsertProvider } from '../../plugins/quick-insert/types';
|
|
6
6
|
import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
7
|
-
export
|
|
7
|
+
export type ProviderFactoryState = {
|
|
8
8
|
extensionProvider?: ExtensionProvider;
|
|
9
9
|
quickInsertProvider?: Promise<QuickInsertProvider>;
|
|
10
10
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl-next';
|
|
2
2
|
import EditorActions from '../../actions';
|
|
3
3
|
import { EditorProps } from '../../types/editor-props';
|
|
4
|
-
export
|
|
4
|
+
export type Context = {
|
|
5
5
|
editorActions?: EditorActions;
|
|
6
6
|
intl: IntlShape;
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Providers } from '@atlaskit/editor-common/provider-factory';
|
|
2
2
|
import { EditorProps } from '../../types/editor-props';
|
|
3
|
-
|
|
3
|
+
type Complete<T> = {
|
|
4
4
|
[P in keyof Required<T>]: Pick<T, P> extends Required<Pick<T, P>> ? T[P] : T[P] | undefined;
|
|
5
5
|
};
|
|
6
|
-
|
|
7
|
-
|
|
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
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
9
|
export {};
|
package/dist/types/editor.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ import { QuickInsertOptions, QuickInsertProvider } from './plugins/quick-insert/
|
|
|
14
14
|
import { EditorProps } from './types/editor-props';
|
|
15
15
|
import { ProviderFactoryState } from './editor-next/hooks/useProviderFactory';
|
|
16
16
|
export type { AllowedBlockTypes, Command, CommandDispatch, DomAtPos, EditorAppearance, EditorAppearanceComponentProps, EditorConfig, EditorInstance, EditorPlugin, EditorProps, ExtensionConfig, ExtensionProvidersProp, FeedbackInfo, MarkConfig, MessageDescriptor, NodeConfig, NodeViewConfig, PluginsOptions, PMPlugin, PMPluginCreateConfig, PMPluginFactory, PMPluginFactoryParams, ReactComponents, ToolbarUIComponentFactory, ToolbarUiComponentFactoryParams, UIComponentFactory, UiComponentFactoryParams, } from './types';
|
|
17
|
-
|
|
17
|
+
type PresetState = {
|
|
18
18
|
preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
|
|
19
19
|
};
|
|
20
20
|
export default class Editor extends React.Component<EditorProps, ProviderFactoryState & PresetState> {
|
|
@@ -90,7 +90,7 @@ export default class Editor extends React.Component<EditorProps, ProviderFactory
|
|
|
90
90
|
* Please reach out to the Editor team if you were previously using this
|
|
91
91
|
* and need to find a workaround.
|
|
92
92
|
*/
|
|
93
|
-
prepareQuickInsertProvider: (extensionProvider?: ExtensionProvider
|
|
93
|
+
prepareQuickInsertProvider: (extensionProvider?: ExtensionProvider, quickInsert?: QuickInsertOptions) => Promise<QuickInsertProvider> | undefined;
|
|
94
94
|
/**
|
|
95
95
|
* @private
|
|
96
96
|
* @deprecated - Do not override this at all, this is an antipattern.
|
package/dist/types/i18n/cs.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.addAltText': string;
|
|
3
9
|
'fabric.editor.addImageBorder': string;
|
|
@@ -246,10 +252,4 @@ declare const _default: {
|
|
|
246
252
|
'fabric.editor.wrapRight': string;
|
|
247
253
|
'fabric.emoji.label': string;
|
|
248
254
|
};
|
|
249
|
-
/**
|
|
250
|
-
* NOTE:
|
|
251
|
-
*
|
|
252
|
-
* This file is automatically generated by Traduki 2.0.
|
|
253
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
254
|
-
*/
|
|
255
255
|
export default _default;
|
package/dist/types/i18n/da.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.addAltText': string;
|
|
3
9
|
'fabric.editor.addImageBorder': string;
|
|
@@ -245,10 +251,4 @@ declare const _default: {
|
|
|
245
251
|
'fabric.editor.wrapRight': string;
|
|
246
252
|
'fabric.emoji.label': string;
|
|
247
253
|
};
|
|
248
|
-
/**
|
|
249
|
-
* NOTE:
|
|
250
|
-
*
|
|
251
|
-
* This file is automatically generated by Traduki 2.0.
|
|
252
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
253
|
-
*/
|
|
254
254
|
export default _default;
|
package/dist/types/i18n/de.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.addAltText': string;
|
|
3
9
|
'fabric.editor.addImageBorder': string;
|
|
@@ -245,10 +251,4 @@ declare const _default: {
|
|
|
245
251
|
'fabric.editor.wrapRight': string;
|
|
246
252
|
'fabric.emoji.label': string;
|
|
247
253
|
};
|
|
248
|
-
/**
|
|
249
|
-
* NOTE:
|
|
250
|
-
*
|
|
251
|
-
* This file is automatically generated by Traduki 2.0.
|
|
252
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
253
|
-
*/
|
|
254
254
|
export default _default;
|
package/dist/types/i18n/en.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.addAltText': string;
|
|
3
9
|
'fabric.editor.addImageBorder': string;
|
|
@@ -248,10 +254,4 @@ declare const _default: {
|
|
|
248
254
|
'fabric.editor.wrapRight': string;
|
|
249
255
|
'fabric.emoji.label': string;
|
|
250
256
|
};
|
|
251
|
-
/**
|
|
252
|
-
* NOTE:
|
|
253
|
-
*
|
|
254
|
-
* This file is automatically generated by Traduki 2.0.
|
|
255
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
256
|
-
*/
|
|
257
257
|
export default _default;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.addAltText': string;
|
|
3
9
|
'fabric.editor.addImageBorder': string;
|
|
@@ -248,10 +254,4 @@ declare const _default: {
|
|
|
248
254
|
'fabric.editor.wrapRight': string;
|
|
249
255
|
'fabric.emoji.label': string;
|
|
250
256
|
};
|
|
251
|
-
/**
|
|
252
|
-
* NOTE:
|
|
253
|
-
*
|
|
254
|
-
* This file is automatically generated by Traduki 2.0.
|
|
255
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
256
|
-
*/
|
|
257
257
|
export default _default;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.addAltText': string;
|
|
3
9
|
'fabric.editor.addImageBorder': string;
|
|
@@ -248,10 +254,4 @@ declare const _default: {
|
|
|
248
254
|
'fabric.editor.wrapRight': string;
|
|
249
255
|
'fabric.emoji.label': string;
|
|
250
256
|
};
|
|
251
|
-
/**
|
|
252
|
-
* NOTE:
|
|
253
|
-
*
|
|
254
|
-
* This file is automatically generated by Traduki 2.0.
|
|
255
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
256
|
-
*/
|
|
257
257
|
export default _default;
|
package/dist/types/i18n/es.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.addAltText': string;
|
|
3
9
|
'fabric.editor.addImageBorder': string;
|
|
@@ -245,10 +251,4 @@ declare const _default: {
|
|
|
245
251
|
'fabric.editor.wrapRight': string;
|
|
246
252
|
'fabric.emoji.label': string;
|
|
247
253
|
};
|
|
248
|
-
/**
|
|
249
|
-
* NOTE:
|
|
250
|
-
*
|
|
251
|
-
* This file is automatically generated by Traduki 2.0.
|
|
252
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
253
|
-
*/
|
|
254
254
|
export default _default;
|
package/dist/types/i18n/et.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.action': string;
|
|
3
9
|
'fabric.editor.action.description': string;
|
|
@@ -159,10 +165,4 @@ declare const _default: {
|
|
|
159
165
|
'fabric.editor.wrapLeft': string;
|
|
160
166
|
'fabric.editor.wrapRight': string;
|
|
161
167
|
};
|
|
162
|
-
/**
|
|
163
|
-
* NOTE:
|
|
164
|
-
*
|
|
165
|
-
* This file is automatically generated by Traduki 2.0.
|
|
166
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
167
|
-
*/
|
|
168
168
|
export default _default;
|
package/dist/types/i18n/fi.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.addAltText': string;
|
|
3
9
|
'fabric.editor.addImageBorder': string;
|
|
@@ -245,10 +251,4 @@ declare const _default: {
|
|
|
245
251
|
'fabric.editor.wrapRight': string;
|
|
246
252
|
'fabric.emoji.label': string;
|
|
247
253
|
};
|
|
248
|
-
/**
|
|
249
|
-
* NOTE:
|
|
250
|
-
*
|
|
251
|
-
* This file is automatically generated by Traduki 2.0.
|
|
252
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
253
|
-
*/
|
|
254
254
|
export default _default;
|
package/dist/types/i18n/fr.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.addAltText': string;
|
|
3
9
|
'fabric.editor.addImageBorder': string;
|
|
@@ -245,10 +251,4 @@ declare const _default: {
|
|
|
245
251
|
'fabric.editor.wrapRight': string;
|
|
246
252
|
'fabric.emoji.label': string;
|
|
247
253
|
};
|
|
248
|
-
/**
|
|
249
|
-
* NOTE:
|
|
250
|
-
*
|
|
251
|
-
* This file is automatically generated by Traduki 2.0.
|
|
252
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
253
|
-
*/
|
|
254
254
|
export default _default;
|
package/dist/types/i18n/hu.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.addAltText': string;
|
|
3
9
|
'fabric.editor.addImageBorder': string;
|
|
@@ -245,10 +251,4 @@ declare const _default: {
|
|
|
245
251
|
'fabric.editor.wrapRight': string;
|
|
246
252
|
'fabric.emoji.label': string;
|
|
247
253
|
};
|
|
248
|
-
/**
|
|
249
|
-
* NOTE:
|
|
250
|
-
*
|
|
251
|
-
* This file is automatically generated by Traduki 2.0.
|
|
252
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
253
|
-
*/
|
|
254
254
|
export default _default;
|
package/dist/types/i18n/is.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by i18n-tools.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.mediaAddLink': string;
|
|
3
9
|
'fabric.editor.openLink': string;
|
|
@@ -144,10 +150,4 @@ declare const _default: {
|
|
|
144
150
|
'fabric.editor.italic': string;
|
|
145
151
|
'fabric.editor.selected': string;
|
|
146
152
|
};
|
|
147
|
-
/**
|
|
148
|
-
* NOTE:
|
|
149
|
-
*
|
|
150
|
-
* This file is automatically generated by i18n-tools.
|
|
151
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
152
|
-
*/
|
|
153
153
|
export default _default;
|
package/dist/types/i18n/it.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.addAltText': string;
|
|
3
9
|
'fabric.editor.addImageBorder': string;
|
|
@@ -245,10 +251,4 @@ declare const _default: {
|
|
|
245
251
|
'fabric.editor.wrapRight': string;
|
|
246
252
|
'fabric.emoji.label': string;
|
|
247
253
|
};
|
|
248
|
-
/**
|
|
249
|
-
* NOTE:
|
|
250
|
-
*
|
|
251
|
-
* This file is automatically generated by Traduki 2.0.
|
|
252
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
253
|
-
*/
|
|
254
254
|
export default _default;
|
package/dist/types/i18n/ja.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.addAltText': string;
|
|
3
9
|
'fabric.editor.addImageBorder': string;
|
|
@@ -245,10 +251,4 @@ declare const _default: {
|
|
|
245
251
|
'fabric.editor.wrapRight': string;
|
|
246
252
|
'fabric.emoji.label': string;
|
|
247
253
|
};
|
|
248
|
-
/**
|
|
249
|
-
* NOTE:
|
|
250
|
-
*
|
|
251
|
-
* This file is automatically generated by Traduki 2.0.
|
|
252
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
253
|
-
*/
|
|
254
254
|
export default _default;
|