@atlaskit/editor-core 185.16.0 → 185.16.1

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-core
2
2
 
3
+ ## 185.16.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`75520758a9d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/75520758a9d) - Fix layout not persisting on edits of datasource
8
+
3
9
  ## 185.16.0
4
10
 
5
11
  ### Minor Changes
@@ -451,7 +451,7 @@ var updateExistingDatasource = function updateExistingDatasource(state, node, ne
451
451
  var isColumnChange = !(0, _isEqual.default)(oldColumnKeys, newColumnKeys);
452
452
  var isUrlChange = ((_newAdf$attrs = newAdf.attrs) === null || _newAdf$attrs === void 0 ? void 0 : _newAdf$attrs.url) !== ((_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.url);
453
453
  if (isColumnChange || isUrlChange) {
454
- tr.setNodeMarkup(from, schemaNodes.blockCard, newAdf.attrs);
454
+ tr.setNodeMarkup(from, schemaNodes.blockCard, _objectSpread(_objectSpread({}, node.attrs), newAdf.attrs));
455
455
  }
456
456
  } else if (newAdf.type === 'inlineCard') {
457
457
  // datasource to inline
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.nextMajorVersion = exports.name = void 0;
7
7
  var name = "@atlaskit/editor-core";
8
8
  exports.name = name;
9
- var version = "185.16.0";
9
+ var version = "185.16.1";
10
10
  exports.version = version;
11
11
  var nextMajorVersion = function nextMajorVersion() {
12
12
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "185.16.0",
3
+ "version": "185.16.1",
4
4
  "sideEffects": false
5
5
  }
@@ -415,7 +415,10 @@ export const updateExistingDatasource = (state, node, newAdf, view) => {
415
415
  const isColumnChange = !isEqual(oldColumnKeys, newColumnKeys);
416
416
  const isUrlChange = ((_newAdf$attrs = newAdf.attrs) === null || _newAdf$attrs === void 0 ? void 0 : _newAdf$attrs.url) !== ((_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.url);
417
417
  if (isColumnChange || isUrlChange) {
418
- tr.setNodeMarkup(from, schemaNodes.blockCard, newAdf.attrs);
418
+ tr.setNodeMarkup(from, schemaNodes.blockCard, {
419
+ ...node.attrs,
420
+ ...newAdf.attrs
421
+ });
419
422
  }
420
423
  } else if (newAdf.type === 'inlineCard') {
421
424
  // datasource to inline
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "185.16.0";
2
+ export const version = "185.16.1";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "185.16.0",
3
+ "version": "185.16.1",
4
4
  "sideEffects": false
5
5
  }
@@ -435,7 +435,7 @@ export var updateExistingDatasource = function updateExistingDatasource(state, n
435
435
  var isColumnChange = !isEqual(oldColumnKeys, newColumnKeys);
436
436
  var isUrlChange = ((_newAdf$attrs = newAdf.attrs) === null || _newAdf$attrs === void 0 ? void 0 : _newAdf$attrs.url) !== ((_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.url);
437
437
  if (isColumnChange || isUrlChange) {
438
- tr.setNodeMarkup(from, schemaNodes.blockCard, newAdf.attrs);
438
+ tr.setNodeMarkup(from, schemaNodes.blockCard, _objectSpread(_objectSpread({}, node.attrs), newAdf.attrs));
439
439
  }
440
440
  } else if (newAdf.type === 'inlineCard') {
441
441
  // datasource to inline
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "185.16.0";
2
+ export var version = "185.16.1";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "185.16.0",
3
+ "version": "185.16.1",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "185.16.0",
3
+ "version": "185.16.1",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"