@harbour-enterprises/superdoc 1.0.0-beta.85 → 1.0.0-beta.86
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-DKSowWMT.es.js → PdfViewer-CykepcoV.es.js} +1 -1
- package/dist/chunks/{PdfViewer-CGlfOU3w.cjs → PdfViewer-SI3BgkBA.cjs} +1 -1
- package/dist/chunks/{index-B4I7N08F.es.js → index-BpJVC0Wc.es.js} +3 -3
- package/dist/chunks/{index-D8ciXlCs-CB0cgrGv.es.js → index-DeSyD44U-BKmM9Hn7.es.js} +1 -1
- package/dist/chunks/{index-D8ciXlCs-B1Q8QwX8.cjs → index-DeSyD44U-Dxv0c3H-.cjs} +1 -1
- package/dist/chunks/{index-nbBk8Xrw.cjs → index-xfoqV3U-.cjs} +3 -3
- package/dist/chunks/{super-editor.es-BblRVT7_.es.js → super-editor.es-CEmkebDF.es.js} +17 -11
- package/dist/chunks/{super-editor.es-Hkn9VlOX.cjs → super-editor.es-DLa6Nlsi.cjs} +17 -11
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-JgEU6dRK.js → converter-B25GbVbB.js} +14 -8
- package/dist/super-editor/chunks/{docx-zipper-I9EOoeW0.js → docx-zipper-ROb6hWD8.js} +1 -1
- package/dist/super-editor/chunks/{editor-tcvFrXO7.js → editor-C2fZMnwi.js} +5 -5
- package/dist/super-editor/chunks/{index-D8ciXlCs.js → index-DeSyD44U.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-CIlSwcI_.js → toolbar-CzcKT6WT.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 +19 -13
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/superdoc.umd.js
CHANGED
|
@@ -20311,6 +20311,7 @@
|
|
|
20311
20311
|
params2,
|
|
20312
20312
|
inlineParagraphProperties,
|
|
20313
20313
|
insideTable,
|
|
20314
|
+
false,
|
|
20314
20315
|
tableStyleId
|
|
20315
20316
|
);
|
|
20316
20317
|
const { elements = [], attributes = {}, marks = [] } = parseProperties(node2, params2.docx);
|
|
@@ -20999,7 +21000,9 @@
|
|
|
20999
21000
|
(v2) => integerToString(v2)
|
|
21000
21001
|
)
|
|
21001
21002
|
);
|
|
21002
|
-
const translator$Y = NodeTranslator.from(
|
|
21003
|
+
const translator$Y = NodeTranslator.from(
|
|
21004
|
+
createSingleAttrPropertyHandler("w:vMerge", null, "w:val", (val) => !val ? "continue" : val)
|
|
21005
|
+
);
|
|
21003
21006
|
const translator$X = NodeTranslator.from(createBorderPropertyHandler("w:end"));
|
|
21004
21007
|
const translator$W = NodeTranslator.from(createMeasurementPropertyHandler("w:end", "marginEnd"));
|
|
21005
21008
|
const translator$V = NodeTranslator.from(createBorderPropertyHandler("w:insideH"));
|
|
@@ -21378,11 +21381,12 @@
|
|
|
21378
21381
|
delete tableCellProperties.vAlign;
|
|
21379
21382
|
}
|
|
21380
21383
|
const { rowspan } = attrs;
|
|
21381
|
-
|
|
21384
|
+
const hasExistingVMerge = tableCellProperties.vMerge != null;
|
|
21385
|
+
if (rowspan && rowspan > 1) {
|
|
21382
21386
|
tableCellProperties["vMerge"] = "restart";
|
|
21383
21387
|
} else if (attrs.continueMerge) {
|
|
21384
21388
|
tableCellProperties["vMerge"] = "continue";
|
|
21385
|
-
} else if (
|
|
21389
|
+
} else if (!hasExistingVMerge) {
|
|
21386
21390
|
delete tableCellProperties.vMerge;
|
|
21387
21391
|
}
|
|
21388
21392
|
const { borders = {} } = attrs;
|
|
@@ -33472,12 +33476,14 @@
|
|
|
33472
33476
|
if (cached) {
|
|
33473
33477
|
return cached;
|
|
33474
33478
|
}
|
|
33475
|
-
const
|
|
33479
|
+
const tableNode = findParentNodeClosestToPos($pos, (node22) => node22.type.name === "table");
|
|
33480
|
+
const tableStyleId = tableNode?.node.attrs.tableStyleId || null;
|
|
33476
33481
|
const paragraphProperties = resolveParagraphProperties(
|
|
33477
33482
|
{ docx: editor.converter.convertedXml, numbering: editor.converter.numbering },
|
|
33478
33483
|
node2.attrs.paragraphProperties || {},
|
|
33479
|
-
|
|
33480
|
-
false
|
|
33484
|
+
Boolean(tableNode),
|
|
33485
|
+
false,
|
|
33486
|
+
tableStyleId
|
|
33481
33487
|
);
|
|
33482
33488
|
resolvedParagraphPropertiesCache.set(node2, paragraphProperties);
|
|
33483
33489
|
return paragraphProperties;
|
|
@@ -38343,7 +38349,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38343
38349
|
const tblPr = styleTag.elements.find((el) => el.name === "w:tblPr");
|
|
38344
38350
|
if (tblPr && tblPr.elements) {
|
|
38345
38351
|
if (baseTblPr && baseTblPr.elements) {
|
|
38346
|
-
tblPr.elements
|
|
38352
|
+
tblPr.elements = [...baseTblPr.elements, ...tblPr.elements];
|
|
38347
38353
|
}
|
|
38348
38354
|
const tableProperties = translator$c.encode({ ...params2, nodes: [tblPr] });
|
|
38349
38355
|
if (tableProperties) {
|
|
@@ -42392,7 +42398,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
42392
42398
|
static getStoredSuperdocVersion(docx) {
|
|
42393
42399
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
42394
42400
|
}
|
|
42395
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.
|
|
42401
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.86") {
|
|
42396
42402
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
42397
42403
|
}
|
|
42398
42404
|
/**
|
|
@@ -67438,7 +67444,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
67438
67444
|
const shouldSkipNodeView = (editor) => {
|
|
67439
67445
|
return isHeadless(editor);
|
|
67440
67446
|
};
|
|
67441
|
-
const summaryVersion = "1.0.0-beta.
|
|
67447
|
+
const summaryVersion = "1.0.0-beta.86";
|
|
67442
67448
|
const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
|
|
67443
67449
|
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
67444
67450
|
function mapAttributes(attrs) {
|
|
@@ -68227,7 +68233,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
68227
68233
|
{ default: remarkStringify2 },
|
|
68228
68234
|
{ default: remarkGfm2 }
|
|
68229
68235
|
] = await Promise.all([
|
|
68230
|
-
Promise.resolve().then(() =>
|
|
68236
|
+
Promise.resolve().then(() => indexDeSyD44U),
|
|
68231
68237
|
Promise.resolve().then(() => indexDRCvimau),
|
|
68232
68238
|
Promise.resolve().then(() => indexC_x_N6Uh),
|
|
68233
68239
|
Promise.resolve().then(() => indexD_sWOSiG),
|
|
@@ -68432,7 +68438,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
68432
68438
|
* Process collaboration migrations
|
|
68433
68439
|
*/
|
|
68434
68440
|
processCollaborationMigrations() {
|
|
68435
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.
|
|
68441
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.86");
|
|
68436
68442
|
if (!this.options.ydoc) return;
|
|
68437
68443
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
68438
68444
|
let docVersion = metaMap.get("version");
|
|
@@ -151301,7 +151307,7 @@ ${style2}
|
|
|
151301
151307
|
this.config.colors = shuffleArray(this.config.colors);
|
|
151302
151308
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
151303
151309
|
this.colorIndex = 0;
|
|
151304
|
-
this.version = "1.0.0-beta.
|
|
151310
|
+
this.version = "1.0.0-beta.86";
|
|
151305
151311
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
151306
151312
|
this.superdocId = config2.superdocId || v4();
|
|
151307
151313
|
this.colors = this.config.colors;
|
|
@@ -153773,7 +153779,7 @@ ${style2}
|
|
|
153773
153779
|
value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
|
|
153774
153780
|
);
|
|
153775
153781
|
}
|
|
153776
|
-
const
|
|
153782
|
+
const indexDeSyD44U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
153777
153783
|
__proto__: null,
|
|
153778
153784
|
unified
|
|
153779
153785
|
}, Symbol.toStringTag, { value: "Module" }));
|