@atlaskit/editor-core 219.9.13 → 219.9.15

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 (90) hide show
  1. package/CHANGELOG.md +20 -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 +20 -20
  14. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +7 -2
  15. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar-compiled.compiled.css +10 -0
  16. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar-compiled.js +45 -0
  17. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar-emotion.js +58 -0
  18. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +21 -26
  19. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbarNext.js +6 -3
  20. package/dist/cjs/ui/Toolbar/Toolbar.js +3 -1
  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 +18 -19
  34. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +7 -2
  35. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar-compiled.compiled.css +10 -0
  36. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar-compiled.js +34 -0
  37. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar-emotion.js +48 -0
  38. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +16 -27
  39. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbarNext.js +6 -3
  40. package/dist/es2019/ui/Toolbar/Toolbar.js +3 -1
  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 +20 -19
  54. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +7 -2
  55. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar-compiled.compiled.css +10 -0
  56. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar-compiled.js +37 -0
  57. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar-emotion.js +50 -0
  58. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +22 -27
  59. package/dist/esm/ui/Appearance/FullPage/FullPageToolbarNext.js +6 -3
  60. package/dist/esm/ui/Toolbar/Toolbar.js +3 -1
  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/ui/Appearance/FullPage/FullPageToolbarNext.d.ts +2 -1
  75. package/dist/types/ui/Toolbar/Toolbar.d.ts +2 -2
  76. package/dist/types-ts4.5/ui/Appearance/FullPage/BeforeWrapper-compiled.d.ts +16 -0
  77. package/dist/types-ts4.5/ui/Appearance/FullPage/BeforeWrapper-emotion.d.ts +16 -0
  78. package/dist/types-ts4.5/ui/Appearance/FullPage/BeforeWrapper.d.ts +3 -8
  79. package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.d.ts +3 -0
  80. package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.d.ts +14 -0
  81. package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapper.d.ts +4 -10
  82. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage-compiled.d.ts +7 -0
  83. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage-emotion.d.ts +7 -0
  84. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage.d.ts +2 -2
  85. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar-compiled.d.ts +20 -0
  86. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar-emotion.d.ts +20 -0
  87. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +1 -6
  88. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbarNext.d.ts +2 -1
  89. package/dist/types-ts4.5/ui/Toolbar/Toolbar.d.ts +2 -2
  90. package/package.json +9 -9
@@ -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,24 +142,27 @@ 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
+ disabledWithoutInteractionLogic: !!props.disabled,
165
166
  toolbarDockingPosition: toolbarDockingPosition !== null && toolbarDockingPosition !== void 0 ? toolbarDockingPosition : toolbarDocking,
166
167
  beforeIcon: props.primaryToolbarIconBefore,
167
168
  editorAPI: editorAPI,
@@ -171,7 +172,7 @@ export var FullPageEditor = function FullPageEditor(props) {
171
172
  popupsScrollableElement: props.popupsScrollableElement,
172
173
  showKeyline: showKeyline,
173
174
  customPrimaryToolbarComponents: props.customPrimaryToolbarComponents
174
- }) : jsx(FullPageToolbar, {
175
+ }) : /*#__PURE__*/React.createElement(FullPageToolbar, {
175
176
  appearance: props.appearance,
176
177
  editorAPI: editorAPI,
177
178
  beforeIcon: props.primaryToolbarIconBefore,
@@ -198,7 +199,7 @@ export var FullPageEditor = function FullPageEditor(props) {
198
199
  providerFactory: props.providerFactory,
199
200
  showKeyline: showKeyline,
200
201
  featureFlags: props.featureFlags
201
- })), jsx(FullPageContentArea, {
202
+ })), /*#__PURE__*/React.createElement(FullPageContentArea, {
202
203
  editorAPI: editorAPI,
203
204
  ref: scrollContentContainerRef,
204
205
  appearance: props.appearance,
@@ -51,15 +51,20 @@ var editorContentAreaProsemirrorStyle = css({
51
51
  marginBottom: "var(--ds-space-300, 24px)"
52
52
  })
53
53
  });
