@harbour-enterprises/superdoc 0.6.74 → 0.6.75

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 (23) hide show
  1. package/dist/chunks/{super-editor.es-DKkpK7ZM.js → super-editor.es-3mk1QJOz.js} +12 -11
  2. package/dist/chunks/{super-editor.es-DKkpK7ZM.js.map → super-editor.es-3mk1QJOz.js.map} +1 -1
  3. package/dist/super-editor/chunks/{converter-DwF_uUNJ.js → converter-C2Ax-qyH.js} +3 -3
  4. package/dist/super-editor/chunks/{converter-DwF_uUNJ.js.map → converter-C2Ax-qyH.js.map} +1 -1
  5. package/dist/super-editor/chunks/{docx-zipper-KsiwHwGw.js → docx-zipper-CvANIBUH.js} +2 -2
  6. package/dist/super-editor/chunks/{docx-zipper-KsiwHwGw.js.map → docx-zipper-CvANIBUH.js.map} +1 -1
  7. package/dist/super-editor/chunks/{editor-DtRMY7cq.js → editor-DUWJU_ck.js} +12 -11
  8. package/dist/super-editor/chunks/editor-DUWJU_ck.js.map +1 -0
  9. package/dist/super-editor/chunks/{toolbar-B4Rt3gKn.js → toolbar-BtRS82Lk.js} +3 -3
  10. package/dist/super-editor/chunks/{toolbar-B4Rt3gKn.js.map → toolbar-BtRS82Lk.js.map} +1 -1
  11. package/dist/super-editor/converter.es.js +1 -1
  12. package/dist/super-editor/core/Editor.d.ts.map +1 -1
  13. package/dist/super-editor/docx-zipper.es.js +2 -2
  14. package/dist/super-editor/editor.es.js +3 -3
  15. package/dist/super-editor/file-zipper.es.js +1 -1
  16. package/dist/super-editor/super-editor.es.js +6 -6
  17. package/dist/super-editor/toolbar.es.js +2 -2
  18. package/dist/super-editor.es.js +1 -1
  19. package/dist/superdoc.es.js +3 -3
  20. package/dist/superdoc.umd.js +12 -11
  21. package/dist/superdoc.umd.js.map +1 -1
  22. package/package.json +1 -1
  23. package/dist/super-editor/chunks/editor-DtRMY7cq.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { B } from "./chunks/converter-DwF_uUNJ.js";
