@harbour-enterprises/superdoc 0.9.40 → 0.9.42

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 (79) hide show
  1. package/dist/chunks/{super-editor.es-BPWmPyPV.cjs → super-editor.es-C0bXjCb2.cjs} +60 -60
  2. package/dist/chunks/{super-editor.es-BMGaeJBV.es.js → super-editor.es-Jdmyi8pH.es.js} +6002 -6003
  3. package/dist/style.css +1 -3368
  4. package/dist/super-editor/chunks/{converter-3lmRyrJr.js → converter-CecWe0O8.js} +632 -632
  5. package/dist/super-editor/chunks/{docx-zipper-pzhEkORK.js → docx-zipper-BYhBuyXi.js} +1 -1
  6. package/dist/super-editor/chunks/{editor-B7eTfGQw.js → editor-CVMeRmT7.js} +4 -4
  7. package/dist/super-editor/chunks/{toolbar-BfM-mqT5.js → toolbar-CqjuKtGw.js} +2 -2
  8. package/dist/super-editor/converter.es.js +1 -1
  9. package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
  10. package/dist/super-editor/docx-zipper.es.js +2 -2
  11. package/dist/super-editor/editor.es.js +3 -3
  12. package/dist/super-editor/file-zipper.es.js +1 -1
  13. package/dist/super-editor/super-editor.es.js +6 -6
  14. package/dist/super-editor/toolbar.es.js +2 -2
  15. package/dist/super-editor.cjs +1 -1
  16. package/dist/super-editor.es.js +1 -1
  17. package/dist/superdoc.cjs +3 -3
  18. package/dist/superdoc.es.js +3 -3
  19. package/package.json +1 -1
  20. package/dist/components/CommentsLayer/comment-schemas.d.ts +0 -17
  21. package/dist/components/CommentsLayer/comment-schemas.d.ts.map +0 -1
  22. package/dist/components/CommentsLayer/commentsList/super-comments-list.d.ts +0 -22
  23. package/dist/components/CommentsLayer/commentsList/super-comments-list.d.ts.map +0 -1
  24. package/dist/components/CommentsLayer/helpers.d.ts +0 -8
  25. package/dist/components/CommentsLayer/helpers.d.ts.map +0 -1
  26. package/dist/components/CommentsLayer/use-comment.d.ts +0 -8
  27. package/dist/components/CommentsLayer/use-comment.d.ts.map +0 -1
  28. package/dist/components/CommentsLayer/use-conversation.d.ts +0 -23
  29. package/dist/components/CommentsLayer/use-conversation.d.ts.map +0 -1
  30. package/dist/components/CommentsLayer/use-floating-comment.d.ts +0 -12
  31. package/dist/components/CommentsLayer/use-floating-comment.d.ts.map +0 -1
  32. package/dist/components/CommentsLayer/use-tracked-change.d.ts +0 -1
  33. package/dist/components/CommentsLayer/use-tracked-change.d.ts.map +0 -1
  34. package/dist/components/PdfViewer/helpers/pdfjs-worker.d.ts +0 -3
  35. package/dist/components/PdfViewer/helpers/pdfjs-worker.d.ts.map +0 -1
  36. package/dist/components/PdfViewer/helpers/range.d.ts +0 -2
  37. package/dist/components/PdfViewer/helpers/range.d.ts.map +0 -1
  38. package/dist/components/PdfViewer/pdfjs.d.ts +0 -3
  39. package/dist/components/PdfViewer/pdfjs.d.ts.map +0 -1
  40. package/dist/components/PdfViewer/worker.d.ts +0 -3
  41. package/dist/components/PdfViewer/worker.d.ts.map +0 -1
  42. package/dist/composables/use-document.d.ts +0 -27
  43. package/dist/composables/use-document.d.ts.map +0 -1
  44. package/dist/composables/use-field.d.ts +0 -34
  45. package/dist/composables/use-field.d.ts.map +0 -1
  46. package/dist/core/SuperDoc.d.ts +0 -345
  47. package/dist/core/SuperDoc.d.ts.map +0 -1
  48. package/dist/core/collaboration/collaboration-comments.d.ts +0 -5
  49. package/dist/core/collaboration/collaboration-comments.d.ts.map +0 -1
  50. package/dist/core/collaboration/collaboration.d.ts +0 -27
  51. package/dist/core/collaboration/collaboration.d.ts.map +0 -1
  52. package/dist/core/collaboration/helpers.d.ts +0 -5
  53. package/dist/core/collaboration/helpers.d.ts.map +0 -1
  54. package/dist/core/collaboration/permissions.d.ts +0 -14
  55. package/dist/core/collaboration/permissions.d.ts.map +0 -1
  56. package/dist/core/create-app.d.ts +0 -2
  57. package/dist/core/create-app.d.ts.map +0 -1
  58. package/dist/core/helpers/export.d.ts +0 -3
  59. package/dist/core/helpers/export.d.ts.map +0 -1
  60. package/dist/core/index.d.ts +0 -2
  61. package/dist/core/index.d.ts.map +0 -1
  62. package/dist/helpers/use-selection.d.ts +0 -18
  63. package/dist/helpers/use-selection.d.ts.map +0 -1
  64. package/dist/icons.d.ts +0 -11
  65. package/dist/icons.d.ts.map +0 -1
  66. package/dist/index.d.ts +0 -15
  67. package/dist/index.d.ts.map +0 -1
  68. package/dist/main.d.ts +0 -2
  69. package/dist/main.d.ts.map +0 -1
  70. package/dist/stores/comments-store.d.ts +0 -248
  71. package/dist/stores/comments-store.d.ts.map +0 -1
  72. package/dist/stores/hrbr-fields-store.d.ts +0 -44
  73. package/dist/stores/hrbr-fields-store.d.ts.map +0 -1
  74. package/dist/stores/superdoc-store.d.ts +0 -881
  75. package/dist/stores/superdoc-store.d.ts.map +0 -1
  76. package/dist/super-editor.d.ts +0 -2
  77. package/dist/super-editor.d.ts.map +0 -1
  78. package/dist/superdoc.umd.js +0 -68991
  79. package/dist/superdoc.umd.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { p as Tt, U as wt, B as ut, V as Bt, W as Rt } from "./converter-3lmRyrJr.js";