54
+
55
+ /*
56
+ EDITOR-7249: Scope to the main editor's ProseMirror (direct child) so nested
57
+ editors like the footer page-comment composer aren't hidden in Syntax view.
58
+ */
54
59
  var hideEditorContentAreaProsemirrorStyle = css({
55
60
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
56
- '& .ProseMirror': {
61
+ '& > .ak-editor-content-area > .ProseMirror': {
57
62
  display: 'none'
58
63
  }
59
64
  });
60
65
  var hideEditorContentAreaProsemirrorWithAttributeStyle = css({
61
66
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
62
- '&[data-markdown-mode-hide-prosemirror="true"] .ProseMirror': {
67
+ '&[data-markdown-mode-hide-prosemirror="true"] > .ak-editor-content-area > .ProseMirror': {
63
68
  display: 'none'
64
69
  }
65
70
  });
@@ -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
 
@@ -71,7 +71,8 @@ export var FullPageToolbarNext = function FullPageToolbarNext(_ref4) {
71
71
  popupsMountPoint = _ref4.popupsMountPoint,
72
72
  showKeyline = _ref4.showKeyline,
73
73
  customPrimaryToolbarComponents = _ref4.customPrimaryToolbarComponents,
74
- disabled = _ref4.disabled;
74
+ disabled = _ref4.disabled,
75
+ disabledWithoutInteractionLogic = _ref4.disabledWithoutInteractionLogic;
75
76
  var components = editorAPI === null || editorAPI === void 0 || (_editorAPI$toolbar = editorAPI.toolbar) === null || _editorAPI$toolbar === void 0 ? void 0 : _editorAPI$toolbar.actions.getComponents();
76
77
  var runtimeOverride = useSharedPluginStateWithSelector(editorAPI, ['toolbar'], function (states) {
77
78
  var _states$toolbarState;
@@ -139,7 +140,8 @@ export var FullPageToolbarNext = function FullPageToolbarNext(_ref4) {
139
140
  editorAPI: editorAPI,
140
141
  popupsMountPoint: mountPoint,
141
142
  editorAppearance: "full-page",
142
- isDisabled: disabled
143
+ isDisabled: disabled,
144
+ disabledWithoutInteractionLogic: disabledWithoutInteractionLogic
143
145
  }) : /*#__PURE__*/React.createElement(ExcludeFromHydration, null, primaryToolbarDockingConfigEnabled && components && visibleToolbarComponents && isToolbar(toolbar) && editorView && !isSSR() && /*#__PURE__*/React.createElement(ToolbarNext, {
144
146
  toolbar: toolbar,
145
147
  components: visibleToolbarComponents,
@@ -147,7 +149,8 @@ export var FullPageToolbarNext = function FullPageToolbarNext(_ref4) {
147
149
  editorAPI: editorAPI,
148
150
  popupsMountPoint: mountPoint,
149
151
  editorAppearance: "full-page",
150
- isDisabled: disabled
152
+ isDisabled: disabled,
153
+ disabledWithoutInteractionLogic: disabledWithoutInteractionLogic
151
154
  }))), /*#__PURE__*/React.createElement(SecondChildWrapper, null, /*#__PURE__*/React.createElement("div", {
152
155
  className: ax([styles.customToolbarWrapperStyle])
153
156
  }, !!customPrimaryToolbarComponents && 'before' in customPrimaryToolbarComponents && /*#__PURE__*/React.createElement("div", {
@@ -62,7 +62,8 @@ export var ToolbarNext = function ToolbarNext(_ref) {
62
62
  editorAppearance = _ref.editorAppearance,
63
63
  popupsBoundariesElement = _ref.popupsBoundariesElement,
64
64
  popupsScrollableElement = _ref.popupsScrollableElement,
65
- isDisabled = _ref.isDisabled;
65
+ isDisabled = _ref.isDisabled,
66
+ disabledWithoutInteractionLogic = _ref.disabledWithoutInteractionLogic;
66
67
  var _usePluginState = usePluginState(editorAPI),
67
68
  connectivityStateMode = _usePluginState.connectivityStateMode,
68
69
  editorViewMode = _usePluginState.editorViewMode,
@@ -90,6 +91,7 @@ export var ToolbarNext = function ToolbarNext(_ref) {
90
91
  }, /*#__PURE__*/React.createElement(EditorToolbarUIProvider, {
91
92
  api: editorAPI,
92
93
  isDisabled: isDisabled,
94
+ disabledWithoutInteractionLogic: disabledWithoutInteractionLogic,
93
95
  popupsMountPoint: popupsMountPoint,
94
96
  popupsBoundariesElement: popupsBoundariesElement,
95
97
  popupsScrollableElement: popupsScrollableElement,
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "219.9.12";
2
+ export var version = "219.9.14";
@@ -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 {};
@@ -0,0 +1,7 @@
1
+ interface FullPageEditorWrapperProps {
2
+ children: React.ReactNode;
3
+ className?: string;
4
+ style?: React.CSSProperties;
5
+ }
6
+ export declare const FullPageEditorWrapperEmotion: React.ForwardRefExoticComponent<FullPageEditorWrapperProps & React.RefAttributes<HTMLDivElement>>;
7
+ export {};
@@ -1,4 +1,4 @@
1
- import { jsx } from '@emotion/react';
1
+ import React from 'react';
2
2
  import type { OptionalPlugin } from '@atlaskit/editor-common/types';
3
3
  import type { EditorViewModePlugin } from '@atlaskit/editor-plugins/editor-viewmode';
4
4
  import type { InteractionPlugin } from '@atlaskit/editor-plugins/interaction';
@@ -15,4 +15,4 @@ export type ComponentProps = EditorAppearanceComponentProps<[
15
15
  OptionalPlugin<ToolbarPlugin>,
16
16
  ...ToolbarEditorPlugins
17
17
  ]>;
18
- export declare const FullPageEditor: (props: ComponentProps) => jsx.JSX.Element;
18
+ export declare const FullPageEditor: (props: ComponentProps) => React.JSX.Element;