@atlaskit/editor-core 221.2.0 → 221.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/afm-cc/tsconfig.json +3 -0
  3. package/afm-products/tsconfig.json +3 -0
  4. package/dist/cjs/ui/Appearance/Comment/FixedToolbar-compiled.compiled.css +20 -0
  5. package/dist/cjs/ui/Appearance/Comment/FixedToolbar-compiled.js +35 -0
  6. package/dist/cjs/ui/Appearance/Comment/FixedToolbar-emotion.js +94 -0
  7. package/dist/cjs/ui/Appearance/Comment/StickyToolbar-compiled.compiled.css +25 -0
  8. package/dist/cjs/ui/Appearance/Comment/StickyToolbar-compiled.js +66 -0
  9. package/dist/cjs/ui/Appearance/Comment/StickyToolbar-emotion.js +131 -0
  10. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +14 -134
  11. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +50 -3
  12. package/dist/cjs/ui/Toolbar/ToolbarComponentsWrapper-compiled.compiled.css +2 -0
  13. package/dist/cjs/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +29 -0
  14. package/dist/cjs/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +36 -0
  15. package/dist/cjs/ui/Toolbar/ToolbarInner.js +9 -14
  16. package/dist/cjs/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.compiled.css +2 -0
  17. package/dist/cjs/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +29 -0
  18. package/dist/cjs/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +32 -0
  19. package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +21 -19
  20. package/dist/cjs/version-wrapper.js +1 -1
  21. package/dist/es2019/ui/Appearance/Comment/FixedToolbar-compiled.compiled.css +20 -0
  22. package/dist/es2019/ui/Appearance/Comment/FixedToolbar-compiled.js +26 -0
  23. package/dist/es2019/ui/Appearance/Comment/FixedToolbar-emotion.js +91 -0
  24. package/dist/es2019/ui/Appearance/Comment/StickyToolbar-compiled.compiled.css +25 -0
  25. package/dist/es2019/ui/Appearance/Comment/StickyToolbar-compiled.js +51 -0
  26. package/dist/es2019/ui/Appearance/Comment/StickyToolbar-emotion.js +128 -0
  27. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +10 -133
  28. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +50 -3
  29. package/dist/es2019/ui/Toolbar/ToolbarComponentsWrapper-compiled.compiled.css +2 -0
  30. package/dist/es2019/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +20 -0
  31. package/dist/es2019/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +28 -0
  32. package/dist/es2019/ui/Toolbar/ToolbarInner.js +6 -17
  33. package/dist/es2019/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.compiled.css +2 -0
  34. package/dist/es2019/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +20 -0
  35. package/dist/es2019/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +24 -0
  36. package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +18 -19
  37. package/dist/es2019/version-wrapper.js +1 -1
  38. package/dist/esm/ui/Appearance/Comment/FixedToolbar-compiled.compiled.css +20 -0
  39. package/dist/esm/ui/Appearance/Comment/FixedToolbar-compiled.js +28 -0
  40. package/dist/esm/ui/Appearance/Comment/FixedToolbar-emotion.js +86 -0
  41. package/dist/esm/ui/Appearance/Comment/StickyToolbar-compiled.compiled.css +25 -0
  42. package/dist/esm/ui/Appearance/Comment/StickyToolbar-compiled.js +58 -0
  43. package/dist/esm/ui/Appearance/Comment/StickyToolbar-emotion.js +124 -0
  44. package/dist/esm/ui/Appearance/Comment/Toolbar.js +14 -132
  45. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +50 -3
  46. package/dist/esm/ui/Toolbar/ToolbarComponentsWrapper-compiled.compiled.css +2 -0
  47. package/dist/esm/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +21 -0
  48. package/dist/esm/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +28 -0
  49. package/dist/esm/ui/Toolbar/ToolbarInner.js +8 -16
  50. package/dist/esm/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.compiled.css +2 -0
  51. package/dist/esm/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +21 -0
  52. package/dist/esm/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +25 -0
  53. package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +21 -18
  54. package/dist/esm/version-wrapper.js +1 -1
  55. package/dist/types/ui/Appearance/Comment/FixedToolbar-compiled.d.ts +20 -0
  56. package/dist/types/ui/Appearance/Comment/FixedToolbar-emotion.d.ts +19 -0
  57. package/dist/types/ui/Appearance/Comment/StickyToolbar-compiled.d.ts +22 -0
  58. package/dist/types/ui/Appearance/Comment/StickyToolbar-emotion.d.ts +21 -0
  59. package/dist/types/ui/Appearance/Comment/Toolbar.d.ts +1 -2
  60. package/dist/types/ui/Toolbar/ToolbarComponentsWrapper-compiled.d.ts +17 -0
  61. package/dist/types/ui/Toolbar/ToolbarComponentsWrapper-emotion.d.ts +17 -0
  62. package/dist/types/ui/Toolbar/ToolbarInner.d.ts +1 -6
  63. package/dist/types/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.d.ts +17 -0
  64. package/dist/types/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.d.ts +17 -0
  65. package/dist/types/ui/Toolbar/ToolbarWithSizeDetector.d.ts +2 -2
  66. package/package.json +10 -10