1
+ import { B } from "./chunks/converter-C2Ax-qyH.js";
2
2
  export {
3
3
  B as SuperConverter
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AAuBA;;GAEG;AACH;IAucE;;;OAGG;IACH,oDAQC;IAED,6CAGC;IAED,8DAGC;IA0gBD,sDAKC;IAp6BD,0BAkBC;IAvFD,sBAAiB;IAEjB,qBAAsB;IAEtB,YAAO;IAEP,UAAK;IAEL,mBAAkB;IAIlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuDE;IAyGF,+BAEC;IADC,aAAsB;IAgBxB;;OAEG;IACH,iBAEC;IAED;;OAEG;IACH,kBAEC;IAED;;OAEG;IACH,oBAEC;IAED;;OAEG;IACH,sBAEC;IAED;;OAEG;IACH,uBAEC;IAED;;OAEG;IACH,mBAEC;IAED;;OAEG;IACH,mBAEC;IAED;;OAEG;IACH,aAEC;IAED;;OAEG;IACH,WAEC;IAED,yCA8BC;IAED;;;OAGG;IACH,oCAYC;IAqBD;;;OAGG;IACH,+BAeC;IAED;;;;OAIG;IACH,uDAMC;IAED;;;;OAIG;IACH,sDAQC;IAED;;;OAGG;IACH,6CAUC;IA+BG,eAAuC;IAqI3C;;OAEG;IACH,wBAIC;IAED;;;;;;MAcC;IAED;;;;OAIG;IACH,uCA+CC;IAED,qCAgDC;IAqHD;;;;OAIG;IACH,oCAEC;IAED;;;;;;OAMG;IACH,qEAKC;IAED;;OAEG;IACH,eAEC;IAED;;OAEG;IACH,kBAMC;IAED;;OAEG;IACH,qBAEC;IAED;;;;;;OAMG;IACH,iCAHG;QAAuB,WAAW;KAClC,GAAU,IAAI,CAiBhB;IA6CD;;OAEG;IACH;;;qBA8DC;IAcD;;OAEG;IACH,gBAKC;IASD;;;;OAIG;IACH,kCAFa,CAAC,CAAC,GAAG,GAAG,SAAS,CA8B7B;IAED,yCAmBC;;CACF;6BA3jC4B,mBAAmB"}
1
+ {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AAuBA;;GAEG;AACH;IAucE;;;OAGG;IACH,oDAQC;IAED,6CAGC;IAED,8DAGC;IA4gBD,sDAKC;IAt6BD,0BAkBC;IAvFD,sBAAiB;IAEjB,qBAAsB;IAEtB,YAAO;IAEP,UAAK;IAEL,mBAAkB;IAIlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuDE;IAyGF,+BAEC;IADC,aAAsB;IAgBxB;;OAEG;IACH,iBAEC;IAED;;OAEG;IACH,kBAEC;IAED;;OAEG;IACH,oBAEC;IAED;;OAEG;IACH,sBAEC;IAED;;OAEG;IACH,uBAEC;IAED;;OAEG;IACH,mBAEC;IAED;;OAEG;IACH,mBAEC;IAED;;OAEG;IACH,aAEC;IAED;;OAEG;IACH,WAEC;IAED,yCA8BC;IAED;;;OAGG;IACH,oCAYC;IAqBD;;;OAGG;IACH,+BAeC;IAED;;;;OAIG;IACH,uDAMC;IAED;;;;OAIG;IACH,sDAQC;IAED;;;OAGG;IACH,6CAUC;IA+BG,eAAuC;IAqI3C;;OAEG;IACH,wBAIC;IAED;;;;;;MAcC;IAED;;;;OAIG;IACH,uCA+CC;IAED,qCAkDC;IAqHD;;;;OAIG;IACH,oCAEC;IAED;;;;;;OAMG;IACH,qEAKC;IAED;;OAEG;IACH,eAEC;IAED;;OAEG;IACH,kBAMC;IAED;;OAEG;IACH,qBAEC;IAED;;;;;;OAMG;IACH,iCAHG;QAAuB,WAAW;KAClC,GAAU,IAAI,CAiBhB;IA6CD;;OAEG;IACH;;;qBA8DC;IAcD;;OAEG;IACH,gBAKC;IASD;;;;OAIG;IACH,kCAFa,CAAC,CAAC,GAAG,GAAG,SAAS,CA8B7B;IAED,yCAmBC;;CACF;6BA7jC4B,mBAAmB"}
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-DwF_uUNJ.js";
2
- import { D } from "./chunks/docx-zipper-KsiwHwGw.js";
1
+ import "./chunks/converter-C2Ax-qyH.js";
2
+ import { D } from "./chunks/docx-zipper-CvANIBUH.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-DtRMY7cq.js";
2
- import "./chunks/converter-DwF_uUNJ.js";
3
- import "./chunks/docx-zipper-KsiwHwGw.js";
1
+ import { E } from "./chunks/editor-DUWJU_ck.js";
2
+ import "./chunks/converter-C2Ax-qyH.js";
3
+ import "./chunks/docx-zipper-CvANIBUH.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-KsiwHwGw.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-CvANIBUH.js";
2
2
  async function createZip(blobs, fileNames) {
3
3
  const zip = new JSZip();
4
4
  blobs.forEach((blob, index) => {
@@ -9,13 +9,13 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
9
9
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
10
10
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
11
11
  var _interceptedCommands, _SuperToolbar_instances, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, runCommandWithArgumentOnly_fn;
12
- import { _ as _export_sfc, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions } from "./chunks/editor-DtRMY7cq.js";
13
- import { k, m, j, l } from "./chunks/editor-DtRMY7cq.js";
14
- import { L as getDefaultExportFromCjs, v as v4, T as TextSelection, Q as vClickOutside } from "./chunks/converter-DwF_uUNJ.js";
15
- import { B } from "./chunks/converter-DwF_uUNJ.js";
12
+ import { _ as _export_sfc, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions } from "./chunks/editor-DUWJU_ck.js";
13
+ import { k, m, j, l } from "./chunks/editor-DUWJU_ck.js";
14
+ import { L as getDefaultExportFromCjs, v as v4, T as TextSelection, Q as vClickOutside } from "./chunks/converter-C2Ax-qyH.js";
15
+ import { B } from "./chunks/converter-C2Ax-qyH.js";
16
16
  import { ref, createElementBlock, openBlock, createElementVNode, unref, getCurrentInstance, computed, watch, onMounted, createCommentVNode, withDirectives, withKeys, normalizeClass, withModifiers, vModelText, createTextVNode, toDisplayString, Fragment, renderList, normalizeStyle, createVNode, h, createApp, reactive, onUnmounted, shallowRef, onBeforeUnmount, createBlock } from "vue";
17
- import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-B4Rt3gKn.js";
18
- import { D } from "./chunks/docx-zipper-KsiwHwGw.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-BtRS82Lk.js";
18
+ import { D } from "./chunks/docx-zipper-CvANIBUH.js";
19
19
  import { createZip } from "./file-zipper.es.js";
20
20
  var eventemitter3 = { exports: {} };
21
21
  (function(module) {
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T } from "./chunks/toolbar-B4Rt3gKn.js";
3
- import "./chunks/editor-DtRMY7cq.js";
2
+ import { T } from "./chunks/toolbar-BtRS82Lk.js";
3
+ import "./chunks/editor-DUWJU_ck.js";
4
4
  export {
5
5
  T as default
6
6
  };
@@ -1,4 +1,4 @@
1
- import { _, D, E, S, a, b, c, T, d, i, g, e, f, h, j, k, l } from "./chunks/super-editor.es-DKkpK7ZM.js";
1
+ import { _, D, E, S, a, b, c, T, d, i, g, e, f, h, j, k, l } from "./chunks/super-editor.es-3mk1QJOz.js";
2
2
  import "./chunks/vue-Qp4giGIA.js";
3
3
  export {
4
4
  _ as BasicUpload,
@@ -1,5 +1,5 @@
1
- import { E as Editor, h as getRichTextExtensions, b as SuperInput, a as SuperEditor, c as SuperToolbar, d as createZip } from "./chunks/super-editor.es-DKkpK7ZM.js";
2
- import { S, i, k, l } from "./chunks/super-editor.es-DKkpK7ZM.js";
1
+ import { E as Editor, h as getRichTextExtensions, b as SuperInput, a as SuperEditor, c as SuperToolbar, d as createZip } from "./chunks/super-editor.es-3mk1QJOz.js";
2
+ import { S, i, k, l } from "./chunks/super-editor.es-3mk1QJOz.js";
3
3
  import { Y as effectScope, r as ref, Z as markRaw, p as process$1, _ as toRaw, a as computed, $ as isRef, a0 as isReactive, B as toRef, i as inject, m as getCurrentInstance, k as watch, v as unref, a1 as hasInjectionContext, L as reactive, R as nextTick, a2 as getCurrentScope, a3 as onScopeDispose, a4 as toRefs, g as global$1, N as shallowRef, M as readonly, h as onMounted, j as onBeforeUnmount, f as onBeforeMount, U as onActivated, q as onDeactivated, y as createTextVNode, F as Fragment, Q as Comment, l as defineComponent, C as provide, G as withDirectives, A as h, V as Teleport, S as renderSlot, W as isVNode, K as watchEffect, O as Transition, D as mergeProps, P as vShow, J as cloneVNode, T as Text, b as createElementBlock, o as openBlock, t as toDisplayString, u as createVNode, x as withCtx, E as createBaseVNode, z as normalizeStyle, e as createCommentVNode, s as createBlock, w as withModifiers, n as normalizeClass, a5 as resolveDirective, d as renderList, c as createApp, a6 as resolveDynamicComponent } from "./chunks/vue-Qp4giGIA.js";
4
4
  import { B as Buffer$2 } from "./chunks/jszip-D8MFZeXK.js";
5
5
  import { b } from "./chunks/blank-docx-BagxM198.js";
@@ -45763,7 +45763,7 @@ class SuperDoc extends EventEmitter {
45763
45763
  this.config.colors = shuffleArray(this.config.colors);
45764
45764
  this.userColorMap = /* @__PURE__ */ new Map();
45765
45765
  this.colorIndex = 0;
45766
- this.version = "0.6.74";
45766
+ this.version = "0.6.75";
45767
45767
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
45768
45768
  this.superdocId = config.superdocId || v4();
45769
45769
  this.colors = this.config.colors;
@@ -27937,7 +27937,7 @@
27937
27937
  return;
27938
27938
  }
27939
27939
  }
27940
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.6.74") {
27940
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.6.75") {
27941
27941
  const customLocation = "docProps/custom.xml";
27942
27942
  if (!docx[customLocation]) {
27943
27943
  docx[customLocation] = generateCustomXml();
@@ -28195,7 +28195,7 @@
28195
28195
  function generateCustomXml() {
28196
28196
  return DEFAULT_CUSTOM_XML;
28197
28197
  }
28198
- function generateSuperdocVersion(pid = 2, version2 = "0.6.74") {
28198
+ function generateSuperdocVersion(pid = 2, version2 = "0.6.75") {
28199
28199
  return {
28200
28200
  type: "element",
28201
28201
  name: "property",
@@ -42134,16 +42134,17 @@
42134
42134
  }
42135
42135
  };
42136
42136
  updateScale();
42137
- screen.orientation.addEventListener("change", () => {
42137
+ const handleResize = () => {
42138
42138
  setTimeout(() => {
42139
42139
  updateScale();
42140
42140
  }, 150);
42141
- });
42142
- window.addEventListener("resize", () => {
42143
- setTimeout(() => {
42144
- updateScale();
42145
- }, 150);
42146
- });
42141
+ };
42142
+ if ("orientation" in screen && "addEventListener" in screen.orientation) {
42143
+ screen.orientation.addEventListener("change", handleResize);
42144
+ } else {
42145
+ window.matchMedia("(orientation: portrait)").addEventListener("change", handleResize);
42146
+ }
42147
+ window.addEventListener("resize", () => handleResize);
42147
42148
  }
42148
42149
  /**
42149
42150
  * Get attrs of the currently selected node or mark.
@@ -42281,7 +42282,7 @@
42281
42282
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
42282
42283
  */
42283
42284
  processCollaborationMigrations() {
42284
- console.debug("[checkVersionMigrations] Current editor version", "0.6.74");
42285
+ console.debug("[checkVersionMigrations] Current editor version", "0.6.75");
42285
42286
  if (!this.options.ydoc) return;
42286
42287
  const metaMap = this.options.ydoc.getMap("meta");
42287
42288
  let docVersion = metaMap.get("version");
@@ -110495,7 +110496,7 @@ ${style2}
110495
110496
  this.config.colors = shuffleArray(this.config.colors);
110496
110497
  this.userColorMap = /* @__PURE__ */ new Map();
110497
110498
  this.colorIndex = 0;
110498
- this.version = "0.6.74";
110499
+ this.version = "0.6.75";
110499
110500
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
110500
110501
  this.superdocId = config.superdocId || v4();
110501
110502
  this.colors = this.config.colors;