@atlaskit/editor-plugin-extension 5.3.1 → 5.3.3

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,20 @@
1
1
  # @atlaskit/editor-plugin-extension
2
2
 
3
+ ## 5.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 5.3.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#148176](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/148176)
14
+ [`ff3d1fcb8f797`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ff3d1fcb8f797) -
15
+ Clean-up platform_editor_legacy_content_macro feature gate
16
+ - Updated dependencies
17
+
3
18
  ## 5.3.1
4
19
 
5
20
  ### Patch Changes
@@ -8,7 +8,6 @@ exports.extensionPlugin = void 0;
8
8
  var _adfSchema = require("@atlaskit/adf-schema");
9
9
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
10
10
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
12
11
  var _actions = require("./editor-actions/actions");
13
12
  var _commands = require("./editor-commands/commands");
14
13
  var _extensionApi = require("./pm-plugins/extension-api");
@@ -25,7 +24,7 @@ var _useConfigPanelPluginHook = require("./ui/useConfigPanelPluginHook");
25
24
  // Remove below line when cleaning up platform_editor_ai_object_sidebar_injection feature flag
26
25
 
27
26
  var extensionPlugin = exports.extensionPlugin = function extensionPlugin(_ref) {
28
- var _api$featureFlags, _api$contextPanel, _api$analytics2, _api$analytics3, _api$contextPanel4, _api$decorations, _api$contextPanel5, _api$analytics4;
27
+ var _api$featureFlags, _api$contextPanel, _api$analytics2, _api$analytics3, _api$contextPanel4;
29
28
  var _ref$config = _ref.config,
30
29
  options = _ref$config === void 0 ? {} : _ref$config,
31
30
  _api = _ref.api;
@@ -174,15 +173,9 @@ var extensionPlugin = exports.extensionPlugin = function extensionPlugin(_ref) {
174
173
  forceAutoSave: _commands.forceAutoSave
175
174
  },
176
175
  pluginsOptions: {
177
- floatingToolbar: (0, _platformFeatureFlags.fg)('platform_editor_legacy_content_macro') ? (0, _toolbar.getToolbarConfig)({
176
+ floatingToolbar: (0, _toolbar.getToolbarConfig)({
178
177
  breakoutEnabled: options.breakoutEnabled,
179
178
  extensionApi: _api
180
- }) : (0, _toolbar.getToolbarConfig)({
181
- breakoutEnabled: options.breakoutEnabled,
182
- hoverDecoration: _api === null || _api === void 0 || (_api$decorations = _api.decorations) === null || _api$decorations === void 0 ? void 0 : _api$decorations.actions.hoverDecoration,
183
- applyChangeToContextPanel: _api === null || _api === void 0 || (_api$contextPanel5 = _api.contextPanel) === null || _api$contextPanel5 === void 0 ? void 0 : _api$contextPanel5.actions.applyChange,
184
- editorAnalyticsAPI: _api === null || _api === void 0 || (_api$analytics4 = _api.analytics) === null || _api$analytics4 === void 0 ? void 0 : _api$analytics4.actions,
185
- extensionApi: (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') || (0, _experiments.editorExperiment)('platform_editor_offline_editing_web', true) ? _api : undefined
186
179
  }),
187
180
  contextPanel:
188
181
  // if showContextPanel action is not available, or platform_editor_ai_object_sidebar_injection feature flag is off
@@ -14,7 +14,6 @@ var _editorJsonTransformer = require("@atlaskit/editor-json-transformer");
14
14
  var _model = require("@atlaskit/editor-prosemirror/model");
15
15
  var _state = require("@atlaskit/editor-prosemirror/state");
16
16
  var _utils2 = require("@atlaskit/editor-prosemirror/utils");
17
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
17
  var _commands = require("../editor-commands/commands");
19
18
  var _actions = require("./macro/actions");
20
19
  var _pluginKey = require("./macro/plugin-key");
@@ -260,7 +259,7 @@ var createExtensionAPI = exports.createExtensionAPI = function createExtensionAP
260
259
  if (typeof (opts === null || opts === void 0 ? void 0 : opts.addToHistory) === 'boolean') {
261
260
  tr.setMeta('addToHistory', opts.addToHistory);
262
261
  }
263
- if (typeof (opts === null || opts === void 0 ? void 0 : opts.scrollIntoView) === 'boolean' && (0, _platformFeatureFlags.fg)('platform_editor_legacy_content_macro')) {
262
+ if (typeof (opts === null || opts === void 0 ? void 0 : opts.scrollIntoView) === 'boolean') {
264
263
  tr.setMeta('scrollIntoView', opts.scrollIntoView);
265
264
  }
266
265
  dispatch(tr);
@@ -12,7 +12,6 @@ var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
12
12
  var _selection2 = require("@atlaskit/editor-common/selection");
13
13
  var _state = require("@atlaskit/editor-prosemirror/state");
14
14
  var _utils = require("@atlaskit/editor-prosemirror/utils");
15
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
15
  var _commands = require("../editor-commands/commands");
17
16
  var _lazyExtension = require("../nodeviews/lazyExtension");
18
17
  var _pluginFactory = require("./plugin-factory");
@@ -310,7 +309,7 @@ var createPlugin = exports.createPlugin = function createPlugin(dispatch, provid
310
309
  return null;
311
310
  },
312
311
  handleClickOn: (0, _selection2.createSelectionClickHandler)(['extension', 'bodiedExtension', 'multiBodiedExtension'], function (target) {
313
- return (0, _platformFeatureFlags.fg)('platform_editor_legacy_content_macro') ? !target.closest('.extension-non-editable-area') && (!target.closest('.extension-content') || !!target.closest('.extension-container')) : !target.closest('.extension-content');
312
+ return !target.closest('.extension-non-editable-area') && (!target.closest('.extension-content') || !!target.closest('.extension-container'));
314
313
  },
315
314
  // It's to enable nested extensions selection
316
315
  {
@@ -229,23 +229,17 @@ var calculateToolbarPosition = function calculateToolbarPosition(editorView, nex
229
229
  // We only want to use calculated position in case of a bodiedExtension present inside an MBE node
230
230
  var isBodiedExtensionInsideMBE = possibleMbeParent && (extensionNode === null || extensionNode === void 0 ? void 0 : extensionNode.node.type.name) === 'bodiedExtension';
231
231
  var scrollWrapper = editorView.dom.closest('.fabric-editor-popup-scroll-parent') || document.body;
232
- if ((0, _platformFeatureFlags.fg)('platform_editor_legacy_content_macro')) {
233
- if (!extensionNode) {
234
- return nextPos;
235
- }
236
- var isInsideEditableExtensionArea = !!editorView.dom.closest('.extension-editable-area');
237
- if (!isBodiedExtensionInsideMBE && !isInsideEditableExtensionArea) {
238
- return nextPos;
239
- }
240
- if (isInsideEditableExtensionArea && scrollWrapper.parentElement) {
241
- // The editable extension area may have its own scroll wrapper, so we want to keep searching up the tree for the page level scroll wrapper.
232
+ if (!extensionNode) {
233
+ return nextPos;
234
+ }
235
+ var isInsideEditableExtensionArea = !!editorView.dom.closest('.extension-editable-area');
236
+ if (!isBodiedExtensionInsideMBE && !isInsideEditableExtensionArea) {
237
+ return nextPos;
238
+ }
239
+ if (isInsideEditableExtensionArea && scrollWrapper.parentElement) {
240
+ // The editable extension area may have its own scroll wrapper, so we want to keep searching up the tree for the page level scroll wrapper.
242
241
 
243
- scrollWrapper = scrollWrapper.parentElement.closest('.fabric-editor-popup-scroll-parent') || scrollWrapper;
244
- }
245
- } else {
246
- if (!isBodiedExtensionInsideMBE) {
247
- return nextPos;
248
- }
242
+ scrollWrapper = scrollWrapper.parentElement.closest('.fabric-editor-popup-scroll-parent') || scrollWrapper;
249
243
  }
250
244
 
251
245
  // Ignored via go/ees005
@@ -262,21 +256,14 @@ var calculateToolbarPosition = function calculateToolbarPosition(editorView, nex
262
256
  var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(_ref) {
263
257
  var _ref$breakoutEnabled = _ref.breakoutEnabled,
264
258
  breakoutEnabled = _ref$breakoutEnabled === void 0 ? true : _ref$breakoutEnabled,
265
- hoverDecoration = _ref.hoverDecoration,
266
- applyChangeToContextPanel = _ref.applyChangeToContextPanel,
267
- editorAnalyticsAPI = _ref.editorAnalyticsAPI,
268
259
  extensionApi = _ref.extensionApi;
269
260
  return function (state, intl) {
270
- var _extensionApi$connect, _hoverDecoration5, _hoverDecoration6, _hoverDecoration7, _hoverDecoration8;
261
+ var _extensionApi$decorat, _extensionApi$context, _extensionApi$analyti, _extensionApi$connect;
271
262
  var formatMessage = intl.formatMessage;
272
263
  var extensionState = (0, _pluginFactory.getPluginState)(state);
273
- if ((0, _platformFeatureFlags.fg)('platform_editor_legacy_content_macro')) {
274
- var _extensionApi$decorat, _extensionApi$context, _extensionApi$analyti;
275
- // TODO: ED-26962 - Change these all to const upon removal of the above FG. Remove the function params also.
276
- hoverDecoration = extensionApi === null || extensionApi === void 0 || (_extensionApi$decorat = extensionApi.decorations) === null || _extensionApi$decorat === void 0 ? void 0 : _extensionApi$decorat.actions.hoverDecoration;
277
- applyChangeToContextPanel = extensionApi === null || extensionApi === void 0 || (_extensionApi$context = extensionApi.contextPanel) === null || _extensionApi$context === void 0 ? void 0 : _extensionApi$context.actions.applyChange;
278
- editorAnalyticsAPI = extensionApi === null || extensionApi === void 0 || (_extensionApi$analyti = extensionApi.analytics) === null || _extensionApi$analyti === void 0 ? void 0 : _extensionApi$analyti.actions;
279
- }
264
+ var hoverDecoration = extensionApi === null || extensionApi === void 0 || (_extensionApi$decorat = extensionApi.decorations) === null || _extensionApi$decorat === void 0 ? void 0 : _extensionApi$decorat.actions.hoverDecoration;
265
+ var applyChangeToContextPanel = extensionApi === null || extensionApi === void 0 || (_extensionApi$context = extensionApi.contextPanel) === null || _extensionApi$context === void 0 ? void 0 : _extensionApi$context.actions.applyChange;
266
+ var editorAnalyticsAPI = extensionApi === null || extensionApi === void 0 || (_extensionApi$analyti = extensionApi.analytics) === null || _extensionApi$analyti === void 0 ? void 0 : _extensionApi$analyti.actions;
280
267
  if (!extensionState || extensionState.showContextPanel || !extensionState.element) {
281
268
  return;
282
269
  }
@@ -309,12 +296,11 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(_ref
309
296
  };
310
297
  }
311
298
  var hoverDecorationProps = function hoverDecorationProps(nodeType, className) {
312
- var _hoverDecoration, _hoverDecoration2, _hoverDecoration3, _hoverDecoration4;
313
299
  return {
314
- onMouseEnter: (_hoverDecoration = hoverDecoration) === null || _hoverDecoration === void 0 ? void 0 : _hoverDecoration(nodeType, true, className),
315
- onMouseLeave: (_hoverDecoration2 = hoverDecoration) === null || _hoverDecoration2 === void 0 ? void 0 : _hoverDecoration2(nodeType, false, className),
316
- onFocus: (_hoverDecoration3 = hoverDecoration) === null || _hoverDecoration3 === void 0 ? void 0 : _hoverDecoration3(nodeType, true, className),
317
- onBlur: (_hoverDecoration4 = hoverDecoration) === null || _hoverDecoration4 === void 0 ? void 0 : _hoverDecoration4(nodeType, false, className)
300
+ onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true, className),
301
+ onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false, className),
302
+ onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true, className),
303
+ onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false, className)
318
304
  };
319
305
  };
320
306
  return {
@@ -355,10 +341,10 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(_ref
355
341
  iconFallback: _delete.default,
356
342
  appearance: 'danger',
357
343
  onClick: (0, _commands.removeExtension)(editorAnalyticsAPI),
358
- onMouseEnter: (_hoverDecoration5 = hoverDecoration) === null || _hoverDecoration5 === void 0 ? void 0 : _hoverDecoration5(nodeType, true),
359
- onMouseLeave: (_hoverDecoration6 = hoverDecoration) === null || _hoverDecoration6 === void 0 ? void 0 : _hoverDecoration6(nodeType, false),
360
- onFocus: (_hoverDecoration7 = hoverDecoration) === null || _hoverDecoration7 === void 0 ? void 0 : _hoverDecoration7(nodeType, true),
361
- onBlur: (_hoverDecoration8 = hoverDecoration) === null || _hoverDecoration8 === void 0 ? void 0 : _hoverDecoration8(nodeType, false),
344
+ onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true),
345
+ onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false),
346
+ onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true),
347
+ onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false),
362
348
  focusEditoronEnter: true,
363
349
  title: formatMessage(_messages.default.remove),
364
350
  tabIndex: null,
@@ -19,7 +19,7 @@ var ConfigPanelErrorMessage = function ConfigPanelErrorMessage(_ref) {
19
19
  renderImage: function renderImage() {
20
20
  return /*#__PURE__*/_react.default.createElement(_ErrorImage.default, null);
21
21
  },
22
- size: "narrow",
22
+ width: "narrow",
23
23
  imageHeight: 80,
24
24
  testId: "config-panel-error-message"
25
25
  });
@@ -1,7 +1,6 @@
1
1
  import { extension, extensionFrame, inlineExtension, multiBodiedExtension } from '@atlaskit/adf-schema';
2
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  import { fg } from '@atlaskit/platform-feature-flags';
4
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
5
4
  import { createEditSelectedExtensionAction, insertOrReplaceBodiedExtension, insertOrReplaceExtension } from './editor-actions/actions';
6
5
  import { forceAutoSave } from './editor-commands/commands';
7
6
  import { createExtensionAPI } from './pm-plugins/extension-api';
@@ -20,7 +19,7 @@ export const extensionPlugin = ({
20
19
  config: options = {},
21
20
  api
22
21
  }) => {
23
- var _api$featureFlags, _api$contextPanel, _api$contextPanel$act, _api$analytics2, _api$analytics3, _api$contextPanel4, _api$decorations, _api$contextPanel5, _api$analytics4;
22
+ var _api$featureFlags, _api$contextPanel, _api$contextPanel$act, _api$analytics2, _api$analytics3, _api$contextPanel4;
24
23
  const featureFlags = (api === null || api === void 0 ? void 0 : (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
25
24
  //Note: This is a hack to get the editor view reference in the plugin. Copied from table plugin.
26
25
  //This is needed to get the current selection in the editor
@@ -162,15 +161,9 @@ export const extensionPlugin = ({
162
161
  forceAutoSave
163
162
  },
164
163
  pluginsOptions: {
165
- floatingToolbar: fg('platform_editor_legacy_content_macro') ? getToolbarConfig({
164
+ floatingToolbar: getToolbarConfig({
166
165
  breakoutEnabled: options.breakoutEnabled,
167
166
  extensionApi: api
168
- }) : getToolbarConfig({
169
- breakoutEnabled: options.breakoutEnabled,
170
- hoverDecoration: api === null || api === void 0 ? void 0 : (_api$decorations = api.decorations) === null || _api$decorations === void 0 ? void 0 : _api$decorations.actions.hoverDecoration,
171
- applyChangeToContextPanel: api === null || api === void 0 ? void 0 : (_api$contextPanel5 = api.contextPanel) === null || _api$contextPanel5 === void 0 ? void 0 : _api$contextPanel5.actions.applyChange,
172
- editorAnalyticsAPI: api === null || api === void 0 ? void 0 : (_api$analytics4 = api.analytics) === null || _api$analytics4 === void 0 ? void 0 : _api$analytics4.actions,
173
- extensionApi: editorExperiment('platform_editor_controls', 'variant1') || editorExperiment('platform_editor_offline_editing_web', true) ? api : undefined
174
167
  }),
175
168
  contextPanel:
176
169
  // if showContextPanel action is not available, or platform_editor_ai_object_sidebar_injection feature flag is off
@@ -5,7 +5,6 @@ import { JSONTransformer } from '@atlaskit/editor-json-transformer';
5
5
  import { Fragment, Mark } from '@atlaskit/editor-prosemirror/model';
6
6
  import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
7
7
  import { setTextSelection } from '@atlaskit/editor-prosemirror/utils';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
  import { setEditingContextToContextPanel } from '../editor-commands/commands';
10
9
  import { insertMacroFromMacroBrowser } from './macro/actions';
11
10
  import { pluginKey as macroPluginKey } from './macro/plugin-key';
@@ -278,7 +277,7 @@ export const createExtensionAPI = options => {
278
277
  if (typeof (opts === null || opts === void 0 ? void 0 : opts.addToHistory) === 'boolean') {
279
278
  tr.setMeta('addToHistory', opts.addToHistory);
280
279
  }
281
- if (typeof (opts === null || opts === void 0 ? void 0 : opts.scrollIntoView) === 'boolean' && fg('platform_editor_legacy_content_macro')) {
280
+ if (typeof (opts === null || opts === void 0 ? void 0 : opts.scrollIntoView) === 'boolean') {
282
281
  tr.setMeta('scrollIntoView', opts.scrollIntoView);
283
282
  }
284
283
  dispatch(tr);
@@ -1,8 +1,7 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { createSelectionClickHandler, GapCursorSelection, isSelectionAtEndOfNode, isSelectionAtStartOfNode } from '@atlaskit/editor-common/selection';
2
+ import { GapCursorSelection, createSelectionClickHandler, isSelectionAtEndOfNode, isSelectionAtStartOfNode } from '@atlaskit/editor-common/selection';
3
3
  import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
4
4
  import { findParentNodeOfTypeClosestToPos, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { clearEditingContext, updateState } from '../editor-commands/commands';
7
6
  import { lazyExtensionNodeView } from '../nodeviews/lazyExtension';
8
7
  import { createPluginState, getPluginState } from './plugin-factory';
@@ -265,7 +264,7 @@ export const createPlugin = (dispatch, providerFactory, extensionHandlers, porta
265
264
  }
266
265
  return null;
267
266
  },
268
- handleClickOn: createSelectionClickHandler(['extension', 'bodiedExtension', 'multiBodiedExtension'], target => fg('platform_editor_legacy_content_macro') ? !target.closest('.extension-non-editable-area') && (!target.closest('.extension-content') || !!target.closest('.extension-container')) : !target.closest('.extension-content'),
267
+ handleClickOn: createSelectionClickHandler(['extension', 'bodiedExtension', 'multiBodiedExtension'], target => !target.closest('.extension-non-editable-area') && (!target.closest('.extension-content') || !!target.closest('.extension-container')),
269
268
  // It's to enable nested extensions selection
270
269
  {
271
270
  useLongPressSelection
@@ -228,23 +228,17 @@ const calculateToolbarPosition = (editorView, nextPos, state, extensionNode) =>
228
228
  // We only want to use calculated position in case of a bodiedExtension present inside an MBE node
229
229
  const isBodiedExtensionInsideMBE = possibleMbeParent && (extensionNode === null || extensionNode === void 0 ? void 0 : extensionNode.node.type.name) === 'bodiedExtension';
230
230
  let scrollWrapper = editorView.dom.closest('.fabric-editor-popup-scroll-parent') || document.body;
231
- if (fg('platform_editor_legacy_content_macro')) {
232
- if (!extensionNode) {
233
- return nextPos;
234
- }
235
- const isInsideEditableExtensionArea = !!editorView.dom.closest('.extension-editable-area');
236
- if (!isBodiedExtensionInsideMBE && !isInsideEditableExtensionArea) {
237
- return nextPos;
238
- }
239
- if (isInsideEditableExtensionArea && scrollWrapper.parentElement) {
240
- // The editable extension area may have its own scroll wrapper, so we want to keep searching up the tree for the page level scroll wrapper.
231
+ if (!extensionNode) {
232
+ return nextPos;
233
+ }
234
+ const isInsideEditableExtensionArea = !!editorView.dom.closest('.extension-editable-area');
235
+ if (!isBodiedExtensionInsideMBE && !isInsideEditableExtensionArea) {
236
+ return nextPos;
237
+ }
238
+ if (isInsideEditableExtensionArea && scrollWrapper.parentElement) {
239
+ // The editable extension area may have its own scroll wrapper, so we want to keep searching up the tree for the page level scroll wrapper.
241
240
 
242
- scrollWrapper = scrollWrapper.parentElement.closest('.fabric-editor-popup-scroll-parent') || scrollWrapper;
243
- }
244
- } else {
245
- if (!isBodiedExtensionInsideMBE) {
246
- return nextPos;
247
- }
241
+ scrollWrapper = scrollWrapper.parentElement.closest('.fabric-editor-popup-scroll-parent') || scrollWrapper;
248
242
  }
249
243
 
250
244
  // Ignored via go/ees005
@@ -260,23 +254,16 @@ const calculateToolbarPosition = (editorView, nextPos, state, extensionNode) =>
260
254
  };
261
255
  export const getToolbarConfig = ({
262
256
  breakoutEnabled = true,
263
- hoverDecoration,
264
- applyChangeToContextPanel,
265
- editorAnalyticsAPI,
266
257
  extensionApi
267
258
  }) => (state, intl) => {
268
- var _extensionApi$connect, _extensionApi$connect2, _extensionApi$connect3, _hoverDecoration5, _hoverDecoration6, _hoverDecoration7, _hoverDecoration8;
259
+ var _extensionApi$decorat, _extensionApi$context, _extensionApi$analyti, _extensionApi$connect, _extensionApi$connect2, _extensionApi$connect3;
269
260
  const {
270
261
  formatMessage
271
262
  } = intl;
272
263
  const extensionState = getPluginState(state);
273
- if (fg('platform_editor_legacy_content_macro')) {
274
- var _extensionApi$decorat, _extensionApi$context, _extensionApi$analyti;
275
- // TODO: ED-26962 - Change these all to const upon removal of the above FG. Remove the function params also.
276
- hoverDecoration = extensionApi === null || extensionApi === void 0 ? void 0 : (_extensionApi$decorat = extensionApi.decorations) === null || _extensionApi$decorat === void 0 ? void 0 : _extensionApi$decorat.actions.hoverDecoration;
277
- applyChangeToContextPanel = extensionApi === null || extensionApi === void 0 ? void 0 : (_extensionApi$context = extensionApi.contextPanel) === null || _extensionApi$context === void 0 ? void 0 : _extensionApi$context.actions.applyChange;
278
- editorAnalyticsAPI = extensionApi === null || extensionApi === void 0 ? void 0 : (_extensionApi$analyti = extensionApi.analytics) === null || _extensionApi$analyti === void 0 ? void 0 : _extensionApi$analyti.actions;
279
- }
264
+ const hoverDecoration = extensionApi === null || extensionApi === void 0 ? void 0 : (_extensionApi$decorat = extensionApi.decorations) === null || _extensionApi$decorat === void 0 ? void 0 : _extensionApi$decorat.actions.hoverDecoration;
265
+ const applyChangeToContextPanel = extensionApi === null || extensionApi === void 0 ? void 0 : (_extensionApi$context = extensionApi.contextPanel) === null || _extensionApi$context === void 0 ? void 0 : _extensionApi$context.actions.applyChange;
266
+ const editorAnalyticsAPI = extensionApi === null || extensionApi === void 0 ? void 0 : (_extensionApi$analyti = extensionApi.analytics) === null || _extensionApi$analyti === void 0 ? void 0 : _extensionApi$analyti.actions;
280
267
  if (!extensionState || extensionState.showContextPanel || !extensionState.element) {
281
268
  return;
282
269
  }
@@ -303,15 +290,12 @@ export const getToolbarConfig = ({
303
290
  };
304
291
  };
305
292
  }
306
- const hoverDecorationProps = (nodeType, className) => {
307
- var _hoverDecoration, _hoverDecoration2, _hoverDecoration3, _hoverDecoration4;
308
- return {
309
- onMouseEnter: (_hoverDecoration = hoverDecoration) === null || _hoverDecoration === void 0 ? void 0 : _hoverDecoration(nodeType, true, className),
310
- onMouseLeave: (_hoverDecoration2 = hoverDecoration) === null || _hoverDecoration2 === void 0 ? void 0 : _hoverDecoration2(nodeType, false, className),
311
- onFocus: (_hoverDecoration3 = hoverDecoration) === null || _hoverDecoration3 === void 0 ? void 0 : _hoverDecoration3(nodeType, true, className),
312
- onBlur: (_hoverDecoration4 = hoverDecoration) === null || _hoverDecoration4 === void 0 ? void 0 : _hoverDecoration4(nodeType, false, className)
313
- };
314
- };
293
+ const hoverDecorationProps = (nodeType, className) => ({
294
+ onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true, className),
295
+ onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false, className),
296
+ onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true, className),
297
+ onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false, className)
298
+ });
315
299
  return {
316
300
  title: 'Extension floating controls',
317
301
  // Ignored via go/ees005
@@ -344,10 +328,10 @@ export const getToolbarConfig = ({
344
328
  iconFallback: DeleteIcon,
345
329
  appearance: 'danger',
346
330
  onClick: removeExtension(editorAnalyticsAPI),
347
- onMouseEnter: (_hoverDecoration5 = hoverDecoration) === null || _hoverDecoration5 === void 0 ? void 0 : _hoverDecoration5(nodeType, true),
348
- onMouseLeave: (_hoverDecoration6 = hoverDecoration) === null || _hoverDecoration6 === void 0 ? void 0 : _hoverDecoration6(nodeType, false),
349
- onFocus: (_hoverDecoration7 = hoverDecoration) === null || _hoverDecoration7 === void 0 ? void 0 : _hoverDecoration7(nodeType, true),
350
- onBlur: (_hoverDecoration8 = hoverDecoration) === null || _hoverDecoration8 === void 0 ? void 0 : _hoverDecoration8(nodeType, false),
331
+ onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true),
332
+ onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false),
333
+ onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true),
334
+ onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false),
351
335
  focusEditoronEnter: true,
352
336
  title: formatMessage(commonMessages.remove),
353
337
  tabIndex: null,
@@ -11,7 +11,7 @@ const ConfigPanelErrorMessage = ({
11
11
  header: intl.formatMessage(messages.configFailedToLoad),
12
12
  description: errorMessage,
13
13
  renderImage: () => /*#__PURE__*/React.createElement(ErrorImage, null),
14
- size: "narrow",
14
+ width: "narrow",
15
15
  imageHeight: 80,
16
16
  testId: "config-panel-error-message"
17
17
  });
@@ -1,7 +1,6 @@
1
1
  import { extension, extensionFrame, inlineExtension, multiBodiedExtension } from '@atlaskit/adf-schema';
2
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  import { fg } from '@atlaskit/platform-feature-flags';
4
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
5
4
  import { createEditSelectedExtensionAction, insertOrReplaceBodiedExtension as _insertOrReplaceBodiedExtension, insertOrReplaceExtension as _insertOrReplaceExtension } from './editor-actions/actions';
6
5
  import { forceAutoSave } from './editor-commands/commands';
7
6
  import { createExtensionAPI } from './pm-plugins/extension-api';
@@ -17,7 +16,7 @@ import { createPlugin as createUniqueIdPlugin } from './pm-plugins/unique-id';
17
16
  import { getContextPanel } from './ui/context-panel';
18
17
  import { useConfigPanelPluginHook } from './ui/useConfigPanelPluginHook';
19
18
  export var extensionPlugin = function extensionPlugin(_ref) {
20
- var _api$featureFlags, _api$contextPanel, _api$analytics2, _api$analytics3, _api$contextPanel4, _api$decorations, _api$contextPanel5, _api$analytics4;
19
+ var _api$featureFlags, _api$contextPanel, _api$analytics2, _api$analytics3, _api$contextPanel4;
21
20
  var _ref$config = _ref.config,
22
21
  options = _ref$config === void 0 ? {} : _ref$config,
23
22
  _api = _ref.api;
@@ -166,15 +165,9 @@ export var extensionPlugin = function extensionPlugin(_ref) {
166
165
  forceAutoSave: forceAutoSave
167
166
  },
168
167
  pluginsOptions: {
169
- floatingToolbar: fg('platform_editor_legacy_content_macro') ? getToolbarConfig({
168
+ floatingToolbar: getToolbarConfig({
170
169
  breakoutEnabled: options.breakoutEnabled,
171
170
  extensionApi: _api
172
- }) : getToolbarConfig({
173
- breakoutEnabled: options.breakoutEnabled,
174
- hoverDecoration: _api === null || _api === void 0 || (_api$decorations = _api.decorations) === null || _api$decorations === void 0 ? void 0 : _api$decorations.actions.hoverDecoration,
175
- applyChangeToContextPanel: _api === null || _api === void 0 || (_api$contextPanel5 = _api.contextPanel) === null || _api$contextPanel5 === void 0 ? void 0 : _api$contextPanel5.actions.applyChange,
176
- editorAnalyticsAPI: _api === null || _api === void 0 || (_api$analytics4 = _api.analytics) === null || _api$analytics4 === void 0 ? void 0 : _api$analytics4.actions,
177
- extensionApi: editorExperiment('platform_editor_controls', 'variant1') || editorExperiment('platform_editor_offline_editing_web', true) ? _api : undefined
178
171
  }),
179
172
  contextPanel:
180
173
  // if showContextPanel action is not available, or platform_editor_ai_object_sidebar_injection feature flag is off
@@ -9,7 +9,6 @@ import { JSONTransformer } from '@atlaskit/editor-json-transformer';
9
9
  import { Fragment, Mark } from '@atlaskit/editor-prosemirror/model';
10
10
  import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
11
11
  import { setTextSelection } from '@atlaskit/editor-prosemirror/utils';
12
- import { fg } from '@atlaskit/platform-feature-flags';
13
12
  import { setEditingContextToContextPanel } from '../editor-commands/commands';
14
13
  import { insertMacroFromMacroBrowser } from './macro/actions';
15
14
  import { pluginKey as macroPluginKey } from './macro/plugin-key';
@@ -253,7 +252,7 @@ export var createExtensionAPI = function createExtensionAPI(options) {
253
252
  if (typeof (opts === null || opts === void 0 ? void 0 : opts.addToHistory) === 'boolean') {
254
253
  tr.setMeta('addToHistory', opts.addToHistory);
255
254
  }
256
- if (typeof (opts === null || opts === void 0 ? void 0 : opts.scrollIntoView) === 'boolean' && fg('platform_editor_legacy_content_macro')) {
255
+ if (typeof (opts === null || opts === void 0 ? void 0 : opts.scrollIntoView) === 'boolean') {
257
256
  tr.setMeta('scrollIntoView', opts.scrollIntoView);
258
257
  }
259
258
  dispatch(tr);
@@ -2,10 +2,9 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _typeof from "@babel/runtime/helpers/typeof";
3
3
  import _regeneratorRuntime from "@babel/runtime/regenerator";
4
4
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
5
- import { createSelectionClickHandler, GapCursorSelection, isSelectionAtEndOfNode, isSelectionAtStartOfNode } from '@atlaskit/editor-common/selection';
5
+ import { GapCursorSelection, createSelectionClickHandler, isSelectionAtEndOfNode, isSelectionAtStartOfNode } from '@atlaskit/editor-common/selection';
6
6
  import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
7
7
  import { findParentNodeOfTypeClosestToPos, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
  import { clearEditingContext, updateState } from '../editor-commands/commands';
10
9
  import { lazyExtensionNodeView } from '../nodeviews/lazyExtension';
11
10
  import { createPluginState, getPluginState } from './plugin-factory';
@@ -303,7 +302,7 @@ export var createPlugin = function createPlugin(dispatch, providerFactory, exten
303
302
  return null;
304
303
  },
305
304
  handleClickOn: createSelectionClickHandler(['extension', 'bodiedExtension', 'multiBodiedExtension'], function (target) {
306
- return fg('platform_editor_legacy_content_macro') ? !target.closest('.extension-non-editable-area') && (!target.closest('.extension-content') || !!target.closest('.extension-container')) : !target.closest('.extension-content');
305
+ return !target.closest('.extension-non-editable-area') && (!target.closest('.extension-content') || !!target.closest('.extension-container'));
307
306
  },
308
307
  // It's to enable nested extensions selection
309
308
  {
@@ -223,23 +223,17 @@ var calculateToolbarPosition = function calculateToolbarPosition(editorView, nex
223
223
  // We only want to use calculated position in case of a bodiedExtension present inside an MBE node
224
224
  var isBodiedExtensionInsideMBE = possibleMbeParent && (extensionNode === null || extensionNode === void 0 ? void 0 : extensionNode.node.type.name) === 'bodiedExtension';
225
225
  var scrollWrapper = editorView.dom.closest('.fabric-editor-popup-scroll-parent') || document.body;
226
- if (fg('platform_editor_legacy_content_macro')) {
227
- if (!extensionNode) {
228
- return nextPos;
229
- }
230
- var isInsideEditableExtensionArea = !!editorView.dom.closest('.extension-editable-area');
231
- if (!isBodiedExtensionInsideMBE && !isInsideEditableExtensionArea) {
232
- return nextPos;
233
- }
234
- if (isInsideEditableExtensionArea && scrollWrapper.parentElement) {
235
- // The editable extension area may have its own scroll wrapper, so we want to keep searching up the tree for the page level scroll wrapper.
226
+ if (!extensionNode) {
227
+ return nextPos;
228
+ }
229
+ var isInsideEditableExtensionArea = !!editorView.dom.closest('.extension-editable-area');
230
+ if (!isBodiedExtensionInsideMBE && !isInsideEditableExtensionArea) {
231
+ return nextPos;
232
+ }
233
+ if (isInsideEditableExtensionArea && scrollWrapper.parentElement) {
234
+ // The editable extension area may have its own scroll wrapper, so we want to keep searching up the tree for the page level scroll wrapper.
236
235
 
237
- scrollWrapper = scrollWrapper.parentElement.closest('.fabric-editor-popup-scroll-parent') || scrollWrapper;
238
- }
239
- } else {
240
- if (!isBodiedExtensionInsideMBE) {
241
- return nextPos;
242
- }
236
+ scrollWrapper = scrollWrapper.parentElement.closest('.fabric-editor-popup-scroll-parent') || scrollWrapper;
243
237
  }
244
238
 
245
239
  // Ignored via go/ees005
@@ -256,21 +250,14 @@ var calculateToolbarPosition = function calculateToolbarPosition(editorView, nex
256
250
  export var getToolbarConfig = function getToolbarConfig(_ref) {
257
251
  var _ref$breakoutEnabled = _ref.breakoutEnabled,
258
252
  breakoutEnabled = _ref$breakoutEnabled === void 0 ? true : _ref$breakoutEnabled,
259
- hoverDecoration = _ref.hoverDecoration,
260
- applyChangeToContextPanel = _ref.applyChangeToContextPanel,
261
- editorAnalyticsAPI = _ref.editorAnalyticsAPI,
262
253
  extensionApi = _ref.extensionApi;
263
254
  return function (state, intl) {
264
- var _extensionApi$connect, _hoverDecoration5, _hoverDecoration6, _hoverDecoration7, _hoverDecoration8;
255
+ var _extensionApi$decorat, _extensionApi$context, _extensionApi$analyti, _extensionApi$connect;
265
256
  var formatMessage = intl.formatMessage;
266
257
  var extensionState = getPluginState(state);
267
- if (fg('platform_editor_legacy_content_macro')) {
268
- var _extensionApi$decorat, _extensionApi$context, _extensionApi$analyti;
269
- // TODO: ED-26962 - Change these all to const upon removal of the above FG. Remove the function params also.
270
- hoverDecoration = extensionApi === null || extensionApi === void 0 || (_extensionApi$decorat = extensionApi.decorations) === null || _extensionApi$decorat === void 0 ? void 0 : _extensionApi$decorat.actions.hoverDecoration;
271
- applyChangeToContextPanel = extensionApi === null || extensionApi === void 0 || (_extensionApi$context = extensionApi.contextPanel) === null || _extensionApi$context === void 0 ? void 0 : _extensionApi$context.actions.applyChange;
272
- editorAnalyticsAPI = extensionApi === null || extensionApi === void 0 || (_extensionApi$analyti = extensionApi.analytics) === null || _extensionApi$analyti === void 0 ? void 0 : _extensionApi$analyti.actions;
273
- }
258
+ var hoverDecoration = extensionApi === null || extensionApi === void 0 || (_extensionApi$decorat = extensionApi.decorations) === null || _extensionApi$decorat === void 0 ? void 0 : _extensionApi$decorat.actions.hoverDecoration;
259
+ var applyChangeToContextPanel = extensionApi === null || extensionApi === void 0 || (_extensionApi$context = extensionApi.contextPanel) === null || _extensionApi$context === void 0 ? void 0 : _extensionApi$context.actions.applyChange;
260
+ var editorAnalyticsAPI = extensionApi === null || extensionApi === void 0 || (_extensionApi$analyti = extensionApi.analytics) === null || _extensionApi$analyti === void 0 ? void 0 : _extensionApi$analyti.actions;
274
261
  if (!extensionState || extensionState.showContextPanel || !extensionState.element) {
275
262
  return;
276
263
  }
@@ -303,12 +290,11 @@ export var getToolbarConfig = function getToolbarConfig(_ref) {
303
290
  };
304
291
  }
305
292
  var hoverDecorationProps = function hoverDecorationProps(nodeType, className) {
306
- var _hoverDecoration, _hoverDecoration2, _hoverDecoration3, _hoverDecoration4;
307
293
  return {
308
- onMouseEnter: (_hoverDecoration = hoverDecoration) === null || _hoverDecoration === void 0 ? void 0 : _hoverDecoration(nodeType, true, className),
309
- onMouseLeave: (_hoverDecoration2 = hoverDecoration) === null || _hoverDecoration2 === void 0 ? void 0 : _hoverDecoration2(nodeType, false, className),
310
- onFocus: (_hoverDecoration3 = hoverDecoration) === null || _hoverDecoration3 === void 0 ? void 0 : _hoverDecoration3(nodeType, true, className),
311
- onBlur: (_hoverDecoration4 = hoverDecoration) === null || _hoverDecoration4 === void 0 ? void 0 : _hoverDecoration4(nodeType, false, className)
294
+ onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true, className),
295
+ onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false, className),
296
+ onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true, className),
297
+ onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false, className)
312
298
  };
313
299
  };
314
300
  return {
@@ -349,10 +335,10 @@ export var getToolbarConfig = function getToolbarConfig(_ref) {
349
335
  iconFallback: DeleteIcon,
350
336
  appearance: 'danger',
351
337
  onClick: removeExtension(editorAnalyticsAPI),
352
- onMouseEnter: (_hoverDecoration5 = hoverDecoration) === null || _hoverDecoration5 === void 0 ? void 0 : _hoverDecoration5(nodeType, true),
353
- onMouseLeave: (_hoverDecoration6 = hoverDecoration) === null || _hoverDecoration6 === void 0 ? void 0 : _hoverDecoration6(nodeType, false),
354
- onFocus: (_hoverDecoration7 = hoverDecoration) === null || _hoverDecoration7 === void 0 ? void 0 : _hoverDecoration7(nodeType, true),
355
- onBlur: (_hoverDecoration8 = hoverDecoration) === null || _hoverDecoration8 === void 0 ? void 0 : _hoverDecoration8(nodeType, false),
338
+ onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true),
339
+ onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false),
340
+ onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true),
341
+ onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false),
356
342
  focusEditoronEnter: true,
357
343
  title: formatMessage(commonMessages.remove),
358
344
  tabIndex: null,
@@ -12,7 +12,7 @@ var ConfigPanelErrorMessage = function ConfigPanelErrorMessage(_ref) {
12
12
  renderImage: function renderImage() {
13
13
  return /*#__PURE__*/React.createElement(ErrorImage, null);
14
14
  },
15
- size: "narrow",
15
+ width: "narrow",
16
16
  imageHeight: 80,
17
17
  testId: "config-panel-error-message"
18
18
  });
@@ -1,15 +1,11 @@
1
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
1
  import type { FloatingToolbarHandler, PublicPluginAPI } from '@atlaskit/editor-common/types';
3
2
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
4
3
  import { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
5
- import type { ApplyChangeHandler, ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
6
- import type { DecorationsPlugin, HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
4
+ import type { ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
5
+ import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
7
6
  interface GetToolbarConfigProps {
8
7
  breakoutEnabled: boolean | undefined;
9
- hoverDecoration?: HoverDecorationHandler | undefined;
10
- applyChangeToContextPanel?: ApplyChangeHandler | undefined;
11
- editorAnalyticsAPI?: EditorAnalyticsAPI | undefined;
12
8
  extensionApi?: PublicPluginAPI<[ContextPanelPlugin, AnalyticsPlugin, DecorationsPlugin, ConnectivityPlugin]> | undefined;
13
9
  }
14
- export declare const getToolbarConfig: ({ breakoutEnabled, hoverDecoration, applyChangeToContextPanel, editorAnalyticsAPI, extensionApi, }: GetToolbarConfigProps) => FloatingToolbarHandler;
10
+ export declare const getToolbarConfig: ({ breakoutEnabled, extensionApi }: GetToolbarConfigProps) => FloatingToolbarHandler;
15
11
  export {};
@@ -1,14 +1,10 @@
1
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
1
  import type { FloatingToolbarHandler, PublicPluginAPI } from '@atlaskit/editor-common/types';
3
2
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
4
3
  import { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
5
- import type { ApplyChangeHandler, ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
6
- import type { DecorationsPlugin, HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
4
+ import type { ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
5
+ import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
7
6
  interface GetToolbarConfigProps {
8
7
  breakoutEnabled: boolean | undefined;
9
- hoverDecoration?: HoverDecorationHandler | undefined;
10
- applyChangeToContextPanel?: ApplyChangeHandler | undefined;
11
- editorAnalyticsAPI?: EditorAnalyticsAPI | undefined;
12
8
  extensionApi?: PublicPluginAPI<[
13
9
  ContextPanelPlugin,
14
10
  AnalyticsPlugin,
@@ -16,5 +12,5 @@ interface GetToolbarConfigProps {
16
12
  ConnectivityPlugin
17
13
  ]> | undefined;
18
14
  }
19
- export declare const getToolbarConfig: ({ breakoutEnabled, hoverDecoration, applyChangeToContextPanel, editorAnalyticsAPI, extensionApi, }: GetToolbarConfigProps) => FloatingToolbarHandler;
15
+ export declare const getToolbarConfig: ({ breakoutEnabled, extensionApi }: GetToolbarConfigProps) => FloatingToolbarHandler;
20
16
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-extension",
3
- "version": "5.3.1",
3
+ "version": "5.3.3",
4
4
  "description": "editor-plugin-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,7 +32,7 @@
32
32
  "@atlaskit/button": "^23.0.0",
33
33
  "@atlaskit/checkbox": "^17.1.0",
34
34
  "@atlaskit/datetime-picker": "^17.0.0",
35
- "@atlaskit/editor-common": "^103.19.0",
35
+ "@atlaskit/editor-common": "^103.22.0",
36
36
  "@atlaskit/editor-json-transformer": "^8.24.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^2.2.0",
38
38
  "@atlaskit/editor-plugin-connectivity": "^2.0.0",
@@ -44,12 +44,12 @@
44
44
  "@atlaskit/editor-prosemirror": "7.0.0",
45
45
  "@atlaskit/editor-shared-styles": "^3.4.0",
46
46
  "@atlaskit/editor-tables": "^2.9.0",
47
- "@atlaskit/empty-state": "^9.0.0",
47
+ "@atlaskit/empty-state": "^10.0.0",
48
48
  "@atlaskit/form": "^12.0.0",
49
49
  "@atlaskit/heading": "^5.2.0",
50
50
  "@atlaskit/icon": "^25.6.0",
51
51
  "@atlaskit/platform-feature-flags": "^1.1.0",
52
- "@atlaskit/primitives": "^14.4.0",
52
+ "@atlaskit/primitives": "^14.6.0",
53
53
  "@atlaskit/radio": "^8.1.0",
54
54
  "@atlaskit/section-message": "^8.2.0",
55
55
  "@atlaskit/select": "^20.4.0",