@harbour-enterprises/superdoc 0.6.88 → 0.6.89
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-B9wZhLXC.js → super-editor.es-CMnNT5PV.js} +11 -6
- package/dist/chunks/super-editor.es-CMnNT5PV.js.map +1 -0
- package/dist/super-editor/chunks/{converter-Cec-lU-u.js → converter-DoRQBZ-W.js} +10 -5
- package/dist/super-editor/chunks/{converter-Cec-lU-u.js.map → converter-DoRQBZ-W.js.map} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-BWrCoChV.js → docx-zipper-BTBfvzAS.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-BWrCoChV.js.map → docx-zipper-BTBfvzAS.js.map} +1 -1
- package/dist/super-editor/chunks/{editor-C9mmgGXz.js → editor-C5-AioY1.js} +4 -4
- package/dist/super-editor/chunks/{editor-C9mmgGXz.js.map → editor-C5-AioY1.js.map} +1 -1
- package/dist/super-editor/chunks/{toolbar-Dq9F9vDH.js → toolbar-CmzzG-d8.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-Dq9F9vDH.js.map → toolbar-CmzzG-d8.js.map} +1 -1
- package/dist/super-editor/converter.es.js +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 +11 -6
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/super-editor.es-B9wZhLXC.js.map +0 -1
|
@@ -20618,7 +20618,7 @@ const _SuperConverter = class _SuperConverter {
|
|
|
20618
20618
|
return;
|
|
20619
20619
|
}
|
|
20620
20620
|
}
|
|
20621
|
-
static updateDocumentVersion(docx = this.convertedXml, version = "0.6.
|
|
20621
|
+
static updateDocumentVersion(docx = this.convertedXml, version = "0.6.89") {
|
|
20622
20622
|
const customLocation = "docProps/custom.xml";
|
|
20623
20623
|
if (!docx[customLocation]) {
|
|
20624
20624
|
docx[customLocation] = generateCustomXml();
|
|
@@ -20877,18 +20877,23 @@ function storeSuperdocVersion(docx) {
|
|
|
20877
20877
|
const properties = customXml.elements.find((el) => el.name === "Properties");
|
|
20878
20878
|
if (!properties.elements) properties.elements = [];
|
|
20879
20879
|
const elements = properties.elements;
|
|
20880
|
+
const cleanProperties = elements.filter((prop) => typeof prop === "object" && prop !== null).filter((prop) => {
|
|
20881
|
+
const { attributes } = prop;
|
|
20882
|
+
return attributes.name !== "SuperdocVersion";
|
|
20883
|
+
});
|
|
20880
20884
|
let pid = 2;
|
|
20881
20885
|
try {
|
|
20882
|
-
pid =
|
|
20886
|
+
pid = cleanProperties.length ? Math.max(...elements.map((el) => el.attributes.pid)) + 1 : 2;
|
|
20883
20887
|
} catch (error) {
|
|
20884
20888
|
}
|
|
20885
|
-
|
|
20889
|
+
cleanProperties.push(pid, generateSuperdocVersion());
|
|
20890
|
+
properties.elements = cleanProperties;
|
|
20886
20891
|
return docx;
|
|
20887
20892
|
}
|
|
20888
20893
|
function generateCustomXml() {
|
|
20889
20894
|
return DEFAULT_CUSTOM_XML;
|
|
20890
20895
|
}
|
|
20891
|
-
function generateSuperdocVersion(pid = 2, version = "0.6.
|
|
20896
|
+
function generateSuperdocVersion(pid = 2, version = "0.6.89") {
|
|
20892
20897
|
return {
|
|
20893
20898
|
type: "element",
|
|
20894
20899
|
name: "property",
|
|
@@ -20960,4 +20965,4 @@ export {
|
|
|
20960
20965
|
RemoveMarkStep as y,
|
|
20961
20966
|
twipsToLines as z
|
|
20962
20967
|
};
|
|
20963
|
-
//# sourceMappingURL=converter-
|
|
20968
|
+
//# sourceMappingURL=converter-DoRQBZ-W.js.map
|