@atlaskit/editor-core 219.9.14 → 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 (77) hide show
  1. package/CHANGELOG.md +8 -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/version-wrapper.js +1 -1
  19. package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper-compiled.compiled.css +4 -0
  20. package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper-compiled.js +19 -0
  21. package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper-emotion.js +25 -0
  22. package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper.js +5 -17
  23. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.compiled.css +4 -0
  24. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +46 -0
  25. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.js +78 -0
  26. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper.js +6 -69
  27. package/dist/es2019/ui/Appearance/FullPage/FullPage-compiled.compiled.css +5 -0
  28. package/dist/es2019/ui/Appearance/FullPage/FullPage-compiled.js +23 -0
  29. package/dist/es2019/ui/Appearance/FullPage/FullPage-emotion.js +29 -0
  30. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +17 -19
  31. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar-compiled.compiled.css +10 -0
  32. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar-compiled.js +34 -0
  33. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar-emotion.js +48 -0
  34. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +16 -27
  35. package/dist/es2019/version-wrapper.js +1 -1
  36. package/dist/esm/ui/Appearance/FullPage/BeforeWrapper-compiled.compiled.css +4 -0
  37. package/dist/esm/ui/Appearance/FullPage/BeforeWrapper-compiled.js +21 -0
  38. package/dist/esm/ui/Appearance/FullPage/BeforeWrapper-emotion.js +27 -0
  39. package/dist/esm/ui/Appearance/FullPage/BeforeWrapper.js +7 -19
  40. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.compiled.css +4 -0
  41. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +48 -0
  42. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.js +80 -0
  43. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper.js +10 -71
  44. package/dist/esm/ui/Appearance/FullPage/FullPage-compiled.compiled.css +5 -0
  45. package/dist/esm/ui/Appearance/FullPage/FullPage-compiled.js +24 -0
  46. package/dist/esm/ui/Appearance/FullPage/FullPage-emotion.js +31 -0
  47. package/dist/esm/ui/Appearance/FullPage/FullPage.js +19 -19
  48. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar-compiled.compiled.css +10 -0
  49. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar-compiled.js +37 -0
  50. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar-emotion.js +50 -0
  51. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +22 -27
  52. package/dist/esm/version-wrapper.js +1 -1
  53. package/dist/types/ui/Appearance/FullPage/BeforeWrapper-compiled.d.ts +16 -0
  54. package/dist/types/ui/Appearance/FullPage/BeforeWrapper-emotion.d.ts +16 -0
  55. package/dist/types/ui/Appearance/FullPage/BeforeWrapper.d.ts +3 -8
  56. package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.d.ts +3 -0
  57. package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.d.ts +14 -0
  58. package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper.d.ts +4 -10
  59. package/dist/types/ui/Appearance/FullPage/FullPage-compiled.d.ts +7 -0
  60. package/dist/types/ui/Appearance/FullPage/FullPage-emotion.d.ts +7 -0
  61. package/dist/types/ui/Appearance/FullPage/FullPage.d.ts +2 -2
  62. package/dist/types/ui/Appearance/FullPage/FullPageToolbar-compiled.d.ts +20 -0
  63. package/dist/types/ui/Appearance/FullPage/FullPageToolbar-emotion.d.ts +20 -0
  64. package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +1 -6
  65. package/dist/types-ts4.5/ui/Appearance/FullPage/BeforeWrapper-compiled.d.ts +16 -0
  66. package/dist/types-ts4.5/ui/Appearance/FullPage/BeforeWrapper-emotion.d.ts +16 -0
  67. package/dist/types-ts4.5/ui/Appearance/FullPage/BeforeWrapper.d.ts +3 -8
  68. package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.d.ts +3 -0
  69. package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.d.ts +14 -0
  70. package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapper.d.ts +4 -10
  71. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage-compiled.d.ts +7 -0
  72. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage-emotion.d.ts +7 -0
  73. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage.d.ts +2 -2
  74. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar-compiled.d.ts +20 -0
  75. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar-emotion.d.ts +20 -0
  76. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +1 -6
  77. package/package.json +2 -2
@@ -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
 
