superdoc 1.0.0-beta.63 → 1.0.0-beta.65
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-Dc7zft9M.cjs → PdfViewer-CPtbSOs5.cjs} +1 -1
- package/dist/chunks/{PdfViewer-Enk2l025.es.js → PdfViewer-CqHxrRM3.es.js} +1 -1
- package/dist/chunks/{index-KZsFukCq.es.js → index-BUvQNe-T.es.js} +3 -3
- package/dist/chunks/{index-DZPXVd1d.cjs → index-DWJXw-IX.cjs} +3 -3
- package/dist/chunks/{index-BO5Ne6G9-BxC5lPet.es.js → index-YSWS94Jr-BeHINTZ9.es.js} +1 -1
- package/dist/chunks/{index-BO5Ne6G9-njLy4w3i.cjs → index-YSWS94Jr-C7xFStTB.cjs} +1 -1
- package/dist/chunks/{super-editor.es-Crw7wu2n.cjs → super-editor.es-BHjskxiY.cjs} +36 -10
- package/dist/chunks/{super-editor.es-DhGXcD3R.es.js → super-editor.es-DaC-R5gx.es.js} +36 -10
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-C4bE8Uad.js → converter-DIAStmht.js} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-BIkbwyZO.js → docx-zipper-DK-wWQD9.js} +1 -1
- package/dist/super-editor/chunks/{editor-ByMtGRzi.js → editor-CxKPNxhs.js} +37 -11
- package/dist/super-editor/chunks/{index-BO5Ne6G9.js → index-YSWS94Jr.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-DFgaXUsx.js → toolbar-D7ZHiSKZ.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 +38 -12
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/superdoc.umd.js
CHANGED
|
@@ -42327,7 +42327,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
42327
42327
|
static getStoredSuperdocVersion(docx) {
|
|
42328
42328
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
42329
42329
|
}
|
|
42330
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.
|
|
42330
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.65") {
|
|
42331
42331
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
42332
42332
|
}
|
|
42333
42333
|
/**
|
|
@@ -67373,7 +67373,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
67373
67373
|
const shouldSkipNodeView = (editor) => {
|
|
67374
67374
|
return isHeadless(editor);
|
|
67375
67375
|
};
|
|
67376
|
-
const summaryVersion = "1.0.0-beta.
|
|
67376
|
+
const summaryVersion = "1.0.0-beta.65";
|
|
67377
67377
|
const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
|
|
67378
67378
|
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
67379
67379
|
function mapAttributes(attrs) {
|
|
@@ -68162,7 +68162,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
68162
68162
|
{ default: remarkStringify2 },
|
|
68163
68163
|
{ default: remarkGfm2 }
|
|
68164
68164
|
] = await Promise.all([
|
|
68165
|
-
Promise.resolve().then(() =>
|
|
68165
|
+
Promise.resolve().then(() => indexYSWS94Jr),
|
|
68166
68166
|
Promise.resolve().then(() => indexDRCvimau),
|
|
68167
68167
|
Promise.resolve().then(() => indexC_x_N6Uh),
|
|
68168
68168
|
Promise.resolve().then(() => indexD_sWOSiG),
|
|
@@ -68367,7 +68367,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
68367
68367
|
* Process collaboration migrations
|
|
68368
68368
|
*/
|
|
68369
68369
|
processCollaborationMigrations() {
|
|
68370
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.
|
|
68370
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.65");
|
|
68371
68371
|
if (!this.options.ydoc) return;
|
|
68372
68372
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
68373
68373
|
let docVersion = metaMap.get("version");
|
|
@@ -86644,7 +86644,7 @@ ${l}
|
|
|
86644
86644
|
const hashRuns = (block) => {
|
|
86645
86645
|
if (block.kind === "table") {
|
|
86646
86646
|
const tableBlock = block;
|
|
86647
|
-
const
|
|
86647
|
+
const cellHashes = [];
|
|
86648
86648
|
if (!tableBlock.rows) {
|
|
86649
86649
|
return `${block.id}:table:`;
|
|
86650
86650
|
}
|
|
@@ -86660,14 +86660,32 @@ ${l}
|
|
|
86660
86660
|
continue;
|
|
86661
86661
|
}
|
|
86662
86662
|
for (const run2 of paragraphBlock.runs) {
|
|
86663
|
-
|
|
86664
|
-
|
|
86663
|
+
const text2 = "text" in run2 && typeof run2.text === "string" ? normalizeText(run2.text) : "";
|
|
86664
|
+
const bold = "bold" in run2 ? run2.bold : false;
|
|
86665
|
+
const italic = "italic" in run2 ? run2.italic : false;
|
|
86666
|
+
const color2 = "color" in run2 ? run2.color : void 0;
|
|
86667
|
+
const fontSize2 = "fontSize" in run2 ? run2.fontSize : void 0;
|
|
86668
|
+
const fontFamily2 = "fontFamily" in run2 ? run2.fontFamily : void 0;
|
|
86669
|
+
const marks = [
|
|
86670
|
+
bold ? "b" : "",
|
|
86671
|
+
italic ? "i" : "",
|
|
86672
|
+
color2 ?? "",
|
|
86673
|
+
fontSize2 !== void 0 ? `fs:${fontSize2}` : "",
|
|
86674
|
+
fontFamily2 ? `ff:${fontFamily2}` : ""
|
|
86675
|
+
].join("");
|
|
86676
|
+
let trackedKey = "";
|
|
86677
|
+
if (hasTrackedChange(run2)) {
|
|
86678
|
+
const tc = run2.trackedChange;
|
|
86679
|
+
const beforeHash = tc.before ? JSON.stringify(tc.before) : "";
|
|
86680
|
+
const afterHash = tc.after ? JSON.stringify(tc.after) : "";
|
|
86681
|
+
trackedKey = `|tc:${tc.kind ?? ""}:${tc.id ?? ""}:${tc.author ?? ""}:${tc.date ?? ""}:${beforeHash}:${afterHash}`;
|
|
86665
86682
|
}
|
|
86683
|
+
cellHashes.push(`${text2}:${marks}${trackedKey}`);
|
|
86666
86684
|
}
|
|
86667
86685
|
}
|
|
86668
86686
|
}
|
|
86669
86687
|
}
|
|
86670
|
-
const contentHash =
|
|
86688
|
+
const contentHash = cellHashes.join("|");
|
|
86671
86689
|
return `${block.id}:table:${contentHash}`;
|
|
86672
86690
|
}
|
|
86673
86691
|
if (block.kind !== "paragraph") return block.id;
|
|
@@ -86685,7 +86703,15 @@ ${l}
|
|
|
86685
86703
|
const bold = "bold" in run2 ? run2.bold : false;
|
|
86686
86704
|
const italic = "italic" in run2 ? run2.italic : false;
|
|
86687
86705
|
const color2 = "color" in run2 ? run2.color : void 0;
|
|
86688
|
-
const
|
|
86706
|
+
const fontSize2 = "fontSize" in run2 ? run2.fontSize : void 0;
|
|
86707
|
+
const fontFamily2 = "fontFamily" in run2 ? run2.fontFamily : void 0;
|
|
86708
|
+
const marks = [
|
|
86709
|
+
bold ? "b" : "",
|
|
86710
|
+
italic ? "i" : "",
|
|
86711
|
+
color2 ?? "",
|
|
86712
|
+
fontSize2 !== void 0 ? `fs:${fontSize2}` : "",
|
|
86713
|
+
fontFamily2 ? `ff:${fontFamily2}` : ""
|
|
86714
|
+
].join("");
|
|
86689
86715
|
let trackedKey = "";
|
|
86690
86716
|
if (hasTrackedChange(run2)) {
|
|
86691
86717
|
const tc = run2.trackedChange;
|
|
@@ -87606,7 +87632,7 @@ ${l}
|
|
|
87606
87632
|
for (let i2 = 0; i2 < a2.runs.length; i2 += 1) {
|
|
87607
87633
|
const runA = a2.runs[i2];
|
|
87608
87634
|
const runB = b2.runs[i2];
|
|
87609
|
-
if (("src" in runA || runA.kind === "lineBreak" || runA.kind === "break" || runA.kind === "fieldAnnotation" ? "" : runA.text) !== ("src" in runB || runB.kind === "lineBreak" || runB.kind === "break" || runB.kind === "fieldAnnotation" ? "" : runB.text) || ("bold" in runA ? runA.bold : false) !== ("bold" in runB ? runB.bold : false) || ("italic" in runA ? runA.italic : false) !== ("italic" in runB ? runB.italic : false) || ("color" in runA ? runA.color : void 0) !== ("color" in runB ? runB.color : void 0) || getTrackedChangeKey(runA) !== getTrackedChangeKey(runB)) {
|
|
87635
|
+
if (("src" in runA || runA.kind === "lineBreak" || runA.kind === "break" || runA.kind === "fieldAnnotation" ? "" : runA.text) !== ("src" in runB || runB.kind === "lineBreak" || runB.kind === "break" || runB.kind === "fieldAnnotation" ? "" : runB.text) || ("bold" in runA ? runA.bold : false) !== ("bold" in runB ? runB.bold : false) || ("italic" in runA ? runA.italic : false) !== ("italic" in runB ? runB.italic : false) || ("color" in runA ? runA.color : void 0) !== ("color" in runB ? runB.color : void 0) || ("fontSize" in runA ? runA.fontSize : void 0) !== ("fontSize" in runB ? runB.fontSize : void 0) || ("fontFamily" in runA ? runA.fontFamily : void 0) !== ("fontFamily" in runB ? runB.fontFamily : void 0) || getTrackedChangeKey(runA) !== getTrackedChangeKey(runB)) {
|
|
87610
87636
|
return false;
|
|
87611
87637
|
}
|
|
87612
87638
|
}
|
|
@@ -149855,7 +149881,7 @@ ${style2}
|
|
|
149855
149881
|
this.config.colors = shuffleArray(this.config.colors);
|
|
149856
149882
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
149857
149883
|
this.colorIndex = 0;
|
|
149858
|
-
this.version = "1.0.0-beta.
|
|
149884
|
+
this.version = "1.0.0-beta.65";
|
|
149859
149885
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
149860
149886
|
this.superdocId = config2.superdocId || v4();
|
|
149861
149887
|
this.colors = this.config.colors;
|
|
@@ -152327,7 +152353,7 @@ ${style2}
|
|
|
152327
152353
|
value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
|
|
152328
152354
|
);
|
|
152329
152355
|
}
|
|
152330
|
-
const
|
|
152356
|
+
const indexYSWS94Jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
152331
152357
|
__proto__: null,
|
|
152332
152358
|
unified
|
|
152333
152359
|
}, Symbol.toStringTag, { value: "Module" }));
|