@atlaskit/editor-core 219.9.14 → 219.9.16

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 (86) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper-compiled.compiled.css +4 -0
  3. package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper-compiled.js +29 -0
  4. package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper-emotion.js +34 -0
  5. package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper.js +7 -20
  6. package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.compiled.css +4 -0
  7. package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +56 -0
  8. package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.js +88 -0
  9. package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper.js +10 -73
  10. package/dist/cjs/ui/Appearance/FullPage/FullPage-compiled.compiled.css +5 -0
  11. package/dist/cjs/ui/Appearance/FullPage/FullPage-compiled.js +32 -0
  12. package/dist/cjs/ui/Appearance/FullPage/FullPage-emotion.js +38 -0
  13. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +19 -20
  14. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar-compiled.compiled.css +10 -0
  15. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar-compiled.js +45 -0
  16. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar-emotion.js +58 -0
  17. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +21 -26
  18. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +6 -0
  19. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -1
  20. package/dist/cjs/ui/EditorContentContainer/styles/layout.js +5 -7
  21. package/dist/cjs/version-wrapper.js +1 -1
  22. package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper-compiled.compiled.css +4 -0
  23. package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper-compiled.js +19 -0
  24. package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper-emotion.js +25 -0
  25. package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper.js +5 -17
  26. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.compiled.css +4 -0
  27. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +46 -0
  28. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.js +78 -0
  29. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper.js +6 -69
  30. package/dist/es2019/ui/Appearance/FullPage/FullPage-compiled.compiled.css +5 -0
  31. package/dist/es2019/ui/Appearance/FullPage/FullPage-compiled.js +23 -0
  32. package/dist/es2019/ui/Appearance/FullPage/FullPage-emotion.js +29 -0
  33. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +17 -19
  34. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar-compiled.compiled.css +10 -0
  35. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar-compiled.js +34 -0
  36. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar-emotion.js +48 -0
  37. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +16 -27
  38. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +6 -0
  39. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -1
  40. package/dist/es2019/ui/EditorContentContainer/styles/layout.js +5 -7
  41. package/dist/es2019/version-wrapper.js +1 -1
  42. package/dist/esm/ui/Appearance/FullPage/BeforeWrapper-compiled.compiled.css +4 -0
  43. package/dist/esm/ui/Appearance/FullPage/BeforeWrapper-compiled.js +21 -0
  44. package/dist/esm/ui/Appearance/FullPage/BeforeWrapper-emotion.js +27 -0
  45. package/dist/esm/ui/Appearance/FullPage/BeforeWrapper.js +7 -19
  46. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.compiled.css +4 -0
  47. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +48 -0
  48. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.js +80 -0
  49. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper.js +10 -71
  50. package/dist/esm/ui/Appearance/FullPage/FullPage-compiled.compiled.css +5 -0
  51. package/dist/esm/ui/Appearance/FullPage/FullPage-compiled.js +24 -0
  52. package/dist/esm/ui/Appearance/FullPage/FullPage-emotion.js +31 -0
  53. package/dist/esm/ui/Appearance/FullPage/FullPage.js +19 -19
  54. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar-compiled.compiled.css +10 -0
  55. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar-compiled.js +37 -0
  56. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar-emotion.js +50 -0
  57. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +22 -27
  58. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +6 -0
  59. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -1
  60. package/dist/esm/ui/EditorContentContainer/styles/layout.js +5 -7
  61. package/dist/esm/version-wrapper.js +1 -1
  62. package/dist/types/ui/Appearance/FullPage/BeforeWrapper-compiled.d.ts +16 -0
  63. package/dist/types/ui/Appearance/FullPage/BeforeWrapper-emotion.d.ts +16 -0
  64. package/dist/types/ui/Appearance/FullPage/BeforeWrapper.d.ts +3 -8
  65. package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.d.ts +3 -0
  66. package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.d.ts +14 -0
  67. package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper.d.ts +4 -10
  68. package/dist/types/ui/Appearance/FullPage/FullPage-compiled.d.ts +7 -0
  69. package/dist/types/ui/Appearance/FullPage/FullPage-emotion.d.ts +7 -0
  70. package/dist/types/ui/Appearance/FullPage/FullPage.d.ts +2 -2
  71. package/dist/types/ui/Appearance/FullPage/FullPageToolbar-compiled.d.ts +20 -0
  72. package/dist/types/ui/Appearance/FullPage/FullPageToolbar-emotion.d.ts +20 -0
  73. package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +1 -6
  74. package/dist/types-ts4.5/ui/Appearance/FullPage/BeforeWrapper-compiled.d.ts +16 -0
  75. package/dist/types-ts4.5/ui/Appearance/FullPage/BeforeWrapper-emotion.d.ts +16 -0
  76. package/dist/types-ts4.5/ui/Appearance/FullPage/BeforeWrapper.d.ts +3 -8
  77. package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.d.ts +3 -0
  78. package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.d.ts +14 -0
  79. package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapper.d.ts +4 -10
  80. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage-compiled.d.ts +7 -0
  81. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage-emotion.d.ts +7 -0
  82. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage.d.ts +2 -2
  83. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar-compiled.d.ts +20 -0
  84. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar-emotion.d.ts +20 -0
  85. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +1 -6
  86. package/package.json +3 -3
