@harbour-enterprises/superdoc 0.6.62 → 0.6.63

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 { B } from "./chunks/converter-BmYPM7j8.js";
1
+ import { B } from "./chunks/converter-DvoY_Ajb.js";
2
2
  export {
3
3
  B as SuperConverter
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAkBA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAkCxB;AA8BD;;;;;GAKG;AACH,qDAFa,YAAY,CAyBxB;AAw6CD;;;;;;EAMC;AAED;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAIC;;CA4DF;;;;;;;;;;;;;mBAvnDa,KAAQ;;;;;;UAKR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}
1
+ {"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAkBA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAkCxB;AA8BD;;;;;GAKG;AACH,qDAFa,YAAY,CAyBxB;AA26CD;;;;;;EAMC;AAED;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAIC;;CA4DF;;;;;;;;;;;;;mBA1nDa,KAAQ;;;;;;UAKR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-BmYPM7j8.js";
2
- import { D } from "./chunks/docx-zipper-CL-WWt46.js";
1
+ import "./chunks/converter-DvoY_Ajb.js";
2
+ import { D } from "./chunks/docx-zipper-BwzO_Kan.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-DTlFmtf7.js";
2
- import "./chunks/converter-BmYPM7j8.js";
3
- import "./chunks/docx-zipper-CL-WWt46.js";
1
+ import { E } from "./chunks/editor-Dlpffdvx.js";
2
+ import "./chunks/converter-DvoY_Ajb.js";
3
+ import "./chunks/docx-zipper-BwzO_Kan.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-CL-WWt46.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-BwzO_Kan.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-DTlFmtf7.js";
13
- import { k, m, j, l } from "./chunks/editor-DTlFmtf7.js";
14
- import { L as getDefaultExportFromCjs, v as v4, T as TextSelection, Q as vClickOutside } from "./chunks/converter-BmYPM7j8.js";
15
- import { B } from "./chunks/converter-BmYPM7j8.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-Dlpffdvx.js";
13
+ import { k, m, j, l } from "./chunks/editor-Dlpffdvx.js";
14
+ import { L as getDefaultExportFromCjs, v as v4, T as TextSelection, Q as vClickOutside } from "./chunks/converter-DvoY_Ajb.js";
15
+ import { B } from "./chunks/converter-DvoY_Ajb.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-COzWERLK.js";
18
- import { D } from "./chunks/docx-zipper-CL-WWt46.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-DJKYESky.js";
18
+ import { D } from "./chunks/docx-zipper-BwzO_Kan.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-COzWERLK.js";
3
- import "./chunks/editor-DTlFmtf7.js";
2
+ import { T } from "./chunks/toolbar-DJKYESky.js";
3
+ import "./chunks/editor-Dlpffdvx.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-BsLgPPOs.js";
1
+ import { _, D, E, S, a, b, c, T, d, i, g, e, f, h, j, k, l } from "./chunks/super-editor.es-ChbpDgxj.js";
2
2
  import "./chunks/vue-CUQGd1xF.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-BsLgPPOs.js";
2
- import { S, i, k, l } from "./chunks/super-editor.es-BsLgPPOs.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-ChbpDgxj.js";
2
+ import { S, i, k, l } from "./chunks/super-editor.es-ChbpDgxj.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, l as getCurrentInstance, j 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, f as onMounted, h as onBeforeUnmount, e as onBeforeMount, U as onActivated, m as onDeactivated, y as createTextVNode, F as Fragment, Q as Comment, k 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, s as createCommentVNode, q as createBlock, w as withModifiers, n as normalizeClass, a5 as resolveDirective, d as renderList, c as createApp, a6 as resolveDynamicComponent } from "./chunks/vue-CUQGd1xF.js";
4
4
  import { B as Buffer$2 } from "./chunks/jszip-DlHbx6j5.js";
5
5
  import { b } from "./chunks/blank-docx-BagxM198.js";
@@ -45708,7 +45708,7 @@ class SuperDoc extends EventEmitter {
45708
45708
  this.config.colors = shuffleArray(this.config.colors);
45709
45709
  this.userColorMap = /* @__PURE__ */ new Map();
45710
45710
  this.colorIndex = 0;
45711
- this.version = "0.6.62";
45711
+ this.version = "0.6.63";
45712
45712
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
45713
45713
  this.superdocId = config.superdocId || v4();
45714
45714
  this.colors = this.config.colors;
@@ -25029,6 +25029,9 @@
25029
25029
  ...listNode.attrs
25030
25030
  };
25031
25031
  const outputNode = exportSchemaToJson({ ...params2, node: paragraphNode });
25032
+ if (!outputNode.elements) {
25033
+ outputNode.elements = [];
25034
+ }
25032
25035
  const propsElementIndex = outputNode.elements.findIndex((e) => e.name === "w:pPr");
25033
25036
  const listProps = getListParagraphProperties(listNode, level, type2, propsElementIndex > -1);
25034
25037
  const content3 = outputNode.elements.filter((e) => e.name !== "w:pPr");
@@ -27933,7 +27936,7 @@
27933
27936
  return;
27934
27937
  }
27935
27938
  }
27936
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.6.62") {
27939
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.6.63") {
27937
27940
  const customLocation = "docProps/custom.xml";
27938
27941
  if (!docx[customLocation]) {
27939
27942
  docx[customLocation] = generateCustomXml();
@@ -28196,7 +28199,7 @@
28196
28199
  function generateCustomXml() {
28197
28200
  return DEFAULT_CUSTOM_XML;
28198
28201
  }
28199
- function generateSuperdocVersion(pid = 2, version2 = "0.6.62") {
28202
+ function generateSuperdocVersion(pid = 2, version2 = "0.6.63") {
28200
28203
  return {
28201
28204
  type: "element",
28202
28205
  name: "property",
@@ -42219,7 +42222,7 @@
42219
42222
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
42220
42223
  */
42221
42224
  processCollaborationMigrations() {
42222
- console.debug("[checkVersionMigrations] Current editor version", "0.6.62");
42225
+ console.debug("[checkVersionMigrations] Current editor version", "0.6.63");
42223
42226
  if (!this.options.ydoc) return;
42224
42227
  const metaMap = this.options.ydoc.getMap("meta");
42225
42228
  let docVersion = metaMap.get("version");
@@ -110365,7 +110368,7 @@ ${style2}
110365
110368
  this.config.colors = shuffleArray(this.config.colors);
110366
110369
  this.userColorMap = /* @__PURE__ */ new Map();
110367
110370
  this.colorIndex = 0;
110368
- this.version = "0.6.62";
110371
+ this.version = "0.6.63";
110369
110372
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
110370
110373
  this.superdocId = config.superdocId || v4();
110371
110374
  this.colors = this.config.colors;