@templatical/editor 0.6.7 → 0.7.0

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 (106) hide show
  1. package/README.md +26 -1
  2. package/dist/{AccessibilityPanel-B2MT0M58.js → AccessibilityPanel-D-PqmHdH.js} +2 -2
  3. package/dist/{AiChatSidebar-w5ek3Z76.js → AiChatSidebar-BwLECwsO.js} +1 -1
  4. package/dist/{AiFeatureMenu-ChlAWywJ.js → AiFeatureMenu-CVHKharv.js} +3 -3
  5. package/dist/{BlockA11yBadge-C0S6kPC4.js → BlockA11yBadge-BFIw0h1m.js} +2 -2
  6. package/dist/{CloudEditor-DYYaScFe.js → CloudEditor-DdZatjUe.js} +30 -21
  7. package/dist/{CollaboratorBar-Bo8vtPId.js → CollaboratorBar-VZKOv_Zn.js} +2 -2
  8. package/dist/{CommentsSidebar-BQROg36f.js → CommentsSidebar-BiRtaXYD.js} +3 -3
  9. package/dist/{CountdownBlock-Bxqe7zwL.js → CountdownBlock-Cq8A8WrM.js} +1 -1
  10. package/dist/{CountdownToolbar-CpFAnjSo.js → CountdownToolbar-CojjlZet.js} +2 -2
  11. package/dist/{DesignReferenceSidebar-CfqpcWX6.js → DesignReferenceSidebar-Ci9HIGbf.js} +2 -2
  12. package/dist/ModuleBrowserModal-D7IYx1Nh.js +206 -0
  13. package/dist/{ModulePreviewCanvas-Cw9GeGus.js → ModulePreviewCanvas-I-uMcK5G.js} +2 -2
  14. package/dist/{NumberWithSuffix-Dw8dN1Pt.js → NumberWithSuffix-CLTBb2Rj.js} +1 -1
  15. package/dist/{ParagraphEditor-DjDiUzmv.js → ParagraphEditor-BRQTNDFO.js} +156 -151
  16. package/dist/{RichTextEditorContent-CK3Om7ES.js → RichTextEditorContent-C3QSg7gd.js} +32 -28
  17. package/dist/{SaveModuleDialog-CSUPmfRP.js → SaveModuleDialog-DGGGNZfm.js} +6 -6
  18. package/dist/{SnapshotHistory-DwX2fj6N.js → SnapshotHistory-C97Iw6xw.js} +3 -3
  19. package/dist/{TemplateScoringPanel-BIAeCAEP.js → TemplateScoringPanel-V79yrEPC.js} +3 -3
  20. package/dist/{TestEmailModal-CIlBvWWn.js → TestEmailModal-B7S8H-VG.js} +3 -3
  21. package/dist/{TitleEditor-BCV5k6wj.js → TitleEditor-DhFTYzrw.js} +65 -60
  22. package/dist/{TplModal-C3Hq9b58.js → TplModal-BgABm6ju.js} +21 -17
  23. package/dist/{blockTypeIcons-iUurP50H.js → blockTypeIcons-BSf-3RJ-.js} +1 -1
  24. package/dist/bundle-stats.json +7 -7
  25. package/dist/cdn/chunks/{AccessibilityPanel-DnNB30b0.js → AccessibilityPanel-kgNBRaZV.js} +28 -28
  26. package/dist/cdn/chunks/{AccessibilityPanel-DnNB30b0.js.map → AccessibilityPanel-kgNBRaZV.js.map} +1 -1
  27. package/dist/cdn/chunks/{AiFeatureMenu-BKBh_ueF.js → AiFeatureMenu-CRkzwdMg.js} +15 -15
  28. package/dist/cdn/chunks/{AiFeatureMenu-BKBh_ueF.js.map → AiFeatureMenu-CRkzwdMg.js.map} +1 -1
  29. package/dist/cdn/chunks/{BlockA11yBadge-CnBu14Fj.js → BlockA11yBadge-BfuH2Hrg.js} +9 -9
  30. package/dist/cdn/chunks/{BlockA11yBadge-CnBu14Fj.js.map → BlockA11yBadge-BfuH2Hrg.js.map} +1 -1
  31. package/dist/cdn/chunks/{CloudEditor-CmR17piA.js → CloudEditor-h5JXI8WQ.js} +252 -243
  32. package/dist/cdn/chunks/CloudEditor-h5JXI8WQ.js.map +1 -0
  33. package/dist/cdn/chunks/{CollaboratorBar-BejZaFtY.js → CollaboratorBar-CMl3lAZU.js} +15 -15
  34. package/dist/cdn/chunks/{CollaboratorBar-BejZaFtY.js.map → CollaboratorBar-CMl3lAZU.js.map} +1 -1
  35. package/dist/cdn/chunks/{CountdownBlock-CjvUEHhE.js → CountdownBlock-D1RoaOgF.js} +18 -18
  36. package/dist/cdn/chunks/{CountdownBlock-CjvUEHhE.js.map → CountdownBlock-D1RoaOgF.js.map} +1 -1
  37. package/dist/cdn/chunks/{CountdownToolbar-Caokkqsg.js → CountdownToolbar-DltwuOer.js} +42 -42
  38. package/dist/cdn/chunks/{CountdownToolbar-Caokkqsg.js.map → CountdownToolbar-DltwuOer.js.map} +1 -1
  39. package/dist/cdn/chunks/{ModuleBrowserModal-Tb9a7L-K.js → ModuleBrowserModal-3uu2mXR9.js} +36 -36
  40. package/dist/cdn/chunks/{ModuleBrowserModal-Tb9a7L-K.js.map → ModuleBrowserModal-3uu2mXR9.js.map} +1 -1
  41. package/dist/cdn/chunks/{ModulePreviewCanvas-JWIEv5oS.js → ModulePreviewCanvas-K9CQFr7p.js} +37 -37
  42. package/dist/cdn/chunks/{ModulePreviewCanvas-JWIEv5oS.js.map → ModulePreviewCanvas-K9CQFr7p.js.map} +1 -1
  43. package/dist/cdn/chunks/{NumberWithSuffix-DrV8eumz.js → NumberWithSuffix-BIFgtqGs.js} +74 -74
  44. package/dist/cdn/chunks/{NumberWithSuffix-DrV8eumz.js.map → NumberWithSuffix-BIFgtqGs.js.map} +1 -1
  45. package/dist/cdn/chunks/{ParagraphEditor-CSfShBAO.js → ParagraphEditor-DlpZX_x4.js} +180 -176
  46. package/dist/cdn/chunks/ParagraphEditor-DlpZX_x4.js.map +1 -0
  47. package/dist/cdn/chunks/{RichTextEditorContent-DgqZzl8n.js → RichTextEditorContent-CPGT8h-O.js} +40 -37
  48. package/dist/cdn/chunks/RichTextEditorContent-CPGT8h-O.js.map +1 -0
  49. package/dist/cdn/chunks/{SaveModuleDialog-CxTwrIgx.js → SaveModuleDialog-_uaJscj1.js} +24 -24
  50. package/dist/cdn/chunks/{SaveModuleDialog-CxTwrIgx.js.map → SaveModuleDialog-_uaJscj1.js.map} +1 -1
  51. package/dist/cdn/chunks/TitleEditor-Kerz6US8.js +175 -0
  52. package/dist/cdn/chunks/TitleEditor-Kerz6US8.js.map +1 -0
  53. package/dist/cdn/chunks/{blockTypeIcons-DMt-2qR6.js → blockTypeIcons-BeOhGtoo.js} +7 -7
  54. package/dist/cdn/chunks/{blockTypeIcons-DMt-2qR6.js.map → blockTypeIcons-BeOhGtoo.js.map} +1 -1
  55. package/dist/cdn/chunks/{draggable-CNhyCGIO.js → draggable-P6QWzy4g.js} +1182 -1171
  56. package/dist/cdn/chunks/{draggable-CNhyCGIO.js.map → draggable-P6QWzy4g.js.map} +1 -1
  57. package/dist/cdn/chunks/{extensions-CUvwrffu.js → extensions-BZYkPlKr.js} +107 -108
  58. package/dist/cdn/chunks/extensions-BZYkPlKr.js.map +1 -0
  59. package/dist/cdn/chunks/{features-U3nzKc-R.js → features-DzIN-Nua.js} +925 -896
  60. package/dist/cdn/chunks/features-DzIN-Nua.js.map +1 -0
  61. package/dist/cdn/chunks/{icons-QcjADKIW.js → icons-Nvr6w13E.js} +2 -2
  62. package/dist/cdn/chunks/{icons-QcjADKIW.js.map → icons-Nvr6w13E.js.map} +1 -1
  63. package/dist/cdn/chunks/{media-library-Zcd_GInj.js → media-library-BzT7BoGU.js} +1189 -1183
  64. package/dist/cdn/chunks/media-library-BzT7BoGU.js.map +1 -0
  65. package/dist/cdn/chunks/{quality-8eo6DM3p.js → quality-C328caFm.js} +45 -45
  66. package/dist/cdn/chunks/{quality-8eo6DM3p.js.map → quality-C328caFm.js.map} +1 -1
  67. package/dist/cdn/chunks/{renderer-eHJyPiJH.js → renderer-DYpHh_uV.js} +20 -20
  68. package/dist/cdn/chunks/{renderer-eHJyPiJH.js.map → renderer-DYpHh_uV.js.map} +1 -1
  69. package/dist/cdn/chunks/{src-CthVYW_o.js → src-DKNTQJVO.js} +144 -144
  70. package/dist/cdn/chunks/{src-CthVYW_o.js.map → src-DKNTQJVO.js.map} +1 -1
  71. package/dist/cdn/chunks/{styles-CV5w3kjq.js → styles-DaTht5d7.js} +924 -899
  72. package/dist/cdn/chunks/styles-DaTht5d7.js.map +1 -0
  73. package/dist/cdn/chunks/{tiptap-IyIsncxY.js → tiptap-BwTCLVWl.js} +7 -7
  74. package/dist/cdn/chunks/{tiptap-IyIsncxY.js.map → tiptap-BwTCLVWl.js.map} +1 -1
  75. package/dist/cdn/editor.css +1 -1
  76. package/dist/cdn/editor.js +197 -146
  77. package/dist/cdn/editor.js.map +1 -1
  78. package/dist/{extensions-BF39Siqk.js → extensions-D-J02CiP.js} +50 -51
  79. package/dist/index.d.ts +56 -11
  80. package/dist/{keys-Bqs_0du9.js → keys-B5SJtPWf.js} +3 -3
  81. package/dist/style.css +1 -1
  82. package/dist/{styles-BgmKdc2x.js → styles-D_fEz49o.js} +497 -472
  83. package/dist/templatical-editor.js +182 -131
  84. package/dist/{useCloudI18n-CL_AwWwi.js → useCloudI18n-ByEMykjO.js} +1 -1
  85. package/dist/{useEditorCore-CnXrv71D.js → useEditorCore-uCU9Ny0M.js} +637 -619
  86. package/dist/{useI18n-CgmQftNf.js → useI18n-PEB8ioi_.js} +1 -1
  87. package/dist/{useMergeTag-vpwrZ9eQ.js → useMergeTag-C47xwU7X.js} +2 -2
  88. package/dist/usePopoverRoot-BxJrqnMD.js +8 -0
  89. package/package.json +7 -7
  90. package/dist/ModuleBrowserModal-CKhsaPnA.js +0 -206
  91. package/dist/cdn/chunks/CloudEditor-CmR17piA.js.map +0 -1
  92. package/dist/cdn/chunks/ParagraphEditor-CSfShBAO.js.map +0 -1
  93. package/dist/cdn/chunks/RichTextEditorContent-DgqZzl8n.js.map +0 -1
  94. package/dist/cdn/chunks/TitleEditor-DlqV7ODD.js +0 -171
  95. package/dist/cdn/chunks/TitleEditor-DlqV7ODD.js.map +0 -1
  96. package/dist/cdn/chunks/extensions-CUvwrffu.js.map +0 -1
  97. package/dist/cdn/chunks/features-U3nzKc-R.js.map +0 -1
  98. package/dist/cdn/chunks/media-library-Zcd_GInj.js.map +0 -1
  99. package/dist/cdn/chunks/styles-CV5w3kjq.js.map +0 -1
  100. /package/dist/{de-DcVOh9Fp.js → de-BhIWu_bO.js} +0 -0
  101. /package/dist/{de-DCaaCE5s.js → de-Di4MEjjx.js} +0 -0
  102. /package/dist/{emojiData-PQyVa4bU.js → emojiData-DX3E0XT-.js} +0 -0
  103. /package/dist/{en-DXCyK4-X.js → en-BSuzi-Pd.js} +0 -0
  104. /package/dist/{en-TZVJ_f6v.js → en-D7HRbYah.js} +0 -0
  105. /package/dist/{pt-BR-Vq7D7c11.js → pt-BR-CCVBRais.js} +0 -0
  106. /package/dist/{pt-BR-BMGasLBa.js → pt-BR-K32lt6YP.js} +0 -0