@@ -1,74 +1,13 @@
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, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
8
- import { css, jsx } from '@emotion/react';
9
- // Pre-computed static styles for first- and second-child wrappers.
10
- // These contain no runtime logic and are safe for static-emotion mode.
11
-
12
- var firstChildStaticBase = css({
13
- display: 'flex',
14
- flexGrow: 1
15
- });
16
-
17
- // we can't avoid some kind of function call here, so we need to disable the rule
18
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
19
- var firstChildStaticTwoLine = css({
20
- '@media (max-width: 868px)': {
21
- flex: '1 1 100%',
22
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
23
- height: 'var(--ak-editor-fullpage-toolbar-height)',
24
- justifyContent: 'flex-end',
25
- minWidth: 'fit-content'
26
- }
27
- });
28
- var secondChildStaticBase = css({
29
- minWidth: 'fit-content'
30
- });
31
-
32
- // we can't avoid some kind of function call here, so we need to disable the rule
33
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
34
- var secondChildStaticTwoLine = css({
35
- '@media (max-width: 868px)': {
36
- display: 'flex',
37
- flexGrow: 1,
38
- flex: '1 1 100%',
39
- margin: 'auto',
40
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
41
- height: 'var(--ak-editor-fullpage-toolbar-height)',
42
- minWidth: 0
43
- }
44
- });
45
-
1
+ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
2
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
+ import { MainToolbarForFirstChildWrapperCompiled, MainToolbarForSecondChildWrapperCompiled } from './CustomToolbarWrapper-compiled';
4
+ import { MainToolbarForFirstChildWrapperEmotion, MainToolbarForSecondChildWrapperEmotion } from './CustomToolbarWrapper-emotion';
46
5
  // ---------------- First child wrapper ----------------
47
- export var MainToolbarForFirstChildWrapper = function MainToolbarForFirstChildWrapper(_ref) {
48
- var twoLineEditorToolbar = _ref.twoLineEditorToolbar,
49
- children = _ref.children,
50
- role = _ref.role,
51
- ariaLabel = _ref['aria-label'],
52
- testId = _ref['data-testid'];
53
- return jsx("div", {
54
- css: [firstChildStaticBase, twoLineEditorToolbar && firstChildStaticTwoLine],
55
- role: role,
56
- "aria-label": ariaLabel,
57
- "data-testid": testId
58
- }, children);
59
- };
6
+ export var MainToolbarForFirstChildWrapper = componentWithCondition(function () {
7
+ return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
8
+ }, MainToolbarForFirstChildWrapperCompiled, MainToolbarForFirstChildWrapperEmotion);
60
9
 
61
10
  // ---------------- Second child wrapper ----------------
