@templatical/editor 0.6.3 → 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-BCz1ZTYC.js → CloudEditor-_GaYluN7.js} +446 -440
  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-D2GsEC_n.js → CloudEditor-D2G2nNpQ.js} +429 -423
  33. package/dist/cdn/chunks/{CloudEditor-D2GsEC_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 +11 -11
  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,13 +1,13 @@
1
- import { Dt as e, E as t, L as n, M as r, Mt as i, Ot as a, P as o, Q as s, S as c, _ as l, b as u, d, f, g as p, h as m, it as h, l as g, m as _, p as v, q as y, u as b, y as x } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
- import { C as S, b as C, w } from "./useEditorCore-C6ost42Q.js";
3
- import { t as T } from "./dist-B1IR0bpH.js";
4
- import { D as E, O as D, T as O, h as k } from "./keys-ciNfSSGj.js";
5
- import { t as A } from "./useI18n-lb2DHDiu.js";
6
- import { t as j } from "./createLucideIcon-C3pa2siy.js";
7
- import { a as ee, i as M, n as N, r as P, t as F } from "./RichTextEditorContent-DYkIauIk.js";
8
- import { t as te } from "./loader-circle-DsY5Yg33.js";
9
- import { t as ne } from "./scan-line-D0vcUekt.js";
10
- import { n as re, r as ie, t as I } from "./text-align-start-BT9VUDxK.js";
1
+ import { A as e, F as t, G as n, M as r, X as i, _ as a, at as o, b as s, c, d as l, f as u, h as d, l as f, m as p, ot as m, p as h, rt as g, s as _, st as v, u as y, v as b, w as x } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
2
+ import { C as S, b as C, w } from "./useEditorCore-DLd-5qMg.js";
3
+ import { t as T } from "./dist-BzRLLpfq.js";
4
+ import { D as E, O as D, T as O, h as k } from "./keys-Bqs_0du9.js";
5
+ import { t as A } from "./useI18n-CgmQftNf.js";
6
+ import { t as j } from "./createLucideIcon-Di4mqmGn.js";
7
+ import { a as ee, i as M, n as N, r as P, t as F } from "./RichTextEditorContent-CK3Om7ES.js";
8
+ import { t as te } from "./loader-circle-_9bP23op.js";
9
+ import { t as ne } from "./scan-line-DUEg6DoT.js";
10
+ import { n as re, r as ie, t as I } from "./text-align-start-DG3aAH7Y.js";
11
11
  import { t as L } from "./_plugin-vue_export-helper-B0hnzhyu.js";
12
12
  import { a as R, o as z, s as B } from "./styleConstants-fWzlIIwN.js";
13
13
  var V = j("list-ordered", [
@@ -161,60 +161,60 @@ var V = j("list-ordered", [
161
161
  "aria-label",
162
162
  "title",
163
163
  "aria-expanded"
164
- ], ae = ["aria-label"], oe = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, se = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, ce = ["aria-label", "onClick"], le = /* @__PURE__ */ c({
164
+ ], ae = ["aria-label"], oe = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, se = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, ce = ["aria-label", "onClick"], le = /* @__PURE__ */ s({
165
165
  __name: "EmojiPickerDropdown",
166
166
  emits: ["insert"],
167
167
  setup(t, { emit: n }) {
168
- let a = n, { categories: c, isOpen: f, toggle: m, close: y } = S(), { t: x, format: C } = A(), E = s(null), D = s(null);
169
- w(E, v(() => f.value)), T(D, () => {
170
- f.value && y();
168
+ let a = n, { categories: s, isOpen: m, toggle: h, close: y } = S(), { t: x, format: C } = A(), E = i(null), D = i(null);
169
+ w(E, l(() => m.value)), T(D, () => {
170
+ m.value && y();
171
171
  });
172
172
  function O(e) {
173
173
  a("insert", e), y();
174
174
  }
175
- return (t, n) => (r(), l("div", {
175
+ return (t, n) => (e(), d("div", {
176
176
  ref_key: "rootRef",
177
177
  ref: D,
178
178
  class: "tpl:relative"
179
- }, [_("button", {
179
+ }, [u("button", {
180
180
  type: "button",
181
- class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": h(f) }]),
182
- "aria-label": h(x).paragraphEditor.insertEmoji,
183
- title: h(x).paragraphEditor.insertEmoji,
184
- "aria-expanded": h(f),
181
+ class: o(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": g(m) }]),
182
+ "aria-label": g(x).paragraphEditor.insertEmoji,
183
+ title: g(x).paragraphEditor.insertEmoji,
184
+ "aria-expanded": g(m),
185
185
  "aria-haspopup": "dialog",
186
186
  "aria-controls": "tpl-emoji-picker",
187
- onClick: n[0] ||= (...e) => h(m) && h(m)(...e)
188
- }, [u(h(W), {
187
+ onClick: n[0] ||= (...e) => g(h) && g(h)(...e)
188
+ }, [b(g(W), {
189
189
  size: 16,
190
190
  "stroke-width": 2
191
- })], 10, Y), h(f) ? (r(), l("div", {
191
+ })], 10, Y), g(m) ? (e(), d("div", {
192
192
  key: 0,
193
193
  id: "tpl-emoji-picker",
194
194
  ref_key: "pickerRef",
195
195
  ref: E,
196
196
  role: "dialog",
197
197
  "aria-modal": "false",
198
- "aria-label": h(x).paragraphEditor.insertEmoji,
198
+ "aria-label": g(x).paragraphEditor.insertEmoji,
199
199
  tabindex: "-1",
200
200
  class: "tpl-emoji-picker tpl:absolute tpl:top-full tpl:left-0 tpl:z-10 tpl:mt-2 tpl:w-72 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:shadow-lg",
201
- onKeydown: n[1] ||= g(b((...e) => h(y) && h(y)(...e), ["stop", "prevent"]), ["esc"])
202
- }, [(r(!0), l(d, null, o(h(c), (e) => (r(), l("div", {
203
- key: e.key,
201
+ onKeydown: n[1] ||= _(c((...e) => g(y) && g(y)(...e), ["stop", "prevent"]), ["esc"])
202
+ }, [(e(!0), d(f, null, r(g(s), (t) => (e(), d("div", {
203
+ key: t.key,
204
204
  class: "tpl:mb-2 tpl:last:mb-0"
205
- }, [_("div", oe, i(h(x).emoji[e.key]), 1), _("div", se, [(r(!0), l(d, null, o(e.emojis, (e) => (r(), l("button", {
206
- key: e,
205
+ }, [u("div", oe, v(g(x).emoji[t.key]), 1), u("div", se, [(e(!0), d(f, null, r(t.emojis, (t) => (e(), d("button", {
206
+ key: t,
207
207
  type: "button",
208
- "aria-label": h(C)(h(x).paragraphEditor.emojiItemLabel, { emoji: e }),
208
+ "aria-label": g(C)(g(x).paragraphEditor.emojiItemLabel, { emoji: t }),
209
209
  class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border-none tpl:bg-transparent tpl:text-base tpl:transition-all tpl:duration-100 tpl:hover:scale-125 tpl:hover:bg-[var(--tpl-bg-active)]",
210
- onClick: (t) => O(e)
211
- }, i(e), 9, ce))), 128))])]))), 128))], 40, ae)) : p("", !0)], 512));
210
+ onClick: (e) => O(t)
211
+ }, v(t), 9, ce))), 128))])]))), 128))], 40, ae)) : p("", !0)], 512));
212
212
  }
213
213
  }), ue = [
214
214
  "aria-label",
215
215
  "title",
216
216
  "aria-pressed"
217
- ], X = /* @__PURE__ */ c({
217
+ ], X = /* @__PURE__ */ s({
218
218
  __name: "ToolbarIconButton",
219
219
  props: {
220
220
  icon: {},
@@ -223,30 +223,30 @@ var V = j("list-ordered", [
223
223
  strokeWidth: {},
224
224
  size: {}
225
225
  },
226
- setup(t) {
227
- return (i, a) => (r(), l("button", {
226
+ setup(n) {
227
+ return (r, i) => (e(), d("button", {
228
228
  type: "button",
229
- class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": t.active }]),
230
- "aria-label": t.label,
231
- title: t.label,
232
- "aria-pressed": t.active ? "true" : "false"
233
- }, [(r(), m(n(t.icon), {
234
- size: t.size ?? 16,
235
- "stroke-width": t.strokeWidth ?? 2
229
+ class: o(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": n.active }]),
230
+ "aria-label": n.label,
231
+ title: n.label,
232
+ "aria-pressed": n.active ? "true" : "false"
233
+ }, [(e(), h(t(n.icon), {
234
+ size: n.size ?? 16,
235
+ "stroke-width": n.strokeWidth ?? 2
236
236
  }, null, 8, ["size", "stroke-width"]))], 10, ue));
237
237
  }
238
238
  }), de = {}, fe = {
239
239
  class: "tpl:mx-1 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
240
240
  "aria-hidden": "true"
241
241
  };
242
- function pe(e, t) {
243
- return r(), l("span", fe);
242
+ function pe(t, n) {
243
+ return e(), d("span", fe);
244
244
  }
245
245
  var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
246
246
  "value",
247
247
  "aria-label",
248
248
  "title"
249
- ], he = { value: "" }, ge = ["value"], Q = /* @__PURE__ */ c({
249
+ ], he = { value: "" }, ge = ["value"], Q = /* @__PURE__ */ s({
250
250
  __name: "ToolbarSelect",
251
251
  props: {
252
252
  modelValue: {},
@@ -257,26 +257,26 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
257
257
  },
258
258
  emits: ["update:modelValue"],
259
259
  setup(t, { emit: n }) {
260
- let a = n;
261
- function s(e) {
262
- a("update:modelValue", e.target.value);
260
+ let i = n;
261
+ function a(e) {
262
+ i("update:modelValue", e.target.value);
263
263
  }
264
- function c(e) {
264
+ function s(e) {
265
265
  return typeof e == "string" ? e : e.value;
266
266
  }
267
- function u(e) {
267
+ function c(e) {
268
268
  return typeof e == "string" ? e : e.label;
269
269
  }
270
- return (n, a) => (r(), l("select", {
271
- class: e(["tpl:h-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none", t.widthClass ?? "tpl:w-20"]),
270
+ return (n, i) => (e(), d("select", {
271
+ class: o(["tpl:h-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none", t.widthClass ?? "tpl:w-20"]),
272
272
  value: t.modelValue,
273
273
  "aria-label": t.label,
274
274
  title: t.label,
275
- onChange: s
276
- }, [_("option", he, i(t.placeholder ?? ""), 1), (r(!0), l(d, null, o(t.options, (e) => (r(), l("option", {
277
- key: c(e),
278
- value: c(e)
279
- }, i(u(e)), 9, ge))), 128))], 42, me));
275
+ onChange: a
276
+ }, [u("option", he, v(t.placeholder ?? ""), 1), (e(!0), d(f, null, r(t.options, (t) => (e(), d("option", {
277
+ key: s(t),
278
+ value: s(t)
279
+ }, v(c(t)), 9, ge))), 128))], 42, me));
280
280
  }
281
281
  }), _e = ["data-tpl-theme", "aria-label"], ve = { class: "tpl:flex tpl:items-center tpl:gap-1" }, ye = { class: "tpl:relative" }, be = [
282
282
  "value",
@@ -289,7 +289,7 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
289
289
  ], Se = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Ce = ["aria-label", "title"], we = {
290
290
  key: 1,
291
291
  class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
292
- }, Te = /* @__PURE__ */ c({
292
+ }, Te = /* @__PURE__ */ s({
293
293
  __name: "ParagraphToolbar",
294
294
  props: {
295
295
  editor: {},
@@ -298,62 +298,62 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
298
298
  canRequestMergeTag: { type: Boolean }
299
299
  },
300
300
  emits: ["open-link-dialog", "add-merge-tag"],
301
- setup(e, { emit: n }) {
302
- let o = e, s = n, c = t(O, null), g = t(E, null), v = D(k, "ParagraphToolbar"), { t: y } = A(), b = v.fonts;
301
+ setup(t, { emit: n }) {
302
+ let r = t, i = n, o = x(O, null), s = x(E, null), c = D(k, "ParagraphToolbar"), { t: l } = A(), _ = c.fonts;
303
303
  function S(e) {
304
- o.editor?.chain().focus().insertContent(e).run();
304
+ r.editor?.chain().focus().insertContent(e).run();
305
305
  }
306
306
  function C(e) {
307
- return o.editor?.getAttributes("textStyle")[e] || "";
307
+ return r.editor?.getAttributes("textStyle")[e] || "";
308
308
  }
309
309
  function w(e) {
310
- let t = o.editor?.chain().focus();
310
+ let t = r.editor?.chain().focus();
311
311
  e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
312
312
  }
313
313
  function T(e) {
314
- let t = o.editor?.chain().focus();
314
+ let t = r.editor?.chain().focus();
315
315
  e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
316
316
  }
317
317
  function j(e) {
318
- let t = o.editor?.chain().focus();
318
+ let t = r.editor?.chain().focus();
319
319
  e ? t?.setColor(e).run() : t?.unsetColor().run();
320
320
  }
321
321
  function N() {
322
- return o.editor?.getAttributes("paragraph").lineHeight || "";
322
+ return r.editor?.getAttributes("paragraph").lineHeight || "";
323
323
  }
324
324
  function F(e) {
325
- let t = o.editor?.chain().focus();
325
+ let t = r.editor?.chain().focus();
326
326
  e ? t?.setLineHeight(e).run() : t?.unsetLineHeight().run();
327
327
  }
328
328
  function L(e) {
329
- let t = o.editor?.chain().focus();
329
+ let t = r.editor?.chain().focus();
330
330
  e && e !== "normal" ? t?.setLetterSpacing(e).run() : t?.unsetLetterSpacing().run();
331
331
  }
332
332
  function W() {
333
- return o.editor?.getAttributes("highlight").color || "";
333
+ return r.editor?.getAttributes("highlight").color || "";
334
334
  }
335
335
  function Y(e) {
336
- let t = o.editor?.chain().focus();
336
+ let t = r.editor?.chain().focus();
337
337
  e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
338
338
  }
339
- return (t, n) => (r(), m(f, { to: "body" }, [_("div", {
340
- "data-tpl-theme": h(g),
339
+ return (n, r) => (e(), h(y, { to: "body" }, [u("div", {
340
+ "data-tpl-theme": g(s),
341
341
  role: "toolbar",
342
- "aria-label": h(y).paragraphEditor.toolbar,
342
+ "aria-label": g(l).paragraphEditor.toolbar,
343
343
  class: "tpl tpl-text-toolbar tpl:fixed tpl:z-popover tpl:flex tpl:gap-1 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:shadow-lg",
344
- style: a({
345
- ...h(c),
346
- top: `${e.toolbarPosition.top}px`,
347
- left: `${e.toolbarPosition.left}px`,
344
+ style: m({
345
+ ...g(o),
346
+ top: `${t.toolbarPosition.top}px`,
347
+ left: `${t.toolbarPosition.left}px`,
348
348
  transform: "translateY(-100%)",
349
349
  flexDirection: "column"
350
350
  })
351
- }, [!e.isLoading && e.editor ? (r(), l(d, { key: 0 }, [_("div", ve, [
352
- u(Q, {
351
+ }, [!t.isLoading && t.editor ? (e(), d(f, { key: 0 }, [u("div", ve, [
352
+ b(Q, {
353
353
  "model-value": C("fontFamily"),
354
- options: h(b),
355
- label: h(y).paragraphEditor.fontFamily,
356
- placeholder: h(y).paragraphEditor.defaultFont,
354
+ options: g(_),
355
+ label: g(l).paragraphEditor.fontFamily,
356
+ placeholder: g(l).paragraphEditor.defaultFont,
357
357
  "width-class": "tpl:w-32",
358
358
  "onUpdate:modelValue": w
359
359
  }, null, 8, [
@@ -362,11 +362,11 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
362
362
  "label",
363
363
  "placeholder"
364
364
  ]),
365
- u(Q, {
365
+ b(Q, {
366
366
  "model-value": C("fontSize"),
367
- options: h(R),
368
- label: h(y).paragraphEditor.fontSize,
369
- placeholder: h(y).paragraphEditor.defaultSize,
367
+ options: g(R),
368
+ label: g(l).paragraphEditor.fontSize,
369
+ placeholder: g(l).paragraphEditor.defaultSize,
370
370
  "width-class": "tpl:w-20",
371
371
  "onUpdate:modelValue": T
372
372
  }, null, 8, [
@@ -375,155 +375,155 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
375
375
  "label",
376
376
  "placeholder"
377
377
  ]),
378
- u(Z),
379
- _("div", ye, [_("input", {
378
+ b(Z),
379
+ u("div", ye, [u("input", {
380
380
  type: "color",
381
381
  class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-1",
382
- value: C("color") || h("#000000"),
383
- "aria-label": h(y).paragraphEditor.textColor,
384
- title: h(y).paragraphEditor.textColor,
385
- onInput: n[0] ||= (e) => j(e.target.value)
382
+ value: C("color") || g("#000000"),
383
+ "aria-label": g(l).paragraphEditor.textColor,
384
+ title: g(l).paragraphEditor.textColor,
385
+ onInput: r[0] ||= (e) => j(e.target.value)
386
386
  }, null, 40, be)]),
387
- _("div", $, [_("input", {
387
+ u("div", $, [u("input", {
388
388
  type: "color",
389
389
  class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:p-1",
390
- style: a({ backgroundColor: W() || "var(--tpl-bg)" }),
391
- value: W() || h("#ffff00"),
392
- "aria-label": h(y).paragraphEditor.highlightColor,
393
- title: h(y).paragraphEditor.highlightColor,
394
- onInput: n[1] ||= (e) => Y(e.target.value)
390
+ style: m({ backgroundColor: W() || "var(--tpl-bg)" }),
391
+ value: W() || g("#ffff00"),
392
+ "aria-label": g(l).paragraphEditor.highlightColor,
393
+ title: g(l).paragraphEditor.highlightColor,
394
+ onInput: r[1] ||= (e) => Y(e.target.value)
395
395
  }, null, 44, xe)]),
396
- u(Z),
397
- u(X, {
398
- icon: h(ee),
399
- label: h(y).paragraphEditor.bold,
400
- active: e.editor.isActive("bold"),
396
+ b(Z),
397
+ b(X, {
398
+ icon: g(ee),
399
+ label: g(l).paragraphEditor.bold,
400
+ active: t.editor.isActive("bold"),
401
401
  "stroke-width": 2.5,
402
- onClick: n[2] ||= (t) => e.editor.chain().focus().toggleBold().run()
402
+ onClick: r[2] ||= (e) => t.editor.chain().focus().toggleBold().run()
403
403
  }, null, 8, [
404
404
  "icon",
405
405
  "label",
406
406
  "active"
407
407
  ]),
408
- u(X, {
409
- icon: h(M),
410
- label: h(y).paragraphEditor.italic,
411
- active: e.editor.isActive("italic"),
412
- onClick: n[3] ||= (t) => e.editor.chain().focus().toggleItalic().run()
408
+ b(X, {
409
+ icon: g(M),
410
+ label: g(l).paragraphEditor.italic,
411
+ active: t.editor.isActive("italic"),
412
+ onClick: r[3] ||= (e) => t.editor.chain().focus().toggleItalic().run()
413
413
  }, null, 8, [
414
414
  "icon",
415
415
  "label",
416
416
  "active"
417
417
  ]),
418
- u(X, {
419
- icon: h(J),
420
- label: h(y).paragraphEditor.underline,
421
- active: e.editor.isActive("underline"),
422
- onClick: n[4] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
418
+ b(X, {
419
+ icon: g(J),
420
+ label: g(l).paragraphEditor.underline,
421
+ active: t.editor.isActive("underline"),
422
+ onClick: r[4] ||= (e) => t.editor.chain().focus().toggleUnderline().run()
423
423
  }, null, 8, [
424
424
  "icon",
425
425
  "label",
426
426
  "active"
427
427
  ]),
428
- u(X, {
429
- icon: h(G),
430
- label: h(y).paragraphEditor.strikethrough,
431
- active: e.editor.isActive("strike"),
432
- onClick: n[5] ||= (t) => e.editor.chain().focus().toggleStrike().run()
428
+ b(X, {
429
+ icon: g(G),
430
+ label: g(l).paragraphEditor.strikethrough,
431
+ active: t.editor.isActive("strike"),
432
+ onClick: r[5] ||= (e) => t.editor.chain().focus().toggleStrike().run()
433
433
  }, null, 8, [
434
434
  "icon",
435
435
  "label",
436
436
  "active"
437
437
  ]),
438
- u(Z),
439
- u(X, {
440
- icon: h(K),
441
- label: h(y).paragraphEditor.subscript,
442
- active: e.editor.isActive("subscript"),
443
- onClick: n[6] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
438
+ b(Z),
439
+ b(X, {
440
+ icon: g(K),
441
+ label: g(l).paragraphEditor.subscript,
442
+ active: t.editor.isActive("subscript"),
443
+ onClick: r[6] ||= (e) => t.editor.chain().focus().toggleSubscript().run()
444
444
  }, null, 8, [
445
445
  "icon",
446
446
  "label",
447
447
  "active"
448
448
  ]),
449
- u(X, {
450
- icon: h(q),
451
- label: h(y).paragraphEditor.superscript,
452
- active: e.editor.isActive("superscript"),
453
- onClick: n[7] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
449
+ b(X, {
450
+ icon: g(q),
451
+ label: g(l).paragraphEditor.superscript,
452
+ active: t.editor.isActive("superscript"),
453
+ onClick: r[7] ||= (e) => t.editor.chain().focus().toggleSuperscript().run()
454
454
  }, null, 8, [
455
455
  "icon",
456
456
  "label",
457
457
  "active"
458
458
  ]),
459
- u(Z),
460
- u(X, {
461
- icon: h(P),
462
- label: h(y).paragraphEditor.addLink,
463
- active: e.editor.isActive("link"),
464
- onClick: n[8] ||= (e) => s("open-link-dialog")
459
+ b(Z),
460
+ b(X, {
461
+ icon: g(P),
462
+ label: g(l).paragraphEditor.addLink,
463
+ active: t.editor.isActive("link"),
464
+ onClick: r[8] ||= (e) => i("open-link-dialog")
465
465
  }, null, 8, [
466
466
  "icon",
467
467
  "label",
468
468
  "active"
469
469
  ])
470
- ]), _("div", Se, [
471
- u(X, {
472
- icon: h(H),
473
- label: h(y).paragraphEditor.bulletList,
474
- active: e.editor.isActive("bulletList"),
475
- onClick: n[9] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
470
+ ]), u("div", Se, [
471
+ b(X, {
472
+ icon: g(H),
473
+ label: g(l).paragraphEditor.bulletList,
474
+ active: t.editor.isActive("bulletList"),
475
+ onClick: r[9] ||= (e) => t.editor.chain().focus().toggleBulletList().run()
476
476
  }, null, 8, [
477
477
  "icon",
478
478
  "label",
479
479
  "active"
480
480
  ]),
481
- u(X, {
482
- icon: h(V),
483
- label: h(y).paragraphEditor.numberedList,
484
- active: e.editor.isActive("orderedList"),
485
- onClick: n[10] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
481
+ b(X, {
482
+ icon: g(V),
483
+ label: g(l).paragraphEditor.numberedList,
484
+ active: t.editor.isActive("orderedList"),
485
+ onClick: r[10] ||= (e) => t.editor.chain().focus().toggleOrderedList().run()
486
486
  }, null, 8, [
487
487
  "icon",
488
488
  "label",
489
489
  "active"
490
490
  ]),
491
- u(Z),
492
- u(X, {
493
- icon: h(I),
494
- label: h(y).paragraphEditor.alignLeft,
495
- active: e.editor.isActive({ textAlign: "left" }),
496
- onClick: n[11] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
491
+ b(Z),
492
+ b(X, {
493
+ icon: g(I),
494
+ label: g(l).paragraphEditor.alignLeft,
495
+ active: t.editor.isActive({ textAlign: "left" }),
496
+ onClick: r[11] ||= (e) => t.editor.chain().focus().setTextAlign("left").run()
497
497
  }, null, 8, [
498
498
  "icon",
499
499
  "label",
500
500
  "active"
501
501
  ]),
502
- u(X, {
503
- icon: h(ie),
504
- label: h(y).paragraphEditor.alignCenter,
505
- active: e.editor.isActive({ textAlign: "center" }),
506
- onClick: n[12] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
502
+ b(X, {
503
+ icon: g(ie),
504
+ label: g(l).paragraphEditor.alignCenter,
505
+ active: t.editor.isActive({ textAlign: "center" }),
506
+ onClick: r[12] ||= (e) => t.editor.chain().focus().setTextAlign("center").run()
507
507
  }, null, 8, [
508
508
  "icon",
509
509
  "label",
510
510
  "active"
511
511
  ]),
512
- u(X, {
513
- icon: h(re),
514
- label: h(y).paragraphEditor.alignRight,
515
- active: e.editor.isActive({ textAlign: "right" }),
516
- onClick: n[13] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
512
+ b(X, {
513
+ icon: g(re),
514
+ label: g(l).paragraphEditor.alignRight,
515
+ active: t.editor.isActive({ textAlign: "right" }),
516
+ onClick: r[13] ||= (e) => t.editor.chain().focus().setTextAlign("right").run()
517
517
  }, null, 8, [
518
518
  "icon",
519
519
  "label",
520
520
  "active"
521
521
  ]),
522
- u(Z),
523
- u(Q, {
522
+ b(Z),
523
+ b(Q, {
524
524
  "model-value": N(),
525
- options: h(B),
526
- label: h(y).paragraphEditor.lineHeight,
525
+ options: g(B),
526
+ label: g(l).paragraphEditor.lineHeight,
527
527
  placeholder: "LH",
528
528
  "width-class": "tpl:w-16",
529
529
  "onUpdate:modelValue": F
@@ -532,10 +532,10 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
532
532
  "options",
533
533
  "label"
534
534
  ]),
535
- u(Q, {
535
+ b(Q, {
536
536
  "model-value": C("letterSpacing"),
537
- options: h(z),
538
- label: h(y).paragraphEditor.letterSpacing,
537
+ options: g(z),
538
+ label: g(l).paragraphEditor.letterSpacing,
539
539
  placeholder: "LS",
540
540
  "width-class": "tpl:w-20",
541
541
  "onUpdate:modelValue": L
@@ -544,46 +544,46 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
544
544
  "options",
545
545
  "label"
546
546
  ]),
547
- u(Z),
548
- u(X, {
549
- icon: h(U),
550
- label: h(y).paragraphEditor.clearFormatting,
551
- onClick: n[14] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
547
+ b(Z),
548
+ b(X, {
549
+ icon: g(U),
550
+ label: g(l).paragraphEditor.clearFormatting,
551
+ onClick: r[14] ||= (e) => t.editor.chain().focus().clearNodes().unsetAllMarks().run()
552
552
  }, null, 8, ["icon", "label"]),
553
- u(Z),
554
- u(le, { onInsert: S }),
555
- e.canRequestMergeTag ? (r(), l(d, { key: 0 }, [u(Z), _("button", {
553
+ b(Z),
554
+ b(le, { onInsert: S }),
555
+ t.canRequestMergeTag ? (e(), d(f, { key: 0 }, [b(Z), u("button", {
556
556
  type: "button",
557
557
  class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-bg-active)]",
558
- "aria-label": h(y).mergeTag.add,
559
- title: h(y).mergeTag.add,
560
- onClick: n[15] ||= (e) => s("add-merge-tag")
561
- }, [u(h(ne), {
558
+ "aria-label": g(l).mergeTag.add,
559
+ title: g(l).mergeTag.add,
560
+ onClick: r[15] ||= (e) => i("add-merge-tag")
561
+ }, [b(g(ne), {
562
562
  size: 16,
563
563
  "stroke-width": 2
564
- }), x(" " + i(h(y).mergeTag.add), 1)], 8, Ce)], 64)) : p("", !0)
565
- ])], 64)) : (r(), l("div", we, [u(h(te), {
564
+ }), a(" " + v(g(l).mergeTag.add), 1)], 8, Ce)], 64)) : p("", !0)
565
+ ])], 64)) : (e(), d("div", we, [b(g(te), {
566
566
  class: "tpl-spinner",
567
567
  size: 14,
568
568
  "stroke-width": 2
569
- }), x(" " + i(h(y).errors.editorLoading), 1)]))], 12, _e)]));
569
+ }), a(" " + v(g(l).errors.editorLoading), 1)]))], 12, _e)]));
570
570
  }
571
- }), Ee = { class: "tpl-text-editor-wrapper tpl:relative" }, De = /* @__PURE__ */ c({
571
+ }), Ee = { class: "tpl-text-editor-wrapper tpl:relative" }, De = /* @__PURE__ */ s({
572
572
  __name: "ParagraphEditor",
573
573
  props: {
574
574
  block: {},
575
575
  toolbarPosition: {}
576
576
  },
577
577
  emits: ["done"],
578
- setup(e, { emit: t }) {
579
- let n = e, i = t, { editor: a, EditorContent: o, isLoading: s, initError: c, retry: d, showLinkDialog: f, linkUrl: p, linkDialogRef: m, canRequestMergeTag: g, openLinkDialog: _, insertLink: v, removeLink: b, closeLinkDialog: x, handleLinkKeydown: S, handleAddMergeTag: w } = C({
580
- blockId: () => n.block.id,
581
- blockContent: () => n.block.content,
582
- onDone: () => i("done"),
578
+ setup(t, { emit: r }) {
579
+ let i = t, a = r, { editor: o, EditorContent: s, isLoading: c, initError: l, retry: u, showLinkDialog: f, linkUrl: p, linkDialogRef: m, canRequestMergeTag: h, openLinkDialog: _, insertLink: v, removeLink: y, closeLinkDialog: x, handleLinkKeydown: S, handleAddMergeTag: w } = C({
580
+ blockId: () => i.block.id,
581
+ blockContent: () => i.block.content,
582
+ onDone: () => a("done"),
583
583
  editorName: "ParagraphEditor",
584
584
  async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
585
585
  let [{ Editor: a, EditorContent: o }, { default: s }, { default: c }, { default: l }, { default: u }, { default: d }, { default: f }, { TextStyle: p }, { default: m }, { default: h }, { default: g }, { MergeTagNode: _, MergeTagSuggestion: v, LogicMergeTagNode: y, FontSize: b, LineHeight: x, LetterSpacing: S }] = await Promise.all([
586
- import("./dist-BFawx6IS.js").then((e) => e.r),
586
+ import("./dist-Pk4MhWMP.js").then((e) => e.r),
587
587
  import("./dist-D90y8dvT.js"),
588
588
  import("./dist-DDJIWTRY.js"),
589
589
  import("./dist-KoBJjK1G.js"),
@@ -594,7 +594,7 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
594
594
  import("./dist-D6uC2xhi.js"),
595
595
  import("./dist-wzMIGj-D.js"),
596
596
  import("./dist-DjviJBCi.js"),
597
- import("./extensions-CUcl9Ok4.js")
597
+ import("./extensions-BF39Siqk.js")
598
598
  ]);
599
599
  return {
600
600
  TiptapEditor: a,
@@ -638,14 +638,14 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
638
638
  };
639
639
  }
640
640
  });
641
- return (t, n) => (r(), l("div", Ee, [
642
- u(Te, {
643
- editor: h(a),
644
- "toolbar-position": e.toolbarPosition,
645
- "is-loading": h(s),
646
- "can-request-merge-tag": h(g),
647
- onOpenLinkDialog: h(_),
648
- onAddMergeTag: h(w)
641
+ return (r, i) => (e(), d("div", Ee, [
642
+ b(Te, {
643
+ editor: g(o),
644
+ "toolbar-position": t.toolbarPosition,
645
+ "is-loading": g(c),
646
+ "can-request-merge-tag": g(h),
647
+ onOpenLinkDialog: g(_),
648
+ onAddMergeTag: g(w)
649
649
  }, null, 8, [
650
650
  "editor",
651
651
  "toolbar-position",
@@ -654,12 +654,12 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
654
654
  "onOpenLinkDialog",
655
655
  "onAddMergeTag"
656
656
  ]),
657
- u(F, {
658
- editor: h(a),
659
- "editor-content": h(o),
660
- "is-loading": h(s),
661
- "init-error": h(c),
662
- onRetry: h(d)
657
+ b(F, {
658
+ editor: g(o),
659
+ "editor-content": g(s),
660
+ "is-loading": g(c),
661
+ "init-error": g(l),
662
+ onRetry: g(u)
663
663
  }, null, 8, [
664
664
  "editor",
665
665
  "editor-content",
@@ -667,17 +667,17 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
667
667
  "init-error",
668
668
  "onRetry"
669
669
  ]),
670
- u(N, {
671
- visible: h(f),
672
- "is-editing-link": h(a)?.isActive("link") ?? !1,
673
- "dialog-ref": h(m),
674
- "onUpdate:dialogRef": n[0] ||= (e) => y(m) ? m.value = e : null,
675
- "link-url": h(p),
676
- "onUpdate:linkUrl": n[1] ||= (e) => y(p) ? p.value = e : null,
677
- onClose: h(x),
678
- onInsert: h(v),
679
- onRemove: h(b),
680
- onKeydown: h(S)
670
+ b(N, {
671
+ visible: g(f),
672
+ "is-editing-link": g(o)?.isActive("link") ?? !1,
673
+ "dialog-ref": g(m),
674
+ "onUpdate:dialogRef": i[0] ||= (e) => n(m) ? m.value = e : null,
675
+ "link-url": g(p),
676
+ "onUpdate:linkUrl": i[1] ||= (e) => n(p) ? p.value = e : null,
677
+ onClose: g(x),
678
+ onInsert: g(v),
679
+ onRemove: g(y),
680
+ onKeydown: g(S)
681
681
  }, null, 8, [
682
682
  "visible",
683
683
  "is-editing-link",