@harbour-enterprises/superdoc 0.12.36-next.4 → 0.12.36-next.6
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/{index-CZ7uYk9v.cjs → index-B1MhwjTC.cjs} +2 -2
- package/dist/chunks/{index-Bt9T0ivx.es.js → index-BrSjd1Id.es.js} +1 -1
- package/dist/chunks/{index-C9VoBmK2.cjs → index-CMBtuT02.cjs} +1 -1
- package/dist/chunks/{index-WlcT4qSb.es.js → index-SKpROzLW.es.js} +2 -2
- package/dist/chunks/{super-editor.es-DSQJ1jVu.es.js → super-editor.es-C5YefmYN.es.js} +16 -8
- package/dist/chunks/{super-editor.es-D5ju1Vy3.cjs → super-editor.es-H72UDWQx.cjs} +16 -8
- package/dist/chunks/{url-B8943xnh.es.js → url-CAZQTNP3.es.js} +1 -1
- package/dist/chunks/{url-ITkRdlXj.cjs → url-DuggQ5JR.cjs} +1 -1
- package/dist/chunks/{xml-js-DUY8aVjn.cjs → xml-js-B7Vccv2s.cjs} +7 -21
- package/dist/chunks/{xml-js-O0pGoXNk.es.js → xml-js-BV-kCPOA.es.js} +7 -21
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-C_7uxiuz.js → converter-DY26Bu8a.js} +2 -3
- package/dist/super-editor/chunks/{docx-zipper-DVTlb3Bj.js → docx-zipper-B4BvVBcx.js} +1 -1
- package/dist/super-editor/chunks/{editor-BBDvpLkh.js → editor-w6HF4T0Y.js} +16 -7
- package/dist/super-editor/chunks/{toolbar-DFbQdspg.js → toolbar-Ctfr_bH2.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/super-converter/helpers.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/extensions/line-height/line-height.d.ts.map +1 -1
- package/dist/super-editor/extensions/paragraph/paragraph.d.ts.map +1 -1
- 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.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +5 -5
- package/dist/superdoc.es.js +6 -6
- package/dist/superdoc.umd.js +17 -9
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/superdoc.umd.js
CHANGED
|
@@ -23434,7 +23434,6 @@
|
|
|
23434
23434
|
if (Number.isNaN(value) || value === 0) return {};
|
|
23435
23435
|
if (lineRule === "atLeast" && value < 1) return {};
|
|
23436
23436
|
unit = unit ? unit : defaultUnit;
|
|
23437
|
-
value += unit ? 4 : 0.2;
|
|
23438
23437
|
return isObject2 ? { ["line-height"]: `${value}${unit}` } : `line-height: ${value}${unit}`;
|
|
23439
23438
|
};
|
|
23440
23439
|
const deobfuscateFont = (arrayBuffer, guidHex) => {
|
|
@@ -30672,7 +30671,7 @@
|
|
|
30672
30671
|
return;
|
|
30673
30672
|
}
|
|
30674
30673
|
}
|
|
30675
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.12.36-next.
|
|
30674
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.12.36-next.6") {
|
|
30676
30675
|
const customLocation = "docProps/custom.xml";
|
|
30677
30676
|
if (!docx[customLocation]) {
|
|
30678
30677
|
docx[customLocation] = generateCustomXml();
|
|
@@ -31139,7 +31138,7 @@
|
|
|
31139
31138
|
function generateCustomXml() {
|
|
31140
31139
|
return DEFAULT_CUSTOM_XML;
|
|
31141
31140
|
}
|
|
31142
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.12.36-next.
|
|
31141
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.12.36-next.6") {
|
|
31143
31142
|
return {
|
|
31144
31143
|
type: "element",
|
|
31145
31144
|
name: "property",
|
|
@@ -46477,8 +46476,8 @@
|
|
|
46477
46476
|
content: data,
|
|
46478
46477
|
extensions: getStarterExtensions(),
|
|
46479
46478
|
documentId: sectionId || "sectionId",
|
|
46480
|
-
media: editor.
|
|
46481
|
-
mediaFiles: editor.
|
|
46479
|
+
media: editor.storage.image.media,
|
|
46480
|
+
mediaFiles: editor.storage.image.media,
|
|
46482
46481
|
fonts: editor.options.fonts,
|
|
46483
46482
|
isHeaderOrFooter: true,
|
|
46484
46483
|
annotations: true,
|
|
@@ -48479,7 +48478,7 @@
|
|
|
48479
48478
|
* @returns {Object | void} Migration results
|
|
48480
48479
|
*/
|
|
48481
48480
|
processCollaborationMigrations() {
|
|
48482
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.12.36-next.
|
|
48481
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.12.36-next.6");
|
|
48483
48482
|
if (!this.options.ydoc) return;
|
|
48484
48483
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
48485
48484
|
let docVersion = metaMap.get("version");
|
|
@@ -49244,7 +49243,14 @@
|
|
|
49244
49243
|
parseDOM: (el) => el.style.lineHeight,
|
|
49245
49244
|
renderDOM: (attrs) => {
|
|
49246
49245
|
if (!attrs.lineHeight) return {};
|
|
49247
|
-
|
|
49246
|
+
const lineHeightStyle = getLineHeightValueString(
|
|
49247
|
+
attrs.lineHeight,
|
|
49248
|
+
this.options.defaults.unit,
|
|
49249
|
+
attrs.spacing?.lineRule
|
|
49250
|
+
);
|
|
49251
|
+
return {
|
|
49252
|
+
style: `${lineHeightStyle}`
|
|
49253
|
+
};
|
|
49248
49254
|
}
|
|
49249
49255
|
}
|
|
49250
49256
|
}
|
|
@@ -51169,7 +51175,9 @@
|
|
|
51169
51175
|
renderDOM: (attrs) => {
|
|
51170
51176
|
const { spacing } = attrs;
|
|
51171
51177
|
if (!spacing) return {};
|
|
51172
|
-
const
|
|
51178
|
+
const spacingCopy = { ...spacing };
|
|
51179
|
+
if (attrs.lineHeight) delete spacingCopy.line;
|
|
51180
|
+
const style2 = getSpacingStyleString(spacingCopy);
|
|
51173
51181
|
if (style2) return { style: style2 };
|
|
51174
51182
|
return {};
|
|
51175
51183
|
}
|
|
@@ -90031,7 +90039,7 @@ ${style2}
|
|
|
90031
90039
|
this.config.colors = shuffleArray(this.config.colors);
|
|
90032
90040
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
90033
90041
|
this.colorIndex = 0;
|
|
90034
|
-
this.version = "0.12.36-next.
|
|
90042
|
+
this.version = "0.12.36-next.6";
|
|
90035
90043
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
90036
90044
|
this.superdocId = config.superdocId || v4();
|
|
90037
90045
|
this.colors = this.config.colors;
|