@@ -1,63 +1,63 @@
1
- import { K as e, L as t, M as n, P as r, T as i, Z as a, at as o, c as s, d as c, f as l, g as u, h as d, l as f, m as p, ot as m, p as h, rt as g, st as _, u as v, v as y, x as b, y as x } from "./draggable-CNhyCGIO.js";
2
- import { $t as S, Nt as C, Qt as w, X as T, en as E, et as D, gt as O, q as k, qt as ee, tn as A, tt as j } from "./features-U3nzKc-R.js";
3
- import { B as M, H as N, R as P, X as F, _ as I, c as te, f as ne, i as re, o as ie, p as L, s as R, u as z, w as B, x as V, z as H } from "./icons-QcjADKIW.js";
4
- import { a as U, o as W, s as G } from "./styleConstants-DP1VOca8.js";
5
- import { n as K, t as q } from "./RichTextEditorContent-DgqZzl8n.js";
1
+ import { K as e, L as t, M as n, P as r, T as i, Z as a, c as o, ct as s, d as c, f as l, g as u, h as d, it as f, l as p, m, ot as h, p as g, st as _, u as v, v as y, x as b, y as x } from "./draggable-P6QWzy4g.js";
2
+ import { $t as S, J as C, Jt as w, Pt as T, Z as E, _t as D, a as O, en as k, nn as A, nt as j, tn as ee, tt as M } from "./features-DzIN-Nua.js";
3
+ import { B as N, H as P, R as te, X as ne, _ as F, c as re, f as ie, i as ae, o as oe, p as I, s as L, u as R, w as z, x as B, z as V } from "./icons-Nvr6w13E.js";
4
+ import { a as H, o as U, s as W } from "./styleConstants-DP1VOca8.js";
5
+ import { n as G, t as K } from "./RichTextEditorContent-CPGT8h-O.js";
6
6
  //#region src/components/blocks/EmojiPickerDropdown.vue?vue&type=script&setup=true&lang.ts
