@atlaskit/editor-plugin-card 0.14.19 → 0.14.20

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,11 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 0.14.20
4
+
5
+ ### Patch Changes
6
+
7
+ - [#61628](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61628) [`c1b054119172`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c1b054119172) - Fixed an issue where link deleteMethod attribute was set as unknown when changing a link to datasource table.
8
+
3
9
  ## 0.14.19
4
10
 
5
11
  ### Patch Changes
@@ -446,10 +446,6 @@ var updateCardFromDatasourceModal = exports.updateCardFromDatasourceModal = func
446
446
  var isUrlChange = ((_newAdf$attrs2 = newAdf.attrs) === null || _newAdf$attrs2 === void 0 ? void 0 : _newAdf$attrs2.url) !== ((_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.url);
447
447
  if (isColumnChange || isUrlChange) {
448
448
  tr.setNodeMarkup(from, schemaNodes.blockCard, _objectSpread(_objectSpread({}, node.attrs), newAdf.attrs));
449
- (0, _card.addLinkMetadata)(state.selection, tr, {
450
- action: _analytics.ACTION.UPDATED,
451
- sourceEvent: sourceEvent
452
- });
453
449
  }
454
450
  } else {
455
451
  // inline or blockCard to datasource
@@ -458,11 +454,11 @@ var updateCardFromDatasourceModal = exports.updateCardFromDatasourceModal = func
458
454
  } else if (newAdf.type === 'inlineCard') {
459
455
  // card type to inlineCard
460
456
  tr.setNodeMarkup(from, schemaNodes.inlineCard, newAdf.attrs);
461
- (0, _card.addLinkMetadata)(state.selection, tr, {
462
- action: _analytics.ACTION.UPDATED,
463
- sourceEvent: sourceEvent
464
- });
465
457
  }
458
+ (0, _card.addLinkMetadata)(state.selection, tr, {
459
+ action: _analytics.ACTION.UPDATED,
460
+ sourceEvent: sourceEvent
461
+ });
466
462
  (0, _actions.hideDatasourceModal)(tr);
467
463
  view.dispatch(tr.scrollIntoView());
468
464
  };
@@ -421,10 +421,6 @@ export const updateCardFromDatasourceModal = (state, node, newAdf, view, sourceE
421
421
  ...node.attrs,
422
422
  ...newAdf.attrs
423
423
  });
424
- addLinkMetadata(state.selection, tr, {
425
- action: ACTION.UPDATED,
426
- sourceEvent
427
- });
428
424
  }
429
425
  } else {
430
426
  // inline or blockCard to datasource
@@ -433,11 +429,11 @@ export const updateCardFromDatasourceModal = (state, node, newAdf, view, sourceE
433
429
  } else if (newAdf.type === 'inlineCard') {
434
430
  // card type to inlineCard
435
431
  tr.setNodeMarkup(from, schemaNodes.inlineCard, newAdf.attrs);
436
- addLinkMetadata(state.selection, tr, {
437
- action: ACTION.UPDATED,
438
- sourceEvent
439
- });
440
432
  }
433
+ addLinkMetadata(state.selection, tr, {
434
+ action: ACTION.UPDATED,
435
+ sourceEvent
436
+ });
441
437
  hideDatasourceModal(tr);
442
438
  view.dispatch(tr.scrollIntoView());
443
439
  };
@@ -439,10 +439,6 @@ export var updateCardFromDatasourceModal = function updateCardFromDatasourceModa
439
439
  var isUrlChange = ((_newAdf$attrs2 = newAdf.attrs) === null || _newAdf$attrs2 === void 0 ? void 0 : _newAdf$attrs2.url) !== ((_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.url);
440
440
  if (isColumnChange || isUrlChange) {
441
441
  tr.setNodeMarkup(from, schemaNodes.blockCard, _objectSpread(_objectSpread({}, node.attrs), newAdf.attrs));
442
- addLinkMetadata(state.selection, tr, {
443
- action: ACTION.UPDATED,
444
- sourceEvent: sourceEvent
445
- });
446
442
  }
447
443
  } else {
448
444
  // inline or blockCard to datasource
@@ -451,11 +447,11 @@ export var updateCardFromDatasourceModal = function updateCardFromDatasourceModa
451
447
  } else if (newAdf.type === 'inlineCard') {
452
448
  // card type to inlineCard
453
449
  tr.setNodeMarkup(from, schemaNodes.inlineCard, newAdf.attrs);
454
- addLinkMetadata(state.selection, tr, {
455
- action: ACTION.UPDATED,
456
- sourceEvent: sourceEvent
457
- });
458
450
  }
451
+ addLinkMetadata(state.selection, tr, {
452
+ action: ACTION.UPDATED,
453
+ sourceEvent: sourceEvent
454
+ });
459
455
  hideDatasourceModal(tr);
460
456
  view.dispatch(tr.scrollIntoView());
461
457
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "0.14.19",
3
+ "version": "0.14.20",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  "@atlaskit/adf-schema": "^35.1.1",
35
35
  "@atlaskit/analytics-next": "^9.1.0",
36
36
  "@atlaskit/custom-steps": "^0.0.9",
37
- "@atlaskit/editor-common": "^76.26.0",
37
+ "@atlaskit/editor-common": "^76.27.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^0.4.0",
39
39
  "@atlaskit/editor-plugin-decorations": "^0.2.0",
40
40
  "@atlaskit/editor-plugin-feature-flags": "^1.0.0",