superdoc 1.0.0-beta.26 → 1.0.0-beta.27
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-GRWTCGvV.es.js → PdfViewer-DGrlCXZ4.es.js} +1 -1
- package/dist/chunks/{PdfViewer-DLnlLYCn.cjs → PdfViewer-iCAmPXap.cjs} +1 -1
- package/dist/chunks/{index-Di02o4N2.cjs → index-0fejVel3.cjs} +3 -3
- package/dist/chunks/{index-C-8nsTfX-NXZz_sJC.cjs → index-B9InP_01-BiyU244m.cjs} +1 -1
- package/dist/chunks/{index-C-8nsTfX-LNso9zdo.es.js → index-B9InP_01-Xwm9fBmW.es.js} +1 -1
- package/dist/chunks/{index-COABn1uy.es.js → index-DqPOJm-d.es.js} +3 -3
- package/dist/chunks/{super-editor.es-CgAkPiiu.cjs → super-editor.es-BU2yH1Gu.cjs} +9 -19
- package/dist/chunks/{super-editor.es-B_4HKfa9.es.js → super-editor.es-C7-Cnj9g.es.js} +9 -19
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-B-8ulzNR.js → converter-Djir61CW.js} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-BOnxck-I.js → docx-zipper-CHXUPlGv.js} +1 -1
- package/dist/super-editor/chunks/{editor-CNnsYbPC.js → editor-DFDdrZ-w.js} +6 -20
- package/dist/super-editor/chunks/{index-C-8nsTfX.js → index-B9InP_01.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-mT27O13X.js → toolbar-D1rWwsr9.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 +10 -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 +11 -21
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/superdoc.umd.js
CHANGED
|
@@ -41857,7 +41857,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
41857
41857
|
static getStoredSuperdocVersion(docx) {
|
|
41858
41858
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
41859
41859
|
}
|
|
41860
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.
|
|
41860
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.27") {
|
|
41861
41861
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
41862
41862
|
}
|
|
41863
41863
|
/**
|
|
@@ -66887,7 +66887,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
66887
66887
|
const shouldSkipNodeView = (editor) => {
|
|
66888
66888
|
return isHeadless(editor);
|
|
66889
66889
|
};
|
|
66890
|
-
const summaryVersion = "1.0.0-beta.
|
|
66890
|
+
const summaryVersion = "1.0.0-beta.27";
|
|
66891
66891
|
const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
|
|
66892
66892
|
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
66893
66893
|
function mapAttributes(attrs) {
|
|
@@ -67676,7 +67676,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
67676
67676
|
{ default: remarkStringify2 },
|
|
67677
67677
|
{ default: remarkGfm2 }
|
|
67678
67678
|
] = await Promise.all([
|
|
67679
|
-
Promise.resolve().then(() =>
|
|
67679
|
+
Promise.resolve().then(() => indexB9InP_01),
|
|
67680
67680
|
Promise.resolve().then(() => indexDRCvimau),
|
|
67681
67681
|
Promise.resolve().then(() => indexC_x_N6Uh),
|
|
67682
67682
|
Promise.resolve().then(() => indexD_sWOSiG),
|
|
@@ -67881,7 +67881,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
67881
67881
|
* Process collaboration migrations
|
|
67882
67882
|
*/
|
|
67883
67883
|
processCollaborationMigrations() {
|
|
67884
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.
|
|
67884
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.27");
|
|
67885
67885
|
if (!this.options.ydoc) return;
|
|
67886
67886
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
67887
67887
|
let docVersion = metaMap.get("version");
|
|
@@ -72554,7 +72554,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
72554
72554
|
} else if (computed2.paragraph.alignment) {
|
|
72555
72555
|
paragraphAttrs.alignment = computed2.paragraph.alignment;
|
|
72556
72556
|
}
|
|
72557
|
-
const isJustified = paragraphAttrs.alignment === "justify"
|
|
72557
|
+
const isJustified = paragraphAttrs.alignment === "justify";
|
|
72558
72558
|
const hasFirstLineIndent = normalizedIndent?.firstLine && normalizedIndent.firstLine > 0;
|
|
72559
72559
|
if (isJustified && hasFirstLineIndent) {
|
|
72560
72560
|
paragraphAttrs.suppressFirstLineIndent = true;
|
|
@@ -92274,30 +92274,16 @@ ${l}
|
|
|
92274
92274
|
return null;
|
|
92275
92275
|
};
|
|
92276
92276
|
findLineContainingPos_fn = function(block, measure, fromLine, toLine, pos) {
|
|
92277
|
-
const log2 = (...args) => {
|
|
92278
|
-
console.log("[LINE-SEARCH]", ...args);
|
|
92279
|
-
};
|
|
92280
|
-
log2("Searching for pos:", pos, "in lines", fromLine, "to", toLine);
|
|
92281
92277
|
if (measure.kind !== "paragraph" || block.kind !== "paragraph") return null;
|
|
92282
92278
|
for (let lineIndex = fromLine; lineIndex < toLine; lineIndex += 1) {
|
|
92283
92279
|
const line = measure.lines[lineIndex];
|
|
92284
92280
|
if (!line) continue;
|
|
92285
92281
|
const range2 = computeLinePmRange$1(block, line);
|
|
92286
|
-
log2("Line", lineIndex, ":", {
|
|
92287
|
-
pmStart: range2.pmStart,
|
|
92288
|
-
pmEnd: range2.pmEnd,
|
|
92289
|
-
fromRun: line.fromRun,
|
|
92290
|
-
toRun: line.toRun,
|
|
92291
|
-
fromChar: line.fromChar,
|
|
92292
|
-
toChar: line.toChar
|
|
92293
|
-
});
|
|
92294
92282
|
if (range2.pmStart == null || range2.pmEnd == null) continue;
|
|
92295
92283
|
if (pos >= range2.pmStart && pos <= range2.pmEnd) {
|
|
92296
|
-
log2("Found line", lineIndex, "for pos", pos);
|
|
92297
92284
|
return { line, index: lineIndex };
|
|
92298
92285
|
}
|
|
92299
92286
|
}
|
|
92300
|
-
log2("No line found for pos", pos);
|
|
92301
92287
|
return null;
|
|
92302
92288
|
};
|
|
92303
92289
|
lineHeightBeforeIndex_fn = function(lines, fromLine, targetIndex) {
|
|
@@ -125165,6 +125151,10 @@ ${style2}
|
|
|
125165
125151
|
return;
|
|
125166
125152
|
}
|
|
125167
125153
|
const { state: state2 } = this.activeEditor;
|
|
125154
|
+
if (!state2) {
|
|
125155
|
+
__privateMethod(this, _SuperToolbar_instances, deactivateAll_fn).call(this);
|
|
125156
|
+
return;
|
|
125157
|
+
}
|
|
125168
125158
|
const selection = state2.selection;
|
|
125169
125159
|
const selectionTrackedChanges = __privateMethod(this, _SuperToolbar_instances, enrichTrackedChanges_fn).call(this, collectTrackedChanges({ state: state2, from: selection.from, to: selection.to }));
|
|
125170
125160
|
const hasTrackedChanges = selectionTrackedChanges.length > 0;
|
|
@@ -145645,7 +145635,7 @@ ${style2}
|
|
|
145645
145635
|
this.config.colors = shuffleArray(this.config.colors);
|
|
145646
145636
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
145647
145637
|
this.colorIndex = 0;
|
|
145648
|
-
this.version = "1.0.0-beta.
|
|
145638
|
+
this.version = "1.0.0-beta.27";
|
|
145649
145639
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
145650
145640
|
this.superdocId = config2.superdocId || v4();
|
|
145651
145641
|
this.colors = this.config.colors;
|
|
@@ -148090,7 +148080,7 @@ ${style2}
|
|
|
148090
148080
|
value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
|
|
148091
148081
|
);
|
|
148092
148082
|
}
|
|
148093
|
-
const
|
|
148083
|
+
const indexB9InP_01 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
148094
148084
|
__proto__: null,
|
|
148095
148085
|
unified
|
|
148096
148086
|
}, Symbol.toStringTag, { value: "Module" }));
|