@atlaskit/editor-core 221.2.0 → 221.3.0

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.
Files changed (66) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/afm-cc/tsconfig.json +3 -0
  3. package/afm-products/tsconfig.json +3 -0
  4. package/dist/cjs/ui/Appearance/Comment/FixedToolbar-compiled.compiled.css +20 -0
  5. package/dist/cjs/ui/Appearance/Comment/FixedToolbar-compiled.js +35 -0
  6. package/dist/cjs/ui/Appearance/Comment/FixedToolbar-emotion.js +94 -0
  7. package/dist/cjs/ui/Appearance/Comment/StickyToolbar-compiled.compiled.css +25 -0
  8. package/dist/cjs/ui/Appearance/Comment/StickyToolbar-compiled.js +66 -0
  9. package/dist/cjs/ui/Appearance/Comment/StickyToolbar-emotion.js +131 -0
  10. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +14 -134
  11. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +50 -3
  12. package/dist/cjs/ui/Toolbar/ToolbarComponentsWrapper-compiled.compiled.css +2 -0
  13. package/dist/cjs/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +29 -0
  14. package/dist/cjs/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +36 -0
  15. package/dist/cjs/ui/Toolbar/ToolbarInner.js +9 -14
  16. package/dist/cjs/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.compiled.css +2 -0
  17. package/dist/cjs/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +29 -0
  18. package/dist/cjs/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +32 -0
  19. package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +21 -19
  20. package/dist/cjs/version-wrapper.js +1 -1
  21. package/dist/es2019/ui/Appearance/Comment/FixedToolbar-compiled.compiled.css +20 -0
  22. package/dist/es2019/ui/Appearance/Comment/FixedToolbar-compiled.js +26 -0
  23. package/dist/es2019/ui/Appearance/Comment/FixedToolbar-emotion.js +91 -0
  24. package/dist/es2019/ui/Appearance/Comment/StickyToolbar-compiled.compiled.css +25 -0
  25. package/dist/es2019/ui/Appearance/Comment/StickyToolbar-compiled.js +51 -0
  26. package/dist/es2019/ui/Appearance/Comment/StickyToolbar-emotion.js +128 -0
  27. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +10 -133
  28. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +50 -3
  29. package/dist/es2019/ui/Toolbar/ToolbarComponentsWrapper-compiled.compiled.css +2 -0
  30. package/dist/es2019/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +20 -0
  31. package/dist/es2019/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +28 -0
  32. package/dist/es2019/ui/Toolbar/ToolbarInner.js +6 -17
  33. package/dist/es2019/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.compiled.css +2 -0
  34. package/dist/es2019/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +20 -0
  35. package/dist/es2019/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +24 -0
  36. package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +18 -19
  37. package/dist/es2019/version-wrapper.js +1 -1
  38. package/dist/esm/ui/Appearance/Comment/FixedToolbar-compiled.compiled.css +20 -0
  39. package/dist/esm/ui/Appearance/Comment/FixedToolbar-compiled.js +28 -0
  40. package/dist/esm/ui/Appearance/Comment/FixedToolbar-emotion.js +86 -0
  41. package/dist/esm/ui/Appearance/Comment/StickyToolbar-compiled.compiled.css +25 -0
  42. package/dist/esm/ui/Appearance/Comment/StickyToolbar-compiled.js +58 -0
  43. package/dist/esm/ui/Appearance/Comment/StickyToolbar-emotion.js +124 -0
  44. package/dist/esm/ui/Appearance/Comment/Toolbar.js +14 -132
  45. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +50 -3
  46. package/dist/esm/ui/Toolbar/ToolbarComponentsWrapper-compiled.compiled.css +2 -0
  47. package/dist/esm/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +21 -0
  48. package/dist/esm/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +28 -0
  49. package/dist/esm/ui/Toolbar/ToolbarInner.js +8 -16
  50. package/dist/esm/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.compiled.css +2 -0
  51. package/dist/esm/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +21 -0
  52. package/dist/esm/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +25 -0
  53. package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +21 -18
  54. package/dist/esm/version-wrapper.js +1 -1
  55. package/dist/types/ui/Appearance/Comment/FixedToolbar-compiled.d.ts +20 -0
  56. package/dist/types/ui/Appearance/Comment/FixedToolbar-emotion.d.ts +19 -0
  57. package/dist/types/ui/Appearance/Comment/StickyToolbar-compiled.d.ts +22 -0
  58. package/dist/types/ui/Appearance/Comment/StickyToolbar-emotion.d.ts +21 -0
  59. package/dist/types/ui/Appearance/Comment/Toolbar.d.ts +1 -2
  60. package/dist/types/ui/Toolbar/ToolbarComponentsWrapper-compiled.d.ts +17 -0
  61. package/dist/types/ui/Toolbar/ToolbarComponentsWrapper-emotion.d.ts +17 -0
  62. package/dist/types/ui/Toolbar/ToolbarInner.d.ts +1 -6
  63. package/dist/types/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.d.ts +17 -0
  64. package/dist/types/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.d.ts +17 -0
  65. package/dist/types/ui/Toolbar/ToolbarWithSizeDetector.d.ts +2 -2
  66. package/package.json +10 -10
