@harbour-enterprises/superdoc 0.9.6 → 0.9.7

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 (29) hide show
  1. package/dist/chunks/{index-DjLrg1eZ.es.js → index-4z9dCXD4.es.js} +2 -2
  2. package/dist/chunks/{index-dZKHAFXF.es.js → index-C9CPh36N.es.js} +1 -1
  3. package/dist/chunks/{index-BXKGjuVW.cjs → index-MTg0RB9I.cjs} +1 -1
  4. package/dist/chunks/{index-CqRwYOdx.cjs → index-f-drtAbP.cjs} +1 -1
  5. package/dist/chunks/{super-editor.es-DDFzGYAp.cjs → super-editor.es-B623EKXl.cjs} +3 -3
  6. package/dist/chunks/{super-editor.es-Cq0WllKa.es.js → super-editor.es-C96Gczy_.es.js} +11 -12
  7. package/dist/chunks/{url-6Xu7gR4T.cjs → url-BY6ThfSE.cjs} +1 -1
  8. package/dist/chunks/{url-BxDGAI6E.es.js → url-CwZauKUC.es.js} +1 -1
  9. package/dist/chunks/xml-js-C-3oH1mO.cjs +10 -0
  10. package/dist/chunks/{xml-js-BAML2_fM.es.js → xml-js-CCS2urF-.es.js} +366 -355
  11. package/dist/super-editor/chunks/{converter-CaEBT_Lm.js → converter-B8WVkWwL.js} +2 -2
  12. package/dist/super-editor/chunks/{docx-zipper-BaxinlH7.js → docx-zipper-Cb_c9Za4.js} +1 -1
  13. package/dist/super-editor/chunks/{editor-Bg2hc4Rp.js → editor-DeIwPnr3.js} +11 -12
  14. package/dist/super-editor/chunks/{toolbar-CYRDHqzx.js → toolbar-C-IJLBF5.js} +2 -2
  15. package/dist/super-editor/converter.es.js +1 -1
  16. package/dist/super-editor/docx-zipper.es.js +2 -2
  17. package/dist/super-editor/editor.es.js +3 -3
  18. package/dist/super-editor/extensions/paragraph/paragraph.d.ts.map +1 -1
  19. package/dist/super-editor/file-zipper.es.js +1 -1
  20. package/dist/super-editor/super-editor.es.js +6 -6
  21. package/dist/super-editor/toolbar.es.js +2 -2
  22. package/dist/super-editor.cjs +1 -1
  23. package/dist/super-editor.es.js +1 -1
  24. package/dist/superdoc.cjs +3 -3
  25. package/dist/superdoc.es.js +6 -6
  26. package/dist/superdoc.umd.js +12 -13
  27. package/dist/superdoc.umd.js.map +1 -1
  28. package/package.json +1 -1
  29. package/dist/chunks/xml-js-zhwNEV5e.cjs +0 -10
@@ -14711,7 +14711,7 @@ const dt = class dt {
14711
14711
  return;
14712
14712
  }
14713
14713
  }
