@templatical/editor 0.6.4 → 0.6.5

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 (128) hide show
  1. package/dist/{AccessibilityPanel-CvQGLdu6.js → AccessibilityPanel-B2MT0M58.js} +34 -34
  2. package/dist/{AiChatSidebar-B3SJIKG_.js → AiChatSidebar-w5ek3Z76.js} +62 -62
  3. package/dist/{AiFeatureMenu-BLLKoOos.js → AiFeatureMenu-uXTxJh06.js} +20 -20
  4. package/dist/{cdn/chunks/BlockA11yBadge-DcEZftf6.js → BlockA11yBadge-C0S6kPC4.js} +10 -9
  5. package/dist/{CloudEditor-nzrRhHIi.js → CloudEditor-_GaYluN7.js} +441 -441
  6. package/dist/{CollaboratorBar-DuPYW5iF.js → CollaboratorBar-C4eXJkXW.js} +20 -20
  7. package/dist/CommentsSidebar-BQROg36f.js +441 -0
  8. package/dist/{cdn/chunks/CountdownBlock-5YdT1uUu.js → CountdownBlock-Bxqe7zwL.js} +21 -22
  9. package/dist/CountdownToolbar-CpFAnjSo.js +210 -0
  10. package/dist/{DesignReferenceSidebar-B8V_F2yF.js → DesignReferenceSidebar-CfqpcWX6.js} +52 -52
  11. package/dist/{LoadingTrack-B0CWFHXQ.js → LoadingTrack-CFkDkjBb.js} +1 -1
  12. package/dist/{ModuleBrowserModal-DrUFMTDx.js → ModuleBrowserModal-EDKHLJtb.js} +79 -79
  13. package/dist/{ModulePreviewCanvas-CHdOwV_4.js → ModulePreviewCanvas-MQxat34K.js} +29 -29
  14. package/dist/{NumberWithSuffix-DkXUez9t.js → NumberWithSuffix-Dw8dN1Pt.js} +88 -88
  15. package/dist/{ParagraphEditor-D75wl3BX.js → ParagraphEditor-C8IP9HOZ.js} +218 -218
  16. package/dist/{RichTextEditorContent-DYkIauIk.js → RichTextEditorContent-CK3Om7ES.js} +38 -38
  17. package/dist/{SaveModuleDialog-FZ9lxY7_.js → SaveModuleDialog-Bgu0FVr6.js} +34 -34
  18. package/dist/{SnapshotHistory-BR3eV120.js → SnapshotHistory-aSULEKUJ.js} +33 -33
  19. package/dist/{TemplateScoringPanel-4GTNHej5.js → TemplateScoringPanel-BIAeCAEP.js} +82 -82
  20. package/dist/{TestEmailModal--ue5w9fT.js → TestEmailModal-wcbmmWCs.js} +30 -30
  21. package/dist/{TitleEditor-fStSADI-.js → TitleEditor-21D8_OUQ.js} +67 -67
  22. package/dist/{TplModal-BwSfxIHf.js → TplModal-CINtyB6Y.js} +14 -14
  23. package/dist/{accessibility-e8JYu_zd.js → accessibility-BgUEA-Ai.js} +1 -1
  24. package/dist/{blockTypeIcons-BcTrDjmH.js → blockTypeIcons-DKetBdJx.js} +2 -2
  25. package/dist/bundle-stats.json +6 -6
  26. package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js → AccessibilityPanel-BMSGhaNU.js} +34 -34
  27. package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js.map → AccessibilityPanel-BMSGhaNU.js.map} +1 -1
  28. package/dist/cdn/chunks/{AiFeatureMenu-qEdB2fZJ.js → AiFeatureMenu-hNba-JqQ.js} +16 -16
  29. package/dist/cdn/chunks/{AiFeatureMenu-qEdB2fZJ.js.map → AiFeatureMenu-hNba-JqQ.js.map} +1 -1
  30. package/dist/{BlockA11yBadge-CXDLqkcJ.js → cdn/chunks/BlockA11yBadge-BIR88CvN.js} +11 -12
  31. package/dist/cdn/chunks/{BlockA11yBadge-DcEZftf6.js.map → BlockA11yBadge-BIR88CvN.js.map} +1 -1
  32. package/dist/cdn/chunks/{CloudEditor-dwzWDF_n.js → CloudEditor-D2G2nNpQ.js} +425 -425
  33. package/dist/cdn/chunks/{CloudEditor-dwzWDF_n.js.map → CloudEditor-D2G2nNpQ.js.map} +1 -1
  34. package/dist/cdn/chunks/{CollaboratorBar--nO7TX6b.js → CollaboratorBar-Btzom8dY.js} +20 -20
  35. package/dist/cdn/chunks/{CollaboratorBar--nO7TX6b.js.map → CollaboratorBar-Btzom8dY.js.map} +1 -1
  36. package/dist/cdn/chunks/CountdownBlock-BJSAJlJ1.js +93 -0
  37. package/dist/cdn/chunks/{CountdownBlock-5YdT1uUu.js.map → CountdownBlock-BJSAJlJ1.js.map} +1 -1
  38. package/dist/cdn/chunks/CountdownToolbar-DbknNrIi.js +212 -0
  39. package/dist/cdn/chunks/{CountdownToolbar-DXPXrbAA.js.map → CountdownToolbar-DbknNrIi.js.map} +1 -1
  40. package/dist/cdn/chunks/{ModuleBrowserModal-DxoPp81s.js → ModuleBrowserModal-BvAuW8O5.js} +43 -43
  41. package/dist/cdn/chunks/{ModuleBrowserModal-DxoPp81s.js.map → ModuleBrowserModal-BvAuW8O5.js.map} +1 -1
  42. package/dist/cdn/chunks/{ModulePreviewCanvas-CoLdb4ar.js → ModulePreviewCanvas-CYtt0boo.js} +23 -23
  43. package/dist/cdn/chunks/{ModulePreviewCanvas-CoLdb4ar.js.map → ModulePreviewCanvas-CYtt0boo.js.map} +1 -1
  44. package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js → NumberWithSuffix-CVfo9ztG.js} +108 -108
  45. package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js.map → NumberWithSuffix-CVfo9ztG.js.map} +1 -1
  46. package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js → ParagraphEditor-DCo58JP8.js} +187 -187
  47. package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js.map → ParagraphEditor-DCo58JP8.js.map} +1 -1
  48. package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js → RichTextEditorContent-BzCThv84.js} +33 -33
  49. package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js.map → RichTextEditorContent-BzCThv84.js.map} +1 -1
  50. package/dist/cdn/chunks/{SaveModuleDialog-B0TnO_o9.js → SaveModuleDialog-S2Lix1LD.js} +27 -27
  51. package/dist/cdn/chunks/{SaveModuleDialog-B0TnO_o9.js.map → SaveModuleDialog-S2Lix1LD.js.map} +1 -1
  52. package/dist/cdn/chunks/{TitleEditor-BHpfxvwy.js → TitleEditor-CYzAMuUW.js} +66 -66
  53. package/dist/cdn/chunks/{TitleEditor-BHpfxvwy.js.map → TitleEditor-CYzAMuUW.js.map} +1 -1
  54. package/dist/cdn/chunks/{blockTypeIcons-BzzY9_kA.js → blockTypeIcons-DOzUHoor.js} +3 -3
  55. package/dist/cdn/chunks/{blockTypeIcons-BzzY9_kA.js.map → blockTypeIcons-DOzUHoor.js.map} +1 -1
  56. package/dist/cdn/chunks/draggable-CNhyCGIO.js +4804 -0
  57. package/dist/cdn/chunks/draggable-CNhyCGIO.js.map +1 -0
  58. package/dist/cdn/chunks/{extensions-DIxF31tA.js → extensions-wafZZ0-_.js} +95 -95
  59. package/dist/cdn/chunks/{extensions-DIxF31tA.js.map → extensions-wafZZ0-_.js.map} +1 -1
  60. package/dist/cdn/chunks/{features-DEMb13KS.js → features-B4tNvoi4.js} +2260 -2267
  61. package/dist/cdn/chunks/features-B4tNvoi4.js.map +1 -0
  62. package/dist/cdn/chunks/{icons-CsLTcirh.js → icons-B5nBFtvb.js} +2 -2
  63. package/dist/cdn/chunks/{icons-CsLTcirh.js.map → icons-B5nBFtvb.js.map} +1 -1
  64. package/dist/cdn/chunks/{media-library-CVaNvhpM.js → media-library-BLaoBxHe.js} +1397 -1397
  65. package/dist/cdn/chunks/{media-library-CVaNvhpM.js.map → media-library-BLaoBxHe.js.map} +1 -1
  66. package/dist/cdn/chunks/{pusher-CDbNlZBE.js → pusher-bjpcqCZG.js} +2 -2
  67. package/dist/cdn/chunks/{pusher-CDbNlZBE.js.map → pusher-bjpcqCZG.js.map} +1 -1
  68. package/dist/cdn/chunks/{quality-BaBfc54_.js → quality-D920ZxXf.js} +3 -3
  69. package/dist/cdn/chunks/{quality-BaBfc54_.js.map → quality-D920ZxXf.js.map} +1 -1
  70. package/dist/cdn/chunks/{renderer-CUxvx7ro.js → renderer-Yk30CckU.js} +3 -3
  71. package/dist/cdn/chunks/{renderer-CUxvx7ro.js.map → renderer-Yk30CckU.js.map} +1 -1
  72. package/dist/{rolldown-runtime-BZGGJVDF.js → cdn/chunks/rolldown-runtime-C266TIVP.js} +5 -5
  73. package/dist/cdn/chunks/{src-CRaqN-p8.js → src-kLJg7Y0m.js} +171 -171
  74. package/dist/cdn/chunks/{src-CRaqN-p8.js.map → src-kLJg7Y0m.js.map} +1 -1
  75. package/dist/cdn/chunks/styles-DrVLif14.js +2944 -0
  76. package/dist/cdn/chunks/styles-DrVLif14.js.map +1 -0
  77. package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js → tiptap-IyIsncxY.js} +45 -46
  78. package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js.map → tiptap-IyIsncxY.js.map} +1 -1
  79. package/dist/cdn/editor.css +1 -1
  80. package/dist/cdn/editor.js +122 -122
  81. package/dist/cdn/editor.js.map +1 -1
  82. package/dist/{check-Da05j8yl.js → check-Bg5yrRmX.js} +1 -1
  83. package/dist/{chevron-down-R2uY34iD.js → chevron-down-tee-ghFi.js} +1 -1
  84. package/dist/{circle-alert-DZuGWPX-.js → circle-alert-C0L9pUQ4.js} +1 -1
  85. package/dist/{clock-CRp2sIub.js → clock-CDlEdqiP.js} +1 -1
  86. package/dist/{cloud-DEk_b4CR.js → cloud-a3VovHva.js} +145 -145
  87. package/dist/{createLucideIcon-C3pa2siy.js → createLucideIcon-Di4mqmGn.js} +9 -9
  88. package/dist/{dist-B1IR0bpH.js → dist-BzRLLpfq.js} +107 -107
  89. package/dist/{dist-BFawx6IS.js → dist-Pk4MhWMP.js} +35 -35
  90. package/dist/{extensions-CUcl9Ok4.js → extensions-BF39Siqk.js} +103 -103
  91. package/dist/{image-up-MBZKKg9p.js → image-up-1D_3XDdO.js} +1 -1
  92. package/dist/index.d.ts +6 -6
  93. package/dist/{info-CJEC7piy.js → info-DTGrc0Bx.js} +1 -1
  94. package/dist/{keys-ciNfSSGj.js → keys-Bqs_0du9.js} +1 -1
  95. package/dist/{loader-circle-DsY5Yg33.js → loader-circle-_9bP23op.js} +1 -1
  96. package/dist/{message-circle-yElBbR2C.js → message-circle-gzy2ZGJ3.js} +1 -1
  97. package/dist/{refresh-cw-CE_AGtn8.js → refresh-cw-BNAhAmtL.js} +1 -1
  98. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  99. package/dist/{scan-line-D0vcUekt.js → scan-line-DUEg6DoT.js} +1 -1
  100. package/dist/{send-DH4oDQqC.js → send-BatIZC9a.js} +1 -1
  101. package/dist/{shield-check-CfJgs2Hd.js → shield-check-C5Gv2cM1.js} +1 -1
  102. package/dist/{sparkles-CvRXGqFs.js → sparkles-D1IGi_cC.js} +1 -1
  103. package/dist/style.css +1 -1
  104. package/dist/styles-CwJQsnSp.js +3173 -0
  105. package/dist/templatical-editor.js +99 -99
  106. package/dist/{text-align-start-BT9VUDxK.js → text-align-start-DG3aAH7Y.js} +1 -1
  107. package/dist/{trash-2-DbP2Y6t2.js → trash-2-424iqbpN.js} +1 -1
  108. package/dist/{triangle-alert-aOXceTSe.js → triangle-alert-DWQySIE2.js} +1 -1
  109. package/dist/{useCloudI18n-BuIwR6OE.js → useCloudI18n-CL_AwWwi.js} +4 -4
  110. package/dist/useEditorCore-DLd-5qMg.js +3784 -0
  111. package/dist/{useI18n-lb2DHDiu.js → useI18n-CgmQftNf.js} +4 -4
  112. package/dist/{useMergeTag-CBwKnnNB.js → useMergeTag-vpwrZ9eQ.js} +3 -3
  113. package/dist/vue.runtime.esm-bundler-Bxqkjqhc.js +4300 -0
  114. package/dist/{x-u2oVmjN_.js → x-Dlaenqta.js} +1 -1
  115. package/package.json +8 -8
  116. package/dist/CommentsSidebar-B1pvJdqF.js +0 -441
  117. package/dist/CountdownBlock-BNSj1jvJ.js +0 -92
  118. package/dist/CountdownToolbar-ClJr2GzL.js +0 -210
  119. package/dist/cdn/chunks/CountdownToolbar-DXPXrbAA.js +0 -212
  120. package/dist/cdn/chunks/draggable-Bcb86AsV.js +0 -11572
  121. package/dist/cdn/chunks/draggable-Bcb86AsV.js.map +0 -1
  122. package/dist/cdn/chunks/features-DEMb13KS.js.map +0 -1
  123. package/dist/cdn/chunks/rolldown-runtime-BNuo_Jkg.js +0 -20
  124. package/dist/cdn/chunks/styles-BHJULjNR.js +0 -2947
  125. package/dist/cdn/chunks/styles-BHJULjNR.js.map +0 -1
  126. package/dist/styles-DEXEkBvg.js +0 -3176
  127. package/dist/useEditorCore-C6ost42Q.js +0 -9342
  128. package/dist/vue.runtime.esm-bundler-DpvJL-nX.js +0 -5775
