@atlaskit/editor-core 221.1.3 → 221.2.1

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 (61) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/ui/Appearance/Comment/FixedToolbar-compiled.compiled.css +20 -0
  3. package/dist/cjs/ui/Appearance/Comment/FixedToolbar-compiled.js +35 -0
  4. package/dist/cjs/ui/Appearance/Comment/FixedToolbar-emotion.js +94 -0
  5. package/dist/cjs/ui/Appearance/Comment/StickyToolbar-compiled.compiled.css +25 -0
  6. package/dist/cjs/ui/Appearance/Comment/StickyToolbar-compiled.js +66 -0
  7. package/dist/cjs/ui/Appearance/Comment/StickyToolbar-emotion.js +131 -0
  8. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +14 -134
  9. package/dist/cjs/ui/Toolbar/ToolbarComponentsWrapper-compiled.compiled.css +2 -0
  10. package/dist/cjs/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +29 -0
  11. package/dist/cjs/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +36 -0
  12. package/dist/cjs/ui/Toolbar/ToolbarInner.js +9 -14
  13. package/dist/cjs/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.compiled.css +2 -0
  14. package/dist/cjs/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +29 -0
  15. package/dist/cjs/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +32 -0
  16. package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +21 -19
  17. package/dist/cjs/version-wrapper.js +1 -1
  18. package/dist/es2019/ui/Appearance/Comment/FixedToolbar-compiled.compiled.css +20 -0
  19. package/dist/es2019/ui/Appearance/Comment/FixedToolbar-compiled.js +26 -0
  20. package/dist/es2019/ui/Appearance/Comment/FixedToolbar-emotion.js +91 -0
  21. package/dist/es2019/ui/Appearance/Comment/StickyToolbar-compiled.compiled.css +25 -0
  22. package/dist/es2019/ui/Appearance/Comment/StickyToolbar-compiled.js +51 -0
  23. package/dist/es2019/ui/Appearance/Comment/StickyToolbar-emotion.js +128 -0
  24. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +10 -133
  25. package/dist/es2019/ui/Toolbar/ToolbarComponentsWrapper-compiled.compiled.css +2 -0
  26. package/dist/es2019/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +20 -0
  27. package/dist/es2019/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +28 -0
  28. package/dist/es2019/ui/Toolbar/ToolbarInner.js +6 -17
  29. package/dist/es2019/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.compiled.css +2 -0
  30. package/dist/es2019/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +20 -0
  31. package/dist/es2019/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +24 -0
  32. package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +18 -19
  33. package/dist/es2019/version-wrapper.js +1 -1
  34. package/dist/esm/ui/Appearance/Comment/FixedToolbar-compiled.compiled.css +20 -0
  35. package/dist/esm/ui/Appearance/Comment/FixedToolbar-compiled.js +28 -0
  36. package/dist/esm/ui/Appearance/Comment/FixedToolbar-emotion.js +86 -0
  37. package/dist/esm/ui/Appearance/Comment/StickyToolbar-compiled.compiled.css +25 -0
  38. package/dist/esm/ui/Appearance/Comment/StickyToolbar-compiled.js +58 -0
  39. package/dist/esm/ui/Appearance/Comment/StickyToolbar-emotion.js +124 -0
  40. package/dist/esm/ui/Appearance/Comment/Toolbar.js +14 -132
  41. package/dist/esm/ui/Toolbar/ToolbarComponentsWrapper-compiled.compiled.css +2 -0
  42. package/dist/esm/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +21 -0
  43. package/dist/esm/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +28 -0
  44. package/dist/esm/ui/Toolbar/ToolbarInner.js +8 -16
  45. package/dist/esm/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.compiled.css +2 -0
  46. package/dist/esm/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +21 -0
  47. package/dist/esm/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +25 -0
  48. package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +21 -18
  49. package/dist/esm/version-wrapper.js +1 -1
  50. package/dist/types/ui/Appearance/Comment/FixedToolbar-compiled.d.ts +20 -0
  51. package/dist/types/ui/Appearance/Comment/FixedToolbar-emotion.d.ts +19 -0
  52. package/dist/types/ui/Appearance/Comment/StickyToolbar-compiled.d.ts +22 -0
  53. package/dist/types/ui/Appearance/Comment/StickyToolbar-emotion.d.ts +21 -0
  54. package/dist/types/ui/Appearance/Comment/Toolbar.d.ts +1 -2
  55. package/dist/types/ui/Toolbar/ToolbarComponentsWrapper-compiled.d.ts +17 -0
  56. package/dist/types/ui/Toolbar/ToolbarComponentsWrapper-emotion.d.ts +17 -0
  57. package/dist/types/ui/Toolbar/ToolbarInner.d.ts +1 -6
  58. package/dist/types/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.d.ts +17 -0
  59. package/dist/types/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.d.ts +17 -0
  60. package/dist/types/ui/Toolbar/ToolbarWithSizeDetector.d.ts +2 -2
  61. package/package.json +11 -11
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 221.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ab450dd0e5fd2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ab450dd0e5fd2) -
8
+ migrate Toolbar components to compiled css
9
+ - Updated dependencies
10
+
11
+ ## 221.2.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`404be770a2ccf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/404be770a2ccf) -
16
+ Update i18n NPM package versions for editor,editor-extensions,activity-platform,media,elements
17
+ (Group 3)
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 221.1.3
4
24
 