1
+ import { p as Tt, U as wt, B as ut, V as Bt, W as Rt } from "./converter-CecWe0O8.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 P = (t, e, n) => uf(t, typeof e != "symbol" ? e + "" : e, n), Ho = (t, e, n)
7
7
  var Ge = (t, e, n) => (Ho(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ft = (t, e, n) => e.has(t) ? Ys("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), jo = (t, e, n, r) => (Ho(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), I = (t, e, n) => (Ho(t, e, "access private method"), n);
8
8
  import * as T from "yjs";
9
9
  import { UndoManager as ff, Item as pf, ContentType as hf, Text as mf, XmlElement as gf } from "yjs";
10
- import { P as G, a as Z, M as cr, N as B, S as Y, T as H, b as W, D as $n, F as E, c as tn, d as yf, e as Jl, A as Ar, p as ie, B as bf, f as Yl, i as wf, g as wt, l as Or, h as Ht, j as Gl, r as Zl, R as an, o as dr, k as $t, m as bi, n as Ql, q as ue, s as $e, v as Do, t as Cn, u as vf, w as Se, x as to, y as ec, z as Sn, C as Wo, E as Uo, G as qo, H as no, I as kf, J as Gs, K as Zs, L as Cf, O as Sf, Q as xf } from "./converter-3lmRyrJr.js";
10
+ import { P as G, a as Z, M as cr, N as B, S as Y, T as H, b as W, D as $n, F as E, c as tn, d as yf, e as Jl, A as Ar, p as ie, B as bf, f as Yl, i as wf, g as wt, l as Or, h as Ht, j as Gl, r as Zl, R as an, o as dr, k as $t, m as bi, n as Ql, q as ue, s as $e, v as Do, t as Cn, u as vf, w as Se, x as to, y as ec, z as Sn, C as Wo, E as Uo, G as qo, H as no, I as kf, J as Gs, K as Zs, L as Cf, O as Sf, Q as xf } from "./converter-CecWe0O8.js";
11
11
  import { ref as Qs, computed as Mf, createElementBlock as Kt, openBlock as Xt, withModifiers as Ko, Fragment as Af, renderList as Of, normalizeClass as Tf, createCommentVNode as ea, toDisplayString as Xo, createElementVNode as Df, createApp as Nf } from "vue";
12
- import { D as ta } from "./docx-zipper-pzhEkORK.js";
12
+ import { D as ta } from "./docx-zipper-BYhBuyXi.js";
13
13
  function No(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) => {
@@ -10048,7 +10048,7 @@ const Xs = class Xs extends ag {
10048
10048
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
10049
10049
  */
10050
10050
  processCollaborationMigrations() {
10051
- if (console.debug("[checkVersionMigrations] Current editor version", "0.9.40"), !this.options.ydoc) return;
10051
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.9.41"), !this.options.ydoc) return;
10052
10052
  let r = this.options.ydoc.getMap("meta").get("version");
10053
10053
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
10054
10054
  const o = Qa(r) || [], s = this.state.plugins.find((c) => c.key.startsWith("y-sync"));
@@ -10148,7 +10148,7 @@ Zi = function() {
10148
10148
  try {
10149
10149
  const { mode: r, fragment: o, isHeadless: i, content: s, loadFromSchema: a } = this.options;
10150
10150
  if (r === "docx")
10151
- n = yd(this.converter, this.schema, this), n = I(this, O, Bd).call(this, n), o && i && (n = Ym(o, this.schema));
10151
+ n = yd(this.converter, this.schema, this), n = I(this, O, Bd).call(this, n), o && (n = Ym(o, this.schema));
10152
10152
  else if (r === "text")
10153
10153
  if (s) {
10154
10154
  let l = s;
@@ -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-3lmRyrJr.js";
3
- import { _ as vt, g as Pt } from "./editor-B7eTfGQw.js";
2
+ import { p as tn } from "./converter-CecWe0O8.js";
3
+ import { _ as vt, g as Pt } from "./editor-CVMeRmT7.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 { G as o } from "./chunks/converter-3lmRyrJr.js";
1
+ import { G as o } from "./chunks/converter-CecWe0O8.js";
2
2
  export {
3
3
  o as SuperConverter
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAuBA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAkCxB;AA8BD;;;;;GAKG;AACH,qDAFa,YAAY,CAyBxB;AAuiDD;;;;;;;;;EASC;AAED;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CA4DF;;;;;;;;;;;;;mBAxvDa,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":"AAuBA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAkCxB;AA8BD;;;;;GAKG;AACH,qDAFa,YAAY,CA+BxB;AA4kDD;;;;;;;;;EASC;AAED;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CA4DF;;;;;;;;;;;;;mBAnyDa,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-3lmRyrJr.js";
2
- import { D as a } from "./chunks/docx-zipper-pzhEkORK.js";
1
+ import "./chunks/converter-CecWe0O8.js";
2
+ import { D as a } from "./chunks/docx-zipper-BYhBuyXi.js";
3
3
  export {
4
4
  a as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E as m } from "./chunks/editor-B7eTfGQw.js";
2
- import "./chunks/converter-3lmRyrJr.js";
3
- import "./chunks/docx-zipper-pzhEkORK.js";
1
+ import { E as m } from "./chunks/editor-CVMeRmT7.js";
2
+ import "./chunks/converter-CecWe0O8.js";
3
+ import "./chunks/docx-zipper-BYhBuyXi.js";
4
4
  export {
5
5
  m as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as p } from "./chunks/docx-zipper-pzhEkORK.js";
1
+ import { J as p } from "./chunks/docx-zipper-BYhBuyXi.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), ze = (t, s, o) => s.has(t) || Ne("Cannot " + o);
7
7
  var we = (t, s, o) => (ze(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) => (ze(t, s, "access private method"), o);
9
- import { _ as X, a as Ue, b as ct, I as Me, f as dt, c as Pe, 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-B7eTfGQw.js";
10
- import { C as ko, T as Co, l as _o, n as wo, k as xo, m as Eo } from "./chunks/editor-B7eTfGQw.js";
11
- import { V as Ct, v as _t, X as wt, T as Ve, a as xt } from "./chunks/converter-3lmRyrJr.js";
12
- import { G as To } from "./chunks/converter-3lmRyrJr.js";
9
+ import { _ as X, a as Ue, b as ct, I as Me, f as dt, c as Pe, 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-CVMeRmT7.js";
10
+ import { C as ko, T as Co, l as _o, n as wo, k as xo, m as Eo } from "./chunks/editor-CVMeRmT7.js";
11
+ import { V as Ct, v as _t, X as wt, T as Ve, a as xt } from "./chunks/converter-CecWe0O8.js";
12
+ import { G as To } from "./chunks/converter-CecWe0O8.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 P, 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-BfM-mqT5.js";
15
- import { D as Fo } from "./chunks/docx-zipper-pzhEkORK.js";
14
+ import { t as G, s as $t, T as Bt, N as Z } from "./chunks/toolbar-CqjuKtGw.js";
15
+ import { D as Fo } from "./chunks/docx-zipper-BYhBuyXi.js";
16
16
  import { createZip as Lo } from "./file-zipper.es.js";
17
17
  var Xe = { exports: {} };
18
18
  (function(t) {
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T as p } from "./chunks/toolbar-BfM-mqT5.js";
3
- import "./chunks/editor-B7eTfGQw.js";
2
+ import { T as p } from "./chunks/toolbar-CqjuKtGw.js";
3
+ import "./chunks/editor-CVMeRmT7.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-BPWmPyPV.cjs");require("./chunks/vue-Ckf0DkDN.cjs");exports.BasicUpload=e.ho;exports.CommentsPluginKey=e.he;exports.DocxZipper=e.Nt;exports.Editor=e.ji;exports.Extensions=e.go;exports.SuperConverter=e.Nt$1;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.Kk;exports.getActiveFormatting=e.Ef;exports.getAllowedImageDimensions=e.Gn;exports.getMarksFromSelection=e.No;exports.getRichTextExtensions=e.Lk;exports.getStarterExtensions=e.Fk;exports.helpers=e.Sd;exports.trackChangesHelpers=e.Jk;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-C0bXjCb2.cjs");require("./chunks/vue-Ckf0DkDN.cjs");exports.BasicUpload=e.ho;exports.CommentsPluginKey=e.he;exports.DocxZipper=e.Nt;exports.Editor=e.ji;exports.Extensions=e.go;exports.SuperConverter=e.It;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.Kk;exports.getActiveFormatting=e.Ef;exports.getAllowedImageDimensions=e.Gn;exports.getMarksFromSelection=e.No;exports.getRichTextExtensions=e.Lk;exports.getStarterExtensions=e.Fk;exports.helpers=e.Sd;exports.trackChangesHelpers=e.Jk;
@@ -1,4 +1,4 @@
1
- import { h as t, a as r, N as o, j as n, g as i, b as p, f as g, v as l, p as c, _ as m, d as u, c as S, K as d, E as x, G as E, e as h, L as C, F as T, S as b, J as f } from "./chunks/super-editor.es-BMGaeJBV.es.js";
1
+ import { h as t, a as r, N as o, j as n, g as i, I as p, f as g, v as l, p as c, _ as m, d as u, c as S, K as d, E as x, G as E, b as h, L as C, F as T, S as b, J as f } from "./chunks/super-editor.es-Jdmyi8pH.es.js";
2
2
  import "./chunks/vue-BDbTsTMu.es.js";
3
3
  export {
4
4
  t as BasicUpload,