@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
|
@@ -5,11 +5,11 @@ import { GridType } from '../../plugins/grid/types';
|
|
|
5
5
|
import { EditorView } from 'prosemirror-view';
|
|
6
6
|
import { getPosHandler } from '../../nodeviews/types';
|
|
7
7
|
import { DispatchAnalyticsEvent } from '../../plugins/analytics';
|
|
8
|
-
export
|
|
8
|
+
export type EnabledHandles = {
|
|
9
9
|
left?: boolean;
|
|
10
10
|
right?: boolean;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type Props = MediaSingleProps & {
|
|
13
13
|
updateSize: (width: number | null, layout: RichMediaLayout) => void;
|
|
14
14
|
displayGrid: (show: boolean, type: GridType, highlight?: number[] | string[]) => void;
|
|
15
15
|
getPos: getPosHandler;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { EditorAppearance } from '../../types';
|
|
2
2
|
import { ToolbarSize } from './types';
|
|
3
|
-
export declare const toolbarSizeToWidth: (toolbarSize: ToolbarSize, appearance?: EditorAppearance
|
|
4
|
-
export declare const widthToToolbarSize: (toolbarWidth: number, appearance?: EditorAppearance
|
|
3
|
+
export declare const toolbarSizeToWidth: (toolbarSize: ToolbarSize, appearance?: EditorAppearance) => number;
|
|
4
|
+
export declare const widthToToolbarSize: (toolbarWidth: number, appearance?: EditorAppearance) => ToolbarSize;
|
|
@@ -26,7 +26,7 @@ export interface ToolbarProps {
|
|
|
26
26
|
hasMinWidth?: boolean;
|
|
27
27
|
twoLineEditorToolbar?: boolean;
|
|
28
28
|
}
|
|
29
|
-
export
|
|
29
|
+
export type ToolbarWithSizeDetectorProps = Omit<ToolbarProps, 'toolbarSize'>;
|
|
30
30
|
export interface ToolbarInnerProps extends ToolbarProps {
|
|
31
31
|
isToolbarReducedSpacing: boolean;
|
|
32
32
|
isReducedSpacing?: boolean;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
3
|
import { PureComponent } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
|
-
export
|
|
5
|
+
export type EditorProduct = 'bitbucket' | 'jira' | 'confluence' | 'stride' | undefined;
|
|
6
6
|
export interface Props {
|
|
7
7
|
/** @deprecated To pass package version use feedbackInfo property – <Editor feedbackInfo={{ packageVersion }} /> */
|
|
8
8
|
packageVersion?: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
2
2
|
import { Node } from 'prosemirror-model';
|
|
3
|
-
export declare const cellSelectionNodesBetween: (selection: CellSelection, doc: Node, f: (node: Node, pos: number, parent: Node, index: number) => boolean | null | undefined | void, startPos?: number
|
|
3
|
+
export declare const cellSelectionNodesBetween: (selection: CellSelection, doc: Node, f: (node: Node, pos: number, parent: Node, index: number) => boolean | null | undefined | void, startPos?: number) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare function checkClipboardTypes(type: DOMStringList | ReadonlyArray<string>, item: string): boolean;
|
|
2
2
|
export declare function isPastedFile(rawEvent: Event): boolean;
|
|
3
3
|
export declare const copyToClipboard: (textToCopy: string) => Promise<void>;
|
|
4
|
-
export declare const copyHTMLToClipboard: (elementToCopy: HTMLElement, plainTextToCopy?: string
|
|
4
|
+
export declare const copyHTMLToClipboard: (elementToCopy: HTMLElement, plainTextToCopy?: string) => Promise<void>;
|
|
@@ -2,7 +2,7 @@ import { EditorState, Transaction } from 'prosemirror-state';
|
|
|
2
2
|
import { EditorView } from 'prosemirror-view';
|
|
3
3
|
import { ResolvedPos, MarkType, Mark, Node as PMNode, Fragment } from 'prosemirror-model';
|
|
4
4
|
import { Command, HigherOrderCommand } from '../types/command';
|
|
5
|
-
|
|
5
|
+
type Predicate = (state: EditorState, view?: EditorView) => boolean;
|
|
6
6
|
declare const filter: (predicates: Predicate[] | Predicate, cmd: Command) => Command;
|
|
7
7
|
declare const isEmptySelectionAtStart: (state: EditorState) => boolean;
|
|
8
8
|
declare const isEmptySelectionAtEnd: (state: EditorState) => boolean;
|
|
@@ -15,7 +15,7 @@ declare const isFirstChildOfParent: (state: EditorState) => boolean;
|
|
|
15
15
|
* the current selection's parent, which will be the containing node when the selection
|
|
16
16
|
* is usually inside the text content.
|
|
17
17
|
*/
|
|
18
|
-
declare const isNthParentOfType: (nodeType: string, depthAway: number) => (state: EditorState, view?: EditorView
|
|
18
|
+
declare const isNthParentOfType: (nodeType: string, depthAway: number) => (state: EditorState, view?: EditorView) => boolean;
|
|
19
19
|
declare function findCutBefore($pos: ResolvedPos): ResolvedPos | null;
|
|
20
20
|
declare const applyMarkOnRange: (from: number, to: number, removeMark: boolean, mark: Mark, tr: Transaction) => Transaction<any>;
|
|
21
21
|
/**
|
|
@@ -28,7 +28,7 @@ declare const toggleMark: (markType: MarkType, attrs?: {
|
|
|
28
28
|
[key: string]: any;
|
|
29
29
|
} | undefined) => Command;
|
|
30
30
|
declare const withScrollIntoView: HigherOrderCommand;
|
|
31
|
-
export
|
|
31
|
+
export type WalkNode = {
|
|
32
32
|
$pos: ResolvedPos;
|
|
33
33
|
foundNode: boolean;
|
|
34
34
|
};
|
|
@@ -2,5 +2,5 @@ import { Node as PMNode } from 'prosemirror-model';
|
|
|
2
2
|
import type { SimplifiedNode } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
export type { SimplifiedNode };
|
|
4
4
|
export declare const getDocStructure: (doc: PMNode, options?: {
|
|
5
|
-
compact?: boolean
|
|
6
|
-
}
|
|
5
|
+
compact?: boolean;
|
|
6
|
+
}) => SimplifiedNode | string;
|
|
@@ -37,7 +37,7 @@ export declare const getStepRange: (transaction: Transaction | ReadonlyTransacti
|
|
|
37
37
|
*/
|
|
38
38
|
export declare const findFarthestParentNode: (predicate: (node: Node) => boolean) => ($pos: ResolvedPos) => ContentNodeWithPos | null;
|
|
39
39
|
export declare const isSelectionEndOfParagraph: (state: EditorState) => boolean;
|
|
40
|
-
export
|
|
40
|
+
export type ChangedFn = (node: Node<any>, pos: number, parent: Node<any>, index: number) => boolean | null | undefined | void;
|
|
41
41
|
export declare function getChangedNodesIn({ tr, doc, }: {
|
|
42
42
|
tr: ReadonlyTransaction | Transaction;
|
|
43
43
|
doc: Node;
|
|
@@ -5,7 +5,7 @@ export interface GetAttrsChange<T, V> {
|
|
|
5
5
|
newAttrs: T | false | undefined;
|
|
6
6
|
options: V;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export type GetAttrsWithChangesRecorder<T, V> = {
|
|
9
9
|
getAttrs(prevAttrs?: T | undefined, node?: Node): T | false | undefined;
|
|
10
10
|
getAndResetAttrsChanges(): GetAttrsChange<T, V>[];
|
|
11
11
|
};
|
|
@@ -45,8 +45,8 @@ export declare function filterChildrenBetween(doc: Node, from: number, to: numbe
|
|
|
45
45
|
export declare function dedupe<T>(list?: T[], iteratee?: (p: T) => T[keyof T] | T): T[];
|
|
46
46
|
export { isTextSelection, isElementInTableCell, isLastItemMediaGroup, nonNullable, } from '@atlaskit/editor-common/utils';
|
|
47
47
|
/** Helper type for single arg function */
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
type Func<A, B> = (a: A) => B;
|
|
49
|
+
type FuncN<A extends any[], B> = (...args: A) => B;
|
|
50
50
|
/**
|
|
51
51
|
* Compose 1 to n functions.
|
|
52
52
|
* @param func first function
|
|
@@ -4,21 +4,21 @@ import { EditorState } from 'prosemirror-state';
|
|
|
4
4
|
import { InputRuleHandler, InputRuleWrapper } from '@atlaskit/prosemirror-input-rules';
|
|
5
5
|
import { AnalyticsEventPayload } from '../plugins/analytics/types';
|
|
6
6
|
import { JOIN_SCENARIOS_WHEN_TYPING_TO_INSERT_LIST } from '@atlaskit/editor-common/analytics';
|
|
7
|
-
|
|
7
|
+
type GetPayload = AnalyticsEventPayload | ((state: EditorState, matchResult: RegExpExecArray) => AnalyticsEventPayload);
|
|
8
8
|
export declare const ruleWithAnalytics: (getPayload: GetPayload) => (originalRule: InputRuleWrapper) => InputRuleWrapper;
|
|
9
9
|
export declare const createRule: (match: RegExp, handler: InputRuleHandler) => InputRuleWrapper;
|
|
10
|
-
|
|
10
|
+
type Options = {
|
|
11
11
|
isBlockNodeRule?: boolean;
|
|
12
12
|
allowInsertTextOnDocument?: boolean;
|
|
13
13
|
};
|
|
14
14
|
export declare const createPlugin: (pluginName: string, rules: Array<InputRuleWrapper>, options?: Options) => SafePlugin;
|
|
15
|
-
|
|
15
|
+
type WrappingTextRuleProps = {
|
|
16
16
|
match: RegExp;
|
|
17
17
|
nodeType: NodeType;
|
|
18
18
|
getAttrs?: Record<string, any> | ((matchResult: RegExpExecArray) => Record<string, any>);
|
|
19
19
|
};
|
|
20
20
|
export declare const createWrappingTextBlockRule: ({ match, nodeType, getAttrs, }: WrappingTextRuleProps) => InputRuleWrapper;
|
|
21
|
-
|
|
21
|
+
type WrappingRuleProps = {
|
|
22
22
|
match: RegExp;
|
|
23
23
|
nodeType: NodeType;
|
|
24
24
|
getAttrs?: Record<string, any> | ((matchResult: RegExpExecArray) => Record<string, any>);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Node, Fragment, NodeType } from 'prosemirror-model';
|
|
2
2
|
import { Transaction, EditorState } from 'prosemirror-state';
|
|
3
|
-
export
|
|
3
|
+
export type InsertableContent = Node | Fragment;
|
|
4
4
|
export declare enum LookDirection {
|
|
5
5
|
Before = "before",
|
|
6
6
|
After = "after"
|
|
7
7
|
}
|
|
8
|
-
export declare const safeInsert: (content: InsertableContent, position?: number
|
|
8
|
+
export declare const safeInsert: (content: InsertableContent, position?: number) => (tr: Transaction) => Transaction<any> | null;
|
|
9
9
|
/**
|
|
10
10
|
* Method extracted from typeahed plugin to be shared with the element browser on handling element insertion.
|
|
11
11
|
*/
|
|
12
|
-
export declare const insertSelectedItem: (maybeNode?:
|
|
12
|
+
export declare const insertSelectedItem: (maybeNode?: Node | Object | string | Fragment, opts?: {
|
|
13
13
|
selectInlineNode?: boolean;
|
|
14
14
|
}) => (state: EditorState, tr: Transaction<any>, start: number) => Transaction<any>;
|
|
15
15
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, AnalyticsEventPayload, ACTION_SUBJECT_ID, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
export declare const buildEditLinkPayload: (type: LinkType) => AnalyticsEventPayload;
|
|
3
|
-
export
|
|
3
|
+
export type LinkType = ACTION_SUBJECT_ID.CARD_INLINE | ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.EMBEDS | ACTION_SUBJECT_ID.HYPERLINK;
|
|
4
4
|
export declare const buildVisitedLinkPayload: (type: LinkType) => AnalyticsEventPayload;
|
|
5
5
|
export declare const buildOpenedSettingsPayload: (type: LinkType) => AnalyticsEventPayload;
|
|
6
6
|
export declare const unlinkPayload: (type: LinkType) => {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Node, Mark, MarkType, NodeType } from 'prosemirror-model';
|
|
2
2
|
import { SelectionRange, EditorState, Transaction } from 'prosemirror-state';
|
|
3
3
|
export declare const isMarkAllowedInRange: (doc: Node, ranges: Array<SelectionRange>, type: MarkType) => boolean;
|
|
4
|
-
export declare const isMarkExcluded: (type: MarkType, marks?: Mark
|
|
4
|
+
export declare const isMarkExcluded: (type: MarkType, marks?: Array<Mark> | null) => boolean;
|
|
5
5
|
export declare const removeBlockMarks: (state: EditorState, marks: Array<MarkType | undefined>) => Transaction | undefined;
|
|
6
6
|
/**
|
|
7
7
|
* Removes marks from nodes in the current selection that are not supported
|
|
8
8
|
*/
|
|
9
|
-
export declare const sanitiseSelectionMarksForWrapping: (state: EditorState, newParentType?: NodeType
|
|
10
|
-
|
|
9
|
+
export declare const sanitiseSelectionMarksForWrapping: (state: EditorState, newParentType?: NodeType) => Transaction | undefined;
|
|
10
|
+
type NodesSanitized = Array<{
|
|
11
11
|
node: Node;
|
|
12
12
|
marksRemoved: Mark[];
|
|
13
13
|
}>;
|
|
14
|
-
export declare const sanitiseMarksInSelection: (tr: Transaction, newParentType?: NodeType
|
|
14
|
+
export declare const sanitiseMarksInSelection: (tr: Transaction, newParentType?: NodeType) => NodesSanitized;
|
|
15
15
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EditorState } from 'prosemirror-state';
|
|
2
2
|
import { NodeWithPos } from 'prosemirror-utils';
|
|
3
|
-
|
|
3
|
+
type FindNodesByIdsOption = {
|
|
4
4
|
includeDocNode?: boolean;
|
|
5
5
|
};
|
|
6
6
|
export declare const findNodePosByLocalIds: (state: EditorState, ids: string[], option?: FindNodesByIdsOption) => NodeWithPos[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ACTION_SUBJECT, ACTION, FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
2
|
+
type RenderActions = ACTION.RE_RENDERED;
|
|
3
|
+
type RenderActionSubjects = ACTION_SUBJECT.EDITOR | ACTION_SUBJECT.REACT_EDITOR_VIEW;
|
|
4
|
+
export type RenderTrackingProps<ComponentProps> = {
|
|
5
5
|
componentProps: ComponentProps;
|
|
6
6
|
action: RenderActions;
|
|
7
7
|
actionSubject: RenderActionSubjects;
|
|
@@ -5,7 +5,7 @@ import { EditorProps } from '../../types/editor-props';
|
|
|
5
5
|
import { TransactionTracker } from './track-transactions';
|
|
6
6
|
import { FeatureFlags } from '../../types/feature-flags';
|
|
7
7
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
8
|
-
|
|
8
|
+
type InstrumentedPluginOptions = EditorProps['performanceTracking'] & {
|
|
9
9
|
saferDispatchedTransactions?: FeatureFlags['saferDispatchedTransactions'];
|
|
10
10
|
saferDispatchedTransactionsAnalyticsOnly?: FeatureFlags['saferDispatchedTransactionsAnalyticsOnly'];
|
|
11
11
|
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
@@ -3,7 +3,7 @@ interface Reading {
|
|
|
3
3
|
duration: number;
|
|
4
4
|
startTime: number;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
type ObservationCallback = (entries: PerformanceObserverEntryList) => void;
|
|
7
7
|
/**
|
|
8
8
|
* A class that logs and collates measurement entries until
|
|
9
9
|
* EVENT_NAME_DISPATCHTRANSACTION is detected.
|
|
@@ -14,7 +14,7 @@ interface SimpleEntry {
|
|
|
14
14
|
duration: number;
|
|
15
15
|
startTime: number;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
type MeasureListener = (entry: SimpleEntry) => void;
|
|
18
18
|
export declare class TransactionTracker {
|
|
19
19
|
private dispatchCallCounter;
|
|
20
20
|
private readonly measureMap;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
2
2
|
import EditorActions from '../actions';
|
|
3
3
|
import { ExtensionProvidersProp } from '../types/editor-props';
|
|
4
|
-
declare const prepareExtensionProvider: (getEditorActions: () => EditorActions) => (extensionProviders?: ExtensionProvidersProp
|
|
4
|
+
declare const prepareExtensionProvider: (getEditorActions: () => EditorActions) => (extensionProviders?: ExtensionProvidersProp) => ExtensionProvider | undefined;
|
|
5
5
|
export default prepareExtensionProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type AbortableEffectWithCancel = (signal: AbortSignal) => () => void;
|
|
3
|
+
type AbortableEffect = (signal: AbortSignal) => void;
|
|
4
4
|
/**
|
|
5
5
|
* Similar to useEffect but integrated with the AbortController to make it useful for async operations.
|
|
6
6
|
* On unmount, the abort function will be called and the signal will be passed down to the function so
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type AbortableEffect<T> = () => Promise<T> | undefined;
|
|
3
3
|
/**
|
|
4
4
|
* Similar to useState but deals with async values.
|
|
5
5
|
* Simply pass a promise and it will set the state when it resolves. It won't try to set if
|
|
@@ -4,5 +4,5 @@ import { EditorView } from 'prosemirror-view';
|
|
|
4
4
|
export declare const nonWrappedLayouts: RichMediaLayout[];
|
|
5
5
|
export declare const floatingLayouts: string[];
|
|
6
6
|
export declare const isRichMediaInsideOfBlockNode: (view: EditorView, pos: number | boolean) => boolean;
|
|
7
|
-
export declare const alignAttributes: (layout: RichMediaLayout, oldAttrs: RichMediaAttributes, gridSize: number | undefined, originalWidth: number, lineLength?: number
|
|
7
|
+
export declare const alignAttributes: (layout: RichMediaLayout, oldAttrs: RichMediaAttributes, gridSize: number | undefined, originalWidth: number, lineLength?: number) => RichMediaAttributes;
|
|
8
8
|
export declare function calculateSnapPoints({ $pos, akEditorWideLayoutWidth, allowBreakoutSnapPoints, containerWidth, gridSize, gridWidth, insideInlineLike, insideLayout, isVideoFile, lineLength, offsetLeft, wrappedLayout, }: SnapPointsProps): number[];
|
package/editor/package.json
CHANGED
package/extensions/package.json
CHANGED
package/labs-next/package.json
CHANGED
package/messages/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "183.0.
|
|
3
|
+
"version": "183.0.8",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,6 +12,14 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
">=4.5 <4.9": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.5/*",
|
|
19
|
+
"dist/types-ts4.5/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
15
23
|
"sideEffects": false,
|
|
16
24
|
"atlaskit:src": "src/index.ts",
|
|
17
25
|
"atlassian": {
|
|
@@ -37,14 +45,14 @@
|
|
|
37
45
|
"@atlaskit/avatar-group": "^9.3.0",
|
|
38
46
|
"@atlaskit/button": "^16.7.0",
|
|
39
47
|
"@atlaskit/calendar": "^13.1.0",
|
|
40
|
-
"@atlaskit/checkbox": "^12.
|
|
48
|
+
"@atlaskit/checkbox": "^12.6.0",
|
|
41
49
|
"@atlaskit/code": "^14.6.0",
|
|
42
50
|
"@atlaskit/date": "^0.10.0",
|
|
43
51
|
"@atlaskit/datetime-picker": "^12.5.0",
|
|
44
52
|
"@atlaskit/editor-common": "^74.0.0",
|
|
45
53
|
"@atlaskit/editor-json-transformer": "^8.9.0",
|
|
46
54
|
"@atlaskit/editor-markdown-transformer": "^5.2.0",
|
|
47
|
-
"@atlaskit/editor-palette": "1.4.
|
|
55
|
+
"@atlaskit/editor-palette": "1.4.1",
|
|
48
56
|
"@atlaskit/editor-plugin-feature-flags": "^0.1.0",
|
|
49
57
|
"@atlaskit/editor-plugin-table": "^1.3.0",
|
|
50
58
|
"@atlaskit/editor-shared-styles": "^2.4.0",
|
|
@@ -55,7 +63,7 @@
|
|
|
55
63
|
"@atlaskit/icon": "^21.12.0",
|
|
56
64
|
"@atlaskit/icon-object": "^6.3.0",
|
|
57
65
|
"@atlaskit/link-analytics": "^8.0.0",
|
|
58
|
-
"@atlaskit/link-picker": "^1.
|
|
66
|
+
"@atlaskit/link-picker": "^1.20.0",
|
|
59
67
|
"@atlaskit/locale": "^2.4.0",
|
|
60
68
|
"@atlaskit/logo": "^13.14.0",
|
|
61
69
|
"@atlaskit/media-card": "^74.8.0",
|
|
@@ -73,7 +81,7 @@
|
|
|
73
81
|
"@atlaskit/radio": "^5.5.0",
|
|
74
82
|
"@atlaskit/section-message": "^6.4.0",
|
|
75
83
|
"@atlaskit/select": "^16.2.0",
|
|
76
|
-
"@atlaskit/smart-card": "^26.
|
|
84
|
+
"@atlaskit/smart-card": "^26.1.0",
|
|
77
85
|
"@atlaskit/smart-user-picker": "^6.1.0",
|
|
78
86
|
"@atlaskit/spinner": "^15.5.0",
|
|
79
87
|
"@atlaskit/status": "^1.3.0",
|
|
@@ -83,7 +91,7 @@
|
|
|
83
91
|
"@atlaskit/textfield": "^5.4.0",
|
|
84
92
|
"@atlaskit/theme": "^12.5.0",
|
|
85
93
|
"@atlaskit/toggle": "^12.6.0",
|
|
86
|
-
"@atlaskit/tokens": "^1.
|
|
94
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
87
95
|
"@atlaskit/tooltip": "^17.8.0",
|
|
88
96
|
"@atlaskit/width-detector": "^4.1.0",
|
|
89
97
|
"@babel/runtime": "^7.0.0",
|
|
@@ -126,17 +134,18 @@
|
|
|
126
134
|
"w3c-keyname": "^2.1.0"
|
|
127
135
|
},
|
|
128
136
|
"peerDependencies": {
|
|
129
|
-
"@atlaskit/link-provider": "^1.6.
|
|
130
|
-
"@atlaskit/media-core": "^34.1.
|
|
137
|
+
"@atlaskit/link-provider": "^1.6.1",
|
|
138
|
+
"@atlaskit/media-core": "^34.1.1",
|
|
131
139
|
"react": "^16.8.0",
|
|
132
140
|
"react-dom": "^16.8.0",
|
|
133
141
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
134
142
|
},
|
|
135
143
|
"devDependencies": {
|
|
144
|
+
"@af/integration-testing": "*",
|
|
136
145
|
"@atlaskit/atlassian-navigation": "^2.5.0",
|
|
137
|
-
"@atlaskit/breadcrumbs": "11.10.
|
|
146
|
+
"@atlaskit/breadcrumbs": "11.10.1",
|
|
138
147
|
"@atlaskit/code": "^14.6.0",
|
|
139
|
-
"@atlaskit/collab-provider": "8.8.
|
|
148
|
+
"@atlaskit/collab-provider": "8.8.2",
|
|
140
149
|
"@atlaskit/docs": "*",
|
|
141
150
|
"@atlaskit/drawer": "^7.5.0",
|
|
142
151
|
"@atlaskit/dropdown-menu": "^11.8.0",
|
|
@@ -144,7 +153,7 @@
|
|
|
144
153
|
"@atlaskit/editor-card-provider": "^3.0.0",
|
|
145
154
|
"@atlaskit/editor-extension-dropbox": "^0.4.0",
|
|
146
155
|
"@atlaskit/editor-plugin-table": "^1.3.0",
|
|
147
|
-
"@atlaskit/editor-test-helpers": "^18.
|
|
156
|
+
"@atlaskit/editor-test-helpers": "^18.3.0",
|
|
148
157
|
"@atlaskit/flag": "^15.2.0",
|
|
149
158
|
"@atlaskit/inline-dialog": "^13.6.0",
|
|
150
159
|
"@atlaskit/link-provider": "^1.6.0",
|
|
@@ -169,9 +178,9 @@
|
|
|
169
178
|
"@atlaskit/visual-regression": "*",
|
|
170
179
|
"@atlaskit/webdriver-runner": "*",
|
|
171
180
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
172
|
-
"@atlassian/link-picker-atlassian-plugin": "^
|
|
173
|
-
"@atlassian/link-picker-plugins": "^
|
|
174
|
-
"@atlassian/search-provider": "2.4.
|
|
181
|
+
"@atlassian/link-picker-atlassian-plugin": "^30.0.0",
|
|
182
|
+
"@atlassian/link-picker-plugins": "^20.0.0",
|
|
183
|
+
"@atlassian/search-provider": "2.4.1",
|
|
175
184
|
"@atlassian/ufo": "^0.2.0",
|
|
176
185
|
"@emotion/jest": "^11.8.0",
|
|
177
186
|
"@storybook/addon-knobs": "^5.3.18",
|
|
@@ -204,7 +213,7 @@
|
|
|
204
213
|
"react-test-renderer": "^16.8.0",
|
|
205
214
|
"rison": "^0.1.1",
|
|
206
215
|
"sinon": "^2.2.0",
|
|
207
|
-
"typescript": "4.
|
|
216
|
+
"typescript": "~4.9.5",
|
|
208
217
|
"url-search-params": "^0.10.0",
|
|
209
218
|
"worker-plugin": "^4.0.2"
|
|
210
219
|
},
|
package/test-utils/package.json
CHANGED
package/tsconfig.json
CHANGED