@harbour-enterprises/superdoc 1.0.0-beta.78 → 1.0.0-beta.79
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-DoWzSrLW.es.js → PdfViewer-DLPMtoVD.es.js} +1 -1
- package/dist/chunks/{PdfViewer-Dkj2i56W.cjs → PdfViewer-Dn5MoKhX.cjs} +1 -1
- package/dist/chunks/{index-BrLLdSRq.cjs → index-DLvHMUJi.cjs} +3 -3
- package/dist/chunks/{index-BQV_9k5c.es.js → index-X_javC2m.es.js} +3 -3
- package/dist/chunks/{index-B5WMAomO-BZqKjjwh.es.js → index-lIKPN00V-Bn76jN3g.es.js} +1 -1
- package/dist/chunks/{index-B5WMAomO-CZPAJQHc.cjs → index-lIKPN00V-dYKYHttm.cjs} +1 -1
- package/dist/chunks/{super-editor.es-CCLKZXSm.cjs → super-editor.es-37HP4-SX.cjs} +29 -12
- package/dist/chunks/{super-editor.es-0aF-l9MP.es.js → super-editor.es-eQ24GmlY.es.js} +29 -12
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-BIp4wnLV.js → converter-DqebDh5Y.js} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-CYyRe8RE.js → docx-zipper-DNBbqIUN.js} +1 -1
- package/dist/super-editor/chunks/{editor-DdtGcLU2.js → editor-BHqPITqs.js} +30 -13
- package/dist/super-editor/chunks/{index-B5WMAomO.js → index-lIKPN00V.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-DRg2y7Un.js → toolbar-gYGrkDSx.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 -14
- 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.79") {
|
|
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.79";
|
|
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(() => indexLIKPN00V),
|
|
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.79");
|
|
68371
68371
|
if (!this.options.ydoc) return;
|
|
68372
68372
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
68373
68373
|
let docVersion = metaMap.get("version");
|
|
@@ -70298,6 +70298,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
70298
70298
|
}, void 0);
|
|
70299
70299
|
};
|
|
70300
70300
|
const normalizeUnderlineStyle = (value) => {
|
|
70301
|
+
if (value === "none") {
|
|
70302
|
+
return void 0;
|
|
70303
|
+
}
|
|
70301
70304
|
if (value === "double" || value === "dotted" || value === "dashed" || value === "wavy") {
|
|
70302
70305
|
return value;
|
|
70303
70306
|
}
|
|
@@ -70315,7 +70318,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
70315
70318
|
}
|
|
70316
70319
|
if (typeof value === "string") {
|
|
70317
70320
|
const normalized = value.trim().toLowerCase();
|
|
70318
|
-
if (normalized === "0" || normalized === "false" || normalized === "off") {
|
|
70321
|
+
if (normalized === "0" || normalized === "false" || normalized === "off" || normalized === "none") {
|
|
70319
70322
|
return false;
|
|
70320
70323
|
}
|
|
70321
70324
|
if (normalized === "1" || normalized === "true" || normalized === "on") {
|
|
@@ -73825,9 +73828,20 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
73825
73828
|
return `#${raw}`;
|
|
73826
73829
|
};
|
|
73827
73830
|
const toUnderlineStyle = (value) => {
|
|
73828
|
-
|
|
73829
|
-
if (
|
|
73830
|
-
|
|
73831
|
+
let raw;
|
|
73832
|
+
if (value && typeof value === "object") {
|
|
73833
|
+
const obj = value;
|
|
73834
|
+
raw = obj.underline ?? obj.underlineType ?? obj.value ?? value;
|
|
73835
|
+
} else {
|
|
73836
|
+
raw = extractValue(value);
|
|
73837
|
+
}
|
|
73838
|
+
const normalized = `${raw ?? ""}`.toLowerCase();
|
|
73839
|
+
if (!normalized || normalized === "none" || normalized === "0" || normalized === "[object object]") {
|
|
73840
|
+
return void 0;
|
|
73841
|
+
}
|
|
73842
|
+
if (normalized === "double" || normalized === "dotted" || normalized === "dashed" || normalized === "wavy") {
|
|
73843
|
+
return normalized;
|
|
73844
|
+
}
|
|
73831
73845
|
return "single";
|
|
73832
73846
|
};
|
|
73833
73847
|
const PT_TO_PX = 96 / 72;
|
|
@@ -73885,13 +73899,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
73885
73899
|
const { resolver, paragraphStyleId, inlineStyleId, runStyleId } = options;
|
|
73886
73900
|
const maps = [];
|
|
73887
73901
|
if (paragraphStyleId) {
|
|
73888
|
-
|
|
73902
|
+
const pMap = resolver.getStyleMap(paragraphStyleId);
|
|
73903
|
+
maps.push(pMap);
|
|
73889
73904
|
}
|
|
73890
73905
|
if (inlineStyleId && !paragraphStyleId?.startsWith("TOC")) {
|
|
73891
|
-
|
|
73906
|
+
const iMap = resolver.getStyleMap(inlineStyleId);
|
|
73907
|
+
maps.push(iMap);
|
|
73892
73908
|
}
|
|
73893
73909
|
if (runStyleId) {
|
|
73894
|
-
|
|
73910
|
+
const rMap = resolver.getStyleMap(runStyleId);
|
|
73911
|
+
maps.push(rMap);
|
|
73895
73912
|
}
|
|
73896
73913
|
if (!maps.length) return;
|
|
73897
73914
|
const finalStyles = Object.assign({}, ...maps);
|
|
@@ -110636,7 +110653,7 @@ ${l}
|
|
|
110636
110653
|
if (color2) markValue["background-color"] = color2;
|
|
110637
110654
|
}
|
|
110638
110655
|
} else if (key2 === "underline" && node2) {
|
|
110639
|
-
const styleValRaw = value?.value ?? value ?? "";
|
|
110656
|
+
const styleValRaw = value?.underline ?? value?.underlineType ?? value?.value ?? (typeof value === "string" ? value : "");
|
|
110640
110657
|
const styleVal = styleValRaw.toString().toLowerCase();
|
|
110641
110658
|
const hasInlineUnderlineOff = node2.marks?.some(
|
|
110642
110659
|
(m2) => m2.type?.name === "underline" && m2.attrs?.underlineType === "none"
|
|
@@ -150415,7 +150432,7 @@ ${style2}
|
|
|
150415
150432
|
this.config.colors = shuffleArray(this.config.colors);
|
|
150416
150433
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
150417
150434
|
this.colorIndex = 0;
|
|
150418
|
-
this.version = "1.0.0-beta.
|
|
150435
|
+
this.version = "1.0.0-beta.79";
|
|
150419
150436
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
150420
150437
|
this.superdocId = config2.superdocId || v4();
|
|
150421
150438
|
this.colors = this.config.colors;
|
|
@@ -152887,7 +152904,7 @@ ${style2}
|
|
|
152887
152904
|
value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
|
|
152888
152905
|
);
|
|
152889
152906
|
}
|
|
152890
|
-
const
|
|
152907
|
+
const indexLIKPN00V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
152891
152908
|
__proto__: null,
|
|
152892
152909
|
unified
|
|
152893
152910
|
}, Symbol.toStringTag, { value: "Module" }));
|