@atlaskit/editor-core 220.4.2 → 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 +14 -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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 220.4.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d6c0ba39b44b2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d6c0ba39b44b2) -
|
|
8
|
+
Clean up experiment `platform_editor_outdated_browser_update`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 220.4.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 220.4.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/CollapsedEditor.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/CollapsedEditor.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/CollapsedEditor.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/ContextPanel.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/ContextPanel.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/ContextPanel.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/EditorContext.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/EditorContext.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/EditorContext.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/ReactEditorView.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/ReactEditorView.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/ReactEditorView.d.ts"
|
|
17
10
|
}
|
package/ToolbarHelp/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/ToolbarHelp.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/ToolbarHelp.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/ToolbarHelp.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/ToolbarPortal.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/ToolbarPortal.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/ToolbarPortal.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/WithEditorActions.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/WithEditorActions.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/WithEditorActions.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/WithHelpTrigger.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/WithHelpTrigger.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/WithHelpTrigger.d.ts"
|
|
17
10
|
}
|
package/actions/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/actions.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/actions.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/actions.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/appearance-editor-chromeless.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/appearance-editor-chromeless.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/appearance-editor-chromeless.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/appearance-editor-comment.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/appearance-editor-comment.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/appearance-editor-comment.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/appearance-editor-full-page.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/appearance-editor-full-page.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/appearance-editor-full-page.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/appearance-editor-full-width.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/appearance-editor-full-width.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/appearance-editor-full-width.d.ts"
|
|
17
10
|
}
|
package/command/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/command.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/command.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/command.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/composable-editor.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/composable-editor.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/composable-editor.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/create-plugins-list.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/create-plugins-list.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/create-plugins-list.d.ts"
|
|
17
10
|
}
|
|
@@ -221,6 +221,13 @@ var contentAreaNew = (0, _react2.css)({
|
|
|
221
221
|
var contentAreaHeightNoToolbar = (0, _react2.css)({
|
|
222
222
|
height: '100%'
|
|
223
223
|
});
|
|
224
|
+
|
|
225
|
+
// When the markdown source view is shown (markdown mode toggled on and not in
|
|
226
|
+
// the WYSIWYG "preview" view) we tint the whole editor container with the
|
|
227
|
+
// sunken surface so the source editor reads as a distinct, inset surface.
|
|
228
|
+
var markdownModeContainerBackgroundStyle = (0, _react2.css)({
|
|
229
|
+
backgroundColor: "var(--ds-surface-sunken, #F8F8F8)"
|
|
230
|
+
});
|
|
224
231
|
var CONTENT_AREA_TEST_ID = exports.CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
|
|
225
232
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
226
233
|
var EDITOR_CONTAINER = exports.EDITOR_CONTAINER = 'ak-editor-container';
|
|
@@ -265,9 +272,9 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
265
272
|
"data-testid": CONTENT_AREA_TEST_ID,
|
|
266
273
|
ref: containerRef
|
|
267
274
|
}, (0, _react2.jsx)("div", {
|
|
268
|
-
css:
|
|
275
|
+
css: [
|
|
269
276
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
270
|
-
_StyledComponents.contentAreaWrapper,
|
|
277
|
+
_StyledComponents.contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && (0, _platformFeatureFlags.fg)('platform_editor_md_mvp_layout') && markdownModeContainerBackgroundStyle],
|
|
271
278
|
"data-testid": EDITOR_CONTAINER,
|
|
272
279
|
"data-editor-container": 'true'
|
|
273
280
|
}, (0, _react2.jsx)(_EditorContentContainer.default
|
|
@@ -4,29 +4,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.isOutdatedBrowser = void 0;
|
|
7
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
8
7
|
/* eslint-disable require-unicode-regexp */
|
|
9
8
|
|
|
10
9
|
var isOutdatedBrowser = exports.isOutdatedBrowser = function isOutdatedBrowser(userAgent) {
|
|
11
10
|
// Take browsers in both Desktop and Mobile (includes Chrome, Firefox, Edge and Safari) within last 2 years
|
|
12
11
|
var chrome = /Chrome\//.test(userAgent) && !/OPR\//.test(userAgent);
|
|
13
12
|
var chromeVersion = chrome ? parseInt((userAgent.match(/Chrome\/(\d+)/) || [])[1], 10) : 0;
|
|
14
|
-
if (
|
|
13
|
+
if (chromeVersion >= 123) {
|
|
15
14
|
return false;
|
|
16
15
|
}
|
|
17
16
|
var gecko = /gecko\/\d/i.test(userAgent);
|
|
18
17
|
var geckoVersion = gecko ? parseInt((userAgent.match(/Firefox\/(\d+)/) || [])[1], 10) : 0;
|
|
19
|
-
if (
|
|
18
|
+
if (geckoVersion >= 124) {
|
|
20
19
|
return false;
|
|
21
20
|
}
|
|
22
21
|
var edge = /Edge\/(\d+)/.exec(userAgent);
|
|
23
22
|
var edgeVersion = edge ? +edge[1] : 0;
|
|
24
|
-
if (
|
|
23
|
+
if (edgeVersion >= 123) {
|
|
25
24
|
return false;
|
|
26
25
|
}
|
|
27
26
|
var safari = !chrome && !gecko && /Version\/([0-9\._]+).*Safari/.test(userAgent);
|
|
28
27
|
var safariVersion = safari ? parseInt((userAgent.match(/Version\/([0-9\._]+).*Safari/) || [])[1], 10) : 0;
|
|
29
|
-
if (
|
|
28
|
+
if (safariVersion >= 17) {
|
|
30
29
|
return false;
|
|
31
30
|
}
|
|
32
31
|
return true;
|
|
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.name = void 0;
|
|
7
7
|
var name = exports.name = "@atlaskit/editor-core";
|
|
8
8
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
9
|
-
var version = exports.version = "220.4.
|
|
9
|
+
var version = exports.version = "220.4.3";
|
|
@@ -215,6 +215,13 @@ const contentAreaNew = css({
|
|
|
215
215
|
const contentAreaHeightNoToolbar = css({
|
|
216
216
|
height: '100%'
|
|
217
217
|
});
|
|
218
|
+
|
|
219
|
+
// When the markdown source view is shown (markdown mode toggled on and not in
|
|
220
|
+
// the WYSIWYG "preview" view) we tint the whole editor container with the
|
|
221
|
+
// sunken surface so the source editor reads as a distinct, inset surface.
|
|
222
|
+
const markdownModeContainerBackgroundStyle = css({
|
|
223
|
+
backgroundColor: "var(--ds-surface-sunken, #F8F8F8)"
|
|
224
|
+
});
|
|
218
225
|
export const CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
|
|
219
226
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
220
227
|
export const EDITOR_CONTAINER = 'ak-editor-container';
|
|
@@ -257,9 +264,9 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
257
264
|
"data-testid": CONTENT_AREA_TEST_ID,
|
|
258
265
|
ref: containerRef
|
|
259
266
|
}, jsx("div", {
|
|
260
|
-
css:
|
|
267
|
+
css: [
|
|
261
268
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
262
|
-
contentAreaWrapper,
|
|
269
|
+
contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && fg('platform_editor_md_mvp_layout') && markdownModeContainerBackgroundStyle],
|
|
263
270
|
"data-testid": EDITOR_CONTAINER,
|
|
264
271
|
"data-editor-container": 'true'
|
|
265
272
|
}, jsx(EditorContentContainer
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
/* eslint-disable require-unicode-regexp */
|
|
2
2
|
|
|
3
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
3
|
export const isOutdatedBrowser = userAgent => {
|
|
5
4
|
// Take browsers in both Desktop and Mobile (includes Chrome, Firefox, Edge and Safari) within last 2 years
|
|
6
5
|
const chrome = /Chrome\//.test(userAgent) && !/OPR\//.test(userAgent);
|
|
7
6
|
const chromeVersion = chrome ? parseInt((userAgent.match(/Chrome\/(\d+)/) || [])[1], 10) : 0;
|
|
8
|
-
if (
|
|
7
|
+
if (chromeVersion >= 123) {
|
|
9
8
|
return false;
|
|
10
9
|
}
|
|
11
10
|
const gecko = /gecko\/\d/i.test(userAgent);
|
|
12
11
|
const geckoVersion = gecko ? parseInt((userAgent.match(/Firefox\/(\d+)/) || [])[1], 10) : 0;
|
|
13
|
-
if (
|
|
12
|
+
if (geckoVersion >= 124) {
|
|
14
13
|
return false;
|
|
15
14
|
}
|
|
16
15
|
const edge = /Edge\/(\d+)/.exec(userAgent);
|
|
17
16
|
const edgeVersion = edge ? +edge[1] : 0;
|
|
18
|
-
if (
|
|
17
|
+
if (edgeVersion >= 123) {
|
|
19
18
|
return false;
|
|
20
19
|
}
|
|
21
20
|
const safari = !chrome && !gecko && /Version\/([0-9\._]+).*Safari/.test(userAgent);
|
|
22
21
|
const safariVersion = safari ? parseInt((userAgent.match(/Version\/([0-9\._]+).*Safari/) || [])[1], 10) : 0;
|
|
23
|
-
if (
|
|
22
|
+
if (safariVersion >= 17) {
|
|
24
23
|
return false;
|
|
25
24
|
}
|
|
26
25
|
return true;
|
|
@@ -211,6 +211,13 @@ var contentAreaNew = css({
|
|
|
211
211
|
var contentAreaHeightNoToolbar = css({
|
|
212
212
|
height: '100%'
|
|
213
213
|
});
|
|
214
|
+
|
|
215
|
+
// When the markdown source view is shown (markdown mode toggled on and not in
|
|
216
|
+
// the WYSIWYG "preview" view) we tint the whole editor container with the
|
|
217
|
+
// sunken surface so the source editor reads as a distinct, inset surface.
|
|
218
|
+
var markdownModeContainerBackgroundStyle = css({
|
|
219
|
+
backgroundColor: "var(--ds-surface-sunken, #F8F8F8)"
|
|
220
|
+
});
|
|
214
221
|
export var CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
|
|
215
222
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
216
223
|
export var EDITOR_CONTAINER = 'ak-editor-container';
|
|
@@ -255,9 +262,9 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
255
262
|
"data-testid": CONTENT_AREA_TEST_ID,
|
|
256
263
|
ref: containerRef
|
|
257
264
|
}, jsx("div", {
|
|
258
|
-
css:
|
|
265
|
+
css: [
|
|
259
266
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
260
|
-
contentAreaWrapper,
|
|
267
|
+
contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && fg('platform_editor_md_mvp_layout') && markdownModeContainerBackgroundStyle],
|
|
261
268
|
"data-testid": EDITOR_CONTAINER,
|
|
262
269
|
"data-editor-container": 'true'
|
|
263
270
|
}, jsx(EditorContentContainer
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
/* eslint-disable require-unicode-regexp */
|
|
2
2
|
|
|
3
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
3
|
export var isOutdatedBrowser = function isOutdatedBrowser(userAgent) {
|
|
5
4
|
// Take browsers in both Desktop and Mobile (includes Chrome, Firefox, Edge and Safari) within last 2 years
|
|
6
5
|
var chrome = /Chrome\//.test(userAgent) && !/OPR\//.test(userAgent);
|
|
7
6
|
var chromeVersion = chrome ? parseInt((userAgent.match(/Chrome\/(\d+)/) || [])[1], 10) : 0;
|
|
8
|
-
if (
|
|
7
|
+
if (chromeVersion >= 123) {
|
|
9
8
|
return false;
|
|
10
9
|
}
|
|
11
10
|
var gecko = /gecko\/\d/i.test(userAgent);
|
|
12
11
|
var geckoVersion = gecko ? parseInt((userAgent.match(/Firefox\/(\d+)/) || [])[1], 10) : 0;
|
|
13
|
-
if (
|
|
12
|
+
if (geckoVersion >= 124) {
|
|
14
13
|
return false;
|
|
15
14
|
}
|
|
16
15
|
var edge = /Edge\/(\d+)/.exec(userAgent);
|
|
17
16
|
var edgeVersion = edge ? +edge[1] : 0;
|
|
18
|
-
if (
|
|
17
|
+
if (edgeVersion >= 123) {
|
|
19
18
|
return false;
|
|
20
19
|
}
|
|
21
20
|
var safari = !chrome && !gecko && /Version\/([0-9\._]+).*Safari/.test(userAgent);
|
|
22
21
|
var safariVersion = safari ? parseInt((userAgent.match(/Version\/([0-9\._]+).*Safari/) || [])[1], 10) : 0;
|
|
23
|
-
if (
|
|
22
|
+
if (safariVersion >= 17) {
|
|
24
23
|
return false;
|
|
25
24
|
}
|
|
26
25
|
return true;
|
package/editor/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/editor.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/editor.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/editor.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/editor-instance.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/editor-instance.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/editor-instance.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/editor-props.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/editor-props.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/editor-props.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/exclude-from-hydration.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/exclude-from-hydration.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/exclude-from-hydration.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/feature-flags-from-props.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/feature-flags-from-props.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/feature-flags-from-props.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/getNodesCount.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/getNodesCount.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/getNodesCount.d.ts"
|
|
17
10
|
}
|
package/i18n/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/i18n-languages.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/i18n-languages.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/i18n-languages.d.ts"
|
|
17
10
|
}
|
package/labs-next/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/measure-enum.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/measure-enum.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/measure-enum.d.ts"
|
|
17
10
|
}
|