@harbour-enterprises/superdoc 1.0.3 → 1.0.5
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/{PdfViewer-2wYU1nQs.cjs → PdfViewer-NZVdeD6H.cjs} +1 -1
- package/dist/chunks/{PdfViewer-Brf64q-p.es.js → PdfViewer-nkEIPy-A.es.js} +1 -1
- package/dist/chunks/{index-BFesQTtm-DNeH374x.es.js → index-BcCFaRLf-DfSZLowE.es.js} +1 -1
- package/dist/chunks/{index-BFesQTtm-DF8MwT73.cjs → index-BcCFaRLf-nf4ZfPio.cjs} +1 -1
- package/dist/chunks/{index-KBIvw6xZ.es.js → index-ClAXFGH6.es.js} +3 -3
- package/dist/chunks/{index-DeETxTrW.cjs → index-Jx8Z6ZB8.cjs} +3 -3
- package/dist/chunks/{super-editor.es-DWpzsMUa.es.js → super-editor.es-BnbGC74e.es.js} +29 -10
- package/dist/chunks/{super-editor.es-C_LoTWvJ.cjs → super-editor.es-DRR5Nm_U.cjs} +29 -10
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-BhELnOP5.js → converter-DR7H70x9.js} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-Bwi8bTEB.js → docx-zipper-DgYWHHqF.js} +1 -1
- package/dist/super-editor/chunks/{editor-Dyj08tpz.js → editor-BX34kZU2.js} +30 -11
- package/dist/super-editor/chunks/{index-BFesQTtm.js → index-BcCFaRLf.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-DRFf1nRv.js → toolbar-DozEUErF.js} +2 -2
- 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.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +31 -12
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/superdoc.umd.js
CHANGED
|
@@ -42428,7 +42428,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
42428
42428
|
static getStoredSuperdocVersion(docx) {
|
|
42429
42429
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
42430
42430
|
}
|
|
42431
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.
|
|
42431
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.5") {
|
|
42432
42432
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
42433
42433
|
}
|
|
42434
42434
|
/**
|
|
@@ -68384,7 +68384,7 @@ ${err.toString()}`);
|
|
|
68384
68384
|
const shouldSkipNodeView = (editor) => {
|
|
68385
68385
|
return isHeadless(editor);
|
|
68386
68386
|
};
|
|
68387
|
-
const summaryVersion = "1.0.
|
|
68387
|
+
const summaryVersion = "1.0.5";
|
|
68388
68388
|
const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
|
|
68389
68389
|
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
68390
68390
|
function mapAttributes(attrs) {
|
|
@@ -69173,7 +69173,7 @@ ${err.toString()}`);
|
|
|
69173
69173
|
{ default: remarkStringify2 },
|
|
69174
69174
|
{ default: remarkGfm2 }
|
|
69175
69175
|
] = await Promise.all([
|
|
69176
|
-
Promise.resolve().then(() =>
|
|
69176
|
+
Promise.resolve().then(() => indexBcCFaRLf),
|
|
69177
69177
|
Promise.resolve().then(() => indexDRCvimau),
|
|
69178
69178
|
Promise.resolve().then(() => indexC_x_N6Uh),
|
|
69179
69179
|
Promise.resolve().then(() => indexD_sWOSiG),
|
|
@@ -69378,7 +69378,7 @@ ${err.toString()}`);
|
|
|
69378
69378
|
* Process collaboration migrations
|
|
69379
69379
|
*/
|
|
69380
69380
|
processCollaborationMigrations() {
|
|
69381
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.0.
|
|
69381
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.0.5");
|
|
69382
69382
|
if (!this.options.ydoc) return;
|
|
69383
69383
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
69384
69384
|
let docVersion = metaMap.get("version");
|
|
@@ -92499,11 +92499,27 @@ ${l}
|
|
|
92499
92499
|
}, void 0);
|
|
92500
92500
|
};
|
|
92501
92501
|
const normalizeUnderlineStyle = (value) => {
|
|
92502
|
-
if (value ===
|
|
92503
|
-
return
|
|
92502
|
+
if (value === void 0 || value === null) {
|
|
92503
|
+
return "single";
|
|
92504
92504
|
}
|
|
92505
|
-
if (
|
|
92506
|
-
return value;
|
|
92505
|
+
if (typeof value === "boolean") {
|
|
92506
|
+
return value ? "single" : void 0;
|
|
92507
|
+
}
|
|
92508
|
+
if (typeof value === "number") {
|
|
92509
|
+
return value === 0 ? void 0 : "single";
|
|
92510
|
+
}
|
|
92511
|
+
if (typeof value === "string") {
|
|
92512
|
+
const normalized = value.trim().toLowerCase();
|
|
92513
|
+
if (!normalized) {
|
|
92514
|
+
return "single";
|
|
92515
|
+
}
|
|
92516
|
+
if (normalized === "none" || normalized === "0" || normalized === "false" || normalized === "off") {
|
|
92517
|
+
return void 0;
|
|
92518
|
+
}
|
|
92519
|
+
if (normalized === "double" || normalized === "dotted" || normalized === "dashed" || normalized === "wavy") {
|
|
92520
|
+
return normalized;
|
|
92521
|
+
}
|
|
92522
|
+
return "single";
|
|
92507
92523
|
}
|
|
92508
92524
|
return "single";
|
|
92509
92525
|
};
|
|
@@ -92655,13 +92671,16 @@ ${l}
|
|
|
92655
92671
|
break;
|
|
92656
92672
|
}
|
|
92657
92673
|
case "underline": {
|
|
92658
|
-
const
|
|
92674
|
+
const underlineValue = mark2.attrs?.underlineType ?? mark2.attrs?.value ?? mark2.attrs?.underline ?? mark2.attrs?.style;
|
|
92675
|
+
const style2 = normalizeUnderlineStyle(underlineValue);
|
|
92659
92676
|
if (style2) {
|
|
92660
92677
|
const underlineColor = resolveColorFromAttributes(mark2.attrs ?? {}, themeColors);
|
|
92661
92678
|
run2.underline = {
|
|
92662
92679
|
style: style2,
|
|
92663
92680
|
color: underlineColor ?? run2.underline?.color
|
|
92664
92681
|
};
|
|
92682
|
+
} else if (underlineValue !== void 0 && underlineValue !== null) {
|
|
92683
|
+
delete run2.underline;
|
|
92665
92684
|
}
|
|
92666
92685
|
break;
|
|
92667
92686
|
}
|
|
@@ -104001,7 +104020,7 @@ ${l}
|
|
|
104001
104020
|
const atomNodeTypes = getAtomNodeTypes(__privateGet$1(this, _editor3)?.schema ?? null);
|
|
104002
104021
|
const positionMap2 = __privateGet$1(this, _editor3)?.state?.doc && docJson ? buildPositionMapFromPmDoc(__privateGet$1(this, _editor3).state.doc, docJson) : null;
|
|
104003
104022
|
const result = toFlowBlocks(docJson, {
|
|
104004
|
-
mediaFiles: __privateGet$1(this,
|
|
104023
|
+
mediaFiles: __privateGet$1(this, _editor3)?.storage?.image?.media,
|
|
104005
104024
|
emitSectionBreaks: true,
|
|
104006
104025
|
sectionMetadata,
|
|
104007
104026
|
trackedChangesMode: __privateGet$1(this, _trackedChangesMode),
|
|
@@ -157790,7 +157809,7 @@ ${style2}
|
|
|
157790
157809
|
this.config.colors = shuffleArray(this.config.colors);
|
|
157791
157810
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
157792
157811
|
this.colorIndex = 0;
|
|
157793
|
-
this.version = "1.0.
|
|
157812
|
+
this.version = "1.0.5";
|
|
157794
157813
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
157795
157814
|
this.superdocId = config2.superdocId || v4();
|
|
157796
157815
|
this.colors = this.config.colors;
|
|
@@ -160263,7 +160282,7 @@ ${style2}
|
|
|
160263
160282
|
value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
|
|
160264
160283
|
);
|
|
160265
160284
|
}
|
|
160266
|
-
const
|
|
160285
|
+
const indexBcCFaRLf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
160267
160286
|
__proto__: null,
|
|
160268
160287
|
unified
|
|
160269
160288
|
}, Symbol.toStringTag, { value: "Module" }));
|