62
- export var MainToolbarForSecondChildWrapper = function MainToolbarForSecondChildWrapper(_ref2) {
63
- var twoLineEditorToolbar = _ref2.twoLineEditorToolbar,
64
- children = _ref2.children,
65
- role = _ref2.role,
66
- ariaLabel = _ref2['aria-label'],
67
- testId = _ref2['data-testid'];
68
- return jsx("div", {
69
- css: [secondChildStaticBase, twoLineEditorToolbar && secondChildStaticTwoLine],
70
- role: role,
71
- "aria-label": ariaLabel,
72
- "data-testid": testId
73
- }, children);
74
- };
11
+ export var MainToolbarForSecondChildWrapper = componentWithCondition(function () {
12
+ return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
13
+ }, MainToolbarForSecondChildWrapperCompiled, MainToolbarForSecondChildWrapperEmotion);
@@ -0,0 +1,5 @@
1
+ ._1e0c1txw{display:flex}
2
+ ._1ul95x59{min-width:340px}
3
+ ._2lx21bp4{flex-direction:column}
4
+ ._4t3i1osq{height:100%}
5
+ ._vchhusvi{box-sizing:border-box}
@@ -0,0 +1,24 @@
1
+ /* FullPage-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 `FullPage.tsx`.
5
+ *
6
+ * Cleanup: delete this file once the experiment has shipped.
7
+ */
8
+ import "./FullPage-compiled.compiled.css";
9
+ import * as React from 'react';
10
+ import { ax, ix } from "@compiled/react/runtime";
11
+ import { forwardRef } from 'react';
12
+ var styles = {
13
+ root: "_1ul95x59 _4t3i1osq _1e0c1txw _2lx21bp4 _vchhusvi"
14
+ };
15
+ export var FullPageEditorWrapperCompiled = /*#__PURE__*/forwardRef(function (_ref, ref) {
16
+ var children = _ref.children,
17
+ className = _ref.className,
18
+ style = _ref.style;
19
+ return /*#__PURE__*/React.createElement("div", {
20
+ ref: ref,
21
+ className: ax([styles.root, className]),
22
+ style: style
23
+ }, children);
24
+ });
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
7
+ * Used via `componentWithCondition` in `FullPage.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import { forwardRef } from 'react';
12
+
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback; jsx required at runtime for @jsxRuntime classic
14
+ import { jsx } from '@emotion/react';
15
+
16
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- intentional: emotion fallback branch imports from StyledComponents
17
+ import { fullPageEditorWrapper as fullPageEditorWrapperStyles } from './StyledComponents';
18
+ export var FullPageEditorWrapperEmotion = /*#__PURE__*/forwardRef(function (_ref, ref) {
19
+ var children = _ref.children,
20
+ className = _ref.className,
21
+ style = _ref.style;
22
+ return (
23
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-classname-prop -- intentional: emotion fallback branch reuses StyledComponents style
24
+ jsx("div", {
25
+ css: fullPageEditorWrapperStyles,
26
+ ref: ref,
27
+ className: className,
28
+ style: style
29
+ }, children)
30
+ );
31
+ });
@@ -1,12 +1,5 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
2
  import React, { useEffect, useMemo, useRef, useState } from 'react';
7
-
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
9
- import { jsx } from '@emotion/react';
10
3
  import { getBrowserInfo } from '@atlaskit/editor-common/browser';
11
4
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
12
5
  import { SSRRenderMeasure } from '@atlaskit/editor-common/performance/ssr-measures';
@@ -14,14 +7,19 @@ import { ContextPanelWidthProvider } from '@atlaskit/editor-common/ui';
14
7
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
15
8
  import { FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles';
16
9
  import { fg } from '@atlaskit/platform-feature-flags';
10
+ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
17
11
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
18
12
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
19
13
  import { getPrimaryToolbarComponents } from '../../Toolbar/getPrimaryToolbarComponents';
14
+ import { FullPageEditorWrapperCompiled } from './FullPage-compiled';
15
+ import { FullPageEditorWrapperEmotion } from './FullPage-emotion';
20
16
  import { FullPageContentArea } from './FullPageContentArea';
21
17
  import { FullPageToolbar } from './FullPageToolbar';
22
18
  import { FullPageToolbarNext } from './FullPageToolbarNext';
23
- import { fullPageEditorWrapper } from './StyledComponents';
24
19
  var SSR_TRACE_SEGMENT_NAME = 'reactEditorView/fullPageAppearance';
20
+ var FullPageEditorWrapperMigration = componentWithCondition(function () {
21
+ return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
22
+ }, FullPageEditorWrapperCompiled, FullPageEditorWrapperEmotion);
25
23
  var useShowKeyline = function useShowKeyline(contentAreaRef) {
26
24
  var _useState = useState(false),
27
25
  _useState2 = _slicedToArray(_useState, 2),
@@ -144,23 +142,25 @@ export var FullPageEditor = function FullPageEditor(props) {
144
142
  }
145
143
  var isToolbarAIFCEnabled = Boolean(editorAPI === null || editorAPI === void 0 ? void 0 : editorAPI.toolbar);
146
144
  var popupsBoundariesElement = props.popupsBoundariesElement || (scrollContentContainerRef === null || scrollContentContainerRef === void 0 || (_scrollContentContain = scrollContentContainerRef.current) === null || _scrollContentContain === void 0 ? void 0 : _scrollContentContain.containerArea) || undefined;
147
- return jsx(SSRRenderMeasure, {
145
+ return /*#__PURE__*/React.createElement(SSRRenderMeasure, {
148
146
  segmentName: SSR_TRACE_SEGMENT_NAME,
149
147
  startTimestampRef: firstRenderStartTimestampRef,
150
148
  onSSRMeasure: props.onSSRMeasure
151
- }, jsx(ContextPanelWidthProvider, null, jsx("div", {
152
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
153
- css: fullPageEditorWrapper
154
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
155
- ,
149
+ }, /*#__PURE__*/React.createElement(ContextPanelWidthProvider, null, /*#__PURE__*/React.createElement(FullPageEditorWrapperMigration
150
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
151
+ , {
156
152
  className: "akEditor",
157
- ref: wrapperElementRef,
158
- style: {
153
+ ref: wrapperElementRef
154
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
155
+ ,
156
+ style:
157
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props
158
+ {
159
159
  '--ak-editor-fullpage-toolbar-height':
160
160
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
161
161
  FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(isToolbarAIFCEnabled)
162
162
  }
163
- }, !isEditorToolbarHidden && (isToolbarAIFCEnabled ? jsx(FullPageToolbarNext, {
163
+ }, !isEditorToolbarHidden && (isToolbarAIFCEnabled ? /*#__PURE__*/React.createElement(FullPageToolbarNext, {
164
164
  disabled: !!props.disabled || !hasHadInteraction && expValEquals('platform_editor_default_toolbar_state', 'isEnabled', true),
165
165
  disabledWithoutInteractionLogic: !!props.disabled,
166
166
  toolbarDockingPosition: toolbarDockingPosition !== null && toolbarDockingPosition !== void 0 ? toolbarDockingPosition : toolbarDocking,
@@ -172,7 +172,7 @@ export var FullPageEditor = function FullPageEditor(props) {
172
172
  popupsScrollableElement: props.popupsScrollableElement,
173
173
  showKeyline: showKeyline,
174
174
  customPrimaryToolbarComponents: props.customPrimaryToolbarComponents
175
- }) : jsx(FullPageToolbar, {
175
+ }) : /*#__PURE__*/React.createElement(FullPageToolbar, {
176
176
  appearance: props.appearance,
177
177
  editorAPI: editorAPI,
178
178
  beforeIcon: props.primaryToolbarIconBefore,
@@ -199,7 +199,7 @@ export var FullPageEditor = function FullPageEditor(props) {
199
199
  providerFactory: props.providerFactory,
200
200
  showKeyline: showKeyline,
201
201
  featureFlags: props.featureFlags
202
- })), jsx(FullPageContentArea, {
202
+ })), /*#__PURE__*/React.createElement(FullPageContentArea, {
203
203
  editorAPI: editorAPI,
204
204
  ref: scrollContentContainerRef,
205
205
  appearance: props.appearance,
@@ -0,0 +1,10 @@
1
+ ._16jlkb7n{flex-grow:1}
2
+ ._18u0pxbi{margin-left:var(--ds-space-200,1pc)}
3
+ ._19pkpxbi{margin-top:var(--ds-space-200,1pc)}
4
+ ._1bsbxy5q{width:var(--ds-space-400,2pc)}
5
+ ._1e0c1txw{display:flex}
6
+ ._2hwxpxbi{margin-right:var(--ds-space-200,1pc)}
7
+ ._4cvr1h6o{align-items:center}
8
+ ._4t3ixy5q{height:var(--ds-space-400,2pc)}
9
+ ._otyrpxbi{margin-bottom:var(--ds-space-200,1pc)}
10
+ @media (max-width:0px){._mlgzkb7n{grid-column:1}._tuuhkb7n{grid-row:1}}
@@ -0,0 +1,37 @@
1
+ /* FullPageToolbar-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 `FullPageToolbar.tsx`.
5
+ *
6
+ * Cleanup: delete this file once the experiment has shipped.
7
+ */
8
+ import "./FullPageToolbar-compiled.compiled.css";
9
+ import * as React from 'react';
10
+ import { ax, ix } from "@compiled/react/runtime";
11
+ var nonCustomToolbarCompiledStyles = {
12
+ root: "_4cvr1h6o _1e0c1txw _16jlkb7n"
13
+ };
14
+ var mainToolbarIconBeforeCompiledStyles = {
15
+ root: "_19pkpxbi _2hwxpxbi _otyrpxbi _18u0pxbi _4t3ixy5q _1bsbxy5q _mlgzkb7n _tuuhkb7n"
16
+ };
17
+ var customToolbarCompiledStyles = {
18
+ root: "_4cvr1h6o _1e0c1txw"
19
+ };
20
+ export var NonCustomToolbarWrapperCompiled = function NonCustomToolbarWrapperCompiled(_ref) {
21
+ var children = _ref.children;
22
+ return /*#__PURE__*/React.createElement("div", {
23
+ className: ax([nonCustomToolbarCompiledStyles.root])
24
+ }, children);
25
+ };
26
+ export var MainToolbarIconBeforeCompiled = function MainToolbarIconBeforeCompiled(_ref2) {
27
+ var children = _ref2.children;
28
+ return /*#__PURE__*/React.createElement("div", {
29
+ className: ax([mainToolbarIconBeforeCompiledStyles.root])
30
+ }, children);
31
+ };
32
+ export var CustomToolbarWrapperCompiled = function CustomToolbarWrapperCompiled(_ref3) {
33
+ var children = _ref3.children;
34
+ return /*#__PURE__*/React.createElement("div", {
35
+ className: ax([customToolbarCompiledStyles.root])
36
+ }, children);
37
+ };
@@ -0,0 +1,50 @@
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 `FullPageToolbar.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; jsx required at runtime for @jsxRuntime classic
14
+ import { css, jsx } from '@emotion/react';
15
+ import { akEditorMobileMaxWidth } from '@atlaskit/editor-shared-styles';
16
+ var nonCustomToolbarWrapperStyle = css({
17
+ alignItems: 'center',
18
+ display: 'flex',
19
+ flexGrow: 1
20
+ });
21
+ var mainToolbarIconBeforeStyle = css(_defineProperty({
22
+ margin: "var(--ds-space-200, 16px)",
23
+ height: "var(--ds-space-400, 32px)",
24
+ width: "var(--ds-space-400, 32px)"
25
+ }, "@media (max-width: ".concat(akEditorMobileMaxWidth, "px)"), {
26
+ gridColumn: 1,
27
+ gridRow: 1
28
+ }));
29
+ var customToolbarWrapperStyle = css({
30
+ alignItems: 'center',
31
+ display: 'flex'
32
+ });
33
+ export var NonCustomToolbarWrapperEmotion = function NonCustomToolbarWrapperEmotion(_ref) {
34
+ var children = _ref.children;
35
+ return jsx("div", {
36
+ css: nonCustomToolbarWrapperStyle
37
+ }, children);
38
+ };
39
+ export var MainToolbarIconBeforeEmotion = function MainToolbarIconBeforeEmotion(_ref2) {
40
+ var children = _ref2.children;
41
+ return jsx("div", {
42
+ css: mainToolbarIconBeforeStyle
43
+ }, children);
44
+ };
45
+ export var CustomToolbarWrapperEmotion = function CustomToolbarWrapperEmotion(_ref3) {
46
+ var children = _ref3.children;
47
+ return jsx("div", {
48
+ css: customToolbarWrapperStyle
49
+ }, children);
50
+ };
@@ -1,24 +1,29 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
-
7
2
  import React, { useEffect, useCallback, useState } from 'react';