7
- var J = [
7
+ var q = [
8
8
  "aria-label",
9
9
  "title",
10
10
  "aria-expanded"
11
- ], Y = ["aria-label"], ae = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, oe = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, se = ["aria-label", "onClick"], ce = /* @__PURE__ */ b({
11
+ ], J = ["aria-label"], Y = { 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__ */ b({
12
12
  __name: "EmojiPickerDropdown",
13
13
  emits: ["insert"],
14
14
  setup(e, { emit: t }) {
15
- let i = t, { categories: c, isOpen: p, toggle: m, close: y } = T(), { t: b, format: S } = C(), w = a(null), E = a(null);
16
- D(w, l(() => p.value)), A(E, () => {
17
- p.value && y();
15
+ let i = t, { categories: c, isOpen: m, toggle: _, close: y } = E(), { t: b, format: S } = T(), C = a(null), w = a(null);
16
+ M(C, l(() => m.value)), A(w, () => {
17
+ m.value && y();
18
18
  });
19
- function O(e) {
19
+ function D(e) {
20
20
  i("insert", e), y();
21
21
  }
22
22
  return (e, t) => (n(), u("div", {
23
23
  ref_key: "rootRef",
24
- ref: E,
24
+ ref: w,
25
25
  class: "tpl:relative"
26
- }, [h("button", {
26
+ }, [g("button", {
27
27
  type: "button",
28
- class: o(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": g(p) }]),
29
- "aria-label": g(b).paragraphEditor.insertEmoji,
30
- title: g(b).paragraphEditor.insertEmoji,
31
- "aria-expanded": g(p),
28
+ class: h(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(m) }]),
29
+ "aria-label": f(b).paragraphEditor.insertEmoji,
30
+ title: f(b).paragraphEditor.insertEmoji,
31
+ "aria-expanded": f(m),
32
32
  "aria-haspopup": "dialog",
33
33
  "aria-controls": "tpl-emoji-picker",
34
- onClick: t[0] ||= (...e) => g(m) && g(m)(...e)
35
- }, [x(g(I), {
34
+ onClick: t[0] ||= (...e) => f(_) && f(_)(...e)
35
+ }, [x(f(F), {
36
36
  size: 16,
37
37
  "stroke-width": 2
38
- })], 10, J), g(p) ? (n(), u("div", {
38
+ })], 10, q), f(m) ? (n(), u("div", {
39
39
  key: 0,
40
40
  id: "tpl-emoji-picker",
41
41
  ref_key: "pickerRef",
42
- ref: w,
42
+ ref: C,
43
43
  role: "dialog",
44
44
  "aria-modal": "false",
45
- "aria-label": g(b).paragraphEditor.insertEmoji,
45
+ "aria-label": f(b).paragraphEditor.insertEmoji,
46
46
  tabindex: "-1",
47
47
  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",
48
- onKeydown: t[1] ||= s(f((...e) => g(y) && g(y)(...e), ["stop", "prevent"]), ["esc"])
49
- }, [(n(!0), u(v, null, r(g(c), (e) => (n(), u("div", {
48
+ onKeydown: t[1] ||= o(p((...e) => f(y) && f(y)(...e), ["stop", "prevent"]), ["esc"])
49
+ }, [(n(!0), u(v, null, r(f(c), (e) => (n(), u("div", {
50
50
  key: e.key,
51
51
  class: "tpl:mb-2 tpl:last:mb-0"
52
- }, [h("div", ae, _(g(b).emoji[e.key]), 1), h("div", oe, [(n(!0), u(v, null, r(e.emojis, (e) => (n(), u("button", {
52
+ }, [g("div", Y, s(f(b).emoji[e.key]), 1), g("div", se, [(n(!0), u(v, null, r(e.emojis, (e) => (n(), u("button", {
53
53
  key: e,
54
54
  type: "button",
55
- "aria-label": g(S)(g(b).paragraphEditor.emojiItemLabel, { emoji: e }),
55
+ "aria-label": f(S)(f(b).paragraphEditor.emojiItemLabel, { emoji: e }),
56
56
  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)]",
57
- onClick: (t) => O(e)
58
- }, _(e), 9, se))), 128))])]))), 128))], 40, Y)) : d("", !0)], 512));
57
+ onClick: (t) => D(e)
58
+ }, s(e), 9, ce))), 128))])]))), 128))], 40, J)) : d("", !0)], 512));
59
59
  }
60
- }), le = [
60
+ }), ue = [
61
61
  "aria-label",
62
62
  "title",
63
63
  "aria-pressed"
@@ -73,27 +73,27 @@ var J = [
73
73
  setup(e) {
74
74
  return (r, i) => (n(), u("button", {
75
75
  type: "button",
76
- class: o(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": e.active }]),
76
+ class: h(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": e.active }]),
77
77
  "aria-label": e.label,
78
78
  title: e.label,
79
79
  "aria-pressed": e.active ? "true" : "false"
80
- }, [(n(), p(t(e.icon), {
80
+ }, [(n(), m(t(e.icon), {
81
81
  size: e.size ?? 16,
82
82
  "stroke-width": e.strokeWidth ?? 2
83
- }, null, 8, ["size", "stroke-width"]))], 10, le));
83
+ }, null, 8, ["size", "stroke-width"]))], 10, ue));
84
84
  }
85
- }), ue = {}, de = {
85
+ }), de = {}, fe = {
86
86
  class: "tpl:mx-1 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
87
87
  "aria-hidden": "true"
88
88
  };
