@manuscripts/transform 1.1.1 → 1.1.2-LEAN-2320
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.
|
@@ -532,12 +532,11 @@ const encode = (node) => {
|
|
|
532
532
|
if (placeholders.includes(child.type.name)) {
|
|
533
533
|
return;
|
|
534
534
|
}
|
|
535
|
-
const { model
|
|
535
|
+
const { model } = (0, exports.modelFromNode)(child, parent, path, priority);
|
|
536
536
|
if (models.has(model._id)) {
|
|
537
537
|
throw Error(`Encountered duplicate ids in models map while encoding: ${model._id}`);
|
|
538
538
|
}
|
|
539
539
|
models.set(model._id, model);
|
|
540
|
-
commentAnnotationsMap.forEach((val, key) => models.set(key, val));
|
|
541
540
|
child.forEach(addModel(path.concat(child.attrs.id), child));
|
|
542
541
|
};
|
|
543
542
|
node.forEach((cNode) => {
|
|
@@ -523,12 +523,11 @@ export const encode = (node) => {
|
|
|
523
523
|
if (placeholders.includes(child.type.name)) {
|
|
524
524
|
return;
|
|
525
525
|
}
|
|
526
|
-
const { model
|
|
526
|
+
const { model } = modelFromNode(child, parent, path, priority);
|
|
527
527
|
if (models.has(model._id)) {
|
|
528
528
|
throw Error(`Encountered duplicate ids in models map while encoding: ${model._id}`);
|
|
529
529
|
}
|
|
530
530
|
models.set(model._id, model);
|
|
531
|
-
commentAnnotationsMap.forEach((val, key) => models.set(key, val));
|
|
532
531
|
child.forEach(addModel(path.concat(child.attrs.id), child));
|
|
533
532
|
};
|
|
534
533
|
node.forEach((cNode) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/transform",
|
|
3
3
|
"description": "ProseMirror transformer for Manuscripts applications",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.2-LEAN-2320",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-transform",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -29,9 +29,12 @@
|
|
|
29
29
|
"version": "yarn build"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
+
"@manuscripts/json-schema": "^1.0.0",
|
|
32
33
|
"debug": "^4.3.4",
|
|
34
|
+
"jszip": "^3.10.1",
|
|
33
35
|
"mathjax-full": "^3.2.2",
|
|
34
36
|
"mime": "^3.0.0",
|
|
37
|
+
"prosemirror-model": "^1.18.3",
|
|
35
38
|
"uuid": "^9.0.0",
|
|
36
39
|
"w3c-xmlserializer": "^4.0.0"
|
|
37
40
|
},
|
|
@@ -69,11 +72,9 @@
|
|
|
69
72
|
"husky": "^8.0.2",
|
|
70
73
|
"jest": "^29.3.1",
|
|
71
74
|
"jest-environment-jsdom": "^29.3.1",
|
|
72
|
-
"jszip": "^3.10.1",
|
|
73
75
|
"libxmljs2": "^0.29.0",
|
|
74
76
|
"npm-run-all": "^4.1.5",
|
|
75
77
|
"prettier": "^2.8.1",
|
|
76
|
-
"prosemirror-model": "^1.18.3",
|
|
77
78
|
"prosemirror-state": "^1.4.2",
|
|
78
79
|
"prosemirror-view": "^1.29.1",
|
|
79
80
|
"rimraf": "^3.0.2",
|