@atlaskit/editor-plugin-panel 18.2.4 → 18.2.6

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,17 @@
1
1
  # @atlaskit/editor-plugin-panel
2
2
 
3
+ ## 18.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 18.2.5
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 18.2.4
4
16
 
5
17
  ### Patch Changes
@@ -9,11 +9,11 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
  var _v = _interopRequireDefault(require("uuid/v4"));
12
- var _adfSchema = require("@atlaskit/adf-schema");
12
+ var _panel = require("@atlaskit/adf-schema/panel");
13
13
  var _emoji = require("@atlaskit/editor-common/emoji");
14
14
  var _hooks = require("@atlaskit/editor-common/hooks");
15
15
  var _icons = require("@atlaskit/editor-common/icons");
16
- var _panel = require("@atlaskit/editor-common/panel");
16
+ var _panel2 = require("@atlaskit/editor-common/panel");
17
17
  var _model = require("@atlaskit/editor-prosemirror/model");
18
18
  var _consts = require("@atlaskit/editor-shared-styles/consts");
19
19
  var _lightbulb = _interopRequireDefault(require("@atlaskit/icon/core/lightbulb"));
@@ -52,7 +52,7 @@ var PanelIcon = exports.PanelIcon = function PanelIcon(props) {
52
52
  var _useSharedPluginState = (0, _hooks.useSharedPluginStateWithSelector)(pluginInjectionApi, ['emoji'], selector),
53
53
  emojiState = _useSharedPluginState.emojiState;
54
54
  var emojiProvider = emojiState === null || emojiState === void 0 ? void 0 : emojiState.emojiProvider;
55
- if (allowCustomPanel && panelIcon && panelType === _adfSchema.PanelType.CUSTOM) {
55
+ if (allowCustomPanel && panelIcon && panelType === _panel.PanelType.CUSTOM) {
56
56
  return /*#__PURE__*/_react.default.createElement(_emoji.Emoji, {
57
57
  emojiProvider: emojiProvider,
58
58
  providers: providerFactory,
@@ -92,7 +92,7 @@ var PanelNodeView = /*#__PURE__*/function () {
92
92
  this.contentDOM = contentDOM;
93
93
  // Ignored via go/ees005
94
94
  // eslint-disable-next-line @atlaskit/editor/no-as-casting
95
- this.icon = this.dom.querySelector(".".concat(_panel.PanelSharedCssClassName.icon));
95
+ this.icon = this.dom.querySelector(".".concat(_panel2.PanelSharedCssClassName.icon));
96
96
  if (!this.icon) {
97
97
  return;
98
98
  }
@@ -101,7 +101,7 @@ var PanelNodeView = /*#__PURE__*/function () {
101
101
  var panelAttrs = node.attrs;
102
102
 
103
103
  // Determine if this is a standard panel type (info, note, success, warning, error)
104
- var isStandardPanel = panelAttrs.panelType && [_adfSchema.PanelType.INFO, _adfSchema.PanelType.NOTE, _adfSchema.PanelType.SUCCESS, _adfSchema.PanelType.WARNING, _adfSchema.PanelType.ERROR].includes(panelAttrs.panelType);
104
+ var isStandardPanel = panelAttrs.panelType && [_panel.PanelType.INFO, _panel.PanelType.NOTE, _panel.PanelType.SUCCESS, _panel.PanelType.WARNING, _panel.PanelType.ERROR].includes(panelAttrs.panelType);
105
105
 
106
106
  // For standard panels (info, note, success, warning, error), render icon directly as native DOM
107
107
  // This avoids Portal rendering delays that cause flickering on SSR and page transitions
@@ -135,7 +135,7 @@ var PanelNodeView = /*#__PURE__*/function () {
135
135
  value: function destroy() {
136
136
  var panelAttrs = this.node.attrs;
137
137
  // Determine if this is a standard panel type (info, note, success, warning, error)
138
- var isStandardPanel = panelAttrs.panelType && [_adfSchema.PanelType.INFO, _adfSchema.PanelType.NOTE, _adfSchema.PanelType.SUCCESS, _adfSchema.PanelType.WARNING, _adfSchema.PanelType.ERROR].includes(panelAttrs.panelType);
138
+ var isStandardPanel = panelAttrs.panelType && [_panel.PanelType.INFO, _panel.PanelType.NOTE, _panel.PanelType.SUCCESS, _panel.PanelType.WARNING, _panel.PanelType.ERROR].includes(panelAttrs.panelType);
139
139
  // Only remove Portal if it was used (for custom emoji panels)
140
140
  if (!(isStandardPanel && (0, _expValEquals.expValEquals)('platform_editor_vc90_transition_panel_icon', 'isEnabled', true))) {
141
141
  this.nodeViewPortalProviderAPI.remove(this.key);
@@ -8,7 +8,11 @@ exports.default = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
- var _adfSchema = require("@atlaskit/adf-schema");
11
+ var _extendedPanel = require("@atlaskit/adf-schema/extended-panel");
12
+ var _extendedPanelC = require("@atlaskit/adf-schema/extended-panel-c1");
13
+ var _extendedPanelC1WithLocalId = require("@atlaskit/adf-schema/extended-panel-c1-with-local-id");
14
+ var _extendedPanelWithLocalId = require("@atlaskit/adf-schema/extended-panel-with-local-id");
15
+ var _panel = require("@atlaskit/adf-schema/panel");
12
16
  var _blockMenu = require("@atlaskit/editor-common/block-menu");
13
17
  var _messages = require("@atlaskit/editor-common/messages");
14
18
  var _quickInsert = require("@atlaskit/editor-common/quick-insert");
@@ -65,22 +69,22 @@ var panelPlugin = function panelPlugin(_ref) {
65
69
  if ((0, _fg.fg)('platform_editor_adf_with_localid')) {
66
70
  return [{
67
71
  name: 'panel',
68
- node: _objectSpread(_objectSpread({}, (0, _adfSchema.extendedPanelWithLocalId)(!!allowCustomPanel)), {}, {
72
+ node: _objectSpread(_objectSpread({}, (0, _extendedPanelWithLocalId.extendedPanelWithLocalId)(!!allowCustomPanel)), {}, {
69
73
  definingAsContext: true
70
74
  })
71
75
  }].concat((0, _toConsumableArray2.default)((0, _expValEquals.expValEquals)('platform_editor_nest_table_in_panel', 'isEnabled', true) ? [{
72
76
  name: 'panel_c1',
73
- node: _objectSpread(_objectSpread({}, (0, _adfSchema.extendedPanelC1WithLocalId)(!!allowCustomPanel)), {}, {
77
+ node: _objectSpread(_objectSpread({}, (0, _extendedPanelC1WithLocalId.extendedPanelC1WithLocalId)(!!allowCustomPanel)), {}, {
74
78
  definingAsContext: true
75
79
  })
76
80
  }] : []));
77
81
  }
78
82
  return [{
79
83
  name: 'panel',
80
- node: (0, _adfSchema.extendedPanel)(!!allowCustomPanel)
84
+ node: (0, _extendedPanel.extendedPanel)(!!allowCustomPanel)
81
85
  }].concat((0, _toConsumableArray2.default)((0, _expValEquals.expValEquals)('platform_editor_nest_table_in_panel', 'isEnabled', true) ? [{
82
86
  name: 'panel_c1',
83
- node: (0, _adfSchema.extendedPanelC1)(!!allowCustomPanel)
87
+ node: (0, _extendedPanelC.extendedPanelC1)(!!allowCustomPanel)
84
88
  }] : []));
85
89
  },
86
90
  pmPlugins: function pmPlugins() {
@@ -108,7 +112,7 @@ var panelPlugin = function panelPlugin(_ref) {
108
112
  var tr = (0, _createPanelAction.createPanelAction)({
109
113
  state: state,
110
114
  attributes: {
111
- panelType: _adfSchema.PanelType.INFO
115
+ panelType: _panel.PanelType.INFO
112
116
  },
113
117
  api: api,
114
118
  inputMethod: inputMethod
@@ -139,7 +143,7 @@ var panelPlugin = function panelPlugin(_ref) {
139
143
  return (0, _createPanelAction.createPanelAction)({
140
144
  state: state,
141
145
  attributes: {
142
- panelType: _adfSchema.PanelType.INFO
146
+ panelType: _panel.PanelType.INFO
143
147
  },
144
148
  api: api,
145
149
  typeAheadInsert: typeAheadInsert
@@ -157,7 +161,7 @@ var panelPlugin = function panelPlugin(_ref) {
157
161
  return (0, _createPanelAction.createPanelAction)({
158
162
  state: state,
159
163
  attributes: {
160
- panelType: _adfSchema.PanelType.NOTE
164
+ panelType: _panel.PanelType.NOTE
161
165
  },
162
166
  api: api,
163
167
  typeAheadInsert: typeAheadInsert
@@ -176,7 +180,7 @@ var panelPlugin = function panelPlugin(_ref) {
176
180
  return (0, _createPanelAction.createPanelAction)({
177
181
  state: state,
178
182
  attributes: {
179
- panelType: _adfSchema.PanelType.SUCCESS
183
+ panelType: _panel.PanelType.SUCCESS
180
184
  },
181
185
  api: api,
182
186
  typeAheadInsert: typeAheadInsert
@@ -194,7 +198,7 @@ var panelPlugin = function panelPlugin(_ref) {
194
198
  return (0, _createPanelAction.createPanelAction)({
195
199
  state: state,
196
200
  attributes: {
197
- panelType: _adfSchema.PanelType.WARNING
201
+ panelType: _panel.PanelType.WARNING
198
202
  },
199
203
  api: api,
200
204
  typeAheadInsert: typeAheadInsert
@@ -212,7 +216,7 @@ var panelPlugin = function panelPlugin(_ref) {
212
216
  return (0, _createPanelAction.createPanelAction)({
213
217
  state: state,
214
218
  attributes: {
215
- panelType: _adfSchema.PanelType.ERROR
219
+ panelType: _panel.PanelType.ERROR
216
220
  },
217
221
  api: api,
218
222
  typeAheadInsert: typeAheadInsert
@@ -232,7 +236,7 @@ var panelPlugin = function panelPlugin(_ref) {
232
236
  return (0, _createPanelAction.createPanelAction)({
233
237
  state: state,
234
238
  attributes: {
235
- panelType: _adfSchema.PanelType.CUSTOM,
239
+ panelType: _panel.PanelType.CUSTOM,
236
240
  panelIcon: ':rainbow:',
237
241
  panelIconId: '1f308',
238
242
  panelIconText: '🌈',
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.panelTypes = exports.panelContentCheck = exports.panelAttrsToDom = exports.isPanel = exports.handleCut = exports.findPanel = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _adfSchema = require("@atlaskit/adf-schema");
10
- var _panel = require("@atlaskit/editor-common/panel");
9
+ var _panel = require("@atlaskit/adf-schema/panel");
10
+ var _panel2 = require("@atlaskit/editor-common/panel");
11
11
  var _editorPalette = require("@atlaskit/editor-palette");
12
12
  var _state = require("@atlaskit/editor-prosemirror/state");
13
13
  var _utils = require("@atlaskit/editor-prosemirror/utils");
@@ -33,7 +33,7 @@ var panelAttrsToDom = exports.panelAttrsToDom = function panelAttrsToDom(attrs,
33
33
  panelIcon = attrs.panelIcon,
34
34
  panelIconId = attrs.panelIconId,
35
35
  panelIconText = attrs.panelIconText;
36
- var isCustomPanel = panelType === _adfSchema.PanelType.CUSTOM && allowCustomPanel;
36
+ var isCustomPanel = panelType === _panel.PanelType.CUSTOM && allowCustomPanel;
37
37
  var hasIcon = !isCustomPanel || !!panelIcon || !!panelIconId;
38
38
  var tokenColor = typeof panelColor === 'string' && (0, _editorPalette.hexToEditorBackgroundPaletteColor)(panelColor);
39
39
  var panelBackgroundColor = tokenColor || panelColor;
@@ -43,8 +43,8 @@ var panelAttrsToDom = exports.panelAttrsToDom = function panelAttrsToDom(attrs,
43
43
  // the custom panel background instead of showing opaque white.
44
44
  "".concat(isCustomPanelWithColor && (0, _expValEquals.expValEquals)('platform_editor_nest_table_in_panel', 'isEnabled', true) ? "".concat(_consts.akEditorTableContainerBg, ": ").concat(panelBackgroundColor, ";") : '')].join('');
45
45
  var panelAttrs = {
46
- class: "".concat(_panel.PanelSharedCssClassName.prefix).concat(!hasIcon ? " ".concat(_panel.PanelSharedCssClassName.noIcon) : ''),
47
- 'data-panel-type': panelType || _adfSchema.PanelType.INFO,
46
+ class: "".concat(_panel2.PanelSharedCssClassName.prefix).concat(!hasIcon ? " ".concat(_panel2.PanelSharedCssClassName.noIcon) : ''),
47
+ 'data-panel-type': panelType || _panel.PanelType.INFO,
48
48
  'data-testid': 'panel-node-view',
49
49
  style: style
50
50
  };
@@ -71,11 +71,11 @@ var panelAttrsToDom = exports.panelAttrsToDom = function panelAttrsToDom(attrs,
71
71
  // EDITOR-266 This fixes an issue in LCM where if you have nested panels
72
72
  // The icon colour will be overridden by the parent panel style, this is used to create a more specific css selector
73
73
  {
74
- class: _panel.PanelSharedCssClassName.icon,
75
- 'data-panel-type': panelType || _adfSchema.PanelType.INFO
74
+ class: _panel2.PanelSharedCssClassName.icon,
75
+ 'data-panel-type': panelType || _panel.PanelType.INFO
76
76
  }];
77
77
  var contentDiv = ['div', {
78
- class: _panel.PanelSharedCssClassName.content
78
+ class: _panel2.PanelSharedCssClassName.content
79
79
  }, 0];
80
80
  if (hasIcon) {
81
81
  return ['div', panelAttrs, iconDiv, contentDiv];
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.panelTypeDropdown = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _adfSchema = require("@atlaskit/adf-schema");
9
+ var _panel = require("@atlaskit/adf-schema/panel");
10
10
  var _messages = require("@atlaskit/editor-common/messages");
11
11
  var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/core/cross-circle"));
12
12
  var _customize = _interopRequireDefault(require("@atlaskit/icon/core/customize"));
@@ -15,37 +15,37 @@ var _statusInformation = _interopRequireDefault(require("@atlaskit/icon/core/sta
15
15
  var _statusSuccess = _interopRequireDefault(require("@atlaskit/icon/core/status-success"));
16
16
  var _statusWarning = _interopRequireDefault(require("@atlaskit/icon/core/status-warning"));
17
17
  var _actions = require("../editor-actions/actions");
18
- var panelTitleAndIcon = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _adfSchema.PanelType.INFO, {
18
+ var panelTitleAndIcon = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _panel.PanelType.INFO, {
19
19
  title: _messages.panelMessages.info,
20
20
  icon: (0, _statusInformation.default)({
21
21
  label: 'info-icon',
22
22
  color: "var(--ds-icon-information, #357DE8)"
23
23
  })
24
- }), _adfSchema.PanelType.NOTE, {
24
+ }), _panel.PanelType.NOTE, {
25
25
  title: _messages.panelMessages.note,
26
26
  icon: (0, _statusDiscovery.default)({
27
27
  label: 'note-icon',
28
28
  color: "var(--ds-icon-discovery, #AF59E1)"
29
29
  })
30
- }), _adfSchema.PanelType.SUCCESS, {
30
+ }), _panel.PanelType.SUCCESS, {
31
31
  title: _messages.panelMessages.success,
32
32
  icon: (0, _statusSuccess.default)({
33
33
  label: 'success-icon',
34
34
  color: "var(--ds-icon-success, #6A9A23)"
35
35
  })
36
- }), _adfSchema.PanelType.WARNING, {
36
+ }), _panel.PanelType.WARNING, {
37
37
  title: _messages.panelMessages.warning,
38
38
  icon: (0, _statusWarning.default)({
39
39
  label: 'warning-icon',
40
40
  color: "var(--ds-icon-warning, #E06C00)"
41
41
  })
42
- }), _adfSchema.PanelType.ERROR, {
42
+ }), _panel.PanelType.ERROR, {
43
43
  title: _messages.panelMessages.error,
44
44
  icon: (0, _crossCircle.default)({
45
45
  label: 'error-icon',
46
46
  color: "var(--ds-icon-danger, #C9372C)"
47
47
  })
48
- }), _adfSchema.PanelType.CUSTOM, {
48
+ }), _panel.PanelType.CUSTOM, {
49
49
  title: _messages.panelMessages.custom,
50
50
  icon: (0, _customize.default)({
51
51
  label: 'custom-icon'
@@ -57,37 +57,37 @@ var panelTypeDropdown = exports.panelTypeDropdown = function panelTypeDropdown(_
57
57
  formatMessage = _ref.formatMessage;
58
58
  var dropdownOptions = [{
59
59
  id: 'editor.panel.info',
60
- icon: panelTitleAndIcon[_adfSchema.PanelType.INFO].icon,
61
- onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.INFO),
62
- selected: activePanelType === _adfSchema.PanelType.INFO,
63
- title: formatMessage(panelTitleAndIcon[_adfSchema.PanelType.INFO].title)
60
+ icon: panelTitleAndIcon[_panel.PanelType.INFO].icon,
61
+ onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_panel.PanelType.INFO),
62
+ selected: activePanelType === _panel.PanelType.INFO,
63
+ title: formatMessage(panelTitleAndIcon[_panel.PanelType.INFO].title)
64
64
  }, {
65
65
  id: 'editor.panel.note',
66
- icon: panelTitleAndIcon[_adfSchema.PanelType.NOTE].icon,
67
- onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.NOTE),
68
- selected: activePanelType === _adfSchema.PanelType.NOTE,
69
- title: formatMessage(panelTitleAndIcon[_adfSchema.PanelType.NOTE].title)
66
+ icon: panelTitleAndIcon[_panel.PanelType.NOTE].icon,
67
+ onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_panel.PanelType.NOTE),
68
+ selected: activePanelType === _panel.PanelType.NOTE,
69
+ title: formatMessage(panelTitleAndIcon[_panel.PanelType.NOTE].title)
70
70
  }, {
71
71
  id: 'editor.panel.success',
72
- icon: panelTitleAndIcon[_adfSchema.PanelType.SUCCESS].icon,
73
- onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.SUCCESS),
74
- selected: activePanelType === _adfSchema.PanelType.SUCCESS,
75
- title: formatMessage(panelTitleAndIcon[_adfSchema.PanelType.SUCCESS].title)
72
+ icon: panelTitleAndIcon[_panel.PanelType.SUCCESS].icon,
73
+ onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_panel.PanelType.SUCCESS),
74
+ selected: activePanelType === _panel.PanelType.SUCCESS,
75
+ title: formatMessage(panelTitleAndIcon[_panel.PanelType.SUCCESS].title)
76
76
  }, {
77
77
  id: 'editor.panel.warning',
78
- icon: panelTitleAndIcon[_adfSchema.PanelType.WARNING].icon,
79
- onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.WARNING),
80
- selected: activePanelType === _adfSchema.PanelType.WARNING,
81
- title: formatMessage(panelTitleAndIcon[_adfSchema.PanelType.WARNING].title)
78
+ icon: panelTitleAndIcon[_panel.PanelType.WARNING].icon,
79
+ onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_panel.PanelType.WARNING),
80
+ selected: activePanelType === _panel.PanelType.WARNING,
81
+ title: formatMessage(panelTitleAndIcon[_panel.PanelType.WARNING].title)
82
82
  }, {
83
83
  id: 'editor.panel.error',
84
- icon: panelTitleAndIcon[_adfSchema.PanelType.ERROR].icon,
85
- onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.ERROR),
86
- selected: activePanelType === _adfSchema.PanelType.ERROR,
87
- title: formatMessage(panelTitleAndIcon[_adfSchema.PanelType.ERROR].title)
84
+ icon: panelTitleAndIcon[_panel.PanelType.ERROR].icon,
85
+ onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_panel.PanelType.ERROR),
86
+ selected: activePanelType === _panel.PanelType.ERROR,
87
+ title: formatMessage(panelTitleAndIcon[_panel.PanelType.ERROR].title)
88
88
  }];
89
- var selectedPanelType = activePanelType || _adfSchema.PanelType.INFO;
90
- var selectedTitleAndIcon = panelTitleAndIcon[selectedPanelType] || panelTitleAndIcon[_adfSchema.PanelType.CUSTOM];
89
+ var selectedPanelType = activePanelType || _panel.PanelType.INFO;
90
+ var selectedTitleAndIcon = panelTitleAndIcon[selectedPanelType] || panelTitleAndIcon[_panel.PanelType.CUSTOM];
91
91
  return {
92
92
  id: 'panel-type-dropdown',
93
93
  testId: 'panel-type-dropdown-trigger',
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.renderPanelIcon = renderPanelIcon;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _adfSchema = require("@atlaskit/adf-schema");
9
+ var _panel = require("@atlaskit/adf-schema/panel");
10
10
  // SVG path data extracted from panel icon components
11
- var PANEL_ICON_PATHS = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _adfSchema.PanelType.INFO, 'M12 22C9.34784 22 6.8043 20.9464 4.92893 19.0711C3.05357 17.1957 2 14.6522 2 12C2 9.34784 3.05357 6.8043 4.92893 4.92893C6.8043 3.05357 9.34784 2 12 2C14.6522 2 17.1957 3.05357 19.0711 4.92893C20.9464 6.8043 22 9.34784 22 12C22 14.6522 20.9464 17.1957 19.0711 19.0711C17.1957 20.9464 14.6522 22 12 22V22ZM12 11.375C11.6685 11.375 11.3505 11.5067 11.1161 11.7411C10.8817 11.9755 10.75 12.2935 10.75 12.625V15.75C10.75 16.0815 10.8817 16.3995 11.1161 16.6339C11.3505 16.8683 11.6685 17 12 17C12.3315 17 12.6495 16.8683 12.8839 16.6339C13.1183 16.3995 13.25 16.0815 13.25 15.75V12.625C13.25 12.2935 13.1183 11.9755 12.8839 11.7411C12.6495 11.5067 12.3315 11.375 12 11.375ZM12 9.96875C12.4558 9.96875 12.893 9.78767 13.2153 9.46534C13.5377 9.14301 13.7188 8.70584 13.7188 8.25C13.7188 7.79416 13.5377 7.35699 13.2153 7.03466C12.893 6.71233 12.4558 6.53125 12 6.53125C11.5442 6.53125 11.107 6.71233 10.7847 7.03466C10.4623 7.35699 10.2812 7.79416 10.2812 8.25C10.2812 8.70584 10.4623 9.14301 10.7847 9.46534C11.107 9.78767 11.5442 9.96875 12 9.96875Z'), _adfSchema.PanelType.NOTE, 'M7 2H17C17.663 2 18.2989 2.26339 18.7678 2.73223C19.2366 3.20107 19.5 3.83696 19.5 4.5V19.5C19.5 20.163 19.2366 20.7989 18.7678 21.2678C18.2989 21.7366 17.663 22 17 22H7C6.33696 22 5.70107 21.7366 5.23223 21.2678C4.76339 20.7989 4.5 20.163 4.5 19.5V4.5C4.5 3.83696 4.76339 3.20107 5.23223 2.73223C5.70107 2.26339 6.33696 2 7 2ZM8.875 7C8.70924 7 8.55027 7.06585 8.43306 7.18306C8.31585 7.30027 8.25 7.45924 8.25 7.625V8.875C8.25 9.04076 8.31585 9.19973 8.43306 9.31694C8.55027 9.43415 8.70924 9.5 8.875 9.5H15.125C15.2908 9.5 15.4497 9.43415 15.5669 9.31694C15.6842 9.19973 15.75 9.04076 15.75 8.875V7.625C15.75 7.45924 15.6842 7.30027 15.5669 7.18306C15.4497 7.06585 15.2908 7 15.125 7H8.875ZM8.875 12C8.70924 12 8.55027 12.0658 8.43306 12.1831C8.31585 12.3003 8.25 12.4592 8.25 12.625V13.875C8.25 14.0408 8.31585 14.1997 8.43306 14.3169C8.55027 14.4342 8.70924 14.5 8.875 14.5H12.625C12.7908 14.5 12.9497 14.4342 13.0669 14.3169C13.1842 14.1997 13.25 14.0408 13.25 13.875V12.625C13.25 12.4592 13.1842 12.3003 13.0669 12.1831C12.9497 12.0658 12.7908 12 12.625 12H8.875Z'), _adfSchema.PanelType.SUCCESS, 'M12 22C9.34784 22 6.8043 20.9464 4.92893 19.0711C3.05357 17.1957 2 14.6522 2 12C2 9.34784 3.05357 6.8043 4.92893 4.92893C6.8043 3.05357 9.34784 2 12 2C14.6522 2 17.1957 3.05357 19.0711 4.92893C20.9464 6.8043 22 9.34784 22 12C22 14.6522 20.9464 17.1957 19.0711 19.0711C17.1957 20.9464 14.6522 22 12 22V22ZM13.705 8.295L11.015 13.4325L9.08625 11.695C8.9642 11.5852 8.82172 11.5005 8.66694 11.4457C8.51216 11.391 8.3481 11.3672 8.18415 11.3759C8.0202 11.3845 7.85955 11.4254 7.71139 11.4961C7.56322 11.5669 7.43044 11.6661 7.32063 11.7881C7.21081 11.9102 7.1261 12.0527 7.07135 12.2074C7.0166 12.3622 6.99287 12.5263 7.00152 12.6902C7.01016 12.8542 7.05102 13.0148 7.12175 13.163C7.19248 13.3112 7.2917 13.4439 7.41375 13.5538L10.5388 16.3663C10.6803 16.4938 10.8492 16.5872 11.0325 16.6395C11.2157 16.6917 11.4085 16.7014 11.596 16.6678C11.7836 16.6341 11.9609 16.558 12.1146 16.4453C12.2682 16.3326 12.3941 16.1863 12.4825 16.0175L15.92 9.455C16.0738 9.16127 16.1047 8.81847 16.0057 8.502C15.9068 8.18553 15.6862 7.92133 15.3925 7.7675C15.0988 7.61367 14.756 7.58283 14.4395 7.68176C14.123 7.78068 13.8588 8.00127 13.705 8.295V8.295Z'), _adfSchema.PanelType.WARNING, 'M13.4897 4.34592L21.8561 18.8611C21.9525 19.0288 22.0021 19.2181 21.9999 19.4101C21.9977 19.6021 21.9438 19.7903 21.8435 19.9559C21.7432 20.1215 21.6001 20.2588 21.4282 20.3542C21.2563 20.4497 21.0616 20.4999 20.8636 20.5H3.13707C2.93882 20.5 2.74401 20.4498 2.57196 20.3543C2.39992 20.2588 2.25663 20.1213 2.15631 19.9556C2.05598 19.7898 2.00212 19.6015 2.00006 19.4093C1.998 19.2171 2.04782 19.0278 2.14456 18.86L10.5121 4.34592C10.6602 4.08939 10.8762 3.87577 11.1377 3.72708C11.3993 3.57838 11.6971 3.5 12.0003 3.5C12.3036 3.5 12.6013 3.57838 12.8629 3.72708C13.1245 3.87577 13.3404 4.08939 13.4885 4.34592H13.4897ZM12.0003 7.82538C11.8232 7.82537 11.6482 7.86212 11.4869 7.93317C11.3257 8.00423 11.182 8.10793 11.0656 8.2373C10.9492 8.36668 10.8627 8.51872 10.8119 8.68321C10.7611 8.8477 10.7473 9.02083 10.7713 9.19093L11.3546 13.3416C11.3754 13.4933 11.4523 13.6326 11.5711 13.7334C11.6899 13.8343 11.8424 13.8899 12.0003 13.8899C12.1582 13.8899 12.3107 13.8343 12.4295 13.7334C12.5483 13.6326 12.6253 13.4933 12.6461 13.3416L13.2293 9.19093C13.2533 9.02083 13.2395 8.8477 13.1887 8.68321C13.138 8.51872 13.0515 8.36668 12.935 8.2373C12.8186 8.10793 12.6749 8.00423 12.5137 7.93317C12.3525 7.86212 12.1774 7.82537 12.0003 7.82538V7.82538ZM12.0003 17.3369C12.3395 17.3369 12.6649 17.2062 12.9047 16.9737C13.1446 16.7412 13.2793 16.4258 13.2793 16.0969C13.2793 15.7681 13.1446 15.4527 12.9047 15.2202C12.6649 14.9877 12.3395 14.857 12.0003 14.857C11.6611 14.857 11.3358 14.9877 11.0959 15.2202C10.8561 15.4527 10.7213 15.7681 10.7213 16.0969C10.7213 16.4258 10.8561 16.7412 11.0959 16.9737C11.3358 17.2062 11.6611 17.3369 12.0003 17.3369V17.3369Z'), _adfSchema.PanelType.ERROR, 'M13.8562 11.9112L16.5088 9.26C16.7433 9.02545 16.8751 8.70733 16.8751 8.37563C16.8751 8.04392 16.7433 7.7258 16.5088 7.49125C16.2742 7.2567 15.9561 7.12493 15.6244 7.12493C15.2927 7.12493 14.9746 7.2567 14.74 7.49125L12.09 10.1438L9.4375 7.49125C9.20295 7.25686 8.8849 7.12526 8.55331 7.12537C8.22172 7.12549 7.90376 7.25732 7.66937 7.49188C7.43499 7.72643 7.30338 8.04448 7.3035 8.37607C7.30361 8.70766 7.43545 9.02561 7.67 9.26L10.32 11.91L7.67 14.5625C7.4423 14.7983 7.31631 15.114 7.31916 15.4418C7.32201 15.7695 7.45347 16.083 7.68523 16.3148C7.91699 16.5465 8.2305 16.678 8.55825 16.6808C8.88599 16.6837 9.20175 16.5577 9.4375 16.33L12.0888 13.68L14.74 16.33C14.8561 16.4461 14.9939 16.5383 15.1455 16.6012C15.2972 16.664 15.4597 16.6964 15.6239 16.6965C15.7881 16.6966 15.9507 16.6643 16.1024 16.6015C16.2541 16.5387 16.392 16.4467 16.5081 16.3306C16.6243 16.2146 16.7164 16.0768 16.7793 15.9251C16.8422 15.7734 16.8746 15.6109 16.8746 15.4467C16.8747 15.2825 16.8424 15.1199 16.7796 14.9682C16.7168 14.8165 16.6248 14.6786 16.5088 14.5625L13.8562 11.9112V11.9112ZM12 22C9.34784 22 6.8043 20.9464 4.92893 19.0711C3.05357 17.1957 2 14.6522 2 12C2 9.34784 3.05357 6.8043 4.92893 4.92893C6.8043 3.05357 9.34784 2 12 2C14.6522 2 17.1957 3.05357 19.0711 4.92893C20.9464 6.8043 22 9.34784 22 12C22 14.6522 20.9464 17.1957 19.0711 19.0711C17.1957 20.9464 14.6522 22 12 22V22Z');
11
+ var PANEL_ICON_PATHS = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _panel.PanelType.INFO, 'M12 22C9.34784 22 6.8043 20.9464 4.92893 19.0711C3.05357 17.1957 2 14.6522 2 12C2 9.34784 3.05357 6.8043 4.92893 4.92893C6.8043 3.05357 9.34784 2 12 2C14.6522 2 17.1957 3.05357 19.0711 4.92893C20.9464 6.8043 22 9.34784 22 12C22 14.6522 20.9464 17.1957 19.0711 19.0711C17.1957 20.9464 14.6522 22 12 22V22ZM12 11.375C11.6685 11.375 11.3505 11.5067 11.1161 11.7411C10.8817 11.9755 10.75 12.2935 10.75 12.625V15.75C10.75 16.0815 10.8817 16.3995 11.1161 16.6339C11.3505 16.8683 11.6685 17 12 17C12.3315 17 12.6495 16.8683 12.8839 16.6339C13.1183 16.3995 13.25 16.0815 13.25 15.75V12.625C13.25 12.2935 13.1183 11.9755 12.8839 11.7411C12.6495 11.5067 12.3315 11.375 12 11.375ZM12 9.96875C12.4558 9.96875 12.893 9.78767 13.2153 9.46534C13.5377 9.14301 13.7188 8.70584 13.7188 8.25C13.7188 7.79416 13.5377 7.35699 13.2153 7.03466C12.893 6.71233 12.4558 6.53125 12 6.53125C11.5442 6.53125 11.107 6.71233 10.7847 7.03466C10.4623 7.35699 10.2812 7.79416 10.2812 8.25C10.2812 8.70584 10.4623 9.14301 10.7847 9.46534C11.107 9.78767 11.5442 9.96875 12 9.96875Z'), _panel.PanelType.NOTE, 'M7 2H17C17.663 2 18.2989 2.26339 18.7678 2.73223C19.2366 3.20107 19.5 3.83696 19.5 4.5V19.5C19.5 20.163 19.2366 20.7989 18.7678 21.2678C18.2989 21.7366 17.663 22 17 22H7C6.33696 22 5.70107 21.7366 5.23223 21.2678C4.76339 20.7989 4.5 20.163 4.5 19.5V4.5C4.5 3.83696 4.76339 3.20107 5.23223 2.73223C5.70107 2.26339 6.33696 2 7 2ZM8.875 7C8.70924 7 8.55027 7.06585 8.43306 7.18306C8.31585 7.30027 8.25 7.45924 8.25 7.625V8.875C8.25 9.04076 8.31585 9.19973 8.43306 9.31694C8.55027 9.43415 8.70924 9.5 8.875 9.5H15.125C15.2908 9.5 15.4497 9.43415 15.5669 9.31694C15.6842 9.19973 15.75 9.04076 15.75 8.875V7.625C15.75 7.45924 15.6842 7.30027 15.5669 7.18306C15.4497 7.06585 15.2908 7 15.125 7H8.875ZM8.875 12C8.70924 12 8.55027 12.0658 8.43306 12.1831C8.31585 12.3003 8.25 12.4592 8.25 12.625V13.875C8.25 14.0408 8.31585 14.1997 8.43306 14.3169C8.55027 14.4342 8.70924 14.5 8.875 14.5H12.625C12.7908 14.5 12.9497 14.4342 13.0669 14.3169C13.1842 14.1997 13.25 14.0408 13.25 13.875V12.625C13.25 12.4592 13.1842 12.3003 13.0669 12.1831C12.9497 12.0658 12.7908 12 12.625 12H8.875Z'), _panel.PanelType.SUCCESS, 'M12 22C9.34784 22 6.8043 20.9464 4.92893 19.0711C3.05357 17.1957 2 14.6522 2 12C2 9.34784 3.05357 6.8043 4.92893 4.92893C6.8043 3.05357 9.34784 2 12 2C14.6522 2 17.1957 3.05357 19.0711 4.92893C20.9464 6.8043 22 9.34784 22 12C22 14.6522 20.9464 17.1957 19.0711 19.0711C17.1957 20.9464 14.6522 22 12 22V22ZM13.705 8.295L11.015 13.4325L9.08625 11.695C8.9642 11.5852 8.82172 11.5005 8.66694 11.4457C8.51216 11.391 8.3481 11.3672 8.18415 11.3759C8.0202 11.3845 7.85955 11.4254 7.71139 11.4961C7.56322 11.5669 7.43044 11.6661 7.32063 11.7881C7.21081 11.9102 7.1261 12.0527 7.07135 12.2074C7.0166 12.3622 6.99287 12.5263 7.00152 12.6902C7.01016 12.8542 7.05102 13.0148 7.12175 13.163C7.19248 13.3112 7.2917 13.4439 7.41375 13.5538L10.5388 16.3663C10.6803 16.4938 10.8492 16.5872 11.0325 16.6395C11.2157 16.6917 11.4085 16.7014 11.596 16.6678C11.7836 16.6341 11.9609 16.558 12.1146 16.4453C12.2682 16.3326 12.3941 16.1863 12.4825 16.0175L15.92 9.455C16.0738 9.16127 16.1047 8.81847 16.0057 8.502C15.9068 8.18553 15.6862 7.92133 15.3925 7.7675C15.0988 7.61367 14.756 7.58283 14.4395 7.68176C14.123 7.78068 13.8588 8.00127 13.705 8.295V8.295Z'), _panel.PanelType.WARNING, 'M13.4897 4.34592L21.8561 18.8611C21.9525 19.0288 22.0021 19.2181 21.9999 19.4101C21.9977 19.6021 21.9438 19.7903 21.8435 19.9559C21.7432 20.1215 21.6001 20.2588 21.4282 20.3542C21.2563 20.4497 21.0616 20.4999 20.8636 20.5H3.13707C2.93882 20.5 2.74401 20.4498 2.57196 20.3543C2.39992 20.2588 2.25663 20.1213 2.15631 19.9556C2.05598 19.7898 2.00212 19.6015 2.00006 19.4093C1.998 19.2171 2.04782 19.0278 2.14456 18.86L10.5121 4.34592C10.6602 4.08939 10.8762 3.87577 11.1377 3.72708C11.3993 3.57838 11.6971 3.5 12.0003 3.5C12.3036 3.5 12.6013 3.57838 12.8629 3.72708C13.1245 3.87577 13.3404 4.08939 13.4885 4.34592H13.4897ZM12.0003 7.82538C11.8232 7.82537 11.6482 7.86212 11.4869 7.93317C11.3257 8.00423 11.182 8.10793 11.0656 8.2373C10.9492 8.36668 10.8627 8.51872 10.8119 8.68321C10.7611 8.8477 10.7473 9.02083 10.7713 9.19093L11.3546 13.3416C11.3754 13.4933 11.4523 13.6326 11.5711 13.7334C11.6899 13.8343 11.8424 13.8899 12.0003 13.8899C12.1582 13.8899 12.3107 13.8343 12.4295 13.7334C12.5483 13.6326 12.6253 13.4933 12.6461 13.3416L13.2293 9.19093C13.2533 9.02083 13.2395 8.8477 13.1887 8.68321C13.138 8.51872 13.0515 8.36668 12.935 8.2373C12.8186 8.10793 12.6749 8.00423 12.5137 7.93317C12.3525 7.86212 12.1774 7.82537 12.0003 7.82538V7.82538ZM12.0003 17.3369C12.3395 17.3369 12.6649 17.2062 12.9047 16.9737C13.1446 16.7412 13.2793 16.4258 13.2793 16.0969C13.2793 15.7681 13.1446 15.4527 12.9047 15.2202C12.6649 14.9877 12.3395 14.857 12.0003 14.857C11.6611 14.857 11.3358 14.9877 11.0959 15.2202C10.8561 15.4527 10.7213 15.7681 10.7213 16.0969C10.7213 16.4258 10.8561 16.7412 11.0959 16.9737C11.3358 17.2062 11.6611 17.3369 12.0003 17.3369V17.3369Z'), _panel.PanelType.ERROR, 'M13.8562 11.9112L16.5088 9.26C16.7433 9.02545 16.8751 8.70733 16.8751 8.37563C16.8751 8.04392 16.7433 7.7258 16.5088 7.49125C16.2742 7.2567 15.9561 7.12493 15.6244 7.12493C15.2927 7.12493 14.9746 7.2567 14.74 7.49125L12.09 10.1438L9.4375 7.49125C9.20295 7.25686 8.8849 7.12526 8.55331 7.12537C8.22172 7.12549 7.90376 7.25732 7.66937 7.49188C7.43499 7.72643 7.30338 8.04448 7.3035 8.37607C7.30361 8.70766 7.43545 9.02561 7.67 9.26L10.32 11.91L7.67 14.5625C7.4423 14.7983 7.31631 15.114 7.31916 15.4418C7.32201 15.7695 7.45347 16.083 7.68523 16.3148C7.91699 16.5465 8.2305 16.678 8.55825 16.6808C8.88599 16.6837 9.20175 16.5577 9.4375 16.33L12.0888 13.68L14.74 16.33C14.8561 16.4461 14.9939 16.5383 15.1455 16.6012C15.2972 16.664 15.4597 16.6964 15.6239 16.6965C15.7881 16.6966 15.9507 16.6643 16.1024 16.6015C16.2541 16.5387 16.392 16.4467 16.5081 16.3306C16.6243 16.2146 16.7164 16.0768 16.7793 15.9251C16.8422 15.7734 16.8746 15.6109 16.8746 15.4467C16.8747 15.2825 16.8424 15.1199 16.7796 14.9682C16.7168 14.8165 16.6248 14.6786 16.5088 14.5625L13.8562 11.9112V11.9112ZM12 22C9.34784 22 6.8043 20.9464 4.92893 19.0711C3.05357 17.1957 2 14.6522 2 12C2 9.34784 3.05357 6.8043 4.92893 4.92893C6.8043 3.05357 9.34784 2 12 2C14.6522 2 17.1957 3.05357 19.0711 4.92893C20.9464 6.8043 22 9.34784 22 12C22 14.6522 20.9464 17.1957 19.0711 19.0711C17.1957 20.9464 14.6522 22 12 22V22Z');
12
12
 
13
13
  /**
14
14
  * Creates a native DOM SVG element for a panel icon.
@@ -9,11 +9,11 @@ exports.panelIconMap = exports.getToolbarItems = exports.getToolbarConfig = void
9
9
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
11
  var _react = _interopRequireDefault(require("react"));
12
- var _adfSchema = require("@atlaskit/adf-schema");
12
+ var _panel = require("@atlaskit/adf-schema/panel");
13
13
  var _analytics = require("@atlaskit/editor-common/analytics");
14
14
  var _editorAnalytics = require("@atlaskit/editor-common/editor-analytics");
15
15
  var _messages = _interopRequireWildcard(require("@atlaskit/editor-common/messages"));
16
- var _panel = require("@atlaskit/editor-common/panel");
16
+ var _panel2 = require("@atlaskit/editor-common/panel");
17
17
  var _toolbarFlagCheck = require("@atlaskit/editor-common/toolbar-flag-check");
18
18
  var _uiColor = require("@atlaskit/editor-common/ui-color");
19
19
  var _utils = require("@atlaskit/editor-prosemirror/utils");
@@ -34,22 +34,22 @@ var _panelTypeDropdown = require("./panelTypeDropdown");
34
34
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
35
35
  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; }
36
36
  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) { (0, _defineProperty2.default)(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; }
37
- var panelIconMap = exports.panelIconMap = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _adfSchema.PanelType.INFO, {
37
+ var panelIconMap = exports.panelIconMap = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _panel.PanelType.INFO, {
38
38
  shortName: ':info:',
39
39
  id: 'atlassian-info'
40
- }), _adfSchema.PanelType.NOTE, {
40
+ }), _panel.PanelType.NOTE, {
41
41
  shortName: ':note:',
42
42
  id: 'atlassian-note'
43
- }), _adfSchema.PanelType.WARNING, {
43
+ }), _panel.PanelType.WARNING, {
44
44
  shortName: ':warning:',
45
45
  id: 'atlassian-warning'
46
- }), _adfSchema.PanelType.ERROR, {
46
+ }), _panel.PanelType.ERROR, {
47
47
  shortName: ':cross_mark:',
48
48
  id: 'atlassian-cross_mark'
49
- }), _adfSchema.PanelType.SUCCESS, {
49
+ }), _panel.PanelType.SUCCESS, {
50
50
  shortName: ':check_mark:',
51
51
  id: 'atlassian-check_mark'
52
- }), _adfSchema.PanelType.TIP, {
52
+ }), _panel.PanelType.TIP, {
53
53
  shortName: ':tip:',
54
54
  id: 'atlassian-tip'
55
55
  });
@@ -61,40 +61,40 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
61
61
  id: 'editor.panel.info',
62
62
  type: 'button',
63
63
  icon: _statusInformation.default,
64
- onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.INFO),
65
- selected: activePanelType === _adfSchema.PanelType.INFO,
64
+ onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_panel.PanelType.INFO),
65
+ selected: activePanelType === _panel.PanelType.INFO,
66
66
  title: formatMessage(_messages.panelMessages.info),
67
67
  tabIndex: null
68
68
  }, {
69
69
  id: 'editor.panel.note',
70
70
  type: 'button',
71
71
  icon: _statusDiscovery.default,
72
- onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.NOTE),
73
- selected: activePanelType === _adfSchema.PanelType.NOTE,
72
+ onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_panel.PanelType.NOTE),
73
+ selected: activePanelType === _panel.PanelType.NOTE,
74
74
  title: formatMessage(_messages.panelMessages.note),
75
75
  tabIndex: null
76
76
  }, {
77
77
  id: 'editor.panel.success',
78
78
  type: 'button',
79
79
  icon: _statusSuccess.default,
80
- onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.SUCCESS),
81
- selected: activePanelType === _adfSchema.PanelType.SUCCESS,
80
+ onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_panel.PanelType.SUCCESS),
81
+ selected: activePanelType === _panel.PanelType.SUCCESS,
82
82
  title: formatMessage(_messages.panelMessages.success),
83
83
  tabIndex: null
84
84
  }, {
85
85
  id: 'editor.panel.warning',
86
86
  type: 'button',
87
87
  icon: _statusWarning.default,
88
- onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.WARNING),
89
- selected: activePanelType === _adfSchema.PanelType.WARNING,
88
+ onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_panel.PanelType.WARNING),
89
+ selected: activePanelType === _panel.PanelType.WARNING,
90
90
  title: formatMessage(_messages.panelMessages.warning),
91
91
  tabIndex: null
92
92
  }, {
93
93
  id: 'editor.panel.error',
94
94
  type: 'button',
95
95
  icon: _crossCircle.default,
96
- onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.ERROR),
97
- selected: activePanelType === _adfSchema.PanelType.ERROR,
96
+ onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_panel.PanelType.ERROR),
97
+ selected: activePanelType === _panel.PanelType.ERROR,
98
98
  title: formatMessage(_messages.panelMessages.error),
99
99
  tabIndex: null
100
100
  }] : [(0, _panelTypeDropdown.panelTypeDropdown)({
@@ -111,7 +111,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
111
111
  if (panelNode === undefined) {
112
112
  return false;
113
113
  }
114
- var previousColor = panelNode.node.attrs.panelType === 'custom' ? panelNode.node.attrs.panelColor || 'none' : (0, _panel.getPanelTypeBackgroundNoTokens)(panelNode.node.attrs.panelType);
114
+ var previousColor = panelNode.node.attrs.panelType === 'custom' ? panelNode.node.attrs.panelColor || 'none' : (0, _panel2.getPanelTypeBackgroundNoTokens)(panelNode.node.attrs.panelType);
115
115
  var emojiInfo = panelNode.node.attrs.panelType;
116
116
  var panelEmoji = panelIconMap[emojiInfo];
117
117
  var previousEmoji = panelEmoji ? {
@@ -119,7 +119,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
119
119
  emojiId: panelEmoji.id
120
120
  } : {};
121
121
  if (previousColor === color) {
122
- (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.CUSTOM, _objectSpread({
122
+ (0, _actions.changePanelType)(editorAnalyticsAPI)(_panel.PanelType.CUSTOM, _objectSpread({
123
123
  color: color
124
124
  }, previousEmoji), isCustomPanelEnabled)(state, dispatch);
125
125
  return false;
@@ -134,7 +134,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
134
134
  },
135
135
  eventType: _analytics.EVENT_TYPE.TRACK
136
136
  };
137
- (0, _editorAnalytics.withAnalytics)(editorAnalyticsAPI, payload)((0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.CUSTOM, _objectSpread({
137
+ (0, _editorAnalytics.withAnalytics)(editorAnalyticsAPI, payload)((0, _actions.changePanelType)(editorAnalyticsAPI)(_panel.PanelType.CUSTOM, _objectSpread({
138
138
  color: color
139
139
  }, previousEmoji), isCustomPanelEnabled))(state, dispatch);
140
140
  return false;
@@ -148,7 +148,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
148
148
  }
149
149
  var previousIcon = panelNode.node.attrs.panelIcon || '';
150
150
  if (previousIcon === emoji.shortName) {
151
- (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.CUSTOM, {
151
+ (0, _actions.changePanelType)(editorAnalyticsAPI)(_panel.PanelType.CUSTOM, {
152
152
  emoji: emoji.shortName,
153
153
  emojiId: emoji.id,
154
154
  emojiText: emoji.fallback
@@ -165,7 +165,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
165
165
  },
166
166
  eventType: _analytics.EVENT_TYPE.TRACK
167
167
  };
168
- (0, _editorAnalytics.withAnalytics)(editorAnalyticsAPI, payload)((0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.CUSTOM, {
168
+ (0, _editorAnalytics.withAnalytics)(editorAnalyticsAPI, payload)((0, _actions.changePanelType)(editorAnalyticsAPI)(_panel.PanelType.CUSTOM, {
169
169
  emoji: emoji.shortName,
170
170
  emojiId: emoji.id,
171
171
  emojiText: emoji.fallback
@@ -176,7 +176,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
176
176
  var removeEmoji = function removeEmoji() {
177
177
  return function (state, dispatch) {
178
178
  var panelNode = (0, _utils2.findPanel)(state);
179
- if (activePanelType === _adfSchema.PanelType.CUSTOM && !activePanelIcon) {
179
+ if (activePanelType === _panel.PanelType.CUSTOM && !activePanelIcon) {
180
180
  return false;
181
181
  }
182
182
  if (panelNode === undefined) {
@@ -191,7 +191,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
191
191
  },
192
192
  eventType: _analytics.EVENT_TYPE.TRACK
193
193
  };
194
- (0, _editorAnalytics.withAnalytics)(editorAnalyticsAPI, payload)((0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.CUSTOM, {
194
+ (0, _editorAnalytics.withAnalytics)(editorAnalyticsAPI, payload)((0, _actions.changePanelType)(editorAnalyticsAPI)(_panel.PanelType.CUSTOM, {
195
195
  emoji: undefined,
196
196
  emojiId: undefined,
197
197
  emojiText: undefined
@@ -199,7 +199,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
199
199
  return false;
200
200
  };
201
201
  };
202
- var panelColor = activePanelType === _adfSchema.PanelType.CUSTOM ? activePanelColor || (0, _panel.getPanelTypeBackgroundNoTokens)(_adfSchema.PanelType.INFO) : (0, _panel.getPanelTypeBackgroundNoTokens)(activePanelType);
202
+ var panelColor = activePanelType === _panel.PanelType.CUSTOM ? activePanelColor || (0, _panel2.getPanelTypeBackgroundNoTokens)(_panel.PanelType.INFO) : (0, _panel2.getPanelTypeBackgroundNoTokens)(activePanelType);
203
203
  var isNewPanelPaletteEnabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true) && (0, _fg.fg)('platform_editor_lovability_text_bg_color_patch_2');
204
204
  var colorPalette = isNewPanelPaletteEnabled ? _uiColor.panelBackgroundPaletteNew : _uiColor.panelBackgroundPalette;
205
205
  var defaultPalette = colorPalette.find(function (item) {
@@ -230,7 +230,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
230
230
  type: 'select',
231
231
  selectType: 'emoji',
232
232
  options: [],
233
- selected: activePanelType === _adfSchema.PanelType.CUSTOM && !!activePanelIcon,
233
+ selected: activePanelType === _panel.PanelType.CUSTOM && !!activePanelIcon,
234
234
  onChange: function onChange(emoji) {
235
235
  return changeEmoji(emoji);
236
236
  }
@@ -343,7 +343,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(stat
343
343
  panelColor = _panelObject$node$att.panelColor,
344
344
  panelIcon = _panelObject$node$att.panelIcon;
345
345
  var isStandardPanel = function isStandardPanel(panelType) {
346
- return panelType !== _adfSchema.PanelType.CUSTOM ? panelType : undefined;
346
+ return panelType !== _panel.PanelType.CUSTOM ? panelType : undefined;
347
347
  };
348
348
 
349
349
  // force toolbar to be turned on
@@ -2,7 +2,7 @@ import React from 'react';
2
2
 
3
3
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
4
4
  import uuid from 'uuid/v4';
5
- import { PanelType } from '@atlaskit/adf-schema';
5
+ import { PanelType } from '@atlaskit/adf-schema/panel';
6
6
  import { Emoji } from '@atlaskit/editor-common/emoji';
7
7
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
8
8
  import { PanelErrorIcon, PanelInfoIcon, PanelNoteIcon, PanelSuccessIcon, PanelWarningIcon } from '@atlaskit/editor-common/icons';
@@ -1,5 +1,9 @@
1
1
  import React from 'react';
2
- import { extendedPanel, extendedPanelC1, extendedPanelC1WithLocalId, extendedPanelWithLocalId, PanelType } from '@atlaskit/adf-schema';
2
+ import { extendedPanel } from '@atlaskit/adf-schema/extended-panel';
3
+ import { extendedPanelC1 } from '@atlaskit/adf-schema/extended-panel-c1';
4
+ import { extendedPanelC1WithLocalId } from '@atlaskit/adf-schema/extended-panel-c1-with-local-id';
5
+ import { extendedPanelWithLocalId } from '@atlaskit/adf-schema/extended-panel-with-local-id';
6
+ import { PanelType } from '@atlaskit/adf-schema/panel';
3
7
  import { TRANSFORM_STRUCTURE_PANEL_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu';
4
8
  import { blockTypeMessages } from '@atlaskit/editor-common/messages';
5
9
  import { IconCustomPanel, IconPanel, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning } from '@atlaskit/editor-common/quick-insert';
@@ -1,4 +1,4 @@
1
- import { PanelType } from '@atlaskit/adf-schema';
1
+ import { PanelType } from '@atlaskit/adf-schema/panel';
2
2
  import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
3
3
  import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
4
4
  import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
@@ -1,4 +1,4 @@
1
- import { PanelType } from '@atlaskit/adf-schema';
1
+ import { PanelType } from '@atlaskit/adf-schema/panel';
2
2
  import { panelMessages as messages } from '@atlaskit/editor-common/messages';
3
3
  import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
4
4
  import CustomizeIcon from '@atlaskit/icon/core/customize';
@@ -1,4 +1,4 @@
1
- import { PanelType } from '@atlaskit/adf-schema';
1
+ import { PanelType } from '@atlaskit/adf-schema/panel';
2
2
 
3
3
  // SVG path data extracted from panel icon components
4
4
  const PANEL_ICON_PATHS = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PanelType } from '@atlaskit/adf-schema';
2
+ import { PanelType } from '@atlaskit/adf-schema/panel';
3
3
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { withAnalytics } from '@atlaskit/editor-common/editor-analytics';
5
5
  import commonMessages, { panelMessages as messages } from '@atlaskit/editor-common/messages';
@@ -4,7 +4,7 @@ import React from 'react';
4
4
 
5
5
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
6
6
  import uuid from 'uuid/v4';
7
- import { PanelType } from '@atlaskit/adf-schema';
7
+ import { PanelType } from '@atlaskit/adf-schema/panel';
8
8
  import { Emoji } from '@atlaskit/editor-common/emoji';
9
9
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
10
10
  import { PanelErrorIcon, PanelInfoIcon, PanelNoteIcon, PanelSuccessIcon, PanelWarningIcon } from '@atlaskit/editor-common/icons';
@@ -3,7 +3,11 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
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
5
  import React from 'react';
6
- import { extendedPanel, extendedPanelC1, extendedPanelC1WithLocalId, extendedPanelWithLocalId, PanelType } from '@atlaskit/adf-schema';
6
+ import { extendedPanel } from '@atlaskit/adf-schema/extended-panel';
7
+ import { extendedPanelC1 } from '@atlaskit/adf-schema/extended-panel-c1';
8
+ import { extendedPanelC1WithLocalId } from '@atlaskit/adf-schema/extended-panel-c1-with-local-id';
9
+ import { extendedPanelWithLocalId } from '@atlaskit/adf-schema/extended-panel-with-local-id';
10
+ import { PanelType } from '@atlaskit/adf-schema/panel';
7
11
  import { TRANSFORM_STRUCTURE_PANEL_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu';
8
12
  import { blockTypeMessages } from '@atlaskit/editor-common/messages';
9
13
  import { IconCustomPanel, IconPanel, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning } from '@atlaskit/editor-common/quick-insert';
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  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; }
3
3
  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; }
4
- import { PanelType } from '@atlaskit/adf-schema';
4
+ import { PanelType } from '@atlaskit/adf-schema/panel';
5
5
  import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
6
6
  import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
7
7
  import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
@@ -1,5 +1,5 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import { PanelType } from '@atlaskit/adf-schema';
2
+ import { PanelType } from '@atlaskit/adf-schema/panel';
3
3
  import { panelMessages as messages } from '@atlaskit/editor-common/messages';
4
4
  import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
5
5
  import CustomizeIcon from '@atlaskit/icon/core/customize';
@@ -1,5 +1,5 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import { PanelType } from '@atlaskit/adf-schema';
2
+ import { PanelType } from '@atlaskit/adf-schema/panel';
3
3
 
4
4
  // SVG path data extracted from panel icon components
5
5
  var PANEL_ICON_PATHS = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, PanelType.INFO, 'M12 22C9.34784 22 6.8043 20.9464 4.92893 19.0711C3.05357 17.1957 2 14.6522 2 12C2 9.34784 3.05357 6.8043 4.92893 4.92893C6.8043 3.05357 9.34784 2 12 2C14.6522 2 17.1957 3.05357 19.0711 4.92893C20.9464 6.8043 22 9.34784 22 12C22 14.6522 20.9464 17.1957 19.0711 19.0711C17.1957 20.9464 14.6522 22 12 22V22ZM12 11.375C11.6685 11.375 11.3505 11.5067 11.1161 11.7411C10.8817 11.9755 10.75 12.2935 10.75 12.625V15.75C10.75 16.0815 10.8817 16.3995 11.1161 16.6339C11.3505 16.8683 11.6685 17 12 17C12.3315 17 12.6495 16.8683 12.8839 16.6339C13.1183 16.3995 13.25 16.0815 13.25 15.75V12.625C13.25 12.2935 13.1183 11.9755 12.8839 11.7411C12.6495 11.5067 12.3315 11.375 12 11.375ZM12 9.96875C12.4558 9.96875 12.893 9.78767 13.2153 9.46534C13.5377 9.14301 13.7188 8.70584 13.7188 8.25C13.7188 7.79416 13.5377 7.35699 13.2153 7.03466C12.893 6.71233 12.4558 6.53125 12 6.53125C11.5442 6.53125 11.107 6.71233 10.7847 7.03466C10.4623 7.35699 10.2812 7.79416 10.2812 8.25C10.2812 8.70584 10.4623 9.14301 10.7847 9.46534C11.107 9.78767 11.5442 9.96875 12 9.96875Z'), PanelType.NOTE, 'M7 2H17C17.663 2 18.2989 2.26339 18.7678 2.73223C19.2366 3.20107 19.5 3.83696 19.5 4.5V19.5C19.5 20.163 19.2366 20.7989 18.7678 21.2678C18.2989 21.7366 17.663 22 17 22H7C6.33696 22 5.70107 21.7366 5.23223 21.2678C4.76339 20.7989 4.5 20.163 4.5 19.5V4.5C4.5 3.83696 4.76339 3.20107 5.23223 2.73223C5.70107 2.26339 6.33696 2 7 2ZM8.875 7C8.70924 7 8.55027 7.06585 8.43306 7.18306C8.31585 7.30027 8.25 7.45924 8.25 7.625V8.875C8.25 9.04076 8.31585 9.19973 8.43306 9.31694C8.55027 9.43415 8.70924 9.5 8.875 9.5H15.125C15.2908 9.5 15.4497 9.43415 15.5669 9.31694C15.6842 9.19973 15.75 9.04076 15.75 8.875V7.625C15.75 7.45924 15.6842 7.30027 15.5669 7.18306C15.4497 7.06585 15.2908 7 15.125 7H8.875ZM8.875 12C8.70924 12 8.55027 12.0658 8.43306 12.1831C8.31585 12.3003 8.25 12.4592 8.25 12.625V13.875C8.25 14.0408 8.31585 14.1997 8.43306 14.3169C8.55027 14.4342 8.70924 14.5 8.875 14.5H12.625C12.7908 14.5 12.9497 14.4342 13.0669 14.3169C13.1842 14.1997 13.25 14.0408 13.25 13.875V12.625C13.25 12.4592 13.1842 12.3003 13.0669 12.1831C12.9497 12.0658 12.7908 12 12.625 12H8.875Z'), PanelType.SUCCESS, 'M12 22C9.34784 22 6.8043 20.9464 4.92893 19.0711C3.05357 17.1957 2 14.6522 2 12C2 9.34784 3.05357 6.8043 4.92893 4.92893C6.8043 3.05357 9.34784 2 12 2C14.6522 2 17.1957 3.05357 19.0711 4.92893C20.9464 6.8043 22 9.34784 22 12C22 14.6522 20.9464 17.1957 19.0711 19.0711C17.1957 20.9464 14.6522 22 12 22V22ZM13.705 8.295L11.015 13.4325L9.08625 11.695C8.9642 11.5852 8.82172 11.5005 8.66694 11.4457C8.51216 11.391 8.3481 11.3672 8.18415 11.3759C8.0202 11.3845 7.85955 11.4254 7.71139 11.4961C7.56322 11.5669 7.43044 11.6661 7.32063 11.7881C7.21081 11.9102 7.1261 12.0527 7.07135 12.2074C7.0166 12.3622 6.99287 12.5263 7.00152 12.6902C7.01016 12.8542 7.05102 13.0148 7.12175 13.163C7.19248 13.3112 7.2917 13.4439 7.41375 13.5538L10.5388 16.3663C10.6803 16.4938 10.8492 16.5872 11.0325 16.6395C11.2157 16.6917 11.4085 16.7014 11.596 16.6678C11.7836 16.6341 11.9609 16.558 12.1146 16.4453C12.2682 16.3326 12.3941 16.1863 12.4825 16.0175L15.92 9.455C16.0738 9.16127 16.1047 8.81847 16.0057 8.502C15.9068 8.18553 15.6862 7.92133 15.3925 7.7675C15.0988 7.61367 14.756 7.58283 14.4395 7.68176C14.123 7.78068 13.8588 8.00127 13.705 8.295V8.295Z'), PanelType.WARNING, 'M13.4897 4.34592L21.8561 18.8611C21.9525 19.0288 22.0021 19.2181 21.9999 19.4101C21.9977 19.6021 21.9438 19.7903 21.8435 19.9559C21.7432 20.1215 21.6001 20.2588 21.4282 20.3542C21.2563 20.4497 21.0616 20.4999 20.8636 20.5H3.13707C2.93882 20.5 2.74401 20.4498 2.57196 20.3543C2.39992 20.2588 2.25663 20.1213 2.15631 19.9556C2.05598 19.7898 2.00212 19.6015 2.00006 19.4093C1.998 19.2171 2.04782 19.0278 2.14456 18.86L10.5121 4.34592C10.6602 4.08939 10.8762 3.87577 11.1377 3.72708C11.3993 3.57838 11.6971 3.5 12.0003 3.5C12.3036 3.5 12.6013 3.57838 12.8629 3.72708C13.1245 3.87577 13.3404 4.08939 13.4885 4.34592H13.4897ZM12.0003 7.82538C11.8232 7.82537 11.6482 7.86212 11.4869 7.93317C11.3257 8.00423 11.182 8.10793 11.0656 8.2373C10.9492 8.36668 10.8627 8.51872 10.8119 8.68321C10.7611 8.8477 10.7473 9.02083 10.7713 9.19093L11.3546 13.3416C11.3754 13.4933 11.4523 13.6326 11.5711 13.7334C11.6899 13.8343 11.8424 13.8899 12.0003 13.8899C12.1582 13.8899 12.3107 13.8343 12.4295 13.7334C12.5483 13.6326 12.6253 13.4933 12.6461 13.3416L13.2293 9.19093C13.2533 9.02083 13.2395 8.8477 13.1887 8.68321C13.138 8.51872 13.0515 8.36668 12.935 8.2373C12.8186 8.10793 12.6749 8.00423 12.5137 7.93317C12.3525 7.86212 12.1774 7.82537 12.0003 7.82538V7.82538ZM12.0003 17.3369C12.3395 17.3369 12.6649 17.2062 12.9047 16.9737C13.1446 16.7412 13.2793 16.4258 13.2793 16.0969C13.2793 15.7681 13.1446 15.4527 12.9047 15.2202C12.6649 14.9877 12.3395 14.857 12.0003 14.857C11.6611 14.857 11.3358 14.9877 11.0959 15.2202C10.8561 15.4527 10.7213 15.7681 10.7213 16.0969C10.7213 16.4258 10.8561 16.7412 11.0959 16.9737C11.3358 17.2062 11.6611 17.3369 12.0003 17.3369V17.3369Z'), PanelType.ERROR, 'M13.8562 11.9112L16.5088 9.26C16.7433 9.02545 16.8751 8.70733 16.8751 8.37563C16.8751 8.04392 16.7433 7.7258 16.5088 7.49125C16.2742 7.2567 15.9561 7.12493 15.6244 7.12493C15.2927 7.12493 14.9746 7.2567 14.74 7.49125L12.09 10.1438L9.4375 7.49125C9.20295 7.25686 8.8849 7.12526 8.55331 7.12537C8.22172 7.12549 7.90376 7.25732 7.66937 7.49188C7.43499 7.72643 7.30338 8.04448 7.3035 8.37607C7.30361 8.70766 7.43545 9.02561 7.67 9.26L10.32 11.91L7.67 14.5625C7.4423 14.7983 7.31631 15.114 7.31916 15.4418C7.32201 15.7695 7.45347 16.083 7.68523 16.3148C7.91699 16.5465 8.2305 16.678 8.55825 16.6808C8.88599 16.6837 9.20175 16.5577 9.4375 16.33L12.0888 13.68L14.74 16.33C14.8561 16.4461 14.9939 16.5383 15.1455 16.6012C15.2972 16.664 15.4597 16.6964 15.6239 16.6965C15.7881 16.6966 15.9507 16.6643 16.1024 16.6015C16.2541 16.5387 16.392 16.4467 16.5081 16.3306C16.6243 16.2146 16.7164 16.0768 16.7793 15.9251C16.8422 15.7734 16.8746 15.6109 16.8746 15.4467C16.8747 15.2825 16.8424 15.1199 16.7796 14.9682C16.7168 14.8165 16.6248 14.6786 16.5088 14.5625L13.8562 11.9112V11.9112ZM12 22C9.34784 22 6.8043 20.9464 4.92893 19.0711C3.05357 17.1957 2 14.6522 2 12C2 9.34784 3.05357 6.8043 4.92893 4.92893C6.8043 3.05357 9.34784 2 12 2C14.6522 2 17.1957 3.05357 19.0711 4.92893C20.9464 6.8043 22 9.34784 22 12C22 14.6522 20.9464 17.1957 19.0711 19.0711C17.1957 20.9464 14.6522 22 12 22V22Z');
@@ -3,7 +3,7 @@ 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
5
  import React from 'react';
6
- import { PanelType } from '@atlaskit/adf-schema';
6
+ import { PanelType } from '@atlaskit/adf-schema/panel';
7
7
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
8
8
  import { withAnalytics } from '@atlaskit/editor-common/editor-analytics';
9
9
  import commonMessages, { panelMessages as messages } from '@atlaskit/editor-common/messages';
@@ -1,4 +1,4 @@
1
- import type { PanelType } from '@atlaskit/adf-schema';
1
+ import type { PanelType } from '@atlaskit/adf-schema/panel';
2
2
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
3
  import type { Command } from '@atlaskit/editor-common/types';
4
4
  import type { PanelOptions } from '../pm-plugins/main';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import type { PanelAttributes } from '@atlaskit/adf-schema';
3
- import { PanelType } from '@atlaskit/adf-schema';
2
+ import type { PanelAttributes } from '@atlaskit/adf-schema/panel';
3
+ import { PanelType } from '@atlaskit/adf-schema/panel';
4
4
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
5
5
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
6
6
  import type { ExtractInjectionAPI, getPosHandler, getPosHandlerNode } from '@atlaskit/editor-common/types';
@@ -1,4 +1,4 @@
1
- import type { PanelAttributes } from '@atlaskit/adf-schema';
1
+ import type { PanelAttributes } from '@atlaskit/adf-schema/panel';
2
2
  import type { DOMOutputSpec, NodeType } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { EditorState, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
4
4
  import { findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
@@ -1,4 +1,4 @@
1
- import { PanelType } from '@atlaskit/adf-schema';
1
+ import { PanelType } from '@atlaskit/adf-schema/panel';
2
2
  /**
3
3
  * Creates a native DOM SVG element for a panel icon.
4
4
  * This avoids React Portal rendering delays that cause flickering on SSR and page transitions.
@@ -1,5 +1,5 @@
1
1
  import type { IntlShape } from 'react-intl';
2
- import { PanelType } from '@atlaskit/adf-schema';
2
+ import { PanelType } from '@atlaskit/adf-schema/panel';
3
3
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
4
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
5
5
  import type { Command, ExtractInjectionAPI, FloatingToolbarConfig, FloatingToolbarItem } from '@atlaskit/editor-common/types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-panel",
3
- "version": "18.2.4",
3
+ "version": "18.2.6",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -22,7 +22,7 @@
22
22
  "@atlaskit/adf-schema": "^57.2.0",
23
23
  "@atlaskit/editor-palette": "^3.5.0",
24
24
  "@atlaskit/editor-plugin-analytics": "^16.1.0",
25
- "@atlaskit/editor-plugin-block-menu": "^15.0.0",
25
+ "@atlaskit/editor-plugin-block-menu": "^15.1.0",
26
26
  "@atlaskit/editor-plugin-decorations": "^16.1.0",
27
27
  "@atlaskit/editor-plugin-emoji": "^17.2.0",
28
28
  "@atlaskit/editor-plugin-selection": "^16.1.0",
@@ -37,13 +37,13 @@
37
37
  "@atlaskit/icon-lab": "^7.7.0",
38
38
  "@atlaskit/platform-feature-experiments": "^0.3.0",
39
39
  "@atlaskit/platform-feature-flags": "^2.2.0",
40
- "@atlaskit/tmp-editor-statsig": "^172.0.0",
40
+ "@atlaskit/tmp-editor-statsig": "^174.0.0",
41
41
  "@atlaskit/tokens": "^16.11.0",
42
42
  "@babel/runtime": "^7.0.0",
43
43
  "uuid": "^3.1.0"
44
44
  },
45
45
  "peerDependencies": {
46
- "@atlaskit/editor-common": "^120.11.0",
46
+ "@atlaskit/editor-common": "^120.12.0",
47
47
  "react": "^18.2.0 || ^19.2.0",
48
48
  "react-dom": "^18.2.0 || ^19.2.0",
49
49
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"