@atlaskit/editor-core 208.3.5 → 208.4.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 (30) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper.js +119 -0
  3. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +6 -1
  4. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +4 -28
  5. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +9 -9
  6. package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper.js +97 -0
  7. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +3 -7
  8. package/dist/cjs/ui/EditorContentContainer/styles/findReplaceStyles.js +44 -5
  9. package/dist/cjs/version-wrapper.js +1 -1
  10. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper.js +103 -0
  11. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +6 -1
  12. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +6 -30
  13. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +10 -10
  14. package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper.js +92 -0
  15. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +5 -9
  16. package/dist/es2019/ui/EditorContentContainer/styles/findReplaceStyles.js +44 -5
  17. package/dist/es2019/version-wrapper.js +1 -1
  18. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper.js +111 -0
  19. package/dist/esm/ui/Appearance/FullPage/FullPage.js +6 -1
  20. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +6 -30
  21. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +10 -10
  22. package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper.js +90 -0
  23. package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +5 -9
  24. package/dist/esm/ui/EditorContentContainer/styles/findReplaceStyles.js +44 -5
  25. package/dist/esm/version-wrapper.js +1 -1
  26. package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper.d.ts +15 -0
  27. package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper.d.ts +20 -0
  28. package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapper.d.ts +15 -0
  29. package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbarWrapper.d.ts +20 -0
  30. package/package.json +4 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 208.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#177117](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/177117)
