@atlaskit/editor-plugin-layout 6.2.13 → 6.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/editor-plugin-layout
2
2
 
3
+ ## 6.2.15
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 6.2.14
10
+
11
+ ### Patch Changes
12
+
13
+ - [`840338033507a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/840338033507a) -
14
+ Migrating custom icons behind feature flag.
15
+
3
16
  ## 6.2.13
4
17
 
5
18
  ### Patch Changes
@@ -8,6 +8,7 @@ exports.LayoutThreeWithLeftSidebarsIcon = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _react = require("@emotion/react");
10
10
  var _icon = _interopRequireDefault(require("@atlaskit/icon"));
11
+ var _layoutThreeColumnsSidebarsLeft = _interopRequireDefault(require("@atlaskit/icon-lab/core/layout-three-columns-sidebars-left"));
11
12
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
13
  /**
13
14
  * @jsxRuntime classic
@@ -52,6 +53,10 @@ var floatingToolbarPadding = (0, _react.css)({
52
53
  paddingLeft: "var(--ds-space-050, 4px)"
53
54
  });
54
55
  var LayoutThreeWithLeftSidebarsIcon = exports.LayoutThreeWithLeftSidebarsIcon = function LayoutThreeWithLeftSidebarsIcon(props) {
56
+ if ((0, _platformFeatureFlags.fg)('platform-custom-icon-migration')) {
57
+ // eslint-disable-next-line react/jsx-props-no-spreading
58
+ return (0, _react.jsx)(_layoutThreeColumnsSidebarsLeft.default, props);
59
+ }
55
60
  return (0, _react.jsx)("span", {
56
61
  css: floatingToolbarPadding
57
62
  }, (0, _react.jsx)(_icon.default, (0, _extends2.default)({
@@ -8,6 +8,7 @@ exports.LayoutThreeWithRightSidebarsIcon = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _react = require("@emotion/react");
10
10
  var _icon = _interopRequireDefault(require("@atlaskit/icon"));
11
+ var _layoutThreeColumnsSidebarsRight = _interopRequireDefault(require("@atlaskit/icon-lab/core/layout-three-columns-sidebars-right"));
11
12
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
13
  /**
13
14
  * @jsxRuntime classic
@@ -52,6 +53,10 @@ var floatingToolbarPadding = (0, _react.css)({
52
53
  paddingLeft: "var(--ds-space-050, 4px)"
53
54
  });
54
55
  var LayoutThreeWithRightSidebarsIcon = exports.LayoutThreeWithRightSidebarsIcon = function LayoutThreeWithRightSidebarsIcon(props) {
56
+ if ((0, _platformFeatureFlags.fg)('platform-custom-icon-migration')) {
57
+ // eslint-disable-next-line react/jsx-props-no-spreading
58
+ return (0, _react.jsx)(_layoutThreeColumnsSidebarsRight.default, props);
59
+ }
55
60
  return (0, _react.jsx)("span", {
56
61
  css: floatingToolbarPadding
57
62
  }, (0, _react.jsx)(_icon.default, (0, _extends2.default)({
@@ -6,6 +6,7 @@ import _extends from "@babel/runtime/helpers/extends";
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
7
7
  import { css, jsx } from '@emotion/react';
8
8
  import Icon from '@atlaskit/icon';
9
+ import LayoutThreeColumnsSidebarsLeftIcon from '@atlaskit/icon-lab/core/layout-three-columns-sidebars-left';
9
10
  import { fg } from '@atlaskit/platform-feature-flags';
10
11
  const LayoutThreeWithLeftSidebarsGlyph = props => {
11
12
  if (fg('platform-visual-refresh-icons')) {
@@ -43,10 +44,16 @@ const floatingToolbarPadding = css({
43
44
  paddingRight: "var(--ds-space-050, 4px)",
44
45
  paddingLeft: "var(--ds-space-050, 4px)"
45
46
  });
46
- export const LayoutThreeWithLeftSidebarsIcon = props => jsx("span", {
47
- css: floatingToolbarPadding
48
- }, jsx(Icon, _extends({
49
- glyph: LayoutThreeWithLeftSidebarsGlyph
50
- // Ignored via go/ees005
51
- // eslint-disable-next-line react/jsx-props-no-spreading
52
- }, props)));
47
+ export const LayoutThreeWithLeftSidebarsIcon = props => {
48
+ if (fg('platform-custom-icon-migration')) {
49
+ // eslint-disable-next-line react/jsx-props-no-spreading
50
+ return jsx(LayoutThreeColumnsSidebarsLeftIcon, props);
51
+ }
52
+ return jsx("span", {
53
+ css: floatingToolbarPadding
54
+ }, jsx(Icon, _extends({
55
+ glyph: LayoutThreeWithLeftSidebarsGlyph
56
+ // Ignored via go/ees005
57
+ // eslint-disable-next-line react/jsx-props-no-spreading
58
+ }, props)));
59
+ };
@@ -6,6 +6,7 @@ import _extends from "@babel/runtime/helpers/extends";
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
7
7
  import { css, jsx } from '@emotion/react';
8
8
  import Icon from '@atlaskit/icon';
9
+ import LayoutThreeColumnsSidebarsRightIcon from '@atlaskit/icon-lab/core/layout-three-columns-sidebars-right';
9
10
  import { fg } from '@atlaskit/platform-feature-flags';
10
11
  const LayoutThreeWithRightSidebarsGlyph = props => {
11
12
  if (fg('platform-visual-refresh-icons')) {
@@ -43,10 +44,16 @@ const floatingToolbarPadding = css({
43
44
  paddingRight: "var(--ds-space-050, 4px)",
44
45
  paddingLeft: "var(--ds-space-050, 4px)"
45
46
  });
46
- export const LayoutThreeWithRightSidebarsIcon = props => jsx("span", {
47
- css: floatingToolbarPadding
48
- }, jsx(Icon, _extends({
49
- glyph: LayoutThreeWithRightSidebarsGlyph
50
- // Ignored via go/ees005
51
- // eslint-disable-next-line react/jsx-props-no-spreading
52
- }, props)));
47
+ export const LayoutThreeWithRightSidebarsIcon = props => {
48
+ if (fg('platform-custom-icon-migration')) {
49
+ // eslint-disable-next-line react/jsx-props-no-spreading
50
+ return jsx(LayoutThreeColumnsSidebarsRightIcon, props);
51
+ }
52
+ return jsx("span", {
53
+ css: floatingToolbarPadding
54
+ }, jsx(Icon, _extends({
55
+ glyph: LayoutThreeWithRightSidebarsGlyph
56
+ // Ignored via go/ees005
57
+ // eslint-disable-next-line react/jsx-props-no-spreading
58
+ }, props)));
59
+ };
@@ -6,6 +6,7 @@ import _extends from "@babel/runtime/helpers/extends";
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
7
7
  import { css, jsx } from '@emotion/react';
8
8
  import Icon from '@atlaskit/icon';
9
+ import LayoutThreeColumnsSidebarsLeftIcon from '@atlaskit/icon-lab/core/layout-three-columns-sidebars-left';
9
10
  import { fg } from '@atlaskit/platform-feature-flags';
10
11
  var LayoutThreeWithLeftSidebarsGlyph = function LayoutThreeWithLeftSidebarsGlyph(props) {
11
12
  if (fg('platform-visual-refresh-icons')) {
@@ -44,6 +45,10 @@ var floatingToolbarPadding = css({
44
45
  paddingLeft: "var(--ds-space-050, 4px)"
45
46
  });
46
47
  export var LayoutThreeWithLeftSidebarsIcon = function LayoutThreeWithLeftSidebarsIcon(props) {
48
+ if (fg('platform-custom-icon-migration')) {
49
+ // eslint-disable-next-line react/jsx-props-no-spreading
50
+ return jsx(LayoutThreeColumnsSidebarsLeftIcon, props);
51
+ }
47
52
  return jsx("span", {
48
53
  css: floatingToolbarPadding
49
54
  }, jsx(Icon, _extends({
@@ -6,6 +6,7 @@ import _extends from "@babel/runtime/helpers/extends";
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
7
7
  import { css, jsx } from '@emotion/react';
8
8
  import Icon from '@atlaskit/icon';
9
+ import LayoutThreeColumnsSidebarsRightIcon from '@atlaskit/icon-lab/core/layout-three-columns-sidebars-right';
9
10
  import { fg } from '@atlaskit/platform-feature-flags';
10
11
  var LayoutThreeWithRightSidebarsGlyph = function LayoutThreeWithRightSidebarsGlyph(props) {
11
12
  if (fg('platform-visual-refresh-icons')) {
@@ -44,6 +45,10 @@ var floatingToolbarPadding = css({
44
45
  paddingLeft: "var(--ds-space-050, 4px)"
45
46
  });
46
47
  export var LayoutThreeWithRightSidebarsIcon = function LayoutThreeWithRightSidebarsIcon(props) {
48
+ if (fg('platform-custom-icon-migration')) {
49
+ // eslint-disable-next-line react/jsx-props-no-spreading
50
+ return jsx(LayoutThreeColumnsSidebarsRightIcon, props);
51
+ }
47
52
  return jsx("span", {
48
53
  css: floatingToolbarPadding
49
54
  }, jsx(Icon, _extends({
@@ -4,4 +4,4 @@
4
4
  */
5
5
  import { jsx } from '@emotion/react';
6
6
  import { type IconProps } from '@atlaskit/icon';
7
- export declare const LayoutThreeWithLeftSidebarsIcon: (props: Omit<IconProps, "glyph">) => jsx.JSX.Element;
7
+ export declare const LayoutThreeWithLeftSidebarsIcon: (props: Omit<IconProps, "glyph" | "size">) => jsx.JSX.Element;
@@ -4,4 +4,4 @@
4
4
  */
5
5
  import { jsx } from '@emotion/react';
6
6
  import { type IconProps } from '@atlaskit/icon';
7
- export declare const LayoutThreeWithRightSidebarsIcon: (props: Omit<IconProps, "glyph">) => jsx.JSX.Element;
7
+ export declare const LayoutThreeWithRightSidebarsIcon: (props: Omit<IconProps, "glyph" | "size">) => jsx.JSX.Element;
@@ -4,4 +4,4 @@
4
4
  */
5
5
  import { jsx } from '@emotion/react';
6
6
  import { type IconProps } from '@atlaskit/icon';
7
- export declare const LayoutThreeWithLeftSidebarsIcon: (props: Omit<IconProps, "glyph">) => jsx.JSX.Element;
7
+ export declare const LayoutThreeWithLeftSidebarsIcon: (props: Omit<IconProps, "glyph" | "size">) => jsx.JSX.Element;
@@ -4,4 +4,4 @@
4
4
  */
5
5
  import { jsx } from '@emotion/react';
6
6
  import { type IconProps } from '@atlaskit/icon';
7
- export declare const LayoutThreeWithRightSidebarsIcon: (props: Omit<IconProps, "glyph">) => jsx.JSX.Element;
7
+ export declare const LayoutThreeWithRightSidebarsIcon: (props: Omit<IconProps, "glyph" | "size">) => jsx.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-layout",
3
- "version": "6.2.13",
3
+ "version": "6.2.15",
4
4
  "description": "Layout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -45,13 +45,13 @@
45
45
  "@atlaskit/icon": "^29.0.0",
46
46
  "@atlaskit/icon-lab": "^5.12.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
- "@atlaskit/tmp-editor-statsig": "^14.5.0",
48
+ "@atlaskit/tmp-editor-statsig": "^15.0.0",
49
49
  "@atlaskit/tokens": "^8.4.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1"
52
52
  },
53
53
  "peerDependencies": {
54
- "@atlaskit/editor-common": "^110.38.0",
54
+ "@atlaskit/editor-common": "^110.40.0",
55
55
  "react": "^18.2.0",
56
56
  "react-intl-next": "npm:react-intl@^5.18.1"
57
57
  },
@@ -108,6 +108,9 @@
108
108
  },
109
109
  "platform_editor_adf_with_localid": {
110
110
  "type": "boolean"
111
+ },
112
+ "platform-custom-icon-migration": {
113
+ "type": "boolean"
111
114
  }
112
115
  }
113
116
  }