@harbour-enterprises/superdoc 1.17.0-next.7 → 1.17.0-next.9
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/{SuperConverter-CEFypeJ2.cjs → SuperConverter-BaAfr1hn.cjs} +16 -1
- package/dist/chunks/{SuperConverter-RKhfX479.es.js → SuperConverter-CpDHPSC1.es.js} +16 -1
- package/dist/chunks/{src-BacOu6cf.cjs → src-D4zoi9xQ.cjs} +417 -189
- package/dist/chunks/{src-gwCTxwiF.es.js → src-KIPms6vF.es.js} +415 -189
- package/dist/style.css +11 -0
- package/dist/super-editor/converter.cjs +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/src/core/header-footer/HeaderFooterPerRidLayout.d.ts +8 -0
- package/dist/super-editor/src/core/header-footer/HeaderFooterPerRidLayout.d.ts.map +1 -1
- package/dist/super-editor/src/core/header-footer/HeaderFooterRegistry.d.ts.map +1 -1
- package/dist/super-editor/src/core/presentation-editor/PresentationEditor.d.ts.map +1 -1
- package/dist/super-editor/src/core/presentation-editor/dom/PointerNormalization.d.ts +2 -0
- package/dist/super-editor/src/core/presentation-editor/dom/PointerNormalization.d.ts.map +1 -1
- package/dist/super-editor/src/core/presentation-editor/header-footer/HeaderFooterSessionManager.d.ts +6 -1
- package/dist/super-editor/src/core/presentation-editor/header-footer/HeaderFooterSessionManager.d.ts.map +1 -1
- package/dist/super-editor/src/core/presentation-editor/pointer-events/EditorInputManager.d.ts +3 -1
- package/dist/super-editor/src/core/presentation-editor/pointer-events/EditorInputManager.d.ts.map +1 -1
- package/dist/super-editor/src/core/presentation-editor/types.d.ts +2 -0
- package/dist/super-editor/src/core/presentation-editor/types.d.ts.map +1 -1
- package/dist/super-editor/src/core/super-converter/field-references/preProcessPageFieldsOnly.d.ts.map +1 -1
- package/dist/super-editor/src/document-api-adapters/helpers/comment-entity-store.d.ts +3 -2
- package/dist/super-editor/src/document-api-adapters/helpers/comment-entity-store.d.ts.map +1 -1
- package/dist/super-editor/src/document-api-adapters/plan-engine/comments-wrappers.d.ts.map +1 -1
- package/dist/super-editor/src/document-api-adapters/plan-engine/compiler.d.ts +0 -3
- package/dist/super-editor/src/document-api-adapters/plan-engine/compiler.d.ts.map +1 -1
- package/dist/super-editor/src/document-api-adapters/plan-engine/executor-registry.types.d.ts +1 -1
- package/dist/super-editor/src/document-api-adapters/plan-engine/executor-registry.types.d.ts.map +1 -1
- package/dist/super-editor/src/extensions/page-number/page-number.d.ts.map +1 -1
- package/dist/super-editor/src/extensions/pagination/pagination-helpers.d.ts.map +1 -1
- package/dist/super-editor.cjs +2 -2
- package/dist/super-editor.es.js +2 -2
- package/dist/superdoc.cjs +3 -3
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +431 -190
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -16167,6 +16167,15 @@ const preProcessPageFieldsOnly = (nodes = [], depth = 0) => {
|
|
|
16167
16167
|
i++;
|
|
16168
16168
|
continue;
|
|
16169
16169
|
}
|
|
16170
|
+
const childElements = node.elements || [];
|
|
16171
|
+
if (childElements.length > 0) {
|
|
16172
|
+
for (const child of childElements) {
|
|
16173
|
+
if (Array.isArray(child.elements)) child.elements = preProcessPageFieldsOnly(child.elements, depth + 1).processedNodes;
|
|
16174
|
+
processedNodes.push(child);
|
|
16175
|
+
}
|
|
16176
|
+
i++;
|
|
16177
|
+
continue;
|
|
16178
|
+
}
|
|
16170
16179
|
}
|
|
16171
16180
|
if (fldType === "begin") {
|
|
16172
16181
|
const fieldInfo = scanFieldSequence(nodes, i);
|
|
@@ -16187,6 +16196,12 @@ const preProcessPageFieldsOnly = (nodes = [], depth = 0) => {
|
|
|
16187
16196
|
continue;
|
|
16188
16197
|
}
|
|
16189
16198
|
}
|
|
16199
|
+
if (node.name === "w:r" && node.elements?.some((el) => el.name === "w:pgNum")) {
|
|
16200
|
+
const processedField = preProcessPageInstruction([], "", node.elements.find((el) => el.name === "w:rPr") || null);
|
|
16201
|
+
processedNodes.push(...processedField);
|
|
16202
|
+
i++;
|
|
16203
|
+
continue;
|
|
16204
|
+
}
|
|
16190
16205
|
if (Array.isArray(node.elements)) node.elements = preProcessPageFieldsOnly(node.elements, depth + 1).processedNodes;
|
|
16191
16206
|
processedNodes.push(node);
|
|
16192
16207
|
i++;
|
|
@@ -33838,7 +33853,7 @@ var SuperConverter = class SuperConverter {
|
|
|
33838
33853
|
static getStoredSuperdocVersion(docx) {
|
|
33839
33854
|
return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
33840
33855
|
}
|
|
33841
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.17.0-next.
|
|
33856
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.17.0-next.9") {
|
|
33842
33857
|
return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
|
|
33843
33858
|
}
|
|
33844
33859
|
static generateWordTimestamp() {
|
|
@@ -16156,6 +16156,15 @@ const preProcessPageFieldsOnly = (nodes = [], depth = 0) => {
|
|
|
16156
16156
|
i++;
|
|
16157
16157
|
continue;
|
|
16158
16158
|
}
|
|
16159
|
+
const childElements = node.elements || [];
|
|
16160
|
+
if (childElements.length > 0) {
|
|
16161
|
+
for (const child of childElements) {
|
|
16162
|
+
if (Array.isArray(child.elements)) child.elements = preProcessPageFieldsOnly(child.elements, depth + 1).processedNodes;
|
|
16163
|
+
processedNodes.push(child);
|
|
16164
|
+
}
|
|
16165
|
+
i++;
|
|
16166
|
+
continue;
|
|
16167
|
+
}
|
|
16159
16168
|
}
|
|
16160
16169
|
if (fldType === "begin") {
|
|
16161
16170
|
const fieldInfo = scanFieldSequence(nodes, i);
|
|
@@ -16176,6 +16185,12 @@ const preProcessPageFieldsOnly = (nodes = [], depth = 0) => {
|
|
|
16176
16185
|
continue;
|
|
16177
16186
|
}
|
|
16178
16187
|
}
|
|
16188
|
+
if (node.name === "w:r" && node.elements?.some((el) => el.name === "w:pgNum")) {
|
|
16189
|
+
const processedField = preProcessPageInstruction([], "", node.elements.find((el) => el.name === "w:rPr") || null);
|
|
16190
|
+
processedNodes.push(...processedField);
|
|
16191
|
+
i++;
|
|
16192
|
+
continue;
|
|
16193
|
+
}
|
|
16179
16194
|
if (Array.isArray(node.elements)) node.elements = preProcessPageFieldsOnly(node.elements, depth + 1).processedNodes;
|
|
16180
16195
|
processedNodes.push(node);
|
|
16181
16196
|
i++;
|
|
@@ -33824,7 +33839,7 @@ var SuperConverter = class SuperConverter {
|
|
|
33824
33839
|
static getStoredSuperdocVersion(docx) {
|
|
33825
33840
|
return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
33826
33841
|
}
|
|
33827
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.17.0-next.
|
|
33842
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.17.0-next.9") {
|
|
33828
33843
|
return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
|
|
33829
33844
|
}
|
|
33830
33845
|
static generateWordTimestamp() {
|