8
+ [`49ae44aea25fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/49ae44aea25fc) -
9
+ Add new styles for inline nodes for find and replace, include these in block node checks
10
+
11
+ ### Patch Changes
12
+
13
+ - [#177523](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/177523)
14
+ [`1faed88065ff6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1faed88065ff6) -
15
+ refactor editor fullpage toolbar height in FullPageContentArea
16
+ - Updated dependencies
17
+
18
+ ## 208.3.6
19
+
20
+ ### Patch Changes
21
+
22
+ - [#165932](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/165932)
23
+ [`993d95ad7a45c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/993d95ad7a45c) -
24
+ migrated toolbar off dynamic styles to static styles behind experiment
25
+
3
26
  ## 208.3.5
4
27
 
5
28
  ### Patch Changes
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.MainToolbarForSecondChildWrapper = exports.MainToolbarForFirstChildWrapper = void 0;
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _react2 = require("@emotion/react");
10
+ var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
11
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
12
+ var _MainToolbar = require("./MainToolbar");
13
+ /**
14
+ * @jsxRuntime classic
15
+ * @jsx jsx
16
+ */
17
+
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
+
20
+ // Pre-computed static styles for first- and second-child wrappers.
21
+ // These contain no runtime logic and are safe for static-emotion mode.
22
+
23
+ var firstChildStaticBase = (0, _react2.css)({
24
+ display: 'flex',
25
+ flexGrow: 1
26
+ });
27
+
28
+ // we can't avoid some kind of function call here, so we need to disable the rule
29
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
30
+ var firstChildStaticTwoLine = (0, _react2.css)({
31
+ '@media (max-width: 868px)': {
32
+ flex: '1 1 100%',
33
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
34
+ height: 'var(--ak-editor-fullpage-toolbar-height)',
35
+ justifyContent: 'flex-end',
36
+ minWidth: 'fit-content'
37
+ }
38
+ });
39
+ var secondChildStaticBase = (0, _react2.css)({
40
+ minWidth: 'fit-content'
41
+ });
42
+
43
+ // we can't avoid some kind of function call here, so we need to disable the rule
44
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
45
+ var secondChildStaticTwoLine = (0, _react2.css)({
46
+ '@media (max-width: 868px)': {
47
+ display: 'flex',
48
+ flexGrow: 1,
49
+ flex: '1 1 100%',
50
+ margin: 'auto',
51
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
52
+ height: 'var(--ak-editor-fullpage-toolbar-height)',
53
+ minWidth: 0
54
+ }
55
+ });
56
+
57
+ // ---------------- First child wrapper ----------------
58
+ var FirstChildWrapperStatic = function FirstChildWrapperStatic(_ref) {
59
+ var twoLineEditorToolbar = _ref.twoLineEditorToolbar,
60
+ children = _ref.children,
61
+ role = _ref.role,
62
+ ariaLabel = _ref['aria-label'],
63
+ testId = _ref['data-testid'];
64
+ return (0, _react2.jsx)("div", {
65
+ css: [firstChildStaticBase, twoLineEditorToolbar && firstChildStaticTwoLine],
66
+ role: role,
67
+ "aria-label": ariaLabel,
68
+ "data-testid": testId
69
+ }, children);
70
+ };
71
+ var FirstChildWrapperDynamic = function FirstChildWrapperDynamic(_ref2) {
72
+ var twoLineEditorToolbar = _ref2.twoLineEditorToolbar,
73
+ children = _ref2.children,
74
+ role = _ref2.role,
75
+ ariaLabel = _ref2['aria-label'],
76
+ testId = _ref2['data-testid'];
77
+ return (0, _react2.jsx)("div", {
78
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage
79
+ css: (0, _MainToolbar.mainToolbarFirstChildStyle)(twoLineEditorToolbar),
80
+ role: role,
81
+ "aria-label": ariaLabel,
82
+ "data-testid": testId
83
+ }, children);
84
+ };
85
+ var MainToolbarForFirstChildWrapper = exports.MainToolbarForFirstChildWrapper = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
86
+ return (0, _expValEquals.expValEquals)('platform_editor_core_static_emotion_non_central', 'isEnabled', true);
87
+ }, FirstChildWrapperStatic, FirstChildWrapperDynamic);
88
+
89
+ // ---------------- Second child wrapper ----------------
90
+ var SecondChildWrapperStatic = function SecondChildWrapperStatic(_ref3) {
91
+ var twoLineEditorToolbar = _ref3.twoLineEditorToolbar,
92
+ children = _ref3.children,
93
+ role = _ref3.role,
94
+ ariaLabel = _ref3['aria-label'],
95
+ testId = _ref3['data-testid'];
96
+ return (0, _react2.jsx)("div", {
97
+ css: [secondChildStaticBase, twoLineEditorToolbar && secondChildStaticTwoLine],
98
+ role: role,
99
+ "aria-label": ariaLabel,
100
+ "data-testid": testId
101
+ }, children);
102
+ };
103
+ var SecondChildWrapperDynamic = function SecondChildWrapperDynamic(_ref4) {
104
+ var twoLineEditorToolbar = _ref4.twoLineEditorToolbar,
105
+ children = _ref4.children,
106
+ role = _ref4.role,
107
+ ariaLabel = _ref4['aria-label'],
108
+ testId = _ref4['data-testid'];
109
+ return (0, _react2.jsx)("div", {
110
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage
111
+ css: (0, _MainToolbar.mainToolbarSecondChildStyle)(twoLineEditorToolbar),
112
+ role: role,
113
+ "aria-label": ariaLabel,
114
+ "data-testid": testId
115
+ }, children);
116
+ };
117
+ var MainToolbarForSecondChildWrapper = exports.MainToolbarForSecondChildWrapper = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
118
+ return (0, _expValEquals.expValEquals)('platform_editor_core_static_emotion_non_central', 'isEnabled', true);
119
+ }, SecondChildWrapperStatic, SecondChildWrapperDynamic);
@@ -13,6 +13,7 @@ var _browser = require("@atlaskit/editor-common/browser");
13
13
  var _hooks = require("@atlaskit/editor-common/hooks");
14
14
  var _ui = require("@atlaskit/editor-common/ui");
15
15
  var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
16
+ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
16
17
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
18
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
18
19
  var _getPrimaryToolbarComponents = require("../../Toolbar/getPrimaryToolbarComponents");
@@ -163,7 +164,11 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
163
164
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
164
165
  ,
165
166
  className: "akEditor",
166
- ref: wrapperElementRef
167
+ ref: wrapperElementRef,
168
+ style: {
169
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
170
+ '--ak-editor-fullpage-toolbar-height': (0, _editorSharedStyles.FULL_PAGE_EDITOR_TOOLBAR_HEIGHT)()
171
+ }
167
172
  }, !isEditorToolbarHidden && (0, _react2.jsx)(_FullPageToolbar.FullPageToolbar, {
168
173
  appearance: props.appearance,
169
174
  editorAPI: editorAPI,
@@ -46,8 +46,6 @@ var tableMarginFullWidthMode = 2;
46
46
  var akLayoutGutterOffset = 12;
47
47
  var SWOOP_ANIMATION = "0.5s ".concat(akEditorSwoopCubicBezier);
48
48
  var AK_NESTED_DND_GUTTER_OFFSET = 8;
49
- var FULL_PAGE_EDITOR_TOOLBAR_HEIGHT = "var(--ds-space-500, 40px)";
50
- var FULL_PAGE_EDITOR_TOOLBAR_HEIGHT_LIVE_PAGE = '2.188rem';
51
49
  var getTotalPadding = function getTotalPadding() {
52
50
  return (0, _editorSharedStyles.akEditorGutterPaddingDynamic)() * 2;
53
51
  };
@@ -220,18 +218,6 @@ var editorContentGutterStyle = function editorContentGutterStyle() {
220
218
  };
221
219
 
222
220
  // new styles
223
- var editorContentAreaNoToolbarLivePageJumpMitigation = (0, _react2.css)({
224
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
225
- '.ak-editor-content-area-no-toolbar &': {
226
- paddingTop: "calc(".concat("var(--ds-space-600, 48px)", " + ", FULL_PAGE_EDITOR_TOOLBAR_HEIGHT_LIVE_PAGE, " + 1px)")
227
- }
228
- });
229
- var editorContentAreaNoToolbarControls = (0, _react2.css)({
230
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
231
- '.ak-editor-content-area-no-toolbar &': {
232
- paddingTop: "calc(".concat("var(--ds-space-600, 48px)", " + ", FULL_PAGE_EDITOR_TOOLBAR_HEIGHT, " + 1px)")
233
- }
234
- });
235
221
  var editorContentAreaNew = (0, _react2.css)({
236
222
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
237
223
  lineHeight: '24px',
@@ -240,7 +226,7 @@ var editorContentAreaNew = (0, _react2.css)({
240
226
  '.ak-editor-content-area-no-toolbar &': {
241
227
  // When the toolbar is hidden, we don't want content to jump up
242
228
  // the extra 1px is to account for the border on the toolbar
243
- paddingTop: "calc(".concat("var(--ds-space-600, 48px)", " + ", FULL_PAGE_EDITOR_TOOLBAR_HEIGHT, " + 1px)")
229
+ paddingTop: "calc(".concat("var(--ds-space-600, 48px)", " + var(--ak-editor-fullpage-toolbar-height) + 1px)")
244
230
  },
245
231
  paddingBottom: "var(--ds-space-600, 48px)",
246
232
  height: 'calc( 100% - 105px )',
@@ -330,7 +316,7 @@ var editorContentGutterStyles = (0, _react2.css)({
330
316
  var contentAreaNew = (0, _react2.css)({
331
317
  display: 'flex',
332
318
  flexDirection: 'row',
333
- height: "calc(100% - ".concat(FULL_PAGE_EDITOR_TOOLBAR_HEIGHT, ")"),
319
+ height: "calc(100% - var(--ak-editor-fullpage-toolbar-height))",
334
320
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
335
321
  '&.ak-editor-content-area-no-toolbar': {
336
322
  // The editor toolbar height is 1px off (from the border) -- so we need to add 1px to the height
@@ -342,12 +328,6 @@ var contentAreaNew = (0, _react2.css)({
342
328
  padding: 0,
343
329
  transition: "padding 0ms ".concat(akEditorSwoopCubicBezier)
344
330
  });
345
- var contentAreaHeightLivePageJumpMitigation = (0, _react2.css)({
346
- height: "calc(100% - ".concat(FULL_PAGE_EDITOR_TOOLBAR_HEIGHT_LIVE_PAGE, ")")
347
- });
348
- var contentAreaHeightControls = (0, _react2.css)({
349
- height: "calc(100% - ".concat(FULL_PAGE_EDITOR_TOOLBAR_HEIGHT, ")")
350
- });
351
331
  var contentAreaHeightNoToolbar = (0, _react2.css)({
352
332
  height: '100%'
353
333
  });
@@ -404,9 +384,7 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
404
384
  return (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1');
405
385
  };
406
386
  return (0, _react2.jsx)("div", {
407
- css: (0, _expValEquals.expValEquals)('platform_editor_core_static_emotion_non_central', 'isEnabled', true) ? [contentAreaNew, (0, _platformFeatureFlags.fg)('live_pages_content_jump_mitigation') && contentAreaHeightLivePageJumpMitigation, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
408
- exposure: true
409
- }) && contentAreaHeightControls, props.isEditorToolbarHidden && contentAreaHeightNoToolbar] : [
387
+ css: (0, _expValEquals.expValEquals)('platform_editor_core_static_emotion_non_central', 'isEnabled', true) ? [contentAreaNew, props.isEditorToolbarHidden && contentAreaHeightNoToolbar] : [
410
388
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
411
389
  _StyledComponents.contentArea,
412
390
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -432,9 +410,7 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
432
410
  editorView: props.editorView,
433
411
  editorDisabled: props.disabled
434
412
  }, (0, _react2.jsx)("div", {
435
- css: (0, _expValEquals.expValEquals)('platform_editor_core_static_emotion_non_central', 'isEnabled', true) ? [editorContentAreaNew, editorContentAreaProsemirrorStyle, tableFullPageEditorStylesNew, (0, _platformFeatureFlags.fg)('live_pages_content_jump_mitigation') && editorContentAreaNoToolbarLivePageJumpMitigation, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
436
- exposure: true
437
- }) && editorContentAreaNoToolbarControls, (0, _platformFeatureFlags.fg)('platform_editor_fix_table_width_inline_comment') ? fullWidthNonChromelessBreakoutBlockTableStyle : fullWidthModeBreakoutBlockTableStyle,
413
+ css: (0, _expValEquals.expValEquals)('platform_editor_core_static_emotion_non_central', 'isEnabled', true) ? [editorContentAreaNew, editorContentAreaProsemirrorStyle, tableFullPageEditorStylesNew, (0, _platformFeatureFlags.fg)('platform_editor_fix_table_width_inline_comment') ? fullWidthNonChromelessBreakoutBlockTableStyle : fullWidthModeBreakoutBlockTableStyle,
438
414
  // for breakout resizing, there's no need to restrict the width of codeblocks as they're always wrapped in a breakout mark
439
415
  (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_breakout_resizing_width_changes') ? editorContentAreaContainerStyleExcludeCodeBlockNew : editorContentAreaContainerStyleNew, (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') && editorContentAreaContainerNestedDndStyle, !(0, _platformFeatureFlags.fg)('platform_editor_controls_no_toolbar_space') && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && contentAreaReducedHeaderSpace, !(0, _platformFeatureFlags.fg)('platform_editor_controls_no_toolbar_space') && props.isEditorToolbarHidden && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && contentAreaReservedPrimaryToolbarSpace] : (0, _toConsumableArray2.default)(editorContentAreaStyle({
440
416
  fullWidthMode: fullWidthMode,
@@ -17,7 +17,9 @@ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
17
17
  var _ToolbarPortal = require("../../Toolbar/ToolbarPortal");
18
18
  var _ToolbarWithSizeDetector = require("../../Toolbar/ToolbarWithSizeDetector");
19
19
  var _BeforeWrapper = require("./BeforeWrapper");
20
+ var _CustomToolbarWrapper = require("./CustomToolbarWrapper");
20
21
  var _MainToolbar = require("./MainToolbar");
22
+ var _MainToolbarWrapper = require("./MainToolbarWrapper");
21
23
  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); }
22
24
  /**
23
25
  * @jsxRuntime classic
@@ -130,18 +132,16 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
130
132
  isShortcutToFocusToolbar: isShortcutToFocusToolbar,
131
133
  handleEscape: handleEscape,
132
134
  intl: props.intl
133
- }, (0, _react2.jsx)(ToolbarPortal, null, (0, _react2.jsx)("div", {
134
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
135
- css: (0, _MainToolbar.mainToolbarStyle)(props.showKeyline || contextPanelWidth > 0, twoLineEditorToolbar),
135
+ }, (0, _react2.jsx)(ToolbarPortal, null, (0, _react2.jsx)(_MainToolbarWrapper.MainToolbarWrapper, {
136
+ showKeyline: props.showKeyline || contextPanelWidth > 0,
137
+ twoLineEditorToolbar: twoLineEditorToolbar,
136
138
  "data-testid": "ak-editor-main-toolbar"
137
- }, (0, _react2.jsx)("div", {
138
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
139
- css: (0, _MainToolbar.mainToolbarFirstChildStyle)(twoLineEditorToolbar),
139
+ }, (0, _react2.jsx)(_CustomToolbarWrapper.MainToolbarForFirstChildWrapper, {
140
+ twoLineEditorToolbar: twoLineEditorToolbar,
140
141
  role: "toolbar",
141
142
  "aria-label": props.intl.formatMessage(_messages.fullPageMessages.toolbarLabel)
142
- }, shouldSplitToolbar ? customToolbar : nonCustomToolbar), (0, _react2.jsx)("div", {
143
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
144
- css: (0, _MainToolbar.mainToolbarSecondChildStyle)(twoLineEditorToolbar),
143
+ }, shouldSplitToolbar ? customToolbar : nonCustomToolbar), (0, _react2.jsx)(_CustomToolbarWrapper.MainToolbarForSecondChildWrapper, {
144
+ twoLineEditorToolbar: twoLineEditorToolbar,
145
145
  "data-testid": "avatar-group-outside-plugin",
146
146
  role: "region",
147
147
  "aria-label": props.intl.formatMessage(_messages.fullPageMessages.pageActionsLabel)
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.MainToolbarWrapper = void 0;
8
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
+ var _react = _interopRequireDefault(require("react"));
10
+ var _react2 = require("@emotion/react");
11
+ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
12
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
+ var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
14
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
15
+ var _MainToolbar = require("./MainToolbar");
16
+ /**
17
+ * @jsxRuntime classic
18
+ * @jsx jsx
19
+ */
20
+
21
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
+
23
+ // Base styles that don't depend on feature flags
24
+ var baseToolbarStyles = (0, _react2.css)({
25
+ position: 'relative',
26
+ alignItems: 'center',
27
+ boxShadow: 'none',
28
+ borderBottom: "1px solid ".concat("var(--ds-border, #091E4224)"),
29
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
30
+ transition: "box-shadow 200ms ".concat(_editorSharedStyles.akEditorSwoopCubicBezier),
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
32
+ zIndex: _editorSharedStyles.akEditorFloatingDialogZIndex,
33
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
34
+ display: 'flex',
35
+ height: 'var(--ak-editor-fullpage-toolbar-height)',
36
+ flexShrink: 0,
37
+ backgroundColor: "var(--ds-surface, #FFFFFF)",
38
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
39
+ '& object': {
40
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
41
+ height: '0 !important'
42
+ }
43
+ });
44
+ var flexibleIconSize = (0, _react2.css)({
45
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
46
+ '& span svg': {
47
+ maxWidth: '100%'
48
+ }
49
+ });
50
+ // box-shadow is overriden by the mainToolbar
51
+ var mainToolbarWithKeyline = (0, _react2.css)({
52
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
53
+ boxShadow: "var(--ds-shadow-overflow, 0px 0px 8px #091E4228, 0px 0px 1px #091E421e)"
54
+ });
55
+ var mainToolbarTwoLineStyle = (0, _react2.css)((0, _defineProperty2.default)({}, "@media (max-width: ".concat(_MainToolbar.MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
56
+ flexWrap: 'wrap',
57
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
58
+ height: "calc(var(--ak-editor-fullpage-toolbar-height) * 2)"
59
+ }));
60
+ var MainToolbarWrapperNext = function MainToolbarWrapperNext(_ref) {
61
+ var showKeyline = _ref.showKeyline,
62
+ twoLineEditorToolbar = _ref.twoLineEditorToolbar,
63
+ children = _ref.children,
64
+ testId = _ref['data-testid'];
65
+ return (0, _react2.jsx)("div", {
66
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
67
+ css: [baseToolbarStyles, (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && flexibleIconSize, showKeyline && mainToolbarWithKeyline, twoLineEditorToolbar && mainToolbarTwoLineStyle],
68
+ "data-testid": testId
69
+ }, children);
70
+ };
71
+
72
+ /**
73
+ * Original version of the toolbar wrapper using dynamic styles
74
+ */
75
+ var MainToolbarWrapperOld = function MainToolbarWrapperOld(_ref2) {
76
+ var showKeyline = _ref2.showKeyline,
77
+ twoLineEditorToolbar = _ref2.twoLineEditorToolbar,
78
+ children = _ref2.children,
79
+ testId = _ref2['data-testid'];
80
+ return (0, _react2.jsx)("div", {
81
+ css:
82
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
83
+ (0, _MainToolbar.mainToolbarStyle)(showKeyline, twoLineEditorToolbar),
84
+ "data-testid": testId
85
+ }, children);
86
+ };
87
+
88
+ /**
89
+ * Wrapper component for the main toolbar that handles feature flag based styling
90
+ * @example
91
+ * <MainToolbarWrapper showKeyline={true} twoLineEditorToolbar={false}>
92
+ * <ToolbarContent />
93
+ * </MainToolbarWrapper>
94
+ */
95
+ var MainToolbarWrapper = exports.MainToolbarWrapper = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
96
+ return (0, _expValEquals.expValEquals)('platform_editor_core_static_emotion_non_central', 'isEnabled', true);
97
+ }, MainToolbarWrapperNext, MainToolbarWrapperOld);
@@ -126,11 +126,9 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
126
126
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
127
127
  _codeBlockStyles.codeBlockStyles,
128
128
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
129
- !(0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') && _editorUGCTokenStyles.editorUGCTokensDefault, ((0, _platformFeatureFlags.fg)('platform-dst-jira-web-fonts') || (0, _platformFeatureFlags.fg)('confluence_typography_refreshed') || (0, _platformFeatureFlags.fg)('atlas_editor_typography_refreshed')) && (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') &&
129
+ !(0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') && _editorUGCTokenStyles.editorUGCTokensDefault, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') &&
130
130
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
131
- _editorUGCTokenStyles.editorUGCTokensRefreshed, !((0, _platformFeatureFlags.fg)('platform-dst-jira-web-fonts') || (0, _platformFeatureFlags.fg)('confluence_typography_refreshed') || (0, _platformFeatureFlags.fg)('atlas_editor_typography_refreshed')) && (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') &&
132
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
133
- _editorUGCTokenStyles.editorUGCTokensModernized,
131
+ _editorUGCTokenStyles.editorUGCTokensRefreshed,
134
132
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
135
133
  _blockTypeStyles.blocktypeStyles,
136
134
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -268,12 +266,10 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
268
266
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
269
267
  _smartCardStyles.linkingVisualRefreshV1Styles,
270
268
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
271
- _dateStyles.dateVanillaStyles, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') ? (0, _platformFeatureFlags.fg)('platform-dst-jira-web-fonts') || (0, _platformFeatureFlags.fg)('confluence_typography_refreshed') || (0, _platformFeatureFlags.fg)('atlas_editor_typography_refreshed') ?
269
+ _dateStyles.dateVanillaStyles, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') ?
272
270
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
273
271
  _paragraphStyles.paragraphStylesUGCRefreshed :
274
272
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
275
- _paragraphStyles.paragraphStylesUGCModernized :
276
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
277
273
  _paragraphStyles.paragraphStylesOld,
278
274
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
279
275
  (0, _platformFeatureFlags.fg)('platform_editor_hyperlink_underline') ? _link.linkStyles : _link.linkStylesOld,
@@ -44,13 +44,23 @@ var findReplaceStylesNew = exports.findReplaceStylesNew = (0, _react.css)({
44
44
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
45
45
  '[data-smart-link-container="true"], .loader-wrapper>div::after': {
46
46
  boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-subtler-pressed, #E2B203)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-yellow-subtler, #F8E6A0)", "\n\t\t\t")
47
+ },
48
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
49
+ '.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container': {
50
+ boxShadow: "0px 0px 0px 4px ".concat("var(--ds-background-accent-yellow-subtler, #F8E6A0)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-yellow-subtler-pressed, #E2B203)"),
51
+ borderRadius: '3px'
47
52
  }
48
53
  },
49
54
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
50
- '.search-match-selected.search-match-block': {
55
+ '.search-match-block.search-match-block-selected': {
51
56
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
52
57
  '[data-smart-link-container="true"], .loader-wrapper>div::after': {
53
58
  boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-subtler-pressed, #E2B203)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-yellow-subtlest-pressed, #F5CD47)", "\n\t\t\t")
59
+ },
60
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
61
+ '.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container': {
62
+ boxShadow: "0px 0px 0px 4px ".concat("var(--ds-background-accent-yellow-subtlest-pressed, #F5CD47)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-yellow-subtler-pressed, #E2B203)"),
63
+ borderRadius: '3px'
54
64
  }
55
65
  },
56
66
  /** With node selection */
@@ -59,30 +69,49 @@ var findReplaceStylesNew = exports.findReplaceStylesNew = (0, _react.css)({
59
69
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
60
70
  '.loader-wrapper>div::after': {
61
71
  boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-subtler-pressed, #E2B203)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-yellow-subtler, #F8E6A0)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
72
+ },
73
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
74
+ '.loader-wrapper>a, .lozenge-wrapper': {
75
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
76
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-yellow-subtler, #F8E6A0)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-yellow-subtler-pressed, #E2B203)", " !important")
62
77
  }
63
78
  },
64
79
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
65
- '.search-match-selected.search-match-block.ak-editor-selected-node': {
80
+ '.search-match-block.search-match-block-selected.ak-editor-selected-node': {
66
81
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
67
82
  '[data-smart-link-container="true"], .loader-wrapper>div::after': {
68
83
  boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-subtler-pressed, #E2B203)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-yellow-subtlest-pressed, #F5CD47)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
84
+ },
85
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
86
+ '.loader-wrapper>a, .lozenge-wrapper': {
87
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
88
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-yellow-subtlest-pressed, #F5CD47)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-yellow-subtler-pressed, #E2B203)", " !important")
69
89
  }
70
90
  },
71
91
  /** Dark mode */
72
-
73
92
  /** Without node selection */
74
93
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
75
94
  '.search-match-block.search-match-dark': {
76
95
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
77
96
  '[data-smart-link-container="true"], .loader-wrapper>div::after': {
78
97
  boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-bolder, #946F00)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-yellow-bolder-pressed, #533F04)", "\n\t\t\t")
98
+ },
99
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
100
+ '.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container': {
101
+ boxShadow: "0px 0px 0px 4px ".concat("var(--ds-background-accent-yellow-bolder-pressed, #533F04)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-yellow-bolder, #946F00)"),
102
+ borderRadius: '3px'
79
103
  }
80
104
  },
81
105
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
82
- '.search-match-selected.search-match-block.search-match-dark': {
106
+ '.search-match-block.search-match-block-selected.search-match-dark': {
83
107
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
84
108
  '[data-smart-link-container="true"], .loader-wrapper>div::after': {
85
109
  boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-bolder, #946F00)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-yellow-bolder-hovered, #7F5F01)", "\n\t\t\t")
110
+ },
111
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
112
+ '.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container': {
113
+ boxShadow: "0px 0px 0px 4px ".concat("var(--ds-background-accent-yellow-bolder-hovered, #7F5F01)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-yellow-bolder, #946F00)"),
114
+ borderRadius: '3px'
86
115
  }
87
116
  },
88
117
  /** With node selection */
@@ -91,13 +120,23 @@ var findReplaceStylesNew = exports.findReplaceStylesNew = (0, _react.css)({
91
120
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
92
121
  '.loader-wrapper>div::after': {
93
122
  boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-bolder, #946F00)", ",\n\t\t\tinset 0 0 0 5px ", "var(--ds-background-accent-yellow-bolder-pressed, #533F04)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
123
+ },
124
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
125
+ '.loader-wrapper>a, .lozenge-wrapper': {
126
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
127
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-yellow-bolder-pressed, #533F04)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-yellow-bolder, #946F00)", " !important")
94
128
  }
95
129
  },
96
130
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
97
- '.search-match-selected.search-match-block.search-match-dark.ak-editor-selected-node': {
131
+ '.search-match-block.search-match-block-selected.search-match-dark.ak-editor-selected-node': {
98
132
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
99
133
  '[data-smart-link-container="true"], .loader-wrapper>div::after': {
100
134
  boxShadow: "\n\t\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-yellow-bolder, #946F00)", ",\n\t\t\tinset 0 0 0 4px ", "var(--ds-background-accent-yellow-bolder-hovered, #7F5F01)", ",\n\t\t\t0 0 0 1px ", "var(--ds-border-selected, #0C66E4)", "\n\t\t\t")
135
+ },
136
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
137
+ '.loader-wrapper>a, .lozenge-wrapper': {
138
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
139
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)", ", 0px 0px 0px 4px ", "var(--ds-background-accent-yellow-bolder-hovered, #7F5F01)", ", 0px 0px 0px 5px ", "var(--ds-background-accent-yellow-bolder, #946F00)", " !important")
101
140
  }
102
141
  }
103
142
  });
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "208.3.4";
8
+ var version = exports.version = "208.3.6";
@@ -0,0 +1,103 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import React from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
+ import { css, jsx } from '@emotion/react';
9
+ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
10
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
11
+ import { mainToolbarFirstChildStyle, mainToolbarSecondChildStyle } from './MainToolbar';
12
+ // Pre-computed static styles for first- and second-child wrappers.
13
+ // These contain no runtime logic and are safe for static-emotion mode.
14
+
15
+ const firstChildStaticBase = css({
16
+ display: 'flex',
17
+ flexGrow: 1
18
+ });
19
+
20
+ // we can't avoid some kind of function call here, so we need to disable the rule
21
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
22
+ const firstChildStaticTwoLine = css({
23
+ '@media (max-width: 868px)': {
24
+ flex: '1 1 100%',
25
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
26
+ height: 'var(--ak-editor-fullpage-toolbar-height)',
27
+ justifyContent: 'flex-end',
28
+ minWidth: 'fit-content'
29
+ }
30
+ });
31
+ const secondChildStaticBase = css({
32
+ minWidth: 'fit-content'
33
+ });
34
+
35
+ // we can't avoid some kind of function call here, so we need to disable the rule
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
37
+ const secondChildStaticTwoLine = css({
38
+ '@media (max-width: 868px)': {
39
+ display: 'flex',
40
+ flexGrow: 1,
41
+ flex: '1 1 100%',
42
+ margin: 'auto',
43
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
44
+ height: 'var(--ak-editor-fullpage-toolbar-height)',
45
+ minWidth: 0
46
+ }
47
+ });
48
+
49
+ // ---------------- First child wrapper ----------------
50
+ const FirstChildWrapperStatic = ({
51
+ twoLineEditorToolbar,
52
+ children,
53
+ role,
54
+ 'aria-label': ariaLabel,
55
+ 'data-testid': testId
56
+ }) => jsx("div", {
57
+ css: [firstChildStaticBase, twoLineEditorToolbar && firstChildStaticTwoLine],
58
+ role: role,
59
+ "aria-label": ariaLabel,
60
+ "data-testid": testId
61
+ }, children);
62
+ const FirstChildWrapperDynamic = ({
63
+ twoLineEditorToolbar,
64
+ children,
65
+ role,
66
+ 'aria-label': ariaLabel,
67
+ 'data-testid': testId
68
+ }) => jsx("div", {
69
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage
70
+ css: mainToolbarFirstChildStyle(twoLineEditorToolbar),
71
+ role: role,
72
+ "aria-label": ariaLabel,
73
+ "data-testid": testId
74
+ }, children);
75
+ export const MainToolbarForFirstChildWrapper = componentWithCondition(() => expValEquals('platform_editor_core_static_emotion_non_central', 'isEnabled', true), FirstChildWrapperStatic, FirstChildWrapperDynamic);
76
+
77
+ // ---------------- Second child wrapper ----------------
78
+ const SecondChildWrapperStatic = ({
79
+ twoLineEditorToolbar,
80
+ children,
81
+ role,
82
+ 'aria-label': ariaLabel,
83
+ 'data-testid': testId
84
+ }) => jsx("div", {
85
+ css: [secondChildStaticBase, twoLineEditorToolbar && secondChildStaticTwoLine],
86
+ role: role,
87
+ "aria-label": ariaLabel,
88
+ "data-testid": testId
89
+ }, children);
90
+ const SecondChildWrapperDynamic = ({
91
+ twoLineEditorToolbar,
92
+ children,
93
+ role,
94
+ 'aria-label': ariaLabel,
95
+ 'data-testid': testId
96
+ }) => jsx("div", {
97
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage
98
+ css: mainToolbarSecondChildStyle(twoLineEditorToolbar),
99
+ role: role,
100
+ "aria-label": ariaLabel,
101
+ "data-testid": testId
102
+ }, children);
103
+ export const MainToolbarForSecondChildWrapper = componentWithCondition(() => expValEquals('platform_editor_core_static_emotion_non_central', 'isEnabled', true), SecondChildWrapperStatic, SecondChildWrapperDynamic);