@harbour-enterprises/superdoc 1.0.0-beta.26 → 1.0.0-beta.28
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-5NaTJwvl.es.js} +1 -1
- package/dist/chunks/{PdfViewer-DLnlLYCn.cjs → PdfViewer-B7Hq0aBG.cjs} +1 -1
- package/dist/chunks/{index-C-8nsTfX-NXZz_sJC.cjs → index-CLV7-rJY-C4coR32S.cjs} +1 -1
- package/dist/chunks/{index-C-8nsTfX-LNso9zdo.es.js → index-CLV7-rJY-i5JVHTCR.es.js} +1 -1
- package/dist/chunks/{index-Di02o4N2.cjs → index-CQPftiv3.cjs} +3 -3
- package/dist/chunks/{index-COABn1uy.es.js → index-W4KMCYbF.es.js} +3 -3
- package/dist/chunks/{super-editor.es-B_4HKfa9.es.js → super-editor.es-D4MMQONw.es.js} +13 -21
- package/dist/chunks/{super-editor.es-CgAkPiiu.cjs → super-editor.es-DR7G4vGz.cjs} +13 -21
- 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-DCpgxLLA.js} +5 -3
- package/dist/super-editor/chunks/{docx-zipper-BOnxck-I.js → docx-zipper-BvQShjmj.js} +1 -1
- package/dist/super-editor/chunks/{editor-CNnsYbPC.js → editor-Df43-j5L.js} +6 -20
- package/dist/super-editor/chunks/{index-C-8nsTfX.js → index-CLV7-rJY.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-mT27O13X.js → toolbar-DCnKrmbU.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 +15 -23
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/superdoc.umd.js
CHANGED
|
@@ -39196,7 +39196,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
39196
39196
|
"w:fldSimple",
|
|
39197
39197
|
"w:proofErr",
|
|
39198
39198
|
"w:del",
|
|
39199
|
-
"w:ins"
|
|
39199
|
+
"w:ins",
|
|
39200
|
+
"w:p"
|
|
39201
|
+
// Paragraph is an inline container; unknown children must be inline-safe
|
|
39200
39202
|
]);
|
|
39201
39203
|
const INLINE_NODE_NAMES = /* @__PURE__ */ new Set([
|
|
39202
39204
|
"m:oMathPara",
|
|
@@ -39209,7 +39211,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
39209
39211
|
"m:sup",
|
|
39210
39212
|
"m:sSup"
|
|
39211
39213
|
]);
|
|
39212
|
-
const BLOCK_BOUNDARY_NAMES = /* @__PURE__ */ new Set(["w:
|
|
39214
|
+
const BLOCK_BOUNDARY_NAMES = /* @__PURE__ */ new Set(["w:body", "w:tbl", "w:tc", "w:tr"]);
|
|
39213
39215
|
const isInlineContext = (path2 = [], currentNodeName) => {
|
|
39214
39216
|
if (currentNodeName && INLINE_NODE_NAMES.has(currentNodeName)) {
|
|
39215
39217
|
return true;
|
|
@@ -41857,7 +41859,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
41857
41859
|
static getStoredSuperdocVersion(docx) {
|
|
41858
41860
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
41859
41861
|
}
|
|
41860
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.
|
|
41862
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.28") {
|
|
41861
41863
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
41862
41864
|
}
|
|
41863
41865
|
/**
|
|
@@ -66887,7 +66889,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
66887
66889
|
const shouldSkipNodeView = (editor) => {
|
|
66888
66890
|
return isHeadless(editor);
|
|
66889
66891
|
};
|
|
66890
|
-
const summaryVersion = "1.0.0-beta.
|
|
66892
|
+
const summaryVersion = "1.0.0-beta.28";
|
|
66891
66893
|
const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
|
|
66892
66894
|
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
66893
66895
|
function mapAttributes(attrs) {
|
|
@@ -67676,7 +67678,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
67676
67678
|
{ default: remarkStringify2 },
|
|
67677
67679
|
{ default: remarkGfm2 }
|
|
67678
67680
|
] = await Promise.all([
|
|
67679
|
-
Promise.resolve().then(() =>
|
|
67681
|
+
Promise.resolve().then(() => indexCLV7RJY),
|
|
67680
67682
|
Promise.resolve().then(() => indexDRCvimau),
|
|
67681
67683
|
Promise.resolve().then(() => indexC_x_N6Uh),
|
|
67682
67684
|
Promise.resolve().then(() => indexD_sWOSiG),
|
|
@@ -67881,7 +67883,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
67881
67883
|
* Process collaboration migrations
|
|
67882
67884
|
*/
|
|
67883
67885
|
processCollaborationMigrations() {
|
|
67884
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.
|
|
67886
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.28");
|
|
67885
67887
|
if (!this.options.ydoc) return;
|
|
67886
67888
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
67887
67889
|
let docVersion = metaMap.get("version");
|
|
@@ -72554,7 +72556,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
72554
72556
|
} else if (computed2.paragraph.alignment) {
|
|
72555
72557
|
paragraphAttrs.alignment = computed2.paragraph.alignment;
|
|
72556
72558
|
}
|
|
72557
|
-
const isJustified = paragraphAttrs.alignment === "justify"
|
|
72559
|
+
const isJustified = paragraphAttrs.alignment === "justify";
|
|
72558
72560
|
const hasFirstLineIndent = normalizedIndent?.firstLine && normalizedIndent.firstLine > 0;
|
|
72559
72561
|
if (isJustified && hasFirstLineIndent) {
|
|
72560
72562
|
paragraphAttrs.suppressFirstLineIndent = true;
|
|
@@ -92274,30 +92276,16 @@ ${l}
|
|
|
92274
92276
|
return null;
|
|
92275
92277
|
};
|
|
92276
92278
|
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
92279
|
if (measure.kind !== "paragraph" || block.kind !== "paragraph") return null;
|
|
92282
92280
|
for (let lineIndex = fromLine; lineIndex < toLine; lineIndex += 1) {
|
|
92283
92281
|
const line = measure.lines[lineIndex];
|
|
92284
92282
|
if (!line) continue;
|
|
92285
92283
|
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
92284
|
if (range2.pmStart == null || range2.pmEnd == null) continue;
|
|
92295
92285
|
if (pos >= range2.pmStart && pos <= range2.pmEnd) {
|
|
92296
|
-
log2("Found line", lineIndex, "for pos", pos);
|
|
92297
92286
|
return { line, index: lineIndex };
|
|
92298
92287
|
}
|
|
92299
92288
|
}
|
|
92300
|
-
log2("No line found for pos", pos);
|
|
92301
92289
|
return null;
|
|
92302
92290
|
};
|
|
92303
92291
|
lineHeightBeforeIndex_fn = function(lines, fromLine, targetIndex) {
|
|
@@ -125165,6 +125153,10 @@ ${style2}
|
|
|
125165
125153
|
return;
|
|
125166
125154
|
}
|
|
125167
125155
|
const { state: state2 } = this.activeEditor;
|
|
125156
|
+
if (!state2) {
|
|
125157
|
+
__privateMethod(this, _SuperToolbar_instances, deactivateAll_fn).call(this);
|
|
125158
|
+
return;
|
|
125159
|
+
}
|
|
125168
125160
|
const selection = state2.selection;
|
|
125169
125161
|
const selectionTrackedChanges = __privateMethod(this, _SuperToolbar_instances, enrichTrackedChanges_fn).call(this, collectTrackedChanges({ state: state2, from: selection.from, to: selection.to }));
|
|
125170
125162
|
const hasTrackedChanges = selectionTrackedChanges.length > 0;
|
|
@@ -145645,7 +145637,7 @@ ${style2}
|
|
|
145645
145637
|
this.config.colors = shuffleArray(this.config.colors);
|
|
145646
145638
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
145647
145639
|
this.colorIndex = 0;
|
|
145648
|
-
this.version = "1.0.0-beta.
|
|
145640
|
+
this.version = "1.0.0-beta.28";
|
|
145649
145641
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
145650
145642
|
this.superdocId = config2.superdocId || v4();
|
|
145651
145643
|
this.colors = this.config.colors;
|
|
@@ -148090,7 +148082,7 @@ ${style2}
|
|
|
148090
148082
|
value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
|
|
148091
148083
|
);
|
|
148092
148084
|
}
|
|
148093
|
-
const
|
|
148085
|
+
const indexCLV7RJY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
148094
148086
|
__proto__: null,
|
|
148095
148087
|
unified
|
|
148096
148088
|
}, Symbol.toStringTag, { value: "Module" }));
|