@atlaskit/editor-core 217.4.2 → 217.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 +27 -0
- package/dist/cjs/composable-editor/core-editor.js +1 -1
- package/dist/cjs/editor.js +1 -1
- package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +1 -1
- package/dist/cjs/ui/Addon/Dropdown/index.js +1 -1
- package/dist/cjs/ui/Appearance/Chromeless.js +4 -1
- package/dist/cjs/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +5 -6
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper.js +1 -1
- package/dist/cjs/ui/ChromeCollapsed/index.js +1 -1
- package/dist/cjs/ui/ContextPanel/index.js +1 -1
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +10 -2
- package/dist/cjs/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +6 -1
- package/dist/cjs/ui/EditorContentContainer/styles/expandStyles.js +10 -1
- package/dist/cjs/ui/EditorContentContainer/styles/fontSizeStyles.js +23 -0
- package/dist/cjs/ui/PluginSlot/index.js +1 -1
- package/dist/cjs/ui/Toolbar/ToolbarInner.js +1 -1
- package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
- package/dist/cjs/ui/WithFlash/index.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/core-editor.js +1 -1
- package/dist/es2019/editor.js +1 -1
- package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +1 -1
- package/dist/es2019/ui/Addon/Dropdown/index.js +1 -1
- package/dist/es2019/ui/Appearance/Chromeless.js +4 -1
- package/dist/es2019/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +5 -8
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper.js +1 -1
- package/dist/es2019/ui/ChromeCollapsed/index.js +1 -1
- package/dist/es2019/ui/ContextPanel/index.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +12 -4
- package/dist/es2019/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +5 -0
- package/dist/es2019/ui/EditorContentContainer/styles/expandStyles.js +9 -0
- package/dist/es2019/ui/EditorContentContainer/styles/fontSizeStyles.js +17 -0
- package/dist/es2019/ui/PluginSlot/index.js +1 -1
- package/dist/es2019/ui/Toolbar/ToolbarInner.js +1 -1
- package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
- package/dist/es2019/ui/WithFlash/index.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/core-editor.js +1 -1
- package/dist/esm/editor.js +1 -1
- package/dist/esm/ui/Addon/ClickAreaBlock/index.js +1 -1
- package/dist/esm/ui/Addon/Dropdown/index.js +1 -1
- package/dist/esm/ui/Appearance/Chromeless.js +4 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/BeforeWrapper.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +5 -6
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper.js +1 -1
- package/dist/esm/ui/ChromeCollapsed/index.js +1 -1
- package/dist/esm/ui/ContextPanel/index.js +1 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +12 -4
- package/dist/esm/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +5 -0
- package/dist/esm/ui/EditorContentContainer/styles/expandStyles.js +9 -0
- package/dist/esm/ui/EditorContentContainer/styles/fontSizeStyles.js +17 -0
- package/dist/esm/ui/PluginSlot/index.js +1 -1
- package/dist/esm/ui/Toolbar/ToolbarInner.js +1 -1
- package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
- package/dist/esm/ui/WithFlash/index.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/EditorContentContainer/styles/editorUGCTokenStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/expandStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/fontSizeStyles.d.ts +2 -0
- package/dist/types/ui/WithHelpTrigger/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/editorUGCTokenStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/expandStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/fontSizeStyles.d.ts +2 -0
- package/dist/types-ts4.5/ui/WithHelpTrigger/index.d.ts +1 -1
- package/package.json +5 -5
|
@@ -6,7 +6,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
|
|
9
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { injectIntl } from 'react-intl-next';
|
|
12
12
|
import Transition from 'react-transition-group/Transition';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
9
9
|
import { jsx, useTheme } from '@emotion/react';
|
|
10
10
|
import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
11
11
|
import { richMediaClassName, tableSharedStyle } from '@atlaskit/editor-common/styles';
|
|
@@ -28,14 +28,15 @@ import { codeMarkStyles } from './styles/codeMarkStyles';
|
|
|
28
28
|
import { commentEditorStyles } from './styles/commentEditorStyles';
|
|
29
29
|
import { cursorStyles } from './styles/cursorStyles';
|
|
30
30
|
import { dangerDateStyles, dateStyles, dateVanillaStyles } from './styles/dateStyles';
|
|
31
|
-
import { editorUGCTokensDefault, editorUGCTokensRefreshed } from './styles/editorUGCTokenStyles';
|
|
31
|
+
import { editorUGCSmallText, editorUGCTokensDefault, editorUGCTokensRefreshed } from './styles/editorUGCTokenStyles';
|
|
32
32
|
import { embedCardStyles } from './styles/embedCardStyles';
|
|
33
33
|
import { emojiDangerStyles, emojiStyles, getDenseEmojiStyles, getScaledDenseEmojiStyles, scaledEmojiStyles } from './styles/emoji';
|
|
34
|
-
import { expandStyles, expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes, expandStylesMixin_fg_platform_visual_refresh_icons, expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes, getDenseExpandTitleStyles } from './styles/expandStyles';
|
|
34
|
+
import { expandStyles, expandStylesMixin_experiment_platform_editor_chromeless_expand_fix, expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes, expandStylesMixin_fg_platform_visual_refresh_icons, expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes, getDenseExpandTitleStyles } from './styles/expandStyles';
|
|
35
35
|
import { extensionDiffStyles, getExtensionStyles } from './styles/extensionStyles';
|
|
36
36
|
import { findReplaceStyles, findReplaceStylesNewWithA11Y, findReplaceStylesNewWithCodeblockColorContrastFix, findReplaceStylesWithCodeblockColorContrastFix } from './styles/findReplaceStyles';
|
|
37
37
|
import { firstBlockNodeStyles } from './styles/firstBlockNodeStyles';
|
|
38
38
|
import { firstFloatingToolbarButtonStyles } from './styles/floatingToolbarStyles';
|
|
39
|
+
import { fontSizeStyles } from './styles/fontSizeStyles';
|
|
39
40
|
import { fullPageEditorStyles } from './styles/fullPageEditorStyles';
|
|
40
41
|
import { gapCursorStyles, gapCursorStylesVisibilityFix } from './styles/gapCursorStyles';
|
|
41
42
|
import { gridStyles } from './styles/gridStyles';
|
|
@@ -118,6 +119,7 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
118
119
|
} = useThemeObserver();
|
|
119
120
|
const isFullPage = appearance === 'full-page' || appearance === 'full-width' || (expValEqualsNoExposure('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEqualsNoExposure('confluence_max_width_content_appearance', 'isEnabled', true)) && appearance === 'max';
|
|
120
121
|
const isComment = appearance === 'comment';
|
|
122
|
+
const isChromeless = appearance === 'chromeless';
|
|
121
123
|
const baseFontSize = getBaseFontSize(appearance, contentMode);
|
|
122
124
|
const style = editorExperiment('platform_editor_preview_panel_responsiveness', true, {
|
|
123
125
|
exposure: true
|
|
@@ -161,6 +163,8 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
161
163
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
162
164
|
indentationStyles,
|
|
163
165
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
166
|
+
expValEquals('platform_editor_small_font_size', 'isEnabled', true) && fontSizeStyles,
|
|
167
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
164
168
|
shadowStyles,
|
|
165
169
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
166
170
|
InlineNodeViewSharedStyles,
|
|
@@ -194,6 +198,8 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
194
198
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
195
199
|
editorUGCTokensRefreshed,
|
|
196
200
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
201
|
+
expValEquals('platform_editor_small_font_size', 'isEnabled', true) && editorUGCSmallText,
|
|
202
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
197
203
|
blocktypeStyles, expValEquals('platform_editor_block_menu', 'isEnabled', true) &&
|
|
198
204
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
199
205
|
blockquoteSelectedNodeStyles, expValEquals('platform_editor_block_menu', 'isEnabled', true) &&
|
|
@@ -294,7 +300,9 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
294
300
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
295
301
|
expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes,
|
|
296
302
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
297
|
-
expandStylesMixin_fg_platform_visual_refresh_icons, expValEquals('
|
|
303
|
+
expandStylesMixin_fg_platform_visual_refresh_icons, isChromeless && expValEquals('platform_editor_chromeless_expand_fix', 'isEnabled', true) &&
|
|
304
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
305
|
+
expandStylesMixin_experiment_platform_editor_chromeless_expand_fix, expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
|
|
298
306
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
299
307
|
findReplaceStylesNewWithA11Y :
|
|
300
308
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -46,4 +46,9 @@ export const editorUGCTokensRefreshed = css({
|
|
|
46
46
|
'--editor-font-ugc-token-heading-h6': 'normal 600 0.785714em/1.45455 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
47
47
|
'--editor-font-ugc-token-body': 'normal 400 1em/1.714 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
48
48
|
'--editor-font-ugc-token-weight-heading-bold': '700'
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
52
|
+
export const editorUGCSmallText = css({
|
|
53
|
+
'--editor-font-ugc-token-body-small': 'normal 400 0.875em/1.714 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif'
|
|
49
54
|
});
|
|
@@ -296,6 +296,15 @@ export const expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes = cs
|
|
|
296
296
|
}
|
|
297
297
|
});
|
|
298
298
|
|
|
299
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
300
|
+
export const expandStylesMixin_experiment_platform_editor_chromeless_expand_fix = css({
|
|
301
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
302
|
+
'.ProseMirror > .ak-editor-expand': {
|
|
303
|
+
marginLeft: 0,
|
|
304
|
+
marginRight: 0
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
|
|
299
308
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
300
309
|
export const expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes = css({
|
|
301
310
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
2
|
+
import { css } from '@emotion/react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
5
|
+
export const fontSizeStyles = css({
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
7
|
+
'.ProseMirror': {
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
9
|
+
'.fabric-editor-font-size': {
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
11
|
+
"&[data-font-size='small']": {
|
|
12
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
13
|
+
font: 'var(--editor-font-ugc-token-body-small)'
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
});
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import isEqual from 'lodash/isEqual';
|
|
10
10
|
import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import isEqual from 'lodash/isEqual';
|
|
10
10
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React, { useMemo } from 'react';
|
|
6
6
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
10
10
|
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
9
9
|
import { css, jsx, keyframes } from '@emotion/react';
|
|
10
10
|
const pulseBackground = keyframes({
|
|
11
11
|
'50%': {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "
|
|
2
|
+
export const version = "217.4.3";
|
|
@@ -9,7 +9,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
9
9
|
*/
|
|
10
10
|
import { useCallback, useMemo, useRef, Fragment } from 'react';
|
|
11
11
|
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
13
13
|
import { jsx } from '@emotion/react';
|
|
14
14
|
import isEqual from 'lodash/isEqual';
|
|
15
15
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
package/dist/esm/editor.js
CHANGED
|
@@ -16,7 +16,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
16
16
|
*/
|
|
17
17
|
import React from 'react';
|
|
18
18
|
|
|
19
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
20
20
|
import { jsx } from '@emotion/react';
|
|
21
21
|
import { ComposableEditor } from './composable-editor';
|
|
22
22
|
import useUniversalPreset from './presets/useUniversalPreset';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
10
|
import { clickAreaClickHandler } from '../click-area-helper';
|
|
@@ -12,7 +12,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
12
12
|
*/
|
|
13
13
|
import React from 'react';
|
|
14
14
|
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
16
16
|
import { jsx } from '@emotion/react';
|
|
17
17
|
import { dropdown } from './styles';
|
|
18
18
|
// Ignored via go/ees005
|
|
@@ -12,7 +12,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
12
12
|
*/
|
|
13
13
|
import React, { Fragment } from 'react';
|
|
14
14
|
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
16
16
|
import { css, jsx } from '@emotion/react';
|
|
17
17
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
18
18
|
import EditorContentContainer from '../EditorContentContainer/EditorContentContainer';
|
|
@@ -155,6 +155,9 @@ var Editor = /*#__PURE__*/function (_React$Component) {
|
|
|
155
155
|
_defineProperty(Editor, "displayName", 'ChromelessEditorAppearance');
|
|
156
156
|
export { Editor as default };
|
|
157
157
|
function RenderWithPluginState(_ref2) {
|
|
158
|
+
'use no memo';
|
|
159
|
+
|
|
160
|
+
// renderChrome should be changed to called as a component not a function
|
|
158
161
|
var renderChrome = _ref2.renderChrome,
|
|
159
162
|
editorAPI = _ref2.editorAPI;
|
|
160
163
|
var maxContentSizeReached = useSharedPluginStateWithSelector(editorAPI, ['maxContentSize'], function (states) {
|
|
@@ -6,7 +6,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
6
6
|
*/
|
|
7
7
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
8
8
|
|
|
9
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import classnames from 'classnames';
|
|
12
12
|
import { useIntl } from 'react-intl-next';
|
|
@@ -9,7 +9,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
9
9
|
|
|
10
10
|
import React, { useEffect, useState } from 'react';
|
|
11
11
|
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
13
13
|
import { css, jsx } from '@emotion/react';
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
var beforePrimaryToolbarPluginWrapperStyles = css({
|
|
9
9
|
display: 'flex',
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
// Pre-computed static styles for first- and second-child wrappers.
|
|
10
10
|
// These contain no runtime logic and are safe for static-emotion mode.
|
|
@@ -5,7 +5,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
5
5
|
*/
|
|
6
6
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
11
11
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
@@ -8,7 +8,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
8
8
|
|
|
9
9
|
import React, { useImperativeHandle, useRef } from 'react';
|
|
10
10
|
|
|
11
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
12
12
|
import { css, jsx, useTheme } from '@emotion/react';
|
|
13
13
|
import classnames from 'classnames';
|
|
14
14
|
import { injectIntl } from 'react-intl-next';
|
|
@@ -16,7 +16,6 @@ import { decisionListSelector, taskListSelector } from '@atlaskit/adf-schema';
|
|
|
16
16
|
import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
|
|
17
17
|
import { akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
18
18
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
20
19
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
21
20
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
22
21
|
// Ignored via go/ees005
|
|
@@ -212,6 +211,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
212
211
|
var contentAreaRef = useRef(null);
|
|
213
212
|
var containerRef = useRef(null);
|
|
214
213
|
var allowScrollGutter = (_props$editorAPI = props.editorAPI) === null || _props$editorAPI === void 0 || (_props$editorAPI = _props$editorAPI.base) === null || _props$editorAPI === void 0 || (_props$editorAPI = _props$editorAPI.sharedState.currentState()) === null || _props$editorAPI === void 0 ? void 0 : _props$editorAPI.allowScrollGutter;
|
|
214
|
+
var contentAreaMaxWidth = getTotalPadding() + (!fullWidthMode ? maxWidthMode ? akEditorUltraWideLayoutWidth : theme.layoutMaxWidth : akEditorFullWidthLayoutWidth);
|
|
215
215
|
useImperativeHandle(ref, function () {
|
|
216
216
|
return {
|
|
217
217
|
get scrollContainer() {
|
|
@@ -253,9 +253,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
253
253
|
// for breakout resizing, there's no need to restrict the width of codeblocks as they're always wrapped in a breakout mark
|
|
254
254
|
expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) ? editorContentAreaContainerStyleExcludeCodeBlockNew : editorContentAreaContainerStyleNew, fg('platform_editor_nested_dnd_styles_changes') && editorContentAreaContainerNestedDndStyle, !fg('platform_editor_controls_no_toolbar_space') && editorExperiment('platform_editor_controls', 'variant1') && contentAreaReducedHeaderSpace, !fg('platform_editor_controls_no_toolbar_space') && props.isEditorToolbarHidden && editorExperiment('platform_editor_controls', 'variant1') && contentAreaReservedPrimaryToolbarSpace],
|
|
255
255
|
style: {
|
|
256
|
-
'--ak-editor-content-area-max-width':
|
|
257
|
-
"".concat(akEditorUltraWideLayoutWidth + getTotalPadding(), "px") : // @ts-ignore
|
|
258
|
-
"".concat(theme.layoutMaxWidth + getTotalPadding(), "px") : "".concat(akEditorFullWidthLayoutWidth + getTotalPadding(), "px")
|
|
256
|
+
'--ak-editor-content-area-max-width': "".concat(contentAreaMaxWidth, "px")
|
|
259
257
|
}
|
|
260
258
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
261
259
|
,
|
|
@@ -263,7 +261,8 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
263
261
|
"data-editor-editable-content": true,
|
|
264
262
|
role: "region",
|
|
265
263
|
"aria-label": props.intl.formatMessage(messages.editableContentLabel),
|
|
266
|
-
ref: contentAreaRef
|
|
264
|
+
ref: contentAreaRef,
|
|
265
|
+
"data-vc": "editor-content-area-region"
|
|
267
266
|
}, jsx("div", {
|
|
268
267
|
css: [editorContentGutterStyles,
|
|
269
268
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
@@ -6,7 +6,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
6
6
|
|
|
7
7
|
import React, { useEffect, useCallback, useState } from 'react';
|
|
8
8
|
|
|
9
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
10
10
|
import { jsx } from '@emotion/react';
|
|
11
11
|
import { injectIntl } from 'react-intl-next';
|
|
12
12
|
import { ContextPanelConsumer } from '@atlaskit/editor-common/context-panel';
|
|
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import { akEditorFloatingDialogZIndex, akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
|
|
11
11
|
import { MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT } from './MainToolbar';
|
|
@@ -12,7 +12,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
12
12
|
*/
|
|
13
13
|
import React, { PureComponent } from 'react';
|
|
14
14
|
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
16
16
|
import { jsx } from '@emotion/react';
|
|
17
17
|
import { injectIntl } from 'react-intl-next';
|
|
18
18
|
import { messages } from './messages';
|
|
@@ -15,7 +15,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
15
15
|
*/
|
|
16
16
|
import React from 'react';
|
|
17
17
|
|
|
18
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
19
19
|
import { css, jsx } from '@emotion/react';
|
|
20
20
|
import { injectIntl } from 'react-intl-next';
|
|
21
21
|
import Transition from 'react-transition-group/Transition';
|
|
@@ -6,7 +6,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
|
|
9
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
10
10
|
import { jsx, useTheme } from '@emotion/react';
|
|
11
11
|
import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
12
12
|
import { richMediaClassName, tableSharedStyle } from '@atlaskit/editor-common/styles';
|
|
@@ -29,14 +29,15 @@ import { codeMarkStyles } from './styles/codeMarkStyles';
|
|
|
29
29
|
import { commentEditorStyles } from './styles/commentEditorStyles';
|
|
30
30
|
import { cursorStyles } from './styles/cursorStyles';
|
|
31
31
|
import { dangerDateStyles, dateStyles, dateVanillaStyles } from './styles/dateStyles';
|
|
32
|
-
import { editorUGCTokensDefault, editorUGCTokensRefreshed } from './styles/editorUGCTokenStyles';
|
|
32
|
+
import { editorUGCSmallText, editorUGCTokensDefault, editorUGCTokensRefreshed } from './styles/editorUGCTokenStyles';
|
|
33
33
|
import { embedCardStyles } from './styles/embedCardStyles';
|
|
34
34
|
import { emojiDangerStyles, emojiStyles, getDenseEmojiStyles, getScaledDenseEmojiStyles, scaledEmojiStyles } from './styles/emoji';
|
|
35
|
-
import { expandStyles, expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes, expandStylesMixin_fg_platform_visual_refresh_icons, expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes, getDenseExpandTitleStyles } from './styles/expandStyles';
|
|
35
|
+
import { expandStyles, expandStylesMixin_experiment_platform_editor_chromeless_expand_fix, expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes, expandStylesMixin_fg_platform_visual_refresh_icons, expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes, getDenseExpandTitleStyles } from './styles/expandStyles';
|
|
36
36
|
import { extensionDiffStyles, getExtensionStyles } from './styles/extensionStyles';
|
|
37
37
|
import { findReplaceStyles, findReplaceStylesNewWithA11Y, findReplaceStylesNewWithCodeblockColorContrastFix, findReplaceStylesWithCodeblockColorContrastFix } from './styles/findReplaceStyles';
|
|
38
38
|
import { firstBlockNodeStyles } from './styles/firstBlockNodeStyles';
|
|
39
39
|
import { firstFloatingToolbarButtonStyles } from './styles/floatingToolbarStyles';
|
|
40
|
+
import { fontSizeStyles } from './styles/fontSizeStyles';
|
|
40
41
|
import { fullPageEditorStyles } from './styles/fullPageEditorStyles';
|
|
41
42
|
import { gapCursorStyles, gapCursorStylesVisibilityFix } from './styles/gapCursorStyles';
|
|
42
43
|
import { gridStyles } from './styles/gridStyles';
|
|
@@ -114,6 +115,7 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
114
115
|
colorMode = _useThemeObserver.colorMode;
|
|
115
116
|
var isFullPage = appearance === 'full-page' || appearance === 'full-width' || (expValEqualsNoExposure('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEqualsNoExposure('confluence_max_width_content_appearance', 'isEnabled', true)) && appearance === 'max';
|
|
116
117
|
var isComment = appearance === 'comment';
|
|
118
|
+
var isChromeless = appearance === 'chromeless';
|
|
117
119
|
var baseFontSize = getBaseFontSize(appearance, contentMode);
|
|
118
120
|
var style = editorExperiment('platform_editor_preview_panel_responsiveness', true, {
|
|
119
121
|
exposure: true
|
|
@@ -157,6 +159,8 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
157
159
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
158
160
|
indentationStyles,
|
|
159
161
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
162
|
+
expValEquals('platform_editor_small_font_size', 'isEnabled', true) && fontSizeStyles,
|
|
163
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
160
164
|
shadowStyles,
|
|
161
165
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
162
166
|
InlineNodeViewSharedStyles,
|
|
@@ -190,6 +194,8 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
190
194
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
191
195
|
editorUGCTokensRefreshed,
|
|
192
196
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
197
|
+
expValEquals('platform_editor_small_font_size', 'isEnabled', true) && editorUGCSmallText,
|
|
198
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
193
199
|
blocktypeStyles, expValEquals('platform_editor_block_menu', 'isEnabled', true) &&
|
|
194
200
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
195
201
|
blockquoteSelectedNodeStyles, expValEquals('platform_editor_block_menu', 'isEnabled', true) &&
|
|
@@ -290,7 +296,9 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
290
296
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
291
297
|
expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes,
|
|
292
298
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
293
|
-
expandStylesMixin_fg_platform_visual_refresh_icons, expValEquals('
|
|
299
|
+
expandStylesMixin_fg_platform_visual_refresh_icons, isChromeless && expValEquals('platform_editor_chromeless_expand_fix', 'isEnabled', true) &&
|
|
300
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
301
|
+
expandStylesMixin_experiment_platform_editor_chromeless_expand_fix, expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
|
|
294
302
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
295
303
|
findReplaceStylesNewWithA11Y :
|
|
296
304
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -46,4 +46,9 @@ export var editorUGCTokensRefreshed = css({
|
|
|
46
46
|
'--editor-font-ugc-token-heading-h6': 'normal 600 0.785714em/1.45455 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
47
47
|
'--editor-font-ugc-token-body': 'normal 400 1em/1.714 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
48
48
|
'--editor-font-ugc-token-weight-heading-bold': '700'
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
52
|
+
export var editorUGCSmallText = css({
|
|
53
|
+
'--editor-font-ugc-token-body-small': 'normal 400 0.875em/1.714 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif'
|
|
49
54
|
});
|
|
@@ -296,6 +296,15 @@ export var expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes = css(
|
|
|
296
296
|
}
|
|
297
297
|
});
|
|
298
298
|
|
|
299
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
300
|
+
export var expandStylesMixin_experiment_platform_editor_chromeless_expand_fix = css({
|
|
301
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
302
|
+
'.ProseMirror > .ak-editor-expand': {
|
|
303
|
+
marginLeft: 0,
|
|
304
|
+
marginRight: 0
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
|
|
299
308
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
300
309
|
export var expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes = css({
|
|
301
310
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
2
|
+
import { css } from '@emotion/react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
5
|
+
export var fontSizeStyles = css({
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
7
|
+
'.ProseMirror': {
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
9
|
+
'.fabric-editor-font-size': {
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
11
|
+
"&[data-font-size='small']": {
|
|
12
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
13
|
+
font: 'var(--editor-font-ugc-token-body-small)'
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
});
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import isEqual from 'lodash/isEqual';
|
|
10
10
|
import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
@@ -12,7 +12,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
12
12
|
*/
|
|
13
13
|
import React from 'react';
|
|
14
14
|
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
16
16
|
import { css, jsx } from '@emotion/react';
|
|
17
17
|
import isEqual from 'lodash/isEqual';
|
|
18
18
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
@@ -5,7 +5,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
5
5
|
*/
|
|
6
6
|
import React, { useMemo } from 'react';
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
11
11
|
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
@@ -12,7 +12,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
12
12
|
*/
|
|
13
13
|
import React from 'react';
|
|
14
14
|
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
16
16
|
import { css, jsx, keyframes } from '@emotion/react';
|
|
17
17
|
var pulseBackground = keyframes({
|
|
18
18
|
'50%': {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "
|
|
2
|
+
export var version = "217.4.3";
|
|
@@ -9,4 +9,5 @@ export declare const expandStyles: SerializedStyles;
|
|
|
9
9
|
export declare const getDenseExpandTitleStyles: (baseFontSize?: number) => SerializedStyles;
|
|
10
10
|
export declare const expandStylesMixin_fg_platform_visual_refresh_icons: SerializedStyles;
|
|
11
11
|
export declare const expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes: SerializedStyles;
|
|
12
|
+
export declare const expandStylesMixin_experiment_platform_editor_chromeless_expand_fix: SerializedStyles;
|
|
12
13
|
export declare const expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes: SerializedStyles;
|
|
@@ -4,7 +4,7 @@ interface WithHelpTriggerProps {
|
|
|
4
4
|
render: (openHelp: () => void) => React.ReactNode;
|
|
5
5
|
}
|
|
6
6
|
declare class WithHelpTrigger extends React.Component<WithHelpTriggerProps> {
|
|
7
|
-
static contextType: React.Context<
|
|
7
|
+
static contextType: React.Context<Record<string, unknown>>;
|
|
8
8
|
context: {
|
|
9
9
|
editorActions: EditorActions;
|
|
10
10
|
};
|
|
@@ -9,4 +9,5 @@ export declare const expandStyles: SerializedStyles;
|
|
|
9
9
|
export declare const getDenseExpandTitleStyles: (baseFontSize?: number) => SerializedStyles;
|
|
10
10
|
export declare const expandStylesMixin_fg_platform_visual_refresh_icons: SerializedStyles;
|
|
11
11
|
export declare const expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes: SerializedStyles;
|
|
12
|
+
export declare const expandStylesMixin_experiment_platform_editor_chromeless_expand_fix: SerializedStyles;
|
|
12
13
|
export declare const expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes: SerializedStyles;
|
|
@@ -4,7 +4,7 @@ interface WithHelpTriggerProps {
|
|
|
4
4
|
render: (openHelp: () => void) => React.ReactNode;
|
|
5
5
|
}
|
|
6
6
|
declare class WithHelpTrigger extends React.Component<WithHelpTriggerProps> {
|
|
7
|
-
static contextType: React.Context<
|
|
7
|
+
static contextType: React.Context<Record<string, unknown>>;
|
|
8
8
|
context: {
|
|
9
9
|
editorActions: EditorActions;
|
|
10
10
|
};
|