5
25
  ### Patch Changes
@@ -0,0 +1,20 @@
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}._10ytglyw.show-keyline{box-shadow:none}
5
+ ._16qsglyw{box-shadow:none}
6
+ ._19bvu2gc{padding-left:var(--ds-space-100,8px)}
7
+ ._19bvv47k{padding-left:var(--ds-space-250,20px)}
8
+ ._1cuzidpf .block-type-btn{padding-left:0}
9
+ ._1e0c1txw{display:flex}
10
+ ._1khpidpf >div>div:first-of-type:not(style){margin-left:0}
11
+ ._3pwj1osq span svg{max-width:100%}
12
+ ._4cvr1h6o{align-items:center}
13
+ ._4t3i1wug{height:auto}
14
+ ._bfhkvuon{background-color:var(--ds-surface,#fff)}
15
+ ._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
16
+ ._kqswh2mm{position:relative}
17
+ ._lg5oidpf >div>style:first-of-type+*{margin-left:0}
18
+ ._n3tdidpf{padding-bottom:0}
19
+ ._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
20
+ @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,35 @@
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
+ "use strict";
9
+
10
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
11
+ Object.defineProperty(exports, "__esModule", {
12
+ value: true
13
+ });
14
+ exports.FixedToolbarCompiled = void 0;
15
+ require("./FixedToolbar-compiled.compiled.css");
16
+ var _runtime = require("@compiled/react/runtime");
17
+ var _react = _interopRequireDefault(require("react"));
18
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
20
+ var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
21
+ var fixedToolbarCompiledStyles = {
22
+ mainToolbarWrapper: "_kqswh2mm _4cvr1h6o _ca0qu2gc _u5f3u2gc _n3tdidpf _19bvv47k _1e0c1txw _4t3i1wug _bfhkvuon _16qsglyw _1khpidpf _lg5oidpf _1cuzidpf",
23
+ mainToolbarWithoutLeftPadding: "_ca0qu2gc _u5f3u2gc _n3tdidpf _19bvu2gc",
24
+ mainToolbarTwoLine: "_1uq61sxn _cnpmh9n0 _1djy1txw _17mgesu3 _1q27esu3 _16ec1txw",
25
+ mainToolbarWrapperVisualRefresh: "_3pwj1osq",
26
+ mainToolbarWithRadius: "_2rko1cku",
27
+ mainToolbarRadius: "_2rko12c2",
28
+ editorModernisationToolbar: "_2rko15b0 _10ytglyw"
29
+ };
30
+ var FixedToolbarCompiled = exports.FixedToolbarCompiled = function FixedToolbarCompiled(props) {
31
+ return /*#__PURE__*/_react.default.createElement("div", {
32
+ "data-testid": "ak-editor-main-toolbar",
33
+ className: (0, _runtime.ax)([fixedToolbarCompiledStyles.mainToolbarWrapper, props.twoLineEditorToolbar && fixedToolbarCompiledStyles.mainToolbarTwoLine, fixedToolbarCompiledStyles.mainToolbarWrapperVisualRefresh, props.isNewToolbarEnabled && fixedToolbarCompiledStyles.mainToolbarWithoutLeftPadding, !(0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_comments_border_radius') && fixedToolbarCompiledStyles.mainToolbarWithRadius, (0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && fixedToolbarCompiledStyles.mainToolbarRadius, props.isEditorModernisationEnabled && fixedToolbarCompiledStyles.editorModernisationToolbar])
34
+ }, props.children);
35
+ };
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.FixedToolbarEmotion = void 0;
8
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
+ var _react = require("@emotion/react");
10
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
12
+ /**
13
+ * @jsxRuntime classic
14
+ * @jsx jsx
15
+ */
16
+ /**
17
+ * Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
18
+ * Used via `componentWithCondition` in `Toolbar.tsx`.
19
+ *
20
+ * Cleanup: delete this file once the experiment has shipped.
21
+ */
22
+
23
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback for compiled migration
24
+
25
+ var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
26
+ var mainToolbarWrapperStyleNew = (0, _react.css)({
27
+ position: 'relative',
28
+ alignItems: 'center',
29
+ padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " 0"),
30
+ display: 'flex',
31
+ height: 'auto',
32
+ backgroundColor: "var(--ds-surface, #FFFFFF)",
33
+ boxShadow: 'none',
34
+ paddingLeft: "var(--ds-space-250, 20px)",
35
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
36
+ '> div': {
37
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
38
+ '> div:first-of-type:not(style), > style:first-of-type + *': {
39
+ marginLeft: 0
40
+ }
41
+ },
42
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
43
+ '.block-type-btn': {
44
+ paddingLeft: 0
45
+ }
46
+ });
47
+
48
+ /** keep default padding for entire toolbar */
49
+ var mainToolbarWithoutLeftPadding = (0, _react.css)({
50
+ padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " 0")
51
+ });
52
+ var mainToolbarTwoLineStylesNew = (0, _react.css)({
53
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
54
+ '& > div': (0, _defineProperty2.default)((0, _defineProperty2.default)({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
55
+ flexDirection: 'column-reverse',
56
+ alignItems: 'end',
57
+ display: 'flex',
58
+ justifyContent: 'flex-end'
59
+ }), '> div:first-of-type', (0, _defineProperty2.default)({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
60
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
61
+ '> div:nth-of-type(2)': {
62
+ justifyContent: 'flex-end',
63
+ display: 'flex'
64
+ }
65
+ }))
66
+ });
67
+ var mainToolbarWrapperStylesVisualRefresh = (0, _react.css)({
68
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
69
+ 'span svg': {
70
+ maxWidth: '100%'
71
+ }
72
+ });
73
+ var mainToolbarWithRadiusStyle = (0, _react.css)({
74
+ borderRadius: "var(--ds-radius-small, 3px)".concat(" ", "var(--ds-radius-small, 3px)", " 0 0")
75
+ });
76
+ var mainToolbarRadius = (0, _react.css)({
77
+ borderRadius: "var(--ds-radius-medium, 6px)".concat(" ", "var(--ds-radius-medium, 6px)", " 0 0")
78
+ });
79
+ var editorModernisationToolbarStyle = (0, _react.css)({
80
+ borderRadius: "var(--ds-radius-xlarge, 12px)".concat(" ", "var(--ds-radius-xlarge, 12px)", " 0 0"),
81
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
82
+ '&.show-keyline': {
83
+ boxShadow: 'none'
84
+ }
85
+ });
86
+ var FixedToolbarEmotion = exports.FixedToolbarEmotion = function FixedToolbarEmotion(props) {
87
+ return (
88
+ // eslint-disable-next-line @atlaskit/design-system/prefer-primitives
89
+ (0, _react.jsx)("div", {
90
+ css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, mainToolbarWrapperStylesVisualRefresh, props.isNewToolbarEnabled && mainToolbarWithoutLeftPadding, !(0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_comments_border_radius') && mainToolbarWithRadiusStyle, (0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && mainToolbarRadius, props.isEditorModernisationEnabled && editorModernisationToolbarStyle],
91
+ "data-testid": "ak-editor-main-toolbar"
92
+ }, props.children)
93
+ );
94
+ };
@@ -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,66 @@
1
+ /* StickyToolbar-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.StickyToolbarCompiled = void 0;
10
+ require("./StickyToolbar-compiled.compiled.css");
11
+ var _runtime = require("@compiled/react/runtime");
12
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
+ var _react = _interopRequireWildcard(require("react"));
14
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
16
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
17
+ /**
18
+ * Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
19
+ * Used via `componentWithCondition` in `Toolbar.tsx`.
20
+ *
21
+ * Cleanup: delete this file once the experiment has shipped.
22
+ */
23
+ var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
24
+ var akEditorMenuZIndex = 500;
25
+ var akEditorToolbarKeylineHeight = 2;
26
+ var stickyToolbarCompiledStyles = {
27
+ mainToolbarWrapper: "_kqswh2mm _4cvr1h6o _ca0qu2gc _u5f3u2gc _n3tdidpf _19bvv47k _1e0c1txw _4t3i1wug _bfhkvuon _16qsglyw _1khpidpf _lg5oidpf _1cuzidpf",
28
+ mainToolbarWithPadding: "_ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc",
29
+ mainToolbarTwoLine: "_1uq61sxn _cnpmh9n0 _1djy1txw _17mgesu3 _1q27esu3 _16ec1txw",
30
+ mainToolbarWrapperVisualRefresh: "_3pwj1osq",
31
+ mainToolbarWithRadius: "_2rko1cku",
32
+ mainToolbarRadius: "_2rko12c2",
33
+ editorModernisationToolbar: "_2rko15b0 _10ytglyw",
34
+ stickyToolbarWrapper: "_v56416gf _kqsw1if8 _n3tdu2gc _1pbybfng _10ytl2q5"
35
+ };
36
+ var StickyToolbarCompiled = exports.StickyToolbarCompiled = function StickyToolbarCompiled(props) {
37
+ var _useState = (0, _react.useState)(0),
38
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
39
+ top = _useState2[0],
40
+ setTop = _useState2[1];
41
+
42
+ // ED-15802: if externalToolbarRef is passed in, set top to externalToolbarRef?.current?.clientHeight
43
+ // else if offsetTop is a number set top to offsetTop
44
+ // otherwise top is 0 as initial state
45
+ (0, _react.useEffect)(function () {
46
+ var _props$externalToolba;
47
+ if ((_props$externalToolba = props.externalToolbarRef) !== null && _props$externalToolba !== void 0 && (_props$externalToolba = _props$externalToolba.current) !== null && _props$externalToolba !== void 0 && _props$externalToolba.clientHeight) {
48
+ setTop(props.externalToolbarRef.current.clientHeight);
49
+ } else {
50
+ setTop(props.offsetTop || 0);
51
+ }
52
+ }, [props.externalToolbarRef, props.offsetTop]);
53
+ var wrapperStyle = (0, _react.useMemo)(function () {
54
+ return {
55
+ top: "".concat(top, "px")
56
+ };
57
+ }, [top]);
58
+ return /*#__PURE__*/_react.default.createElement("div", {
59
+ // 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
60
+ style: wrapperStyle,
61
+ "data-testid": "ak-editor-main-toolbar"
62
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
63
+ ,
64
+ className: (0, _runtime.ax)([stickyToolbarCompiledStyles.mainToolbarWrapper, props.twoLineEditorToolbar && stickyToolbarCompiledStyles.mainToolbarTwoLine, stickyToolbarCompiledStyles.mainToolbarWrapperVisualRefresh, stickyToolbarCompiledStyles.stickyToolbarWrapper, props.isNewToolbarEnabled && stickyToolbarCompiledStyles.mainToolbarWithPadding, (0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && stickyToolbarCompiledStyles.mainToolbarRadius, !(0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_comments_border_radius') && stickyToolbarCompiledStyles.mainToolbarWithRadius, props.isEditorModernisationEnabled && stickyToolbarCompiledStyles.editorModernisationToolbar, 'show-keyline'])
65
+ }, props.children);
66
+ };
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.StickyToolbarEmotion = void 0;
8
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
+ var _react = require("react");
11
+ var _react2 = require("@emotion/react");
12
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
14
+ /**
15
+ * @jsxRuntime classic
16
+ * @jsx jsx
17
+ */
18
+ /**
19
+ * Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
20
+ * Used via `componentWithCondition` in `Toolbar.tsx`.
21
+ *
22
+ * Cleanup: delete this file once the experiment has shipped.
23
+ */
24
+
25
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback for compiled migration
26
+
27
+ var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
28
+ var akEditorMenuZIndex = 500;
29
+ var akEditorToolbarKeylineHeight = 2;
30
+ var mainToolbarWrapperStyleNew = (0, _react2.css)({
31
+ position: 'relative',
32
+ alignItems: 'center',
33
+ padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " 0"),
34
+ display: 'flex',
35
+ height: 'auto',
36
+ backgroundColor: "var(--ds-surface, #FFFFFF)",
37
+ boxShadow: 'none',
38
+ paddingLeft: "var(--ds-space-250, 20px)",
39
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
40
+ '> div': {
41
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
42
+ '> div:first-of-type:not(style), > style:first-of-type + *': {
43
+ marginLeft: 0
44
+ }
45
+ },
46
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
47
+ '.block-type-btn': {
48
+ paddingLeft: 0
49
+ }
50
+ });
51
+ var mainToolbarWithPadding = (0, _react2.css)({
52
+ padding: "var(--ds-space-100, 8px)"
53
+ });
54
+ var mainToolbarTwoLineStylesNew = (0, _react2.css)({
55
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
56
+ '& > div': (0, _defineProperty2.default)((0, _defineProperty2.default)({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
57
+ flexDirection: 'column-reverse',
58
+ alignItems: 'end',
59
+ display: 'flex',
60
+ justifyContent: 'flex-end'
61
+ }), '> div:first-of-type', (0, _defineProperty2.default)({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
62
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
63
+ '> div:nth-of-type(2)': {
64
+ justifyContent: 'flex-end',
65
+ display: 'flex'
66
+ }
67
+ }))
68
+ });
69
+ var mainToolbarWrapperStylesVisualRefresh = (0, _react2.css)({
70
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
71
+ 'span svg': {
72
+ maxWidth: '100%'
73
+ }
74
+ });
75
+ var mainToolbarWithRadiusStyle = (0, _react2.css)({
76
+ borderRadius: "var(--ds-radius-small, 3px)".concat(" ", "var(--ds-radius-small, 3px)", " 0 0")
77
+ });
78
+ var mainToolbarRadius = (0, _react2.css)({
79
+ borderRadius: "var(--ds-radius-medium, 6px)".concat(" ", "var(--ds-radius-medium, 6px)", " 0 0")
80
+ });
81
+ var editorModernisationToolbarStyle = (0, _react2.css)({
82
+ borderRadius: "var(--ds-radius-xlarge, 12px)".concat(" ", "var(--ds-radius-xlarge, 12px)", " 0 0"),
83
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
84
+ '&.show-keyline': {
85
+ boxShadow: 'none'
86
+ }
87
+ });
88
+ var stickyToolbarWrapperStyleNew = (0, _react2.css)({
89
+ position: 'sticky',
90
+ paddingBottom: "var(--ds-space-100, 8px)",
91
+ zIndex: akEditorMenuZIndex,
92
+ transition: 'box-shadow ease-in-out 0.2s',
93
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
94
+ '&.show-keyline': {
95
+ boxShadow: "0 ".concat(akEditorToolbarKeylineHeight, "px 0 0 ", "var(--ds-background-accent-gray-subtlest, #F0F1F2)")
96
+ }
97
+ });
98
+ var StickyToolbarEmotion = exports.StickyToolbarEmotion = function StickyToolbarEmotion(props) {
99
+ var _useState = (0, _react.useState)(0),
100
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
101
+ top = _useState2[0],
102
+ setTop = _useState2[1];
103
+
104
+ // ED-15802: if externalToolbarRef is passed in, set top to externalToolbarRef?.current?.clientHeight
105
+ // else if offsetTop is a number set top to offsetTop
106
+ // otherwise top is 0 as initial state
107
+ (0, _react.useEffect)(function () {
108
+ var _props$externalToolba;
109
+ if ((_props$externalToolba = props.externalToolbarRef) !== null && _props$externalToolba !== void 0 && (_props$externalToolba = _props$externalToolba.current) !== null && _props$externalToolba !== void 0 && _props$externalToolba.clientHeight) {
110
+ setTop(props.externalToolbarRef.current.clientHeight);
111
+ } else {
112
+ setTop(props.offsetTop || 0);
113
+ }
114
+ }, [props.externalToolbarRef, props.offsetTop]);
115
+ var wrapperStyle = {
116
+ top: "".concat(top, "px")
117
+ };
118
+ return (
119
+ // eslint-disable-next-line @atlaskit/design-system/prefer-primitives
120
+ (0, _react2.jsx)("div", {
121
+ css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, mainToolbarWrapperStylesVisualRefresh, stickyToolbarWrapperStyleNew, props.isNewToolbarEnabled && mainToolbarWithPadding, (0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && mainToolbarRadius, !(0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_comments_border_radius') && mainToolbarWithRadiusStyle, props.isEditorModernisationEnabled && editorModernisationToolbarStyle]
122
+ // 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
123
+ ,
124
+ style: wrapperStyle,
125
+ "data-testid": "ak-editor-main-toolbar"
126
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
127
+ ,
128
+ className: 'show-keyline'
129
+ }, props.children)
130
+ );
131
+ };
@@ -1,145 +1,25 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- var _typeof3 = require("@babel/runtime/helpers/typeof");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.MainToolbar = void 0;
9
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
9
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
11
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
12
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
- var _react = _interopRequireWildcard(require("react"));
14
- var _react2 = require("@emotion/react");
15
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
+ var _react = _interopRequireDefault(require("react"));
11
+ var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
16
12
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
17
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof3(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
18
- /**
19
- * @jsxRuntime classic
20
- * @jsx jsx
21
- */
22
-
23
- // 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
24
-
25
- var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
26
- var akEditorMenuZIndex = 500;
27
- var akEditorToolbarKeylineHeight = 2;
28
- var mainToolbarWrapperStyleNew = (0, _react2.css)({
29
- position: 'relative',
30
- alignItems: 'center',
31
- padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " 0"),
32
- display: 'flex',
33
- height: 'auto',
34
- backgroundColor: "var(--ds-surface, #FFFFFF)",
35
- boxShadow: 'none',
36
- paddingLeft: "var(--ds-space-250, 20px)",
37
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
38
- '> div': {
39
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
40
- '> div:first-of-type:not(style), > style:first-of-type + *': {
41
- marginLeft: 0
42
- }
43
- },
44
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
45
- '.block-type-btn': {
46
- paddingLeft: 0
47
- }
48
- });
49
-
50
- /** keep default padding for entire toolbar */
51
- var mainToolbarWithoutLeftPadding = (0, _react2.css)({
52
- padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " 0")
53
- });
54
- var mainToolbarWithPadding = (0, _react2.css)({
55
- padding: "var(--ds-space-100, 8px)"
56
- });
57
- var mainToolbarTwoLineStylesNew = (0, _react2.css)({
58
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
59
- '& > div': (0, _defineProperty2.default)((0, _defineProperty2.default)({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
60
- flexDirection: 'column-reverse',
61
- alignItems: 'end',
62
- display: 'flex',
63
- justifyContent: 'flex-end'
64
- }), '> div:first-of-type', (0, _defineProperty2.default)({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
65
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
66
- '> div:nth-of-type(2)': {
67
- justifyContent: 'flex-end',
68
- display: 'flex'
69
- }
70
- }))
71
- });
72
- var mainToolbarWrapperStylesVisualRefresh = (0, _react2.css)({
73
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
74
- 'span svg': {
75
- maxWidth: '100%'
76
- }
77
- });
78
- var mainToolbarWithRadiusStyle = (0, _react2.css)({
79
- borderRadius: "var(--ds-radius-small, 3px)".concat(" ", "var(--ds-radius-small, 3px)", " 0 0")
80
- });
81
- var mainToolbarRadius = (0, _react2.css)({
82
- borderRadius: "var(--ds-radius-medium, 6px)".concat(" ", "var(--ds-radius-medium, 6px)", " 0 0")
83
- });
84
- var editorModernisationToolbarStyle = (0, _react2.css)({
85
- borderRadius: "var(--ds-radius-xlarge, 12px)".concat(" ", "var(--ds-radius-xlarge, 12px)", " 0 0"),
86
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
87
- '&.show-keyline': {
88
- boxShadow: 'none'
89
- }
90
- });
91
- var stickyToolbarWrapperStyleNew = (0, _react2.css)({
92
- position: 'sticky',
93
- paddingBottom: "var(--ds-space-100, 8px)",
94
- zIndex: akEditorMenuZIndex,
95
- transition: 'box-shadow ease-in-out 0.2s',
96
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
97
- '&.show-keyline': {
98
- boxShadow: "0 ".concat(akEditorToolbarKeylineHeight, "px 0 0 ", "var(--ds-background-accent-gray-subtlest, #F0F1F2)")
99
- }
100
- });
101
- var StickyToolbar = function StickyToolbar(props) {
102
- var _useState = (0, _react.useState)(0),
103
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
104
- top = _useState2[0],
105
- setTop = _useState2[1];
106
-
107
- // ED-15802: if externalToolbarRef is passed in, set top to externalToolbarRef?.current?.clientHeight
108
- // else if offsetTop is a number set top to offsetTop
109
- // otherwise top is 0 as initial state
110
- (0, _react.useEffect)(function () {
111
- var _props$externalToolba;
112
- if ((_props$externalToolba = props.externalToolbarRef) !== null && _props$externalToolba !== void 0 && (_props$externalToolba = _props$externalToolba.current) !== null && _props$externalToolba !== void 0 && _props$externalToolba.clientHeight) {
113
- setTop(props.externalToolbarRef.current.clientHeight);
114
- } else {
115
- setTop(props.offsetTop || 0);
116
- }
117
- }, [props.externalToolbarRef, props.offsetTop]);
118
- return (
119
- // eslint-disable-next-line @atlaskit/design-system/prefer-primitives
120
- (0, _react2.jsx)("div", {
121
- css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, mainToolbarWrapperStylesVisualRefresh, stickyToolbarWrapperStyleNew, props.isNewToolbarEnabled && mainToolbarWithPadding, (0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && mainToolbarRadius, !(0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_comments_border_radius') && mainToolbarWithRadiusStyle, props.isEditorModernisationEnabled && editorModernisationToolbarStyle]
122
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
123
- ,
124
- style: {
125
- top: "".concat(top, "px")
126
- },
127
- "data-testid": "ak-editor-main-toolbar"
128
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
129
- ,
130
- className: 'show-keyline'
131
- }, props.children)
132
- );
133
- };
134
- var FixedToolbar = function FixedToolbar(props) {
135
- return (
136
- // eslint-disable-next-line @atlaskit/design-system/prefer-primitives
137
- (0, _react2.jsx)("div", {
138
- css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, mainToolbarWrapperStylesVisualRefresh, props.isNewToolbarEnabled && mainToolbarWithoutLeftPadding, !(0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_comments_border_radius') && mainToolbarWithRadiusStyle, (0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && mainToolbarRadius, props.isEditorModernisationEnabled && editorModernisationToolbarStyle],
139
- "data-testid": "ak-editor-main-toolbar"
140
- }, props.children)
141
- );
142
- };
13
+ var _FixedToolbarCompiled = require("./FixedToolbar-compiled");
14
+ var _FixedToolbarEmotion = require("./FixedToolbar-emotion");
15
+ var _StickyToolbarCompiled = require("./StickyToolbar-compiled");
16
+ var _StickyToolbarEmotion = require("./StickyToolbar-emotion");
17
+ var StickyToolbarMigration = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
18
+ return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
19
+ }, _StickyToolbarCompiled.StickyToolbarCompiled, _StickyToolbarEmotion.StickyToolbarEmotion);
20
+ var FixedToolbarMigration = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
21
+ return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
22
+ }, _FixedToolbarCompiled.FixedToolbarCompiled, _FixedToolbarEmotion.FixedToolbarEmotion);
143
23
 
144
24
  /**
145
25
  * ED-15802: Scenarios when a sticky bar is used:
@@ -175,7 +55,7 @@ var MainToolbar = exports.MainToolbar = function MainToolbar(_ref) {
175
55
  isEditorModernisationEnabled = _ref.isEditorModernisationEnabled,
176
56
  isNewToolbarEnabled = _ref.isNewToolbarEnabled;
177
57
  if (useStickyToolbar) {
178
- return (0, _react2.jsx)(StickyToolbar
58
+ return /*#__PURE__*/_react.default.createElement(StickyToolbarMigration
179
59
  // Ignored via go/ees005
180
60
  // eslint-disable-next-line react/jsx-props-no-spreading
181
61
  , (0, _extends2.default)({}, getStickyParameters(useStickyToolbar), {
@@ -184,7 +64,7 @@ var MainToolbar = exports.MainToolbar = function MainToolbar(_ref) {
184
64
  isNewToolbarEnabled: isNewToolbarEnabled
185
65
  }), children);
186
66
  }
187
- return (0, _react2.jsx)(FixedToolbar, {
67
+ return /*#__PURE__*/_react.default.createElement(FixedToolbarMigration, {
188
68
  isEditorModernisationEnabled: isEditorModernisationEnabled,
189
69
  twoLineEditorToolbar: twoLineEditorToolbar,
190
70
  isNewToolbarEnabled: isNewToolbarEnabled
@@ -0,0 +1,2 @@
1
+ ._1e0c1txw{display:flex}
2
+ @media (max-width:0px){._1hm21yb4{justify-content:space-between}}
@@ -0,0 +1,29 @@
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
+ "use strict";
9
+
10
+ var _typeof = require("@babel/runtime/helpers/typeof");
11
+ Object.defineProperty(exports, "__esModule", {
12
+ value: true
13
+ });
14
+ exports.ToolbarComponentsWrapperCompiled = void 0;
15
+ require("./ToolbarComponentsWrapper-compiled.compiled.css");
16
+ var React = _interopRequireWildcard(require("react"));
17
+ var _runtime = require("@compiled/react/runtime");
18
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
19
+ var toolbarComponentsWrapperCompiledStyles = {
20
+ root: "_1e0c1txw _1hm21yb4"
21
+ };
22
+ var ToolbarComponentsWrapperCompiled = exports.ToolbarComponentsWrapperCompiled = function ToolbarComponentsWrapperCompiled(_ref) {
23
+ var children = _ref.children,
24
+ dataVc = _ref['data-vc'];
25
+ return /*#__PURE__*/React.createElement("div", {
26
+ "data-vc": dataVc,
27
+ className: (0, _runtime.ax)([toolbarComponentsWrapperCompiledStyles.root])
28
+ }, children);
29
+ };