@atlaskit/editor-plugin-card 25.0.7 → 26.0.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,21 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 26.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 25.0.8
10
+
11
+ ### Patch Changes
12
+
13
+ - [`3f172371c9b66`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3f172371c9b66) -
14
+ Preserve the selected Assets columns when only the AQL query changes, and persist datasource
15
+ updates that only change parameters. Both behind feature gate
16
+ `platform_lp_sllv_preserve_assets_columns`.
17
+ - Updated dependencies
18
+
3
19
  ## 25.0.7
4
20
 
5
21
  ### Patch Changes
@@ -608,7 +608,8 @@ var updateCardViaDatasource = exports.updateCardViaDatasource = function updateC
608
608
  oldViews = _ref5[0];
609
609
  var isColumnChange = !(0, _isEqual.default)(oldViews === null || oldViews === void 0 || (_oldViews$properties = oldViews.properties) === null || _oldViews$properties === void 0 ? void 0 : _oldViews$properties.columns, newViews === null || newViews === void 0 || (_newViews$properties = newViews.properties) === null || _newViews$properties === void 0 ? void 0 : _newViews$properties.columns);
610
610
  var isUrlChange = newAttrs.url !== oldAttrs.url;
611
- if (isColumnChange || isUrlChange) {
611
+ var isParametersChange = (0, _fg.fg)('platform_lp_sllv_preserve_assets_columns') && !(0, _isEqual.default)(oldAttrs.datasource.parameters, newAttrs.datasource.parameters);
612
+ if (isColumnChange || isUrlChange || isParametersChange) {
612
613
  tr.setNodeMarkup(from, schemaNodes.blockCard, _objectSpread(_objectSpread({}, oldAttrs), newAdf.attrs));
613
614
  }
614
615
  } else if (node.type.isText) {
@@ -575,7 +575,8 @@ export const updateCardViaDatasource = args => {
575
575
  const [oldViews] = (_ref2 = oldAttrs.datasource.views) !== null && _ref2 !== void 0 ? _ref2 : [];
576
576
  const isColumnChange = !isEqual(oldViews === null || oldViews === void 0 ? void 0 : (_oldViews$properties = oldViews.properties) === null || _oldViews$properties === void 0 ? void 0 : _oldViews$properties.columns, newViews === null || newViews === void 0 ? void 0 : (_newViews$properties = newViews.properties) === null || _newViews$properties === void 0 ? void 0 : _newViews$properties.columns);
577
577
  const isUrlChange = newAttrs.url !== oldAttrs.url;
578
- if (isColumnChange || isUrlChange) {
578
+ const isParametersChange = fg('platform_lp_sllv_preserve_assets_columns') && !isEqual(oldAttrs.datasource.parameters, newAttrs.datasource.parameters);
579
+ if (isColumnChange || isUrlChange || isParametersChange) {
579
580
  tr.setNodeMarkup(from, schemaNodes.blockCard, {
580
581
  ...oldAttrs,
581
582
  ...newAdf.attrs
@@ -602,7 +602,8 @@ export var updateCardViaDatasource = function updateCardViaDatasource(args) {
602
602
  oldViews = _ref5[0];
603
603
  var isColumnChange = !isEqual(oldViews === null || oldViews === void 0 || (_oldViews$properties = oldViews.properties) === null || _oldViews$properties === void 0 ? void 0 : _oldViews$properties.columns, newViews === null || newViews === void 0 || (_newViews$properties = newViews.properties) === null || _newViews$properties === void 0 ? void 0 : _newViews$properties.columns);
604
604
  var isUrlChange = newAttrs.url !== oldAttrs.url;
605
- if (isColumnChange || isUrlChange) {
605
+ var isParametersChange = fg('platform_lp_sllv_preserve_assets_columns') && !isEqual(oldAttrs.datasource.parameters, newAttrs.datasource.parameters);
606
+ if (isColumnChange || isUrlChange || isParametersChange) {
606
607
  tr.setNodeMarkup(from, schemaNodes.blockCard, _objectSpread(_objectSpread({}, oldAttrs), newAdf.attrs));
607
608
  }
608
609
  } else if (node.type.isText) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "25.0.7",
3
+ "version": "26.0.0",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -27,20 +27,20 @@
27
27
  "@atlaskit/css": "^1.1.0",
28
28
  "@atlaskit/custom-steps": "^1.1.0",
29
29
  "@atlaskit/editor-card-provider": "^7.3.0",
30
- "@atlaskit/editor-plugin-analytics": "^19.0.0",
31
- "@atlaskit/editor-plugin-annotation": "^19.2.0",
32
- "@atlaskit/editor-plugin-base": "^20.0.0",
33
- "@atlaskit/editor-plugin-connectivity": "^19.0.0",
34
- "@atlaskit/editor-plugin-decorations": "^19.0.0",
35
- "@atlaskit/editor-plugin-editor-disabled": "^19.0.0",
36
- "@atlaskit/editor-plugin-editor-viewmode": "^21.0.0",
37
- "@atlaskit/editor-plugin-feature-flags": "^18.0.0",
38
- "@atlaskit/editor-plugin-floating-toolbar": "^21.3.0",
39
- "@atlaskit/editor-plugin-grid": "^19.0.0",
40
- "@atlaskit/editor-plugin-selection": "^19.0.0",
41
- "@atlaskit/editor-plugin-toolbar": "^16.0.0",
42
- "@atlaskit/editor-plugin-ui-control-registry": "^13.1.0",
43
- "@atlaskit/editor-plugin-width": "^20.0.0",
30
+ "@atlaskit/editor-plugin-analytics": "^20.0.0",
31
+ "@atlaskit/editor-plugin-annotation": "^20.0.0",
32
+ "@atlaskit/editor-plugin-base": "^21.0.0",
33
+ "@atlaskit/editor-plugin-connectivity": "^20.0.0",
34
+ "@atlaskit/editor-plugin-decorations": "^20.0.0",
35
+ "@atlaskit/editor-plugin-editor-disabled": "^20.0.0",
36
+ "@atlaskit/editor-plugin-editor-viewmode": "^22.0.0",
37
+ "@atlaskit/editor-plugin-feature-flags": "^19.0.0",
38
+ "@atlaskit/editor-plugin-floating-toolbar": "^22.0.0",
39
+ "@atlaskit/editor-plugin-grid": "^20.0.0",
40
+ "@atlaskit/editor-plugin-selection": "^20.0.0",
41
+ "@atlaskit/editor-plugin-toolbar": "^17.0.0",
42
+ "@atlaskit/editor-plugin-ui-control-registry": "^14.0.0",
43
+ "@atlaskit/editor-plugin-width": "^21.0.0",
44
44
  "@atlaskit/editor-prosemirror": "^9.0.0",
45
45
  "@atlaskit/editor-shared-styles": "^4.3.0",
46
46
  "@atlaskit/editor-smart-link-draggable": "^1.2.0",
@@ -63,7 +63,7 @@
63
63
  "@atlaskit/primitives": "^22.5.0",
64
64
  "@atlaskit/prosemirror-history": "^1.2.0",
65
65
  "@atlaskit/smart-card": "^45.28.0",
66
- "@atlaskit/tmp-editor-statsig": "^203.0.0",
66
+ "@atlaskit/tmp-editor-statsig": "^205.0.0",
67
67
  "@atlaskit/tokens": "^19.0.0",
68
68
  "@babel/runtime": "^7.0.0",
69
69
  "@emotion/react": "^11.7.1",
@@ -73,7 +73,7 @@
73
73
  "uuid": "^11.1.1"
74
74
  },
75
75
  "peerDependencies": {
76
- "@atlaskit/editor-common": "^123.8.0",
76
+ "@atlaskit/editor-common": "^124.0.0",
77
77
  "@atlaskit/link-provider": "^5.7.0",
78
78
  "react": "^18.2.0 || ^19.2.0",
79
79
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
@@ -98,6 +98,9 @@
98
98
  "platform_sl_3p_preauth_value_modal_killswitch": {
99
99
  "type": "boolean"
100
100
  },
101
+ "platform_lp_sllv_preserve_assets_columns": {
102
+ "type": "boolean"
103
+ },
101
104
  "platform_lp_sllv_table_settings_menu": {
102
105
  "type": "boolean"
103
106
  }