@atlaskit/editor-core 220.4.3 → 220.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -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/ui/ContextPanel/index.js +3 -3
- 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/ui/ContextPanel/index.js +3 -3
- 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/ui/ContextPanel/index.js +3 -3
- 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 +7 -11
- 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
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
2
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { UserPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences';
|
|
4
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugins/analytics';
|
|
5
|
-
import type { BasePlugin } from '@atlaskit/editor-plugins/base';
|
|
6
|
-
import type { BetterTypeHistoryPlugin } from '@atlaskit/editor-plugins/better-type-history';
|
|
7
|
-
import type { BlockMenuPlugin } from '@atlaskit/editor-plugins/block-menu';
|
|
8
|
-
import type { BlockTypePlugin } from '@atlaskit/editor-plugins/block-type';
|
|
9
|
-
import type { ClearMarksOnEmptyDocPlugin } from '@atlaskit/editor-plugins/clear-marks-on-empty-doc';
|
|
10
|
-
import type { ClipboardPlugin } from '@atlaskit/editor-plugins/clipboard';
|
|
11
|
-
import type { CodeBlockPlugin } from '@atlaskit/editor-plugins/code-block';
|
|
12
|
-
import type { CompositionPlugin } from '@atlaskit/editor-plugins/composition';
|
|
13
|
-
import type { ContextIdentifierPlugin } from '@atlaskit/editor-plugins/context-identifier';
|
|
14
|
-
import type { CopyButtonPlugin } from '@atlaskit/editor-plugins/copy-button';
|
|
15
|
-
import type { DecorationsPlugin } from '@atlaskit/editor-plugins/decorations';
|
|
16
|
-
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugins/editor-disabled';
|
|
17
|
-
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugins/feature-flags';
|
|
18
|
-
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugins/floating-toolbar';
|
|
19
|
-
import type { FocusPlugin } from '@atlaskit/editor-plugins/focus';
|
|
20
|
-
import type { HistoryPlugin } from '@atlaskit/editor-plugins/history';
|
|
21
|
-
import type { HyperlinkPlugin } from '@atlaskit/editor-plugins/hyperlink';
|
|
22
|
-
import type { InteractionPlugin } from '@atlaskit/editor-plugins/interaction';
|
|
23
|
-
import type { PastePlugin } from '@atlaskit/editor-plugins/paste';
|
|
24
|
-
import type { PlaceholderPlugin } from '@atlaskit/editor-plugins/placeholder';
|
|
25
|
-
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugins/primary-toolbar';
|
|
26
|
-
import type { QuickInsertPlugin } from '@atlaskit/editor-plugins/quick-insert';
|
|
27
|
-
import type { SelectionPlugin } from '@atlaskit/editor-plugins/selection';
|
|
28
|
-
import type { SelectionToolbarPlugin } from '@atlaskit/editor-plugins/selection-toolbar';
|
|
29
|
-
import type { SubmitEditorPlugin } from '@atlaskit/editor-plugins/submit-editor';
|
|
30
|
-
import type { TextFormattingPlugin } from '@atlaskit/editor-plugins/text-formatting';
|
|
31
|
-
import type { ToolbarPlugin } from '@atlaskit/editor-plugins/toolbar';
|
|
32
|
-
import type { TypeAheadPlugin } from '@atlaskit/editor-plugins/type-ahead';
|
|
33
|
-
import type { UiControlRegistryPlugin } from '@atlaskit/editor-plugins/ui-control-registry';
|
|
34
|
-
import type { UndoRedoPlugin } from '@atlaskit/editor-plugins/undo-redo';
|
|
35
|
-
import type { UnsupportedContentPlugin } from '@atlaskit/editor-plugins/unsupported-content';
|
|
36
|
-
import type { UserIntentPlugin } from '@atlaskit/editor-plugins/user-intent';
|
|
37
|
-
import type { WidthPlugin } from '@atlaskit/editor-plugins/width';
|
|
38
|
-
type ExtractPluginName<Plugin> = Plugin extends NextEditorPlugin<infer PluginName, any> | undefined ? PluginName : never;
|
|
39
|
-
export type DefaultPresetPlugins = [
|
|
40
|
-
CodeBlockPlugin,
|
|
41
|
-
SelectionPlugin,
|
|
42
|
-
FloatingToolbarPlugin,
|
|
43
|
-
CopyButtonPlugin,
|
|
44
|
-
SubmitEditorPlugin,
|
|
45
|
-
EditorDisabledPlugin,
|
|
46
|
-
UnsupportedContentPlugin,
|
|
47
|
-
PlaceholderPlugin,
|
|
48
|
-
QuickInsertPlugin,
|
|
49
|
-
WidthPlugin,
|
|
50
|
-
TextFormattingPlugin,
|
|
51
|
-
HyperlinkPlugin,
|
|
52
|
-
SelectionToolbarPlugin,
|
|
53
|
-
ClearMarksOnEmptyDocPlugin,
|
|
54
|
-
BlockTypePlugin,
|
|
55
|
-
BlockMenuPlugin | undefined,
|
|
56
|
-
UndoRedoPlugin | undefined,
|
|
57
|
-
UiControlRegistryPlugin | undefined,
|
|
58
|
-
PrimaryToolbarPlugin,
|
|
59
|
-
ToolbarPlugin | undefined,
|
|
60
|
-
UserIntentPlugin | undefined,
|
|
61
|
-
HistoryPlugin | undefined,
|
|
62
|
-
TypeAheadPlugin,
|
|
63
|
-
DecorationsPlugin,
|
|
64
|
-
BasePlugin,
|
|
65
|
-
ContextIdentifierPlugin,
|
|
66
|
-
CompositionPlugin,
|
|
67
|
-
InteractionPlugin | undefined,
|
|
68
|
-
UserPreferencesPlugin | undefined,
|
|
69
|
-
FocusPlugin,
|
|
70
|
-
ClipboardPlugin,
|
|
71
|
-
PastePlugin,
|
|
72
|
-
BetterTypeHistoryPlugin,
|
|
73
|
-
AnalyticsPlugin | undefined,
|
|
74
|
-
FeatureFlagsPlugin
|
|
75
|
-
];
|
|
76
|
-
type ExtractPluginNames<PluginList extends (NextEditorPlugin<any, any> | undefined)[]> = PluginList extends [
|
|
77
|
-
infer Head,
|
|
78
|
-
...infer Tail
|
|
79
|
-
] ? Tail extends (NextEditorPlugin<any, any> | undefined)[] ? [
|
|
80
|
-
ExtractPluginName<Head>,
|
|
81
|
-
...ExtractPluginNames<Tail>
|
|
82
|
-
] : [
|
|
83
|
-
] : [
|
|
84
|
-
];
|
|
85
|
-
type DefaultPresetPluginNames = ExtractPluginNames<DefaultPresetPlugins>;
|
|
86
|
-
export type DefaultPresetBuilder = EditorPresetBuilder<DefaultPresetPluginNames, DefaultPresetPlugins>;
|
|
87
|
-
export {};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
2
|
-
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type { SelectionPluginOptions } from '@atlaskit/editor-common/selection';
|
|
4
|
-
import type { EditorAppearance, FeatureFlags, PerformanceTracking } from '@atlaskit/editor-common/types';
|
|
5
|
-
import type { BasePluginOptions } from '@atlaskit/editor-plugins/base';
|
|
6
|
-
import type { BlockMenuPluginOptions } from '@atlaskit/editor-plugins/block-menu';
|
|
7
|
-
import type { BlockTypePluginOptions } from '@atlaskit/editor-plugins/block-type';
|
|
8
|
-
import type { CodeBlockPluginOptions } from '@atlaskit/editor-plugins/code-block';
|
|
9
|
-
import type { HyperlinkPluginOptions } from '@atlaskit/editor-plugins/hyperlink';
|
|
10
|
-
import type { PastePluginOptions } from '@atlaskit/editor-plugins/paste';
|
|
11
|
-
import type { PlaceholderPluginOptions } from '@atlaskit/editor-plugins/placeholder';
|
|
12
|
-
import type { QuickInsertPluginOptions } from '@atlaskit/editor-plugins/quick-insert';
|
|
13
|
-
import type { TextFormattingPluginOptions } from '@atlaskit/editor-plugins/text-formatting';
|
|
14
|
-
import type { ToolbarPluginOptions } from '@atlaskit/editor-plugins/toolbar';
|
|
15
|
-
import type { TypeAheadPluginOptions } from '@atlaskit/editor-plugins/type-ahead';
|
|
16
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
17
|
-
import type { DefaultPresetBuilder } from './default-preset-type';
|
|
18
|
-
export type DefaultPresetPluginOptions = {
|
|
19
|
-
/**
|
|
20
|
-
* There is expected to be temporary divergence between Live Page editor expand behaviour and the standard expand behaviour.
|
|
21
|
-
*
|
|
22
|
-
* This is expected to be removed in Q4 as Editor and Live Page teams align on a singular behaviour.
|
|
23
|
-
*
|
|
24
|
-
* It is only supported for use by Confluence.
|
|
25
|
-
*
|
|
26
|
-
* @default false
|
|
27
|
-
*/
|
|
28
|
-
__livePage?: boolean;
|
|
29
|
-
allowAnalyticsGASV3?: boolean;
|
|
30
|
-
allowUndoRedoButtons?: boolean;
|
|
31
|
-
appearance?: EditorAppearance | undefined;
|
|
32
|
-
base?: BasePluginOptions;
|
|
33
|
-
blockMenu?: BlockMenuPluginOptions & {
|
|
34
|
-
enabled?: boolean;
|
|
35
|
-
};
|
|
36
|
-
blockType?: BlockTypePluginOptions;
|
|
37
|
-
codeBlock?: CodeBlockPluginOptions;
|
|
38
|
-
contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
|
|
39
|
-
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
40
|
-
disabled?: boolean;
|
|
41
|
-
featureFlags?: FeatureFlags;
|
|
42
|
-
hyperlinkOptions?: HyperlinkPluginOptions;
|
|
43
|
-
paste?: PastePluginOptions;
|
|
44
|
-
performanceTracking?: PerformanceTracking;
|
|
45
|
-
placeholder?: PlaceholderPluginOptions;
|
|
46
|
-
preferenceToolbarAboveSelection?: boolean;
|
|
47
|
-
quickInsert?: QuickInsertPluginOptions;
|
|
48
|
-
selection?: SelectionPluginOptions;
|
|
49
|
-
submitEditor?: (editorView: EditorView) => void;
|
|
50
|
-
textFormatting?: TextFormattingPluginOptions;
|
|
51
|
-
toolbar?: ToolbarPluginOptions;
|
|
52
|
-
typeAhead?: TypeAheadPluginOptions;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Note: The order that presets are added determines
|
|
56
|
-
* their placement in the editor toolbar
|
|
57
|
-
* @param options
|
|
58
|
-
* @example
|
|
59
|
-
*/
|
|
60
|
-
export declare function createDefaultPreset(options: DefaultPresetPluginOptions): DefaultPresetBuilder;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @param props
|
|
64
|
-
* @example
|
|
65
|
-
*/
|
|
66
|
-
export declare function useDefaultPreset(props: DefaultPresetPluginOptions): DefaultPresetBuilder[];
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
2
|
-
import type { ContextualFormattingEnabledOptions } from '@atlaskit/editor-common/toolbar';
|
|
3
|
-
import type { EditorAppearance, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { ToolbarInsertBlockButtonsConfig } from '@atlaskit/editor-plugin-insert-block';
|
|
5
|
-
import type { ExtensionPluginOptions } from '@atlaskit/editor-plugins/extension';
|
|
6
|
-
import type { BreakpointPreset } from '@atlaskit/editor-toolbar';
|
|
7
|
-
import type { EditorPluginFeatureProps, EditorProps, EditorProviderProps, EditorSharedPropsWithPlugins } from '../types/editor-props';
|
|
8
|
-
import type { DefaultPresetPluginOptions } from './default';
|
|
9
|
-
export type UniversalPresetProps = DefaultPresetPluginOptions & EditorSharedPropsWithPlugins & Omit<EditorPluginFeatureProps, 'placeholder'> & EditorProviderProps;
|
|
10
|
-
/**
|
|
11
|
-
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
12
|
-
* to configuring plugins.
|
|
13
|
-
*
|
|
14
|
-
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
15
|
-
*/
|
|
16
|
-
export type InitialPluginConfiguration = {
|
|
17
|
-
blockControlsPlugin?: {
|
|
18
|
-
enabled?: boolean;
|
|
19
|
-
quickInsertButtonEnabled?: boolean;
|
|
20
|
-
rightSideControlsEnabled?: boolean;
|
|
21
|
-
};
|
|
22
|
-
blockMenuPlugin?: {
|
|
23
|
-
blockLinkHashPrefix?: string;
|
|
24
|
-
enabled?: boolean;
|
|
25
|
-
getLinkPath?: () => string | null;
|
|
26
|
-
useStandardNodeWidth?: boolean;
|
|
27
|
-
};
|
|
28
|
-
blockTypePlugin?: {
|
|
29
|
-
allowFontSize?: boolean;
|
|
30
|
-
};
|
|
31
|
-
emojiPlugin?: {
|
|
32
|
-
disableAutoformat?: boolean;
|
|
33
|
-
};
|
|
34
|
-
extensionPlugin?: {
|
|
35
|
-
__rendererExtensionOptions?: ExtensionPluginOptions['__rendererExtensionOptions'];
|
|
36
|
-
};
|
|
37
|
-
insertBlockPlugin?: {
|
|
38
|
-
toolbarButtons?: ToolbarInsertBlockButtonsConfig;
|
|
39
|
-
toolbarShowPlusInsertOnly?: boolean;
|
|
40
|
-
};
|
|
41
|
-
mentionsPlugin?: {
|
|
42
|
-
handleMentionsChanged?: (mentionChanges: {
|
|
43
|
-
id: string;
|
|
44
|
-
localId: string;
|
|
45
|
-
taskLocalId?: string;
|
|
46
|
-
type: 'added' | 'deleted';
|
|
47
|
-
}[]) => void;
|
|
48
|
-
};
|
|
49
|
-
tasksAndDecisionsPlugin?: {
|
|
50
|
-
allowBlockTaskItem?: boolean;
|
|
51
|
-
hasEditPermission?: boolean;
|
|
52
|
-
quickInsertActionDescription?: string;
|
|
53
|
-
requestEditPermission?: () => void;
|
|
54
|
-
taskPlaceholder?: string;
|
|
55
|
-
};
|
|
56
|
-
toolbarPlugin?: {
|
|
57
|
-
breakpointPreset?: BreakpointPreset;
|
|
58
|
-
contextualFormattingEnabled?: ContextualFormattingEnabledOptions;
|
|
59
|
-
/**
|
|
60
|
-
* The disableSelectionToolbar option is deprecated and will be removed in the future, replaced with `contextualFormattingEnabled`.
|
|
61
|
-
*
|
|
62
|
-
* To disable the selection toolbar (so only the primary toolbar is shown), use `contextualFormattingEnabled: 'always-pinned'`.
|
|
63
|
-
*/
|
|
64
|
-
disableSelectionToolbar?: boolean;
|
|
65
|
-
enableNewToolbarExperience?: boolean;
|
|
66
|
-
};
|
|
67
|
-
trackChangesPlugin?: {
|
|
68
|
-
showOnToolbar?: boolean;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* Creates a preset with all of the available plugins.
|
|
73
|
-
* Basis for create-plugins-list and can be used to migrate from Editor -> EditorNext (Presets project)
|
|
74
|
-
* with minimal friction.
|
|
75
|
-
*
|
|
76
|
-
* @param appearance
|
|
77
|
-
* @param props A subset of full EditorProps for the full feature preset
|
|
78
|
-
* @param featureFlags
|
|
79
|
-
* @param prevAppearance The appearance of the editor in the previous render
|
|
80
|
-
* @returns a full featured preset configured according to the provided props - basis for create-plugins-list
|
|
81
|
-
*/
|
|
82
|
-
export default function createUniversalPresetInternal({ appearance, props, featureFlags, initialPluginConfiguration, prevAppearance, createAnalyticsEvent, }: {
|
|
83
|
-
appearance: EditorAppearance | undefined;
|
|
84
|
-
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
85
|
-
featureFlags: FeatureFlags;
|
|
86
|
-
/**
|
|
87
|
-
* Allows configuring plugins as the universal preset blocks direct access
|
|
88
|
-
* to configuring plugins.
|
|
89
|
-
*/
|
|
90
|
-
initialPluginConfiguration?: InitialPluginConfiguration;
|
|
91
|
-
prevAppearance?: EditorAppearance;
|
|
92
|
-
props: UniversalPresetProps;
|
|
93
|
-
}): any;
|
|
94
|
-
interface ExpandEditorProps {
|
|
95
|
-
allowExpand?: EditorProps['allowExpand'];
|
|
96
|
-
}
|
|
97
|
-
export declare function isExpandInsertionEnabled({ allowExpand }: ExpandEditorProps): boolean;
|
|
98
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { EditorProps } from '../types/editor-props';
|
|
2
|
-
import type { InitialPluginConfiguration } from './universal';
|
|
3
|
-
interface PresetProps {
|
|
4
|
-
initialPluginConfiguration?: InitialPluginConfiguration;
|
|
5
|
-
props: EditorProps;
|
|
6
|
-
}
|
|
7
|
-
export default function useUniversalPreset({ props, initialPluginConfiguration, }: PresetProps): any;
|
|
8
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { EditorPluginInjectionAPI } from '@atlaskit/editor-common/preset';
|
|
2
|
-
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
3
|
-
import type { MarkConfig, NodeConfig, ReactHookFactory, UIComponentFactory } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
-
import type { Plugin } from '@atlaskit/editor-prosemirror/state';
|
|
6
|
-
import type { LightPMPlugin, LightPMPluginFactoryParams, OnEditorViewStateUpdated } from './create-editor/get-plugins';
|
|
7
|
-
export interface LightEditorConfig {
|
|
8
|
-
contentComponents: UIComponentFactory[];
|
|
9
|
-
marks: MarkConfig[];
|
|
10
|
-
nodes: NodeConfig[];
|
|
11
|
-
onEditorViewStateUpdatedCallbacks: Array<OnEditorViewStateUpdated>;
|
|
12
|
-
pluginHooks: ReactHookFactory[];
|
|
13
|
-
plugins: Array<LightPMPlugin>;
|
|
14
|
-
}
|
|
15
|
-
type PluginData = {
|
|
16
|
-
editorConfig: LightEditorConfig;
|
|
17
|
-
onEditorViewStateUpdatedCallbacks: Array<OnEditorViewStateUpdated>;
|
|
18
|
-
plugins: Plugin[];
|
|
19
|
-
schema: Schema;
|
|
20
|
-
};
|
|
21
|
-
export declare const createPMSchemaAndPlugins: (inputPreset?: EditorPresetBuilder) => (pluginFactoryParams: Omit<LightPMPluginFactoryParams, "schema"> & {
|
|
22
|
-
pluginInjectionAPI: EditorPluginInjectionAPI;
|
|
23
|
-
}) => PluginData;
|
|
24
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is a temporary hack to allow the editor to have references to the QuickInsertPlugin type.
|
|
3
|
-
*
|
|
4
|
-
* There is bug in tsconfig references generation, where it only adds references to the immediate dependencies of the project.
|
|
5
|
-
* and not transitive dependencies. Typescript doesn't look into transitive dependencies tp update cached declarations of a package.
|
|
6
|
-
*
|
|
7
|
-
* Typecheck team is working on a fix for this issue.
|
|
8
|
-
**/
|
|
9
|
-
import type { QuickInsertPlugin } from '@atlaskit/editor-plugin-quick-insert';
|
|
10
|
-
export type tmpQuickInsertPlugin = QuickInsertPlugin;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
export type CommandDispatch = (tr: Transaction) => void;
|
|
4
|
-
export type Command = (state: EditorState, dispatch?: CommandDispatch, view?: EditorView) => boolean;
|
|
5
|
-
export type HigherOrderCommand = (command: Command) => Command;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import type { ReactElement, RefObject } from 'react';
|
|
2
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
|
|
4
|
-
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
5
|
-
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
6
|
-
import type { AllEditorPresetPluginTypes, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
7
|
-
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
8
|
-
import type { EditorAppearance, EditorContentMode, FeatureFlags, NextEditorPlugin, PublicPluginAPI, ReactHookFactory, ToolbarUIComponentFactory, UIComponentFactory } from '@atlaskit/editor-common/types';
|
|
9
|
-
import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
|
|
10
|
-
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
11
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
12
|
-
import type EditorActions from '../actions';
|
|
13
|
-
import type { ContentComponents, PrimaryToolbarComponents, ReactComponents } from '../types/editor-props';
|
|
14
|
-
export interface EditorAppearanceComponentProps<Plugins extends NextEditorPlugin<any, any>[]> {
|
|
15
|
-
__livePage?: boolean;
|
|
16
|
-
appearance?: EditorAppearance;
|
|
17
|
-
collabEdit?: CollabEditOptions;
|
|
18
|
-
contentComponents?: UIComponentFactory[];
|
|
19
|
-
contentMode?: EditorContentMode;
|
|
20
|
-
contextPanel?: ReactComponents;
|
|
21
|
-
customContentComponents?: ContentComponents;
|
|
22
|
-
customPrimaryToolbarComponents?: PrimaryToolbarComponents;
|
|
23
|
-
customSecondaryToolbarComponents?: ReactComponents;
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
26
|
-
editorActions?: EditorActions;
|
|
27
|
-
editorAPI: PublicPluginAPI<Plugins> | undefined;
|
|
28
|
-
editorDOMElement: JSX.Element;
|
|
29
|
-
editorView?: EditorView;
|
|
30
|
-
enableToolbarMinWidth?: boolean;
|
|
31
|
-
eventDispatcher?: EventDispatcher;
|
|
32
|
-
extensionHandlers?: ExtensionHandlers;
|
|
33
|
-
featureFlags: FeatureFlags;
|
|
34
|
-
innerRef?: RefObject<HTMLDivElement>;
|
|
35
|
-
insertMenuItems?: MenuItem[];
|
|
36
|
-
isEditorModernisationEnabled?: boolean;
|
|
37
|
-
maxHeight?: number;
|
|
38
|
-
minHeight?: number;
|
|
39
|
-
onCancel?: (editorView: EditorView) => void;
|
|
40
|
-
onSave?: (editorView: EditorView) => void;
|
|
41
|
-
onSSRMeasure?: (measure: {
|
|
42
|
-
endTimestamp: number;
|
|
43
|
-
segmentName: string;
|
|
44
|
-
startTimestamp: number;
|
|
45
|
-
}) => void;
|
|
46
|
-
persistScrollGutter?: boolean;
|
|
47
|
-
pluginHooks?: ReactHookFactory[];
|
|
48
|
-
popupsBoundariesElement?: HTMLElement;
|
|
49
|
-
popupsMountPoint?: HTMLElement;
|
|
50
|
-
popupsScrollableElement?: HTMLElement;
|
|
51
|
-
preset?: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
|
|
52
|
-
primaryToolbarComponents?: ToolbarUIComponentFactory[];
|
|
53
|
-
primaryToolbarIconBefore?: ReactElement;
|
|
54
|
-
providerFactory: ProviderFactory;
|
|
55
|
-
secondaryToolbarComponents?: UIComponentFactory[];
|
|
56
|
-
useStickyToolbar?: UseStickyToolbarType;
|
|
57
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { MarkConfig, NodeConfig, PMPlugin, ReactHookFactory, ToolbarUIComponentFactory, UIComponentFactory } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
export type EditorViewStateUpdatedCallbackProps = {
|
|
4
|
-
readonly newEditorState: Readonly<EditorState>;
|
|
5
|
-
readonly oldEditorState: Readonly<EditorState>;
|
|
6
|
-
readonly originalTransaction: Readonly<Transaction>;
|
|
7
|
-
readonly transactions: readonly Transaction[];
|
|
8
|
-
};
|
|
9
|
-
export interface EditorConfig {
|
|
10
|
-
contentComponents: UIComponentFactory[];
|
|
11
|
-
marks: MarkConfig[];
|
|
12
|
-
nodes: NodeConfig[];
|
|
13
|
-
onEditorViewStateUpdatedCallbacks: Array<{
|
|
14
|
-
callback: (props: EditorViewStateUpdatedCallbackProps) => void;
|
|
15
|
-
pluginName: string;
|
|
16
|
-
}>;
|
|
17
|
-
pluginHooks: ReactHookFactory[];
|
|
18
|
-
pmPlugins: Array<PMPlugin>;
|
|
19
|
-
primaryToolbarComponents: ToolbarUIComponentFactory[];
|
|
20
|
-
secondaryToolbarComponents: UIComponentFactory[];
|
|
21
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
-
import type { ToolbarUIComponentFactory, UIComponentFactory, ReactHookFactory } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
4
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
-
import type { OnEditorViewStateUpdated } from '../create-editor/get-plugins';
|
|
6
|
-
export interface EditorInstance {
|
|
7
|
-
contentComponents: UIComponentFactory[];
|
|
8
|
-
contentTransformer?: Transformer<string>;
|
|
9
|
-
editorView: EditorView;
|
|
10
|
-
eventDispatcher: EventDispatcher;
|
|
11
|
-
insertMenuItems?: MenuItem[];
|
|
12
|
-
onEditorViewStateUpdatedCallbacks: {
|
|
13
|
-
callback: OnEditorViewStateUpdated;
|
|
14
|
-
pluginName: string;
|
|
15
|
-
}[];
|
|
16
|
-
pluginHooks: ReactHookFactory[];
|
|
17
|
-
primaryToolbarComponents: ToolbarUIComponentFactory[];
|
|
18
|
-
secondaryToolbarComponents: UIComponentFactory[];
|
|
19
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
-
export type EditorOnChangeHandler = (editorView: EditorView, meta: {
|
|
3
|
-
/**
|
|
4
|
-
* Indicates whether or not the change may be unnecessary to listen to (dirty
|
|
5
|
-
* changes can generally be ignored).
|
|
6
|
-
*
|
|
7
|
-
* This might be changes to media attributes for example when it gets updated
|
|
8
|
-
* due to initial setup.
|
|
9
|
-
*
|
|
10
|
-
* We still fire these events however to avoid a breaking change.
|
|
11
|
-
*/
|
|
12
|
-
isDirtyChange: boolean;
|
|
13
|
-
source: 'local' | 'remote';
|
|
14
|
-
}) => void;
|