@harbour-enterprises/superdoc 1.0.0-beta.89 → 1.0.0-beta.90
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-Dj0ADYo6.es.js → PdfViewer-CA7JXdaT.es.js} +1 -1
- package/dist/chunks/{PdfViewer-64l7m5Lq.cjs → PdfViewer-CLLXG5q4.cjs} +1 -1
- package/dist/chunks/{index-DXKu3E-3.es.js → index-BVll2b9C.es.js} +3 -3
- package/dist/chunks/{index-DcTrJ8db-kUMXGs8M.cjs → index-DwotqBvu-B162nlwz.cjs} +1 -1
- package/dist/chunks/{index-DcTrJ8db-9XJOggtC.es.js → index-DwotqBvu-CpZ1ZTsk.es.js} +1 -1
- package/dist/chunks/{index-Cnq_7qcp.cjs → index-m5UyYS6V.cjs} +3 -3
- package/dist/chunks/{super-editor.es-D8F0msfn.cjs → super-editor.es-BA8g4OE9.cjs} +23 -22
- package/dist/chunks/{super-editor.es-D0fgEP38.es.js → super-editor.es-CNL1ZK31.es.js} +23 -22
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-DPyEmTPY.js → converter-DsfA9vTm.js} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-BTkZSGvz.js → docx-zipper-CXQWucNo.js} +1 -1
- package/dist/super-editor/chunks/{editor-4iR-p-_J.js → editor-D1LYOYm7.js} +23 -23
- package/dist/super-editor/chunks/{index-DcTrJ8db.js → index-DwotqBvu.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-Dx7gHXE2.js → toolbar-d9ylzcuJ.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 +7 -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 +25 -24
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
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.90") {
|
|
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.90";
|
|
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) {
|
|
@@ -67782,29 +67782,29 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
67782
67782
|
return null;
|
|
67783
67783
|
}
|
|
67784
67784
|
/**
|
|
67785
|
-
* Get position from client-space coordinates.
|
|
67785
|
+
* Get position from client-space coordinates.
|
|
67786
|
+
* In layout/presentation mode, uses PresentationEditor hit testing for accurate coordinate mapping.
|
|
67787
|
+
* Falls back to ProseMirror view for standard editing mode.
|
|
67786
67788
|
*/
|
|
67787
67789
|
posAtCoords(coords) {
|
|
67790
|
+
if (typeof this.presentationEditor?.hitTest === "function") {
|
|
67791
|
+
const coordsObj = coords;
|
|
67792
|
+
const clientX = coordsObj?.clientX ?? coordsObj?.left ?? coordsObj?.x ?? null;
|
|
67793
|
+
const clientY = coordsObj?.clientY ?? coordsObj?.top ?? coordsObj?.y ?? null;
|
|
67794
|
+
if (Number.isFinite(clientX) && Number.isFinite(clientY)) {
|
|
67795
|
+
const hit = this.presentationEditor.hitTest(clientX, clientY);
|
|
67796
|
+
if (hit) {
|
|
67797
|
+
return {
|
|
67798
|
+
pos: hit.pos,
|
|
67799
|
+
inside: hit.pos
|
|
67800
|
+
};
|
|
67801
|
+
}
|
|
67802
|
+
}
|
|
67803
|
+
}
|
|
67788
67804
|
if (this.view) {
|
|
67789
67805
|
return this.view.posAtCoords(coords);
|
|
67790
67806
|
}
|
|
67791
|
-
|
|
67792
|
-
return null;
|
|
67793
|
-
}
|
|
67794
|
-
const coordsObj = coords;
|
|
67795
|
-
const clientX = coordsObj?.clientX ?? coordsObj?.left ?? coordsObj?.x ?? null;
|
|
67796
|
-
const clientY = coordsObj?.clientY ?? coordsObj?.top ?? coordsObj?.y ?? null;
|
|
67797
|
-
if (!Number.isFinite(clientX) || !Number.isFinite(clientY)) {
|
|
67798
|
-
return null;
|
|
67799
|
-
}
|
|
67800
|
-
const hit = this.presentationEditor.hitTest(clientX, clientY);
|
|
67801
|
-
if (!hit) {
|
|
67802
|
-
return null;
|
|
67803
|
-
}
|
|
67804
|
-
return {
|
|
67805
|
-
pos: hit.pos,
|
|
67806
|
-
inside: hit.pos
|
|
67807
|
-
};
|
|
67807
|
+
return null;
|
|
67808
67808
|
}
|
|
67809
67809
|
/**
|
|
67810
67810
|
* Export the yjs binary from the current state.
|
|
@@ -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(() => indexDwotqBvu),
|
|
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.90");
|
|
68459
68459
|
if (!this.options.ydoc) return;
|
|
68460
68460
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
68461
68461
|
let docVersion = metaMap.get("version");
|
|
@@ -132217,6 +132217,7 @@ ${style2}
|
|
|
132217
132217
|
return;
|
|
132218
132218
|
}
|
|
132219
132219
|
event.preventDefault();
|
|
132220
|
+
moveCursorToMouseEvent(event, props.editor);
|
|
132220
132221
|
try {
|
|
132221
132222
|
const context = await getEditorContext(props.editor, event);
|
|
132222
132223
|
currentContext.value = context;
|
|
@@ -151622,7 +151623,7 @@ ${style2}
|
|
|
151622
151623
|
this.config.colors = shuffleArray(this.config.colors);
|
|
151623
151624
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
151624
151625
|
this.colorIndex = 0;
|
|
151625
|
-
this.version = "1.0.0-beta.
|
|
151626
|
+
this.version = "1.0.0-beta.90";
|
|
151626
151627
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
151627
151628
|
this.superdocId = config2.superdocId || v4();
|
|
151628
151629
|
this.colors = this.config.colors;
|
|
@@ -154094,7 +154095,7 @@ ${style2}
|
|
|
154094
154095
|
value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
|
|
154095
154096
|
);
|
|
154096
154097
|
}
|
|
154097
|
-
const
|
|
154098
|
+
const indexDwotqBvu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
154098
154099
|
__proto__: null,
|
|
154099
154100
|
unified
|
|
154100
154101
|
}, Symbol.toStringTag, { value: "Module" }));
|