@atlaskit/editor-core 220.4.3 → 220.4.4
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 +8 -0
- package/CollapsedEditor/package.json +1 -8
- package/ContextPanel/package.json +1 -8
- package/EditorContext/package.json +1 -8
- package/ReactEditorView/package.json +1 -8
- package/ToolbarHelp/package.json +1 -8
- package/ToolbarPortal/package.json +1 -8
- package/WithEditorActions/package.json +1 -8
- package/WithHelpTrigger/package.json +1 -8
- package/actions/package.json +1 -8
- package/appearance-editor-chromeless/package.json +1 -8
- package/appearance-editor-comment/package.json +1 -8
- package/appearance-editor-full-page/package.json +1 -8
- package/appearance-editor-full-width/package.json +1 -8
- package/command/package.json +1 -8
- package/composable-editor/package.json +1 -8
- package/create-plugins-list/package.json +1 -8
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +9 -2
- package/dist/cjs/utils/outdatedBrowsers.js +4 -5
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +9 -2
- package/dist/es2019/utils/outdatedBrowsers.js +4 -5
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +9 -2
- package/dist/esm/utils/outdatedBrowsers.js +4 -5
- package/dist/esm/version-wrapper.js +1 -1
- package/editor/package.json +1 -8
- package/editor-context/package.json +1 -8
- package/editor-instance/package.json +1 -8
- package/editor-props/package.json +1 -8
- package/exclude-from-hydration/package.json +1 -8
- package/feature-flags-from-props/package.json +1 -8
- package/getNodesCount/package.json +1 -8
- package/i18n/package.json +1 -8
- package/i18n-languages/package.json +1 -8
- package/labs-next/package.json +1 -8
- package/measure-enum/package.json +1 -8
- package/package.json +6 -3
- package/preset-default/package.json +1 -8
- package/preset-universal/package.json +1 -8
- package/preset-universal/universal/package.json +1 -8
- package/preset-universal/useUniversalPreset/package.json +1 -8
- package/test-utils/package.json +1 -8
- package/use-preset/package.json +1 -8
- package/use-preset-context/package.json +1 -8
- package/version-wrapper/package.json +1 -8
- package/dist/types-ts4.5/CollapsedEditor/index.d.ts +0 -26
- package/dist/types-ts4.5/actions/index.d.ts +0 -97
- package/dist/types-ts4.5/actions/isEmptyParagraph.d.ts +0 -5
- package/dist/types-ts4.5/actions/temp-is-empty-document.d.ts +0 -11
- package/dist/types-ts4.5/actions/temp-nodes-by-localids.d.ts +0 -7
- package/dist/types-ts4.5/actions/temp-to-json.d.ts +0 -3
- package/dist/types-ts4.5/composable-editor/BaseThemeWrapper.d.ts +0 -7
- package/dist/types-ts4.5/composable-editor/composable-editor.d.ts +0 -3
- package/dist/types-ts4.5/composable-editor/core-editor.d.ts +0 -15
- package/dist/types-ts4.5/composable-editor/editor-inp-metrics.d.ts +0 -1
- package/dist/types-ts4.5/composable-editor/editor-internal-compiled.d.ts +0 -15
- package/dist/types-ts4.5/composable-editor/editor-internal-emotion.d.ts +0 -15
- package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +0 -38
- package/dist/types-ts4.5/composable-editor/hooks/useEditorMeasuresConstructor.d.ts +0 -10
- package/dist/types-ts4.5/composable-editor/hooks/useMeasureEditorMountTime.d.ts +0 -11
- package/dist/types-ts4.5/composable-editor/hooks/useMemoEditorProps.d.ts +0 -7
- package/dist/types-ts4.5/composable-editor/hooks/useProviderFactory.d.ts +0 -14
- package/dist/types-ts4.5/composable-editor/hooks/useProviders.d.ts +0 -40
- package/dist/types-ts4.5/composable-editor/utils/getBaseFontSize.d.ts +0 -6
- package/dist/types-ts4.5/composable-editor/utils/getProvidersFromEditorProps.d.ts +0 -9
- package/dist/types-ts4.5/composable-editor/utils/handleProviders.d.ts +0 -12
- package/dist/types-ts4.5/composable-editor/utils/sendDurationAnalytics.d.ts +0 -13
- package/dist/types-ts4.5/composable-editor.d.ts +0 -2
- package/dist/types-ts4.5/create-editor/ErrorBoundary.d.ts +0 -53
- package/dist/types-ts4.5/create-editor/ReactEditorView/focusEditorElement.d.ts +0 -1
- package/dist/types-ts4.5/create-editor/ReactEditorView/formatFullWidthAppearance.d.ts +0 -3
- package/dist/types-ts4.5/create-editor/ReactEditorView/getUAPrefix.d.ts +0 -1
- package/dist/types-ts4.5/create-editor/ReactEditorView/handleEditorFocus.d.ts +0 -2
- package/dist/types-ts4.5/create-editor/ReactEditorView/useDispatchTransaction.d.ts +0 -13
- package/dist/types-ts4.5/create-editor/ReactEditorView/useFireFullWidthEvent.d.ts +0 -3
- package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +0 -55
- package/dist/types-ts4.5/create-editor/WithEditorView.d.ts +0 -6
- package/dist/types-ts4.5/create-editor/addMetadataAttributes.d.ts +0 -16
- package/dist/types-ts4.5/create-editor/consts.d.ts +0 -3
- package/dist/types-ts4.5/create-editor/create-editor.d.ts +0 -3
- package/dist/types-ts4.5/create-editor/create-plugins-list.d.ts +0 -13
- package/dist/types-ts4.5/create-editor/create-schema.d.ts +0 -36
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +0 -7
- package/dist/types-ts4.5/create-editor/createErrorReporter.d.ts +0 -3
- package/dist/types-ts4.5/create-editor/createPMPlugins.d.ts +0 -3
- package/dist/types-ts4.5/create-editor/editorNativeAnchorSupportPlugin.d.ts +0 -3
- package/dist/types-ts4.5/create-editor/editorStateNotificationPlugin.d.ts +0 -13
- package/dist/types-ts4.5/create-editor/filter-plugins-for-reconfigure.d.ts +0 -19
- package/dist/types-ts4.5/create-editor/fixExcludes.d.ts +0 -6
- package/dist/types-ts4.5/create-editor/get-plugins.d.ts +0 -43
- package/dist/types-ts4.5/create-editor/get-ui-component.d.ts +0 -5
- package/dist/types-ts4.5/create-editor/getScrollGutterOptions.d.ts +0 -3
- package/dist/types-ts4.5/create-editor/messages.d.ts +0 -12
- package/dist/types-ts4.5/create-editor/preset-utils.d.ts +0 -2
- package/dist/types-ts4.5/create-editor/sortByRank.d.ts +0 -5
- package/dist/types-ts4.5/editor-appearances/ChromelessEditor.d.ts +0 -14
- package/dist/types-ts4.5/editor-appearances/CommentEditor.d.ts +0 -14
- package/dist/types-ts4.5/editor-appearances/FullPageEditor.d.ts +0 -19
- package/dist/types-ts4.5/editor-appearances/FullWidthEditor.d.ts +0 -18
- package/dist/types-ts4.5/editor-context.d.ts +0 -1
- package/dist/types-ts4.5/editor.d.ts +0 -24
- package/dist/types-ts4.5/entry-points/CollapsedEditor.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/ContextPanel.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/EditorContext.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/ReactEditorView.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/ToolbarHelp.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/ToolbarPortal.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/WithEditorActions.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/WithHelpTrigger.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/actions.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/appearance-editor-chromeless.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/appearance-editor-comment.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/appearance-editor-full-page.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/appearance-editor-full-width.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/command.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/create-plugins-list.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/editor-instance.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/editor-props.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/editor.d.ts +0 -11
- package/dist/types-ts4.5/entry-points/exclude-from-hydration.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/feature-flags-from-props.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/getNodesCount.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/i18n-languages.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/measure-enum.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/preset-universal-universal.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/preset-universal-useUniversalPreset.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/test-utils.d.ts +0 -5
- package/dist/types-ts4.5/entry-points/use-preset-context.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/version-wrapper.d.ts +0 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -12
- package/dist/types-ts4.5/i18n/da.d.ts +0 -12
- package/dist/types-ts4.5/i18n/de.d.ts +0 -12
- package/dist/types-ts4.5/i18n/en.d.ts +0 -12
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -12
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -12
- package/dist/types-ts4.5/i18n/es.d.ts +0 -12
- package/dist/types-ts4.5/i18n/et.d.ts +0 -168
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -12
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -12
- package/dist/types-ts4.5/i18n/hr.d.ts +0 -12
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -12
- package/dist/types-ts4.5/i18n/index.d.ts +0 -36
- package/dist/types-ts4.5/i18n/is.d.ts +0 -153
- package/dist/types-ts4.5/i18n/it.d.ts +0 -12
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -12
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -12
- package/dist/types-ts4.5/i18n/languages.d.ts +0 -39
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -12
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -12
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -12
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -12
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -180
- package/dist/types-ts4.5/i18n/ro.d.ts +0 -153
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -12
- package/dist/types-ts4.5/i18n/sk.d.ts +0 -12
- package/dist/types-ts4.5/i18n/sl.d.ts +0 -12
- package/dist/types-ts4.5/i18n/sr.d.ts +0 -12
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -12
- package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -12
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -12
- package/dist/types-ts4.5/i18n/th.d.ts +0 -12
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -12
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -12
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -12
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -12
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -12
- package/dist/types-ts4.5/index.d.ts +0 -34
- package/dist/types-ts4.5/isElementBySelectorInDocument.d.ts +0 -7
- package/dist/types-ts4.5/labs-next.d.ts +0 -1
- package/dist/types-ts4.5/nodeviews/types.d.ts +0 -12
- package/dist/types-ts4.5/preset-default.d.ts +0 -1
- package/dist/types-ts4.5/preset-universal.d.ts +0 -3
- package/dist/types-ts4.5/presets/context.d.ts +0 -15
- package/dist/types-ts4.5/presets/default-preset-type.d.ts +0 -87
- package/dist/types-ts4.5/presets/default.d.ts +0 -66
- package/dist/types-ts4.5/presets/universal.d.ts +0 -98
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +0 -8
- package/dist/types-ts4.5/setTextSelection.d.ts +0 -2
- package/dist/types-ts4.5/test-utils.d.ts +0 -24
- package/dist/types-ts4.5/ts-hack.d.ts +0 -10
- package/dist/types-ts4.5/types/command.d.ts +0 -5
- package/dist/types-ts4.5/types/dom-at-pos.d.ts +0 -4
- package/dist/types-ts4.5/types/editor-appearance-component.d.ts +0 -57
- package/dist/types-ts4.5/types/editor-config.d.ts +0 -21
- package/dist/types-ts4.5/types/editor-instance.d.ts +0 -19
- package/dist/types-ts4.5/types/editor-onchange.d.ts +0 -14
- package/dist/types-ts4.5/types/editor-props.d.ts +0 -317
- package/dist/types-ts4.5/types/extension-config.d.ts +0 -4
- package/dist/types-ts4.5/types/i18n.d.ts +0 -5
- package/dist/types-ts4.5/types/markdown-mode.d.ts +0 -11
- package/dist/types-ts4.5/types/pm-plugin-list.d.ts +0 -10
- package/dist/types-ts4.5/types/with-appearance-component.d.ts +0 -5
- package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.d.ts +0 -10
- package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.d.ts +0 -12
- package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/contentComponentWrapper.d.ts +0 -6
- package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/Addon/checkForModal.d.ts +0 -10
- package/dist/types-ts4.5/ui/Addon/click-area-helper.d.ts +0 -3
- package/dist/types-ts4.5/ui/Addon/outsideProsemirrorEditorClickHandler.d.ts +0 -2
- package/dist/types-ts4.5/ui/Addon/types.d.ts +0 -16
- package/dist/types-ts4.5/ui/Appearance/Chromeless-compiled.d.ts +0 -18
- package/dist/types-ts4.5/ui/Appearance/Chromeless-emotion.d.ts +0 -18
- package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +0 -22
- package/dist/types-ts4.5/ui/Appearance/ChromelessEditorContainer.d.ts +0 -9
- package/dist/types-ts4.5/ui/Appearance/Comment/Comment.d.ts +0 -20
- package/dist/types-ts4.5/ui/Appearance/Comment/CommentToolbar.d.ts +0 -21
- package/dist/types-ts4.5/ui/Appearance/Comment/Toolbar.d.ts +0 -12
- package/dist/types-ts4.5/ui/Appearance/FullPage/BeforeWrapper-compiled.d.ts +0 -16
- package/dist/types-ts4.5/ui/Appearance/FullPage/BeforeWrapper-emotion.d.ts +0 -16
- package/dist/types-ts4.5/ui/Appearance/FullPage/BeforeWrapper.d.ts +0 -6
- package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.d.ts +0 -3
- package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.d.ts +0 -14
- package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapper.d.ts +0 -10
- package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapperMigration.d.ts +0 -4
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage-compiled.d.ts +0 -7
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage-emotion.d.ts +0 -7
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage.d.ts +0 -18
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +0 -56
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +0 -51
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbarNext.d.ts +0 -30
- package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbar-compiled.d.ts +0 -21
- package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbar-emotion.d.ts +0 -21
- package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbar.d.ts +0 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.d.ts +0 -4
- package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbarWrapper-compiled.d.ts +0 -19
- package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbarWrapper-emotion.d.ts +0 -19
- package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbarWrapper.d.ts +0 -3
- package/dist/types-ts4.5/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.d.ts +0 -4
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +0 -5
- package/dist/types-ts4.5/ui/Appearance/FullPage/types.d.ts +0 -5
- package/dist/types-ts4.5/ui/ChromeCollapsed/ChromeCollapsed-compiled.d.ts +0 -13
- package/dist/types-ts4.5/ui/ChromeCollapsed/ChromeCollapsed-emotion.d.ts +0 -13
- package/dist/types-ts4.5/ui/ChromeCollapsed/index.d.ts +0 -11
- package/dist/types-ts4.5/ui/ChromeCollapsed/messages.d.ts +0 -7
- package/dist/types-ts4.5/ui/ChromeCollapsed/styles.d.ts +0 -2
- package/dist/types-ts4.5/ui/CollapsedEditor/index.d.ts +0 -19
- package/dist/types-ts4.5/ui/ContextPanel/index-compiled.d.ts +0 -25
- package/dist/types-ts4.5/ui/ContextPanel/index-emotion.d.ts +0 -15
- package/dist/types-ts4.5/ui/ContextPanel/index.d.ts +0 -24
- package/dist/types-ts4.5/ui/EditorContentContainer/EditorContentContainer-compiled.d.ts +0 -29
- package/dist/types-ts4.5/ui/EditorContentContainer/EditorContentContainer-emotion.d.ts +0 -32
- package/dist/types-ts4.5/ui/EditorContentContainer/EditorContentContainer.d.ts +0 -9
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/aiPanel.d.ts +0 -29
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/annotationStyles.d.ts +0 -8
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/backgroundColorStyles.d.ts +0 -15
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/baseStyles.d.ts +0 -43
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/blockMarksStyles.d.ts +0 -8
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/blockTypeStyles.d.ts +0 -71
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/codeBlockStyles.d.ts +0 -46
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/codeMarkStyles.d.ts +0 -15
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/commentEditorStyles.d.ts +0 -8
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/cursorStyles.d.ts +0 -8
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/dateStyles.d.ts +0 -32
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/editorUGCTokenStyles.d.ts +0 -40
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/embedCardStyles.d.ts +0 -8
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/emoji.d.ts +0 -42
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/expandStyles.d.ts +0 -59
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/extensionStyles.d.ts +0 -20
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +0 -36
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/firstBlockNodeStyles.d.ts +0 -8
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/floatingToolbarStyles.d.ts +0 -8
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/fontSizeStyles.d.ts +0 -8
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/fullPageEditorStyles.d.ts +0 -8
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/gapCursorStyles.d.ts +0 -22
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/gridStyles.d.ts +0 -8
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/indentationStyles.d.ts +0 -8
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.d.ts +0 -8
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/layout.d.ts +0 -220
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/link.d.ts +0 -22
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/list.d.ts +0 -50
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/mediaStyles.d.ts +0 -36
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/mentions.d.ts +0 -36
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/overflowShadowStyles.d.ts +0 -8
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/panelStyles.d.ts +0 -43
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/paragraphStyles.d.ts +0 -36
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/placeholderStyles.d.ts +0 -29
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/resizerStyles.d.ts +0 -131
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/rule.d.ts +0 -15
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/scrollbarStyles.d.ts +0 -8
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/selectionStyles.d.ts +0 -74
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/selectionToolbarStyles.d.ts +0 -8
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/shadowStyles.d.ts +0 -29
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/smartCardStyles.d.ts +0 -98
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/statusStyles.d.ts +0 -50
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/syncBlockStyles.d.ts +0 -36
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/tableStyles.d.ts +0 -50
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.d.ts +0 -77
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/telepointerStyles.d.ts +0 -15
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/textColorStyles.d.ts +0 -8
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/textHighlightStyles.d.ts +0 -8
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/unsupportedStyles.d.ts +0 -18
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/whitespaceStyles.d.ts +0 -8
- package/dist/types-ts4.5/ui/EditorContext/index.d.ts +0 -15
- package/dist/types-ts4.5/ui/ErrorBoundary/index.d.ts +0 -26
- package/dist/types-ts4.5/ui/ExcludeFromHydration/index.d.ts +0 -13
- package/dist/types-ts4.5/ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper.d.ts +0 -6
- package/dist/types-ts4.5/ui/PluginSlot/PluginSlot-compiled.d.ts +0 -12
- package/dist/types-ts4.5/ui/PluginSlot/PluginSlot-emotion.d.ts +0 -12
- package/dist/types-ts4.5/ui/PluginSlot/index.d.ts +0 -26
- package/dist/types-ts4.5/ui/PluginSlot/mount-plugin-hooks.d.ts +0 -10
- package/dist/types-ts4.5/ui/Toolbar/Toolbar.d.ts +0 -32
- package/dist/types-ts4.5/ui/Toolbar/ToolbarInner.d.ts +0 -11
- package/dist/types-ts4.5/ui/Toolbar/ToolbarPortal.d.ts +0 -21
- package/dist/types-ts4.5/ui/Toolbar/ToolbarWithSizeDetector.d.ts +0 -3
- package/dist/types-ts4.5/ui/Toolbar/getPrimaryToolbarComponents.d.ts +0 -7
- package/dist/types-ts4.5/ui/Toolbar/hooks.d.ts +0 -4
- package/dist/types-ts4.5/ui/Toolbar/toolbar-size.d.ts +0 -4
- package/dist/types-ts4.5/ui/Toolbar/toolbar-types.d.ts +0 -33
- package/dist/types-ts4.5/ui/ToolbarHelp/index.d.ts +0 -14
- package/dist/types-ts4.5/ui/ToolbarHelp/messages.d.ts +0 -7
- package/dist/types-ts4.5/ui/WithEditorActions/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/WithFlash/index.d.ts +0 -7
- package/dist/types-ts4.5/ui/WithFlash/withFlash-compiled.d.ts +0 -19
- package/dist/types-ts4.5/ui/WithFlash/withFlash-emotion.d.ts +0 -19
- package/dist/types-ts4.5/ui/WithHelpTrigger/index.d.ts +0 -14
- package/dist/types-ts4.5/use-preset.d.ts +0 -43
- package/dist/types-ts4.5/utils/action.d.ts +0 -3
- package/dist/types-ts4.5/utils/combineQuickInsertProviders.d.ts +0 -2
- package/dist/types-ts4.5/utils/deprecation-warnings.d.ts +0 -8
- package/dist/types-ts4.5/utils/editorDeprecationWarnings.d.ts +0 -2
- package/dist/types-ts4.5/utils/extensions.d.ts +0 -10
- package/dist/types-ts4.5/utils/feature-flags-from-props.d.ts +0 -7
- package/dist/types-ts4.5/utils/findChangedNodesFromTransaction.d.ts +0 -8
- package/dist/types-ts4.5/utils/getNodesCount.d.ts +0 -2
- package/dist/types-ts4.5/utils/getNodesCountWithExtensionKeys.d.ts +0 -12
- package/dist/types-ts4.5/utils/getNodesVisibleInViewport.d.ts +0 -5
- package/dist/types-ts4.5/utils/is-chromeless.d.ts +0 -2
- package/dist/types-ts4.5/utils/is-full-page.d.ts +0 -2
- package/dist/types-ts4.5/utils/isNodeVisible.d.ts +0 -5
- package/dist/types-ts4.5/utils/nodes-by-localIds.d.ts +0 -3
- package/dist/types-ts4.5/utils/outdatedBrowsers.d.ts +0 -1
- package/dist/types-ts4.5/utils/performance/components/RenderTracking.d.ts +0 -13
- package/dist/types-ts4.5/utils/performance/getTimeSince.d.ts +0 -8
- package/dist/types-ts4.5/utils/performance/measure-enum.d.ts +0 -7
- package/dist/types-ts4.5/utils/performance/outlier.d.ts +0 -1
- package/dist/types-ts4.5/utils/performance/percentile.d.ts +0 -1
- package/dist/types-ts4.5/utils/performance/plugin-performance-observer.d.ts +0 -23
- package/dist/types-ts4.5/utils/performance/plugin-performance-report.d.ts +0 -47
- package/dist/types-ts4.5/utils/performance/safer-transactions.d.ts +0 -8
- package/dist/types-ts4.5/utils/performance/simple-measure-to-entries.d.ts +0 -28
- package/dist/types-ts4.5/utils/performance/track-transactions.d.ts +0 -30
- package/dist/types-ts4.5/utils/prepare-extension-provider.d.ts +0 -5
- package/dist/types-ts4.5/utils/prepare-quick-insert-provider.d.ts +0 -19
- package/dist/types-ts4.5/utils/toolbar.d.ts +0 -2
- package/dist/types-ts4.5/utils/validNode.d.ts +0 -2
- package/dist/types-ts4.5/utils/validateNodes.d.ts +0 -3
- package/dist/types-ts4.5/version-wrapper.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "220.4.
|
|
3
|
+
"version": "220.4.4",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@atlaskit/platform-feature-flags-react": "^0.5.0",
|
|
75
75
|
"@atlaskit/react-ufo": "^6.7.0",
|
|
76
76
|
"@atlaskit/task-decision": "^20.2.0",
|
|
77
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
77
|
+
"@atlaskit/tmp-editor-statsig": "^103.0.0",
|
|
78
78
|
"@atlaskit/tokens": "^13.4.0",
|
|
79
79
|
"@atlaskit/tooltip": "^22.6.0",
|
|
80
80
|
"@atlaskit/width-detector": "^5.1.0",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"@atlaskit/modal-dialog": "^15.3.0",
|
|
122
122
|
"@atlaskit/popper": "^7.2.0",
|
|
123
123
|
"@atlaskit/portal": "^5.5.0",
|
|
124
|
-
"@atlaskit/renderer": "^132.
|
|
124
|
+
"@atlaskit/renderer": "^132.6.0",
|
|
125
125
|
"@atlaskit/section-message": "^8.13.0",
|
|
126
126
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
127
127
|
"@atlaskit/toggle": "^16.1.0",
|
|
@@ -179,6 +179,9 @@
|
|
|
179
179
|
"type": "boolean",
|
|
180
180
|
"referenceOnly": "true"
|
|
181
181
|
},
|
|
182
|
+
"platform_editor_md_mvp_layout": {
|
|
183
|
+
"type": "boolean"
|
|
184
|
+
},
|
|
182
185
|
"people-teams_migrate-user-profile-card": {
|
|
183
186
|
"type": "boolean",
|
|
184
187
|
"referenceOnly": true
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/preset-universal.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/preset-universal.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/preset-universal.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../../dist/types/entry-points/preset-universal-universal.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../../dist/types-ts4.5/entry-points/preset-universal-universal.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../../dist/types/entry-points/preset-universal-universal.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../../dist/types/entry-points/preset-universal-useUniversalPreset.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../../dist/types-ts4.5/entry-points/preset-universal-useUniversalPreset.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../../dist/types/entry-points/preset-universal-useUniversalPreset.d.ts"
|
|
17
10
|
}
|
package/test-utils/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/test-utils.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/test-utils.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/test-utils.d.ts"
|
|
17
10
|
}
|
package/use-preset/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/use-preset-context.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/use-preset-context.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/use-preset-context.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/version-wrapper.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/version-wrapper.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/version-wrapper.d.ts"
|
|
17
10
|
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type * as EditorImports from '../index';
|
|
3
|
-
type EditorModules = {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
};
|
|
6
|
-
export type EditorModule = {
|
|
7
|
-
EditorContext: typeof EditorImports.EditorContext;
|
|
8
|
-
WithEditorActions: typeof EditorImports.WithEditorActions;
|
|
9
|
-
} & EditorModules;
|
|
10
|
-
export interface Props {
|
|
11
|
-
isExpanded?: boolean;
|
|
12
|
-
onClickToExpand?: () => void;
|
|
13
|
-
placeholder?: string;
|
|
14
|
-
renderEditor: (Editor: typeof EditorImports.Editor, modules: EditorModule) => JSX.Element;
|
|
15
|
-
}
|
|
16
|
-
export interface State {
|
|
17
|
-
editorModules?: EditorModules;
|
|
18
|
-
}
|
|
19
|
-
export default class CollapsedEditor extends React.Component<Props, State> {
|
|
20
|
-
static editorModules: EditorModules;
|
|
21
|
-
state: State;
|
|
22
|
-
componentDidMount(): void;
|
|
23
|
-
loadEditorModules(): void;
|
|
24
|
-
render(): React.JSX.Element;
|
|
25
|
-
}
|
|
26
|
-
export {};
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import type { AnalyticsEventPayload } from '@atlaskit/analytics-next/AnalyticsEvent';
|
|
2
|
-
import type { ResolvedEditorState } from '@atlaskit/editor-common/collab';
|
|
3
|
-
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
|
-
import type { ContextUpdateHandler, EditorActionsOptions, FeatureFlags, ReplaceRawValue, GetResolvedEditorStateReason, Transformer } from '@atlaskit/editor-common/types';
|
|
5
|
-
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
6
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
-
import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-26729 Internal documentation for deprecation (no external access)} Editor actions is no longer supported and will be removed in a future version. Please use the core actions, or Plugin APIs directly instead
|
|
10
|
-
* @example If you were using editorActions.getValue() replace with:
|
|
11
|
-
const { editorApi, preset } = usePreset(...);
|
|
12
|
-
editorApi?.core.actions.requestDocument((doc) => {
|
|
13
|
-
// use doc as desired
|
|
14
|
-
})
|
|
15
|
-
|
|
16
|
-
* If you were using editorActions.getNodeByLocalId(localId) replace with:
|
|
17
|
-
const { editorApi, preset } = usePreset(...);
|
|
18
|
-
const extensionAPI = editorAPI?.extension?.actions?.api();
|
|
19
|
-
// Use nodeWithPos as desired
|
|
20
|
-
const nodeWithPos = extensionAPI.getNodeWithPosByLocalId(localId);
|
|
21
|
-
const node = nodeWithPos.node;
|
|
22
|
-
const nodePos = nodeWithPos.pos;
|
|
23
|
-
*/
|
|
24
|
-
export default class EditorActions<T = any> implements EditorActionsOptions<T> {
|
|
25
|
-
private editorView?;
|
|
26
|
-
private contentTransformer?;
|
|
27
|
-
private contentEncode?;
|
|
28
|
-
private eventDispatcher?;
|
|
29
|
-
private listeners;
|
|
30
|
-
static from<T>(view: EditorView, eventDispatcher: EventDispatcher, transformer?: Transformer<T>): EditorActions<T>;
|
|
31
|
-
_privateGetEditorView(): EditorView | undefined;
|
|
32
|
-
_privateGetEventDispatcher(): EventDispatcher | undefined;
|
|
33
|
-
private getFeatureFlags;
|
|
34
|
-
_privateRegisterEditor(editorView: EditorView, eventDispatcher: EventDispatcher, contentTransformer?: Transformer<T>, getFeatureFlags?: () => FeatureFlags): void;
|
|
35
|
-
_privateUnregisterEditor(): void;
|
|
36
|
-
_privateSubscribe(cb: ContextUpdateHandler): void;
|
|
37
|
-
_privateUnsubscribe(cb: ContextUpdateHandler): void;
|
|
38
|
-
focus({ scrollIntoView }?: {
|
|
39
|
-
scrollIntoView: boolean;
|
|
40
|
-
}): boolean;
|
|
41
|
-
blur(): boolean;
|
|
42
|
-
clear(): boolean;
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated This is deprecated and is no longer maintained.
|
|
45
|
-
*
|
|
46
|
-
* Use the `requestDocument` API from `editorAPI` (ie. `editorApi?.core?.actions.requestDocument( ... ))
|
|
47
|
-
* it has inbuilt throttling and is designed for use with `ComposableEditor`.
|
|
48
|
-
*
|
|
49
|
-
* Docs on its usage are available from: https://atlaskit.atlassian.com/packages/editor/editor-core
|
|
50
|
-
*
|
|
51
|
-
* WARNING: this may be called repeatedly, async with care
|
|
52
|
-
*/
|
|
53
|
-
getValue(): Promise<JSONDocNode | T | undefined>;
|
|
54
|
-
/**
|
|
55
|
-
* @deprecated - please use `getNodeWithPosByLocalId` found in the core plugin actions instead
|
|
56
|
-
* @example
|
|
57
|
-
const { editorApi, preset } = usePreset(...);
|
|
58
|
-
const extensionAPI = editorAPI?.extension?.actions?.api();
|
|
59
|
-
// Use nodeWithPos as desired
|
|
60
|
-
const nodeWithPos = extensionAPI.getNodeWithPosByLocalId(localId);
|
|
61
|
-
const node = nodeWithPos.node;
|
|
62
|
-
const nodePos = nodeWithPos.pos;
|
|
63
|
-
*/
|
|
64
|
-
getNodeByLocalId(id: string): Node | undefined;
|
|
65
|
-
getNodeByFragmentLocalId(id: string): Node | undefined;
|
|
66
|
-
/**
|
|
67
|
-
* This method will return the currently selected `Node` if the selection is a `Node`.
|
|
68
|
-
* Otherwise, if the selection is textual or a non-selectable `Node` within another selectable `Node`, the closest selectable parent `Node` will be returned.
|
|
69
|
-
*/
|
|
70
|
-
getSelectedNode(): Node | undefined;
|
|
71
|
-
isDocumentEmpty(): boolean;
|
|
72
|
-
/**
|
|
73
|
-
* @deprecated - please use `replaceDocument` found in the core plugin actions instead
|
|
74
|
-
* using this will reset your Editor State which could cause some things to break (like emojis)
|
|
75
|
-
* @example - use the `replaceDocument` from the core plugin actions instead
|
|
76
|
-
* ```ts
|
|
77
|
-
* const { editorApi, preset } = usePreset(...);
|
|
78
|
-
// where you need it
|
|
79
|
-
editorApi?.core.actions.replaceDocument(value);
|
|
80
|
-
return <ComposableEditor preset={preset} ... />
|
|
81
|
-
*/
|
|
82
|
-
replaceDocument(rawValue: any, shouldScrollToBottom?: boolean,
|
|
83
|
-
/** @deprecated [ED-14158] shouldAddToHistory is not being used in this function */
|
|
84
|
-
shouldAddToHistory?: boolean): boolean;
|
|
85
|
-
replaceSelection(rawValue: ReplaceRawValue | Array<ReplaceRawValue>, tryToReplace?: boolean, position?: number): boolean;
|
|
86
|
-
appendText(text: string): boolean;
|
|
87
|
-
dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void;
|
|
88
|
-
/**
|
|
89
|
-
* If editor is using new collab service,
|
|
90
|
-
* we want editor to call the collab provider to
|
|
91
|
-
* retrieve the final acknowledged state of the
|
|
92
|
-
* editor. The final acknowledged editor state
|
|
93
|
-
* refers to the latest state of editor with confirmed
|
|
94
|
-
* steps.
|
|
95
|
-
*/
|
|
96
|
-
getResolvedEditorState: (reason: GetResolvedEditorStateReason) => Promise<ResolvedEditorState | undefined>;
|
|
97
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Temporary file which extracts function from `editor-common`.
|
|
3
|
-
*
|
|
4
|
-
* Eventually we will deprecate and delete EditorActions. This is here to
|
|
5
|
-
* help decouple it from editor-common
|
|
6
|
-
*/
|
|
7
|
-
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
8
|
-
/**
|
|
9
|
-
* Checks if a node looks like an empty document
|
|
10
|
-
*/
|
|
11
|
-
export declare function isEmptyDocument(node: Node): boolean;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
3
|
-
type FindNodesByIdsOption = {
|
|
4
|
-
includeDocNode?: boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare const findNodePosByLocalIds: (state: EditorState, ids: string[], option?: FindNodesByIdsOption) => NodeWithPos[];
|
|
7
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { EditorNextProps } from '../types/editor-props';
|
|
3
|
-
import type { WithAppearanceComponent } from '../types/with-appearance-component';
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
* @param props
|
|
7
|
-
* @example
|
|
8
|
-
*/
|
|
9
|
-
export declare function CoreEditor(props: EditorNextProps & WithAppearanceComponent): React.JSX.Element;
|
|
10
|
-
export declare namespace CoreEditor {
|
|
11
|
-
var propTypes: {
|
|
12
|
-
minHeight: ({ appearance, minHeight, }: Pick<EditorNextProps, 'appearance' | 'minHeight'>) => Error | null;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export default CoreEditor;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const EditorINPMetrics: () => null;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
-
* Used via `componentWithCondition` in `editor-internal.tsx`.
|
|
8
|
-
*
|
|
9
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
-
*/
|
|
11
|
-
import type { ReactNode } from 'react';
|
|
12
|
-
export declare const EditorInternalContainerCompiled: ({ children, fontSize, }: {
|
|
13
|
-
children?: ReactNode;
|
|
14
|
-
fontSize?: number;
|
|
15
|
-
}) => React.JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
-
* Used via `componentWithCondition` in `editor-internal.tsx`.
|
|
8
|
-
*
|
|
9
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
-
*/
|
|
11
|
-
import type { ReactNode } from 'react';
|
|
12
|
-
export declare const EditorInternalContainerEmotion: ({ children, fontSize, }: {
|
|
13
|
-
children?: ReactNode;
|
|
14
|
-
fontSize?: number;
|
|
15
|
-
}) => React.JSX.Element;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { MemoExoticComponent } from 'react';
|
|
3
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
4
|
-
import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
|
|
5
|
-
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
6
|
-
import type { AllEditorPresetPluginTypes, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
7
|
-
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
8
|
-
import type { Transformer } from '@atlaskit/editor-common/types';
|
|
9
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
|
-
import type EditorActions from '../actions';
|
|
11
|
-
import type { EditorAppearanceComponentProps } from '../types/editor-appearance-component';
|
|
12
|
-
import type { EditorNextProps } from '../types/editor-props';
|
|
13
|
-
interface InternalProps {
|
|
14
|
-
AppearanceComponent: React.ComponentType<React.PropsWithChildren<EditorAppearanceComponentProps<[
|
|
15
|
-
]>>>;
|
|
16
|
-
createAnalyticsEvent: CreateUIAnalyticsEvent;
|
|
17
|
-
editorActions: EditorActions;
|
|
18
|
-
handleAnalyticsEvent: FireAnalyticsCallback;
|
|
19
|
-
handleSave: (view: EditorView) => void;
|
|
20
|
-
onEditorCreated: (instance: {
|
|
21
|
-
eventDispatcher: EventDispatcher;
|
|
22
|
-
transformer?: Transformer<string>;
|
|
23
|
-
view: EditorView;
|
|
24
|
-
}) => void;
|
|
25
|
-
onEditorDestroyed: (_instance: {
|
|
26
|
-
transformer?: Transformer<string>;
|
|
27
|
-
view: EditorView;
|
|
28
|
-
}) => void;
|
|
29
|
-
preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
|
|
30
|
-
props: EditorNextProps;
|
|
31
|
-
providerFactory: ProviderFactory;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* EditorInternalComponent is used to capture the common component
|
|
35
|
-
* from the `render` method of `Editor` and share it with `EditorNext`.
|
|
36
|
-
*/
|
|
37
|
-
export declare const EditorInternal: MemoExoticComponent<(props: InternalProps) => JSX.Element>;
|
|
38
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
2
|
-
import type { EditorNextProps, EditorProps } from '../../types/editor-props';
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
* Hook to run the analytics for the Editor component.
|
|
6
|
-
* WARNING: Consider any changes to also make to `src/editor.tsx`
|
|
7
|
-
*
|
|
8
|
-
* @param props EditorProps
|
|
9
|
-
* @param createAnalyticsEvent
|
|
10
|
-
*/
|
|
11
|
-
export default function useMeasureEditorMountTime(props: EditorProps | EditorNextProps, createAnalyticsEvent: CreateUIAnalyticsEvent): void;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { EditorNextProps, EditorProps } from '../../types/editor-props';
|
|
2
|
-
import type { WithAppearanceComponent } from '../../types/with-appearance-component';
|
|
3
|
-
export type Complete<T> = {
|
|
4
|
-
[P in keyof Required<T>]: Pick<T, P> extends Required<Pick<T, P>> ? T[P] : T[P] | undefined;
|
|
5
|
-
};
|
|
6
|
-
export declare const useMemoEditorProps: (passedProps: EditorProps & EditorNextProps & WithAppearanceComponent) => EditorProps & EditorNextProps & WithAppearanceComponent;
|
|
7
|
-
export default useMemoEditorProps;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
2
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type EditorActions from '../../actions';
|
|
4
|
-
import type { EditorNextProps } from '../../types/editor-props';
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
* This hook is used to create the provider factory object.
|
|
8
|
-
*
|
|
9
|
-
* @param props
|
|
10
|
-
* @param editorActions
|
|
11
|
-
* @param createAnalyticsEvent
|
|
12
|
-
* @returns ProviderFactory for Editor
|
|
13
|
-
*/
|
|
14
|
-
export default function useProviderFactory(props: EditorNextProps, editorActions: EditorActions, createAnalyticsEvent: CreateUIAnalyticsEvent): ProviderFactory;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { AutoformattingProvider, CardProvider, ContextIdentifierProvider, MediaProvider } from '@atlaskit/editor-common/provider-factory';
|
|
2
|
-
import type { OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { CardPlugin } from '@atlaskit/editor-plugins/card';
|
|
4
|
-
import type { ContextIdentifierPlugin } from '@atlaskit/editor-plugins/context-identifier';
|
|
5
|
-
import type { CustomAutoformatPlugin } from '@atlaskit/editor-plugins/custom-autoformat';
|
|
6
|
-
import type { EmojiPlugin } from '@atlaskit/editor-plugins/emoji';
|
|
7
|
-
import type { MediaPlugin } from '@atlaskit/editor-plugins/media';
|
|
8
|
-
import type { MentionsPlugin } from '@atlaskit/editor-plugins/mentions';
|
|
9
|
-
import type { TasksAndDecisionsPlugin } from '@atlaskit/editor-plugins/tasks-and-decisions';
|
|
10
|
-
import type { EmojiProvider } from '@atlaskit/emoji';
|
|
11
|
-
import type { MentionProvider } from '@atlaskit/mention/resource';
|
|
12
|
-
import type { TaskDecisionProvider } from '@atlaskit/task-decision/types';
|
|
13
|
-
interface UseProvidersProps {
|
|
14
|
-
autoformattingProvider: Promise<AutoformattingProvider> | undefined;
|
|
15
|
-
cardProvider: Promise<CardProvider> | undefined;
|
|
16
|
-
contextIdentifierProvider: Promise<ContextIdentifierProvider> | undefined;
|
|
17
|
-
editorApi: PublicPluginAPI<[
|
|
18
|
-
OptionalPlugin<ContextIdentifierPlugin>,
|
|
19
|
-
OptionalPlugin<MediaPlugin>,
|
|
20
|
-
OptionalPlugin<MentionsPlugin>,
|
|
21
|
-
OptionalPlugin<CardPlugin>,
|
|
22
|
-
OptionalPlugin<EmojiPlugin>,
|
|
23
|
-
OptionalPlugin<CustomAutoformatPlugin>,
|
|
24
|
-
OptionalPlugin<TasksAndDecisionsPlugin>
|
|
25
|
-
]> | undefined;
|
|
26
|
-
emojiProvider: Promise<EmojiProvider> | undefined;
|
|
27
|
-
mediaProvider: Promise<MediaProvider> | undefined;
|
|
28
|
-
mentionProvider: Promise<MentionProvider> | undefined;
|
|
29
|
-
taskDecisionProvider: Promise<TaskDecisionProvider> | undefined;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* This hook is used to replace the old approach of using the `providerFactory`.
|
|
33
|
-
*
|
|
34
|
-
* Because plugins can't update their initial configuration, this hook listens to changes
|
|
35
|
-
* and calls a command to push the update to the plugins shared state.
|
|
36
|
-
*
|
|
37
|
-
* In the future ideally consumers implement this behaviour themselves.
|
|
38
|
-
*/
|
|
39
|
-
export declare const useProviders: ({ editorApi, contextIdentifierProvider, mediaProvider, mentionProvider, cardProvider, emojiProvider, autoformattingProvider, taskDecisionProvider, }: UseProvidersProps) => void;
|
|
40
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { EditorAppearance, EditorContentMode } from '@atlaskit/editor-common/types';
|
|
2
|
-
/**
|
|
3
|
-
* @param appearance
|
|
4
|
-
* @returns default font size if valid
|
|
5
|
-
*/
|
|
6
|
-
export declare function getBaseFontSize(appearance?: EditorAppearance, contentMode?: EditorContentMode): number | undefined;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Providers } from '@atlaskit/editor-common/provider-factory';
|
|
2
|
-
import type { EditorProps } from '../../types/editor-props';
|
|
3
|
-
type Complete<T> = {
|
|
4
|
-
[P in keyof Required<T>]: Pick<T, P> extends Required<Pick<T, P>> ? T[P] : T[P] | undefined;
|
|
5
|
-
};
|
|
6
|
-
type EditorProviderProps = Pick<EditorProps, 'autoformattingProvider' | 'emojiProvider' | 'mentionProvider' | 'taskDecisionProvider' | 'contextIdentifierProvider' | 'searchProvider' | 'macroProvider' | 'activityProvider' | 'collabEdit' | 'collabEditProvider' | 'presenceProvider' | 'legacyImageUploadProvider'>;
|
|
7
|
-
type RequiredProviders = Complete<Omit<Providers, 'reactionsStore' | 'profilecardProvider' | 'extensionProvider' | 'quickInsertProvider' | 'cardProvider' | 'mediaProvider'>>;
|
|
8
|
-
export default function getProvidersFromEditorProps({ autoformattingProvider, emojiProvider, mentionProvider, legacyImageUploadProvider, taskDecisionProvider, contextIdentifierProvider, searchProvider, macroProvider, activityProvider, collabEdit, collabEditProvider, presenceProvider, }: EditorProviderProps): RequiredProviders;
|
|
9
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
2
|
-
import type { ProviderFactory, Providers, QuickInsertProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
* Utility to set all the providers on a provider factory
|
|
6
|
-
*
|
|
7
|
-
* @param providerFactory
|
|
8
|
-
* @param props
|
|
9
|
-
* @param extensionProvider
|
|
10
|
-
* @param quickInsertProvider
|
|
11
|
-
*/
|
|
12
|
-
export default function handleProviders(providerFactory: ProviderFactory, { mentionProvider, contextIdentifierProvider, collabEditProvider, activityProvider, presenceProvider, macroProvider, imageUploadProvider, searchProvider, }: Providers, extensionProvider?: ExtensionProvider, quickInsertProvider?: Promise<QuickInsertProvider>): void;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
2
|
-
import type { ACTION } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { EditorProps } from '../../types/editor-props';
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
* Util function to be used with the Editor component to send duration analytics
|
|
7
|
-
*
|
|
8
|
-
* @param action
|
|
9
|
-
* @param props
|
|
10
|
-
* @param getCreateAnalyticsEvent return the CreateUIAnalyticsEvent of the Editor
|
|
11
|
-
* @returns
|
|
12
|
-
*/
|
|
13
|
-
export default function sendDurationAnalytics(action: ACTION.EDITOR_MOUNTED | ACTION.ON_EDITOR_READY_CALLBACK, props: Pick<EditorProps, 'contextIdentifierProvider' | 'featureFlags'>, createAnalyticsEvent: CreateUIAnalyticsEvent | undefined): (duration: number, startTime: number) => Promise<void>;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ErrorInfo } from 'react';
|
|
3
|
-
import type { Primitive } from '@sentry/types';
|
|
4
|
-
import { default as AnalyticsReactContext, type AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
|
|
5
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
6
|
-
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
-
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
8
|
-
import type { UserBrowserExtensionResults } from '@atlaskit/editor-common/utils';
|
|
9
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
|
-
export type ErrorBoundaryProps = {
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
|
|
13
|
-
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
14
|
-
editorView?: EditorView;
|
|
15
|
-
errorTracking?: boolean;
|
|
16
|
-
featureFlags: FeatureFlags;
|
|
17
|
-
rethrow?: boolean;
|
|
18
|
-
};
|
|
19
|
-
export type ErrorBoundaryState = {
|
|
20
|
-
error?: Error;
|
|
21
|
-
};
|
|
22
|
-
export declare class ErrorBoundaryWithEditorView extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
23
|
-
featureFlags: FeatureFlags;
|
|
24
|
-
browserExtensions?: UserBrowserExtensionResults;
|
|
25
|
-
static defaultProps: {
|
|
26
|
-
rethrow: boolean;
|
|
27
|
-
errorTracking: boolean;
|
|
28
|
-
};
|
|
29
|
-
state: {
|
|
30
|
-
error: undefined;
|
|
31
|
-
};
|
|
32
|
-
constructor(props: ErrorBoundaryProps);
|
|
33
|
-
private sendErrorData;
|
|
34
|
-
private getProductName;
|
|
35
|
-
private fireAnalyticsEvent;
|
|
36
|
-
protected logException: (error: Error, tags?: {
|
|
37
|
-
[key: string]: Primitive;
|
|
38
|
-
}) => void;
|
|
39
|
-
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
40
|
-
render(): React.JSX.Element;
|
|
41
|
-
}
|
|
42
|
-
export declare class ErrorBoundaryWithEditorViewWithAnalyticsReactContext extends ErrorBoundaryWithEditorView {
|
|
43
|
-
static contextType: React.Context<AnalyticsReactContextInterface>;
|
|
44
|
-
context: React.ContextType<typeof AnalyticsReactContext>;
|
|
45
|
-
constructor(props: ErrorBoundaryProps);
|
|
46
|
-
protected logException: (error: Error, tags?: {
|
|
47
|
-
[key: string]: Primitive;
|
|
48
|
-
}) => void;
|
|
49
|
-
}
|
|
50
|
-
declare const _default_1: React.FC<Omit<ErrorBoundaryProps, 'editorView'> & {
|
|
51
|
-
children?: React.ReactNode | undefined;
|
|
52
|
-
}>;
|
|
53
|
-
export default _default_1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function focusEditorElement(editorId: string): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getUAPrefix(): '' | 'ua-chrome' | 'ua-ie' | 'ua-firefox' | 'ua-safari';
|