@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 +6 -0
- package/dist/cjs/plugins/card/pm-plugins/doc.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/plugins/card/pm-plugins/doc.js +4 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/plugins/card/pm-plugins/doc.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -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.
|
|
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('.');
|
package/dist/cjs/version.json
CHANGED
|
@@ -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,
|
|
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
|
package/dist/es2019/version.json
CHANGED
|
@@ -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
|
package/dist/esm/version.json
CHANGED