@harbour-enterprises/superdoc 1.0.0-beta.58 → 1.0.0-beta.59
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-CPNlFudP.cjs → PdfViewer-Cqk3l90H.cjs} +1 -1
- package/dist/chunks/{PdfViewer-BOtq_Mxx.es.js → PdfViewer-zpn99sVp.es.js} +1 -1
- package/dist/chunks/{index-yDP_DAl6.cjs → index-Cjipvbt7.cjs} +3 -3
- package/dist/chunks/{index-Wqm4Y9w9.es.js → index-DjmaOC4E.es.js} +3 -3
- package/dist/chunks/{index-BWMksCRw-BtY5hIaC.cjs → index-p5nUefNA-BBn8gZoL.cjs} +1 -1
- package/dist/chunks/{index-BWMksCRw-BE_kaq_r.es.js → index-p5nUefNA-uQGvl206.es.js} +1 -1
- package/dist/chunks/{super-editor.es-BtTJyHJj.es.js → super-editor.es-B_aU9Ilo.es.js} +60 -5
- package/dist/chunks/{super-editor.es-DsUuY-Pt.cjs → super-editor.es-jT-SK1Sx.cjs} +60 -5
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-w1IY5-V-.js → converter-CGbieO55.js} +4 -2
- package/dist/super-editor/chunks/{docx-zipper-B7-XHg8m.js → docx-zipper-BFro6vIZ.js} +1 -1
- package/dist/super-editor/chunks/{editor-CiTfe7Wr.js → editor-D4VwHdPT.js} +58 -5
- package/dist/super-editor/chunks/{index-BWMksCRw.js → index-p5nUefNA.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-yy1NR024.js → toolbar-CxnmhVxL.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 +62 -7
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/superdoc.umd.js
CHANGED
|
@@ -41763,7 +41763,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
41763
41763
|
const isUndefined = el === "<undefined>" || el === "</undefined>";
|
|
41764
41764
|
return !isUndefined;
|
|
41765
41765
|
});
|
|
41766
|
-
|
|
41766
|
+
for (const element2 of removeUndefined) {
|
|
41767
|
+
tags.push(element2);
|
|
41768
|
+
}
|
|
41767
41769
|
}
|
|
41768
41770
|
}
|
|
41769
41771
|
}
|
|
@@ -42207,7 +42209,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
42207
42209
|
static getStoredSuperdocVersion(docx) {
|
|
42208
42210
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
42209
42211
|
}
|
|
42210
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.
|
|
42212
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.59") {
|
|
42211
42213
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
42212
42214
|
}
|
|
42213
42215
|
/**
|
|
@@ -67253,7 +67255,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
67253
67255
|
const shouldSkipNodeView = (editor) => {
|
|
67254
67256
|
return isHeadless(editor);
|
|
67255
67257
|
};
|
|
67256
|
-
const summaryVersion = "1.0.0-beta.
|
|
67258
|
+
const summaryVersion = "1.0.0-beta.59";
|
|
67257
67259
|
const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
|
|
67258
67260
|
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
67259
67261
|
function mapAttributes(attrs) {
|
|
@@ -68042,7 +68044,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
68042
68044
|
{ default: remarkStringify2 },
|
|
68043
68045
|
{ default: remarkGfm2 }
|
|
68044
68046
|
] = await Promise.all([
|
|
68045
|
-
Promise.resolve().then(() =>
|
|
68047
|
+
Promise.resolve().then(() => indexP5nUefNA),
|
|
68046
68048
|
Promise.resolve().then(() => indexDRCvimau),
|
|
68047
68049
|
Promise.resolve().then(() => indexC_x_N6Uh),
|
|
68048
68050
|
Promise.resolve().then(() => indexD_sWOSiG),
|
|
@@ -68247,7 +68249,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
68247
68249
|
* Process collaboration migrations
|
|
68248
68250
|
*/
|
|
68249
68251
|
processCollaborationMigrations() {
|
|
68250
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.
|
|
68252
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.59");
|
|
68251
68253
|
if (!this.options.ydoc) return;
|
|
68252
68254
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
68253
68255
|
let docVersion = metaMap.get("version");
|
|
@@ -89433,6 +89435,59 @@ ${l}
|
|
|
89433
89435
|
for (let segmentIndex = 0; segmentIndex < tabSegments.length; segmentIndex++) {
|
|
89434
89436
|
const segment = tabSegments[segmentIndex];
|
|
89435
89437
|
const isLastSegment = segmentIndex === tabSegments.length - 1;
|
|
89438
|
+
if (/^[ ]+$/.test(segment)) {
|
|
89439
|
+
const spacesLength = segment.length;
|
|
89440
|
+
const spacesStartChar = charPosInRun;
|
|
89441
|
+
const spacesEndChar = charPosInRun + spacesLength;
|
|
89442
|
+
const spacesWidth = measureRunWidth(segment, font, ctx2, run2);
|
|
89443
|
+
if (!currentLine) {
|
|
89444
|
+
currentLine = {
|
|
89445
|
+
fromRun: runIndex,
|
|
89446
|
+
fromChar: spacesStartChar,
|
|
89447
|
+
toRun: runIndex,
|
|
89448
|
+
toChar: spacesEndChar,
|
|
89449
|
+
width: spacesWidth,
|
|
89450
|
+
maxFontSize: run2.fontSize,
|
|
89451
|
+
maxFontInfo: getFontInfoFromRun(run2),
|
|
89452
|
+
maxWidth: getEffectiveWidth(initialAvailableWidth),
|
|
89453
|
+
segments: [{ runIndex, fromChar: spacesStartChar, toChar: spacesEndChar, width: spacesWidth }]
|
|
89454
|
+
};
|
|
89455
|
+
} else {
|
|
89456
|
+
const boundarySpacing = currentLine.width > 0 ? run2.letterSpacing ?? 0 : 0;
|
|
89457
|
+
if (currentLine.width + boundarySpacing + spacesWidth > currentLine.maxWidth - WIDTH_FUDGE_PX && currentLine.width > 0) {
|
|
89458
|
+
const metrics = calculateTypographyMetrics(currentLine.maxFontSize, spacing, currentLine.maxFontInfo);
|
|
89459
|
+
const completedLine = {
|
|
89460
|
+
...currentLine,
|
|
89461
|
+
...metrics
|
|
89462
|
+
};
|
|
89463
|
+
addBarTabsToLine(completedLine);
|
|
89464
|
+
lines.push(completedLine);
|
|
89465
|
+
tabStopCursor = 0;
|
|
89466
|
+
pendingTabAlignment = null;
|
|
89467
|
+
lastAppliedTabAlign = null;
|
|
89468
|
+
currentLine = {
|
|
89469
|
+
fromRun: runIndex,
|
|
89470
|
+
fromChar: spacesStartChar,
|
|
89471
|
+
toRun: runIndex,
|
|
89472
|
+
toChar: spacesEndChar,
|
|
89473
|
+
width: spacesWidth,
|
|
89474
|
+
maxFontSize: run2.fontSize,
|
|
89475
|
+
maxFontInfo: getFontInfoFromRun(run2),
|
|
89476
|
+
maxWidth: getEffectiveWidth(contentWidth),
|
|
89477
|
+
segments: [{ runIndex, fromChar: spacesStartChar, toChar: spacesEndChar, width: spacesWidth }]
|
|
89478
|
+
};
|
|
89479
|
+
} else {
|
|
89480
|
+
currentLine.toRun = runIndex;
|
|
89481
|
+
currentLine.toChar = spacesEndChar;
|
|
89482
|
+
currentLine.width = roundValue(currentLine.width + boundarySpacing + spacesWidth);
|
|
89483
|
+
currentLine.maxFontInfo = updateMaxFontInfo(currentLine.maxFontSize, currentLine.maxFontInfo, run2);
|
|
89484
|
+
currentLine.maxFontSize = Math.max(currentLine.maxFontSize, run2.fontSize);
|
|
89485
|
+
appendSegment(currentLine.segments, runIndex, spacesStartChar, spacesEndChar, spacesWidth);
|
|
89486
|
+
}
|
|
89487
|
+
}
|
|
89488
|
+
charPosInRun = spacesEndChar;
|
|
89489
|
+
continue;
|
|
89490
|
+
}
|
|
89436
89491
|
const words = segment.split(" ");
|
|
89437
89492
|
let segmentStartX;
|
|
89438
89493
|
if (currentLine && pendingTabAlignment) {
|
|
@@ -149149,7 +149204,7 @@ ${style2}
|
|
|
149149
149204
|
this.config.colors = shuffleArray(this.config.colors);
|
|
149150
149205
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
149151
149206
|
this.colorIndex = 0;
|
|
149152
|
-
this.version = "1.0.0-beta.
|
|
149207
|
+
this.version = "1.0.0-beta.59";
|
|
149153
149208
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
149154
149209
|
this.superdocId = config2.superdocId || v4();
|
|
149155
149210
|
this.colors = this.config.colors;
|
|
@@ -151615,7 +151670,7 @@ ${style2}
|
|
|
151615
151670
|
value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
|
|
151616
151671
|
);
|
|
151617
151672
|
}
|
|
151618
|
-
const
|
|
151673
|
+
const indexP5nUefNA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
151619
151674
|
__proto__: null,
|
|
151620
151675
|
unified
|
|
151621
151676
|
}, Symbol.toStringTag, { value: "Module" }));
|