14714
- static updateDocumentVersion(e = this.convertedXml, t = "0.9.6") {
14714
+ static updateDocumentVersion(e = this.convertedXml, t = "0.9.7") {
14715
14715
  const n = "docProps/custom.xml";
14716
14716
  e[n] || (e[n] = yu());
14717
14717
  const i = e["docProps/custom.xml"];
@@ -14911,7 +14911,7 @@ function Mp(r) {
14911
14911
  function yu() {
14912
14912
  return Tf;
14913
14913
  }
14914
- function wu(r = 2, e = "0.9.6") {
14914
+ function wu(r = 2, e = "0.9.7") {
14915
14915
  return {
14916
14916
  type: "element",
14917
14917
  name: "property",
@@ -1,4 +1,4 @@
1
- import { p as Tt, L as wt, O as ut, Q as Bt, U as Rt } from "./converter-CaEBT_Lm.js";
1
+ import { p as Tt, L as wt, O as ut, Q as Bt, U as Rt } from "./converter-B8WVkWwL.js";
2
2
  function kt(bt) {
3
3
  throw new Error('Could not dynamically require "' + bt + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4
4
  }
@@ -7,9 +7,9 @@ var I = (t, e, n) => ju(t, typeof e != "symbol" ? e + "" : e, n), Po = (t, e, n)
7
7
  var Je = (t, e, n) => (Po(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ct = (t, e, n) => e.has(t) ? $s("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Io = (t, e, n, r) => (Po(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), P = (t, e, n) => (Po(t, e, "access private method"), n);
8
8
  import * as T from "yjs";
9
9
  import { UndoManager as Hu, Item as Wu, ContentType as Uu, Text as qu, XmlElement as Ku } from "yjs";
10
- import { P as G, a as J, M as nr, N as B, S as Y, T as V, b as _, D as Ln, F as E, c as Sn, d as Xu, e as Pl, A as mr, p as oe, f as Il, i as Yu, g as gt, l as gr, h as Vt, j as Rl, r as Ll, R as on, o as rr, k as Ft, m as li, n as Bl, q as ue, s as Ve, v as ko, t as yn, u as Gu, w as Me, x as Wr, y as Fl, z as bn, B as Ro, C as Lo, E as Bo, G as Ur, H as Ju, I as Vs, J as Zu, K as Qu } from "./converter-CaEBT_Lm.js";
10
+ import { P as G, a as J, M as nr, N as B, S as Y, T as V, b as _, D as Ln, F as E, c as Sn, d as Xu, e as Pl, A as mr, p as oe, f as Il, i as Yu, g as gt, l as gr, h as Vt, j as Rl, r as Ll, R as on, o as rr, k as Ft, m as li, n as Bl, q as ue, s as Ve, v as ko, t as yn, u as Gu, w as Me, x as Wr, y as Fl, z as bn, B as Ro, C as Lo, E as Bo, G as Ur, H as Ju, I as Vs, J as Zu, K as Qu } from "./converter-B8WVkWwL.js";
11
11
  import { ref as _s, computed as ef, createElementBlock as Ut, openBlock as qt, withModifiers as Fo, Fragment as tf, renderList as nf, normalizeClass as rf, createCommentVNode as js, toDisplayString as zo, createElementVNode as of, createApp as sf } from "vue";
12
- import { D as Hs } from "./docx-zipper-BaxinlH7.js";
12
+ import { D as Hs } from "./docx-zipper-Cb_c9Za4.js";
13
13
  function vo(t) {
14
14
  const { from: e, to: n, empty: r } = t.selection, o = [];
15
15
  return r ? (t.storedMarks && o.push(...t.storedMarks), o.push(...t.selection.$head.marks())) : t.doc.nodesBetween(e, n, (i) => {
@@ -8550,7 +8550,7 @@ const Fs = class Fs extends Gh {
8550
8550
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
8551
8551
  */
8552
8552
  processCollaborationMigrations() {
8553
- if (console.debug("[checkVersionMigrations] Current editor version", "0.9.6"), !this.options.ydoc) return;
8553
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.9.7"), !this.options.ydoc) return;
8554
8554
  let r = this.options.ydoc.getMap("meta").get("version");
8555
8555
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
8556
8556
  const o = Fa(r) || [], s = this.state.plugins.find((c) => c.key.startsWith("y-sync"));
@@ -10289,10 +10289,10 @@ const Id = Q.create({
10289
10289
  extraAttrs: {
10290
10290
  default: {},
10291
10291
  parseHTML: (t) => {
10292
- const e = ["spacing", "indent", "class"], n = {};
10293
- return console.debug("--ELEMENT--", t), Array.from(t.attributes).forEach((r) => {
10294
- e.includes(r.name) || (n[r.name] = r.value);
10295
- }), n;
10292
+ const e = {};
10293
+ return Array.from(t.attributes).forEach((n) => {
10294
+ e[n.name] = n.value;
10295
+ }), e;
10296
10296
  },
10297
10297
  renderDOM: (t) => t.extraAttrs || {}
10298
10298
  },
@@ -10316,11 +10316,10 @@ const Id = Q.create({
10316
10316
  return [{
10317
10317
  tag: "p",
10318
10318
  getAttrs: (t) => {
10319
- const e = ["spacing", "indent", "class"];
10320
- let n = {};
10321
- return Array.from(t.attributes).forEach((r) => {
10322
- e.includes(r.name) || (n[r.name] = r.value);
10323
- }), { extraAttrs: n };
10319
+ let e = {};
10320
+ return Array.from(t.attributes).forEach((n) => {
10321
+ e[n.name] = n.value;
10322
+ }), { extraAttrs: e };
10324
10323
  }
10325
10324
  }];
10326
10325
  },
@@ -1,6 +1,6 @@
1
1
  import { computed as _, createElementBlock as se, openBlock as q, createElementVNode as pn, createCommentVNode as pe, normalizeClass as Zt, normalizeStyle as Jt, ref as R, unref as W, createBlock as Ge, toDisplayString as ni, withDirectives as dt, withKeys as Nr, withModifiers as Hr, vModelText as jr, getCurrentInstance as _t, createVNode as Et, readonly as Qt, watch as we, onMounted as Ke, onBeforeUnmount as Be, reactive as Ks, onBeforeMount as dr, inject as te, onActivated as Vs, onDeactivated as ri, createTextVNode as At, Fragment as _e, Comment as fr, defineComponent as ee, provide as Se, h as E, Teleport as Us, toRef as ie, nextTick as Gs, renderSlot as Xs, isVNode as qs, shallowRef as Ys, watchEffect as ft, mergeProps as pt, Transition as en, vShow as Zs, cloneVNode as Js, Text as Qs, renderList as el, withCtx as Bn } from "vue";
2
- import { p as tn } from "./converter-CaEBT_Lm.js";
3
- import { _ as vt, g as Pt } from "./editor-Bg2hc4Rp.js";
2
+ import { p as tn } from "./converter-B8WVkWwL.js";
3
+ import { _ as vt, g as Pt } from "./editor-DeIwPnr3.js";
4
4
  const Mp = (e, t) => {
5
5
  let n = e.replace(/[^0-9.]/g, "");
6
6
  return n = parseFloat(n), isNaN(n) && (n = t), n = parseFloat(n), n;
@@ -1,4 +1,4 @@
1
- import { E as o } from "./chunks/converter-CaEBT_Lm.js";
1
+ import { E as o } from "./chunks/converter-B8WVkWwL.js";
2
2
  export {
3
3
  o as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-CaEBT_Lm.js";
2
- import { D as a } from "./chunks/docx-zipper-BaxinlH7.js";
1
+ import "./chunks/converter-B8WVkWwL.js";
2
+ import { D as a } from "./chunks/docx-zipper-Cb_c9Za4.js";
3
3
  export {
4
4
  a as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E as m } from "./chunks/editor-Bg2hc4Rp.js";
2
- import "./chunks/converter-CaEBT_Lm.js";
3
- import "./chunks/docx-zipper-BaxinlH7.js";
1
+ import { E as m } from "./chunks/editor-DeIwPnr3.js";
2
+ import "./chunks/converter-B8WVkWwL.js";
3
+ import "./chunks/docx-zipper-Cb_c9Za4.js";
4
4
  export {
5
5
  m as Editor
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../src/extensions/paragraph/paragraph.js"],"names":[],"mappings":"AAGA,4BAuFG"}
1
+ {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../src/extensions/paragraph/paragraph.js"],"names":[],"mappings":"AAGA,4BAgFG"}
@@ -1,4 +1,4 @@
1
- import { J as p } from "./chunks/docx-zipper-BaxinlH7.js";
1
+ import { J as p } from "./chunks/docx-zipper-Cb_c9Za4.js";
2
2
  async function c(o, t) {
3
3
  const e = new p();
4
4
  return o.forEach((i, n) => {
@@ -6,13 +6,13 @@ var rt = (t, s, o) => s in t ? at(t, s, { enumerable: !0, configurable: !0, writ
6
6
  var Ie = (t, s, o) => rt(t, typeof s != "symbol" ? s + "" : s, o), Pe = (t, s, o) => s.has(t) || Ne("Cannot " + o);
7
7
  var we = (t, s, o) => (Pe(t, s, "read from private field"), o ? o.call(t) : s.get(t)), Le = (t, s, o) => s.has(t) ? Ne("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(t) : s.set(t, o);
8
8
  var O = (t, s, o) => (Pe(t, s, "access private method"), o);
9
- import { _ as K, a as Ue, b as ct, I as Me, f as dt, c as ze, d as ut, i as mt, u as pt, r as ft, E as De, e as ht, P as vt, h as gt, j as yt, A as bt, N as kt } from "./chunks/editor-Bg2hc4Rp.js";
10
- import { C as ko, T as Co, l as _o, n as wo, k as xo, m as Eo } from "./chunks/editor-Bg2hc4Rp.js";
11
- import { Q as Ct, v as _t, V as wt, T as Ve, a as xt } from "./chunks/converter-CaEBT_Lm.js";
12
- import { E as To } from "./chunks/converter-CaEBT_Lm.js";
9
+ import { _ as K, a as Ue, b as ct, I as Me, f as dt, c as ze, d as ut, i as mt, u as pt, r as ft, E as De, e as ht, P as vt, h as gt, j as yt, A as bt, N as kt } from "./chunks/editor-DeIwPnr3.js";
10
+ import { C as ko, T as Co, l as _o, n as wo, k as xo, m as Eo } from "./chunks/editor-DeIwPnr3.js";
11
+ import { Q as Ct, v as _t, V as wt, T as Ve, a as xt } from "./chunks/converter-B8WVkWwL.js";
12
+ import { E as To } from "./chunks/converter-B8WVkWwL.js";
13
13
  import { ref as g, createElementBlock as C, openBlock as k, createElementVNode as x, unref as $, getCurrentInstance as Et, computed as j, watch as St, onMounted as ke, createCommentVNode as ee, withDirectives as Tt, withKeys as At, normalizeClass as te, withModifiers as be, vModelText as Ft, createTextVNode as It, toDisplayString as ne, Fragment as U, renderList as J, normalizeStyle as Y, createVNode as z, h as W, createApp as Lt, reactive as We, onUnmounted as Mt, shallowRef as qe, onBeforeUnmount as Ge, createBlock as Dt } from "vue";
14
- import { t as G, s as $t, T as Bt, N as Z } from "./chunks/toolbar-CYRDHqzx.js";
15
- import { D as Fo } from "./chunks/docx-zipper-BaxinlH7.js";
14
+ import { t as G, s as $t, T as Bt, N as Z } from "./chunks/toolbar-C-IJLBF5.js";
15
+ import { D as Fo } from "./chunks/docx-zipper-Cb_c9Za4.js";
16
16
  import { createZip as Lo } from "./file-zipper.es.js";
17
17
  var Ke = { exports: {} };
18
18
  (function(t) {
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T as p } from "./chunks/toolbar-CYRDHqzx.js";
3
- import "./chunks/editor-Bg2hc4Rp.js";
2
+ import { T as p } from "./chunks/toolbar-C-IJLBF5.js";
3
+ import "./chunks/editor-DeIwPnr3.js";
4
4
  export {
5
5
  p as default
6
6
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-DDFzGYAp.cjs");require("./chunks/vue-Ckf0DkDN.cjs");exports.BasicUpload=e.ho;exports.CommentsPluginKey=e.he;exports.DocxZipper=e.Nt;exports.Editor=e.Ni;exports.Extensions=e.go;exports.SuperConverter=e.Ft;exports.SuperEditor=e.fo;exports.SuperInput=e.vo;exports.SuperToolbar=e.po;exports.Toolbar=e._p;exports.TrackChangesBasePluginKey=e.de;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.Av;exports.getActiveFormatting=e.af;exports.getAllowedImageDimensions=e.Gn;exports.getMarksFromSelection=e.vo$1;exports.getRichTextExtensions=e.hv;exports.getStarterExtensions=e.mv;exports.helpers=e.td;exports.trackChangesHelpers=e.Tv;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-B623EKXl.cjs");require("./chunks/vue-Ckf0DkDN.cjs");exports.BasicUpload=e.ho;exports.CommentsPluginKey=e.he;exports.DocxZipper=e.Nt;exports.Editor=e.Ni;exports.Extensions=e.go;exports.SuperConverter=e.Ft;exports.SuperEditor=e.fo;exports.SuperInput=e.vo;exports.SuperToolbar=e.po;exports.Toolbar=e._p;exports.TrackChangesBasePluginKey=e.de;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.Av;exports.getActiveFormatting=e.af;exports.getAllowedImageDimensions=e.Gn;exports.getMarksFromSelection=e.vo$1;exports.getRichTextExtensions=e.hv;exports.getStarterExtensions=e.mv;exports.helpers=e.td;exports.trackChangesHelpers=e.Tv;
@@ -1,4 +1,4 @@
1
- import { h as t, a as r, N as o, b as i, g as n, F as p, f as g, v as l, p as c, _ as m, d as u, c as d, A as x, e as S, G as h, i as E, j as T, m as A, t as C, T as b } from "./chunks/super-editor.es-Cq0WllKa.es.js";
1
+ import { h as t, a as r, N as o, b as i, g as n, F as p, f as g, v as l, p as c, _ as m, d as u, c as d, A as x, e as S, G as h, i as E, j as T, m as A, t as C, T as b } from "./chunks/super-editor.es-C96Gczy_.es.js";
2
2
  import "./chunks/vue-BDbTsTMu.es.js";
3
3
  export {
4
4
  t as BasicUpload,