@@ -1,12 +1,12 @@
1
- import { $ as e, A as t, B as n, C as r, E as i, G as a, O as o, T as s, Y as c, et as l, it as u, nt as d, p as f, q as p, z as m } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
1
+ import { C as e, E as t, G as n, L as r, O as i, Q as a, R as o, U as s, Z as c, d as l, q as u, rt as d, tt as f, w as p, x as m } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
2
2
  //#region ../../node_modules/.pnpm/@vueuse+shared@14.2.1_vue@3.5.33_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
3
3
  function h(e, t) {
4
- return a() ? (c(e, t), !0) : !1;
4
+ return s() ? (u(e, t), !0) : !1;
5
5
  }
6
- var g = /* @__PURE__ */ new WeakMap(), _ = (...e) => {
7
- let t = e[0], n = r()?.proxy ?? a();
8
- if (n == null && !s()) throw Error("injectLocal must be called in setup");
9
- return n && g.has(n) && t in g.get(n) ? g.get(n)[t] : i(...e);
6
+ var g = /* @__PURE__ */ new WeakMap(), _ = (...t) => {
7
+ let n = t[0], r = m()?.proxy ?? s();
8
+ if (r == null && !e()) throw Error("injectLocal must be called in setup");
9
+ return r && g.has(r) && n in g.get(r) ? g.get(r)[n] : p(...t);
10
10
  }, v = typeof window < "u" && typeof document < "u";
11
11
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
12
12
  var y = (e) => e != null, b = Object.prototype.toString, x = (e) => b.call(e) === "[object Object]", S = () => {}, C = /* @__PURE__ */ w();
@@ -32,7 +32,7 @@ function D(e, t = {}) {
32
32
  clearTimeout(e), i(), i = S;
33
33
  }, o;
34
34
  return (s) => {
35
- let c = d(e), l = d(t.maxWait);
35
+ let c = f(e), l = f(t.maxWait);
36
36
  return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
37
37
  i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
38
38
  n && a(n), r = void 0, e(o());
@@ -49,67 +49,67 @@ function k(e) {
49
49
  return Array.isArray(e) ? e : [e];
50
50
  }
51
51
  function A(e) {
52
- return e || r();
52
+ return e || m();
53
53
  }
54
54
  function j(e, t = 200, n = {}) {
55
55
  return T(D(t, n), e);
56
56
  }
57
57
  function M(e, t, n = {}) {
58
- let { eventFilter: r = E, ...i } = n;
59
- return m(e, T(r, t), i);
58
+ let { eventFilter: i = E, ...a } = n;
59
+ return r(e, T(i, t), a);
60
60
  }
61
61
  function N(e, n = !0, r) {
62
- A(r) ? t(e, r) : n ? e() : o(e);
62
+ A(r) ? i(e, r) : n ? e() : t(e);
63
63
  }
64
- function P(t, n = 1e3, r = {}) {
65
- let { immediate: i = !0, immediateCallback: a = !1 } = r, o = null, s = l(!1);
66
- function c() {
67
- o &&= (clearInterval(o), null);
64
+ function P(e, t = 1e3, i = {}) {
65
+ let { immediate: o = !0, immediateCallback: s = !1 } = i, l = null, u = a(!1);
66
+ function d() {
67
+ l &&= (clearInterval(l), null);
68
68
  }
69
- function u() {
70
- s.value = !1, c();
69
+ function p() {
70
+ u.value = !1, d();
71
71
  }
72
- function f() {
73
- let e = d(n);
74
- e <= 0 || (s.value = !0, a && t(), c(), s.value && (o = setInterval(t, e)));
72
+ function m() {
73
+ let n = f(t);
74
+ n <= 0 || (u.value = !0, s && e(), d(), u.value && (l = setInterval(e, n)));
75
75
  }
76
- return i && v && f(), (p(n) || typeof n == "function") && h(m(n, () => {
77
- s.value && v && f();
78
- })), h(u), {
79
- isActive: e(s),
80
- pause: u,
81
- resume: f
76
+ return o && v && m(), (n(t) || typeof t == "function") && h(r(t, () => {
77
+ u.value && v && m();
78
+ })), h(p), {
79
+ isActive: c(u),
80
+ pause: p,
81
+ resume: m
82
82
  };
83
83
  }
84
- function F(t, n, r = {}) {
85
- let { immediate: i = !0, immediateCallback: a = !1 } = r, o = l(!1), s;
86
- function c() {
84
+ function F(e, t, n = {}) {
85
+ let { immediate: r = !0, immediateCallback: i = !1 } = n, o = a(!1), s;
86
+ function l() {
87
87
  s &&= (clearTimeout(s), void 0);
88
88
  }
89
89
  function u() {
90
- o.value = !1, c();
90
+ o.value = !1, l();
91
91
  }
92
- function f(...e) {
93
- a && t(), c(), o.value = !0, s = setTimeout(() => {
94
- o.value = !1, s = void 0, t(...e);
95
- }, d(n));
92
+ function d(...n) {
93
+ i && e(), l(), o.value = !0, s = setTimeout(() => {
94
+ o.value = !1, s = void 0, e(...n);
95
+ }, f(t));
96
96
  }
97
- return i && (o.value = !0, v && f()), h(u), {
98
- isPending: e(o),
99
- start: f,
97
+ return r && (o.value = !0, v && d()), h(u), {
98
+ isPending: c(o),
99
+ start: d,
100
100
  stop: u
101
101
  };
102
102
  }
103
103
  function I(e = !1, t = {}) {
104
- let { truthyValue: n = !0, falsyValue: r = !1 } = t, i = p(e), a = l(e);
105
- function o(e) {
106
- if (arguments.length) return a.value = e, a.value;
104
+ let { truthyValue: r = !0, falsyValue: i = !1 } = t, o = n(e), s = a(e);
105
+ function c(e) {
106
+ if (arguments.length) return s.value = e, s.value;
107
107
  {
108
- let e = d(n);
109
- return a.value = a.value === e ? d(r) : e, a.value;
108
+ let e = f(r);
109
+ return s.value = s.value === e ? f(i) : e, s.value;
110
110
  }
111
111
  }
112
- return i ? o : [a, o];
112
+ return o ? c : [s, c];
113
113
  }
114
114
  function L(e, t, n = {}) {
115
115
  let { debounce: r = 0, maxWait: i = void 0, ...a } = n;
@@ -119,7 +119,7 @@ function L(e, t, n = {}) {
119
119
  });
120
120
  }
121
121
  function R(e, t, n) {
122
- return m(e, t, {
122
+ return r(e, t, {
123
123
  ...n,
124
124
  immediate: !0
125
125
  });
@@ -129,19 +129,19 @@ function R(e, t, n) {
129
129
  var z = v ? window : void 0;
130
130
  v && window.document, v && window.navigator, v && window.location;
131
131
  function B(e) {
132
- let t = d(e);
132
+ let t = f(e);
133
133
  return t?.$el ?? t;
134
134
  }
135
135
  function V(...e) {
136
- let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = f(() => {
137
- let t = k(d(e[0])).filter((e) => e != null);
136
+ let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = l(() => {
137
+ let t = k(f(e[0])).filter((e) => e != null);
138
138
  return t.every((e) => typeof e != "string") ? t : void 0;
139
139
  });
140
140
  return R(() => [
141
141
  n.value?.map((e) => B(e)) ?? [z].filter((e) => e != null),
142
- k(d(n.value ? e[1] : e[0])),
143
- k(u(n.value ? e[2] : e[1])),
144
- d(n.value ? e[3] : e[2])
142
+ k(f(n.value ? e[1] : e[0])),
143
+ k(d(n.value ? e[2] : e[1])),
144
+ f(n.value ? e[3] : e[2])
145
145
  ], ([e, n, r, i], a, o) => {
146
146
  if (!e?.length || !n?.length || !r?.length) return;
147
147
  let s = x(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
@@ -163,7 +163,7 @@ function U(e, t, n = {}) {
163
163
  let e = { passive: !0 };
164
164
  Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", S, e)), r.document.documentElement.addEventListener("click", S, e);
165
165
  }
166
- let c = !0, l = (e) => d(i).some((t) => {
166
+ let c = !0, l = (e) => f(i).some((t) => {
167
167
  if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
168
168
  {
169
169
  let n = B(t);
@@ -171,16 +171,16 @@ function U(e, t, n = {}) {
171
171
  }
172
172
  });
173
173
  function u(e) {
174
- let t = d(e);
174
+ let t = f(e);
175
175
  return t && t.$.subTree.shapeFlag === 16;
176
176
  }
177
- function f(e, t) {
178
- let n = d(e), r = n.$.subTree && n.$.subTree.children;
177
+ function d(e, t) {
178
+ let n = f(e), r = n.$.subTree && n.$.subTree.children;
179
179
  return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
180
180
  }
181
181
  let p = (n) => {
182
182
  let r = B(e);
183
- if (n.target != null && !(!(r instanceof Element) && u(e) && f(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
183
+ if (n.target != null && !(!(r instanceof Element) && u(e) && d(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
184
184
  if ("detail" in n && n.detail === 0 && (c = !l(n)), !c) {
185
185
  c = !0;
186
186
  return;
@@ -218,105 +218,105 @@ function U(e, t, n = {}) {
218
218
  } : g;
219
219
  }
220
220
  function W() {
221
- let e = l(!1), n = r();
222
- return n && t(() => {
221
+ let e = a(!1), t = m();
222
+ return t && i(() => {
223
223
  e.value = !0;
224
- }, n), e;
224
+ }, t), e;
225
225
  }
226
226
  /* @__NO_SIDE_EFFECTS__ */
227
227
  function G(e) {
228
228
  let t = W();
229
- return f(() => (t.value, !!e()));
229
+ return l(() => (t.value, !!e()));
230
230
  }
231
231
  function K(e, t, n = {}) {
232
- let { window: r = z, ...i } = n, a, o = /* @__PURE__ */ G(() => r && "MutationObserver" in r), s = () => {
233
- a &&= (a.disconnect(), void 0);
234
- }, c = m(f(() => {
235
- let t = k(d(e)).map(B).filter(y);
232
+ let { window: i = z, ...a } = n, o, s = /* @__PURE__ */ G(() => i && "MutationObserver" in i), c = () => {
233
+ o &&= (o.disconnect(), void 0);
234
+ }, u = r(l(() => {
235
+ let t = k(f(e)).map(B).filter(y);
236
236
  return new Set(t);
237
237
  }), (e) => {
238
- s(), o.value && e.size && (a = new MutationObserver(t), e.forEach((e) => a.observe(e, i)));
238
+ c(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, a)));
239
239
  }, {
240
240
  immediate: !0,
241
241
  flush: "post"
242
- }), l = () => a?.takeRecords(), u = () => {
243
- c(), s();
242
+ }), d = () => o?.takeRecords(), p = () => {
243
+ u(), c();
244
244
  };
245
- return h(u), {
246
- isSupported: o,
247
- stop: u,
248
- takeRecords: l
245
+ return h(p), {
246
+ isSupported: s,
247
+ stop: p,
248
+ takeRecords: d
249
249
  };
250
250
  }
251
251
  var q = Symbol("vueuse-ssr-width");
252
252
  /* @__NO_SIDE_EFFECTS__ */
253
253
  function J() {
254
- let e = s() ? _(q, null) : null;
255
- return typeof e == "number" ? e : void 0;
254
+ let t = e() ? _(q, null) : null;
255
+ return typeof t == "number" ? t : void 0;
256
256
  }
257
257
  function Y(e, t = {}) {
258
- let { window: r = z, ssrWidth: i = /* @__PURE__ */ J() } = t, a = /* @__PURE__ */ G(() => r && "matchMedia" in r && typeof r.matchMedia == "function"), o = l(typeof i == "number"), s = l(), c = l(!1);
259
- return n(() => {
260
- if (o.value) {
261
- o.value = !a.value, c.value = d(e).split(",").some((e) => {
262
- let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), r = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || r);
263
- return n && a && (a = i >= O(n[1])), r && a && (a = i <= O(r[1])), t ? !a : a;
258
+ let { window: n = z, ssrWidth: r = /* @__PURE__ */ J() } = t, i = /* @__PURE__ */ G(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), s = a(typeof r == "number"), c = a(), u = a(!1);
259
+ return o(() => {
260
+ if (s.value) {
261
+ s.value = !i.value, u.value = f(e).split(",").some((e) => {
262
+ let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), i = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || i);
263
+ return n && a && (a = r >= O(n[1])), i && a && (a = r <= O(i[1])), t ? !a : a;
264
264
  });
265
265
  return;
266
266
  }
267
- a.value && (s.value = r.matchMedia(d(e)), c.value = s.value.matches);
268
- }), V(s, "change", (e) => {
269
- c.value = e.matches;
270
- }, { passive: !0 }), f(() => c.value);
267
+ i.value && (c.value = n.matchMedia(f(e)), u.value = c.value.matches);
268
+ }), V(c, "change", (e) => {
269
+ u.value = e.matches;
270
+ }, { passive: !0 }), l(() => u.value);
271
271
  }
272
272
  function X(e, t, n = {}) {
273
- let { window: r = z, ...i } = n, a, o = /* @__PURE__ */ G(() => r && "ResizeObserver" in r), s = () => {
274
- a &&= (a.disconnect(), void 0);
275
- }, c = m(f(() => {
276
- let t = d(e);
273
+ let { window: i = z, ...a } = n, o, s = /* @__PURE__ */ G(() => i && "ResizeObserver" in i), c = () => {
274
+ o &&= (o.disconnect(), void 0);
275
+ }, u = r(l(() => {
276
+ let t = f(e);
277
277
  return Array.isArray(t) ? t.map((e) => B(e)) : [B(t)];
278
278
  }), (e) => {
279
- if (s(), o.value && r) {
280
- a = new ResizeObserver(t);
281
- for (let t of e) t && a.observe(t, i);
279
+ if (c(), s.value && i) {
280
+ o = new ResizeObserver(t);
281
+ for (let t of e) t && o.observe(t, a);
282
282
  }
283
283
  }, {
284
284
  immediate: !0,
285
285
  flush: "post"
286
- }), l = () => {
287
- s(), c();
286
+ }), d = () => {
287
+ c(), u();
288
288
  };
289
- return h(l), {
290
- isSupported: o,
291
- stop: l
289
+ return h(d), {
290
+ isSupported: s,
291
+ stop: d
292
292
  };
293
293
  }
294
294
  function Z(e, t = {}) {
295
- let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s = l(0), c = l(0), u = l(0), d = l(0), f = l(0), p = l(0), h = l(0), g = l(0);
295
+ let { reset: n = !0, windowResize: i = !0, windowScroll: o = !0, immediate: s = !0, updateTiming: c = "sync" } = t, l = a(0), u = a(0), d = a(0), f = a(0), p = a(0), m = a(0), h = a(0), g = a(0);
296
296
  function _() {
297
297
  let t = B(e);
298
298
  if (!t) {
299
- n && (s.value = 0, c.value = 0, u.value = 0, d.value = 0, f.value = 0, p.value = 0, h.value = 0, g.value = 0);
299
+ n && (l.value = 0, u.value = 0, d.value = 0, f.value = 0, p.value = 0, m.value = 0, h.value = 0, g.value = 0);
300
300
  return;
301
301
  }
302
302
  let r = t.getBoundingClientRect();
303
- s.value = r.height, c.value = r.bottom, u.value = r.left, d.value = r.right, f.value = r.top, p.value = r.width, h.value = r.x, g.value = r.y;
303
+ l.value = r.height, u.value = r.bottom, d.value = r.left, f.value = r.right, p.value = r.top, m.value = r.width, h.value = r.x, g.value = r.y;
304
304
  }
305
305
  function v() {
306
- o === "sync" ? _() : o === "next-frame" && requestAnimationFrame(() => _());
306
+ c === "sync" ? _() : c === "next-frame" && requestAnimationFrame(() => _());
307
307
  }
308
- return X(e, v), m(() => B(e), (e) => !e && v()), K(e, v, { attributeFilter: ["style", "class"] }), i && V("scroll", v, {
308
+ return X(e, v), r(() => B(e), (e) => !e && v()), K(e, v, { attributeFilter: ["style", "class"] }), o && V("scroll", v, {
309
309
  capture: !0,
310
310
  passive: !0
311
- }), r && V("resize", v, { passive: !0 }), N(() => {
312
- a && v();
311
+ }), i && V("resize", v, { passive: !0 }), N(() => {
312
+ s && v();
313
313
  }), {
314
- height: s,
315
- bottom: c,
316
- left: u,
317
- right: d,
318
- top: f,
319
- width: p,
314
+ height: l,
315
+ bottom: u,
316
+ left: d,
317
+ right: f,
318
+ top: p,
319
+ width: m,
320
320
  x: h,
321
321
  y: g,
322
322
  update: v
@@ -1,5 +1,5 @@
1
- import { r as e } from "./rolldown-runtime-BZGGJVDF.js";
2
- import { A as t, B as n, C as r, J as i, N as a, O as o, Q as s, S as c, W as ee, X as te, et as ne, i as l, it as re, k as u, tt as d, w as f } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
1
+ import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
+ import { $ as t, D as n, E as r, H as i, J as a, K as o, O as s, Q as ee, R as te, S as c, X as l, b as u, j as d, r as f, rt as ne, x as re } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
3
3
  import { $ as ie, $t as ae, A as oe, At as se, B as ce, Bt as le, C as ue, Ct as de, D as fe, Dt as p, E as m, Et as h, F as g, Ft as _, G as v, Gt as y, H as b, Ht as x, I as S, It as C, J as w, Jt as T, K as E, Kt as D, L as O, Lt as k, M as A, Mt as j, N as M, Nt as N, O as P, Ot as F, P as I, Pt as L, Q as R, Qt as z, R as B, Rt as V, S as pe, St as me, T as he, Tt as ge, U as _e, Ut as ve, V as ye, Vt as be, W as xe, Wt as Se, X as Ce, Xt as we, Y as Te, Yt as Ee, Z as De, Zt as Oe, _ as ke, _t as H, a as Ae, an as je, at as Me, b as Ne, bt as Pe, c as Fe, cn as Ie, ct as Le, d as Re, dn as ze, dt as Be, en as Ve, et as He, f as U, fn as Ue, ft as We, g as Ge, gt as W, h as Ke, hn as qe, ht as Je, i as Ye, in as Xe, it as Ze, j as Qe, jt as $e, k as et, kt as tt, l as G, ln as nt, lt as rt, m as it, mn as at, mt as ot, n as st, nn as ct, nt as lt, o as ut, on as K, ot as dt, p as ft, pn as pt, pt as mt, q as ht, qt as gt, r as _t, rn as vt, rt as yt, s as bt, sn as xt, st as St, t as Ct, tn as wt, tt as Tt, u as Et, un as Dt, ut as Ot, v as kt, vt as At, w as jt, wt as Mt, x as Nt, xt as Pt, y as q, yt as Ft, z as It, zt as Lt } from "./dist-iLBdeBDR.js";
4
4
  //#region ../../node_modules/.pnpm/@tiptap+vue-3@3.22.5_@floating-ui+dom@1.7.6_@tiptap+core@3.22.5_@tiptap+pm@3.22.5__@tip_7097ea972d8e6e4e31801879e2c3d1b4/node_modules/@tiptap/vue-3/dist/index.js
5
5
  var Rt = /* @__PURE__ */ e({
@@ -140,7 +140,7 @@ var Rt = /* @__PURE__ */ e({
140
140
  wrappingInputRule: () => qe
141
141
  });
142
142
  function J(e) {
143
- return ee((t, n) => ({
143
+ return i((t, n) => ({
144
144
  get() {
145
145
  return t(), e;
146
146
  },
@@ -157,7 +157,7 @@ var Y = class extends st {
157
157
  constructor(e = {}) {
158
158
  return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = J(this.view.state), this.reactiveExtensionStorage = J(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
159
159
  this.reactiveState.value = e, this.reactiveExtensionStorage.value = this.extensionStorage;
160
- }), i(this);
160
+ }), o(this);
161
161
  }
162
162
  get state() {
163
163
  return this.reactiveState ? this.reactiveState.value : this.view.state;
@@ -173,47 +173,47 @@ var Y = class extends st {
173
173
  let t = super.unregisterPlugin(e);
174
174
  return this.reactiveState && t && (this.reactiveState.value = t), t;
175
175
  }
176
- }, zt = c({
176
+ }, zt = u({
177
177
  name: "EditorContent",
178
178
  props: { editor: {
179
179
  default: null,
180
180
  type: Object
181
181
  } },
182
182
  setup(e) {
183
- let t = s(), i = r();
184
- return n(() => {
183
+ let t = l(), i = re();
184
+ return te(() => {
185
185
  let n = e.editor;
186
- n && n.options.element && t.value && o(() => {
186
+ n && n.options.element && t.value && r(() => {
187
187
  if (!t.value || !n.view.dom?.parentNode) return;
188
- let e = re(t.value);
188
+ let e = ne(t.value);
189
189
  t.value.append(...n.view.dom.parentNode.childNodes), n.contentComponent = i.ctx._, i && (n.appContext = {
190
190
  ...i.appContext,
191
191
  provides: i.provides
192
192
  }), n.setOptions({ element: e }), n.createNodeViews();
193
193
  });
194
- }), u(() => {
194
+ }), n(() => {
195
195
  let t = e.editor;
196
196
  t && (t.contentComponent = null, t.appContext = null);
197
197
  }), { rootEl: t };
198
198
  },
199
199
  render() {
200
- return f("div", { ref: (e) => {
200
+ return c("div", { ref: (e) => {
201
201
  this.rootEl = e;
202
202
  } });
203
203
  }
204
- }), Bt = c({
204
+ }), Bt = u({
205
205
  name: "NodeViewContent",
206
206
  props: { as: {
207
207
  type: String,
208
208
  default: "div"
209
209
  } },
210
210
  render() {
211
- return f(this.as, {
211
+ return c(this.as, {
212
212
  style: { whiteSpace: "pre-wrap" },
213
213
  "data-node-view-content": ""
214
214
  });
215
215
  }
216
- }), X = c({
216
+ }), X = u({
217
217
  name: "NodeViewWrapper",
218
218
  props: { as: {
219
219
  type: String,
@@ -222,7 +222,7 @@ var Y = class extends st {
222
222
  inject: ["onDragStart", "decorationClasses"],
223
223
  render() {
224
224
  var e;
225
- return f(this.as, {
225
+ return c(this.as, {
226
226
  class: this.decorationClasses,
227
227
  style: { whiteSpace: "normal" },
228
228
  "data-node-view-wrapper": "",
@@ -230,17 +230,17 @@ var Y = class extends st {
230
230
  }, (e = this.$slots).default?.call(e));
231
231
  }
232
232
  }), Vt = (e = {}) => {
233
- let n = ne();
234
- return t(() => {
235
- n.value = new Y(e);
236
- }), u(() => {
237
- var e, t;
238
- let r = n.value?.view.dom?.parentNode, i = r?.cloneNode(!0);
239
- (e = r?.parentNode) == null || e.replaceChild(i, r), (t = n.value) == null || t.destroy();
240
- }), n;
233
+ let t = ee();
234
+ return s(() => {
235
+ t.value = new Y(e);
236
+ }), n(() => {
237
+ var e, n;
238
+ let r = t.value?.view.dom?.parentNode, i = r?.cloneNode(!0);
239
+ (e = r?.parentNode) == null || e.replaceChild(i, r), (n = t.value) == null || n.destroy();
240
+ }), t;
241
241
  }, Z = class {
242
242
  constructor(e, { props: t = {}, editor: n }) {
243
- this.destroyed = !1, this.editor = n, this.component = i(e), this.el = document.createElement("div"), this.props = te(t), this.renderedComponent = this.renderComponent();
243
+ this.destroyed = !1, this.editor = n, this.component = o(e), this.el = document.createElement("div"), this.props = a(t), this.renderedComponent = this.renderComponent();
244
244
  }
245
245
  get element() {
246
246
  return this.renderedComponent.el;
@@ -250,11 +250,11 @@ var Y = class extends st {
250
250
  }
251
251
  renderComponent() {
252
252
  if (this.destroyed) return this.renderedComponent;
253
- let e = f(this.component, this.props);
254
- return this.editor.appContext && (e.appContext = this.editor.appContext), typeof document < "u" && this.el && l(e, this.el), {
253
+ let e = c(this.component, this.props);
254
+ return this.editor.appContext && (e.appContext = this.editor.appContext), typeof document < "u" && this.el && f(e, this.el), {
255
255
  vNode: e,
256
256
  destroy: () => {
257
- this.el && l(null, this.el), this.el = null, e = null;
257
+ this.el && f(null, this.el), this.el = null, e = null;
258
258
  },
259
259
  el: this.el ? this.el.firstElementChild : null
260
260
  };
@@ -296,14 +296,14 @@ var Y = class extends st {
296
296
  type: Object,
297
297
  required: !0
298
298
  }
299
- }, Ut = c({
299
+ }, Ut = u({
300
300
  name: "MarkViewContent",
301
301
  props: { as: {
302
302
  type: String,
303
303
  default: "span"
304
304
  } },
305
305
  render() {
306
- return f(this.as, {
306
+ return c(this.as, {
307
307
  style: { whiteSpace: "inherit" },
308
308
  "data-mark-view-content": ""
309
309
  });
@@ -314,7 +314,7 @@ var Y = class extends st {
314
314
  let r = {
315
315
  ...t,
316
316
  updateAttributes: this.updateAttributes.bind(this)
317
- }, i = c({
317
+ }, i = u({
318
318
  extends: { ...e },
319
319
  props: Object.keys(r),
320
320
  template: this.component.template,
@@ -336,8 +336,8 @@ var Y = class extends st {
336
336
  return this.dom.querySelector("[data-mark-view-content]");
337
337
  }
338
338
  updateAttributes(e) {
339
- let t = d(this.mark);
340
- super.updateAttributes(e, t);
339
+ let n = t(this.mark);
340
+ super.updateAttributes(e, n);
341
341
  }
342
342
  destroy() {
343
343
  this.renderer.destroy();
@@ -418,14 +418,14 @@ var Gt = {
418
418
  updateAttributes: (e = {}) => this.updateAttributes(e),
419
419
  deleteNode: () => this.deleteNode()
420
420
  }, t = this.onDragStart.bind(this);
421
- this.decorationClasses = s(this.getDecorationClasses());
422
- let n = c({
421
+ this.decorationClasses = l(this.getDecorationClasses());
422
+ let n = u({
423
423
  extends: { ...this.component },
424
424
  props: Object.keys(e),
425
425
  template: this.component.template,
426
426
  setup: (e) => {
427
427
  var n;
428
- return a("onDragStart", t), a("decorationClasses", this.decorationClasses), (n = this.component).setup?.call(n, e, { expose: () => void 0 });
428
+ return d("onDragStart", t), d("decorationClasses", this.decorationClasses), (n = this.component).setup?.call(n, e, { expose: () => void 0 });
429
429
  },
430
430
  __scopeId: this.component.__scopeId,
431
431
  __cssModules: this.component.__cssModules,