@harbour-enterprises/superdoc 0.7.4 → 0.7.6

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.
@@ -1,4 +1,4 @@
1
- import { C } from "./chunks/converter-qyXMGEEP.js";
1
+ import { C } from "./chunks/converter-1et2Hxzg.js";
2
2
  export {
3
3
  C as SuperConverter
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AAuBA;;GAEG;AACH;IAkdE;;;OAGG;IACH,oDAQC;IAED,6CAGC;IAED,8DAGC;IA8gBD,sDAKC;IAl7BD,0BAkBC;IAxFD,sBAAiB;IAEjB,qBAAsB;IAEtB,YAAO;IAEP,UAAK;IAEL,mBAAkB;IAIlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwDE;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;IA0BD;;;OAGG;IACH,+BAmBC;IAED;;;;OAIG;IACH,uDAMC;IAED;;;;OAIG;IACH,sDAQC;IAED;;;OAGG;IACH,6CAUC;IAgCG,eAAuC;IAoI3C;;OAEG;IACH,wBAIC;IAED;;;;;;MAcC;IAED;;;;OAIG;IACH,uCA+CC;IAED,qCAkDC;IA2HD;;;;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;;;qBA2DC;IAcD;;OAEG;IACH,gBAKC;IASD;;;;OAIG;IACH,kCAFa,CAAC,CAAC,GAAG,GAAG,SAAS,CA8B7B;IAED,yCAwBC;;CACF;6BA/kC4B,mBAAmB"}
1
+ {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AAwBA;;GAEG;AACH;IAsdE;;;OAGG;IACH,oDAQC;IAED,6CAGC;IAED,8DAGC;IA+gBD,sDAKC;IAv7BD,0BAkBC;IAxFD,sBAAiB;IAEjB,qBAAsB;IAEtB,YAAO;IAEP,UAAK;IAEL,mBAAkB;IAIlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwDE;IA6GF,+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;IA0BD;;;OAGG;IACH,+BAmBC;IAED;;;;OAIG;IACH,uDAMC;IAED;;;;OAIG;IACH,sDAQC;IAED;;;OAGG;IACH,6CAUC;IAgCG,eAAuC;IAqI3C;;OAEG;IACH,wBAIC;IAED;;;;;;MAcC;IAED;;;;OAIG;IACH,uCA+CC;IAED,qCAkDC;IA2HD;;;;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;;;qBA2DC;IAcD;;OAEG;IACH,gBAKC;IASD;;;;OAIG;IACH,kCAFa,CAAC,CAAC,GAAG,GAAG,SAAS,CA8B7B;IAED,yCAwBC;;CACF;6BArlC4B,mBAAmB"}
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-qyXMGEEP.js";
2
- import { D } from "./chunks/docx-zipper-CgVGl9g8.js";
1
+ import "./chunks/converter-1et2Hxzg.js";
2
+ import { D } from "./chunks/docx-zipper-dtToaaMe.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-COjWcxtS.js";
2
- import "./chunks/converter-qyXMGEEP.js";
3
- import "./chunks/docx-zipper-CgVGl9g8.js";
1
+ import { E } from "./chunks/editor-DB_c_1aS.js";
2
+ import "./chunks/converter-1et2Hxzg.js";
3
+ import "./chunks/docx-zipper-dtToaaMe.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-CgVGl9g8.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-dtToaaMe.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, j as Extension, A as Attribute, N as Node } from "./chunks/editor-COjWcxtS.js";
13
- import { l, n, k, m } from "./chunks/editor-COjWcxtS.js";
14
- import { O as getDefaultExportFromCjs, v as v4, T as TextSelection, U as vClickOutside, a as Plugin } from "./chunks/converter-qyXMGEEP.js";
15
- import { C } from "./chunks/converter-qyXMGEEP.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, j as Extension, A as Attribute, N as Node } from "./chunks/editor-DB_c_1aS.js";
13
+ import { l, n, k, m } from "./chunks/editor-DB_c_1aS.js";
14
+ import { O as getDefaultExportFromCjs, v as v4, T as TextSelection, U as vClickOutside, a as Plugin } from "./chunks/converter-1et2Hxzg.js";
15
+ import { C } from "./chunks/converter-1et2Hxzg.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-CT1_lDfg.js";
18
- import { D } from "./chunks/docx-zipper-CgVGl9g8.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-DnmHgf0I.js";
18
+ import { D } from "./chunks/docx-zipper-dtToaaMe.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-CT1_lDfg.js";
3
- import "./chunks/editor-COjWcxtS.js";
2
+ import { T } from "./chunks/toolbar-DnmHgf0I.js";
3
+ import "./chunks/editor-DB_c_1aS.js";
4
4
  export {
5
5
  T as default
6
6
  };
@@ -1,4 +1,4 @@
1
- import { _, D, E, a, S, b, c, d, T, e, i, g, f, h, j, k, l, m } from "./chunks/super-editor.es-8jStFh7I.js";
1
+ import { _, D, E, a, S, b, c, d, T, e, i, g, f, h, j, k, l, m } from "./chunks/super-editor.es-C8lN_1SL.js";
2
2
  import "./chunks/vue-BjMDYCe1.js";
3
3
  export {
4
4
  _ as BasicUpload,
@@ -1,5 +1,5 @@
1
- import { E as Editor, j as getRichTextExtensions, c as SuperInput, b as SuperEditor, d as SuperToolbar, e as createZip } from "./chunks/super-editor.es-8jStFh7I.js";
2
- import { S, i, l, m } from "./chunks/super-editor.es-8jStFh7I.js";
1
+ import { E as Editor, j as getRichTextExtensions, c as SuperInput, b as SuperEditor, d as SuperToolbar, e as createZip } from "./chunks/super-editor.es-C8lN_1SL.js";
2
+ import { S, i, l, m } from "./chunks/super-editor.es-C8lN_1SL.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, C as toRef, i as inject, q as getCurrentInstance, l as watch, x 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, j as onMounted, k as onBeforeUnmount, h as onBeforeMount, U as onActivated, s as onDeactivated, z as createTextVNode, F as Fragment, Q as Comment, m as defineComponent, D as provide, G as withDirectives, B as h, V as Teleport, S as renderSlot, W as isVNode, K as watchEffect, O as Transition, E as mergeProps, P as vShow, J as cloneVNode, T as Text, b as createElementBlock, o as openBlock, t as toDisplayString, v as createVNode, y as withCtx, f as createBaseVNode, A as normalizeStyle, e as createCommentVNode, u as createBlock, w as withModifiers, n as normalizeClass, a5 as resolveDirective, d as renderList, c as createApp, a6 as resolveDynamicComponent } from "./chunks/vue-BjMDYCe1.js";
4
4
  import { B as Buffer$2 } from "./chunks/jszip-Df6uKve1.js";
5
5
  import { B as BlankDOCX } from "./chunks/blank-docx-iwdyG9RH.js";
@@ -45835,7 +45835,7 @@ class SuperDoc extends EventEmitter {
45835
45835
  this.config.colors = shuffleArray(this.config.colors);
45836
45836
  this.userColorMap = /* @__PURE__ */ new Map();
45837
45837
  this.colorIndex = 0;
45838
- this.version = "0.7.4";
45838
+ this.version = "0.7.6";
45839
45839
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
45840
45840
  this.superdocId = config.superdocId || v4();
45841
45841
  this.colors = this.config.colors;
@@ -27978,7 +27978,7 @@
27978
27978
  return;
27979
27979
  }
27980
27980
  }
27981
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.7.4") {
27981
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.7.6") {
27982
27982
  const customLocation = "docProps/custom.xml";
27983
27983
  if (!docx[customLocation]) {
27984
27984
  docx[customLocation] = generateCustomXml();
@@ -28251,7 +28251,7 @@
28251
28251
  function generateCustomXml() {
28252
28252
  return DEFAULT_CUSTOM_XML;
28253
28253
  }
28254
- function generateSuperdocVersion(pid = 2, version2 = "0.7.4") {
28254
+ function generateSuperdocVersion(pid = 2, version2 = "0.7.6") {
28255
28255
  return {
28256
28256
  type: "element",
28257
28257
  name: "property",
@@ -42482,7 +42482,7 @@
42482
42482
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
42483
42483
  */
42484
42484
  processCollaborationMigrations() {
42485
- console.debug("[checkVersionMigrations] Current editor version", "0.7.4");
42485
+ console.debug("[checkVersionMigrations] Current editor version", "0.7.6");
42486
42486
  if (!this.options.ydoc) return;
42487
42487
  const metaMap = this.options.ydoc.getMap("meta");
42488
42488
  let docVersion = metaMap.get("version");
@@ -42568,6 +42568,9 @@
42568
42568
  }, 0);
42569
42569
  };
42570
42570
  initRichText_fn = function(options2) {
42571
+ if (!options2.extensions || !options2.extensions.length) {
42572
+ this.options.extensions = getRichTextExtensions();
42573
+ }
42571
42574
  __privateMethod$1(this, _Editor_instances, createExtensionService_fn).call(this);
42572
42575
  __privateMethod$1(this, _Editor_instances, createCommandService_fn).call(this);
42573
42576
  __privateMethod$1(this, _Editor_instances, createSchema_fn).call(this);
@@ -110803,7 +110806,7 @@ ${style2}
110803
110806
  this.config.colors = shuffleArray(this.config.colors);
110804
110807
  this.userColorMap = /* @__PURE__ */ new Map();
110805
110808
  this.colorIndex = 0;
110806
- this.version = "0.7.4";
110809
+ this.version = "0.7.6";
110807
110810
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
110808
110811
  this.superdocId = config.superdocId || v4();
110809
110812
  this.colors = this.config.colors;