@atlaskit/editor-plugin-card 36.0.2 → 36.0.4

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
+ ## 36.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`1a4bf8ba80113`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1a4bf8ba80113) -
8
+ Remove the `platform_lp_sllv_preserve_assets_columns` feature gate and permanently preserve
9
+ selected Assets columns when editing AQL within the same object schema.
10
+ - Updated dependencies
11
+
12
+ ## 36.0.3
13
+
14
+ ### Patch Changes
15
+
16
+ - [`7efec208f3bb4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7efec208f3bb4) -
17
+ Remove unused runtime dependencies
18
+ - Updated dependencies
19
+
3
20
  ## 36.0.2
4
21
 
5
22
  ### Patch Changes
@@ -613,7 +613,7 @@ var updateCardViaDatasource = exports.updateCardViaDatasource = function updateC
613
613
  oldViews = _ref5[0];
614
614
  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);
615
615
  var isUrlChange = newAttrs.url !== oldAttrs.url;
616
- var isParametersChange = (0, _fg.fg)('platform_lp_sllv_preserve_assets_columns') && !(0, _isEqual.default)(oldAttrs.datasource.parameters, newAttrs.datasource.parameters);
616
+ var isParametersChange = !(0, _isEqual.default)(oldAttrs.datasource.parameters, newAttrs.datasource.parameters);
617
617
  if (isColumnChange || isUrlChange || isParametersChange) {
618
618
  tr.setNodeMarkup(from, schemaNodes.blockCard, _objectSpread(_objectSpread({}, oldAttrs), newAdf.attrs));
619
619
  }
@@ -580,7 +580,7 @@ export const updateCardViaDatasource = args => {
580
580
  const [oldViews] = (_ref2 = oldAttrs.datasource.views) !== null && _ref2 !== void 0 ? _ref2 : [];
581
581
  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);
582
582
  const isUrlChange = newAttrs.url !== oldAttrs.url;
583
- const isParametersChange = fg('platform_lp_sllv_preserve_assets_columns') && !isEqual(oldAttrs.datasource.parameters, newAttrs.datasource.parameters);
583
+ const isParametersChange = !isEqual(oldAttrs.datasource.parameters, newAttrs.datasource.parameters);
584
584
  if (isColumnChange || isUrlChange || isParametersChange) {
585
585
  tr.setNodeMarkup(from, schemaNodes.blockCard, {
586
586
  ...oldAttrs,
@@ -607,7 +607,7 @@ export var updateCardViaDatasource = function updateCardViaDatasource(args) {
607
607
  oldViews = _ref5[0];
608
608
  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);
609
609
  var isUrlChange = newAttrs.url !== oldAttrs.url;
610
- var isParametersChange = fg('platform_lp_sllv_preserve_assets_columns') && !isEqual(oldAttrs.datasource.parameters, newAttrs.datasource.parameters);
610
+ var isParametersChange = !isEqual(oldAttrs.datasource.parameters, newAttrs.datasource.parameters);
611
611
  if (isColumnChange || isUrlChange || isParametersChange) {
612
612
  tr.setNodeMarkup(from, schemaNodes.blockCard, _objectSpread(_objectSpread({}, oldAttrs), newAdf.attrs));
613
613
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "36.0.2",
3
+ "version": "36.0.4",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -23,7 +23,6 @@
23
23
  "dependencies": {
24
24
  "@atlaskit/adf-schema": "^57.7.0",
25
25
  "@atlaskit/analytics-next": "^12.6.0",
26
- "@atlaskit/button": "^25.6.0",
27
26
  "@atlaskit/css": "^1.1.0",
28
27
  "@atlaskit/custom-steps": "^1.1.0",
29
28
  "@atlaskit/editor-card-provider": "^8.2.0",
@@ -69,12 +68,11 @@
69
68
  "@babel/runtime": "^7.0.0",
70
69
  "@emotion/react": "^11.7.1",
71
70
  "lodash": "^4.17.21",
72
- "prop-types": "^15.5.10",
73
71
  "raf-schd": "^4.0.3",
74
72
  "uuid": "^11.1.1"
75
73
  },
76
74
  "peerDependencies": {
77
- "@atlaskit/editor-common": "^134.1.0",
75
+ "@atlaskit/editor-common": "^134.2.0",
78
76
  "@atlaskit/link-provider": "^6.0.0",
79
77
  "react": "^18.2.0 || ^19.2.0",
80
78
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
@@ -101,9 +99,6 @@
101
99
  },
102
100
  "platform_sl_3p_preauth_value_modal_killswitch": {
103
101
  "type": "boolean"
104
- },
105
- "platform_lp_sllv_preserve_assets_columns": {
106
- "type": "boolean"
107
102
  }
108
103
  },
109
104
  "compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/e6f3220b-0ca2-445a-a4c5-78cff6ca2a34",