@atlaskit/editor-common 93.5.0 → 93.5.1

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,14 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 93.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#152594](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152594)
8
+ [`4f17733c95c94`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4f17733c95c94) -
9
+ [ux] ED-25093: Migrated media toolbar to use the new icons
10
+ - Updated dependencies
11
+
3
12
  ## 93.5.0
4
13
 
5
14
  ### Minor Changes
@@ -8,9 +8,15 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.wrappingIcons = exports.layoutToMessages = exports.default = exports.alignmentIcons = void 0;
9
9
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
+ var _react = _interopRequireDefault(require("react"));
11
12
  var _state = require("@atlaskit/editor-prosemirror/state");
12
13
  var _utils = require("@atlaskit/editor-prosemirror/utils");
13
14
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
15
+ var _contentAlignCenter = _interopRequireDefault(require("@atlaskit/icon/core/content-align-center"));
16
+ var _contentAlignLeft = _interopRequireDefault(require("@atlaskit/icon/core/content-align-left"));
17
+ var _contentAlignRight = _interopRequireDefault(require("@atlaskit/icon/core/content-align-right"));
18
+ var _contentWrapLeft = _interopRequireDefault(require("@atlaskit/icon/core/content-wrap-left"));
19
+ var _contentWrapRight = _interopRequireDefault(require("@atlaskit/icon/core/content-wrap-right"));
14
20
  var _alignImageCenter = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/align-image-center"));
15
21
  var _alignImageLeft = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/align-image-left"));
16
22
  var _alignImageRight = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/align-image-right"));
@@ -33,24 +39,59 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
33
39
  var alignmentIcons = exports.alignmentIcons = [{
34
40
  id: 'editor.media.alignLeft',
35
41
  value: 'align-start',
36
- icon: _alignImageLeft.default
42
+ icon: function icon() {
43
+ return /*#__PURE__*/_react.default.createElement(_contentAlignLeft.default, {
44
+ color: "currentColor",
45
+ spacing: "spacious",
46
+ label: "media-toolbar-align-left-icon",
47
+ LEGACY_fallbackIcon: _alignImageLeft.default
48
+ });
49
+ }
37
50
  }, {
38
51
  id: 'editor.media.alignCenter',
39
52
  value: 'center',
40
- icon: _alignImageCenter.default
53
+ icon: function icon() {
54
+ return /*#__PURE__*/_react.default.createElement(_contentAlignCenter.default, {
55
+ color: "currentColor",
56
+ spacing: "spacious",
57
+ label: "media-toolbar-align-center-icon",
58
+ LEGACY_fallbackIcon: _alignImageCenter.default
59
+ });
60
+ }
41
61
  }, {
42
62
  id: 'editor.media.alignRight',
43
63
  value: 'align-end',
44
- icon: _alignImageRight.default
64
+ icon: function icon() {
65
+ return /*#__PURE__*/_react.default.createElement(_contentAlignRight.default, {
66
+ color: "currentColor",
67
+ spacing: "spacious",
68
+ label: "media-toolbar-align-right-icon",
69
+ LEGACY_fallbackIcon: _alignImageRight.default
70
+ });
71
+ }
45
72
  }];
46
73
  var wrappingIcons = exports.wrappingIcons = [{
47
74
  id: 'editor.media.wrapLeft',
48
75
  value: 'wrap-left',
49
- icon: _mediaWrapLeft.default
76
+ icon: function icon() {
77
+ return /*#__PURE__*/_react.default.createElement(_contentWrapLeft.default, {
78
+ color: "currentColor",
79
+ spacing: "spacious",
80
+ label: "media-toolbar-wrap-left-icon",
81
+ LEGACY_fallbackIcon: _mediaWrapLeft.default
82
+ });
83
+ }
50
84
  }, {
51
85
  id: 'editor.media.wrapRight',
52
86
  value: 'wrap-right',
53
- icon: _mediaWrapRight.default
87
+ icon: function icon() {
88
+ return /*#__PURE__*/_react.default.createElement(_contentWrapRight.default, {
89
+ color: "currentColor",
90
+ spacing: "spacious",
91
+ label: "media-toolbar-wrap-right-icon",
92
+ LEGACY_fallbackIcon: _mediaWrapRight.default
93
+ });
94
+ }
54
95
  }];