@@ -3,25 +3,18 @@ import _createClass from "@babel/runtime/helpers/createClass";
3
3
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
4
4
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
5
5
  import _inherits from "@babel/runtime/helpers/inherits";
6
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
7
6
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
7
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9
- /**
10
- * @jsxRuntime classic
11
- * @jsx jsx
12
- */
13
8
  import React from 'react';
14
-
15
- // 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
16
- import { css, jsx } from '@emotion/react';
17
9
  import isEqual from 'lodash/isEqual';
18
10
  import { isSSR } from '@atlaskit/editor-common/core-utils';
19
- import { akEditorMobileMaxWidth } from '@atlaskit/editor-shared-styles';
20
- var toolbarComponentsWrapper = css(_defineProperty({
21
- display: 'flex'
22
- }, "@media (max-width: ".concat(akEditorMobileMaxWidth, "px)"), {
23
- justifyContent: 'space-between'
24
- }));
11
+ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
12
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
+ import { ToolbarComponentsWrapperCompiled } from './ToolbarComponentsWrapper-compiled';
14
+ import { ToolbarComponentsWrapperEmotion } from './ToolbarComponentsWrapper-emotion';
15
+ var ToolbarComponentsWrapperMigration = componentWithCondition(function () {
16
+ return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
17
+ }, ToolbarComponentsWrapperCompiled, ToolbarComponentsWrapperEmotion);
25
18
 
26
19
  // Ignored via go/ees005
27
20
  // eslint-disable-next-line @repo/internal/react/no-class-components
@@ -62,8 +55,7 @@ export var ToolbarInner = /*#__PURE__*/function (_React$Component) {
62
55
  // Hiding toolbar in SSR until the dependency of screen width is resolved in SSR environment.
63
56
  return null;
64
57
  }