8
-
9
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
10
- import { jsx } from '@emotion/react';
11
3
  import { injectIntl } from 'react-intl';
12
4
  import { ContextPanelConsumer } from '@atlaskit/editor-common/context-panel';
13
5
  import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
14
6
  import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
7
+ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
8
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
15
9
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
16
10
  import { ToolbarPortalMountPoint, useToolbarPortal } from '../../Toolbar/ToolbarPortal';
17
11
  import { ToolbarWithSizeDetector as Toolbar } from '../../Toolbar/ToolbarWithSizeDetector';
18
12
  import { BeforePrimaryToolbarWrapper } from './BeforeWrapper';
19
13
  import { MainToolbarForFirstChildWrapper, MainToolbarForSecondChildWrapper } from './CustomToolbarWrapper';
20
- import { customToolbarWrapperStyle, mainToolbarIconBeforeStyle, MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, nonCustomToolbarWrapperStyle } from './MainToolbar';
14
+ import { CustomToolbarWrapperCompiled, MainToolbarIconBeforeCompiled, NonCustomToolbarWrapperCompiled } from './FullPageToolbar-compiled';
15
+ import { CustomToolbarWrapperEmotion, MainToolbarIconBeforeEmotion, NonCustomToolbarWrapperEmotion } from './FullPageToolbar-emotion';
16
+ import { MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT } from './MainToolbar';
21
17
  import { MainToolbarWrapper } from './MainToolbarWrapper';