@@ -0,0 +1,28 @@
1
+ /* FixedToolbar-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ /**
3
+ * Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
4
+ * Used via `componentWithCondition` in `Toolbar.tsx`.
5
+ *
6
+ * Cleanup: delete this file once the experiment has shipped.
7
+ */
8
+ import "./FixedToolbar-compiled.compiled.css";
9
+ import { ax, ix } from "@compiled/react/runtime";
10
+ import React from 'react';
11
+ import { fg } from '@atlaskit/platform-feature-flags';
12
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
+ var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
14
+ var fixedToolbarCompiledStyles = {
15
+ mainToolbarWrapper: "_kqswh2mm _4cvr1h6o _ca0qu2gc _u5f3u2gc _n3tdidpf _19bvv47k _1e0c1txw _4t3i1wug _bfhkvuon _16qsglyw _1khpidpf _lg5oidpf _1cuzidpf",
16
+ mainToolbarWithoutLeftPadding: "_ca0qu2gc _u5f3u2gc _n3tdidpf _19bvu2gc",
17
+ mainToolbarTwoLine: "_1uq61sxn _cnpmh9n0 _1djy1txw _17mgesu3 _1q27esu3 _16ec1txw",
18
+ mainToolbarWrapperVisualRefresh: "_3pwj1osq",
19
+ mainToolbarWithRadius: "_2rko1cku",
20
+ mainToolbarRadius: "_2rko12c2",
21
+ editorModernisationToolbar: "_2rko15b0 _10ytglyw"
22
+ };
23
+ export var FixedToolbarCompiled = function FixedToolbarCompiled(props) {
24
+ return /*#__PURE__*/React.createElement("div", {
25
+ "data-testid": "ak-editor-main-toolbar",
26
+ className: ax([fixedToolbarCompiledStyles.mainToolbarWrapper, props.twoLineEditorToolbar && fixedToolbarCompiledStyles.mainToolbarTwoLine, fixedToolbarCompiledStyles.mainToolbarWrapperVisualRefresh, props.isNewToolbarEnabled && fixedToolbarCompiledStyles.mainToolbarWithoutLeftPadding, !expValEquals('platform_editor_comment_editor_border_radius', 'isEnabled', true) && fg('platform_editor_comments_border_radius') && fixedToolbarCompiledStyles.mainToolbarWithRadius, expValEquals('platform_editor_comment_editor_border_radius', 'isEnabled', true) && fixedToolbarCompiledStyles.mainToolbarRadius, props.isEditorModernisationEnabled && fixedToolbarCompiledStyles.editorModernisationToolbar])
27
+ }, props.children);
28
+ };
@@ -0,0 +1,86 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
6
+ /**
7
+ * Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
8
+ * Used via `componentWithCondition` in `Toolbar.tsx`.
9
+ *
10
+ * Cleanup: delete this file once the experiment has shipped.
11
+ */
12
+
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback for compiled migration
14
+ import { css, jsx } from '@emotion/react';
15
+ import { fg } from '@atlaskit/platform-feature-flags';
16
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
17
+ var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
18
+ var mainToolbarWrapperStyleNew = css({
19
+ position: 'relative',
20
+ alignItems: 'center',
21
+ padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " 0"),
22
+ display: 'flex',
23
+ height: 'auto',
24
+ backgroundColor: "var(--ds-surface, #FFFFFF)",
25
+ boxShadow: 'none',
26
+ paddingLeft: "var(--ds-space-250, 20px)",
27
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
28
+ '> div': {
29
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
30
+ '> div:first-of-type:not(style), > style:first-of-type + *': {
31
+ marginLeft: 0
32
+ }
33
+ },
34
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
35
+ '.block-type-btn': {
36
+ paddingLeft: 0
37
+ }
38
+ });
39
+
40
+ /** keep default padding for entire toolbar */
41
+ var mainToolbarWithoutLeftPadding = css({
42
+ padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " 0")
43
+ });
44
+ var mainToolbarTwoLineStylesNew = css({
45
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
46
+ '& > div': _defineProperty(_defineProperty({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
47
+ flexDirection: 'column-reverse',
48
+ alignItems: 'end',
49
+ display: 'flex',
50
+ justifyContent: 'flex-end'
51
+ }), '> div:first-of-type', _defineProperty({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
52
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
53
+ '> div:nth-of-type(2)': {
54
+ justifyContent: 'flex-end',
55
+ display: 'flex'
56
+ }
57
+ }))
58
+ });
59
+ var mainToolbarWrapperStylesVisualRefresh = css({
60
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
61
+ 'span svg': {
62
+ maxWidth: '100%'
63
+ }
64
+ });
65
+ var mainToolbarWithRadiusStyle = css({
66
+ borderRadius: "var(--ds-radius-small, 3px)".concat(" ", "var(--ds-radius-small, 3px)", " 0 0")
67
+ });
68
+ var mainToolbarRadius = css({
69
+ borderRadius: "var(--ds-radius-medium, 6px)".concat(" ", "var(--ds-radius-medium, 6px)", " 0 0")
70
+ });
71
+ var editorModernisationToolbarStyle = css({
72
+ borderRadius: "var(--ds-radius-xlarge, 12px)".concat(" ", "var(--ds-radius-xlarge, 12px)", " 0 0"),
73
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
74
+ '&.show-keyline': {
75
+ boxShadow: 'none'
76
+ }
77
+ });
78
+ export var FixedToolbarEmotion = function FixedToolbarEmotion(props) {
79
+ return (
80
+ // eslint-disable-next-line @atlaskit/design-system/prefer-primitives
81
+ jsx("div", {
82
+ css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, mainToolbarWrapperStylesVisualRefresh, props.isNewToolbarEnabled && mainToolbarWithoutLeftPadding, !expValEquals('platform_editor_comment_editor_border_radius', 'isEnabled', true) && fg('platform_editor_comments_border_radius') && mainToolbarWithRadiusStyle, expValEquals('platform_editor_comment_editor_border_radius', 'isEnabled', true) && mainToolbarRadius, props.isEditorModernisationEnabled && editorModernisationToolbarStyle],
83
+ "data-testid": "ak-editor-main-toolbar"
84
+ }, props.children)
85
+ );
86
+ };
@@ -0,0 +1,25 @@
1
+
2
+ ._2rko12c2{border-radius:var(--ds-radius-medium,6px) var(--ds-radius-medium,6px) 0 0}
3
+ ._2rko15b0{border-radius:var(--ds-radius-xlarge,9pt) var(--ds-radius-xlarge,9pt) 0 0}
4
+ ._2rko1cku{border-radius:var(--ds-radius-small,3px) var(--ds-radius-small,3px) 0 0}
5
+ ._v56416gf{transition:box-shadow .2s ease-in-out}._10ytglyw.show-keyline{box-shadow:none}
6
+ ._10ytl2q5.show-keyline{box-shadow:0 2px 0 0 var(--ds-background-accent-gray-subtlest,#f0f1f2)}
7
+ ._16qsglyw{box-shadow:none}
8
+ ._19bvu2gc{padding-left:var(--ds-space-100,8px)}
9
+ ._19bvv47k{padding-left:var(--ds-space-250,20px)}
10
+ ._1cuzidpf .block-type-btn{padding-left:0}
11
+ ._1e0c1txw{display:flex}
12
+ ._1khpidpf >div>div:first-of-type:not(style){margin-left:0}
13
+ ._1pbybfng{z-index:500}
14
+ ._3pwj1osq span svg{max-width:100%}
15
+ ._4cvr1h6o{align-items:center}
16
+ ._4t3i1wug{height:auto}
17
+ ._bfhkvuon{background-color:var(--ds-surface,#fff)}
18
+ ._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
19
+ ._kqsw1if8{position:sticky}
20
+ ._kqswh2mm{position:relative}
21
+ ._lg5oidpf >div>style:first-of-type+*{margin-left:0}
22
+ ._n3tdidpf{padding-bottom:0}
23
+ ._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
24
+ ._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
25
+ @media (max-width:490px){._1q27esu3>div>div:first-of-type>div:nth-of-type(2){justify-content:flex-end}._16ec1txw>div>div:first-of-type>div:nth-of-type(2){display:flex}._1uq61sxn>div{flex-direction:column-reverse}._cnpmh9n0>div{align-items:end}._1djy1txw>div{display:flex}._17mgesu3>div{justify-content:flex-end}}
@@ -0,0 +1,58 @@
1
+ /* StickyToolbar-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
+ import "./StickyToolbar-compiled.compiled.css";
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ /**
6
+ * Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
7
+ * Used via `componentWithCondition` in `Toolbar.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+
12
+ import React, { useEffect, useMemo, useState } from 'react';
13
+ import { fg } from '@atlaskit/platform-feature-flags';
14
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
15
+ var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
16
+ var akEditorMenuZIndex = 500;
17
+ var akEditorToolbarKeylineHeight = 2;
18
+ var stickyToolbarCompiledStyles = {
19
+ mainToolbarWrapper: "_kqswh2mm _4cvr1h6o _ca0qu2gc _u5f3u2gc _n3tdidpf _19bvv47k _1e0c1txw _4t3i1wug _bfhkvuon _16qsglyw _1khpidpf _lg5oidpf _1cuzidpf",
20
+ mainToolbarWithPadding: "_ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc",
21
+ mainToolbarTwoLine: "_1uq61sxn _cnpmh9n0 _1djy1txw _17mgesu3 _1q27esu3 _16ec1txw",
22
+ mainToolbarWrapperVisualRefresh: "_3pwj1osq",
23
+ mainToolbarWithRadius: "_2rko1cku",
24
+ mainToolbarRadius: "_2rko12c2",
25
+ editorModernisationToolbar: "_2rko15b0 _10ytglyw",
26
+ stickyToolbarWrapper: "_v56416gf _kqsw1if8 _n3tdu2gc _1pbybfng _10ytl2q5"
27
+ };
28
+ export var StickyToolbarCompiled = function StickyToolbarCompiled(props) {
29
+ var _useState = useState(0),
30
+ _useState2 = _slicedToArray(_useState, 2),
31
+ top = _useState2[0],
32
+ setTop = _useState2[1];
33
+
34
+ // ED-15802: if externalToolbarRef is passed in, set top to externalToolbarRef?.current?.clientHeight
35
+ // else if offsetTop is a number set top to offsetTop
36
+ // otherwise top is 0 as initial state
37
+ useEffect(function () {
38
+ var _props$externalToolba;
39
+ if ((_props$externalToolba = props.externalToolbarRef) !== null && _props$externalToolba !== void 0 && (_props$externalToolba = _props$externalToolba.current) !== null && _props$externalToolba !== void 0 && _props$externalToolba.clientHeight) {
40
+ setTop(props.externalToolbarRef.current.clientHeight);
41
+ } else {
42
+ setTop(props.offsetTop || 0);
43
+ }
44
+ }, [props.externalToolbarRef, props.offsetTop]);
45
+ var wrapperStyle = useMemo(function () {
46
+ return {
47
+ top: "".concat(top, "px")
48
+ };
49
+ }, [top]);
50
+ return /*#__PURE__*/React.createElement("div", {
51
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/enforce-style-prop -- top is computed dynamically from externalToolbarRef height / offsetTop and cannot be a static css value
52
+ style: wrapperStyle,
53
+ "data-testid": "ak-editor-main-toolbar"
54
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
55
+ ,
56
+ className: ax([stickyToolbarCompiledStyles.mainToolbarWrapper, props.twoLineEditorToolbar && stickyToolbarCompiledStyles.mainToolbarTwoLine, stickyToolbarCompiledStyles.mainToolbarWrapperVisualRefresh, stickyToolbarCompiledStyles.stickyToolbarWrapper, props.isNewToolbarEnabled && stickyToolbarCompiledStyles.mainToolbarWithPadding, expValEquals('platform_editor_comment_editor_border_radius', 'isEnabled', true) && stickyToolbarCompiledStyles.mainToolbarRadius, !expValEquals('platform_editor_comment_editor_border_radius', 'isEnabled', true) && fg('platform_editor_comments_border_radius') && stickyToolbarCompiledStyles.mainToolbarWithRadius, props.isEditorModernisationEnabled && stickyToolbarCompiledStyles.editorModernisationToolbar, 'show-keyline'])
57
+ }, props.children);
58
+ };
@@ -0,0 +1,124 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
+ /**
4
+ * @jsxRuntime classic
5
+ * @jsx jsx
6
+ */
7
+ /**
8
+ * Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
9
+ * Used via `componentWithCondition` in `Toolbar.tsx`.
10
+ *
11
+ * Cleanup: delete this file once the experiment has shipped.
12
+ */
13
+
14
+ import { useEffect, useState } from 'react';
15
+
16
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback for compiled migration
17
+ import { css, jsx } from '@emotion/react';
18
+ import { fg } from '@atlaskit/platform-feature-flags';
19
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
20
+ var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
21
+ var akEditorMenuZIndex = 500;
22
+ var akEditorToolbarKeylineHeight = 2;
23
+ var mainToolbarWrapperStyleNew = css({
24
+ position: 'relative',
25
+ alignItems: 'center',
26
+ padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " 0"),
27
+ display: 'flex',
28
+ height: 'auto',
29
+ backgroundColor: "var(--ds-surface, #FFFFFF)",
30
+ boxShadow: 'none',
31
+ paddingLeft: "var(--ds-space-250, 20px)",
32
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
33
+ '> div': {
34
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
35
+ '> div:first-of-type:not(style), > style:first-of-type + *': {
36
+ marginLeft: 0
37
+ }
38
+ },
39
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
40
+ '.block-type-btn': {
41
+ paddingLeft: 0
42
+ }
43
+ });
44
+ var mainToolbarWithPadding = css({
45
+ padding: "var(--ds-space-100, 8px)"
46
+ });
47
+ var mainToolbarTwoLineStylesNew = css({
48
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
49
+ '& > div': _defineProperty(_defineProperty({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
50
+ flexDirection: 'column-reverse',
51
+ alignItems: 'end',
52
+ display: 'flex',
53
+ justifyContent: 'flex-end'
54
+ }), '> div:first-of-type', _defineProperty({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
55
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
56
+ '> div:nth-of-type(2)': {
57
+ justifyContent: 'flex-end',
58
+ display: 'flex'
59
+ }
60
+ }))
61
+ });
62
+ var mainToolbarWrapperStylesVisualRefresh = css({
63
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
64
+ 'span svg': {
65
+ maxWidth: '100%'
66
+ }
67
+ });
68
+ var mainToolbarWithRadiusStyle = css({
69
+ borderRadius: "var(--ds-radius-small, 3px)".concat(" ", "var(--ds-radius-small, 3px)", " 0 0")
70
+ });
71
+ var mainToolbarRadius = css({
72
+ borderRadius: "var(--ds-radius-medium, 6px)".concat(" ", "var(--ds-radius-medium, 6px)", " 0 0")
73
+ });
74
+ var editorModernisationToolbarStyle = css({
75
+ borderRadius: "var(--ds-radius-xlarge, 12px)".concat(" ", "var(--ds-radius-xlarge, 12px)", " 0 0"),
76
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
77
+ '&.show-keyline': {
78
+ boxShadow: 'none'
79
+ }
80
+ });
81
+ var stickyToolbarWrapperStyleNew = css({
82
+ position: 'sticky',
83
+ paddingBottom: "var(--ds-space-100, 8px)",
84
+ zIndex: akEditorMenuZIndex,
85
+ transition: 'box-shadow ease-in-out 0.2s',
86
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
87
+ '&.show-keyline': {
88
+ boxShadow: "0 ".concat(akEditorToolbarKeylineHeight, "px 0 0 ", "var(--ds-background-accent-gray-subtlest, #F0F1F2)")
89
+ }
90
+ });
91
+ export var StickyToolbarEmotion = function StickyToolbarEmotion(props) {
92
+ var _useState = useState(0),
93
+ _useState2 = _slicedToArray(_useState, 2),
94
+ top = _useState2[0],
95
+ setTop = _useState2[1];
96
+
97
+ // ED-15802: if externalToolbarRef is passed in, set top to externalToolbarRef?.current?.clientHeight
98
+ // else if offsetTop is a number set top to offsetTop
99
+ // otherwise top is 0 as initial state
100
+ useEffect(function () {
101
+ var _props$externalToolba;
102
+ if ((_props$externalToolba = props.externalToolbarRef) !== null && _props$externalToolba !== void 0 && (_props$externalToolba = _props$externalToolba.current) !== null && _props$externalToolba !== void 0 && _props$externalToolba.clientHeight) {
103
+ setTop(props.externalToolbarRef.current.clientHeight);
104
+ } else {
105
+ setTop(props.offsetTop || 0);
106
+ }
107
+ }, [props.externalToolbarRef, props.offsetTop]);
108
+ var wrapperStyle = {
109
+ top: "".concat(top, "px")
110
+ };
111
+ return (
112
+ // eslint-disable-next-line @atlaskit/design-system/prefer-primitives
113
+ jsx("div", {
114
+ css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, mainToolbarWrapperStylesVisualRefresh, stickyToolbarWrapperStyleNew, props.isNewToolbarEnabled && mainToolbarWithPadding, expValEquals('platform_editor_comment_editor_border_radius', 'isEnabled', true) && mainToolbarRadius, !expValEquals('platform_editor_comment_editor_border_radius', 'isEnabled', true) && fg('platform_editor_comments_border_radius') && mainToolbarWithRadiusStyle, props.isEditorModernisationEnabled && editorModernisationToolbarStyle]
115
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/enforce-style-prop -- top is computed dynamically from externalToolbarRef height / offsetTop and cannot be a static css value
116
+ ,
117
+ style: wrapperStyle,
118
+ "data-testid": "ak-editor-main-toolbar"
119
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
120
+ ,
121
+ className: 'show-keyline'
122
+ }, props.children)
123
+ );
124
+ };
@@ -1,136 +1,18 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _typeof from "@babel/runtime/helpers/typeof";
3
- import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
5
- /**
6
- * @jsxRuntime classic
7
- * @jsx jsx
8
- */
9
-
10
- import React, { useEffect, useState } from 'react';
11
-
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
- import { css, jsx } from '@emotion/react';
14
- import { fg } from '@atlaskit/platform-feature-flags';
3
+ import React from 'react';
4
+ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
15
5
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
16
- var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
17
- var akEditorMenuZIndex = 500;
18
- var akEditorToolbarKeylineHeight = 2;
19
- var mainToolbarWrapperStyleNew = css({
20
- position: 'relative',
21
- alignItems: 'center',
22
- padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " 0"),
23
- display: 'flex',
24
- height: 'auto',
25
- backgroundColor: "var(--ds-surface, #FFFFFF)",
26
- boxShadow: 'none',
27
- paddingLeft: "var(--ds-space-250, 20px)",
28
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
29
- '> div': {
30
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
31
- '> div:first-of-type:not(style), > style:first-of-type + *': {
32
- marginLeft: 0
33
- }
34
- },
35
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
36
- '.block-type-btn': {
37
- paddingLeft: 0
38
- }
39
- });
40
-
41
- /** keep default padding for entire toolbar */
42
- var mainToolbarWithoutLeftPadding = css({
43
- padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " 0")
44
- });
45
- var mainToolbarWithPadding = css({
46
- padding: "var(--ds-space-100, 8px)"
47
- });
48
- var mainToolbarTwoLineStylesNew = css({
49
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
50
- '& > div': _defineProperty(_defineProperty({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
51
- flexDirection: 'column-reverse',
52
- alignItems: 'end',
53
- display: 'flex',
54
- justifyContent: 'flex-end'
55
- }), '> div:first-of-type', _defineProperty({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
56
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
57
- '> div:nth-of-type(2)': {
58
- justifyContent: 'flex-end',
59
- display: 'flex'
60
- }
61
- }))
62
- });
63
- var mainToolbarWrapperStylesVisualRefresh = css({
64
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
65
- 'span svg': {
66
- maxWidth: '100%'
67
- }
68
- });
69
- var mainToolbarWithRadiusStyle = css({
70
- borderRadius: "var(--ds-radius-small, 3px)".concat(" ", "var(--ds-radius-small, 3px)", " 0 0")
71
- });
72
- var mainToolbarRadius = css({
73
- borderRadius: "var(--ds-radius-medium, 6px)".concat(" ", "var(--ds-radius-medium, 6px)", " 0 0")
74
- });
75
- var editorModernisationToolbarStyle = css({
76
- borderRadius: "var(--ds-radius-xlarge, 12px)".concat(" ", "var(--ds-radius-xlarge, 12px)", " 0 0"),
77
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
78
- '&.show-keyline': {
79
- boxShadow: 'none'
80
- }
81
- });
82
- var stickyToolbarWrapperStyleNew = css({
83
- position: 'sticky',
84
- paddingBottom: "var(--ds-space-100, 8px)",
85
- zIndex: akEditorMenuZIndex,
86
- transition: 'box-shadow ease-in-out 0.2s',
87
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
88
- '&.show-keyline': {
89
- boxShadow: "0 ".concat(akEditorToolbarKeylineHeight, "px 0 0 ", "var(--ds-background-accent-gray-subtlest, #F0F1F2)")
90
- }
91
- });
92
- var StickyToolbar = function StickyToolbar(props) {
93
- var _useState = useState(0),
94
- _useState2 = _slicedToArray(_useState, 2),
95
- top = _useState2[0],
96
- setTop = _useState2[1];
97
-
98
- // ED-15802: if externalToolbarRef is passed in, set top to externalToolbarRef?.current?.clientHeight
99
- // else if offsetTop is a number set top to offsetTop
100
- // otherwise top is 0 as initial state
101
- useEffect(function () {
102
- var _props$externalToolba;
103
- if ((_props$externalToolba = props.externalToolbarRef) !== null && _props$externalToolba !== void 0 && (_props$externalToolba = _props$externalToolba.current) !== null && _props$externalToolba !== void 0 && _props$externalToolba.clientHeight) {
104
- setTop(props.externalToolbarRef.current.clientHeight);
105
- } else {
106
- setTop(props.offsetTop || 0);
107
- }
108
- }, [props.externalToolbarRef, props.offsetTop]);
109
- return (
110
- // eslint-disable-next-line @atlaskit/design-system/prefer-primitives
111
- jsx("div", {
112
- css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, mainToolbarWrapperStylesVisualRefresh, stickyToolbarWrapperStyleNew, props.isNewToolbarEnabled && mainToolbarWithPadding, expValEquals('platform_editor_comment_editor_border_radius', 'isEnabled', true) && mainToolbarRadius, !expValEquals('platform_editor_comment_editor_border_radius', 'isEnabled', true) && fg('platform_editor_comments_border_radius') && mainToolbarWithRadiusStyle, props.isEditorModernisationEnabled && editorModernisationToolbarStyle]
113
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
114
- ,
115
- style: {
116
- top: "".concat(top, "px")
117
- },
118
- "data-testid": "ak-editor-main-toolbar"
119
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
120
- ,
121
- className: 'show-keyline'
122
- }, props.children)
123
- );
124
- };
125
- var FixedToolbar = function FixedToolbar(props) {
126
- return (
127
- // eslint-disable-next-line @atlaskit/design-system/prefer-primitives
128
- jsx("div", {
129
- css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, mainToolbarWrapperStylesVisualRefresh, props.isNewToolbarEnabled && mainToolbarWithoutLeftPadding, !expValEquals('platform_editor_comment_editor_border_radius', 'isEnabled', true) && fg('platform_editor_comments_border_radius') && mainToolbarWithRadiusStyle, expValEquals('platform_editor_comment_editor_border_radius', 'isEnabled', true) && mainToolbarRadius, props.isEditorModernisationEnabled && editorModernisationToolbarStyle],
130
- "data-testid": "ak-editor-main-toolbar"
131
- }, props.children)
132
- );
133
- };
6
+ import { FixedToolbarCompiled } from './FixedToolbar-compiled';
7
+ import { FixedToolbarEmotion } from './FixedToolbar-emotion';
8
+ import { StickyToolbarCompiled } from './StickyToolbar-compiled';
9
+ import { StickyToolbarEmotion } from './StickyToolbar-emotion';
10
+ var StickyToolbarMigration = componentWithCondition(function () {
11
+ return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
12
+ }, StickyToolbarCompiled, StickyToolbarEmotion);
13
+ var FixedToolbarMigration = componentWithCondition(function () {
14
+ return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
15
+ }, FixedToolbarCompiled, FixedToolbarEmotion);
134
16
 
