@harbour-enterprises/superdoc 1.0.0-beta.90 → 1.0.0-beta.91
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-CLLXG5q4.cjs → PdfViewer-D7lP-5Q1.cjs} +1 -1
- package/dist/chunks/{PdfViewer-CA7JXdaT.es.js → PdfViewer-SGaot_Xd.es.js} +1 -1
- package/dist/chunks/{index-m5UyYS6V.cjs → index-BGhI0Tn-.cjs} +3 -3
- package/dist/chunks/{index-DwotqBvu-B162nlwz.cjs → index-CJTzjw3v-BQGgIJSs.cjs} +1 -1
- package/dist/chunks/{index-DwotqBvu-CpZ1ZTsk.es.js → index-CJTzjw3v-BbD6ZDSJ.es.js} +1 -1
- package/dist/chunks/{index-BVll2b9C.es.js → index-DyRYxNDJ.es.js} +3 -3
- package/dist/chunks/{super-editor.es-BA8g4OE9.cjs → super-editor.es-BA4fESs2.cjs} +24 -37
- package/dist/chunks/{super-editor.es-CNL1ZK31.es.js → super-editor.es-CTUuTH0r.es.js} +24 -37
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-DsfA9vTm.js → converter-O4-ONmMv.js} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-CXQWucNo.js → docx-zipper-CiUku8wa.js} +1 -1
- package/dist/super-editor/chunks/{editor-D1LYOYm7.js → editor-Aj9ko-SB.js} +25 -38
- package/dist/super-editor/chunks/{index-DwotqBvu.js → index-CJTzjw3v.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-d9ylzcuJ.js → toolbar-D0AIe1Gv.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 +26 -39
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/superdoc.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
4
|
-
const superdoc = require("./chunks/index-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-BA4fESs2.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-BGhI0Tn-.cjs");
|
|
5
5
|
const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
|
|
6
6
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
|
7
7
|
exports.Editor = superEditor_es.Editor;
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-
|
|
2
|
-
import { D, H, P, S as S2, m, l } from "./chunks/index-
|
|
1
|
+
import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-CTUuTH0r.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-DyRYxNDJ.es.js";
|
|
3
3
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
4
4
|
export {
|
|
5
5
|
a as AnnotatorHelpers,
|
package/dist/superdoc.umd.js
CHANGED
|
@@ -42398,7 +42398,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
42398
42398
|
static getStoredSuperdocVersion(docx) {
|
|
42399
42399
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
42400
42400
|
}
|
|
42401
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.
|
|
42401
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.91") {
|
|
42402
42402
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
42403
42403
|
}
|
|
42404
42404
|
/**
|
|
@@ -67461,7 +67461,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
67461
67461
|
const shouldSkipNodeView = (editor) => {
|
|
67462
67462
|
return isHeadless(editor);
|
|
67463
67463
|
};
|
|
67464
|
-
const summaryVersion = "1.0.0-beta.
|
|
67464
|
+
const summaryVersion = "1.0.0-beta.91";
|
|
67465
67465
|
const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
|
|
67466
67466
|
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
67467
67467
|
function mapAttributes(attrs) {
|
|
@@ -68250,7 +68250,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
68250
68250
|
{ default: remarkStringify2 },
|
|
68251
68251
|
{ default: remarkGfm2 }
|
|
68252
68252
|
] = await Promise.all([
|
|
68253
|
-
Promise.resolve().then(() =>
|
|
68253
|
+
Promise.resolve().then(() => indexCJTzjw3v),
|
|
68254
68254
|
Promise.resolve().then(() => indexDRCvimau),
|
|
68255
68255
|
Promise.resolve().then(() => indexC_x_N6Uh),
|
|
68256
68256
|
Promise.resolve().then(() => indexD_sWOSiG),
|
|
@@ -68455,7 +68455,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
68455
68455
|
* Process collaboration migrations
|
|
68456
68456
|
*/
|
|
68457
68457
|
processCollaborationMigrations() {
|
|
68458
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.
|
|
68458
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.91");
|
|
68459
68459
|
if (!this.options.ydoc) return;
|
|
68460
68460
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
68461
68461
|
let docVersion = metaMap.get("version");
|
|
@@ -73854,7 +73854,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
73854
73854
|
markerX,
|
|
73855
73855
|
textStartX: textStartPx,
|
|
73856
73856
|
baselineOffsetPx: markerRun.baselineShift ?? 0,
|
|
73857
|
-
|
|
73857
|
+
// Gutter is the small gap between marker and text, not the full marker box width
|
|
73858
|
+
gutterWidthPx: LIST_MARKER_GAP$3,
|
|
73858
73859
|
justification: numbering.lvlJc ?? "left",
|
|
73859
73860
|
suffix: normalizeSuffix$1(numbering.suffix) ?? "tab",
|
|
73860
73861
|
run: markerRun,
|
|
@@ -86837,6 +86838,20 @@ ${l}
|
|
|
86837
86838
|
pmEnd: end2 ?? (start2 != null ? start2 + 1 : void 0)
|
|
86838
86839
|
};
|
|
86839
86840
|
};
|
|
86841
|
+
function calculateFirstLineIndent(block, measure) {
|
|
86842
|
+
const wordLayout = block.attrs?.wordLayout;
|
|
86843
|
+
if (!wordLayout?.firstLineIndentMode) {
|
|
86844
|
+
return 0;
|
|
86845
|
+
}
|
|
86846
|
+
if (!wordLayout.marker || !measure.marker) {
|
|
86847
|
+
return 0;
|
|
86848
|
+
}
|
|
86849
|
+
const markerWidthRaw = measure.marker.markerWidth ?? wordLayout.marker.markerBoxWidthPx ?? 0;
|
|
86850
|
+
const markerWidth = Number.isFinite(markerWidthRaw) && markerWidthRaw >= 0 ? markerWidthRaw : 0;
|
|
86851
|
+
const gutterWidthRaw = measure.marker.gutterWidth ?? 0;
|
|
86852
|
+
const gutterWidth = Number.isFinite(gutterWidthRaw) && gutterWidthRaw >= 0 ? gutterWidthRaw : 0;
|
|
86853
|
+
return markerWidth + gutterWidth;
|
|
86854
|
+
}
|
|
86840
86855
|
function layoutParagraphBlock(ctx2, anchors) {
|
|
86841
86856
|
const { block, measure, columnWidth, ensurePage, advanceColumn, columnX, floatManager } = ctx2;
|
|
86842
86857
|
const remeasureParagraph2 = ctx2.remeasureParagraph;
|
|
@@ -86959,16 +86974,7 @@ ${l}
|
|
|
86959
86974
|
const measurementWidth = lines[0]?.maxWidth;
|
|
86960
86975
|
let didRemeasureForColumnWidth = false;
|
|
86961
86976
|
if (typeof remeasureParagraph2 === "function" && typeof measurementWidth === "number" && measurementWidth > columnWidth) {
|
|
86962
|
-
|
|
86963
|
-
const wordLayout = block.attrs?.wordLayout;
|
|
86964
|
-
if (wordLayout?.marker && measure.marker) {
|
|
86965
|
-
const markerJustification = wordLayout.marker.justification ?? "left";
|
|
86966
|
-
if (markerJustification === "left") {
|
|
86967
|
-
const markerWidth = measure.marker.markerWidth ?? 0;
|
|
86968
|
-
const gutterWidth = measure.marker.gutterWidth ?? wordLayout.marker.gutterWidthPx ?? 0;
|
|
86969
|
-
firstLineIndent = markerWidth + gutterWidth;
|
|
86970
|
-
}
|
|
86971
|
-
}
|
|
86977
|
+
const firstLineIndent = calculateFirstLineIndent(block, measure);
|
|
86972
86978
|
const newMeasure = remeasureParagraph2(block, columnWidth, firstLineIndent);
|
|
86973
86979
|
lines = normalizeLines(newMeasure);
|
|
86974
86980
|
didRemeasureForColumnWidth = true;
|
|
@@ -87048,16 +87054,7 @@ ${l}
|
|
|
87048
87054
|
tempY += lineHeight2;
|
|
87049
87055
|
}
|
|
87050
87056
|
if (narrowestWidth < columnWidth) {
|
|
87051
|
-
|
|
87052
|
-
const wordLayout = block.attrs?.wordLayout;
|
|
87053
|
-
if (wordLayout?.marker && measure.marker) {
|
|
87054
|
-
const markerJustification = wordLayout.marker.justification ?? "left";
|
|
87055
|
-
if (markerJustification === "left") {
|
|
87056
|
-
const markerWidth = measure.marker.markerWidth ?? 0;
|
|
87057
|
-
const gutterWidth = measure.marker.gutterWidth ?? wordLayout.marker.gutterWidthPx ?? 0;
|
|
87058
|
-
firstLineIndent = markerWidth + gutterWidth;
|
|
87059
|
-
}
|
|
87060
|
-
}
|
|
87057
|
+
const firstLineIndent = calculateFirstLineIndent(block, measure);
|
|
87061
87058
|
const newMeasure = remeasureParagraph2(block, narrowestWidth, firstLineIndent);
|
|
87062
87059
|
lines = normalizeLines(newMeasure);
|
|
87063
87060
|
didRemeasureForFloats = true;
|
|
@@ -92146,22 +92143,12 @@ ${l}
|
|
|
92146
92143
|
const clampedFirstLineOffset = Math.max(0, rawFirstLineOffset);
|
|
92147
92144
|
const firstLineOffset = isWordLayoutList ? 0 : clampedFirstLineOffset;
|
|
92148
92145
|
const contentWidth = Math.max(1, maxWidth - indentLeft - indentRight);
|
|
92149
|
-
let leftJustifiedMarkerSpace = 0;
|
|
92150
|
-
if (wordLayout?.marker) {
|
|
92151
|
-
const markerJustification = wordLayout.marker.justification ?? "left";
|
|
92152
|
-
if (markerJustification === "left") {
|
|
92153
|
-
const markerBoxWidth = wordLayout.marker.markerBoxWidthPx ?? 0;
|
|
92154
|
-
const gutterWidth = wordLayout.marker.gutterWidthPx ?? LIST_MARKER_GAP;
|
|
92155
|
-
leftJustifiedMarkerSpace = markerBoxWidth + gutterWidth;
|
|
92156
|
-
}
|
|
92157
|
-
}
|
|
92158
92146
|
let initialAvailableWidth;
|
|
92159
|
-
const isFirstLineIndentMode = wordLayout?.firstLineIndentMode === true;
|
|
92160
92147
|
const textStartPx = wordLayout?.textStartPx;
|
|
92161
|
-
if (
|
|
92148
|
+
if (typeof textStartPx === "number" && textStartPx > indentLeft) {
|
|
92162
92149
|
initialAvailableWidth = Math.max(1, maxWidth - textStartPx - indentRight);
|
|
92163
92150
|
} else {
|
|
92164
|
-
initialAvailableWidth = Math.max(1, contentWidth - firstLineOffset
|
|
92151
|
+
initialAvailableWidth = Math.max(1, contentWidth - firstLineOffset);
|
|
92165
92152
|
}
|
|
92166
92153
|
const tabStops = buildTabStopsPx(
|
|
92167
92154
|
indent2,
|
|
@@ -151623,7 +151610,7 @@ ${style2}
|
|
|
151623
151610
|
this.config.colors = shuffleArray(this.config.colors);
|
|
151624
151611
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
151625
151612
|
this.colorIndex = 0;
|
|
151626
|
-
this.version = "1.0.0-beta.
|
|
151613
|
+
this.version = "1.0.0-beta.91";
|
|
151627
151614
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
151628
151615
|
this.superdocId = config2.superdocId || v4();
|
|
151629
151616
|
this.colors = this.config.colors;
|
|
@@ -154095,7 +154082,7 @@ ${style2}
|
|
|
154095
154082
|
value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
|
|
154096
154083
|
);
|
|
154097
154084
|
}
|
|
154098
|
-
const
|
|
154085
|
+
const indexCJTzjw3v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
154099
154086
|
__proto__: null,
|
|
154100
154087
|
unified
|
|
154101
154088
|
}, Symbol.toStringTag, { value: "Module" }));
|