18
+ var NonCustomToolbarWrapperMigration = componentWithCondition(function () {
19
+ return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
20
+ }, NonCustomToolbarWrapperCompiled, NonCustomToolbarWrapperEmotion);
21
+ var MainToolbarIconBeforeMigration = componentWithCondition(function () {
22
+ return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
23
+ }, MainToolbarIconBeforeCompiled, MainToolbarIconBeforeEmotion);
24
+ var CustomToolbarWrapperMigration = componentWithCondition(function () {
25
+ return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
26
+ }, CustomToolbarWrapperCompiled, CustomToolbarWrapperEmotion);
22
27
  export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
23
28
  var _props$primaryToolbar, _useToolbarPortal, _props$customPrimaryT;
24
29
  var _useState = useState(false),
@@ -38,13 +43,7 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
38
43
  ToolbarPortal = _ref.Portal;
39
44
  var hasToolbarPortal = ToolbarPortal !== React.Fragment;
40
45
  var popupsMountPoint = hasToolbarPortal ? undefined : props.popupsMountPoint;
41
- var nonCustomToolbar =
42
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
43
- jsx("div", {
44
- css: nonCustomToolbarWrapperStyle
45
- }, props.beforeIcon && jsx("div", {
46
- css: mainToolbarIconBeforeStyle
47
- }, props.beforeIcon), jsx(Toolbar, {
46
+ var nonCustomToolbar = /*#__PURE__*/React.createElement(NonCustomToolbarWrapperMigration, null, props.beforeIcon && /*#__PURE__*/React.createElement(MainToolbarIconBeforeMigration, null, props.beforeIcon), /*#__PURE__*/React.createElement(Toolbar, {
48
47
  editorView: props.editorView,
49
48
  editorActions: props.editorActions,
50
49
  eventDispatcher: props.eventDispatcher,
@@ -60,11 +59,7 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
60
59
  hasMinWidth: props.hasMinWidth,
61
60
  twoLineEditorToolbar: twoLineEditorToolbar
62
61
  }));
63
- var customToolbar =
64
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
65
- jsx("div", {
66
- css: customToolbarWrapperStyle
67
- }, !!props.customPrimaryToolbarComponents && 'before' in props.customPrimaryToolbarComponents ? jsx(BeforePrimaryToolbarWrapper, {
62
+ var customToolbar = /*#__PURE__*/React.createElement(CustomToolbarWrapperMigration, null, !!props.customPrimaryToolbarComponents && 'before' in props.customPrimaryToolbarComponents ? /*#__PURE__*/React.createElement(BeforePrimaryToolbarWrapper, {
68
63
  beforePrimaryToolbarComponents: (_props$customPrimaryT = props.customPrimaryToolbarComponents) === null || _props$customPrimaryT === void 0 ? void 0 : _props$customPrimaryT.before
69
64
  }) : null, !editorExperiment('platform_editor_controls', 'variant1') && editorAPI !== null && editorAPI !== void 0 && editorAPI.findReplace && twoLineEditorToolbar ? editorAPI === null || editorAPI === void 0 ? void 0 : editorAPI.findReplace.actions.registerToolbarButton({
70
65
  popupsBoundariesElement: props.popupsBoundariesElement,
@@ -103,28 +98,28 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
103
98
  event.preventDefault();
104
99
  event.stopPropagation();
105
100
  }, [props.editorView]);
106
- return jsx(ContextPanelConsumer, null, function (_ref2) {
101
+ return /*#__PURE__*/React.createElement(ContextPanelConsumer, null, function (_ref2) {
107
102
  var contextPanelWidth = _ref2.width;
108
- return jsx(ToolbarArrowKeyNavigationProvider, {
103
+ return /*#__PURE__*/React.createElement(ToolbarArrowKeyNavigationProvider, {
109
104
  editorView: props.editorView,
110
105
  childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
111
106
  isShortcutToFocusToolbar: isShortcutToFocusToolbar,
112
107
  handleEscape: handleEscape,
113
108
  intl: props.intl
114
- }, jsx(ToolbarPortal, null, jsx(MainToolbarWrapper, {
109
+ }, /*#__PURE__*/React.createElement(ToolbarPortal, null, /*#__PURE__*/React.createElement(MainToolbarWrapper, {
115
110
  showKeyline: props.showKeyline || contextPanelWidth > 0,
116
111
  twoLineEditorToolbar: twoLineEditorToolbar,
117
112
  "data-testid": "ak-editor-main-toolbar"
118
- }, jsx(MainToolbarForFirstChildWrapper, {
113
+ }, /*#__PURE__*/React.createElement(MainToolbarForFirstChildWrapper, {
119
114
  twoLineEditorToolbar: twoLineEditorToolbar,
120
115
  role: "toolbar",
121
116
  "aria-label": props.intl.formatMessage(messages.toolbarLabel)
122
- }, shouldSplitToolbar ? customToolbar : nonCustomToolbar), jsx(MainToolbarForSecondChildWrapper, {
117
+ }, shouldSplitToolbar ? customToolbar : nonCustomToolbar), /*#__PURE__*/React.createElement(MainToolbarForSecondChildWrapper, {
123
118
  twoLineEditorToolbar: twoLineEditorToolbar,
124
119
  "data-testid": "avatar-group-outside-plugin",
125
120
  role: "region",
126
121
  "aria-label": props.intl.formatMessage(messages.pageActionsLabel)
127
- }, shouldSplitToolbar ? nonCustomToolbar : customToolbar), jsx(ToolbarPortalMountPoint, null))));
122
+ }, shouldSplitToolbar ? nonCustomToolbar : customToolbar), /*#__PURE__*/React.createElement(ToolbarPortalMountPoint, null))));
128
123
  });
129
124
  });
130
125
 
@@ -606,6 +606,7 @@
606
606
  ._15pyjp4b .pm-table-wrapper>table>tbody>tr>th{vertical-align:top}
607
607
  ._15q4m0zr .ProseMirror [layout^=wrap-]+[layout^=wrap-]+div[class^=fabric-editor-align]{clear:both!important}
608
608
  ._15r21s89 .search-match-block.search-match-block-selected .loader-wrapper>a{box-shadow:0 0 0 4px var(--ds-background-accent-magenta-subtlest-pressed,#fcb6e1),0 0 0 5px var(--ds-background-accent-magenta-bolder-hovered,#943d73)}
609
+ ._15sh1bp4 .ProseMirror [data-layout-section] [data-layout-column][data-valign=bottom]>[data-layout-content]{flex-direction:column}
609
610
  ._15t1i7a9 .pm-table-sticky-wrapper>table>tbody>tr>td{font-weight:var(--ds-font-weight-regular,400)}
610
611
  ._15uri7a9 .ak-editor-expand__title-input{font-weight:var(--ds-font-weight-regular,400)}
611
612
  ._15ve1gly .ProseMirror .danger .code-block .line-number-gutter{background-color:var(--ds-background-danger,#ffeceb)}
@@ -627,6 +628,7 @@
627
628
  ._16am1j28 .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-column] ::-moz-selection{background-color:transparent}
628
629
  ._16atr4us .ak-editor-selected-node:not(.search-match-block)>.editor-mention-primitive.mention-self{box-shadow:0 0 0 1px var(--ds-border-selected,#1868db)}
629
630
  ._16d4idpf .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h4:first-child:not(style){margin-top:0}
631
+ ._16df1txw .ProseMirror [data-layout-section] [data-layout-column][data-valign=middle]>[data-layout-content]{display:flex}
630
632
  ._16e11mi1 .fabric-editor-breakout-mark:has([data-prosemirror-node-name=expand])>.pm-breakout-resize-handle-container--left{left:-25px}
631
633
  ._16fuidpf .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child p style:first-child+*{margin-top:0}
632
634
  ._16fx73ad .ProseMirror [data-layout-section]{cursor:default}
@@ -1835,6 +1837,7 @@
1835
1837
  ._1ybf1nka .search-match-block [data-smart-link-container=true]{box-shadow:inset 0 0 0 1px var(--ds-border-accent-magenta,#cd519d),inset 0 0 0 5px var(--ds-background-accent-magenta-subtler,#fdd0ec)}
1836
1838
  ._1ybwjocv .search-match-text.selected-search-match{background-color:var(--ds-background-accent-magenta-subtlest-pressed,#fcb6e1)!important}
1837
1839
  ._1yd8i8nm .pm-table-wrapper>table th:not(.danger) .code-block:not(.danger) .line-number-gutter{background-color:var(--ds-background-neutral,#0515240f)}
1840
+ ._1ydd1bp4 .ProseMirror [data-layout-section] [data-layout-column][data-valign=middle]>[data-layout-content]{flex-direction:column}
1838
1841
  ._1ydjglyw .ProseMirror .ak-editor-panel .ak-editor-panel__icon{-webkit-user-select:none}
1839
1842
  ._1ydu1up9 .search-match-block .loader-wrapper>a{box-shadow:0 0 0 4px var(--ds-background-accent-magenta-subtler,#fdd0ec),0 0 0 5px var(--ds-border-accent-magenta,#cd519d)}
1840
1843
  ._1yg7azsu .ak-editor-selected-node>.editor-mention-primitive.mention-self{color:var(--ds-text-subtle,#505258)}
@@ -2265,6 +2268,7 @@
2265
2268
  ._as951j5o .ProseMirror h2 strong{font-weight:var(--editor-font-ugc-token-weight-heading-bold)}
2266
2269
  ._at5bidpf .ProseMirror .code-block{margin-right:0}
2267
2270
  ._atbw16ux .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-column]:after{content:"\00a0"}
2271
+ ._av0z1h6o .ProseMirror [data-layout-section] [data-layout-column][data-valign=middle]>[data-layout-content]{justify-content:center}
2268
2272
  ._awp7f705 [layout=wrap-left]+.ProseMirror-gapcursor+span+[layout=wrap-right]:after{content:" "}
2269
2273
  ._ay2w187o{--local-background-disabled:var(--ds-background-disabled,#0515240f)}
2270
2274
  ._ay4r7mnp .ak-editor-expand__content .expand-content-wrapper{clip:rect(1px,1px,1px,1px)}
@@ -2752,6 +2756,7 @@
2752
2756
  ._ksblidpf .fabric-editor-alignment:first-of-type:first-child p:first-child:not(style){margin-top:0}
2753
2757
  ._ksg217vv .ProseMirror h1>.media-inline-image-wrapper{transform:translateY(-3px)}
2754
2758
  ._ktc91e5h .pm-table-sticky-wrapper>table th{text-align:left}
2759
+ ._ktyiesu3 .ProseMirror [data-layout-section] [data-layout-column][data-valign=bottom]>[data-layout-content]{justify-content:flex-end}
2755
2760
  ._kw4vglyw .ProseMirror .ak-editor-panel .ak-editor-panel__icon{ms-user-select:none}
2756
2761
  ._kxdfidpf .ProseMirror .ak-editor-selected-node .emoji-common-emoji-image:before{left:0}
2757
2762
  ._ky807vkz [data-prosemirror-node-name=decisionItem]>[data-decision-wrapper]>[data-component=icon]{width:1pc}
@@ -3304,6 +3309,7 @@
3304
3309
  ._wg06idpf [data-prosemirror-node-name=date] .date-lozenger-container span{margin-top:0}
3305
3310
  ._wgjz10yn .ProseMirror h3>:is(a,span[data-mark-type=border]) .media-inline-image-wrapper{height:25px}
3306
3311
  ._wgub1j28 .ProseMirror span.pm-placeholder.ak-editor-selected-node ::selection{background-color:transparent}
3312
+ ._whzv1txw .ProseMirror [data-layout-section] [data-layout-column][data-valign=bottom]>[data-layout-content]{display:flex}
3307
3313
  ._wi0pglyw .ak-editor-sync-block__label{box-shadow:none}
3308
3314
  ._wi4l1j28 .dateView-content-wrap.ak-editor-selected-node .date-lozenger-container>span ::-moz-selection{background-color:transparent}
3309
3315
  ._wiz6tlke .embedCardView-content-wrap .loader-wrapper>div{cursor:pointer}
@@ -204,7 +204,7 @@ var editorContentStyles = {
204
204
  hyperLinkFloatingToolbarStyles: "_14olidpf _1499idpf _w11vidpf _162zidpf",
205
205
  indentationStyles: "_10pe1ul9 _ygai1wqb _1czel1r9 _126j68cl _cnga1w81 _14uamgvx",
206
206
  InlineNodeViewSharedStyles: "_omad1nu9 _64cs1rj4 _fukv1q9c _1rhx1jtm _1bbqglyw _1v741j28 _17xw1j28 _kdjsglyw _6q1jryon",
207
- layoutBaseStyles: "_o2as1f61 _3t6qixl8 _19z7kb7n _e6qzkb7n _c9uhf1ug _19eyia51 _1r5q12b0 _cx2xutpp _2wy7h2mm _14hwidpf _1ed8usvi _navqidpf _84fsidpf _gt3aidpf _13jnidpf _1iuzidpf _15nuidpf _4fc0idpf _cs4didpf _1iwn1osq _10q81kdv _i6821hrf _16fxtlke _ez6hglyw _17igidpf _1ayiyh40 _x1d2idpf _9m42yh40",
207
+ layoutBaseStyles: "_o2as1f61 _3t6qixl8 _19z7kb7n _e6qzkb7n _c9uhf1ug _19eyia51 _1r5q12b0 _cx2xutpp _2wy7h2mm _14hwidpf _1ed8usvi _navqidpf _84fsidpf _gt3aidpf _13jnidpf _1iuzidpf _15nuidpf _4fc0idpf _cs4didpf _1iwn1osq _10q81kdv _i6821hrf _whzv1txw _16df1txw _15sh1bp4 _1ydd1bp4 _av0z1h6o _ktyiesu3 _16fxtlke _ez6hglyw _17igidpf _1ayiyh40 _x1d2idpf _9m42yh40",
208
208
  layoutBaseStylesAdvanced: "_19eyidpf",
209
209
  layoutBaseStylesFixesUnderNestedDnDFG: "_o2as17in _1v5d1crf _5jfcgktf _3mtd1crf _c82wgktf",
210
210
  layoutBaseStylesFixesUnderNestedDnDFGExcludingBodiedSync: "_o2as17in _157i1f61 _1v5d1crf _5jfcgktf _3mtd1crf _c82wgktf",
@@ -499,22 +499,20 @@ export var layoutBaseStyles = css({
499
499
  clear: 'both'
500
500
  }
501
501
  },
502
+ // Keep the editable content wrapper stretched so blank column space remains a text hit area.
503
+ // Apply vertical alignment to the wrapper contents rather than shrinking the wrapper itself.
502
504
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
503
- '&[data-valign="middle"], &[data-valign="bottom"]': {
505
+ '&[data-valign="middle"] > [data-layout-content], &[data-valign="bottom"] > [data-layout-content]': {
504
506
  display: 'flex',
505
507
  flexDirection: 'column'
506
508
  },
507
509
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
508
- '&[data-valign="middle"]': {
510
+ '&[data-valign="middle"] > [data-layout-content]': {
509
511
  justifyContent: 'center'
510
512
  },
511
513
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
512
- '&[data-valign="bottom"]': {
514
+ '&[data-valign="bottom"] > [data-layout-content]': {
513
515
  justifyContent: 'flex-end'
514
- },
515
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
516
- '&[data-valign="middle"] > [data-layout-content], &[data-valign="bottom"] > [data-layout-content]': {
517
- height: 'auto'
518
516
  }
519
517
  }
520
518
  }
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "219.9.13";
2
+ export var version = "219.9.15";
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
7
+ * Used via `componentWithCondition` in `BeforeWrapper.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import type { ReactElement } from 'react';
12
+ type ReactComponents = ReactElement | ReactElement[];
13
+ export declare const BeforePrimaryToolbarWrapperCompiled: (props: {
14
+ beforePrimaryToolbarComponents: ReactComponents | undefined;
15
+ }) => React.JSX.Element;
16
+ export {};
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
7
+ * Used via `componentWithCondition` in `BeforeWrapper.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import type { ReactElement } from 'react';
12
+ type ReactComponents = ReactElement | ReactElement[];
13
+ export declare const BeforePrimaryToolbarWrapperEmotion: (props: {
14
+ beforePrimaryToolbarComponents: ReactComponents | undefined;
15
+ }) => React.JSX.Element;
16
+ export {};
@@ -1,11 +1,6 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import type { ReactElement } from 'react';
6
- import { jsx } from '@emotion/react';
1
+ import type { FC, ReactElement } from 'react';
7
2
  type ReactComponents = ReactElement | ReactElement[];
8
- export declare const BeforePrimaryToolbarWrapper: (props: {
3
+ export declare const BeforePrimaryToolbarWrapper: FC<{
9
4
  beforePrimaryToolbarComponents: ReactComponents | undefined;
10
- }) => jsx.JSX.Element;
5
+ }>;
11
6
  export {};
@@ -0,0 +1,3 @@
1
+ import type { ChildWrapperProps } from './CustomToolbarWrapper';
2
+ export declare const MainToolbarForFirstChildWrapperCompiled: ({ twoLineEditorToolbar, children, role, "aria-label": ariaLabel, "data-testid": testId, }: ChildWrapperProps) => React.JSX.Element;
3
+ export declare const MainToolbarForSecondChildWrapperCompiled: ({ twoLineEditorToolbar, children, role, "aria-label": ariaLabel, "data-testid": testId, }: ChildWrapperProps) => React.JSX.Element;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
7
+ * Used via `componentWithCondition` in `CustomToolbarWrapper.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import React from 'react';
12
+ import type { ChildWrapperProps } from './CustomToolbarWrapper';
13
+ export declare const MainToolbarForFirstChildWrapperEmotion: ({ twoLineEditorToolbar, children, role, "aria-label": ariaLabel, "data-testid": testId, }: ChildWrapperProps) => React.JSX.Element;
14
+ export declare const MainToolbarForSecondChildWrapperEmotion: ({ twoLineEditorToolbar, children, role, "aria-label": ariaLabel, "data-testid": testId, }: ChildWrapperProps) => React.JSX.Element;
@@ -1,16 +1,10 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import { jsx } from '@emotion/react';
7
- interface ChildWrapperProps {
1
+ import type { FC } from 'react';
2
+ export interface ChildWrapperProps {
8
3
  'aria-label'?: string;
9
4
  children: React.ReactNode;
10
5
  'data-testid'?: string;
11
6
  role?: string;
12
7
  twoLineEditorToolbar: boolean;
13
8
  }
14
- export declare const MainToolbarForFirstChildWrapper: ({ twoLineEditorToolbar, children, role, "aria-label": ariaLabel, "data-testid": testId, }: ChildWrapperProps) => jsx.JSX.Element;
15
- export declare const MainToolbarForSecondChildWrapper: ({ twoLineEditorToolbar, children, role, "aria-label": ariaLabel, "data-testid": testId, }: ChildWrapperProps) => jsx.JSX.Element;
16
- export {};
9
+ export declare const MainToolbarForFirstChildWrapper: FC<ChildWrapperProps>;
10
+ export declare const MainToolbarForSecondChildWrapper: FC<ChildWrapperProps>;
@@ -0,0 +1,7 @@
1
+ interface FullPageEditorWrapperProps {
2
+ children: React.ReactNode;
3
+ className?: string;
4
+ style?: React.CSSProperties;
5
+ }
6
+ export declare const FullPageEditorWrapperCompiled: React.ForwardRefExoticComponent<FullPageEditorWrapperProps & React.RefAttributes<HTMLDivElement>>;
7
+ export {};