135
17
  /**
136
18
  * ED-15802: Scenarios when a sticky bar is used:
@@ -166,7 +48,7 @@ export var MainToolbar = function MainToolbar(_ref) {
166
48
  isEditorModernisationEnabled = _ref.isEditorModernisationEnabled,
167
49
  isNewToolbarEnabled = _ref.isNewToolbarEnabled;
168
50
  if (useStickyToolbar) {
169
- return jsx(StickyToolbar
51
+ return /*#__PURE__*/React.createElement(StickyToolbarMigration
170
52
  // Ignored via go/ees005
171
53
  // eslint-disable-next-line react/jsx-props-no-spreading
172
54
  , _extends({}, getStickyParameters(useStickyToolbar), {
@@ -175,7 +57,7 @@ export var MainToolbar = function MainToolbar(_ref) {
175
57
  isNewToolbarEnabled: isNewToolbarEnabled
176
58
  }), children);
177
59
  }
178
- return jsx(FixedToolbar, {
60
+ return /*#__PURE__*/React.createElement(FixedToolbarMigration, {
179
61
  isEditorModernisationEnabled: isEditorModernisationEnabled,
180
62
  twoLineEditorToolbar: twoLineEditorToolbar,
181
63
  isNewToolbarEnabled: isNewToolbarEnabled
@@ -62,6 +62,15 @@ var hideEditorContentAreaProsemirrorWithAttributeStyle = css({
62
62
  display: 'none'
63
63
  }
64
64
  });
65
+ var hideEditorContentAreaScrollGutterWithAttributeStyle = css({
66
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
67
+ '&[data-markdown-mode-hide-scroll-gutter="true"] > .ak-editor-content-area > [data-vc="scroll-gutter"]': {
68
+ display: 'none'
69
+ }
70
+ });
71
+ var hideEditorScrollGutterStyle = css({
72
+ display: 'none'
73
+ });
65
74
  var fullWidthNonChromelessBreakoutBlockTableStyle = css({
66
75
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-1
67
76
  '.fabric-editor--full-width-mode:not(:has(#chromeless-editor))': {
@@ -218,6 +227,38 @@ var contentAreaHeightNoToolbar = css({
218
227
  var markdownModeContainerBackgroundStyle = css({
219
228
  backgroundColor: "var(--ds-surface-sunken, #F8F8F8)"
220
229
  });
230
+ var markdownModeContentAreaStyle = css({
231
+ boxSizing: 'border-box',
232
+ height: '100%',
233
+ margin: 0,
234
+ maxWidth: 'none',
235
+ minWidth: 0,
236
+ paddingBottom: 0,
237
+ paddingTop: 0,
238
+ width: '100%',
239
+ // The markdown source view is rendered through PluginSlot. Stretch those
240
+ // intermediate wrappers so its in-flow footer can sit at the bottom without
241
+ // overlaying the CodeMirror scrollbar.
242
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
243
+ '> .ak-editor-content-area': {
244
+ boxSizing: 'border-box',
245
+ display: 'flex',
246
+ flexDirection: 'column',
247
+ height: '100%',
248
+ minHeight: 0,
249
+ minWidth: 0,
250
+ padding: 0,
251
+ width: '100%'
252
+ },
253
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
254
+ '> .ak-editor-content-area > [data-testid="plugins-components-wrapper"]': {
255
+ display: 'flex',
256
+ flex: '1 1 auto',
257
+ minHeight: 0,
258
+ minWidth: 0,
259
+ width: '100%'
260
+ }
261
+ });
221
262
  export var CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
222
263
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
223
264
  export var EDITOR_CONTAINER = 'ak-editor-container';
@@ -256,7 +297,10 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
256
297
  var _states$markdownModeS2;
257
298
  return (_states$markdownModeS2 = states.markdownModeState) === null || _states$markdownModeS2 === void 0 ? void 0 : _states$markdownModeS2.isMarkdownMode;
258
299
  });
259
- var shouldHideProseMirrorForMarkdownMode = expValEqualsNoExposure('cc-markdown-mode', 'isEnabled', true) && markdownPluginCurrentView !== 'preview' && markdownPluginCurrentIsMarkdownMode;
300
+ var isMarkdownModeExperimentEnabled = expValEqualsNoExposure('cc-markdown-mode', 'isEnabled', true);
301
+ var shouldHideProseMirrorForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentView !== 'preview' && markdownPluginCurrentIsMarkdownMode;
302
+ var shouldHideScrollGutterForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentIsMarkdownMode;
303
+ var shouldUseMarkdownModeMvpLayout = shouldHideProseMirrorForMarkdownMode && fg('platform_editor_md_mvp_layout');
260
304
  return jsx("div", {
261
305
  css: [contentAreaNew, props.isEditorToolbarHidden && contentAreaHeightNoToolbar],
262
306
  "data-testid": CONTENT_AREA_TEST_ID,
@@ -264,7 +308,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
264
308
  }, jsx("div", {
265
309
  css: [
266
310
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
267
- contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && fg('platform_editor_md_mvp_layout') && markdownModeContainerBackgroundStyle],
311
+ contentAreaWrapper, shouldUseMarkdownModeMvpLayout && markdownModeContainerBackgroundStyle],
268
312
  "data-testid": EDITOR_CONTAINER,
269
313
  "data-editor-container": 'true'
270
314
  }, jsx(EditorContentContainer
@@ -283,10 +327,11 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
283
327
  editorDisabled: props.disabled
284
328
  }, jsx("div", {
285
329
  "data-markdown-mode-hide-prosemirror": shouldHideProseMirrorForMarkdownMode ? 'true' : undefined,
330
+ "data-markdown-mode-hide-scroll-gutter": shouldHideScrollGutterForMarkdownMode ? 'true' : undefined,
286
331
  css: [editorContentAreaNew, editorContentAreaProsemirrorStyle,
287
332
  // EDITOR-6558: hide ProseMirror when the markdown-mode plugin
288
333
  // reports a non-WYSIWYG view.
289
- shouldHideProseMirrorForMarkdownMode && hideEditorContentAreaProsemirrorWithAttributeStyle, tableFullPageEditorStylesNew, fullWidthNonChromelessBreakoutBlockTableStyle,
334
+ shouldHideProseMirrorForMarkdownMode && hideEditorContentAreaProsemirrorWithAttributeStyle, shouldHideScrollGutterForMarkdownMode && hideEditorContentAreaScrollGutterWithAttributeStyle, shouldUseMarkdownModeMvpLayout && markdownModeContentAreaStyle, tableFullPageEditorStylesNew, fullWidthNonChromelessBreakoutBlockTableStyle,
290
335
  // for breakout resizing, there's no need to restrict the width of codeblocks as they're always wrapped in a breakout mark
291
336
  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],
292
337
  style: {
@@ -331,6 +376,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
331
376
  wrapperElement: props.wrapperElement
332
377
  }), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.after) : null, allowScrollGutter && (editorExperiment('platform_editor_blocks', true) ? jsx("div", {
333
378
  id: "editor-scroll-gutter",
379
+ css: shouldHideScrollGutterForMarkdownMode && hideEditorScrollGutterStyle,
334
380
  style: {
335
381
  paddingBottom: "".concat((_allowScrollGutter$gu = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu !== void 0 ? _allowScrollGutter$gu : '120', "px")
336
382
  },
@@ -338,6 +384,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
338
384
  "data-editor-scroll-gutter": "true"
339
385
  }) : jsx("div", {
340
386
  id: "editor-scroll-gutter",
387
+ css: shouldHideScrollGutterForMarkdownMode && hideEditorScrollGutterStyle,
341
388
  style: {
342
389
  paddingBottom: "".concat((_allowScrollGutter$gu2 = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu2 !== void 0 ? _allowScrollGutter$gu2 : '120', "px")
343
390
  },
@@ -0,0 +1,2 @@
1
+ ._1e0c1txw{display:flex}
2
+ @media (max-width:0px){._1hm21yb4{justify-content:space-between}}
@@ -0,0 +1,21 @@
1
+ /* ToolbarComponentsWrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ /**
3
+ * Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
4
+ * Used via `componentWithCondition` in `ToolbarInner.tsx`.
5
+ *
6
+ * Cleanup: delete this file once the experiment has shipped.
7
+ */
8
+ import "./ToolbarComponentsWrapper-compiled.compiled.css";
9
+ import * as React from 'react';
10
+ import { ax, ix } from "@compiled/react/runtime";
11
+ var toolbarComponentsWrapperCompiledStyles = {
12
+ root: "_1e0c1txw _1hm21yb4"
13
+ };
14
+ export var ToolbarComponentsWrapperCompiled = function ToolbarComponentsWrapperCompiled(_ref) {
15
+ var children = _ref.children,
16
+ dataVc = _ref['data-vc'];
17
+ return /*#__PURE__*/React.createElement("div", {
18
+ "data-vc": dataVc,
19
+ className: ax([toolbarComponentsWrapperCompiledStyles.root])
20
+ }, children);
21
+ };
@@ -0,0 +1,28 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
6
+ /**
7
+ * Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
8
+ * Used via `componentWithCondition` in `ToolbarInner.tsx`.
9
+ *
10
+ * Cleanup: delete this file once the experiment has shipped.
11
+ */
12
+
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback for compiled migration
14
+ import { css, jsx } from '@emotion/react';
15
+ import { akEditorMobileMaxWidth } from '@atlaskit/editor-shared-styles';
16
+ var toolbarComponentsWrapperEmotionStyles = css(_defineProperty({
17
+ display: 'flex'
18
+ }, "@media (max-width: ".concat(akEditorMobileMaxWidth, "px)"), {
19
+ justifyContent: 'space-between'
20
+ }));
21
+ export var ToolbarComponentsWrapperEmotion = function ToolbarComponentsWrapperEmotion(_ref) {
22
+ var children = _ref.children,
23
+ dataVc = _ref['data-vc'];
24
+ return jsx("div", {
25
+ css: toolbarComponentsWrapperEmotionStyles,
26
+ "data-vc": dataVc
27
+ }, children);
28
+ };