@harbour-enterprises/superdoc 0.7.8 → 0.7.10
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/dist/chunks/{super-editor.es-CTzrAWzW.js → super-editor.es-BFSqj6T6.js} +19 -9
- package/dist/chunks/super-editor.es-BFSqj6T6.js.map +1 -0
- package/dist/super-editor/chunks/{converter-mY5pgn5Z.js → converter-CRvLgvZt.js} +12 -6
- package/dist/super-editor/chunks/{converter-mY5pgn5Z.js.map → converter-CRvLgvZt.js.map} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-BYdqGp39.js → docx-zipper-BMuukZkc.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-BYdqGp39.js.map → docx-zipper-BMuukZkc.js.map} +1 -1
- package/dist/super-editor/chunks/{editor-Djp7oWm8.js → editor-BdLNLP9a.js} +10 -6
- package/dist/super-editor/chunks/editor-BdLNLP9a.js.map +1 -0
- package/dist/super-editor/chunks/{toolbar-Bxm1vX4B.js → toolbar-y0HedaTU.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-Bxm1vX4B.js.map → toolbar-y0HedaTU.js.map} +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/helpers/createDocument.d.ts +3 -1
- package/dist/super-editor/core/helpers/createDocument.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/annotationImporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/standardNodeImporter.d.ts.map +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +19 -9
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/super-editor.es-CTzrAWzW.js.map +0 -1
- package/dist/super-editor/chunks/editor-Djp7oWm8.js.map +0 -1
|
@@ -19442,7 +19442,7 @@ function handleListNodes(listItems, params, listLevel = 0, actualListLevel = 0,
|
|
|
19442
19442
|
if (item.seen) continue;
|
|
19443
19443
|
if (item.elements && !hasTextNode(item.elements)) {
|
|
19444
19444
|
const n = handleStandardNode2({ ...params, nodes: [item] }).nodes[0];
|
|
19445
|
-
parsedListItems[parsedListItems.length - 1]?.content.push(n);
|
|
19445
|
+
if (n) parsedListItems[parsedListItems.length - 1]?.content.push(n);
|
|
19446
19446
|
item.seen = true;
|
|
19447
19447
|
continue;
|
|
19448
19448
|
}
|
|
@@ -20056,6 +20056,9 @@ const handleAnnotationNode = (params) => {
|
|
|
20056
20056
|
fieldColor,
|
|
20057
20057
|
multipleImage: isMultipleImage === "true"
|
|
20058
20058
|
};
|
|
20059
|
+
if (!attrs.fieldId || !attrs.displayLabel) {
|
|
20060
|
+
return { nodes: [], consumed: 0 };
|
|
20061
|
+
}
|
|
20059
20062
|
let result = {
|
|
20060
20063
|
type: "text",
|
|
20061
20064
|
text: `{{${attrs.displayLabel}}}`,
|
|
@@ -20113,6 +20116,9 @@ const handleStandardNode = (params) => {
|
|
|
20113
20116
|
const node2 = nodes[0];
|
|
20114
20117
|
const { name } = node2;
|
|
20115
20118
|
const { attributes, elements, marks = [] } = parseProperties(node2);
|
|
20119
|
+
if (name === "w:sdt") {
|
|
20120
|
+
return { nodes: [], consumed: 0 };
|
|
20121
|
+
}
|
|
20116
20122
|
if (isPropertiesElement(node2)) {
|
|
20117
20123
|
return {
|
|
20118
20124
|
nodes: [{
|
|
@@ -20673,7 +20679,7 @@ const _SuperConverter = class _SuperConverter {
|
|
|
20673
20679
|
return;
|
|
20674
20680
|
}
|
|
20675
20681
|
}
|
|
20676
|
-
static updateDocumentVersion(docx = this.convertedXml, version = "0.7.
|
|
20682
|
+
static updateDocumentVersion(docx = this.convertedXml, version = "0.7.10") {
|
|
20677
20683
|
const customLocation = "docProps/custom.xml";
|
|
20678
20684
|
if (!docx[customLocation]) {
|
|
20679
20685
|
docx[customLocation] = generateCustomXml();
|
|
@@ -20912,8 +20918,8 @@ __publicField(_SuperConverter, "markTypes", [
|
|
|
20912
20918
|
{ name: "w:ind", type: "textIndent", mark: "textStyle", property: "textIndent" },
|
|
20913
20919
|
{ name: "w:spacing", type: "lineHeight", mark: "textStyle", property: "lineHeight" },
|
|
20914
20920
|
{ name: "link", type: "link", mark: "link", property: "href" },
|
|
20915
|
-
{ name: "w:highlight", type: "highlight", mark: "highlight", property: "color" }
|
|
20916
|
-
{ name:
|
|
20921
|
+
{ name: "w:highlight", type: "highlight", mark: "highlight", property: "color" }
|
|
20922
|
+
// { name: 'w:shd', type: 'highlight', mark: 'highlight', property: 'color'}
|
|
20917
20923
|
]);
|
|
20918
20924
|
__publicField(_SuperConverter, "propertyTypes", Object.freeze({
|
|
20919
20925
|
"w:pPr": "paragraphProperties",
|
|
@@ -20949,7 +20955,7 @@ function storeSuperdocVersion(docx) {
|
|
|
20949
20955
|
function generateCustomXml() {
|
|
20950
20956
|
return DEFAULT_CUSTOM_XML;
|
|
20951
20957
|
}
|
|
20952
|
-
function generateSuperdocVersion(pid = 2, version = "0.7.
|
|
20958
|
+
function generateSuperdocVersion(pid = 2, version = "0.7.10") {
|
|
20953
20959
|
return {
|
|
20954
20960
|
type: "element",
|
|
20955
20961
|
name: "property",
|
|
@@ -21021,4 +21027,4 @@ export {
|
|
|
21021
21027
|
RemoveMarkStep as y,
|
|
21022
21028
|
twipsToLines as z
|
|
21023
21029
|
};
|
|
21024
|
-
//# sourceMappingURL=converter-
|
|
21030
|
+
//# sourceMappingURL=converter-CRvLgvZt.js.map
|