@@ -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.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;
@@ -0,0 +1,20 @@
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 `FullPageToolbar.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import type { ReactNode } from 'react';
12
+ export declare const NonCustomToolbarWrapperCompiled: ({ children, }: {
13
+ children: ReactNode;
14
+ }) => React.JSX.Element;
15
+ export declare const MainToolbarIconBeforeCompiled: ({ children, }: {
16
+ children: ReactNode;
17
+ }) => React.JSX.Element;
18
+ export declare const CustomToolbarWrapperCompiled: ({ children, }: {
19
+ children: ReactNode;
20
+ }) => React.JSX.Element;
@@ -0,0 +1,20 @@
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 `FullPageToolbar.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import type { ReactNode } from 'react';
12
+ export declare const NonCustomToolbarWrapperEmotion: ({ children, }: {
13
+ children: ReactNode;
14
+ }) => React.JSX.Element;
15
+ export declare const MainToolbarIconBeforeEmotion: ({ children, }: {
16
+ children: ReactNode;
17
+ }) => React.JSX.Element;
18
+ export declare const CustomToolbarWrapperEmotion: ({ children, }: {
19
+ children: ReactNode;
20
+ }) => React.JSX.Element;
@@ -1,10 +1,5 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
1
  import type { ReactElement } from 'react';
6
2
  import React from 'react';
7
- import { jsx } from '@emotion/react';
8
3
  import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
9
4
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
10
5
  import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
@@ -50,7 +45,7 @@ export interface FullPageToolbarProps {
50
45
  providerFactory: ProviderFactory;
51
46
  showKeyline: boolean;
52
47
  }
53
- export declare const EditorToolbar: React.MemoExoticComponent<(props: FullPageToolbarProps & WrappedComponentProps) => jsx.JSX.Element>;
48
+ export declare const EditorToolbar: React.MemoExoticComponent<(props: FullPageToolbarProps & WrappedComponentProps) => React.JSX.Element>;
54
49
  export declare const FullPageToolbar: React.FC<WithIntlProps<FullPageToolbarProps & WrappedComponentProps>> & {
55
50
  WrappedComponent: React.ComponentType<FullPageToolbarProps & WrappedComponentProps>;
56
51
  };
@@ -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;
@@ -0,0 +1,20 @@
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 `FullPageToolbar.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import type { ReactNode } from 'react';
12
+ export declare const NonCustomToolbarWrapperCompiled: ({ children, }: {
13
+ children: ReactNode;
14
+ }) => React.JSX.Element;
15
+ export declare const MainToolbarIconBeforeCompiled: ({ children, }: {
16
+ children: ReactNode;
17
+ }) => React.JSX.Element;
18
+ export declare const CustomToolbarWrapperCompiled: ({ children, }: {
19
+ children: ReactNode;
20
+ }) => React.JSX.Element;
@@ -0,0 +1,20 @@
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 `FullPageToolbar.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import type { ReactNode } from 'react';
12
+ export declare const NonCustomToolbarWrapperEmotion: ({ children, }: {
13
+ children: ReactNode;
14
+ }) => React.JSX.Element;
15
+ export declare const MainToolbarIconBeforeEmotion: ({ children, }: {
16
+ children: ReactNode;
17
+ }) => React.JSX.Element;
18
+ export declare const CustomToolbarWrapperEmotion: ({ children, }: {
19
+ children: ReactNode;
20
+ }) => React.JSX.Element;
@@ -1,10 +1,5 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
1
  import type { ReactElement } from 'react';
6
2
  import React from 'react';
7
- import { jsx } from '@emotion/react';
8
3
  import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
9
4
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
10
5
  import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
@@ -50,7 +45,7 @@ export interface FullPageToolbarProps {
50
45
  providerFactory: ProviderFactory;
51
46
  showKeyline: boolean;
52
47
  }
53
- export declare const EditorToolbar: React.MemoExoticComponent<(props: FullPageToolbarProps & WrappedComponentProps) => jsx.JSX.Element>;
48
+ export declare const EditorToolbar: React.MemoExoticComponent<(props: FullPageToolbarProps & WrappedComponentProps) => React.JSX.Element>;
54
49
  export declare const FullPageToolbar: React.FC<WithIntlProps<FullPageToolbarProps & WrappedComponentProps>> & {
55
50
  WrappedComponent: React.ComponentType<FullPageToolbarProps & WrappedComponentProps>;
56
51
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "219.9.14",
3
+ "version": "219.9.15",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -92,7 +92,7 @@
92
92
  "uuid": "^3.1.0"
93
93
  },
94
94
  "peerDependencies": {
95
- "@atlaskit/editor-common": "^114.51.0",
95
+ "@atlaskit/editor-common": "^114.53.0",
96
96
  "@atlaskit/link-provider": "^4.4.0",
97
97
  "@atlaskit/media-core": "^37.1.0",
98
98
  "react": "^18.2.0",