@harbour-enterprises/superdoc 2.0.0-next.4 → 2.0.0-next.5

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.
Files changed (30) hide show
  1. package/dist/chunks/{PdfViewer-DW9Jjot9.cjs → PdfViewer-C4wZizyW.cjs} +1 -1
  2. package/dist/chunks/{PdfViewer-D3PZ6zBK.es.js → PdfViewer-CO_oGFDw.es.js} +1 -1
  3. package/dist/chunks/{index-VXujz1iS.cjs → index-B4QOihiF.cjs} +3 -3
  4. package/dist/chunks/{index-YoL4XmHs-DnigArXx.es.js → index-CBSyVaOM-B5I90g0S.es.js} +1 -1
  5. package/dist/chunks/{index-YoL4XmHs-DgX6YU__.cjs → index-CBSyVaOM-BMpzJRoR.cjs} +1 -1
  6. package/dist/chunks/{index-NcWPPbrQ.es.js → index-XOJnODHJ.es.js} +3 -3
  7. package/dist/chunks/{super-editor.es-CeYiIfGN.cjs → super-editor.es-DzolekK0.cjs} +22 -7
  8. package/dist/chunks/{super-editor.es-o4f9FxT-.es.js → super-editor.es-qnE7-VRy.es.js} +22 -7
  9. package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
  10. package/dist/style.css +6 -6
  11. package/dist/super-editor/ai-writer.es.js +2 -2
  12. package/dist/super-editor/chunks/{converter-Cv-PWHhI.js → converter-CH2eG52x.js} +1 -1
  13. package/dist/super-editor/chunks/{docx-zipper-aIZi_y1u.js → docx-zipper-JJRnWzI6.js} +1 -1
  14. package/dist/super-editor/chunks/{editor-R1nZ8Y4J.js → editor-Du7p05wU.js} +10 -5
  15. package/dist/super-editor/chunks/{index-YoL4XmHs.js → index-CBSyVaOM.js} +1 -1
  16. package/dist/super-editor/chunks/{toolbar-DTrmhth_.js → toolbar-unNlfpEL.js} +2 -2
  17. package/dist/super-editor/converter.es.js +1 -1
  18. package/dist/super-editor/docx-zipper.es.js +2 -2
  19. package/dist/super-editor/editor.es.js +3 -3
  20. package/dist/super-editor/file-zipper.es.js +1 -1
  21. package/dist/super-editor/style.css +6 -6
  22. package/dist/super-editor/super-editor.es.js +19 -9
  23. package/dist/super-editor/toolbar.es.js +2 -2
  24. package/dist/super-editor.cjs +1 -1
  25. package/dist/super-editor.es.js +1 -1
  26. package/dist/superdoc.cjs +2 -2
  27. package/dist/superdoc.es.js +2 -2
  28. package/dist/superdoc.umd.js +24 -9
  29. package/dist/superdoc.umd.js.map +1 -1
  30. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { A, a, _, C, D, E, b, P, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-o4f9FxT-.es.js";
1
+ import { A, a, _, C, D, E, b, P, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-qnE7-VRy.es.js";
2
2
  import "./chunks/vue-CLFbn_1r.es.js";
3
3
  export {
4
4
  A as AIWriter,
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-CeYiIfGN.cjs");
4
- const superdoc = require("./chunks/index-VXujz1iS.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-DzolekK0.cjs");
4
+ const superdoc = require("./chunks/index-B4QOihiF.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;
@@ -1,5 +1,5 @@
1
- import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-o4f9FxT-.es.js";
2
- import { D, H, P, S as S2, m, l } from "./chunks/index-NcWPPbrQ.es.js";
1
+ import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-qnE7-VRy.es.js";
2
+ import { D, H, P, S as S2, m, l } from "./chunks/index-XOJnODHJ.es.js";
3
3
  import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
4
4
  export {
5
5
  a as AnnotatorHelpers,
@@ -42428,7 +42428,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
42428
42428
  static getStoredSuperdocVersion(docx) {
42429
42429
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
42430
42430
  }
42431
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "2.0.0-next.4") {
42431
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "2.0.0-next.5") {
42432
42432
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
42433
42433
  }
42434
42434
  /**
@@ -68384,7 +68384,7 @@ ${err.toString()}`);
68384
68384
  const shouldSkipNodeView = (editor) => {
68385
68385
  return isHeadless(editor);
68386
68386
  };
68387
- const summaryVersion = "2.0.0-next.4";
68387
+ const summaryVersion = "2.0.0-next.5";
68388
68388
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
68389
68389
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
68390
68390
  function mapAttributes(attrs) {
@@ -69173,7 +69173,7 @@ ${err.toString()}`);
69173
69173
  { default: remarkStringify2 },
69174
69174
  { default: remarkGfm2 }
69175
69175
  ] = await Promise.all([
69176
- Promise.resolve().then(() => indexYoL4XmHs),
69176
+ Promise.resolve().then(() => indexCBSyVaOM),
69177
69177
  Promise.resolve().then(() => indexDRCvimau),
69178
69178
  Promise.resolve().then(() => indexC_x_N6Uh),
69179
69179
  Promise.resolve().then(() => indexD_sWOSiG),
@@ -69378,7 +69378,7 @@ ${err.toString()}`);
69378
69378
  * Process collaboration migrations
69379
69379
  */
69380
69380
  processCollaborationMigrations() {
69381
- console.debug("[checkVersionMigrations] Current editor version", "2.0.0-next.4");
69381
+ console.debug("[checkVersionMigrations] Current editor version", "2.0.0-next.5");
69382
69382
  if (!this.options.ydoc) return;
69383
69383
  const metaMap = this.options.ydoc.getMap("meta");
69384
69384
  let docVersion = metaMap.get("version");
@@ -101226,6 +101226,9 @@ ${l}
101226
101226
  if (event.button !== 0) {
101227
101227
  return;
101228
101228
  }
101229
+ if (event.ctrlKey && navigator.platform.includes("Mac")) {
101230
+ return;
101231
+ }
101229
101232
  __privateSet(this, _pendingMarginClick, null);
101230
101233
  const target = event.target;
101231
101234
  if (target?.closest?.(".superdoc-ruler-handle") != null) {
@@ -106635,6 +106638,8 @@ ${l}
106635
106638
  const cbRect = containingBlock.getBoundingClientRect();
106636
106639
  left2 -= cbRect.left;
106637
106640
  top2 -= cbRect.top;
106641
+ left2 += containingBlock.scrollLeft || 0;
106642
+ top2 += containingBlock.scrollTop || 0;
106638
106643
  } catch (error) {
106639
106644
  console.warn("SlashMenu: Failed to adjust for containing block", error);
106640
106645
  }
@@ -137973,7 +137978,7 @@ ${style2}
137973
137978
  if (open) {
137974
137979
  nextTick(() => {
137975
137980
  if (searchInput.value) {
137976
- searchInput.value.focus();
137981
+ searchInput.value.focus({ preventScroll: true });
137977
137982
  }
137978
137983
  });
137979
137984
  }
@@ -138078,7 +138083,11 @@ ${style2}
138078
138083
  };
138079
138084
  const handleGlobalOutsideClick = (event) => {
138080
138085
  if (isOpen.value && menuRef.value && !menuRef.value.contains(event.target)) {
138081
- moveCursorToMouseEvent(event, props.editor);
138086
+ const isCtrlClickOnMac = event.ctrlKey && isMacOS();
138087
+ const isLeftClick = event.button === 0 && !isCtrlClickOnMac;
138088
+ if (isLeftClick) {
138089
+ moveCursorToMouseEvent(event, props.editor);
138090
+ }
138082
138091
  closeMenu({ restoreCursor: false });
138083
138092
  }
138084
138093
  };
@@ -140173,6 +140182,12 @@ ${style2}
140173
140182
  if (props.options?.suppressSkeletonLoader || !props.options?.collaborationProvider) editorReady.value = true;
140174
140183
  });
140175
140184
  const handleMarginClick = (event) => {
140185
+ if (event.button !== 0) {
140186
+ return;
140187
+ }
140188
+ if (event.ctrlKey && isMacOS()) {
140189
+ return;
140190
+ }
140176
140191
  if (event.target.classList.contains("ProseMirror")) return;
140177
140192
  onMarginClickCursorChange(event, activeEditor.value);
140178
140193
  };
@@ -140311,7 +140326,7 @@ ${style2}
140311
140326
  };
140312
140327
  }
140313
140328
  });
140314
- const SuperEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1$1, [["__scopeId", "data-v-209a1e8b"]]);
140329
+ const SuperEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1$1, [["__scopeId", "data-v-c9a3c876"]]);
140315
140330
  const _hoisted_1$h = ["innerHTML"];
140316
140331
  const _sfc_main$i = {
140317
140332
  __name: "SuperInput",
@@ -157765,7 +157780,7 @@ ${style2}
157765
157780
  this.config.colors = shuffleArray(this.config.colors);
157766
157781
  this.userColorMap = /* @__PURE__ */ new Map();
157767
157782
  this.colorIndex = 0;
157768
- this.version = "2.0.0-next.4";
157783
+ this.version = "2.0.0-next.5";
157769
157784
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
157770
157785
  this.superdocId = config2.superdocId || v4();
157771
157786
  this.colors = this.config.colors;
@@ -160238,7 +160253,7 @@ ${style2}
160238
160253
  value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
160239
160254
  );
160240
160255
  }
160241
- const indexYoL4XmHs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
160256
+ const indexCBSyVaOM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
160242
160257
  __proto__: null,
160243
160258
  unified
160244
160259
  }, Symbol.toStringTag, { value: "Module" }));