@atlaskit/editor-plugin-card 25.0.6 → 25.0.8
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
|
+
## 25.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`3f172371c9b66`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3f172371c9b66) -
|
|
8
|
+
Preserve the selected Assets columns when only the AQL query changes, and persist datasource
|
|
9
|
+
updates that only change parameters. Both behind feature gate
|
|
10
|
+
`platform_lp_sllv_preserve_assets_columns`.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 25.0.7
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 25.0.6
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "25.0.8",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-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": "^
|
|
66
|
+
"@atlaskit/tmp-editor-statsig": "^204.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.
|
|
76
|
+
"@atlaskit/editor-common": "^123.8.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
|
}
|