55
96
  var breakoutIcons = [{
56
97
  value: 'wide',
@@ -89,7 +130,7 @@ var makeAlign = function makeAlign(layout, nodeType, widthPluginDependencyApi, a
89
130
  return false;
90
131
  }
91
132
  var nodeWidth = getNodeWidth(node, state.schema);
92
- var newAttrs = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.media.extended-resize-experience') ? // with extended experience, change alignment does not change media single width
133
+ var newAttrs = (0, _platformFeatureFlags.fg)('platform.editor.media.extended-resize-experience') ? // with extended experience, change alignment does not change media single width
93
134
  _objectSpread(_objectSpread({}, node.attrs), {}, {
94
135
  layout: layout
95
136
  }) : (0, _utils2.alignAttributes)(layout, node.attrs, undefined, nodeWidth, widthPluginState.lineLength);
@@ -122,7 +163,7 @@ var makeAlign = function makeAlign(layout, nodeType, widthPluginDependencyApi, a
122
163
  };
123
164
  };
124
165
  var getToolbarLayout = function getToolbarLayout(layout) {
125
- if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.media.extended-resize-experience') && _utils2.nonWrappedLayouts.includes(layout)) {
166
+ if (_utils2.nonWrappedLayouts.includes(layout) && (0, _platformFeatureFlags.fg)('platform.editor.media.extended-resize-experience')) {
126
167
  return 'center';
127
168
  }
128
169
  return layout;
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "93.5.0";
20
+ var packageVersion = "93.5.1";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // TODO: Sanitise the URL instead of just removing it
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsx jsx
25
25
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "93.5.0";
27
+ var packageVersion = "93.5.1";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,6 +1,12 @@
1
+ import React from 'react';
1
2
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
2
3
  import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
3
4
  import { DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
5
+ import ContentAlignCenterIcon from '@atlaskit/icon/core/content-align-center';
6
+ import ContentAlignLeftIcon from '@atlaskit/icon/core/content-align-left';
7
+ import ContentAlignRightIcon from '@atlaskit/icon/core/content-align-right';
8
+ import ContentWrapLeftIcon from '@atlaskit/icon/core/content-wrap-left';
9
+ import ContentWrapRightIcon from '@atlaskit/icon/core/content-wrap-right';
4
10
  import EditorAlignImageCenter from '@atlaskit/icon/glyph/editor/align-image-center';
5
11
  import EditorAlignImageLeft from '@atlaskit/icon/glyph/editor/align-image-left';
6
12
  import EditorAlignImageRight from '@atlaskit/icon/glyph/editor/align-image-right';
@@ -8,7 +14,7 @@ import FullWidthIcon from '@atlaskit/icon/glyph/editor/media-full-width';
8
14
  import WideIcon from '@atlaskit/icon/glyph/editor/media-wide';
9
15
  import WrapLeftIcon from '@atlaskit/icon/glyph/editor/media-wrap-left';
10
16
  import WrapRightIcon from '@atlaskit/icon/glyph/editor/media-wrap-right';
11
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
17
+ import { fg } from '@atlaskit/platform-feature-flags';
12
18
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../analytics';
13
19
  import { insideTable } from '../../core-utils';
14
20
  import commonMessages, { mediaAndEmbedToolbarMessages as toolbarMessages } from '../../messages';
@@ -20,24 +26,49 @@ import { alignAttributes, isInLayoutColumn, nonWrappedLayouts } from '../../util
20
26
  export const alignmentIcons = [{
21
27
  id: 'editor.media.alignLeft',
22
28
  value: 'align-start',
23
- icon: EditorAlignImageLeft
29
+ icon: () => /*#__PURE__*/React.createElement(ContentAlignLeftIcon, {
30
+ color: "currentColor",
31
+ spacing: "spacious",
32
+ label: "media-toolbar-align-left-icon",
33
+ LEGACY_fallbackIcon: EditorAlignImageLeft
34
+ })
24
35
  }, {
25
36
  id: 'editor.media.alignCenter',
26
37
  value: 'center',
27
- icon: EditorAlignImageCenter
38
+ icon: () => /*#__PURE__*/React.createElement(ContentAlignCenterIcon, {
39
+ color: "currentColor",
40
+ spacing: "spacious",
41
+ label: "media-toolbar-align-center-icon",
42
+ LEGACY_fallbackIcon: EditorAlignImageCenter
43
+ })
28
44
  }, {
29
45
  id: 'editor.media.alignRight',
30
46
  value: 'align-end',
31
- icon: EditorAlignImageRight
47
+ icon: () => /*#__PURE__*/React.createElement(ContentAlignRightIcon, {
48
+ color: "currentColor",
49
+ spacing: "spacious",
50
+ label: "media-toolbar-align-right-icon",
51
+ LEGACY_fallbackIcon: EditorAlignImageRight
52
+ })
32
53
  }];
33
54
  export const wrappingIcons = [{
34
55
  id: 'editor.media.wrapLeft',
35
56
  value: 'wrap-left',
36
- icon: WrapLeftIcon
57
+ icon: () => /*#__PURE__*/React.createElement(ContentWrapLeftIcon, {
58
+ color: "currentColor",
59
+ spacing: "spacious",
60
+ label: "media-toolbar-wrap-left-icon",
61
+ LEGACY_fallbackIcon: WrapLeftIcon
62
+ })
37
63
  }, {
38
64
  id: 'editor.media.wrapRight',
39
65
  value: 'wrap-right',
40
- icon: WrapRightIcon
66
+ icon: () => /*#__PURE__*/React.createElement(ContentWrapRightIcon, {
67
+ color: "currentColor",
68
+ spacing: "spacious",
69
+ label: "media-toolbar-wrap-right-icon",
70
+ LEGACY_fallbackIcon: WrapRightIcon
71
+ })
41
72
  }];
42
73
  const breakoutIcons = [{
43
74
  value: 'wide',
@@ -83,7 +114,7 @@ const makeAlign = (layout, nodeType, widthPluginDependencyApi, analyticsApi) =>
83
114
  return false;
84
115
  }
85
116
  const nodeWidth = getNodeWidth(node, state.schema);
86
- const newAttrs = getBooleanFF('platform.editor.media.extended-resize-experience') ?
117
+ const newAttrs = fg('platform.editor.media.extended-resize-experience') ?
87
118
  // with extended experience, change alignment does not change media single width
88
119
  {
89
120
  ...node.attrs,
@@ -128,7 +159,7 @@ const makeAlign = (layout, nodeType, widthPluginDependencyApi, analyticsApi) =>
128
159
  };
129
160
  };
130
161
  const getToolbarLayout = layout => {
131
- if (getBooleanFF('platform.editor.media.extended-resize-experience') && nonWrappedLayouts.includes(layout)) {
162
+ if (nonWrappedLayouts.includes(layout) && fg('platform.editor.media.extended-resize-experience')) {
132
163
  return 'center';
133
164
  }
134
165
  return layout;
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "93.5.0";
4
+ const packageVersion = "93.5.1";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // TODO: Sanitise the URL instead of just removing it
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
13
13
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import Layer from '../Layer';
15
15
  const packageName = "@atlaskit/editor-common";
16
- const packageVersion = "93.5.0";
16
+ const packageVersion = "93.5.1";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  class DropList extends Component {
@@ -2,9 +2,15 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ import React from 'react';
5
6
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
6
7
  import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
7
8
  import { DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
9
+ import ContentAlignCenterIcon from '@atlaskit/icon/core/content-align-center';
10
+ import ContentAlignLeftIcon from '@atlaskit/icon/core/content-align-left';
11
+ import ContentAlignRightIcon from '@atlaskit/icon/core/content-align-right';
12
+ import ContentWrapLeftIcon from '@atlaskit/icon/core/content-wrap-left';
13
+ import ContentWrapRightIcon from '@atlaskit/icon/core/content-wrap-right';
8
14
  import EditorAlignImageCenter from '@atlaskit/icon/glyph/editor/align-image-center';
9
15
  import EditorAlignImageLeft from '@atlaskit/icon/glyph/editor/align-image-left';
10
16
  import EditorAlignImageRight from '@atlaskit/icon/glyph/editor/align-image-right';
@@ -12,7 +18,7 @@ import FullWidthIcon from '@atlaskit/icon/glyph/editor/media-full-width';
12
18
  import WideIcon from '@atlaskit/icon/glyph/editor/media-wide';
13
19
  import WrapLeftIcon from '@atlaskit/icon/glyph/editor/media-wrap-left';
14
20
  import WrapRightIcon from '@atlaskit/icon/glyph/editor/media-wrap-right';
15
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
21
+ import { fg } from '@atlaskit/platform-feature-flags';
16
22
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../analytics';
17
23
  import { insideTable } from '../../core-utils';
18
24
  import commonMessages, { mediaAndEmbedToolbarMessages as toolbarMessages } from '../../messages';
@@ -24,24 +30,59 @@ import { alignAttributes, isInLayoutColumn, nonWrappedLayouts } from '../../util
24
30
  export var alignmentIcons = [{
25
31
  id: 'editor.media.alignLeft',
26
32
  value: 'align-start',
27
- icon: EditorAlignImageLeft
33
+ icon: function icon() {
34
+ return /*#__PURE__*/React.createElement(ContentAlignLeftIcon, {
35
+ color: "currentColor",
36
+ spacing: "spacious",
37
+ label: "media-toolbar-align-left-icon",
38
+ LEGACY_fallbackIcon: EditorAlignImageLeft
39
+ });
40
+ }
28
41
  }, {
29
42
  id: 'editor.media.alignCenter',
30
43
  value: 'center',
31
- icon: EditorAlignImageCenter
44
+ icon: function icon() {
45
+ return /*#__PURE__*/React.createElement(ContentAlignCenterIcon, {
46
+ color: "currentColor",
47
+ spacing: "spacious",
48
+ label: "media-toolbar-align-center-icon",
49
+ LEGACY_fallbackIcon: EditorAlignImageCenter
50
+ });
51
+ }
32
52
  }, {
33
53
  id: 'editor.media.alignRight',
34
54
  value: 'align-end',
35
- icon: EditorAlignImageRight
55
+ icon: function icon() {
56
+ return /*#__PURE__*/React.createElement(ContentAlignRightIcon, {
57
+ color: "currentColor",
58
+ spacing: "spacious",
59
+ label: "media-toolbar-align-right-icon",
60
+ LEGACY_fallbackIcon: EditorAlignImageRight
61
+ });
62
+ }
36
63
  }];
37
64
  export var wrappingIcons = [{
38
65
  id: 'editor.media.wrapLeft',
39
66
  value: 'wrap-left',
40
- icon: WrapLeftIcon
67
+ icon: function icon() {
68
+ return /*#__PURE__*/React.createElement(ContentWrapLeftIcon, {
69
+ color: "currentColor",
70
+ spacing: "spacious",
71
+ label: "media-toolbar-wrap-left-icon",
72
+ LEGACY_fallbackIcon: WrapLeftIcon
73
+ });
74
+ }
41
75
  }, {
42
76
  id: 'editor.media.wrapRight',
43
77
  value: 'wrap-right',
44
- icon: WrapRightIcon
78
+ icon: function icon() {
79
+ return /*#__PURE__*/React.createElement(ContentWrapRightIcon, {
80
+ color: "currentColor",
81
+ spacing: "spacious",
82
+ label: "media-toolbar-wrap-right-icon",
83
+ LEGACY_fallbackIcon: WrapRightIcon
84
+ });
85
+ }
45
86
  }];
46
87
  var breakoutIcons = [{
47
88
  value: 'wide',
@@ -80,7 +121,7 @@ var makeAlign = function makeAlign(layout, nodeType, widthPluginDependencyApi, a
80
121
  return false;
81
122
  }
82
123
  var nodeWidth = getNodeWidth(node, state.schema);
83
- var newAttrs = getBooleanFF('platform.editor.media.extended-resize-experience') ? // with extended experience, change alignment does not change media single width
124
+ var newAttrs = fg('platform.editor.media.extended-resize-experience') ? // with extended experience, change alignment does not change media single width
84
125
  _objectSpread(_objectSpread({}, node.attrs), {}, {
85
126
  layout: layout
86
127
  }) : alignAttributes(layout, node.attrs, undefined, nodeWidth, widthPluginState.lineLength);
@@ -113,7 +154,7 @@ var makeAlign = function makeAlign(layout, nodeType, widthPluginDependencyApi, a
113
154
  };
114
155
  };
115
156
  var getToolbarLayout = function getToolbarLayout(layout) {
116
- if (getBooleanFF('platform.editor.media.extended-resize-experience') && nonWrappedLayouts.includes(layout)) {
157
+ if (nonWrappedLayouts.includes(layout) && fg('platform.editor.media.extended-resize-experience')) {
117
158
  return 'center';
118
159
  }
119
160
  return layout;
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "93.5.0";
10
+ var packageVersion = "93.5.1";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // TODO: Sanitise the URL instead of just removing it
@@ -21,7 +21,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
21
21
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "93.5.0";
24
+ var packageVersion = "93.5.1";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  import type { IntlShape } from 'react-intl-next';
3
2
  import type { NodeType } from '@atlaskit/editor-prosemirror/model';
4
3
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
5
4
  import type { EditorAnalyticsAPI } from '../../analytics';
6
- import type { Command, EditorContainerWidth, FloatingToolbarItem, NextEditorPlugin, PluginDependenciesAPI } from '../../types';
5
+ import type { Command, EditorContainerWidth, FloatingToolbarItem, Icon, NextEditorPlugin, PluginDependenciesAPI } from '../../types';
7
6
  type WidthPluginType = NextEditorPlugin<'width', {
8
7
  sharedState: EditorContainerWidth | undefined;
9
8
  }>;
@@ -11,7 +10,7 @@ type WidthPluginDependencyApi = PluginDependenciesAPI<WidthPluginType> | undefin
11
10
  export type LayoutIcon = {
12
11
  id?: string;
13
12
  value: string;
14
- icon: React.ComponentClass<any>;
13
+ icon: Icon;
15
14
  };
16
15
  export type IconMap = Array<LayoutIcon | {
17
16
  value: 'separator';
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  import type { IntlShape } from 'react-intl-next';
3
2
  import type { NodeType } from '@atlaskit/editor-prosemirror/model';
4
3
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
5
4
  import type { EditorAnalyticsAPI } from '../../analytics';
6
- import type { Command, EditorContainerWidth, FloatingToolbarItem, NextEditorPlugin, PluginDependenciesAPI } from '../../types';
5
+ import type { Command, EditorContainerWidth, FloatingToolbarItem, Icon, NextEditorPlugin, PluginDependenciesAPI } from '../../types';
7
6
  type WidthPluginType = NextEditorPlugin<'width', {
8
7
  sharedState: EditorContainerWidth | undefined;
9
8
  }>;
@@ -11,7 +10,7 @@ type WidthPluginDependencyApi = PluginDependenciesAPI<WidthPluginType> | undefin
11
10
  export type LayoutIcon = {
12
11
  id?: string;
13
12
  value: string;
14
- icon: React.ComponentClass<any>;
13
+ icon: Icon;
15
14
  };
16
15
  export type IconMap = Array<LayoutIcon | {
17
16
  value: 'separator';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "93.5.0",
3
+ "version": "93.5.1",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -121,7 +121,7 @@
121
121
  "@atlaskit/codemod-utils": "^4.2.0",
122
122
  "@atlaskit/custom-steps": "^0.8.0",
123
123
  "@atlaskit/dropdown-menu": "^12.20.0",
124
- "@atlaskit/editor-json-transformer": "^8.19.0",
124
+ "@atlaskit/editor-json-transformer": "^8.20.0",
125
125
  "@atlaskit/editor-palette": "1.6.1",
126
126
  "@atlaskit/editor-prosemirror": "6.0.0",
127
127
  "@atlaskit/editor-shared-styles": "^3.0.0",