v-notion-editor 0.2.72 → 0.2.73

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.
@@ -20,6 +20,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
20
20
  extensions?: any;
21
21
  isCanvas?: boolean;
22
22
  outputFormat?: "html" | "json";
23
+ zoom?: number;
23
24
  }>, {
24
25
  showDragHandle: boolean;
25
26
  showBubbleMenu: boolean;
@@ -27,6 +28,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
27
28
  extensions: () => any[];
28
29
  isCanvas: boolean;
29
30
  outputFormat: string;
31
+ zoom: number;
30
32
  }>>, {
31
33
  editor: import('vue').ShallowRef<import('@tiptap/vue-3').Editor, import('@tiptap/vue-3').Editor>;
32
34
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -46,6 +48,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
46
48
  extensions?: any;
47
49
  isCanvas?: boolean;
48
50
  outputFormat?: "html" | "json";
51
+ zoom?: number;
49
52
  }>, {
50
53
  showDragHandle: boolean;
51
54
  showBubbleMenu: boolean;
@@ -53,6 +56,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
53
56
  extensions: () => any[];
54
57
  isCanvas: boolean;
55
58
  outputFormat: string;
59
+ zoom: number;
56
60
  }>>> & Readonly<{
57
61
  onOnFocus?: () => any;
58
62
  onOnBlur?: () => any;
@@ -65,6 +69,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
65
69
  slashCommand: boolean;
66
70
  extensions: any;
67
71
  outputFormat: "html" | "json";
72
+ zoom: number;
68
73
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
69
74
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
70
75
  export default _default;
@@ -1,7 +1,7 @@
1
1
  var Gk = Object.defineProperty;
2
2
  var Yk = (t, e, n) => e in t ? Gk(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var As = (t, e, n) => Yk(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { defineComponent as Te, computed as Se, createElementBlock as re, openBlock as U, ref as se, onMounted as qt, onBeforeUnmount as ao, h as Xr, Teleport as Fp, normalizeClass as Le, createBlock as we, createCommentVNode as le, renderSlot as nr, createTextVNode as Hp, toDisplayString as Fl, nextTick as cn, watch as Tn, withDirectives as Up, createElementVNode as V, withModifiers as xt, createVNode as me, withKeys as Tu, vModelText as Vp, onUnmounted as lo, normalizeProps as el, guardReactiveProps as tl, unref as Ie, resolveDynamicComponent as L2, withCtx as qe, normalizeStyle as Gt, Fragment as dn, renderList as Cr, mergeProps as Wd, createSlots as B2, provide as x1, markRaw as P2, reactive as ph, render as k1, shallowRef as Xk, getCurrentInstance as Jk, watchEffect as Zk, toRaw as Qk, customRef as e7 } from "vue";
4
+ import { defineComponent as Te, computed as Se, createElementBlock as re, openBlock as U, ref as se, onMounted as Wt, onBeforeUnmount as ao, h as Xr, Teleport as Fp, normalizeClass as Le, createBlock as we, createCommentVNode as le, renderSlot as nr, createTextVNode as Hp, toDisplayString as Fl, nextTick as cn, watch as Tn, withDirectives as Up, createElementVNode as V, withModifiers as xt, createVNode as me, withKeys as Tu, vModelText as Vp, onUnmounted as lo, normalizeProps as el, guardReactiveProps as tl, unref as Ie, resolveDynamicComponent as L2, withCtx as qe, normalizeStyle as Vt, Fragment as dn, renderList as Cr, mergeProps as Wd, createSlots as B2, provide as x1, markRaw as P2, reactive as ph, render as k1, shallowRef as Xk, getCurrentInstance as Jk, watchEffect as Zk, toRaw as Qk, customRef as e7 } from "vue";
5
5
  const Io = {
6
6
  "align-left": `<svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
7
7
  <line x1="21" x2="3" y1="6" y2="6" stroke="currentColor" stroke-width="2"/>
@@ -3754,7 +3754,7 @@ function P7(t, e, n, r, i) {
3754
3754
  throw new RangeError("Invalid content for node type " + n.name);
3755
3755
  t.step(new Et(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new Z(H.from(o), 0, 0), 1, !0));
3756
3756
  }
3757
- function Vt(t, e, n = 1, r) {
3757
+ function qt(t, e, n = 1, r) {
3758
3758
  let i = t.resolve(e), s = i.depth - n, o = r && r[r.length - 1] || i.parent;
3759
3759
  if (s < 0 || i.parent.type.spec.isolating || !i.parent.canReplace(i.index(), i.parent.childCount) || !o.type.validContent(i.parent.content.cutByIndex(i.index(), i.parent.childCount)))
3760
3760
  return !1;
@@ -5482,7 +5482,7 @@ const nm = (t, e) => {
5482
5482
  return !1;
5483
5483
  if (n.depth > 1 && n.after() != n.end(-1)) {
5484
5484
  let s = n.before();
5485
- if (Vt(t.doc, s))
5485
+ if (qt(t.doc, s))
5486
5486
  return e && e(t.tr.split(s).scrollIntoView()), !0;
5487
5487
  }
5488
5488
  let r = n.blockRange(), i = r && vs(r);
@@ -5492,7 +5492,7 @@ function J7(t) {
5492
5492
  return (e, n) => {
5493
5493
  let { $from: r, $to: i } = e.selection;
5494
5494
  if (e.selection instanceof ae && e.selection.node.isBlock)
5495
- return !r.parentOffset || !Vt(e.doc, r.pos) ? !1 : (n && n(e.tr.split(r.pos).scrollIntoView()), !0);
5495
+ return !r.parentOffset || !qt(e.doc, r.pos) ? !1 : (n && n(e.tr.split(r.pos).scrollIntoView()), !0);
5496
5496
  if (!r.depth)
5497
5497
  return !1;
5498
5498
  let s = [], o, a, l = !1, c = !1;
@@ -5507,8 +5507,8 @@ function J7(t) {
5507
5507
  }
5508
5508
  let u = e.tr;
5509
5509
  (e.selection instanceof Q || e.selection instanceof Jt) && u.deleteSelection();
5510
- let d = u.mapping.map(r.pos), f = Vt(u.doc, d, s.length, s);
5511
- if (f || (s[0] = a ? { type: a } : null, f = Vt(u.doc, d, s.length, s)), !f)
5510
+ let d = u.mapping.map(r.pos), f = qt(u.doc, d, s.length, s);
5511
+ if (f || (s[0] = a ? { type: a } : null, f = qt(u.doc, d, s.length, s)), !f)
5512
5512
  return !1;
5513
5513
  if (u.split(d, s.length, s), !l && c && r.node(o).type != a) {
5514
5514
  let h = u.mapping.map(r.before(o)), p = u.doc.resolve(h);
@@ -5654,7 +5654,7 @@ function t8(t, e, n, r, i) {
5654
5654
  n[u].type == i && (o = u + 1);
5655
5655
  let a = n.length - o, l = e.start + n.length - (r ? 2 : 0), c = e.parent;
5656
5656
  for (let u = e.startIndex, d = e.endIndex, f = !0; u < d; u++, f = !1)
5657
- !f && Vt(t.doc, l, a) && (t.split(l, a), l += 2 * a), l += c.child(u).nodeSize;
5657
+ !f && qt(t.doc, l, a) && (t.split(l, a), l += 2 * a), l += c.child(u).nodeSize;
5658
5658
  return t;
5659
5659
  }
5660
5660
  function cm(t) {
@@ -8322,7 +8322,7 @@ class Fe {
8322
8322
  you must make a copy if you want need to preserve that.
8323
8323
  */
8324
8324
  static create(e, n) {
8325
- return n.length ? Lu(n, e, 0, Us) : Kt;
8325
+ return n.length ? Lu(n, e, 0, Us) : Gt;
8326
8326
  }
8327
8327
  /**
8328
8328
  Find all decorations in this set which touch the given range
@@ -8352,7 +8352,7 @@ class Fe {
8352
8352
  document.
8353
8353
  */
8354
8354
  map(e, n, r) {
8355
- return this == Kt || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r || Us);
8355
+ return this == Gt || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r || Us);
8356
8356
  }
8357
8357
  /**
8358
8358
  @internal
@@ -8363,7 +8363,7 @@ class Fe {
8363
8363
  let l = this.local[a].map(e, r, i);
8364
8364
  l && l.type.valid(n, l) ? (o || (o = [])).push(l) : s.onRemove && s.onRemove(this.local[a].spec);
8365
8365
  }
8366
- return this.children.length ? wS(this.children, o || [], e, n, r, i, s) : o ? new Fe(o.sort(Vs), Co) : Kt;
8366
+ return this.children.length ? wS(this.children, o || [], e, n, r, i, s) : o ? new Fe(o.sort(Vs), Co) : Gt;
8367
8367
  }
8368
8368
  /**
8369
8369
  Add the given array of decorations to the ones in the set,
@@ -8372,7 +8372,7 @@ class Fe {
8372
8372
  structure.
8373
8373
  */
8374
8374
  add(e, n) {
8375
- return n.length ? this == Kt ? Fe.create(e, n) : this.addInner(e, n, 0) : this;
8375
+ return n.length ? this == Gt ? Fe.create(e, n) : this.addInner(e, n, 0) : this;
8376
8376
  }
8377
8377
  addInner(e, n, r) {
8378
8378
  let i, s = 0;
@@ -8394,7 +8394,7 @@ class Fe {
8394
8394
  the ones in the given array.
8395
8395
  */
8396
8396
  remove(e) {
8397
- return e.length == 0 || this == Kt ? this : this.removeInner(e, 0);
8397
+ return e.length == 0 || this == Gt ? this : this.removeInner(e, 0);
8398
8398
  }
8399
8399
  removeInner(e, n) {
8400
8400
  let r = this.children, i = this.local;
@@ -8406,7 +8406,7 @@ class Fe {
8406
8406
  continue;
8407
8407
  r == this.children && (r = this.children.slice());
8408
8408
  let c = r[s + 2].removeInner(o, a + 1);
8409
- c != Kt ? r[s + 2] = c : (r.splice(s, 3), s -= 3);
8409
+ c != Gt ? r[s + 2] = c : (r.splice(s, 3), s -= 3);
8410
8410
  }
8411
8411
  if (i.length) {
8412
8412
  for (let s = 0, o; s < e.length; s++)
@@ -8414,10 +8414,10 @@ class Fe {
8414
8414
  for (let a = 0; a < i.length; a++)
8415
8415
  i[a].eq(o, n) && (i == this.local && (i = this.local.slice()), i.splice(a--, 1));
8416
8416
  }
8417
- return r == this.children && i == this.local ? this : i.length || r.length ? new Fe(i, r) : Kt;
8417
+ return r == this.children && i == this.local ? this : i.length || r.length ? new Fe(i, r) : Gt;
8418
8418
  }
8419
8419
  forChild(e, n) {
8420
- if (this == Kt)
8420
+ if (this == Gt)
8421
8421
  return this;
8422
8422
  if (n.isLeaf)
8423
8423
  return Fe.empty;
@@ -8439,7 +8439,7 @@ class Fe {
8439
8439
  let a = new Fe(i.sort(Vs), Co);
8440
8440
  return r ? new Gi([a, r]) : a;
8441
8441
  }
8442
- return r || Kt;
8442
+ return r || Gt;
8443
8443
  }
8444
8444
  /**
8445
8445
  @internal
@@ -8467,7 +8467,7 @@ class Fe {
8467
8467
  @internal
8468
8468
  */
8469
8469
  localsInner(e) {
8470
- if (this == Kt)
8470
+ if (this == Gt)
8471
8471
  return Co;
8472
8472
  if (e.inlineContent || !this.local.some(as.is))
8473
8473
  return this.local;
@@ -8482,7 +8482,7 @@ class Fe {
8482
8482
  }
8483
8483
  Fe.empty = new Fe([], []);
8484
8484
  Fe.removeOverlap = ym;
8485
- const Kt = Fe.empty;
8485
+ const Gt = Fe.empty;
8486
8486
  class Gi {
8487
8487
  constructor(e) {
8488
8488
  this.members = e;
@@ -8497,7 +8497,7 @@ class Gi {
8497
8497
  let r = [];
8498
8498
  for (let i = 0; i < this.members.length; i++) {
8499
8499
  let s = this.members[i].forChild(e, n);
8500
- s != Kt && (s instanceof Gi ? r = r.concat(s.members) : r.push(s));
8500
+ s != Gt && (s instanceof Gi ? r = r.concat(s.members) : r.push(s));
8501
8501
  }
8502
8502
  return Gi.from(r);
8503
8503
  }
@@ -8529,7 +8529,7 @@ class Gi {
8529
8529
  static from(e) {
8530
8530
  switch (e.length) {
8531
8531
  case 0:
8532
- return Kt;
8532
+ return Gt;
8533
8533
  case 1:
8534
8534
  return e[0];
8535
8535
  default:
@@ -8572,7 +8572,7 @@ function wS(t, e, n, r, i, s, o) {
8572
8572
  let f = n.map(t[c + 1] + s, -1), h = f - i, { index: p, offset: m } = r.content.findIndex(d), g = r.maybeChild(p);
8573
8573
  if (g && m == d && m + g.nodeSize == h) {
8574
8574
  let b = a[c + 2].mapInner(n, g, u + 1, t[c] + s + 1, o);
8575
- b != Kt ? (a[c] = d, a[c + 1] = h, a[c + 2] = b) : (a[c + 1] = -2, l = !0);
8575
+ b != Gt ? (a[c] = d, a[c + 1] = h, a[c + 2] = b) : (a[c + 1] = -2, l = !0);
8576
8576
  } else
8577
8577
  l = !0;
8578
8578
  }
@@ -8634,13 +8634,13 @@ function Lu(t, e, n, r) {
8634
8634
  if (c) {
8635
8635
  s = !0;
8636
8636
  let u = Lu(c, a, n + l + 1, r);
8637
- u != Kt && i.push(l, l + a.nodeSize, u);
8637
+ u != Gt && i.push(l, l + a.nodeSize, u);
8638
8638
  }
8639
8639
  });
8640
8640
  let o = J4(s ? Q4(t) : t, -n).sort(Vs);
8641
8641
  for (let a = 0; a < o.length; a++)
8642
8642
  o[a].type.valid(e, o[a]) || (r.onRemove && r.onRemove(o[a].spec), o.splice(a--, 1));
8643
- return o.length || i.length ? new Fe(o, i) : Kt;
8643
+ return o.length || i.length ? new Fe(o, i) : Gt;
8644
8644
  }
8645
8645
  function Vs(t, e) {
8646
8646
  return t.from - e.from || t.to - e.to;
@@ -8672,7 +8672,7 @@ function cf(t) {
8672
8672
  let e = [];
8673
8673
  return t.someProp("decorations", (n) => {
8674
8674
  let r = n(t.state);
8675
- r && r != Kt && e.push(r);
8675
+ r && r != Gt && e.push(r);
8676
8676
  }), t.cursorWrapper && e.push(Fe.create(t.state.doc, [t.cursorWrapper.deco])), Gi.from(e);
8677
8677
  }
8678
8678
  const kS = {
@@ -10838,7 +10838,7 @@ function Ab(t, e) {
10838
10838
  var tC = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor: i }) => {
10839
10839
  const { selection: s, doc: o } = e, { $from: a, $to: l } = s, c = i.extensionManager.attributes, u = cu(c, a.node().type.name, a.node().attrs);
10840
10840
  if (s instanceof ae && s.node.isBlock)
10841
- return !a.parentOffset || !Vt(o, a.pos) ? !1 : (r && (t && Ab(n, i.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
10841
+ return !a.parentOffset || !qt(o, a.pos) ? !1 : (r && (t && Ab(n, i.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
10842
10842
  if (!a.parent.isBlock)
10843
10843
  return !1;
10844
10844
  const d = l.parentOffset === l.parent.content.size, f = a.depth === 0 ? void 0 : Cm(a.node(-1).contentMatchAt(a.indexAfter(-1)));
@@ -10847,8 +10847,8 @@ var tC = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
10847
10847
  type: f,
10848
10848
  attrs: u
10849
10849
  }
10850
- ] : void 0, p = Vt(e.doc, e.mapping.map(a.pos), 1, h);
10851
- if (!h && !p && Vt(e.doc, e.mapping.map(a.pos), 1, f ? [{ type: f }] : void 0) && (p = !0, h = f ? [
10850
+ ] : void 0, p = qt(e.doc, e.mapping.map(a.pos), 1, h);
10851
+ if (!h && !p && qt(e.doc, e.mapping.map(a.pos), 1, f ? [{ type: f }] : void 0) && (p = !0, h = f ? [
10852
10852
  {
10853
10853
  type: f,
10854
10854
  attrs: u
@@ -10909,7 +10909,7 @@ var tC = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
10909
10909
  { type: a, attrs: p },
10910
10910
  { type: h, attrs: m }
10911
10911
  ] : [{ type: a, attrs: p }];
10912
- if (!Vt(n.doc, l.pos, 2))
10912
+ if (!qt(n.doc, l.pos, 2))
10913
10913
  return !1;
10914
10914
  if (i) {
10915
10915
  const { selection: b, storedMarks: x } = r, { splittableMarks: S } = s.extensionManager, y = x || b.$to.parentOffset && b.$from.marks();
@@ -15256,7 +15256,7 @@ function zb(t, e) {
15256
15256
  var I9 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor: i }) => {
15257
15257
  const { selection: s, doc: o } = e, { $from: a, $to: l } = s, c = i.extensionManager.attributes, u = du(c, a.node().type.name, a.node().attrs);
15258
15258
  if (s instanceof ae && s.node.isBlock)
15259
- return !a.parentOffset || !Vt(o, a.pos) ? !1 : (r && (t && zb(n, i.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
15259
+ return !a.parentOffset || !qt(o, a.pos) ? !1 : (r && (t && zb(n, i.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
15260
15260
  if (!a.parent.isBlock)
15261
15261
  return !1;
15262
15262
  const d = l.parentOffset === l.parent.content.size, f = a.depth === 0 ? void 0 : gM(a.node(-1).contentMatchAt(a.indexAfter(-1)));
@@ -15265,8 +15265,8 @@ var I9 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
15265
15265
  type: f,
15266
15266
  attrs: u
15267
15267
  }
15268
- ] : void 0, p = Vt(e.doc, e.mapping.map(a.pos), 1, h);
15269
- if (!h && !p && Vt(e.doc, e.mapping.map(a.pos), 1, f ? [{ type: f }] : void 0) && (p = !0, h = f ? [
15268
+ ] : void 0, p = qt(e.doc, e.mapping.map(a.pos), 1, h);
15269
+ if (!h && !p && qt(e.doc, e.mapping.map(a.pos), 1, f ? [{ type: f }] : void 0) && (p = !0, h = f ? [
15270
15270
  {
15271
15271
  type: f,
15272
15272
  attrs: u
@@ -15327,7 +15327,7 @@ var I9 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
15327
15327
  { type: a, attrs: p },
15328
15328
  { type: h, attrs: m }
15329
15329
  ] : [{ type: a, attrs: p }];
15330
- if (!Vt(n.doc, l.pos, 2))
15330
+ if (!qt(n.doc, l.pos, 2))
15331
15331
  return !1;
15332
15332
  if (i) {
15333
15333
  const { selection: b, storedMarks: x } = r, { splittableMarks: S } = s.extensionManager, y = x || b.$to.parentOffset && b.$from.marks();
@@ -20855,7 +20855,7 @@ var JN = Te({
20855
20855
  },
20856
20856
  setup(t, { slots: e }) {
20857
20857
  const n = se(null);
20858
- return qt(() => {
20858
+ return Wt(() => {
20859
20859
  const { editor: r, options: i, pluginKey: s, resizeDelay: o, shouldShow: a, updateDelay: l } = t;
20860
20860
  n.value && (n.value.style.visibility = "hidden", n.value.style.position = "absolute", n.value.remove(), r.registerPlugin(
20861
20861
  G3({
@@ -21023,7 +21023,7 @@ Te({
21023
21023
  },
21024
21024
  setup(t, { slots: e }) {
21025
21025
  const n = se(null);
21026
- return qt(() => {
21026
+ return Wt(() => {
21027
21027
  const { pluginKey: r, editor: i, options: s, shouldShow: o } = t;
21028
21028
  n.value && (n.value.style.visibility = "hidden", n.value.style.position = "absolute", n.value.remove(), i.registerPlugin(
21029
21029
  Y3({
@@ -22062,7 +22062,7 @@ function wv(t, e) {
22062
22062
  var w_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor: i }) => {
22063
22063
  const { selection: s, doc: o } = e, { $from: a, $to: l } = s, c = i.extensionManager.attributes, u = mu(c, a.node().type.name, a.node().attrs);
22064
22064
  if (s instanceof ae && s.node.isBlock)
22065
- return !a.parentOffset || !Vt(o, a.pos) ? !1 : (r && (t && wv(n, i.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
22065
+ return !a.parentOffset || !qt(o, a.pos) ? !1 : (r && (t && wv(n, i.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
22066
22066
  if (!a.parent.isBlock)
22067
22067
  return !1;
22068
22068
  const d = l.parentOffset === l.parent.content.size, f = a.depth === 0 ? void 0 : rO(a.node(-1).contentMatchAt(a.indexAfter(-1)));
@@ -22071,8 +22071,8 @@ var w_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
22071
22071
  type: f,
22072
22072
  attrs: u
22073
22073
  }
22074
- ] : void 0, p = Vt(e.doc, e.mapping.map(a.pos), 1, h);
22075
- if (!h && !p && Vt(e.doc, e.mapping.map(a.pos), 1, f ? [{ type: f }] : void 0) && (p = !0, h = f ? [
22074
+ ] : void 0, p = qt(e.doc, e.mapping.map(a.pos), 1, h);
22075
+ if (!h && !p && qt(e.doc, e.mapping.map(a.pos), 1, f ? [{ type: f }] : void 0) && (p = !0, h = f ? [
22076
22076
  {
22077
22077
  type: f,
22078
22078
  attrs: u
@@ -22133,7 +22133,7 @@ var w_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
22133
22133
  { type: a, attrs: p },
22134
22134
  { type: h, attrs: m }
22135
22135
  ] : [{ type: a, attrs: p }];
22136
- if (!Vt(n.doc, l.pos, 2))
22136
+ if (!qt(n.doc, l.pos, 2))
22137
22137
  return !1;
22138
22138
  if (i) {
22139
22139
  const { selection: b, storedMarks: x } = r, { splittableMarks: S } = s.extensionManager, y = x || b.$to.parentOffset && b.$from.marks();
@@ -23351,7 +23351,7 @@ const lR = ["type", "disabled", "title", "tabindex"], ye = /* @__PURE__ */ Te({
23351
23351
  const { from: u, to: d } = e.editor.state.selection;
23352
23352
  return e.editor.state.doc.textBetween(u, d, " ");
23353
23353
  });
23354
- qt(() => {
23354
+ Wt(() => {
23355
23355
  cn(() => {
23356
23356
  setTimeout(() => {
23357
23357
  var u;
@@ -23687,7 +23687,7 @@ const lR = ["type", "disabled", "title", "tabindex"], ye = /* @__PURE__ */ Te({
23687
23687
  const e = t, n = se(""), r = se(null), i = () => {
23688
23688
  e.editor && (n.value = e.editor.getAttributes("inlineMath").latex || "");
23689
23689
  };
23690
- qt(() => {
23690
+ Wt(() => {
23691
23691
  i(), cn(() => {
23692
23692
  setTimeout(() => {
23693
23693
  var a;
@@ -24511,11 +24511,11 @@ function mI(t) {
24511
24511
  var D, $ = y === "y" ? kn : Sn, j = y === "y" ? ur : dr, I = y === "y" ? "height" : "width", z = C[y], q = z + g[$], J = z - g[j], ne = h ? -A[I] / 2 : 0, ge = x === ia ? T[I] : A[I], be = x === ia ? -A[I] : -T[I], $e = e.elements.arrow, De = h && $e ? bg($e) : {
24512
24512
  width: 0,
24513
24513
  height: 0
24514
- }, Ae = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : E5(), at = Ae[$], lt = Ae[j], Ke = Ka(0, T[I], De[I]), $t = S ? T[I] / 2 - ne - Ke - at - L.mainAxis : ge - Ke - at - L.mainAxis, At = S ? -T[I] / 2 + ne + Ke + lt + L.mainAxis : be + Ke + lt + L.mainAxis, Wt = e.elements.arrow && ec(e.elements.arrow), Wn = Wt ? y === "y" ? Wt.clientTop || 0 : Wt.clientLeft || 0 : 0, zt = (D = F == null ? void 0 : F[y]) != null ? D : 0, rn = z + $t - zt - Wn, pt = z + At - zt, Oe = Ka(h ? xd(q, rn) : q, z, h ? js(J, pt) : J);
24514
+ }, Ae = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : E5(), at = Ae[$], lt = Ae[j], Ke = Ka(0, T[I], De[I]), $t = S ? T[I] / 2 - ne - Ke - at - L.mainAxis : ge - Ke - at - L.mainAxis, At = S ? -T[I] / 2 + ne + Ke + lt + L.mainAxis : be + Ke + lt + L.mainAxis, jt = e.elements.arrow && ec(e.elements.arrow), Wn = jt ? y === "y" ? jt.clientTop || 0 : jt.clientLeft || 0 : 0, zt = (D = F == null ? void 0 : F[y]) != null ? D : 0, rn = z + $t - zt - Wn, pt = z + At - zt, Oe = Ka(h ? xd(q, rn) : q, z, h ? js(J, pt) : J);
24515
24515
  C[y] = Oe, P[y] = Oe - z;
24516
24516
  }
24517
24517
  if (a) {
24518
- var vt, de = y === "x" ? kn : Sn, jt = y === "x" ? ur : dr, ze = C[k], _e = k === "y" ? "height" : "width", On = ze + g[de], Ot = ze - g[jt], _n = [kn, Sn].indexOf(b) !== -1, gr = (vt = F == null ? void 0 : F[k]) != null ? vt : 0, te = _n ? On : ze - T[_e] - A[_e] - gr + L.altAxis, ue = _n ? ze + T[_e] + A[_e] - gr - L.altAxis : Ot, Ce = h && _n ? zR(te, ze, ue) : Ka(h ? te : On, ze, h ? ue : Ot);
24518
+ var vt, de = y === "x" ? kn : Sn, Kt = y === "x" ? ur : dr, ze = C[k], _e = k === "y" ? "height" : "width", On = ze + g[de], Ot = ze - g[Kt], _n = [kn, Sn].indexOf(b) !== -1, gr = (vt = F == null ? void 0 : F[k]) != null ? vt : 0, te = _n ? On : ze - T[_e] - A[_e] - gr + L.altAxis, ue = _n ? ze + T[_e] + A[_e] - gr - L.altAxis : Ot, Ce = h && _n ? zR(te, ze, ue) : Ka(h ? te : On, ze, h ? ue : Ot);
24519
24519
  C[k] = Ce, P[k] = Ce - ze;
24520
24520
  }
24521
24521
  e.modifiersData[r] = P;
@@ -24799,7 +24799,7 @@ function AI(t, e = [0, 8], n, r = {}) {
24799
24799
  }, S = () => {
24800
24800
  n === "hover" && p();
24801
24801
  }, y = (k) => !r.ignoreClickOutside || r.ignoreClickOutside.length === 0 ? !1 : r.ignoreClickOutside.some((C) => C.startsWith("#") ? k.id === C.substring(1) || k.closest(C) !== null : C.startsWith(".") ? k.classList.contains(C.substring(1)) || k.closest(C) !== null : k.matches(C) || k.closest(C) !== null);
24802
- return qt(async () => {
24802
+ return Wt(async () => {
24803
24803
  var k, C, T;
24804
24804
  await cn(), n === "click" && ((k = i.value) == null || k.addEventListener("click", m)), n === "hover" && ((C = i.value) == null || C.addEventListener("mouseenter", x), (T = i.value) == null || T.addEventListener("mouseleave", S)), xR(s, (A) => {
24805
24805
  if (l.value && n === "click") {
@@ -24876,7 +24876,7 @@ const NI = { class: "tooltip-wrapper" }, OI = /* @__PURE__ */ Te({
24876
24876
  { immediate: !0 }
24877
24877
  ), Tn(c, (h) => {
24878
24878
  h !== n.isOpen && r("update:isOpen", h);
24879
- }), qt(() => {
24879
+ }), Wt(() => {
24880
24880
  a();
24881
24881
  }), lo(() => {
24882
24882
  l();
@@ -24895,7 +24895,7 @@ const NI = { class: "tooltip-wrapper" }, OI = /* @__PURE__ */ Te({
24895
24895
  default: qe(() => [
24896
24896
  Ie(c) ? (U(), re("div", {
24897
24897
  key: 0,
24898
- style: Gt(h.styles),
24898
+ style: Vt(h.styles),
24899
24899
  ref_key: "containerRef",
24900
24900
  ref: s,
24901
24901
  class: Le(["tooltip-container tooltip-container--open", h.className]),
@@ -24964,7 +24964,7 @@ const NI = { class: "tooltip-wrapper" }, OI = /* @__PURE__ */ Te({
24964
24964
  }
24965
24965
  return n.selectedIndex ?? -1;
24966
24966
  };
24967
- qt(() => {
24967
+ Wt(() => {
24968
24968
  var p;
24969
24969
  (p = o == null ? void 0 : o.value) == null || p.focus(), window.addEventListener("keydown", d), s.value = f(), u();
24970
24970
  }), lo(() => {
@@ -25211,7 +25211,7 @@ const NI = { class: "tooltip-wrapper" }, OI = /* @__PURE__ */ Te({
25211
25211
  "group relative w-6 h-6 border rounded-md transition-all duration-150 focus:outline-none focus:ring-[0.5px] focus:ring-gray-300 focus:ring-offset-1",
25212
25212
  i.value === d ? "ring-[0.5px] ring-gray-400 ring-offset-1 " : ""
25213
25213
  ]),
25214
- style: Gt({ backgroundColor: h }),
25214
+ style: Vt({ backgroundColor: h }),
25215
25215
  onClick: (p) => o(d)
25216
25216
  }, [
25217
25217
  i.value === d ? (U(), re("div", HI, [...u[0] || (u[0] = [
@@ -25242,7 +25242,7 @@ const NI = { class: "tooltip-wrapper" }, OI = /* @__PURE__ */ Te({
25242
25242
  "group relative w-6.5 h-6.5 rounded-md transition-all duration-150 focus:outline-none focus:ring-[0.5px] border",
25243
25243
  s.value === d ? "ring-[0.5px] ring-gray-400 ring-offset-1 " : ""
25244
25244
  ]),
25245
- style: Gt({
25245
+ style: Vt({
25246
25246
  backgroundColor: d === "transparent" ? "#ffffff" : h,
25247
25247
  backgroundImage: d === "transparent" ? "repeating-conic-gradient(#f9fafb 0% 25%, transparent 0% 50%) 50% / 8px 8px" : "none"
25248
25248
  }),
@@ -33084,7 +33084,7 @@ var FP = Te({
33084
33084
  },
33085
33085
  setup(t, { slots: e }) {
33086
33086
  const n = se(null);
33087
- return qt(() => {
33087
+ return Wt(() => {
33088
33088
  const { editor: r, pluginKey: i, onNodeChange: s, computePositionConfig: o } = t;
33089
33089
  r.registerPlugin(
33090
33090
  Bx({
@@ -33382,7 +33382,7 @@ var WP = class extends AC {
33382
33382
  }
33383
33383
  }), GP = (t = {}) => {
33384
33384
  const e = Xk();
33385
- return qt(() => {
33385
+ return Wt(() => {
33386
33386
  e.value = new WP(t);
33387
33387
  }), ao(() => {
33388
33388
  var n, r, i;
@@ -34373,11 +34373,11 @@ function j$(t) {
34373
34373
  var D, $ = y === "y" ? Cn : Mn, j = y === "y" ? fr : hr, I = y === "y" ? "height" : "width", z = C[y], q = z + g[$], J = z - g[j], ne = h ? -A[I] / 2 : 0, ge = x === fa ? T[I] : A[I], be = x === fa ? -A[I] : -T[I], $e = e.elements.arrow, De = h && $e ? Vg($e) : {
34374
34374
  width: 0,
34375
34375
  height: 0
34376
- }, Ae = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Vx(), at = Ae[$], lt = Ae[j], Ke = Xa(0, T[I], De[I]), $t = S ? T[I] / 2 - ne - Ke - at - L.mainAxis : ge - Ke - at - L.mainAxis, At = S ? -T[I] / 2 + ne + Ke + lt + L.mainAxis : be + Ke + lt + L.mainAxis, Wt = e.elements.arrow && ac(e.elements.arrow), Wn = Wt ? y === "y" ? Wt.clientTop || 0 : Wt.clientLeft || 0 : 0, zt = (D = F == null ? void 0 : F[y]) != null ? D : 0, rn = z + $t - zt - Wn, pt = z + At - zt, Oe = Xa(h ? Id(q, rn) : q, z, h ? Gs(J, pt) : J);
34376
+ }, Ae = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Vx(), at = Ae[$], lt = Ae[j], Ke = Xa(0, T[I], De[I]), $t = S ? T[I] / 2 - ne - Ke - at - L.mainAxis : ge - Ke - at - L.mainAxis, At = S ? -T[I] / 2 + ne + Ke + lt + L.mainAxis : be + Ke + lt + L.mainAxis, jt = e.elements.arrow && ac(e.elements.arrow), Wn = jt ? y === "y" ? jt.clientTop || 0 : jt.clientLeft || 0 : 0, zt = (D = F == null ? void 0 : F[y]) != null ? D : 0, rn = z + $t - zt - Wn, pt = z + At - zt, Oe = Xa(h ? Id(q, rn) : q, z, h ? Gs(J, pt) : J);
34377
34377
  C[y] = Oe, P[y] = Oe - z;
34378
34378
  }
34379
34379
  if (a) {
34380
- var vt, de = y === "x" ? Cn : Mn, jt = y === "x" ? fr : hr, ze = C[k], _e = k === "y" ? "height" : "width", On = ze + g[de], Ot = ze - g[jt], _n = [Cn, Mn].indexOf(b) !== -1, gr = (vt = F == null ? void 0 : F[k]) != null ? vt : 0, te = _n ? On : ze - T[_e] - A[_e] - gr + L.altAxis, ue = _n ? ze + T[_e] + A[_e] - gr - L.altAxis : Ot, Ce = h && _n ? g$(te, ze, ue) : Xa(h ? te : On, ze, h ? ue : Ot);
34380
+ var vt, de = y === "x" ? Cn : Mn, Kt = y === "x" ? fr : hr, ze = C[k], _e = k === "y" ? "height" : "width", On = ze + g[de], Ot = ze - g[Kt], _n = [Cn, Mn].indexOf(b) !== -1, gr = (vt = F == null ? void 0 : F[k]) != null ? vt : 0, te = _n ? On : ze - T[_e] - A[_e] - gr + L.altAxis, ue = _n ? ze + T[_e] + A[_e] - gr - L.altAxis : Ot, Ce = h && _n ? g$(te, ze, ue) : Xa(h ? te : On, ze, h ? ue : Ot);
34381
34381
  C[k] = Ce, P[k] = Ce - ze;
34382
34382
  }
34383
34383
  e.modifiersData[r] = P;
@@ -34984,7 +34984,7 @@ function Rz(t, e) {
34984
34984
  var A = x.map(function(W) {
34985
34985
  return W.fn(y);
34986
34986
  }), _ = t.hasAttribute("aria-expanded");
34987
- return Wt(), ne(), z(), q("onCreate", [y]), n.showOnCreate && On(), C.addEventListener("mouseenter", function() {
34987
+ return jt(), ne(), z(), q("onCreate", [y]), n.showOnCreate && On(), C.addEventListener("mouseenter", function() {
34988
34988
  y.props.interactive && y.state.isVisible && y.clearDelayTimeouts();
34989
34989
  }), C.addEventListener("mouseleave", function() {
34990
34990
  y.props.interactive && y.props.trigger.indexOf("mouseenter") >= 0 && $().addEventListener("mousemove", p);
@@ -35112,7 +35112,7 @@ function Rz(t, e) {
35112
35112
  });
35113
35113
  });
35114
35114
  }
35115
- function Wt() {
35115
+ function jt() {
35116
35116
  F() && (At("touchstart", zt, {
35117
35117
  passive: !0
35118
35118
  }), At("touchend", pt, {
@@ -35178,7 +35178,7 @@ function Rz(t, e) {
35178
35178
  return Fr.isTouch ? F() !== W.type.indexOf("touch") >= 0 : !1;
35179
35179
  }
35180
35180
  function de() {
35181
- jt();
35181
+ Kt();
35182
35182
  var W = y.props, fe = W.popperOptions, Me = W.placement, Ge = W.offset, He = W.getReferenceClientRect, sn = W.moveTransition, jn = P() ? Mp(C).arrow : null, mo = He ? {
35183
35183
  getBoundingClientRect: He,
35184
35184
  contextElement: He.contextElement || D()
@@ -35234,7 +35234,7 @@ function Rz(t, e) {
35234
35234
  modifiers: Ts
35235
35235
  }));
35236
35236
  }
35237
- function jt() {
35237
+ function Kt() {
35238
35238
  y.popperInstance && (y.popperInstance.destroy(), y.popperInstance = null);
35239
35239
  }
35240
35240
  function ze() {
@@ -35286,7 +35286,7 @@ function Rz(t, e) {
35286
35286
  var fe = y.props, Me = _y(t, Object.assign({}, fe, My(W), {
35287
35287
  ignoreAttributes: !0
35288
35288
  }));
35289
- y.props = Me, Wt(), fe.interactiveDebounce !== Me.interactiveDebounce && (ge(), p = Ey(rn, Me.interactiveDebounce)), fe.triggerTarget && !Me.triggerTarget ? Ao(fe.triggerTarget).forEach(function(Ge) {
35289
+ y.props = Me, jt(), fe.interactiveDebounce !== Me.interactiveDebounce && (ge(), p = Ey(rn, Me.interactiveDebounce)), fe.triggerTarget && !Me.triggerTarget ? Ao(fe.triggerTarget).forEach(function(Ge) {
35290
35290
  Ge.removeAttribute("aria-expanded");
35291
35291
  }) : Me.triggerTarget && t.removeAttribute("aria-expanded"), ne(), z(), T && T(fe, Me), y.popperInstance && (de(), _e().forEach(function(Ge) {
35292
35292
  requestAnimationFrame(Ge._tippy.popperInstance.forceUpdate);
@@ -35335,7 +35335,7 @@ function Rz(t, e) {
35335
35335
  process.env.NODE_ENV !== "production" && bi(y.state.isDestroyed, xo("hideWithInteractivity")), $().addEventListener("mousemove", p), Cy(qc, p), p(W);
35336
35336
  }
35337
35337
  function K0() {
35338
- process.env.NODE_ENV !== "production" && bi(y.state.isDestroyed, xo("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (jt(), _e().forEach(function(W) {
35338
+ process.env.NODE_ENV !== "production" && bi(y.state.isDestroyed, xo("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (Kt(), _e().forEach(function(W) {
35339
35339
  W._tippy.unmount();
35340
35340
  }), C.parentNode && C.parentNode.removeChild(C), jf = jf.filter(function(W) {
35341
35341
  return W !== y;
@@ -35443,7 +35443,7 @@ const Iz = /* @__PURE__ */ Te({
35443
35443
  }, e.click();
35444
35444
  }), s6 = async (t) => new Promise(async (e, n) => {
35445
35445
  try {
35446
- (await import("./papaparse.min-r6fGZc0a.js").then((i) => i.p)).default.parse(t, {
35446
+ (await import("./papaparse.min-C2ao6Vue.js").then((i) => i.p)).default.parse(t, {
35447
35447
  complete: (i) => {
35448
35448
  try {
35449
35449
  const s = i.data;
@@ -36146,7 +36146,7 @@ const qz = 50, Wz = /* @__PURE__ */ Te({
36146
36146
  height: "auto"
36147
36147
  });
36148
36148
  };
36149
- return qt(() => {
36149
+ return Wt(() => {
36150
36150
  if (n.value && !e.node.attrs.width) {
36151
36151
  const x = () => {
36152
36152
  var A, _, L;
@@ -36169,14 +36169,14 @@ const qz = 50, Wz = /* @__PURE__ */ Te({
36169
36169
  class: "resizable-image-wrapper",
36170
36170
  ref_key: "containerRef",
36171
36171
  ref: r,
36172
- style: Gt(f.value)
36172
+ style: Vt(f.value)
36173
36173
  }, {
36174
36174
  default: qe(() => [
36175
36175
  V("div", {
36176
36176
  ref_key: "imageWrapperRef",
36177
36177
  ref: i,
36178
36178
  class: Le(["image-content-wrapper", { "is-resizing": s.value }]),
36179
- style: Gt(p.value)
36179
+ style: Vt(p.value)
36180
36180
  }, [
36181
36181
  V("img", Wd({
36182
36182
  ref_key: "imageRef",
@@ -36794,7 +36794,7 @@ const tF = { class: "p-1 px-2 space-y-3" }, nF = { class: "space-y-1" }, rF = {
36794
36794
  "group relative w-6 h-6 border rounded-md transition-all duration-150 focus:outline-none focus:ring-[0.5px] focus:ring-gray-300 focus:ring-offset-1",
36795
36795
  o.currentBgClass === l ? "ring-[0.5px] ring-gray-400 ring-offset-1 " : ""
36796
36796
  ]),
36797
- style: Gt({
36797
+ style: Vt({
36798
36798
  backgroundColor: u === "transparent" ? "#ffffff" : u,
36799
36799
  backgroundImage: u === "transparent" ? "repeating-conic-gradient(#f9fafb 0% 25%, transparent 0% 50%) 50% / 8px 8px" : "none"
36800
36800
  }),
@@ -36828,7 +36828,7 @@ const tF = { class: "p-1 px-2 space-y-3" }, nF = { class: "space-y-1" }, rF = {
36828
36828
  "group relative w-6 h-6 rounded-md transition-all duration-150 focus:outline-none focus:ring-[0.5px] focus:ring-gray-300 focus:ring-offset-1 border-2",
36829
36829
  o.currentBorderClass === l ? "ring-[0.5px] ring-gray-400 ring-offset-1 " : ""
36830
36830
  ]),
36831
- style: Gt({
36831
+ style: Vt({
36832
36832
  backgroundColor: "#ffffff",
36833
36833
  borderColor: u === "transparent" ? "#e5e7eb" : u,
36834
36834
  borderStyle: u === "transparent" ? "dashed" : "solid"
@@ -37005,7 +37005,7 @@ const tF = { class: "p-1 px-2 space-y-3" }, nF = { class: "space-y-1" }, rF = {
37005
37005
  }
37006
37006
  (x = e == null ? void 0 : e.updateStats) == null || x.call(e), Kf(e == null ? void 0 : e.table);
37007
37007
  };
37008
- return qt(() => {
37008
+ return Wt(() => {
37009
37009
  d();
37010
37010
  }), Tn(
37011
37011
  () => e.position,
@@ -37052,7 +37052,7 @@ const tF = { class: "p-1 px-2 space-y-3" }, nF = { class: "space-y-1" }, rF = {
37052
37052
  function o(l) {
37053
37053
  return Array.prototype.indexOf.call(l.parentNode.childNodes, l);
37054
37054
  }
37055
- qt(async () => {
37055
+ Wt(async () => {
37056
37056
  var l;
37057
37057
  await cn(), r.value = (l = n.value) == null ? void 0 : l.closest("table"), a();
37058
37058
  });
@@ -37525,7 +37525,7 @@ const xF = /* @__PURE__ */ Te({
37525
37525
  const c = () => {
37526
37526
  n.value && n.value.closest("tr") && (s.value = l(n.value.closest("tr")), o.value = l(n.value) === 0);
37527
37527
  };
37528
- return qt(async () => {
37528
+ return Wt(async () => {
37529
37529
  var u, d;
37530
37530
  await cn(), i.value = (u = n.value) == null ? void 0 : u.closest("table"), r.value = (d = n.value) == null ? void 0 : d.closest("tr"), c(), i.value && a(i.value, c);
37531
37531
  }), (u, d) => (U(), re("td", {
@@ -37613,7 +37613,7 @@ const xF = /* @__PURE__ */ Te({
37613
37613
  }, f = (h) => {
37614
37614
  l(h.clientX);
37615
37615
  };
37616
- return qt(() => {
37616
+ return Wt(() => {
37617
37617
  document.addEventListener("mousemove", u), document.addEventListener("mouseup", d);
37618
37618
  }), lo(() => {
37619
37619
  document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", d);
@@ -37635,11 +37635,11 @@ const xF = /* @__PURE__ */ Te({
37635
37635
  p[0] || (p[0] = V("div", { class: "absolute w-full h-1.5 bg-gray-200 rounded-lg top-1/2 -translate-y-1/2" }, null, -1)),
37636
37636
  V("div", {
37637
37637
  class: "absolute h-1.5 bg-[#0075FF] rounded-lg top-1/2 -translate-y-1/2",
37638
- style: Gt({ width: `${a.value}%` })
37638
+ style: Vt({ width: `${a.value}%` })
37639
37639
  }, null, 4),
37640
37640
  V("div", {
37641
37641
  class: "absolute w-3 h-3 bg-[#0075FF] rounded-full shadow-sm",
37642
- style: Gt({
37642
+ style: Vt({
37643
37643
  left: `${a.value}%`,
37644
37644
  transform: `translateX(-${a.value}%)`
37645
37645
  })
@@ -37749,7 +37749,7 @@ const xF = /* @__PURE__ */ Te({
37749
37749
  return (C, T) => (U(), we(Ie(sc), {
37750
37750
  as: "div",
37751
37751
  class: Le(["masonry-grid-wrapper", [o.value, l.value]]),
37752
- style: Gt({
37752
+ style: Vt({
37753
37753
  "--masonry-gap": `${c.value}px`,
37754
37754
  "--masonry-border-radius": `${u.value}px`,
37755
37755
  "--masonry-padding-x": `${d.value}px`,
@@ -38226,14 +38226,14 @@ const jF = { class: "masonry-item-controls" }, KF = {
38226
38226
  }, f = WF(d, 100), h = ({ transaction: p }) => {
38227
38227
  p.docChanged && f();
38228
38228
  };
38229
- return qt(() => {
38229
+ return Wt(() => {
38230
38230
  d(), e.editor.on("update", h);
38231
38231
  }), lo(() => {
38232
38232
  e.editor.off("update", h);
38233
38233
  }), (p, m) => (U(), we(Ie(sc), {
38234
38234
  as: "div",
38235
38235
  class: Le(["masonry-grid-item-wrapper", i.value]),
38236
- style: Gt({
38236
+ style: Vt({
38237
38237
  "--mobile-order": u.value,
38238
38238
  ...e.node.attrs.padding !== null && e.node.attrs.padding !== void 0 ? {
38239
38239
  "--masonry-padding-x": `${e.node.attrs.padding}px`,
@@ -38669,7 +38669,7 @@ const jF = { class: "masonry-item-controls" }, KF = {
38669
38669
  class: "iframe-wrapper",
38670
38670
  ref_key: "containerRef",
38671
38671
  ref: n,
38672
- style: Gt(h.value)
38672
+ style: Vt(h.value)
38673
38673
  }, {
38674
38674
  default: qe(() => [
38675
38675
  s.value ? le("", !0) : (U(), re("div", sH, [
@@ -38709,7 +38709,7 @@ const jF = { class: "masonry-item-controls" }, KF = {
38709
38709
  ref_key: "contentWrapperRef",
38710
38710
  ref: r,
38711
38711
  class: Le(["iframe-content-wrapper", { "is-resizing": o.value }]),
38712
- style: Gt(p.value)
38712
+ style: Vt(p.value)
38713
38713
  }, [
38714
38714
  s.value ? (U(), re("div", oH, [
38715
38715
  $[4] || ($[4] = V("div", { class: "flex items-center gap-2 opacity-90" }, [
@@ -38738,13 +38738,13 @@ const jF = { class: "masonry-item-controls" }, KF = {
38738
38738
  ])) : (U(), re("div", {
38739
38739
  key: 1,
38740
38740
  class: "iframe-container",
38741
- style: Gt(m.value)
38741
+ style: Vt(m.value)
38742
38742
  }, [
38743
38743
  V("iframe", {
38744
38744
  class: Le({ "pointer-events-none": o.value }),
38745
38745
  src: D.node.attrs.src,
38746
38746
  allowfullscreen: D.node.attrs.allowfullscreen,
38747
- style: Gt({ height: m.value.height || "100%" }),
38747
+ style: Vt({ height: m.value.height || "100%" }),
38748
38748
  frameborder: "0",
38749
38749
  loading: "lazy"
38750
38750
  }, null, 14, lH)
@@ -46052,10 +46052,10 @@ var ai = function(e, n) {
46052
46052
  unit: "ex"
46053
46053
  }, n) : 12 * d, m = 3 * d, g = e.arraystretch * p, b = 0.7 * g, x = 0.3 * g, S = 0;
46054
46054
  function y(de) {
46055
- for (var jt = 0; jt < de.length; ++jt)
46056
- jt > 0 && (S += 0.25), c.push({
46055
+ for (var Kt = 0; Kt < de.length; ++Kt)
46056
+ Kt > 0 && (S += 0.25), c.push({
46057
46057
  pos: S,
46058
- isDashed: de[jt]
46058
+ isDashed: de[Kt]
46059
46059
  });
46060
46060
  }
46061
46061
  for (y(o[0]), r = 0; r < e.body.length; ++r) {
@@ -46103,11 +46103,11 @@ var ai = function(e, n) {
46103
46103
  for (r = 0; r < s; ++r) {
46104
46104
  var $t = l[r], At = $t[i];
46105
46105
  if (At) {
46106
- var Wt = $t.pos - P;
46106
+ var jt = $t.pos - P;
46107
46107
  At.depth = $t.depth, At.height = $t.height, Ke.push({
46108
46108
  type: "elem",
46109
46109
  elem: At,
46110
- shift: Wt
46110
+ shift: jt
46111
46111
  });
46112
46112
  }
46113
46113
  }
@@ -62057,7 +62057,7 @@ function _q(t) {
62057
62057
  e
62058
62058
  ],
62059
62059
  illegal: /\[|%/
62060
- }, Wt = {
62060
+ }, jt = {
62061
62061
  match: [
62062
62062
  /operator/,
62063
62063
  /\s+/,
@@ -62137,7 +62137,7 @@ function _q(t) {
62137
62137
  ]
62138
62138
  };
62139
62139
  for (const Oe of _.variants) {
62140
- const vt = Oe.contains.find((jt) => jt.label === "interpol");
62140
+ const vt = Oe.contains.find((Kt) => Kt.label === "interpol");
62141
62141
  vt.keywords = c;
62142
62142
  const de = [
62143
62143
  ...u,
@@ -62169,7 +62169,7 @@ function _q(t) {
62169
62169
  zt,
62170
62170
  rn,
62171
62171
  pt,
62172
- Wt,
62172
+ jt,
62173
62173
  Wn,
62174
62174
  {
62175
62175
  beginKeywords: "import",
@@ -63605,7 +63605,7 @@ const _k = {
63605
63605
  xml: Bq,
63606
63606
  yaml: Pq
63607
63607
  };
63608
- var Dj = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
63608
+ var Ij = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
63609
63609
  function $q(t) {
63610
63610
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
63611
63611
  }
@@ -64332,7 +64332,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ne = I, J = z), q ===
64332
64332
  ze.addText(_e);
64333
64333
  return;
64334
64334
  }
64335
- te = d(de.subLanguage, _e, !0, jt[de.subLanguage]), jt[de.subLanguage] = /** @type {CompiledMode} */
64335
+ te = d(de.subLanguage, _e, !0, Kt[de.subLanguage]), Kt[de.subLanguage] = /** @type {CompiledMode} */
64336
64336
  te._top;
64337
64337
  } else
64338
64338
  te = h(_e, de.subLanguage.length ? de.subLanguage : null);
@@ -64385,7 +64385,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ne = I, J = z), q ===
64385
64385
  return $t(ue);
64386
64386
  return Ce.skip ? _e += ue : (Ce.excludeBegin && (_e += ue), De(), !Ce.returnBegin && !Ce.excludeBegin && (_e = ue)), lt(Ce, te), Ce.returnBegin ? 0 : ue.length;
64387
64387
  }
64388
- function Wt(te) {
64388
+ function jt(te) {
64389
64389
  const ue = te[0], Ce = z.substring(te.index), je = Ke(de, te, Ce);
64390
64390
  if (!je)
64391
64391
  return _2;
@@ -64420,7 +64420,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ne = I, J = z), q ===
64420
64420
  const je = new Error('Illegal lexeme "' + Ce + '" for mode "' + (de.scope || "<unnamed>") + '"');
64421
64421
  throw je.mode = de, je;
64422
64422
  } else if (ue.type === "end") {
64423
- const je = Wt(ue);
64423
+ const je = jt(ue);
64424
64424
  if (je !== _2)
64425
64425
  return je;
64426
64426
  }
@@ -64436,7 +64436,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ne = I, J = z), q ===
64436
64436
  throw Ys(s.replace("{}", I)), new Error('Unknown language: "' + I + '"');
64437
64437
  const Oe = MW(pt);
64438
64438
  let vt = "", de = J || Oe;
64439
- const jt = {}, ze = new a.__emitter(a);
64439
+ const Kt = {}, ze = new a.__emitter(a);
64440
64440
  Wn();
64441
64441
  let _e = "", On = 0, Ot = 0, _n = 0, gr = !1;
64442
64442
  try {
@@ -65459,10 +65459,7 @@ const YW = Pe.create({
65459
65459
  }), XW = {
65460
65460
  key: 0,
65461
65461
  class: "absolute inset-0 z-[60] flex items-center justify-center bg-white/50 backdrop-blur-sm rounded-lg"
65462
- }, JW = { class: "flex items-center gap-2 px-4 py-2 bg-white shadow-lg border rounded-md" }, ZW = { class: "custom-drag-handle" }, QW = {
65463
- key: 0,
65464
- class: "sticky top-0 left-0 z-[50] light"
65465
- }, Lj = /* @__PURE__ */ Te({
65462
+ }, JW = { class: "flex items-center gap-2 px-4 py-2 bg-white shadow-lg border rounded-md" }, ZW = { class: "custom-drag-handle" }, Dj = /* @__PURE__ */ Te({
65466
65463
  __name: "NotionEditor",
65467
65464
  props: {
65468
65465
  modelValue: {},
@@ -65475,7 +65472,8 @@ const YW = Pe.create({
65475
65472
  slashCommand: { type: Boolean, default: !0 },
65476
65473
  extensions: { default: () => [] },
65477
65474
  isCanvas: { type: Boolean, default: !1 },
65478
- outputFormat: { default: "html" }
65475
+ outputFormat: { default: "html" },
65476
+ zoom: { default: 1 }
65479
65477
  },
65480
65478
  emits: ["update:modelValue", "onFocus", "onBlur", "onCreate"],
65481
65479
  setup(t, { expose: e, emit: n }) {
@@ -65718,7 +65716,7 @@ const YW = Pe.create({
65718
65716
  }, b = se(null);
65719
65717
  return C3(b.value, () => {
65720
65718
  er.value = !1;
65721
- }), qt(() => {
65719
+ }), Wt(() => {
65722
65720
  i.imageUploadOptions && c(i.imageUploadOptions);
65723
65721
  }), e({
65724
65722
  editor: p
@@ -65765,7 +65763,7 @@ const YW = Pe.create({
65765
65763
  editor: Ie(p),
65766
65764
  "data-tauri-drag-region": "",
65767
65765
  class: Le(["w-full", [x.className, x.isCanvas ? "h-auto" : "h-full mx-auto pt-3 pl-3 pr-6 overflow-auto"]]),
65768
- style: Gt(x.styles)
65766
+ style: Vt(x.styles)
65769
65767
  }, null, 8, ["editor", "class", "style"]),
65770
65768
  g ? (U(), we(Ie(JN), {
65771
65769
  key: 1,
@@ -65777,7 +65775,14 @@ const YW = Pe.create({
65777
65775
  default: qe(() => {
65778
65776
  var y, k, C, T, A, _, L, F, P;
65779
65777
  return [
65780
- !((y = Ie(p)) != null && y.isActive("horizontalRule")) && !((k = Ie(p)) != null && k.isActive("iframe")) && !((C = Ie(p)) != null && C.isActive("codeBlock")) && !((T = Ie(p)) != null && T.isActive("code")) ? (U(), re("div", QW, [
65778
+ !((y = Ie(p)) != null && y.isActive("horizontalRule")) && !((k = Ie(p)) != null && k.isActive("iframe")) && !((C = Ie(p)) != null && C.isActive("codeBlock")) && !((T = Ie(p)) != null && T.isActive("code")) ? (U(), re("div", {
65779
+ key: 0,
65780
+ class: "sticky top-0 left-0 z-[50] light",
65781
+ style: Vt({
65782
+ transform: x.isCanvas && x.zoom ? `scale(${1 / x.zoom})` : "none",
65783
+ transformOrigin: "top left"
65784
+ })
65785
+ }, [
65781
65786
  (A = Ie(p)) != null && A.isActive("resizableImage") ? (U(), we(mR, {
65782
65787
  key: 0,
65783
65788
  editor: Ie(p)
@@ -65800,7 +65805,7 @@ const YW = Pe.create({
65800
65805
  ]),
65801
65806
  _: 3
65802
65807
  }, 8, ["editor", "isCanvas"]))
65803
- ])) : le("", !0)
65808
+ ], 4)) : le("", !0)
65804
65809
  ];
65805
65810
  }),
65806
65811
  _: 3
@@ -65808,7 +65813,7 @@ const YW = Pe.create({
65808
65813
  ], 2)) : le("", !0)
65809
65814
  ], 34));
65810
65815
  }
65811
- }), ej = { class: "flex items-center gap-1" }, tj = /* @__PURE__ */ Te({
65816
+ }), QW = { class: "flex items-center gap-1" }, ej = /* @__PURE__ */ Te({
65812
65817
  __name: "TextFormatToolbar",
65813
65818
  props: {
65814
65819
  editor: {},
@@ -65842,7 +65847,7 @@ const YW = Pe.create({
65842
65847
  };
65843
65848
  return (a, l) => {
65844
65849
  var c, u, d, f, h;
65845
- return U(), re("div", ej, [
65850
+ return U(), re("div", QW, [
65846
65851
  o("headings") ? (U(), we(Dr, {
65847
65852
  key: 0,
65848
65853
  options: n,
@@ -65918,7 +65923,7 @@ const YW = Pe.create({
65918
65923
  ]);
65919
65924
  };
65920
65925
  }
65921
- }), nj = { class: "flex items-center gap-1" }, rj = /* @__PURE__ */ Te({
65926
+ }), tj = { class: "flex items-center gap-1" }, nj = /* @__PURE__ */ Te({
65922
65927
  __name: "ListToolbar",
65923
65928
  props: {
65924
65929
  editor: {},
@@ -65931,7 +65936,7 @@ const YW = Pe.create({
65931
65936
  };
65932
65937
  return (r, i) => {
65933
65938
  var s, o, a;
65934
- return U(), re("div", nj, [
65939
+ return U(), re("div", tj, [
65935
65940
  n("bulletList") ? (U(), we(ye, {
65936
65941
  key: 0,
65937
65942
  icon: "list",
@@ -65968,7 +65973,7 @@ const YW = Pe.create({
65968
65973
  ]);
65969
65974
  };
65970
65975
  }
65971
- }), ij = { class: "flex items-center gap-1" }, sj = /* @__PURE__ */ Te({
65976
+ }), rj = { class: "flex items-center gap-1" }, ij = /* @__PURE__ */ Te({
65972
65977
  __name: "BlockToolbar",
65973
65978
  props: {
65974
65979
  editor: {},
@@ -65981,7 +65986,7 @@ const YW = Pe.create({
65981
65986
  };
65982
65987
  return (r, i) => {
65983
65988
  var s, o, a;
65984
- return U(), re("div", ij, [
65989
+ return U(), re("div", rj, [
65985
65990
  n("blockquote") ? (U(), we(ye, {
65986
65991
  key: 0,
65987
65992
  icon: "quote",
@@ -66018,7 +66023,7 @@ const YW = Pe.create({
66018
66023
  ]);
66019
66024
  };
66020
66025
  }
66021
- }), oj = { class: "flex items-center gap-1" }, aj = /* @__PURE__ */ Te({
66026
+ }), sj = { class: "flex items-center gap-1" }, oj = /* @__PURE__ */ Te({
66022
66027
  __name: "TableToolbar",
66023
66028
  props: {
66024
66029
  editor: {},
@@ -66052,7 +66057,7 @@ const YW = Pe.create({
66052
66057
  var l;
66053
66058
  return ((l = e.visibleToolbars) == null ? void 0 : l.includes(a)) ?? !0;
66054
66059
  };
66055
- return (a, l) => (U(), re("div", oj, [
66060
+ return (a, l) => (U(), re("div", sj, [
66056
66061
  o("table") ? (U(), we(ye, {
66057
66062
  key: 0,
66058
66063
  icon: "table",
@@ -66077,7 +66082,7 @@ const YW = Pe.create({
66077
66082
  })) : le("", !0)
66078
66083
  ]));
66079
66084
  }
66080
- }), lj = { class: "flex items-center gap-1" }, cj = /* @__PURE__ */ Te({
66085
+ }), aj = { class: "flex items-center gap-1" }, lj = /* @__PURE__ */ Te({
66081
66086
  __name: "ImageToolbar",
66082
66087
  props: {
66083
66088
  editor: {}
@@ -66089,7 +66094,7 @@ const YW = Pe.create({
66089
66094
  }), s = () => {
66090
66095
  !e.editor || r.value || n(e.editor);
66091
66096
  };
66092
- return (o, a) => (U(), re("div", lj, [
66097
+ return (o, a) => (U(), re("div", aj, [
66093
66098
  me(ye, {
66094
66099
  icon: "image",
66095
66100
  size: "sm",
@@ -66114,7 +66119,7 @@ const YW = Pe.create({
66114
66119
  ]), 1032, ["variant", "disabled"])
66115
66120
  ]));
66116
66121
  }
66117
- }), uj = /* @__PURE__ */ ii(cj, [["__scopeId", "data-v-f07ead10"]]), dj = { class: "flex items-center gap-1" }, fj = /* @__PURE__ */ Te({
66122
+ }), cj = /* @__PURE__ */ ii(lj, [["__scopeId", "data-v-f07ead10"]]), uj = { class: "flex items-center gap-1" }, dj = /* @__PURE__ */ Te({
66118
66123
  __name: "InsertToolbar",
66119
66124
  props: {
66120
66125
  editor: {},
@@ -66131,8 +66136,8 @@ const YW = Pe.create({
66131
66136
  };
66132
66137
  return (s, o) => {
66133
66138
  var a;
66134
- return U(), re("div", dj, [
66135
- i("image") ? (U(), we(uj, {
66139
+ return U(), re("div", uj, [
66140
+ i("image") ? (U(), we(cj, {
66136
66141
  key: 0,
66137
66142
  editor: s.editor
66138
66143
  }, null, 8, ["editor"])) : le("", !0),
@@ -66166,7 +66171,7 @@ const YW = Pe.create({
66166
66171
  ]);
66167
66172
  };
66168
66173
  }
66169
- }), hj = { class: "flex items-center gap-1" }, pj = /* @__PURE__ */ Te({
66174
+ }), fj = { class: "flex items-center gap-1" }, hj = /* @__PURE__ */ Te({
66170
66175
  __name: "UndoRedoToolbar",
66171
66176
  props: {
66172
66177
  editor: {},
@@ -66179,7 +66184,7 @@ const YW = Pe.create({
66179
66184
  };
66180
66185
  return (r, i) => {
66181
66186
  var s, o;
66182
- return U(), re("div", hj, [
66187
+ return U(), re("div", fj, [
66183
66188
  n("undo") ? (U(), we(ye, {
66184
66189
  key: 0,
66185
66190
  icon: "undo",
@@ -66207,13 +66212,13 @@ const YW = Pe.create({
66207
66212
  ]);
66208
66213
  };
66209
66214
  }
66210
- }), mj = { class: "v-notion-editor" }, gj = {
66215
+ }), pj = { class: "v-notion-editor" }, mj = {
66211
66216
  class: "flex items-center gap-1 p-2 flex-wrap select-none",
66212
66217
  "data-tauri-drag-region": ""
66213
- }, bj = {
66218
+ }, gj = {
66214
66219
  key: 0,
66215
66220
  class: "w-px h-6 bg-secondary-dark mx-1"
66216
- }, Bj = /* @__PURE__ */ Te({
66221
+ }, Lj = /* @__PURE__ */ Te({
66217
66222
  __name: "NotionToolbar",
66218
66223
  props: {
66219
66224
  visibleToolbars: {}
@@ -66242,18 +66247,18 @@ const YW = Pe.create({
66242
66247
  ], r = Se(() => e.visibleToolbars || n), i = [
66243
66248
  {
66244
66249
  tools: ["headings", "bold", "italic", "underline", "strike", "code", "color"],
66245
- component: tj
66250
+ component: ej
66246
66251
  },
66247
66252
  { tools: ["align"], component: _5 },
66248
- { tools: ["bulletList", "orderedList", "taskList"], component: rj },
66249
- { tools: ["blockquote", "code"], component: sj },
66250
- { tools: ["table", "grid"], component: aj },
66253
+ { tools: ["bulletList", "orderedList", "taskList"], component: nj },
66254
+ { tools: ["blockquote", "code"], component: ij },
66255
+ { tools: ["table", "grid"], component: oj },
66251
66256
  // Added grid to this group
66252
- { tools: ["image", "link", "divider"], component: fj },
66253
- { tools: ["undo", "redo"], component: pj }
66257
+ { tools: ["image", "link", "divider"], component: dj },
66258
+ { tools: ["undo", "redo"], component: hj }
66254
66259
  ], s = Se(() => i.filter((o) => o.tools.some((a) => r.value.includes(a))));
66255
- return (o, a) => (U(), re("div", mj, [
66256
- V("div", gj, [
66260
+ return (o, a) => (U(), re("div", pj, [
66261
+ V("div", mj, [
66257
66262
  (U(!0), re(dn, null, Cr(s.value, (l, c) => (U(), re(dn, {
66258
66263
  key: l.component.name
66259
66264
  }, [
@@ -66261,13 +66266,13 @@ const YW = Pe.create({
66261
66266
  editor: Ie(Nr),
66262
66267
  visibleToolbars: r.value
66263
66268
  }, null, 8, ["editor", "visibleToolbars"])),
66264
- c < s.value.length - 1 ? (U(), re("div", bj)) : le("", !0)
66269
+ c < s.value.length - 1 ? (U(), re("div", gj)) : le("", !0)
66265
66270
  ], 64))), 128))
66266
66271
  ])
66267
66272
  ]));
66268
66273
  }
66269
66274
  });
66270
- function vj(t) {
66275
+ function bj(t) {
66271
66276
  return t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
66272
66277
  }
66273
66278
  function Mu(t) {
@@ -66276,14 +66281,14 @@ function Mu(t) {
66276
66281
  if (Array.isArray(t))
66277
66282
  return t.map(Mu).join("");
66278
66283
  if (t.type === "text")
66279
- return vj(t.value);
66284
+ return bj(t.value);
66280
66285
  if (t.type === "element") {
66281
66286
  const e = t.tagName, n = t.properties || {}, r = Object.entries(n).map(([a, l]) => a === "className" && Array.isArray(l) ? `class="${l.join(" ")}"` : `${a}="${l}"`).join(" "), i = `<${e}${r ? " " + r : ""}>`, s = `</${e}>`, o = Mu(t.children || []);
66282
66287
  return `${i}${o}${s}`;
66283
66288
  }
66284
66289
  return "";
66285
66290
  }
66286
- const yj = ["innerHTML"], Pj = /* @__PURE__ */ Te({
66291
+ const vj = ["innerHTML"], Bj = /* @__PURE__ */ Te({
66287
66292
  __name: "NotionReadMode",
66288
66293
  props: {
66289
66294
  content: {},
@@ -66364,7 +66369,7 @@ const yj = ["innerHTML"], Pj = /* @__PURE__ */ Te({
66364
66369
  a(), i(), s(), o();
66365
66370
  });
66366
66371
  };
66367
- return qt(() => {
66372
+ return Wt(() => {
66368
66373
  l();
66369
66374
  }), Tn(
66370
66375
  () => e.content,
@@ -66376,13 +66381,13 @@ const yj = ["innerHTML"], Pj = /* @__PURE__ */ Te({
66376
66381
  ref: n,
66377
66382
  class: Le(["v-notion-editor read-mode", c.className]),
66378
66383
  innerHTML: c.content
66379
- }, null, 10, yj));
66384
+ }, null, 10, vj));
66380
66385
  }
66381
66386
  });
66382
66387
  export {
66383
- Lj as _,
66384
- Bj as a,
66385
- Pj as b,
66386
- Dj as c,
66388
+ Dj as _,
66389
+ Lj as a,
66390
+ Bj as b,
66391
+ Ij as c,
66387
66392
  $q as g
66388
66393
  };
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as t, b as i, a as r } from "./index-XXpOv34Z.js";
1
+ import { _ as t, b as i, a as r } from "./index-DQq6Hesk.js";
2
2
  export {
3
3
  t as NotionEditor,
4
4
  i as NotionReadMode,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "v-notion-editor",
3
- "version": "0.2.72",
3
+ "version": "0.2.73",
4
4
  "description": "A Notion-style Vue 3 editor.",
5
5
  "type": "module",
6
6
  "author": "safdar-azeem",
@@ -1,4 +1,4 @@
1
- import { g as me, c as ye } from "./index-XXpOv34Z.js";
1
+ import { g as me, c as ye } from "./index-DQq6Hesk.js";
2
2
  var ce = { exports: {} };
3
3
  /* @license
4
4
  Papa Parse