89
- function fe(e, t) {
90
- return n(), u("span", de);
89
+ function pe(e, t) {
90
+ return n(), u("span", fe);
91
91
  }
92
- var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
92
+ var Z = /* @__PURE__ */ j(de, [["render", pe]]), me = [
93
93
  "value",
94
94
  "aria-label",
95
95
  "title"
96
- ], me = { value: "" }, he = ["value"], Q = /* @__PURE__ */ b({
96
+ ], he = { value: "" }, ge = ["value"], Q = /* @__PURE__ */ b({
97
97
  __name: "ToolbarSelect",
98
98
  props: {
99
99
  modelValue: {},
@@ -108,35 +108,35 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
108
108
  function a(e) {
109
109
  i("update:modelValue", e.target.value);
110
110
  }
111
- function s(e) {
111
+ function o(e) {
112
112
  return typeof e == "string" ? e : e.value;
113
113
  }
114
114
  function c(e) {
115
115
  return typeof e == "string" ? e : e.label;
116
116
  }
117
117
  return (t, i) => (n(), u("select", {
118
- 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", e.widthClass ?? "tpl:w-20"]),
118
+ class: h(["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", e.widthClass ?? "tpl:w-20"]),
119
119
  value: e.modelValue,
120
120
  "aria-label": e.label,
121
121
  title: e.label,
122
122
  onChange: a
123
- }, [h("option", me, _(e.placeholder ?? ""), 1), (n(!0), u(v, null, r(e.options, (e) => (n(), u("option", {
124
- key: s(e),
125
- value: s(e)
126
- }, _(c(e)), 9, he))), 128))], 42, pe));
123
+ }, [g("option", he, s(e.placeholder ?? ""), 1), (n(!0), u(v, null, r(e.options, (e) => (n(), u("option", {
124
+ key: o(e),
125
+ value: o(e)
126
+ }, s(c(e)), 9, ge))), 128))], 42, me));
127
127
  }
128
- }), ge = ["data-tpl-theme", "aria-label"], _e = { class: "tpl:flex tpl:items-center tpl:gap-1" }, ve = { class: "tpl:relative" }, ye = [
128
+ }), _e = ["data-tpl-theme", "aria-label"], ve = { class: "tpl:flex tpl:items-center tpl:gap-1" }, ye = { class: "tpl:relative" }, be = [
129
129
  "value",
130
130
  "aria-label",
131
131
  "title"
132
- ], be = { class: "tpl:relative" }, $ = [
132
+ ], $ = { class: "tpl:relative" }, xe = [
133
133
  "value",
134
134
  "aria-label",
135
135
  "title"
136
- ], xe = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Se = ["aria-label", "title"], Ce = {
136
+ ], Se = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Ce = ["aria-label", "title"], we = {
137
137
  key: 1,
138
138
  class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
139
- }, we = /* @__PURE__ */ b({
139
+ }, Te = /* @__PURE__ */ b({
140
140
  __name: "ParagraphToolbar",
141
141
  props: {
142
142
  editor: {},
@@ -146,26 +146,26 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
146
146
  },
147
147
  emits: ["open-link-dialog", "add-merge-tag"],
148
148
  setup(e, { emit: t }) {
149
- let r = e, a = t, o = i(w, null), s = i(S, null), l = E(ee, "ParagraphToolbar"), { t: f } = C(), b = l.fonts;
150
- function T(e) {
149
+ let r = e, a = t, o = i(S, null), l = i(k, null), p = ee(w, "ParagraphToolbar"), h = O(), { t: b } = T(), C = p.fonts;
150
+ function E(e) {
151
151
  r.editor?.chain().focus().insertContent(e).run();
152
152
  }
153
- function D(e) {
153
+ function A(e) {
154
154
  return r.editor?.getAttributes("textStyle")[e] || "";
155
155
  }
156
- function k(e) {
156
+ function j(e) {
157
157
  let t = r.editor?.chain().focus();
158
158
  e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
159
159
  }
160
- function A(e) {
160
+ function M(e) {
161
161
  let t = r.editor?.chain().focus();
162
162
  e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
163
163
  }
164
- function j(e) {
164
+ function F(e) {
165
165
  let t = r.editor?.chain().focus();
166
166
  e ? t?.setColor(e).run() : t?.unsetColor().run();
167
167
  }
168
- function I() {
168
+ function G() {
169
169
  return r.editor?.getAttributes("paragraph").lineHeight || "";
170
170
  }
171
171
  function K(e) {
@@ -183,26 +183,29 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
183
183
  let t = r.editor?.chain().focus();
184
184
  e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
185
185
  }
186
- return (t, r) => (n(), p(c, { to: "body" }, [h("div", {
187
- "data-tpl-theme": g(s),
186
+ return (t, r) => f(h) ? (n(), m(c, {
187
+ key: 0,
188
+ to: f(h)
189
+ }, [g("div", {
190
+ "data-tpl-theme": f(l),
188
191
  role: "toolbar",
189
- "aria-label": g(f).paragraphEditor.toolbar,
192
+ "aria-label": f(b).paragraphEditor.toolbar,
190
193
  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",
191
- style: m({
192
- ...g(o),
194
+ style: _({
195
+ ...f(o),
193
196
  top: `${e.toolbarPosition.top}px`,
194
197
  left: `${e.toolbarPosition.left}px`,
195
198
  transform: "translateY(-100%)",
196
199
  flexDirection: "column"
197
200
  })
198
- }, [!e.isLoading && e.editor ? (n(), u(v, { key: 0 }, [h("div", _e, [
201
+ }, [!e.isLoading && e.editor ? (n(), u(v, { key: 0 }, [g("div", ve, [
199
202
  x(Q, {
200
- "model-value": D("fontFamily"),
201
- options: g(b),
202
- label: g(f).paragraphEditor.fontFamily,
203
- placeholder: g(f).paragraphEditor.defaultFont,
203
+ "model-value": A("fontFamily"),
204
+ options: f(C),
205
+ label: f(b).paragraphEditor.fontFamily,
206
+ placeholder: f(b).paragraphEditor.defaultFont,
204
207
  "width-class": "tpl:w-32",
205
- "onUpdate:modelValue": k
208
+ "onUpdate:modelValue": j
206
209
  }, null, 8, [
207
210
  "model-value",
208
211
  "options",
@@ -210,12 +213,12 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
210
213
  "placeholder"
211
214
  ]),
212
215
  x(Q, {
213
- "model-value": D("fontSize"),
214
- options: g(U),
215
- label: g(f).paragraphEditor.fontSize,
216
- placeholder: g(f).paragraphEditor.defaultSize,
216
+ "model-value": A("fontSize"),
217
+ options: f(H),
218
+ label: f(b).paragraphEditor.fontSize,
219
+ placeholder: f(b).paragraphEditor.defaultSize,
217
220
  "width-class": "tpl:w-20",
218
- "onUpdate:modelValue": A
221
+ "onUpdate:modelValue": M
219
222
  }, null, 8, [
220
223
  "model-value",
221
224
  "options",
@@ -223,27 +226,27 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
223
226
  "placeholder"
224
227
  ]),
225
228
  x(Z),
226
- h("div", ve, [h("input", {
229
+ g("div", ye, [g("input", {
227
230
  type: "color",
228
231
  class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-1",
229
- value: D("color") || g("#000000"),
230
- "aria-label": g(f).paragraphEditor.textColor,
231
- title: g(f).paragraphEditor.textColor,
232
- onInput: r[0] ||= (e) => j(e.target.value)
233
- }, null, 40, ye)]),
234
- h("div", be, [h("input", {
232
+ value: A("color") || f("#000000"),
233
+ "aria-label": f(b).paragraphEditor.textColor,
234
+ title: f(b).paragraphEditor.textColor,
235
+ onInput: r[0] ||= (e) => F(e.target.value)
236
+ }, null, 40, be)]),
237
+ g("div", $, [g("input", {
235
238
  type: "color",
236
239
  class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:p-1",
237
- style: m({ backgroundColor: J() || "var(--tpl-bg)" }),
238
- value: J() || g("#ffff00"),
239
- "aria-label": g(f).paragraphEditor.highlightColor,
240
- title: g(f).paragraphEditor.highlightColor,
240
+ style: _({ backgroundColor: J() || "var(--tpl-bg)" }),
241
+ value: J() || f("#ffff00"),
242
+ "aria-label": f(b).paragraphEditor.highlightColor,
243
+ title: f(b).paragraphEditor.highlightColor,
241
244
  onInput: r[1] ||= (e) => Y(e.target.value)
242
- }, null, 44, $)]),
245
+ }, null, 44, xe)]),
243
246
  x(Z),
244
247
  x(X, {
245
- icon: g(F),
246
- label: g(f).paragraphEditor.bold,
248
+ icon: f(ne),
249
+ label: f(b).paragraphEditor.bold,
247
250
  active: e.editor.isActive("bold"),
248
251
  "stroke-width": 2.5,
249
252
  onClick: r[2] ||= (t) => e.editor.chain().focus().toggleBold().run()
@@ -253,8 +256,8 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
253
256
  "active"
254
257
  ]),
255
258
  x(X, {
256
- icon: g(N),
257
- label: g(f).paragraphEditor.italic,
259
+ icon: f(P),
260
+ label: f(b).paragraphEditor.italic,
258
261
  active: e.editor.isActive("italic"),
259
262
  onClick: r[3] ||= (t) => e.editor.chain().focus().toggleItalic().run()
260
263
  }, null, 8, [
@@ -263,8 +266,8 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
263
266
  "active"
264
267
  ]),
265
268
  x(X, {
266
- icon: g(re),
267
- label: g(f).paragraphEditor.underline,
269
+ icon: f(ae),
270
+ label: f(b).paragraphEditor.underline,
268
271
  active: e.editor.isActive("underline"),
269
272
  onClick: r[4] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
270
273
  }, null, 8, [
@@ -273,8 +276,8 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
273
276
  "active"
274
277
  ]),
275
278
  x(X, {
276
- icon: g(L),
277
- label: g(f).paragraphEditor.strikethrough,
279
+ icon: f(I),
280
+ label: f(b).paragraphEditor.strikethrough,
278
281
  active: e.editor.isActive("strike"),
279
282
  onClick: r[5] ||= (t) => e.editor.chain().focus().toggleStrike().run()
280
283
  }, null, 8, [
@@ -284,8 +287,8 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
284
287
  ]),
285
288
  x(Z),
286
289
  x(X, {
287
- icon: g(ne),
288
- label: g(f).paragraphEditor.subscript,
290
+ icon: f(ie),
291
+ label: f(b).paragraphEditor.subscript,
289
292
  active: e.editor.isActive("subscript"),
290
293
  onClick: r[6] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
291
294
  }, null, 8, [
@@ -294,8 +297,8 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
294
297
  "active"
295
298
  ]),
296
299
  x(X, {
297
- icon: g(z),
298
- label: g(f).paragraphEditor.superscript,
300
+ icon: f(R),
301
+ label: f(b).paragraphEditor.superscript,
299
302
  active: e.editor.isActive("superscript"),
300
303
  onClick: r[7] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
301
304
  }, null, 8, [
@@ -305,8 +308,8 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
305
308
  ]),
306
309
  x(Z),
307
310
  x(X, {
308
- icon: g(M),
309
- label: g(f).paragraphEditor.addLink,
311
+ icon: f(N),
312
+ label: f(b).paragraphEditor.addLink,
310
313
  active: e.editor.isActive("link"),
311
314
  onClick: r[8] ||= (e) => a("open-link-dialog")
312
315
  }, null, 8, [
@@ -314,10 +317,10 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
314
317
  "label",
315
318
  "active"
316
319
  ])
317
- ]), h("div", xe, [
320
+ ]), g("div", Se, [
318
321
  x(X, {
319
- icon: g(P),
320
- label: g(f).paragraphEditor.bulletList,
322
+ icon: f(te),
323
+ label: f(b).paragraphEditor.bulletList,
321
324
  active: e.editor.isActive("bulletList"),
322
325
  onClick: r[9] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
323
326
  }, null, 8, [
@@ -326,8 +329,8 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
326
329
  "active"
327
330
  ]),
328
331
  x(X, {
329
- icon: g(H),
330
- label: g(f).paragraphEditor.numberedList,
332
+ icon: f(V),
333
+ label: f(b).paragraphEditor.numberedList,
331
334
  active: e.editor.isActive("orderedList"),
332
335
  onClick: r[10] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
333
336
  }, null, 8, [
@@ -337,8 +340,8 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
337
340
  ]),
338
341
  x(Z),
339
342
  x(X, {
340
- icon: g(ie),
341
- label: g(f).paragraphEditor.alignLeft,
343
+ icon: f(oe),
344
+ label: f(b).paragraphEditor.alignLeft,
342
345
  active: e.editor.isActive({ textAlign: "left" }),
343
346
  onClick: r[11] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
344
347
  }, null, 8, [
@@ -347,8 +350,8 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
347
350
  "active"
348
351
  ]),
349
352
  x(X, {
350
- icon: g(te),
351
- label: g(f).paragraphEditor.alignCenter,
353
+ icon: f(re),
354
+ label: f(b).paragraphEditor.alignCenter,
352
355
  active: e.editor.isActive({ textAlign: "center" }),
353
356
  onClick: r[12] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
354
357
  }, null, 8, [
@@ -357,8 +360,8 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
357
360
  "active"
358
361
  ]),
359
362
  x(X, {
360
- icon: g(R),
361
- label: g(f).paragraphEditor.alignRight,
363
+ icon: f(L),
364
+ label: f(b).paragraphEditor.alignRight,
362
365
  active: e.editor.isActive({ textAlign: "right" }),
363
366
  onClick: r[13] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
364
367
  }, null, 8, [
@@ -368,9 +371,9 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
368
371
  ]),
369
372
  x(Z),
370
373
  x(Q, {
371
- "model-value": I(),
372
- options: g(G),
373
- label: g(f).paragraphEditor.lineHeight,
374
+ "model-value": G(),
375
+ options: f(W),
376
+ label: f(b).paragraphEditor.lineHeight,
374
377
  placeholder: "LH",
375
378
  "width-class": "tpl:w-16",
376
379
  "onUpdate:modelValue": K
@@ -380,9 +383,9 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
380
383
  "label"
381
384
  ]),
382
385
  x(Q, {
383
- "model-value": D("letterSpacing"),
384
- options: g(W),
385
- label: g(f).paragraphEditor.letterSpacing,
386
+ "model-value": A("letterSpacing"),
387
+ options: f(U),
388
+ label: f(b).paragraphEditor.letterSpacing,
386
389
  placeholder: "LS",
387
390
  "width-class": "tpl:w-20",
388
391
  "onUpdate:modelValue": q
@@ -393,29 +396,29 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
393
396
  ]),
394
397
  x(Z),
395
398
  x(X, {
396
- icon: g(B),
397
- label: g(f).paragraphEditor.clearFormatting,
399
+ icon: f(z),
400
+ label: f(b).paragraphEditor.clearFormatting,
398
401
  onClick: r[14] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
399
402
  }, null, 8, ["icon", "label"]),
400
403
  x(Z),
401
- x(ce, { onInsert: T }),
402
- e.canRequestMergeTag ? (n(), u(v, { key: 0 }, [x(Z), h("button", {
404
+ x(le, { onInsert: E }),
405
+ e.canRequestMergeTag ? (n(), u(v, { key: 0 }, [x(Z), g("button", {
403
406
  type: "button",
404
407
  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)]",
405
- "aria-label": g(f).mergeTag.add,
406
- title: g(f).mergeTag.add,
408
+ "aria-label": f(b).mergeTag.add,
409
+ title: f(b).mergeTag.add,
407
410
  onClick: r[15] ||= (e) => a("add-merge-tag")
408
- }, [x(g(V), {
411
+ }, [x(f(B), {
409
412
  size: 16,
410
413
  "stroke-width": 2
411
- }), y(" " + _(g(f).mergeTag.add), 1)], 8, Se)], 64)) : d("", !0)
412
- ])], 64)) : (n(), u("div", Ce, [x(g(O), {
414
+ }), y(" " + s(f(b).mergeTag.add), 1)], 8, Ce)], 64)) : d("", !0)
415
+ ])], 64)) : (n(), u("div", we, [x(f(D), {
413
416
  class: "tpl-spinner",
414
417
  size: 14,
415
418
  "stroke-width": 2
416
- }), y(" " + _(g(f).errors.editorLoading), 1)]))], 12, ge)]));
419
+ }), y(" " + s(f(b).errors.editorLoading), 1)]))], 12, _e)], 8, ["to"])) : d("", !0);
417
420
  }
418
- }), Te = { class: "tpl-text-editor-wrapper tpl:relative" }, Ee = /* @__PURE__ */ b({
421
+ }), Ee = { class: "tpl-text-editor-wrapper tpl:relative" }, De = /* @__PURE__ */ b({
419
422
  __name: "ParagraphEditor",
420
423
  props: {
421
424
  block: {},
@@ -423,76 +426,77 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
423
426
  },
424
427
  emits: ["done"],
425
428
  setup(t, { emit: r }) {
426
- let i = t, a = r, { editor: o, EditorContent: s, isLoading: c, initError: l, retry: d, showLinkDialog: f, linkUrl: p, linkDialogRef: m, canRequestMergeTag: h, openLinkDialog: _, insertLink: v, removeLink: y, closeLinkDialog: b, handleLinkKeydown: S, handleAddMergeTag: C } = k({
429
+ let i = t, a = r, o = O(), { editor: s, EditorContent: c, isLoading: l, initError: d, retry: p, showLinkDialog: m, linkUrl: h, linkDialogRef: g, canRequestMergeTag: _, openLinkDialog: v, insertLink: y, removeLink: b, closeLinkDialog: S, handleLinkKeydown: w, handleAddMergeTag: T } = C({
427
430
  blockId: () => i.block.id,
428
431
  blockContent: () => i.block.content,
429
432
  onDone: () => a("done"),
430
433
  editorName: "ParagraphEditor",
431
434
  async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
432
- 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([
433
- import("./tiptap-IyIsncxY.js").then((e) => e.i),
434
- import("./tiptap-IyIsncxY.js").then((e) => e.a),
435
- import("./tiptap-IyIsncxY.js").then((e) => e.u),
436
- import("./tiptap-IyIsncxY.js").then((e) => e.o),
437
- import("./tiptap-IyIsncxY.js").then((e) => e.l),
438
- import("./tiptap-IyIsncxY.js").then((e) => e.c),
439
- import("./tiptap-IyIsncxY.js").then((e) => e.s),
440
- import("./tiptap-IyIsncxY.js").then((e) => e.m),
441
- import("./tiptap-IyIsncxY.js").then((e) => e.p),
442
- import("./tiptap-IyIsncxY.js").then((e) => e.f),
443
- import("./tiptap-IyIsncxY.js").then((e) => e.d),
444
- import("./extensions-CUvwrffu.js")
435
+ let [{ Editor: a, EditorContent: s }, { default: c }, { default: l }, { default: u }, { default: d }, { default: f }, { default: p }, { TextStyle: m }, { default: h }, { default: g }, { default: _ }, { MergeTagNode: v, MergeTagSuggestion: y, LogicMergeTagNode: b, FontSize: x, LineHeight: S, LetterSpacing: C }] = await Promise.all([
436
+ import("./tiptap-BwTCLVWl.js").then((e) => e.i),
437
+ import("./tiptap-BwTCLVWl.js").then((e) => e.a),
438
+ import("./tiptap-BwTCLVWl.js").then((e) => e.u),
439
+ import("./tiptap-BwTCLVWl.js").then((e) => e.o),
440
+ import("./tiptap-BwTCLVWl.js").then((e) => e.l),
441
+ import("./tiptap-BwTCLVWl.js").then((e) => e.c),
442
+ import("./tiptap-BwTCLVWl.js").then((e) => e.s),
443
+ import("./tiptap-BwTCLVWl.js").then((e) => e.m),
444
+ import("./tiptap-BwTCLVWl.js").then((e) => e.p),
445
+ import("./tiptap-BwTCLVWl.js").then((e) => e.f),
446
+ import("./tiptap-BwTCLVWl.js").then((e) => e.d),
447
+ import("./extensions-BZYkPlKr.js")
445
448
  ]);
446
449
  return {
447
450
  TiptapEditor: a,
448
- EC: o,
451
+ EC: s,
449
452
  extensions: [
450
- s.configure({
453
+ c.configure({
451
454
  heading: !1,
452
455
  codeBlock: !1,
453
456
  blockquote: !1,
454
457
  horizontalRule: !1
455
458
  }),
456
- l,
457
459
  u,
458
460
  d,
459
- c.configure({
461
+ f,
462
+ l.configure({
460
463
  openOnClick: !1,
461
464
  HTMLAttributes: {
462
465
  target: "_blank",
463
466
  rel: "noopener noreferrer"
464
467
  }
465
468
  }),
466
- f.configure({ types: ["paragraph"] }),
467
- p,
469
+ p.configure({ types: ["paragraph"] }),
468
470
  m,
469
471
  h,
470
- g.configure({ multicolor: !0 }),
471
- b,
472
+ g,
473
+ _.configure({ multicolor: !0 }),
472
474
  x,
473
475
  S,
474
- _.configure({
476
+ C,
477
+ v.configure({
475
478
  mergeTags: e,
476
479
  syntax: t
477
480
  }),
478
- y.configure({ syntax: t }),
479
- ...r && n && e.length > 0 ? [v.configure({
481
+ b.configure({ syntax: t }),
482
+ ...r && n && e.length > 0 ? [y.configure({
480
483
  mergeTags: e,
481
484
  char: n,
482
- emptyText: i
485
+ emptyText: i,
486
+ popoverRoot: o
483
487
  })] : []
484
488
  ]
485
489
  };
486
490
  }
487
491
  });
488
- return (r, i) => (n(), u("div", Te, [
489
- x(we, {
490
- editor: g(o),
492
+ return (r, i) => (n(), u("div", Ee, [
493
+ x(Te, {
494
+ editor: f(s),
491
495
  "toolbar-position": t.toolbarPosition,
492
- "is-loading": g(c),
493
- "can-request-merge-tag": g(h),
494
- onOpenLinkDialog: g(_),
495
- onAddMergeTag: g(C)
496
+ "is-loading": f(l),
497
+ "can-request-merge-tag": f(_),
498
+ onOpenLinkDialog: f(v),
499
+ onAddMergeTag: f(T)
496
500
  }, null, 8, [
497
501
  "editor",
498
502
  "toolbar-position",
@@ -501,12 +505,12 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
501
505
  "onOpenLinkDialog",
502
506
  "onAddMergeTag"
503
507
  ]),
504
- x(q, {
505
- editor: g(o),
506
- "editor-content": g(s),
507
- "is-loading": g(c),
508
- "init-error": g(l),
509
- onRetry: g(d)
508
+ x(K, {
509
+ editor: f(s),
510
+ "editor-content": f(c),
511
+ "is-loading": f(l),
512
+ "init-error": f(d),
513
+ onRetry: f(p)
510
514
  }, null, 8, [
511
515
  "editor",
512
516
  "editor-content",
@@ -514,17 +518,17 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
514
518
  "init-error",
515
519
  "onRetry"
516
520
  ]),
517
- x(K, {
518
- visible: g(f),
519
- "is-editing-link": g(o)?.isActive("link") ?? !1,
520
- "dialog-ref": g(m),
521
- "onUpdate:dialogRef": i[0] ||= (t) => e(m) ? m.value = t : null,
522
- "link-url": g(p),
523
- "onUpdate:linkUrl": i[1] ||= (t) => e(p) ? p.value = t : null,
524
- onClose: g(b),
525
- onInsert: g(v),
526
- onRemove: g(y),
527
- onKeydown: g(S)
521
+ x(G, {
522
+ visible: f(m),
523
+ "is-editing-link": f(s)?.isActive("link") ?? !1,
524
+ "dialog-ref": f(g),
525
+ "onUpdate:dialogRef": i[0] ||= (t) => e(g) ? g.value = t : null,
526
+ "link-url": f(h),
527
+ "onUpdate:linkUrl": i[1] ||= (t) => e(h) ? h.value = t : null,
528
+ onClose: f(S),
529
+ onInsert: f(y),
530
+ onRemove: f(b),
531
+ onKeydown: f(w)
528
532
  }, null, 8, [
529
533
  "visible",
530
534
  "is-editing-link",
@@ -539,6 +543,6 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
539
543
  }
540
544
  });
541
545
  //#endregion
542
- export { Ee as default };
546
+ export { De as default };
543
547
 
544
- //# sourceMappingURL=ParagraphEditor-CSfShBAO.js.map
548
+ //# sourceMappingURL=ParagraphEditor-DlpZX_x4.js.map