@harbour-enterprises/superdoc 0.6.39 → 0.6.40

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-BRvFd71O.js";
1
+ import { B } from "./chunks/converter-dRKFrH-I.js";
2
2
  export {
3
3
  B as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-BRvFd71O.js";
2
- import { D } from "./chunks/docx-zipper-1voWzM2x.js";
1
+ import "./chunks/converter-dRKFrH-I.js";
2
+ import { D } from "./chunks/docx-zipper-BRs-RDKd.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-CrvseAng.js";
2
- import "./chunks/converter-BRvFd71O.js";
3
- import "./chunks/docx-zipper-1voWzM2x.js";
1
+ import { E } from "./chunks/editor-Dy8E0rkX.js";
2
+ import "./chunks/converter-dRKFrH-I.js";
3
+ import "./chunks/docx-zipper-BRs-RDKd.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-1voWzM2x.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-BRs-RDKd.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-CrvseAng.js";
13
- import { k, m, j, l } from "./chunks/editor-CrvseAng.js";
14
- import { L as getDefaultExportFromCjs, v as v4, T as TextSelection, Q as vClickOutside } from "./chunks/converter-BRvFd71O.js";
15
- import { B } from "./chunks/converter-BRvFd71O.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-Dy8E0rkX.js";
13
+ import { k, m, j, l } from "./chunks/editor-Dy8E0rkX.js";
14
+ import { L as getDefaultExportFromCjs, v as v4, T as TextSelection, Q as vClickOutside } from "./chunks/converter-dRKFrH-I.js";
15
+ import { B } from "./chunks/converter-dRKFrH-I.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-DZ_vVnAy.js";
18
- import { D } from "./chunks/docx-zipper-1voWzM2x.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-C2xj0bcI.js";
18
+ import { D } from "./chunks/docx-zipper-BRs-RDKd.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-DZ_vVnAy.js";
3
- import "./chunks/editor-CrvseAng.js";
2
+ import { T } from "./chunks/toolbar-C2xj0bcI.js";
3
+ import "./chunks/editor-Dy8E0rkX.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-AZbtlJwj.js";
1
+ import { _, D, E, S, a, b, c, T, d, i, g, e, f, h, j, k, l } from "./chunks/super-editor.es-zMzwdBZ5.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-AZbtlJwj.js";
2
- import { S, i, k, l } from "./chunks/super-editor.es-AZbtlJwj.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-zMzwdBZ5.js";
2
+ import { S, i, k, l } from "./chunks/super-editor.es-zMzwdBZ5.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";
@@ -45531,7 +45531,7 @@ class SuperDoc extends EventEmitter {
45531
45531
  this.config.colors = shuffleArray(this.config.colors);
45532
45532
  this.userColorMap = /* @__PURE__ */ new Map();
45533
45533
  this.colorIndex = 0;
45534
- this.version = "0.6.39";
45534
+ this.version = "0.6.40";
45535
45535
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
45536
45536
  this.superdocId = config.superdocId || v4();
45537
45537
  this.colors = this.config.colors;
@@ -27447,7 +27447,7 @@
27447
27447
  return;
27448
27448
  }
27449
27449
  }
27450
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.6.39") {
27450
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.6.40") {
27451
27451
  const customLocation = "docProps/custom.xml";
27452
27452
  if (!docx[customLocation]) {
27453
27453
  docx[customLocation] = generateCustomXml();
@@ -27692,7 +27692,7 @@
27692
27692
  function generateCustomXml() {
27693
27693
  return DEFAULT_CUSTOM_XML;
27694
27694
  }
27695
- function generateSuperdocVersion(version2 = "0.6.39") {
27695
+ function generateSuperdocVersion(version2 = "0.6.40") {
27696
27696
  return {
27697
27697
  type: "element",
27698
27698
  name: "property",
@@ -41668,7 +41668,7 @@
41668
41668
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
41669
41669
  */
41670
41670
  processCollaborationMigrations() {
41671
- console.debug("[checkVersionMigrations] Current editor version", "0.6.39");
41671
+ console.debug("[checkVersionMigrations] Current editor version", "0.6.40");
41672
41672
  if (!this.options.ydoc) return;
41673
41673
  const metaMap = this.options.ydoc.getMap("meta");
41674
41674
  let docVersion = metaMap.get("version");
@@ -52201,7 +52201,7 @@
52201
52201
  });
52202
52202
  const tempContainer = editor.options.element.cloneNode();
52203
52203
  if (!tempContainer) return [];
52204
- tempContainer.className = "temp-container";
52204
+ tempContainer.className = "temp-container super-editor";
52205
52205
  const HIDDEN_EDITOR_OFFSET_TOP = 0;
52206
52206
  const HIDDEN_EDITOR_OFFSET_LEFT = 0;
52207
52207
  tempContainer.style.left = HIDDEN_EDITOR_OFFSET_TOP + "px";
@@ -52299,7 +52299,7 @@
52299
52299
  const headerDef = sectionData.headers?.[headerId];
52300
52300
  const minHeaderHeight = pageMargins.top * 96;
52301
52301
  const headerMargin = pageMargins.header * 96;
52302
- const hasHeaderOffset = headerDef?.height > minHeaderHeight - headerMargin;
52302
+ const hasHeaderOffset = headerDef?.height < minHeaderHeight - headerMargin;
52303
52303
  const headerOffset = hasHeaderOffset ? headerMargin : 0;
52304
52304
  const headerHeight = Math.max(headerDef?.height || 0, minHeaderHeight) + headerOffset;
52305
52305
  let sectionContainer = headerDef?.sectionContainer?.cloneNode(true);
@@ -109617,7 +109617,7 @@ ${style2}
109617
109617
  this.config.colors = shuffleArray(this.config.colors);
109618
109618
  this.userColorMap = /* @__PURE__ */ new Map();
109619
109619
  this.colorIndex = 0;
109620
- this.version = "0.6.39";
109620
+ this.version = "0.6.40";
109621
109621
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
109622
109622
  this.superdocId = config.superdocId || v4();
109623
109623
  this.colors = this.config.colors;