@harbour-enterprises/superdoc 0.6.68 → 0.6.69

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-CZuOS42K.js";
1
+ import { B } from "./chunks/converter-Z3CzMHRB.js";
2
2
  export {
3
3
  B as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-CZuOS42K.js";
2
- import { D } from "./chunks/docx-zipper-DkriOCRP.js";
1
+ import "./chunks/converter-Z3CzMHRB.js";
2
+ import { D } from "./chunks/docx-zipper-D6yUKm1D.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-DkvBKnjs.js";
2
- import "./chunks/converter-CZuOS42K.js";
3
- import "./chunks/docx-zipper-DkriOCRP.js";
1
+ import { E } from "./chunks/editor-M148YaJW.js";
2
+ import "./chunks/converter-Z3CzMHRB.js";
3
+ import "./chunks/docx-zipper-D6yUKm1D.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-DkriOCRP.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-D6yUKm1D.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-DkvBKnjs.js";
13
- import { k, m, j, l } from "./chunks/editor-DkvBKnjs.js";
14
- import { L as getDefaultExportFromCjs, v as v4, T as TextSelection, Q as vClickOutside } from "./chunks/converter-CZuOS42K.js";
15
- import { B } from "./chunks/converter-CZuOS42K.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-M148YaJW.js";
13
+ import { k, m, j, l } from "./chunks/editor-M148YaJW.js";
14
+ import { L as getDefaultExportFromCjs, v as v4, T as TextSelection, Q as vClickOutside } from "./chunks/converter-Z3CzMHRB.js";
15
+ import { B } from "./chunks/converter-Z3CzMHRB.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-BN7sisvW.js";
18
- import { D } from "./chunks/docx-zipper-DkriOCRP.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-BFZuVYzi.js";
18
+ import { D } from "./chunks/docx-zipper-D6yUKm1D.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-BN7sisvW.js";
3
- import "./chunks/editor-DkvBKnjs.js";
2
+ import { T } from "./chunks/toolbar-BFZuVYzi.js";
3
+ import "./chunks/editor-M148YaJW.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-f6yl_jHv.js";
1
+ import { _, D, E, S, a, b, c, T, d, i, g, e, f, h, j, k, l } from "./chunks/super-editor.es-Bq6ij_ss.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-f6yl_jHv.js";
2
- import { S, i, k, l } from "./chunks/super-editor.es-f6yl_jHv.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-Bq6ij_ss.js";
2
+ import { S, i, k, l } from "./chunks/super-editor.es-Bq6ij_ss.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";
@@ -45746,7 +45746,7 @@ class SuperDoc extends EventEmitter {
45746
45746
  this.config.colors = shuffleArray(this.config.colors);
45747
45747
  this.userColorMap = /* @__PURE__ */ new Map();
45748
45748
  this.colorIndex = 0;
45749
- this.version = "0.6.68";
45749
+ this.version = "0.6.69";
45750
45750
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
45751
45751
  this.superdocId = config.superdocId || v4();
45752
45752
  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.68") {
27940
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.6.69") {
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.68") {
28198
+ function generateSuperdocVersion(pid = 2, version2 = "0.6.69") {
28199
28199
  return {
28200
28200
  type: "element",
28201
28201
  name: "property",
@@ -30772,21 +30772,26 @@
30772
30772
  return processedMarks;
30773
30773
  }
30774
30774
  function getActiveAttributes(state2) {
30775
- const { from: from2, to, empty: empty2 } = state2.selection;
30776
- const attributes = {};
30777
- const getAttrs = (node2) => {
30778
- Object.keys(node2.attrs).forEach((key) => {
30779
- const value = node2.attrs[key];
30780
- if (value) {
30781
- attributes[key] = value;
30782
- }
30783
- });
30784
- };
30785
- let start2 = from2;
30786
- let end2 = to;
30787
- if (empty2) state2.doc.nodesBetween(start2, end2 + 1, (node2) => getAttrs(node2));
30788
- else state2.doc.nodesBetween(from2, to, (node2) => getAttrs(node2));
30789
- return attributes;
30775
+ try {
30776
+ const { from: from2, to, empty: empty2 } = state2.selection;
30777
+ const attributes = {};
30778
+ const getAttrs = (node2) => {
30779
+ Object.keys(node2.attrs).forEach((key) => {
30780
+ const value = node2.attrs[key];
30781
+ if (value) {
30782
+ attributes[key] = value;
30783
+ }
30784
+ });
30785
+ };
30786
+ let start2 = from2;
30787
+ let end2 = to;
30788
+ if (empty2) state2.doc.nodesBetween(start2, end2 + 1, (node2) => getAttrs(node2));
30789
+ else state2.doc.nodesBetween(from2, to, (node2) => getAttrs(node2));
30790
+ return attributes;
30791
+ } catch (error) {
30792
+ console.debug("Error getting active attributes:", error);
30793
+ return {};
30794
+ }
30790
30795
  }
30791
30796
  var GOOD_LEAF_SIZE = 200;
30792
30797
  var RopeSequence = function RopeSequence2() {
@@ -42224,7 +42229,7 @@
42224
42229
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
42225
42230
  */
42226
42231
  processCollaborationMigrations() {
42227
- console.debug("[checkVersionMigrations] Current editor version", "0.6.68");
42232
+ console.debug("[checkVersionMigrations] Current editor version", "0.6.69");
42228
42233
  if (!this.options.ydoc) return;
42229
42234
  const metaMap = this.options.ydoc.getMap("meta");
42230
42235
  let docVersion = metaMap.get("version");
@@ -110408,7 +110413,7 @@ ${style2}
110408
110413
  this.config.colors = shuffleArray(this.config.colors);
110409
110414
  this.userColorMap = /* @__PURE__ */ new Map();
110410
110415
  this.colorIndex = 0;
110411
- this.version = "0.6.68";
110416
+ this.version = "0.6.69";
110412
110417
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
110413
110418
  this.superdocId = config.superdocId || v4();
110414
110419
  this.colors = this.config.colors;