@atlaskit/editor-plugin-card 2.14.1 → 2.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 2.15.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#137404](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/137404)
8
+ [`e7ce490e04b4f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e7ce490e04b4f) -
9
+ [ux] Adds button to Smart Link toolbar to switch to Smart Link List View for supporting links (by
10
+ cleanup of platform.linking-platform.enable-datasource-appearance-toolbar).
11
+ - [#137156](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/137156)
12
+ [`058afdc0d3145`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/058afdc0d3145) -
13
+ [ux] Introduces Confluence Smart Link List View as a valid list view modal by removing feature
14
+ flag platform.linking-platform.datasource.enable-confluence-search-modal
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 2.14.1
4
21
 
5
22
  ### Patch Changes
@@ -247,23 +247,14 @@ var Datasource = exports.Datasource = /*#__PURE__*/function (_ReactNodeView) {
247
247
  // Otherwise, the node view will still consider the node as a Datasource and render a such.
248
248
  (0, _createClass2.default)(Datasource, [{
249
249
  key: "validUpdate",
250
- value: function validUpdate(currentNode, newNode) {
251
- if ((0, _platformFeatureFlags.fg)('platform.linking-platform.enable-datasource-appearance-toolbar')) {
252
- var _newNode$attrs;
253
- return !!((_newNode$attrs = newNode.attrs) !== null && _newNode$attrs !== void 0 && _newNode$attrs.datasource);
254
- }
255
- return true;
250
+ value: function validUpdate(_, newNode) {
251
+ var _newNode$attrs;
252
+ return !!((_newNode$attrs = newNode.attrs) !== null && _newNode$attrs !== void 0 && _newNode$attrs.datasource);
256
253
  }
257
254
  }, {
258
255
  key: "update",
259
256
  value: function update(node, decorations, _innerDecorations) {
260
- var validUpdate = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : function () {
261
- return true;
262
- };
263
- if ((0, _platformFeatureFlags.fg)('platform.linking-platform.enable-datasource-appearance-toolbar')) {
264
- return (0, _get2.default)((0, _getPrototypeOf2.default)(Datasource.prototype), "update", this).call(this, node, decorations, _innerDecorations, this.validUpdate);
265
- }
266
- return (0, _get2.default)((0, _getPrototypeOf2.default)(Datasource.prototype), "update", this).call(this, node, decorations, _innerDecorations, validUpdate);
257
+ return (0, _get2.default)((0, _getPrototypeOf2.default)(Datasource.prototype), "update", this).call(this, node, decorations, _innerDecorations, this.validUpdate);
267
258
  }
268
259
  }, {
269
260
  key: "createDomRef",
@@ -380,21 +380,10 @@ var setSelectedCardAppearance = exports.setSelectedCardAppearance = function set
380
380
  }
381
381
  return false;
382
382
  }
383
- var attrs;
384
- if ((0, _platformFeatureFlags.fg)('platform.linking-platform.enable-datasource-appearance-toolbar')) {
385
- if ((0, _utils2.appearanceForNodeType)(selectedNode.type) === appearance && !selectedNode.attrs.datasource) {
386
- return false;
387
- }
388
- attrs = getAttrsForAppearance(appearance, selectedNode);
389
- } else {
390
- if ((0, _utils2.appearanceForNodeType)(selectedNode.type) === appearance) {
391
- return false;
392
- }
393
- var isEmbed = appearance === 'embed';
394
- attrs = isEmbed ? _objectSpread(_objectSpread({}, selectedNode.attrs), {}, {
395
- layout: 'center'
396
- }) : selectedNode.attrs;
383
+ if ((0, _utils2.appearanceForNodeType)(selectedNode.type) === appearance && !selectedNode.attrs.datasource) {
384
+ return false;
397
385
  }
386
+ var attrs = getAttrsForAppearance(appearance, selectedNode);
398
387
  var _state$selection = state.selection,
399
388
  from = _state$selection.from,
400
389
  to = _state$selection.to;
@@ -471,9 +460,7 @@ var updateCardViaDatasource = exports.updateCardViaDatasource = function updateC
471
460
  if (isColumnChange || isUrlChange) {
472
461
  tr.setNodeMarkup(from, schemaNodes.blockCard, _objectSpread(_objectSpread({}, oldAttrs), newAdf.attrs));
473
462
  }
474
- } else if (
475
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
476
- (0, _platformFeatureFlags.fg)('platform.linking-platform.enable-datasource-appearance-toolbar') && node.type.isText) {
463
+ } else if (node.type.isText) {
477
464
  // url to datasource
478
465
  var link;
479
466
  state.doc.nodesBetween(from, to, function (node, pos) {
@@ -553,12 +540,10 @@ var getAttrsForAppearance = exports.getAttrsForAppearance = function getAttrsFor
553
540
  return selectedNode.attrs;
554
541
  };
555
542
  var updateDatasourceStash = function updateDatasourceStash(tr, selectedNode) {
556
- if ((0, _platformFeatureFlags.fg)('platform.linking-platform.enable-datasource-appearance-toolbar')) {
557
- if ((0, _utils2.isDatasourceNode)(selectedNode) && !(0, _utils2.isDatasourceConfigEditable)(selectedNode.attrs.datasource.id) && selectedNode.attrs.url) {
558
- (0, _actions.setDatasourceStash)(tr, {
559
- url: selectedNode.attrs.url,
560
- views: selectedNode.attrs.datasource.views
561
- });
562
- }
543
+ if ((0, _utils2.isDatasourceNode)(selectedNode) && !(0, _utils2.isDatasourceConfigEditable)(selectedNode.attrs.datasource.id) && selectedNode.attrs.url) {
544
+ (0, _actions.setDatasourceStash)(tr, {
545
+ url: selectedNode.attrs.url,
546
+ views: selectedNode.attrs.datasource.views
547
+ });
563
548
  }
564
549
  };
@@ -125,7 +125,7 @@ var createPlugin = exports.createPlugin = function createPlugin(options, pluginI
125
125
  var events = (0, _eventsFromTr.eventsFromTransaction)(tr, prevEditorState);
126
126
  cardPluginEvents.push.apply(cardPluginEvents, (0, _toConsumableArray2.default)(events));
127
127
  }
128
- if (!meta && (0, _platformFeatureFlags.fg)('platform.linking-platform.enable-datasource-appearance-toolbar')) {
128
+ if (!meta) {
129
129
  if (pluginState.datasourceTableRef) {
130
130
  if (!(tr.selection instanceof _state.NodeSelection) || !tr.selection.node.attrs.datasource) {
131
131
  // disable resize button when switching from datasource to block card
@@ -303,7 +303,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
303
303
  // This code will be executed only for appearances such as "inline", "block" & "embed"
304
304
  // For url appearance, please see HyperlinkToolbarAppearanceProps
305
305
  if (currentAppearance) {
306
- var showDatasourceAppearance = allowDatasource && url && (0, _platformFeatureFlags.fg)('platform.linking-platform.enable-datasource-appearance-toolbar');
306
+ var showDatasourceAppearance = allowDatasource && url;
307
307
  toolbarItems.unshift.apply(toolbarItems, (0, _toConsumableArray2.default)(getToolbarViewedItem(url, currentAppearance)).concat([{
308
308
  type: 'custom',
309
309
  fallback: [],
@@ -418,11 +418,6 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
418
418
  if (!metadata.url) {
419
419
  return false;
420
420
  }
421
- if (
422
- // FF that controls visibily of the additional toolbar buttons
423
- !(0, _platformFeatureFlags.fg)('platform.linking-platform.enable-datasource-appearance-toolbar')) {
424
- return false;
425
- }
426
421
 
427
422
  // FF to enable additional toolbar buttons based on if the datasource is configurable or not
428
423
  return (0, _platformFeatureFlags.fg)('platform.linking-platform.datasource-enable-toolbar-buttons-for-all-datasources') ? true : !(0, _utils3.isDatasourceConfigEditable)(datasourceId);
@@ -11,7 +11,6 @@ var _ui = require("@atlaskit/editor-common/ui");
11
11
  var _utils = require("@atlaskit/editor-common/utils");
12
12
  var _state = require("@atlaskit/editor-prosemirror/state");
13
13
  var _linkDatasource = require("@atlaskit/link-datasource");
14
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
14
  var _primitives = require("@atlaskit/primitives");
16
15
  var _doc = require("../pm-plugins/doc");
17
16
  var _pluginKey = require("../pm-plugins/plugin-key");
@@ -58,22 +57,18 @@ var DatasourceAppearanceButtonWithCardContext = function DatasourceAppearanceBut
58
57
  }, url);
59
58
  var selection = editorState.selection;
60
59
  var existingNode;
61
- if ((0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.enable-datasource-appearance-toolbar')) {
62
- // Check if the selection contains a link mark
63
- var $pos = editorState.doc.resolve(selection.from);
64
- var isLinkMark = $pos.marks().some(function (mark) {
65
- return mark.type === editorState.schema.marks.link;
66
- });
60
+ // Check if the selection contains a link mark
61
+ var $pos = editorState.doc.resolve(selection.from);
62
+ var isLinkMark = $pos.marks().some(function (mark) {
63
+ return mark.type === editorState.schema.marks.link;
64
+ });
67
65
 
68
- // When selection is a TextNode and a link Mark is present return that node
69
- if (selection instanceof _state.NodeSelection) {
70
- existingNode = selection.node;
71
- } else if (isLinkMark) {
72
- var _editorState$doc$node;
73
- existingNode = (_editorState$doc$node = editorState.doc.nodeAt(selection.from)) !== null && _editorState$doc$node !== void 0 ? _editorState$doc$node : undefined;
74
- }
75
- } else {
76
- existingNode = selection instanceof _state.NodeSelection ? selection.node : undefined;
66
+ // When selection is a TextNode and a link Mark is present return that node
67
+ if (selection instanceof _state.NodeSelection) {
68
+ existingNode = selection.node;
69
+ } else if (isLinkMark) {
70
+ var _editorState$doc$node;
71
+ existingNode = (_editorState$doc$node = editorState.doc.nodeAt(selection.from)) !== null && _editorState$doc$node !== void 0 ? _editorState$doc$node : undefined;
77
72
  }
78
73
  if (existingNode) {
79
74
  (0, _doc.updateCardViaDatasource)({
@@ -10,7 +10,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
11
  var _react = _interopRequireWildcard(require("react"));
12
12
  var _state = require("@atlaskit/editor-prosemirror/state");
13
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
13
  var _actions = require("../../pm-plugins/actions");
15
14
  var _doc = require("../../pm-plugins/doc");
16
15
  var _useFetchDatasourceInfo = require("../useFetchDatasourceInfo");
@@ -97,21 +96,17 @@ var useUpdateAdf = function useUpdateAdf(view, existingNode) {
97
96
  var getExistingNode = function getExistingNode(state) {
98
97
  var selection = state.selection;
99
98
  var existingNode;
100
- if ((0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.enable-datasource-appearance-toolbar')) {
101
- // Check if the selection contains a link mark
102
- var isLinkMark = state.doc.resolve(selection.from).marks().some(function (mark) {
103
- return mark.type === state.schema.marks.link;
104
- });
99
+ // Check if the selection contains a link mark
100
+ var isLinkMark = state.doc.resolve(selection.from).marks().some(function (mark) {
101
+ return mark.type === state.schema.marks.link;
102
+ });
105
103
 
106
- // When selection is a TextNode and a link Mark is present return that node
107
- if (selection instanceof _state.NodeSelection) {
108
- existingNode = selection.node;
109
- } else if (isLinkMark) {
110
- var _state$doc$nodeAt;
111
- existingNode = (_state$doc$nodeAt = state.doc.nodeAt(selection.from)) !== null && _state$doc$nodeAt !== void 0 ? _state$doc$nodeAt : undefined;
112
- }
113
- } else {
114
- existingNode = selection instanceof _state.NodeSelection ? selection.node : undefined;
104
+ // When selection is a TextNode and a link Mark is present return that node
105
+ if (selection instanceof _state.NodeSelection) {
106
+ existingNode = selection.node;
107
+ } else if (isLinkMark) {
108
+ var _state$doc$nodeAt;
109
+ existingNode = (_state$doc$nodeAt = state.doc.nodeAt(selection.from)) !== null && _state$doc$nodeAt !== void 0 ? _state$doc$nodeAt : undefined;
115
110
  }
116
111
  return existingNode;
117
112
  };
@@ -162,7 +162,7 @@ function HyperlinkToolbarAppearanceFunctional(props) {
162
162
  allowBlockCards: cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowBlockCards,
163
163
  platform: platform,
164
164
  editorAnalyticsApi: editorAnalyticsApi
165
- }), (cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowDatasource) && (0, _platformFeatureFlags.fg)('platform.linking-platform.enable-datasource-appearance-toolbar') && /*#__PURE__*/_react.default.createElement(_DatasourceAppearanceButton.DatasourceAppearanceButton, {
165
+ }), (cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowDatasource) && /*#__PURE__*/_react.default.createElement(_DatasourceAppearanceButton.DatasourceAppearanceButton, {
166
166
  intl: intl,
167
167
  url: url,
168
168
  editorState: editorState,
@@ -340,7 +340,7 @@ var HyperlinkToolbarAppearanceClass = /*#__PURE__*/function (_Component) {
340
340
  allowBlockCards: cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowBlockCards,
341
341
  platform: platform,
342
342
  editorAnalyticsApi: editorAnalyticsApi
343
- }), (cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowDatasource) && (0, _platformFeatureFlags.fg)('platform.linking-platform.enable-datasource-appearance-toolbar') && /*#__PURE__*/_react.default.createElement(_DatasourceAppearanceButton.DatasourceAppearanceButton, {
343
+ }), (cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowDatasource) && /*#__PURE__*/_react.default.createElement(_DatasourceAppearanceButton.DatasourceAppearanceButton, {
344
344
  intl: intl,
345
345
  url: url,
346
346
  editorState: editorState,
package/dist/cjs/utils.js CHANGED
@@ -10,7 +10,6 @@ var _model = require("@atlaskit/editor-prosemirror/model");
10
10
  var _state = require("@atlaskit/editor-prosemirror/state");
11
11
  var _resolvedAttributes = require("@atlaskit/link-analytics/resolved-attributes");
12
12
  var _linkDatasource = require("@atlaskit/link-datasource");
13
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
13
  var _pluginKey = require("./pm-plugins/plugin-key");
15
14
  var appearanceForNodeType = exports.appearanceForNodeType = function appearanceForNodeType(spec) {
16
15
  if (spec.name === 'inlineCard') {
@@ -81,10 +80,7 @@ var getResolvedAttributesFromStore = exports.getResolvedAttributesFromStore = fu
81
80
  }, urlState === null || urlState === void 0 ? void 0 : urlState.details);
82
81
  };
83
82
  var isDatasourceConfigEditable = exports.isDatasourceConfigEditable = function isDatasourceConfigEditable(datasourceId) {
84
- var datasourcesWithConfigModal = [_linkDatasource.JIRA_LIST_OF_LINKS_DATASOURCE_ID, _linkDatasource.ASSETS_LIST_OF_LINKS_DATASOURCE_ID];
85
- if ((0, _platformFeatureFlags.fg)('platform.linking-platform.datasource.enable-confluence-search-modal')) {
86
- datasourcesWithConfigModal.push(_linkDatasource.CONFLUENCE_SEARCH_DATASOURCE_ID);
87
- }
83
+ var datasourcesWithConfigModal = [_linkDatasource.JIRA_LIST_OF_LINKS_DATASOURCE_ID, _linkDatasource.ASSETS_LIST_OF_LINKS_DATASOURCE_ID, _linkDatasource.CONFLUENCE_SEARCH_DATASOURCE_ID];
88
84
  return datasourcesWithConfigModal.includes(datasourceId);
89
85
  };
90
86
 
@@ -204,18 +204,12 @@ export class Datasource extends ReactNodeView {
204
204
  // Need this function to check if the datasource attribute was added or not to a blockCard.
205
205
  // If not, we return false so we can get the node to re-render properly as a block node instead.
206
206
  // Otherwise, the node view will still consider the node as a Datasource and render a such.
207
- validUpdate(currentNode, newNode) {
208
- if (fg('platform.linking-platform.enable-datasource-appearance-toolbar')) {
209
- var _newNode$attrs;
210
- return !!((_newNode$attrs = newNode.attrs) !== null && _newNode$attrs !== void 0 && _newNode$attrs.datasource);
211
- }
212
- return true;
207
+ validUpdate(_, newNode) {
208
+ var _newNode$attrs;
209
+ return !!((_newNode$attrs = newNode.attrs) !== null && _newNode$attrs !== void 0 && _newNode$attrs.datasource);
213
210
  }
214
- update(node, decorations, _innerDecorations, validUpdate = () => true) {
215
- if (fg('platform.linking-platform.enable-datasource-appearance-toolbar')) {
216
- return super.update(node, decorations, _innerDecorations, this.validUpdate);
217
- }
218
- return super.update(node, decorations, _innerDecorations, validUpdate);
211
+ update(node, decorations, _innerDecorations) {
212
+ return super.update(node, decorations, _innerDecorations, this.validUpdate);
219
213
  }
220
214
  createDomRef() {
221
215
  const domRef = document.createElement('div');
@@ -354,22 +354,10 @@ export const setSelectedCardAppearance = (appearance, editorAnalyticsApi) => (st
354
354
  }
355
355
  return false;
356
356
  }
357
- let attrs;
358
- if (fg('platform.linking-platform.enable-datasource-appearance-toolbar')) {
359
- if (appearanceForNodeType(selectedNode.type) === appearance && !selectedNode.attrs.datasource) {
360
- return false;
361
- }
362
- attrs = getAttrsForAppearance(appearance, selectedNode);
363
- } else {
364
- if (appearanceForNodeType(selectedNode.type) === appearance) {
365
- return false;
366
- }
367
- const isEmbed = appearance === 'embed';
368
- attrs = isEmbed ? {
369
- ...selectedNode.attrs,
370
- layout: 'center'
371
- } : selectedNode.attrs;
357
+ if (appearanceForNodeType(selectedNode.type) === appearance && !selectedNode.attrs.datasource) {
358
+ return false;
372
359
  }
360
+ const attrs = getAttrsForAppearance(appearance, selectedNode);
373
361
  const {
374
362
  from,
375
363
  to
@@ -452,9 +440,7 @@ export const updateCardViaDatasource = args => {
452
440
  ...newAdf.attrs
453
441
  });
454
442
  }
455
- } else if (
456
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
457
- fg('platform.linking-platform.enable-datasource-appearance-toolbar') && node.type.isText) {
443
+ } else if (node.type.isText) {
458
444
  // url to datasource
459
445
  let link;
460
446
  state.doc.nodesBetween(from, to, (node, pos) => {
@@ -541,12 +527,10 @@ export const getAttrsForAppearance = (appearance, selectedNode) => {
541
527
  return selectedNode.attrs;
542
528
  };
543
529
  const updateDatasourceStash = (tr, selectedNode) => {
544
- if (fg('platform.linking-platform.enable-datasource-appearance-toolbar')) {
545
- if (isDatasourceNode(selectedNode) && !isDatasourceConfigEditable(selectedNode.attrs.datasource.id) && selectedNode.attrs.url) {
546
- setDatasourceStash(tr, {
547
- url: selectedNode.attrs.url,
548
- views: selectedNode.attrs.datasource.views
549
- });
550
- }
530
+ if (isDatasourceNode(selectedNode) && !isDatasourceConfigEditable(selectedNode.attrs.datasource.id) && selectedNode.attrs.url) {
531
+ setDatasourceStash(tr, {
532
+ url: selectedNode.attrs.url,
533
+ views: selectedNode.attrs.datasource.views
534
+ });
551
535
  }
552
536
  };
@@ -111,7 +111,7 @@ export const createPlugin = (options, pluginInjectionApi) => pmPluginFactoryPara
111
111
  const events = eventsFromTransaction(tr, prevEditorState);
112
112
  cardPluginEvents.push(...events);
113
113
  }
114
- if (!meta && fg('platform.linking-platform.enable-datasource-appearance-toolbar')) {
114
+ if (!meta) {
115
115
  if (pluginState.datasourceTableRef) {
116
116
  if (!(tr.selection instanceof NodeSelection) || !tr.selection.node.attrs.datasource) {
117
117
  // disable resize button when switching from datasource to block card
@@ -297,7 +297,7 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
297
297
  // This code will be executed only for appearances such as "inline", "block" & "embed"
298
298
  // For url appearance, please see HyperlinkToolbarAppearanceProps
299
299
  if (currentAppearance) {
300
- const showDatasourceAppearance = allowDatasource && url && fg('platform.linking-platform.enable-datasource-appearance-toolbar');
300
+ const showDatasourceAppearance = allowDatasource && url;
301
301
  toolbarItems.unshift(...getToolbarViewedItem(url, currentAppearance), {
302
302
  type: 'custom',
303
303
  fallback: [],
@@ -405,11 +405,6 @@ const getDatasourceButtonGroup = (metadata, intl, editorAnalyticsApi, node, hove
405
405
  if (!metadata.url) {
406
406
  return false;
407
407
  }
408
- if (
409
- // FF that controls visibily of the additional toolbar buttons
410
- !fg('platform.linking-platform.enable-datasource-appearance-toolbar')) {
411
- return false;
412
- }
413
408
 
414
409
  // FF to enable additional toolbar buttons based on if the datasource is configurable or not
415
410
  return fg('platform.linking-platform.datasource-enable-toolbar-buttons-for-all-datasources') ? true : !isDatasourceConfigEditable(datasourceId);
@@ -11,7 +11,6 @@ import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
11
11
  import { canRenderDatasource } from '@atlaskit/editor-common/utils';
12
12
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
13
13
  import { buildDatasourceAdf } from '@atlaskit/link-datasource';
14
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
15
14
  import { Flex } from '@atlaskit/primitives';
16
15
  import { updateCardViaDatasource } from '../pm-plugins/doc';
17
16
  import { pluginKey } from '../pm-plugins/plugin-key';
@@ -55,20 +54,16 @@ const DatasourceAppearanceButtonWithCardContext = ({
55
54
  selection
56
55
  } = editorState;
57
56
  let existingNode;
58
- if (getBooleanFF('platform.linking-platform.enable-datasource-appearance-toolbar')) {
59
- // Check if the selection contains a link mark
60
- const $pos = editorState.doc.resolve(selection.from);
61
- const isLinkMark = $pos.marks().some(mark => mark.type === editorState.schema.marks.link);
57
+ // Check if the selection contains a link mark
58
+ const $pos = editorState.doc.resolve(selection.from);
59
+ const isLinkMark = $pos.marks().some(mark => mark.type === editorState.schema.marks.link);
62
60
 
63
- // When selection is a TextNode and a link Mark is present return that node
64
- if (selection instanceof NodeSelection) {
65
- existingNode = selection.node;
66
- } else if (isLinkMark) {
67
- var _editorState$doc$node;
68
- existingNode = (_editorState$doc$node = editorState.doc.nodeAt(selection.from)) !== null && _editorState$doc$node !== void 0 ? _editorState$doc$node : undefined;
69
- }
70
- } else {
71
- existingNode = selection instanceof NodeSelection ? selection.node : undefined;
61
+ // When selection is a TextNode and a link Mark is present return that node
62
+ if (selection instanceof NodeSelection) {
63
+ existingNode = selection.node;
64
+ } else if (isLinkMark) {
65
+ var _editorState$doc$node;
66
+ existingNode = (_editorState$doc$node = editorState.doc.nodeAt(selection.from)) !== null && _editorState$doc$node !== void 0 ? _editorState$doc$node : undefined;
72
67
  }
73
68
  if (existingNode) {
74
69
  updateCardViaDatasource({
@@ -1,6 +1,5 @@
1
1
  import React, { useCallback } from 'react';
2
2
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
3
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
4
3
  import { hideDatasourceModal } from '../../pm-plugins/actions';
5
4
  import { insertDatasource, updateCardViaDatasource } from '../../pm-plugins/doc';
6
5
  import { useFetchDatasourceInfo } from '../useFetchDatasourceInfo';
@@ -90,19 +89,15 @@ const getExistingNode = state => {
90
89
  selection
91
90
  } = state;
92
91
  let existingNode;
93
- if (getBooleanFF('platform.linking-platform.enable-datasource-appearance-toolbar')) {
94
- // Check if the selection contains a link mark
95
- const isLinkMark = state.doc.resolve(selection.from).marks().some(mark => mark.type === state.schema.marks.link);
92
+ // Check if the selection contains a link mark
93
+ const isLinkMark = state.doc.resolve(selection.from).marks().some(mark => mark.type === state.schema.marks.link);
96
94
 
97
- // When selection is a TextNode and a link Mark is present return that node
98
- if (selection instanceof NodeSelection) {
99
- existingNode = selection.node;
100
- } else if (isLinkMark) {
101
- var _state$doc$nodeAt;
102
- existingNode = (_state$doc$nodeAt = state.doc.nodeAt(selection.from)) !== null && _state$doc$nodeAt !== void 0 ? _state$doc$nodeAt : undefined;
103
- }
104
- } else {
105
- existingNode = selection instanceof NodeSelection ? selection.node : undefined;
95
+ // When selection is a TextNode and a link Mark is present return that node
96
+ if (selection instanceof NodeSelection) {
97
+ existingNode = selection.node;
98
+ } else if (isLinkMark) {
99
+ var _state$doc$nodeAt;
100
+ existingNode = (_state$doc$nodeAt = state.doc.nodeAt(selection.from)) !== null && _state$doc$nodeAt !== void 0 ? _state$doc$nodeAt : undefined;
106
101
  }
107
102
  return existingNode;
108
103
  };
@@ -77,7 +77,7 @@ function HyperlinkToolbarAppearanceFunctional(props) {
77
77
  allowBlockCards: cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowBlockCards,
78
78
  platform: platform,
79
79
  editorAnalyticsApi: editorAnalyticsApi
80
- }), (cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowDatasource) && fg('platform.linking-platform.enable-datasource-appearance-toolbar') && /*#__PURE__*/React.createElement(DatasourceAppearanceButton, {
80
+ }), (cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowDatasource) && /*#__PURE__*/React.createElement(DatasourceAppearanceButton, {
81
81
  intl: intl,
82
82
  url: url,
83
83
  editorState: editorState,
@@ -173,7 +173,7 @@ class HyperlinkToolbarAppearanceClass extends Component {
173
173
  allowBlockCards: cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowBlockCards,
174
174
  platform: platform,
175
175
  editorAnalyticsApi: editorAnalyticsApi
176
- }), (cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowDatasource) && fg('platform.linking-platform.enable-datasource-appearance-toolbar') && /*#__PURE__*/React.createElement(DatasourceAppearanceButton, {
176
+ }), (cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowDatasource) && /*#__PURE__*/React.createElement(DatasourceAppearanceButton, {
177
177
  intl: intl,
178
178
  url: url,
179
179
  editorState: editorState,
@@ -2,7 +2,6 @@ import { Fragment } from '@atlaskit/editor-prosemirror/model';
2
2
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
3
3
  import { getResolvedAttributes } from '@atlaskit/link-analytics/resolved-attributes';
4
4
  import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID, CONFLUENCE_SEARCH_DATASOURCE_ID, JIRA_LIST_OF_LINKS_DATASOURCE_ID } from '@atlaskit/link-datasource';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { pluginKey } from './pm-plugins/plugin-key';
7
6
  export const appearanceForNodeType = spec => {
8
7
  if (spec.name === 'inlineCard') {
@@ -67,10 +66,7 @@ export const getResolvedAttributesFromStore = (url, display, store) => {
67
66
  }, urlState === null || urlState === void 0 ? void 0 : urlState.details);
68
67
  };
69
68
  export const isDatasourceConfigEditable = datasourceId => {
70
- const datasourcesWithConfigModal = [JIRA_LIST_OF_LINKS_DATASOURCE_ID, ASSETS_LIST_OF_LINKS_DATASOURCE_ID];
71
- if (fg('platform.linking-platform.datasource.enable-confluence-search-modal')) {
72
- datasourcesWithConfigModal.push(CONFLUENCE_SEARCH_DATASOURCE_ID);
73
- }
69
+ const datasourcesWithConfigModal = [JIRA_LIST_OF_LINKS_DATASOURCE_ID, ASSETS_LIST_OF_LINKS_DATASOURCE_ID, CONFLUENCE_SEARCH_DATASOURCE_ID];
74
70
  return datasourcesWithConfigModal.includes(datasourceId);
75
71
  };
76
72
 
@@ -243,23 +243,14 @@ export var Datasource = /*#__PURE__*/function (_ReactNodeView) {
243
243
  // Otherwise, the node view will still consider the node as a Datasource and render a such.
244
244
  _createClass(Datasource, [{
245
245
  key: "validUpdate",
246
- value: function validUpdate(currentNode, newNode) {
247
- if (fg('platform.linking-platform.enable-datasource-appearance-toolbar')) {
248
- var _newNode$attrs;
249
- return !!((_newNode$attrs = newNode.attrs) !== null && _newNode$attrs !== void 0 && _newNode$attrs.datasource);
250
- }
251
- return true;
246
+ value: function validUpdate(_, newNode) {
247
+ var _newNode$attrs;
248
+ return !!((_newNode$attrs = newNode.attrs) !== null && _newNode$attrs !== void 0 && _newNode$attrs.datasource);
252
249
  }
253
250
  }, {
254
251
  key: "update",
255
252
  value: function update(node, decorations, _innerDecorations) {
256
- var validUpdate = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : function () {
257
- return true;
258
- };
259
- if (fg('platform.linking-platform.enable-datasource-appearance-toolbar')) {
260
- return _get(_getPrototypeOf(Datasource.prototype), "update", this).call(this, node, decorations, _innerDecorations, this.validUpdate);
261
- }
262
- return _get(_getPrototypeOf(Datasource.prototype), "update", this).call(this, node, decorations, _innerDecorations, validUpdate);
253
+ return _get(_getPrototypeOf(Datasource.prototype), "update", this).call(this, node, decorations, _innerDecorations, this.validUpdate);
263
254
  }
264
255
  }, {
265
256
  key: "createDomRef",
@@ -374,21 +374,10 @@ export var setSelectedCardAppearance = function setSelectedCardAppearance(appear
374
374
  }
375
375
  return false;
376
376
  }
377
- var attrs;
378
- if (fg('platform.linking-platform.enable-datasource-appearance-toolbar')) {
379
- if (appearanceForNodeType(selectedNode.type) === appearance && !selectedNode.attrs.datasource) {
380
- return false;
381
- }
382
- attrs = getAttrsForAppearance(appearance, selectedNode);
383
- } else {
384
- if (appearanceForNodeType(selectedNode.type) === appearance) {
385
- return false;
386
- }
387
- var isEmbed = appearance === 'embed';
388
- attrs = isEmbed ? _objectSpread(_objectSpread({}, selectedNode.attrs), {}, {
389
- layout: 'center'
390
- }) : selectedNode.attrs;
377
+ if (appearanceForNodeType(selectedNode.type) === appearance && !selectedNode.attrs.datasource) {
378
+ return false;
391
379
  }
380
+ var attrs = getAttrsForAppearance(appearance, selectedNode);
392
381
  var _state$selection = state.selection,
393
382
  from = _state$selection.from,
394
383
  to = _state$selection.to;
@@ -465,9 +454,7 @@ export var updateCardViaDatasource = function updateCardViaDatasource(args) {
465
454
  if (isColumnChange || isUrlChange) {
466
455
  tr.setNodeMarkup(from, schemaNodes.blockCard, _objectSpread(_objectSpread({}, oldAttrs), newAdf.attrs));
467
456
  }
468
- } else if (
469
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
470
- fg('platform.linking-platform.enable-datasource-appearance-toolbar') && node.type.isText) {
457
+ } else if (node.type.isText) {
471
458
  // url to datasource
472
459
  var link;
473
460
  state.doc.nodesBetween(from, to, function (node, pos) {
@@ -547,12 +534,10 @@ export var getAttrsForAppearance = function getAttrsForAppearance(appearance, se
547
534
  return selectedNode.attrs;
548
535
  };
549
536
  var updateDatasourceStash = function updateDatasourceStash(tr, selectedNode) {
550
- if (fg('platform.linking-platform.enable-datasource-appearance-toolbar')) {
551
- if (isDatasourceNode(selectedNode) && !isDatasourceConfigEditable(selectedNode.attrs.datasource.id) && selectedNode.attrs.url) {
552
- setDatasourceStash(tr, {
553
- url: selectedNode.attrs.url,
554
- views: selectedNode.attrs.datasource.views
555
- });
556
- }
537
+ if (isDatasourceNode(selectedNode) && !isDatasourceConfigEditable(selectedNode.attrs.datasource.id) && selectedNode.attrs.url) {
538
+ setDatasourceStash(tr, {
539
+ url: selectedNode.attrs.url,
540
+ views: selectedNode.attrs.datasource.views
541
+ });
557
542
  }
558
543
  };
@@ -112,7 +112,7 @@ export var createPlugin = function createPlugin(options, pluginInjectionApi) {
112
112
  var events = eventsFromTransaction(tr, prevEditorState);
113
113
  cardPluginEvents.push.apply(cardPluginEvents, _toConsumableArray(events));
114
114
  }
115
- if (!meta && fg('platform.linking-platform.enable-datasource-appearance-toolbar')) {
115
+ if (!meta) {
116
116
  if (pluginState.datasourceTableRef) {
117
117
  if (!(tr.selection instanceof NodeSelection) || !tr.selection.node.attrs.datasource) {
118
118
  // disable resize button when switching from datasource to block card
@@ -293,7 +293,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
293
293
  // This code will be executed only for appearances such as "inline", "block" & "embed"
294
294
  // For url appearance, please see HyperlinkToolbarAppearanceProps
295
295
  if (currentAppearance) {
296
- var showDatasourceAppearance = allowDatasource && url && fg('platform.linking-platform.enable-datasource-appearance-toolbar');
296
+ var showDatasourceAppearance = allowDatasource && url;
297
297
  toolbarItems.unshift.apply(toolbarItems, _toConsumableArray(getToolbarViewedItem(url, currentAppearance)).concat([{
298
298
  type: 'custom',
299
299
  fallback: [],
@@ -408,11 +408,6 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
408
408
  if (!metadata.url) {
409
409
  return false;
410
410
  }
411
- if (
412
- // FF that controls visibily of the additional toolbar buttons
413
- !fg('platform.linking-platform.enable-datasource-appearance-toolbar')) {
414
- return false;
415
- }
416
411
 
417
412
  // FF to enable additional toolbar buttons based on if the datasource is configurable or not
418
413
  return fg('platform.linking-platform.datasource-enable-toolbar-buttons-for-all-datasources') ? true : !isDatasourceConfigEditable(datasourceId);
@@ -11,7 +11,6 @@ import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
11
11
  import { canRenderDatasource } from '@atlaskit/editor-common/utils';
12
12
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
13
13
  import { buildDatasourceAdf } from '@atlaskit/link-datasource';
14
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
15
14
  import { Flex } from '@atlaskit/primitives';
16
15
  import { updateCardViaDatasource } from '../pm-plugins/doc';
17
16
  import { pluginKey } from '../pm-plugins/plugin-key';
@@ -51,22 +50,18 @@ var DatasourceAppearanceButtonWithCardContext = function DatasourceAppearanceBut
51
50
  }, url);
52
51
  var selection = editorState.selection;
53
52
  var existingNode;
54
- if (getBooleanFF('platform.linking-platform.enable-datasource-appearance-toolbar')) {
55
- // Check if the selection contains a link mark
56
- var $pos = editorState.doc.resolve(selection.from);
57
- var isLinkMark = $pos.marks().some(function (mark) {
58
- return mark.type === editorState.schema.marks.link;
59
- });
53
+ // Check if the selection contains a link mark
54
+ var $pos = editorState.doc.resolve(selection.from);
55
+ var isLinkMark = $pos.marks().some(function (mark) {
56
+ return mark.type === editorState.schema.marks.link;
57
+ });
60
58
 
61
- // When selection is a TextNode and a link Mark is present return that node
62
- if (selection instanceof NodeSelection) {
63
- existingNode = selection.node;
64
- } else if (isLinkMark) {
65
- var _editorState$doc$node;
66
- existingNode = (_editorState$doc$node = editorState.doc.nodeAt(selection.from)) !== null && _editorState$doc$node !== void 0 ? _editorState$doc$node : undefined;
67
- }
68
- } else {
69
- existingNode = selection instanceof NodeSelection ? selection.node : undefined;
59
+ // When selection is a TextNode and a link Mark is present return that node
60
+ if (selection instanceof NodeSelection) {
61
+ existingNode = selection.node;
62
+ } else if (isLinkMark) {
63
+ var _editorState$doc$node;
64
+ existingNode = (_editorState$doc$node = editorState.doc.nodeAt(selection.from)) !== null && _editorState$doc$node !== void 0 ? _editorState$doc$node : undefined;
70
65
  }
71
66
  if (existingNode) {
72
67
  updateCardViaDatasource({
@@ -7,7 +7,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
7
7
  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; }
8
8
  import React, { useCallback } from 'react';
9
9
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
10
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
11
10
  import { hideDatasourceModal } from '../../pm-plugins/actions';
12
11
  import { insertDatasource, updateCardViaDatasource } from '../../pm-plugins/doc';
13
12
  import { useFetchDatasourceInfo } from '../useFetchDatasourceInfo';
@@ -87,21 +86,17 @@ var useUpdateAdf = function useUpdateAdf(view, existingNode) {
87
86
  var getExistingNode = function getExistingNode(state) {
88
87
  var selection = state.selection;
89
88
  var existingNode;
90
- if (getBooleanFF('platform.linking-platform.enable-datasource-appearance-toolbar')) {
91
- // Check if the selection contains a link mark
92
- var isLinkMark = state.doc.resolve(selection.from).marks().some(function (mark) {
93
- return mark.type === state.schema.marks.link;
94
- });
89
+ // Check if the selection contains a link mark
90
+ var isLinkMark = state.doc.resolve(selection.from).marks().some(function (mark) {
91
+ return mark.type === state.schema.marks.link;
92
+ });
95
93
 
96
- // When selection is a TextNode and a link Mark is present return that node
97
- if (selection instanceof NodeSelection) {
98
- existingNode = selection.node;
99
- } else if (isLinkMark) {
100
- var _state$doc$nodeAt;
101
- existingNode = (_state$doc$nodeAt = state.doc.nodeAt(selection.from)) !== null && _state$doc$nodeAt !== void 0 ? _state$doc$nodeAt : undefined;
102
- }
103
- } else {
104
- existingNode = selection instanceof NodeSelection ? selection.node : undefined;
94
+ // When selection is a TextNode and a link Mark is present return that node
95
+ if (selection instanceof NodeSelection) {
96
+ existingNode = selection.node;
97
+ } else if (isLinkMark) {
98
+ var _state$doc$nodeAt;
99
+ existingNode = (_state$doc$nodeAt = state.doc.nodeAt(selection.from)) !== null && _state$doc$nodeAt !== void 0 ? _state$doc$nodeAt : undefined;
105
100
  }
106
101
  return existingNode;
107
102
  };
@@ -152,7 +152,7 @@ function HyperlinkToolbarAppearanceFunctional(props) {
152
152
  allowBlockCards: cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowBlockCards,
153
153
  platform: platform,
154
154
  editorAnalyticsApi: editorAnalyticsApi
155
- }), (cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowDatasource) && fg('platform.linking-platform.enable-datasource-appearance-toolbar') && /*#__PURE__*/React.createElement(DatasourceAppearanceButton, {
155
+ }), (cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowDatasource) && /*#__PURE__*/React.createElement(DatasourceAppearanceButton, {
156
156
  intl: intl,
157
157
  url: url,
158
158
  editorState: editorState,
@@ -330,7 +330,7 @@ var HyperlinkToolbarAppearanceClass = /*#__PURE__*/function (_Component) {
330
330
  allowBlockCards: cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowBlockCards,
331
331
  platform: platform,
332
332
  editorAnalyticsApi: editorAnalyticsApi
333
- }), (cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowDatasource) && fg('platform.linking-platform.enable-datasource-appearance-toolbar') && /*#__PURE__*/React.createElement(DatasourceAppearanceButton, {
333
+ }), (cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowDatasource) && /*#__PURE__*/React.createElement(DatasourceAppearanceButton, {
334
334
  intl: intl,
335
335
  url: url,
336
336
  editorState: editorState,
package/dist/esm/utils.js CHANGED
@@ -3,7 +3,6 @@ import { Fragment } from '@atlaskit/editor-prosemirror/model';
3
3
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
4
4
  import { getResolvedAttributes } from '@atlaskit/link-analytics/resolved-attributes';
5
5
  import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID, CONFLUENCE_SEARCH_DATASOURCE_ID, JIRA_LIST_OF_LINKS_DATASOURCE_ID } from '@atlaskit/link-datasource';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
6
  import { pluginKey } from './pm-plugins/plugin-key';
8
7
  export var appearanceForNodeType = function appearanceForNodeType(spec) {
9
8
  if (spec.name === 'inlineCard') {
@@ -74,10 +73,7 @@ export var getResolvedAttributesFromStore = function getResolvedAttributesFromSt
74
73
  }, urlState === null || urlState === void 0 ? void 0 : urlState.details);
75
74
  };
76
75
  export var isDatasourceConfigEditable = function isDatasourceConfigEditable(datasourceId) {
77
- var datasourcesWithConfigModal = [JIRA_LIST_OF_LINKS_DATASOURCE_ID, ASSETS_LIST_OF_LINKS_DATASOURCE_ID];
78
- if (fg('platform.linking-platform.datasource.enable-confluence-search-modal')) {
79
- datasourcesWithConfigModal.push(CONFLUENCE_SEARCH_DATASOURCE_ID);
80
- }
76
+ var datasourcesWithConfigModal = [JIRA_LIST_OF_LINKS_DATASOURCE_ID, ASSETS_LIST_OF_LINKS_DATASOURCE_ID, CONFLUENCE_SEARCH_DATASOURCE_ID];
81
77
  return datasourcesWithConfigModal.includes(datasourceId);
82
78
  };
83
79
 
@@ -46,8 +46,8 @@ export declare class Datasource extends ReactNodeView<DatasourceProps> {
46
46
  private tableWidth;
47
47
  private isNodeNested;
48
48
  constructor(props: DatasourceProps);
49
- validUpdate(currentNode: PMNode, newNode: PMNode): boolean;
50
- update(node: PMNode, decorations: ReadonlyArray<Decoration>, _innerDecorations?: DecorationSource, validUpdate?: (currentNode: PMNode, newNode: PMNode) => boolean): boolean;
49
+ validUpdate(_: PMNode, newNode: PMNode): boolean;
50
+ update(node: PMNode, decorations: ReadonlyArray<Decoration>, _innerDecorations?: DecorationSource): boolean;
51
51
  createDomRef(): HTMLElement;
52
52
  /**
53
53
  * Node views may render interactive elements that should not have their events reach editor
@@ -46,8 +46,8 @@ export declare class Datasource extends ReactNodeView<DatasourceProps> {
46
46
  private tableWidth;
47
47
  private isNodeNested;
48
48
  constructor(props: DatasourceProps);
49
- validUpdate(currentNode: PMNode, newNode: PMNode): boolean;
50
- update(node: PMNode, decorations: ReadonlyArray<Decoration>, _innerDecorations?: DecorationSource, validUpdate?: (currentNode: PMNode, newNode: PMNode) => boolean): boolean;
49
+ validUpdate(_: PMNode, newNode: PMNode): boolean;
50
+ update(node: PMNode, decorations: ReadonlyArray<Decoration>, _innerDecorations?: DecorationSource): boolean;
51
51
  createDomRef(): HTMLElement;
52
52
  /**
53
53
  * Node views may render interactive elements that should not have their events reach editor
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "2.14.1",
3
+ "version": "2.15.0",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,28 +34,28 @@
34
34
  "@atlaskit/adf-schema": "^40.9.0",
35
35
  "@atlaskit/analytics-next": "^10.1.0",
36
36
  "@atlaskit/custom-steps": "^0.7.0",
37
- "@atlaskit/editor-common": "^88.8.0",
37
+ "@atlaskit/editor-common": "^88.11.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^1.8.0",
39
39
  "@atlaskit/editor-plugin-decorations": "^1.3.0",
40
40
  "@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
41
41
  "@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
42
42
  "@atlaskit/editor-plugin-feature-flags": "^1.2.0",
43
- "@atlaskit/editor-plugin-floating-toolbar": "^1.11.0",
43
+ "@atlaskit/editor-plugin-floating-toolbar": "^1.12.0",
44
44
  "@atlaskit/editor-plugin-grid": "^1.2.0",
45
45
  "@atlaskit/editor-plugin-width": "^1.3.0",
46
46
  "@atlaskit/editor-prosemirror": "5.0.1",
47
47
  "@atlaskit/editor-shared-styles": "^2.13.0",
48
48
  "@atlaskit/frontend-utilities": "^2.7.0",
49
- "@atlaskit/icon": "^22.15.0",
49
+ "@atlaskit/icon": "^22.16.0",
50
50
  "@atlaskit/link-analytics": "^8.5.0",
51
51
  "@atlaskit/link-client-extension": "^2.3.0",
52
- "@atlaskit/link-datasource": "^2.11.0",
52
+ "@atlaskit/link-datasource": "^2.12.0",
53
53
  "@atlaskit/linking-common": "^5.11.0",
54
54
  "@atlaskit/linking-types": "^9.0.0",
55
55
  "@atlaskit/menu": "2.12.2",
56
56
  "@atlaskit/platform-feature-flags": "^0.3.0",
57
57
  "@atlaskit/primitives": "^12.1.0",
58
- "@atlaskit/smart-card": "^27.19.0",
58
+ "@atlaskit/smart-card": "^27.20.0",
59
59
  "@atlaskit/theme": "^13.0.0",
60
60
  "@atlaskit/tokens": "^1.59.0",
61
61
  "@babel/runtime": "^7.0.0",
@@ -122,15 +122,9 @@
122
122
  "platform.linking-platform.datasource-word_wrap": {
123
123
  "type": "boolean"
124
124
  },
125
- "platform.linking-platform.enable-datasource-appearance-toolbar": {
126
- "type": "boolean"
127
- },
128
125
  "platform.linking-platform.datasource-enable-toolbar-buttons-for-all-datasources": {
129
126
  "type": "boolean"
130
127
  },
131
- "platform.linking-platform.datasource.enable-confluence-search-modal": {
132
- "type": "boolean"
133
- },
134
128
  "platform_editor_lazy-node-views": {
135
129
  "type": "boolean"
136
130
  },