65
- return jsx("div", {
66
- css: toolbarComponentsWrapper,
58
+ return /*#__PURE__*/React.createElement(ToolbarComponentsWrapperMigration, {
67
59
  "data-vc": "toolbar-inner"
68
60
  }, items.map(function (component, key) {
69
61
  var element = component({
@@ -0,0 +1,2 @@
1
+ ._1bsb1osq{width:100%}
2
+ ._kqswh2mm{position:relative}
@@ -0,0 +1,21 @@
1
+ /* ToolbarSizeDetectorWrapper-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 `ToolbarWithSizeDetector.tsx`.
5
+ *
6
+ * Cleanup: delete this file once the experiment has shipped.
7
+ */
8
+ import "./ToolbarSizeDetectorWrapper-compiled.compiled.css";
9
+ import * as React from 'react';
10
+ import { ax, ix } from "@compiled/react/runtime";
11
+ var toolbarSizeDetectorWrapperCompiledStyles = {
12
+ root: "_1bsb1osq _kqswh2mm"
13
+ };
14
+ export var ToolbarSizeDetectorWrapperCompiled = function ToolbarSizeDetectorWrapperCompiled(_ref) {
15
+ var children = _ref.children,
16
+ style = _ref.style;
17
+ return /*#__PURE__*/React.createElement("div", {
18
+ style: style,
19
+ className: ax([toolbarSizeDetectorWrapperCompiledStyles.root])
20
+ }, children);
21
+ };
@@ -0,0 +1,25 @@
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 `ToolbarWithSizeDetector.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+
12
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback for compiled migration
13
+ import { css, jsx } from '@emotion/react';
14
+ var toolbarSizeDetectorWrapperEmotionStyles = css({
15
+ width: '100%',
16
+ position: 'relative'
17
+ });
18
+ export var ToolbarSizeDetectorWrapperEmotion = function ToolbarSizeDetectorWrapperEmotion(_ref) {
19
+ var children = _ref.children,
20
+ style = _ref.style;
21
+ return jsx("div", {
22
+ css: toolbarSizeDetectorWrapperEmotionStyles,
23
+ style: style
24
+ }, children);
25
+ };
@@ -1,24 +1,20 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
2
  import React, { useMemo } 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 { css, jsx } from '@emotion/react';
10
3
  import { isSSR } from '@atlaskit/editor-common/core-utils';
11
4
  import { ToolbarSize } from '@atlaskit/editor-common/types';
5
+ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
6
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
12
7
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
13
8
  import { WidthObserver } from '@atlaskit/width-detector';
14
9
  import { isFullPage } from '../../utils/is-full-page';
15
10
  import { useElementWidth } from './hooks';
16
11
  import { Toolbar } from './Toolbar';
17
12
  import { toolbarSizeToWidth, widthToToolbarSize } from './toolbar-size';
18
- var toolbar = css({
19
- width: '100%',
20
- position: 'relative'
21
- });
13
+ import { ToolbarSizeDetectorWrapperCompiled } from './ToolbarSizeDetectorWrapper-compiled';
14
+ import { ToolbarSizeDetectorWrapperEmotion } from './ToolbarSizeDetectorWrapper-emotion';
15
+ var ToolbarSizeDetectorWrapperMigration = componentWithCondition(function () {
16
+ return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
17
+ }, ToolbarSizeDetectorWrapperCompiled, ToolbarSizeDetectorWrapperEmotion);
22
18
  export var ToolbarWithSizeDetector = function ToolbarWithSizeDetector(props) {
23
19
  var ref = React.useRef(null);
24
20
  var _React$useState = React.useState(undefined),
@@ -44,14 +40,21 @@ export var ToolbarWithSizeDetector = function ToolbarWithSizeDetector(props) {
44
40
  return isPreviewPanelResponsivenessEnabled ? 'fit-content' : '254px';
45
41
  }
46
42
  }, [props.appearance, props.hasMinWidth, props.twoLineEditorToolbar]);
47
- return jsx("div", {
48
- css: toolbar,
49
- style: {
43
+ var memoizedWrapperStyle = useMemo(function () {
44
+ return {
50
45
  minWidth: minWidthValue
51
- }
52
- }, jsx(WidthObserver, {
46
+ };
47
+ }, [minWidthValue]);
48
+ var wrapperStyle = expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true) ? memoizedWrapperStyle : {
49
+ minWidth: minWidthValue
50
+ };
51
+ return /*#__PURE__*/React.createElement(ToolbarSizeDetectorWrapperMigration
52
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- minWidth is computed dynamically from props.hasMinWidth, props.appearance, props.twoLineEditorToolbar, and the platform_editor_preview_panel_responsiveness experiment, so it cannot be expressed as a static css value.
53
+ , {
54
+ style: wrapperStyle
55
+ }, /*#__PURE__*/React.createElement(WidthObserver, {
53
56
  setWidth: setWidth
54
- }), props.editorView && toolbarSize ? jsx(Toolbar, {
57
+ }), props.editorView && toolbarSize ? /*#__PURE__*/React.createElement(Toolbar, {
55
58
  toolbarSize: toolbarSize,
56
59
  items: props.items,
57
60
  editorView: props.editorView,
@@ -67,7 +70,7 @@ export var ToolbarWithSizeDetector = function ToolbarWithSizeDetector(props) {
67
70
  containerElement: props.containerElement,
68
71
  hasMinWidth: props.hasMinWidth,
69
72
  twoLineEditorToolbar: props.twoLineEditorToolbar
70
- }) : jsx("div", {
73
+ }) : /*#__PURE__*/React.createElement("div", {
71
74
  ref: ref
72
75
  }));
73
76
  };
@@ -1,3 +1,3 @@
1
1
  export var name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export var version = "221.1.3";
3
+ export var version = "221.2.1";
@@ -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 `Toolbar.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import type { ReactNode } from 'react';
12
+ import React from 'react';
13
+ type FixedToolbarCompiledProps = {
14
+ children?: ReactNode;
15
+ isEditorModernisationEnabled?: boolean;
16
+ isNewToolbarEnabled?: boolean;
17
+ twoLineEditorToolbar?: boolean;
18
+ };
19
+ export declare const FixedToolbarCompiled: (props: FixedToolbarCompiledProps) => React.JSX.Element;
20
+ export {};
@@ -0,0 +1,19 @@
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 `Toolbar.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import type { ReactNode } from 'react';
12
+ type FixedToolbarEmotionProps = {
13
+ children?: ReactNode;
14
+ isEditorModernisationEnabled?: boolean;
15
+ isNewToolbarEnabled?: boolean;
16
+ twoLineEditorToolbar?: boolean;
17
+ };
18
+ export declare const FixedToolbarEmotion: (props: FixedToolbarEmotionProps) => JSX.Element;
19
+ export {};
@@ -0,0 +1,22 @@
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 `Toolbar.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import type { ReactNode, RefObject } from 'react';
12
+ import React from 'react';
13
+ type StickyToolbarCompiledProps = {
14
+ children?: ReactNode;
15
+ externalToolbarRef?: RefObject<HTMLElement>;
16
+ isEditorModernisationEnabled?: boolean;
17
+ isNewToolbarEnabled?: boolean;
18
+ offsetTop?: number;
19
+ twoLineEditorToolbar?: boolean;
20
+ };
21
+ export declare const StickyToolbarCompiled: (props: StickyToolbarCompiledProps) => React.JSX.Element;
22
+ export {};
@@ -0,0 +1,21 @@
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 `Toolbar.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import type { ReactNode, RefObject } from 'react';
12
+ type StickyToolbarEmotionProps = {
13
+ children?: ReactNode;
14
+ externalToolbarRef?: RefObject<HTMLElement>;
15
+ isEditorModernisationEnabled?: boolean;
16
+ isNewToolbarEnabled?: boolean;
17
+ offsetTop?: number;
18
+ twoLineEditorToolbar?: boolean;
19
+ };
20
+ export declare const StickyToolbarEmotion: (props: StickyToolbarEmotionProps) => JSX.Element;
21
+ export {};
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import { jsx } from '@emotion/react';
3
2
  import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
4
3
  type MainToolbarProps = {
5
4
  children?: React.ReactNode;
@@ -8,5 +7,5 @@ type MainToolbarProps = {
8
7
  twoLineEditorToolbar?: boolean;
9
8
  useStickyToolbar?: UseStickyToolbarType;
10
9
  };
11
- export declare const MainToolbar: ({ useStickyToolbar, twoLineEditorToolbar, children, isEditorModernisationEnabled, isNewToolbarEnabled, }: MainToolbarProps) => jsx.JSX.Element;
10
+ export declare const MainToolbar: ({ useStickyToolbar, twoLineEditorToolbar, children, isEditorModernisationEnabled, isNewToolbarEnabled, }: MainToolbarProps) => React.JSX.Element;
12
11
  export {};
@@ -0,0 +1,17 @@
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 `ToolbarInner.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import type { ReactNode } from 'react';
12
+ interface ToolbarComponentsWrapperCompiledProps {
13
+ children?: ReactNode;
14
+ 'data-vc'?: string;
15
+ }
16
+ export declare const ToolbarComponentsWrapperCompiled: ({ children, "data-vc": dataVc, }: ToolbarComponentsWrapperCompiledProps) => JSX.Element;
17
+ export {};
@@ -0,0 +1,17 @@
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 `ToolbarInner.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import type { ReactNode } from 'react';
12
+ interface ToolbarComponentsWrapperEmotionProps {
13
+ children?: ReactNode;
14
+ 'data-vc'?: string;
15
+ }
16
+ export declare const ToolbarComponentsWrapperEmotion: ({ children, "data-vc": dataVc, }: ToolbarComponentsWrapperEmotionProps) => JSX.Element;
17
+ export {};
@@ -1,11 +1,6 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
1
  import React from 'react';
6
- import { jsx } from '@emotion/react';
7
2
  import type { ToolbarInnerProps } from './toolbar-types';
8
3
  export declare class ToolbarInner extends React.Component<ToolbarInnerProps> {
9
4
  shouldComponentUpdate(nextProps: ToolbarInnerProps): boolean;
10
- render(): jsx.JSX.Element | null;
5
+ render(): React.JSX.Element | null;
11
6
  }
@@ -0,0 +1,17 @@
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 `ToolbarWithSizeDetector.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import type { CSSProperties, ReactNode } from 'react';
12
+ interface ToolbarSizeDetectorWrapperCompiledProps {
13
+ children?: ReactNode;
14
+ style?: CSSProperties;
15
+ }
16
+ export declare const ToolbarSizeDetectorWrapperCompiled: ({ children, style, }: ToolbarSizeDetectorWrapperCompiledProps) => JSX.Element;
17
+ export {};
@@ -0,0 +1,17 @@
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 `ToolbarWithSizeDetector.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import type { CSSProperties, ReactNode } from 'react';
12
+ interface ToolbarSizeDetectorWrapperEmotionProps {
13
+ children?: ReactNode;
14
+ style?: CSSProperties;
15
+ }
16
+ export declare const ToolbarSizeDetectorWrapperEmotion: ({ children, style, }: ToolbarSizeDetectorWrapperEmotionProps) => JSX.Element;
17
+ export {};
@@ -1,3 +1,3 @@
1
- import { jsx } from '@emotion/react';
1
+ import React from 'react';
2
2
  import type { ToolbarWithSizeDetectorProps } from './toolbar-types';
3
- export declare const ToolbarWithSizeDetector: (props: ToolbarWithSizeDetectorProps) => jsx.JSX.Element;
3
+ export declare const ToolbarWithSizeDetector: (props: ToolbarWithSizeDetectorProps) => React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "221.2.0",
3
+ "version": "221.3.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -66,10 +66,11 @@
66
66
  "@atlaskit/platform-feature-flags-react": "^1.0.0",
67
67
  "@atlaskit/react-ufo": "^7.1.0",
68
68
  "@atlaskit/task-decision": "^21.2.0",
69
- "@atlaskit/tmp-editor-statsig": "^109.0.0",
70
- "@atlaskit/tokens": "^14.0.0",
69
+ "@atlaskit/tmp-editor-statsig": "^110.0.0",
70
+ "@atlaskit/tokens": "^15.0.0",
71
71
  "@atlaskit/tooltip": "^23.0.0",
72
72
  "@atlaskit/width-detector": "^6.0.0",
73
+ "@atlassian/react-compiler-gating": "^0.2.0",
73
74
  "@babel/runtime": "^7.0.0",
74
75
  "@compiled/react": "^0.20.0",
75
76
  "@emotion/react": "^11.7.1",
@@ -84,7 +85,7 @@
84
85
  "uuid": "^3.1.0"
85
86
  },
86
87
  "peerDependencies": {
87
- "@atlaskit/editor-common": "^116.7.0",
88
+ "@atlaskit/editor-common": "^116.11.0",
88
89
  "@atlaskit/link-provider": "^5.0.0",
89
90
  "@atlaskit/media-core": "^38.0.0",
90
91
  "react": "^18.2.0",
@@ -101,8 +102,8 @@
101
102
  "@atlaskit/collab-provider": "^21.0.0",
102
103
  "@atlaskit/editor-plugin-annotation": "^12.0.0",
103
104
  "@atlaskit/editor-plugin-card": "^18.0.0",
104
- "@atlaskit/editor-plugin-list": "^14.0.0",
105
- "@atlaskit/editor-plugin-paste": "^13.0.0",
105
+ "@atlaskit/editor-plugin-list": "^14.1.0",
106
+ "@atlaskit/editor-plugin-paste": "^13.1.0",
106
107
  "@atlaskit/editor-test-helpers": "workspace:^",
107
108
  "@atlaskit/link-provider": "^5.0.0",
108
109
  "@atlaskit/linking-common": "^10.0.0",
@@ -114,7 +115,7 @@
114
115
  "@atlaskit/popper": "^8.0.0",
115
116
  "@atlaskit/portal": "^6.0.0",
116
117
  "@atlaskit/renderer": "^133.5.0",
117
- "@atlaskit/section-message": "^9.0.0",
118
+ "@atlaskit/section-message": "^9.1.0",
118
119
  "@atlaskit/synchrony-test-helpers": "workspace:^",
119
120
  "@atlaskit/toggle": "^17.0.0",
120
121
  "@atlaskit/util-data-test": "^19.0.0",
@@ -123,8 +124,7 @@
123
124
  "@atlassian/adf-schema-json": "^1.33.0",
124
125
  "@atlassian/editor-rovo-bridge": "^10.0.0",
125
126
  "@atlassian/feature-flags-test-utils": "^1.1.0",
126
- "@atlassian/react-compiler-gating": "workspace:^",
127
- "@atlassian/search-client": "^1.14.0",
127
+ "@atlassian/search-client": "^1.16.0",
128
128
  "@atlassian/search-provider": "^13.0.0",
129
129
  "@atlassian/structured-docs-types": "workspace:^",
130
130
  "@atlassian/user-profile-card": "^1.14.0",
@@ -140,7 +140,7 @@
140
140
  "raf-stub": "^2.0.1",
141
141
  "react": "^18.2.0",
142
142
  "react-dom": "^18.2.0",
143
- "react-intl": "^6.6.2",
143
+ "react-intl": "^7.0.0",
144
144
  "url-search-params": "^0.10.0"
145
145
  },
146
146
  "techstack": {