@templatical/editor 0.18.0 → 0.19.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 (109) hide show
  1. package/dist/{AiChatSidebar-BWIzNePR.js → AiChatSidebar-DAQTFuvi.js} +3 -3
  2. package/dist/{AiFeatureMenu-IoLW8c6m.js → AiFeatureMenu-aFSO20PR.js} +4 -4
  3. package/dist/{BlockIssueBadge-FbyZBJlf.js → BlockIssueBadge-BQmq1bxn.js} +2 -2
  4. package/dist/{CloudEditor-txLsdvcR.js → CloudEditor-D0K-m1GA.js} +14 -12
  5. package/dist/{CollaboratorBar-CpLOFt43.js → CollaboratorBar-CJO3l6Dt.js} +2 -2
  6. package/dist/ColorPicker-BsgpTJqK.js +552 -0
  7. package/dist/{CommentsSidebar-C8xFu9qy.js → CommentsSidebar-BYMVucZh.js} +4 -4
  8. package/dist/{CountdownBlock-CaU40Htk.js → CountdownBlock-Bn5w7C-p.js} +1 -1
  9. package/dist/{CountdownToolbar-CBbGAxmF.js → CountdownToolbar-PJI3ffi1.js} +3 -3
  10. package/dist/{DesignReferenceSidebar-BWZgqmT-.js → DesignReferenceSidebar-QfAV8XT9.js} +5 -5
  11. package/dist/{IssuesPanel-CBzfmzRM.js → IssuesPanel-CTjRgz8w.js} +2 -2
  12. package/dist/{ModuleBrowserModal-C9qHpjaS.js → ModuleBrowserModal-BNalLx0k.js} +7 -7
  13. package/dist/{ModulePreviewCanvas-xEMWMJwf.js → ModulePreviewCanvas-BwObwisa.js} +2 -2
  14. package/dist/{NumberWithSuffix-BreqtON_.js → NumberWithSuffix-D3BKz66W.js} +1 -1
  15. package/dist/{ParagraphEditor-iRJI_YbA.js → ParagraphEditor-Cf75UfSo.js} +42 -42
  16. package/dist/{RichTextEditorContent-DkXai9qP.js → RichTextEditorContent-MdaLz6Q3.js} +5 -5
  17. package/dist/{SaveModuleDialog-DqDmk0rO.js → SaveModuleDialog-MTjwiF9D.js} +6 -6
  18. package/dist/{SnapshotHistory-BVe5aCHi.js → SnapshotHistory-C_Y1LzAY.js} +4 -4
  19. package/dist/{TemplateScoringPanel-CRqt9-T5.js → TemplateScoringPanel-DikuKc6i.js} +77 -77
  20. package/dist/{TestEmailModal-jpy4hnYZ.js → TestEmailModal-BW8aTtzf.js} +3 -3
  21. package/dist/{TitleEditor-Bf6Jv2qI.js → TitleEditor-CCUkbRN0.js} +7 -7
  22. package/dist/{TplModal-DAtccv6o.js → TplModal-DoOwUKlT.js} +3 -3
  23. package/dist/{blockTypeIcons-CnlwyvkL.js → blockTypeIcons-BlPKjD7M.js} +1 -1
  24. package/dist/bundle-stats.json +6 -6
  25. package/dist/{ca-CSl--oWR.js → ca-DbWoy4rG.js} +2 -1
  26. package/dist/cdn/chunks/{AiFeatureMenu-B4oJlFQI.js → AiFeatureMenu-RwJiaPXZ.js} +5 -5
  27. package/dist/cdn/chunks/{AiFeatureMenu-B4oJlFQI.js.map → AiFeatureMenu-RwJiaPXZ.js.map} +1 -1
  28. package/dist/cdn/chunks/{BlockIssueBadge-C7Ts7bT7.js → BlockIssueBadge-DM-TDKbr.js} +5 -5
  29. package/dist/cdn/chunks/{BlockIssueBadge-C7Ts7bT7.js.map → BlockIssueBadge-DM-TDKbr.js.map} +1 -1
  30. package/dist/cdn/chunks/{CloudEditor-BRO-2CcF.js → CloudEditor-Dufl354p.js} +132 -130
  31. package/dist/cdn/chunks/CloudEditor-Dufl354p.js.map +1 -0
  32. package/dist/cdn/chunks/{CollaboratorBar-BsWOjOCS.js → CollaboratorBar-xsU20iPl.js} +3 -3
  33. package/dist/cdn/chunks/{CollaboratorBar-BsWOjOCS.js.map → CollaboratorBar-xsU20iPl.js.map} +1 -1
  34. package/dist/{ColorPicker-BXCcUYsZ.js → cdn/chunks/ColorPicker-y_obnw4o.js} +234 -157
  35. package/dist/cdn/chunks/ColorPicker-y_obnw4o.js.map +1 -0
  36. package/dist/cdn/chunks/{CountdownBlock-BUGxk8GI.js → CountdownBlock-sHsRMe1q.js} +2 -2
  37. package/dist/cdn/chunks/{CountdownBlock-BUGxk8GI.js.map → CountdownBlock-sHsRMe1q.js.map} +1 -1
  38. package/dist/cdn/chunks/{CountdownToolbar-C8tWWfGw.js → CountdownToolbar-Ckc_jEi-.js} +4 -4
  39. package/dist/cdn/chunks/{CountdownToolbar-C8tWWfGw.js.map → CountdownToolbar-Ckc_jEi-.js.map} +1 -1
  40. package/dist/cdn/chunks/{IssuesPanel-C5izyrbm.js → IssuesPanel-DF5Ajuna.js} +7 -7
  41. package/dist/cdn/chunks/{IssuesPanel-C5izyrbm.js.map → IssuesPanel-DF5Ajuna.js.map} +1 -1
  42. package/dist/cdn/chunks/{ModuleBrowserModal-DySKXKFF.js → ModuleBrowserModal-DG4AVFjH.js} +8 -8
  43. package/dist/cdn/chunks/{ModuleBrowserModal-DySKXKFF.js.map → ModuleBrowserModal-DG4AVFjH.js.map} +1 -1
  44. package/dist/cdn/chunks/{ModulePreviewCanvas-qqEvLBp2.js → ModulePreviewCanvas-Bc_PcJuc.js} +24 -24
  45. package/dist/cdn/chunks/{ModulePreviewCanvas-qqEvLBp2.js.map → ModulePreviewCanvas-Bc_PcJuc.js.map} +1 -1
  46. package/dist/cdn/chunks/{NumberWithSuffix-DttdbXsh.js → NumberWithSuffix-8fOO-LC_.js} +2 -2
  47. package/dist/cdn/chunks/{NumberWithSuffix-DttdbXsh.js.map → NumberWithSuffix-8fOO-LC_.js.map} +1 -1
  48. package/dist/cdn/chunks/{ParagraphEditor-CQJ23PXU.js → ParagraphEditor-BkafKSju.js} +107 -107
  49. package/dist/cdn/chunks/{ParagraphEditor-CQJ23PXU.js.map → ParagraphEditor-BkafKSju.js.map} +1 -1
  50. package/dist/cdn/chunks/{RichTextEditorContent-C4vxiXng.js → RichTextEditorContent-BthhzOZS.js} +5 -5
  51. package/dist/cdn/chunks/{RichTextEditorContent-C4vxiXng.js.map → RichTextEditorContent-BthhzOZS.js.map} +1 -1
  52. package/dist/cdn/chunks/{SaveModuleDialog-D5eddgzd.js → SaveModuleDialog-DhsfYf2n.js} +4 -4
  53. package/dist/cdn/chunks/{SaveModuleDialog-D5eddgzd.js.map → SaveModuleDialog-DhsfYf2n.js.map} +1 -1
  54. package/dist/cdn/chunks/{TitleEditor-5TkwDrPL.js → TitleEditor-DLv9cXba.js} +8 -8
  55. package/dist/cdn/chunks/{TitleEditor-5TkwDrPL.js.map → TitleEditor-DLv9cXba.js.map} +1 -1
  56. package/dist/cdn/chunks/{blockTypeIcons-CbmN4aSw.js → blockTypeIcons-B0uibGX7.js} +7 -7
  57. package/dist/cdn/chunks/{blockTypeIcons-CbmN4aSw.js.map → blockTypeIcons-B0uibGX7.js.map} +1 -1
  58. package/dist/cdn/chunks/{ca-CSl--oWR.js → ca-DbWoy4rG.js} +3 -2
  59. package/dist/cdn/chunks/{ca-CSl--oWR.js.map → ca-DbWoy4rG.js.map} +1 -1
  60. package/dist/{de-ZaffrKDP.js → cdn/chunks/de-CgGOnerg.js} +4 -1
  61. package/dist/cdn/chunks/{de-ZaffrKDP.js.map → de-CgGOnerg.js.map} +1 -1
  62. package/dist/cdn/chunks/{en-CHuXeJDt.js → en-DrUV9xth.js} +3 -2
  63. package/dist/cdn/chunks/{en-CHuXeJDt.js.map → en-DrUV9xth.js.map} +1 -1
  64. package/dist/{es-CaC8VQjO.js → cdn/chunks/es-DwbKjU7q.js} +4 -1
  65. package/dist/cdn/chunks/{es-CaC8VQjO.js.map → es-DwbKjU7q.js.map} +1 -1
  66. package/dist/cdn/chunks/{extensions-B3M4IqhZ.js → extensions-DLHvZ0UH.js} +19 -19
  67. package/dist/cdn/chunks/{extensions-B3M4IqhZ.js.map → extensions-DLHvZ0UH.js.map} +1 -1
  68. package/dist/cdn/chunks/{features-HBwOEo4D.js → features-Cnfv4QAY.js} +1382 -1298
  69. package/dist/cdn/chunks/features-Cnfv4QAY.js.map +1 -0
  70. package/dist/cdn/chunks/{icons-D4vTsN4p.js → icons-DbcM69bb.js} +2 -2
  71. package/dist/cdn/chunks/{icons-D4vTsN4p.js.map → icons-DbcM69bb.js.map} +1 -1
  72. package/dist/cdn/chunks/{media-library-CfExuiSG.js → media-library-DpSMwHd4.js} +524 -524
  73. package/dist/cdn/chunks/{media-library-CfExuiSG.js.map → media-library-DpSMwHd4.js.map} +1 -1
  74. package/dist/cdn/chunks/{pt-BR-C74zfEWH.js → pt-BR-Bcc5Tjed.js} +3 -2
  75. package/dist/cdn/chunks/{pt-BR-C74zfEWH.js.map → pt-BR-Bcc5Tjed.js.map} +1 -1
  76. package/dist/cdn/chunks/{quality-nh1R42eb.js → quality-D9QqkRcU.js} +77 -77
  77. package/dist/cdn/chunks/{quality-nh1R42eb.js.map → quality-D9QqkRcU.js.map} +1 -1
  78. package/dist/cdn/chunks/{renderer-BLvlUayY.js → renderer-BsLQZNXU.js} +14 -14
  79. package/dist/cdn/chunks/{renderer-BLvlUayY.js.map → renderer-BsLQZNXU.js.map} +1 -1
  80. package/dist/cdn/chunks/{src-Cks4RrLL.js → src-zu1ehVNN.js} +6 -6
  81. package/dist/cdn/chunks/{src-Cks4RrLL.js.map → src-zu1ehVNN.js.map} +1 -1
  82. package/dist/cdn/chunks/{styles-CPCN13az.js → styles-Dx-jXeCd.js} +184 -184
  83. package/dist/cdn/chunks/{styles-CPCN13az.js.map → styles-Dx-jXeCd.js.map} +1 -1
  84. package/dist/cdn/editor.css +1 -1
  85. package/dist/cdn/editor.js +54 -52
  86. package/dist/cdn/editor.js.map +1 -1
  87. package/dist/{cloud-BogxOeZu.js → cloud-B-RebwxI.js} +5 -5
  88. package/dist/{cdn/chunks/de-ZaffrKDP.js → de-CgGOnerg.js} +2 -3
  89. package/dist/{dist-DoRIUsfz.js → dist-BJbqgyPn.js} +108 -94
  90. package/dist/{en-CHuXeJDt.js → en-DrUV9xth.js} +2 -1
  91. package/dist/{cdn/chunks/es-CaC8VQjO.js → es-DwbKjU7q.js} +2 -3
  92. package/dist/{extensions-gpFdCinj.js → extensions-BCA9pyer.js} +11 -11
  93. package/dist/index.d.ts +31 -0
  94. package/dist/keys-DFaIbGR8.js +10 -0
  95. package/dist/{pt-BR-C74zfEWH.js → pt-BR-Bcc5Tjed.js} +2 -1
  96. package/dist/style.css +1 -1
  97. package/dist/{styles-CJ6WmkYL.js → styles-64uLkPJV.js} +47 -47
  98. package/dist/templatical-editor.js +13 -11
  99. package/dist/{useCloudI18n-DIn74fK2.js → useCloudI18n-PCDOC2kz.js} +1 -1
  100. package/dist/{useEditorCore-LJJNXXqC.js → useEditorCore-ea9OrrH3.js} +798 -755
  101. package/dist/{useI18n-OaMLWqhY.js → useI18n-BNMzZTM5.js} +1 -1
  102. package/dist/{useMergeTag-CZMgwVvr.js → useMergeTag-DfEY0eK5.js} +5 -5
  103. package/dist/{usePopoverPosition-QDY09q9H.js → usePopoverPosition-F9STHRIr.js} +33 -6
  104. package/package.json +7 -7
  105. package/dist/cdn/chunks/CloudEditor-BRO-2CcF.js.map +0 -1
  106. package/dist/cdn/chunks/ColorPicker-DEtVX4gN.js +0 -471
  107. package/dist/cdn/chunks/ColorPicker-DEtVX4gN.js.map +0 -1
  108. package/dist/cdn/chunks/features-HBwOEo4D.js.map +0 -1
  109. package/dist/keys-DAxnnmXs.js +0 -10
@@ -1,19 +1,19 @@
1
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-D840DIZB.js";
2
- import { $t as S, Bt as C, Ct as w, H as T, Q as E, Z as D, ct as O, dn as k, en as A, fn as ee, ln as te, nn as ne, pn as j, rt as M, st as N, tn as re } from "./features-HBwOEo4D.js";
3
- import { B as ie, C as ae, H as oe, L as se, R as ce, X as le, Z as ue, b as de, c as fe, d as P, f as pe, g as F, i as me, l as he, o as ge, s as _e } from "./icons-D4vTsN4p.js";
4
- import { c as ve, o as ye, r as be, s as xe, t as I } from "./ColorPicker-DEtVX4gN.js";
5
- import { n as L, t as R } from "./RichTextEditorContent-C4vxiXng.js";
2
+ import { H as S, Ht as C, Q as w, St as T, Z as E, an as D, fn as O, gn as k, hn as A, in as ee, mn as te, nn as ne, nt as j, ot as M, rn as re, st as N } from "./features-Cnfv4QAY.js";
3
+ import { B as ie, C as ae, H as oe, L as se, R as ce, X as le, Z as ue, b as de, c as fe, d as pe, f as me, g as P, i as he, l as ge, o as _e, s as ve } from "./icons-DbcM69bb.js";
4
+ import { c as ye, o as be, r as xe, s as Se, t as F } from "./ColorPicker-y_obnw4o.js";
5
+ import { n as I, t as L } from "./RichTextEditorContent-BthhzOZS.js";
6
6
  //#region src/components/blocks/EmojiPickerDropdown.vue?vue&type=script&setup=true&lang.ts
7
- var z = [
7
+ var R = [
8
8
  "aria-label",
9
9
  "title",
10
10
  "aria-expanded"
11
- ], B = ["aria-label"], V = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, H = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, U = ["aria-label", "onClick"], Se = /* @__PURE__ */ b({
11
+ ], z = ["aria-label"], B = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, V = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, H = ["aria-label", "onClick"], Ce = /* @__PURE__ */ b({
12
12
  __name: "EmojiPickerDropdown",
13
13
  emits: ["insert"],
14
14
  setup(e, { emit: t }) {
15
- let i = t, { categories: c, isOpen: m, toggle: _, close: y } = M(), { t: b, format: S } = C(), w = a(null), T = a(null);
16
- N(w, l(() => m.value)), j(T, () => {
15
+ let i = t, { categories: c, isOpen: m, toggle: _, close: y } = j(), { t: b, format: S } = C(), w = a(null), T = a(null);
16
+ M(w, l(() => m.value)), k(T, () => {
17
17
  m.value && y();
18
18
  });
19
19
  function E(e) {
@@ -32,10 +32,10 @@ var z = [
32
32
  "aria-haspopup": "dialog",
33
33
  "aria-controls": "tpl-emoji-picker",
34
34
  onClick: t[0] ||= (...e) => f(_) && f(_)(...e)
35
- }, [x(f(F), {
35
+ }, [x(f(P), {
36
36
  size: 16,
37
37
  "stroke-width": 2
38
- })], 10, z), f(m) ? (n(), u("div", {
38
+ })], 10, R), f(m) ? (n(), u("div", {
39
39
  key: 0,
40
40
  id: "tpl-emoji-picker",
41
41
  ref_key: "pickerRef",
@@ -49,19 +49,19 @@ var z = [
49
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
- }, [g("div", V, s(f(b).emoji[e.key]), 1), g("div", H, [(n(!0), u(v, null, r(e.emojis, (e) => (n(), u("button", {
52
+ }, [g("div", B, s(f(b).emoji[e.key]), 1), g("div", V, [(n(!0), u(v, null, r(e.emojis, (e) => (n(), u("button", {
53
53
  key: e,
54
54
  type: "button",
55
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
57
  onClick: (t) => E(e)
58
- }, s(e), 9, U))), 128))])]))), 128))], 40, B)) : d("", !0)], 512));
58
+ }, s(e), 9, H))), 128))])]))), 128))], 40, z)) : d("", !0)], 512));
59
59
  }
60
- }), W = [
60
+ }), U = [
61
61
  "aria-label",
62
62
  "title",
63
63
  "aria-pressed"
64
- ], G = /* @__PURE__ */ b({
64
+ ], W = /* @__PURE__ */ b({
65
65
  __name: "ToolbarIconButton",
66
66
  props: {
67
67
  icon: {},
@@ -80,20 +80,20 @@ var z = [
80
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, W));
83
+ }, null, 8, ["size", "stroke-width"]))], 10, U));
84
84
  }
85
- }), K = {}, q = {
85
+ }), G = {}, K = {
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 J(e, t) {
90
- return n(), u("span", q);
89
+ function q(e, t) {
90
+ return n(), u("span", K);
91
91
  }
92
- var Y = /*#__PURE__*/ O(K, [["render", J]]), X = [
92
+ var J = /*#__PURE__*/ N(G, [["render", q]]), Y = [
93
93
  "value",
94
94
  "aria-label",
95
95
  "title"
96
- ], Z = { value: "" }, Ce = ["value"], Q = /* @__PURE__ */ b({
96
+ ], X = { value: "" }, we = ["value"], Z = /* @__PURE__ */ b({
97
97
  __name: "ToolbarSelect",
98
98
  props: {
99
99
  modelValue: {},
@@ -120,20 +120,20 @@ var Y = /*#__PURE__*/ O(K, [["render", J]]), X = [
120
120
  "aria-label": e.label,
121
121
  title: e.label,
122
122
  onChange: a
123
- }, [g("option", Z, s(e.placeholder ?? ""), 1), (n(!0), u(v, null, r(e.options, (e) => (n(), u("option", {
123
+ }, [g("option", X, s(e.placeholder ?? ""), 1), (n(!0), u(v, null, r(e.options, (e) => (n(), u("option", {
124
124
  key: o(e),
125
125
  value: o(e)
126
- }, s(c(e)), 9, Ce))), 128))], 42, X));
126
+ }, s(c(e)), 9, we))), 128))], 42, Y));
127
127
  }
128
128
  });
129
129
  //#endregion
130
130
  //#region src/utils/richTextColor.ts
131
- function $(e, t) {
131
+ function Q(e, t) {
132
132
  return e || t || "#000000";
133
133
  }
134
134
  //#endregion
135
135
  //#region src/components/blocks/ParagraphToolbar.vue?vue&type=script&setup=true&lang.ts
136
- var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Ee = { class: "tpl:flex tpl:items-center tpl:gap-1" }, De = ["aria-label", "title"], Oe = ["aria-label", "title"], ke = {
136
+ var $ = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Ee = { class: "tpl:flex tpl:items-center tpl:gap-1" }, De = ["aria-label", "title"], Oe = ["aria-label", "title"], ke = {
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
139
  }, Ae = /* @__PURE__ */ b({
@@ -151,53 +151,53 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
151
151
  "add-logic-tag"
152
152
  ],
153
153
  setup(e, { emit: t }) {
154
- let r = e, a = t, o = i(te, null), p = i(k, null), h = ee(A, "ParagraphToolbar"), b = T(), E = i(ne, null), D = i(re, null), O = i(S, null), j = l(() => (E?.isOpen.value ?? !1) || (D?.isOpen.value ?? !1)), { t: M } = C(), N = h.fonts;
155
- function F(e) {
154
+ let r = e, a = t, o = i(O, null), p = i(te, null), h = A(re, "ParagraphToolbar"), b = S(), w = i(D, null), E = i(ee, null), k = i(ne, null), j = l(() => (w?.isOpen.value ?? !1) || (E?.isOpen.value ?? !1)), { t: M } = C(), N = h.fonts;
155
+ function P(e) {
156
156
  r.editor?.chain().focus().insertContent(e).run();
157
157
  }
158
- function L(e) {
158
+ function I(e) {
159
159
  return r.editor?.getAttributes("textStyle")[e] || "";
160
160
  }
161
- function R(e) {
161
+ function L(e) {
162
162
  let t = r.editor?.chain().focus();
163
163
  e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
164
164
  }
165
- function z(e) {
165
+ function R(e) {
166
166
  let t = r.editor?.chain().focus();
167
167
  e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
168
168
  }
169
- function B() {
169
+ function z() {
170
170
  return r.editor?.isActive("link") ?? !1;
171
171
  }
172
- function V() {
172
+ function B() {
173
173
  return r.editor?.getAttributes("link").color || "";
174
174
  }
175
- function H(e) {
175
+ function V(e) {
176
176
  let t = r.editor?.chain().focus();
177
- t && (B() ? (t.extendMarkRange("link").updateAttributes("link", { color: e || null }), e && t.unsetColor(), t.run()) : e ? t.setColor(e).updateAttributes("link", { color: e }).run() : t.unsetColor().run());
177
+ t && (z() ? (t.extendMarkRange("link").updateAttributes("link", { color: e || null }), e && t.unsetColor(), t.run()) : e ? t.setColor(e).updateAttributes("link", { color: e }).run() : t.unsetColor().run());
178
178
  }
179
- function U() {
180
- let e = O?.content.value.settings;
181
- return B() ? $(V(), e?.linkColor || e?.textColor) : $(L("color"), e?.textColor);
179
+ function H() {
180
+ let e = k?.content.value.settings;
181
+ return z() ? Q(B(), e?.linkColor || e?.textColor) : Q(I("color"), e?.textColor);
182
182
  }
183
- function W() {
184
- return B() ? V() : L("color");
183
+ function U() {
184
+ return z() ? B() : I("color");
185
185
  }
186
- function K() {
186
+ function G() {
187
187
  return r.editor?.getAttributes("paragraph").lineHeight || "";
188
188
  }
189
- function q(e) {
189
+ function K(e) {
190
190
  let t = r.editor?.chain().focus();
191
191
  e ? t?.setLineHeight(e).run() : t?.unsetLineHeight().run();
192
192
  }
193
- function J(e) {
193
+ function q(e) {
194
194
  let t = r.editor?.chain().focus();
195
195
  e && e !== "normal" ? t?.setLetterSpacing(e).run() : t?.unsetLetterSpacing().run();
196
196
  }
197
- function X() {
197
+ function Y() {
198
198
  return r.editor?.getAttributes("highlight").color || "";
199
199
  }
200
- function Z(e) {
200
+ function X(e) {
201
201
  let t = r.editor?.chain().focus();
202
202
  e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
203
203
  }
@@ -217,61 +217,61 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
217
217
  flexDirection: "column"
218
218
  })
219
219
  }, [!e.isLoading && e.editor ? (n(), u(v, { key: 0 }, [g("div", Te, [
220
- x(Q, {
221
- "model-value": L("fontFamily"),
220
+ x(Z, {
221
+ "model-value": I("fontFamily"),
222
222
  options: f(N),
223
223
  label: f(M).paragraphEditor.fontFamily,
224
224
  placeholder: f(M).paragraphEditor.defaultFont,
225
225
  "width-class": "tpl:w-32",
226
- "onUpdate:modelValue": R
226
+ "onUpdate:modelValue": L
227
227
  }, null, 8, [
228
228
  "model-value",
229
229
  "options",
230
230
  "label",
231
231
  "placeholder"
232
232
  ]),
233
- x(Q, {
234
- "model-value": L("fontSize"),
235
- options: f(ye),
233
+ x(Z, {
234
+ "model-value": I("fontSize"),
235
+ options: f(be),
236
236
  label: f(M).paragraphEditor.fontSize,
237
237
  placeholder: f(M).paragraphEditor.defaultSize,
238
238
  "width-class": "tpl:w-20",
239
- "onUpdate:modelValue": z
239
+ "onUpdate:modelValue": R
240
240
  }, null, 8, [
241
241
  "model-value",
242
242
  "options",
243
243
  "label",
244
244
  "placeholder"
245
245
  ]),
246
- x(Y),
247
- x(I, {
246
+ x(J),
247
+ x(F, {
248
248
  "swatch-only": "",
249
249
  size: "sm",
250
250
  "data-testid": "text-color-picker",
251
- "model-value": W(),
252
- "seed-color": U(),
251
+ "model-value": U(),
252
+ "seed-color": H(),
253
253
  "aria-label": f(M).paragraphEditor.textColor,
254
- "onUpdate:modelValue": H
254
+ "onUpdate:modelValue": V
255
255
  }, null, 8, [
256
256
  "model-value",
257
257
  "seed-color",
258
258
  "aria-label"
259
259
  ]),
260
- x(I, {
260
+ x(F, {
261
261
  "swatch-only": "",
262
262
  size: "sm",
263
263
  "data-testid": "highlight-color-picker",
264
- "model-value": X(),
265
- "seed-color": f(be),
264
+ "model-value": Y(),
265
+ "seed-color": f(xe),
266
266
  "aria-label": f(M).paragraphEditor.highlightColor,
267
- "onUpdate:modelValue": Z
267
+ "onUpdate:modelValue": X
268
268
  }, null, 8, [
269
269
  "model-value",
270
270
  "seed-color",
271
271
  "aria-label"
272
272
  ]),
273
- x(Y),
274
- x(G, {
273
+ x(J),
274
+ x(W, {
275
275
  icon: f(ue),
276
276
  label: f(M).paragraphEditor.bold,
277
277
  active: e.editor.isActive("bold"),
@@ -282,7 +282,7 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
282
282
  "label",
283
283
  "active"
284
284
  ]),
285
- x(G, {
285
+ x(W, {
286
286
  icon: f(oe),
287
287
  label: f(M).paragraphEditor.italic,
288
288
  active: e.editor.isActive("italic"),
@@ -292,8 +292,8 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
292
292
  "label",
293
293
  "active"
294
294
  ]),
295
- x(G, {
296
- icon: f(me),
295
+ x(W, {
296
+ icon: f(he),
297
297
  label: f(M).paragraphEditor.underline,
298
298
  active: e.editor.isActive("underline"),
299
299
  onClick: r[2] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
@@ -302,8 +302,8 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
302
302
  "label",
303
303
  "active"
304
304
  ]),
305
- x(G, {
306
- icon: f(pe),
305
+ x(W, {
306
+ icon: f(me),
307
307
  label: f(M).paragraphEditor.strikethrough,
308
308
  active: e.editor.isActive("strike"),
309
309
  onClick: r[3] ||= (t) => e.editor.chain().focus().toggleStrike().run()
@@ -312,9 +312,9 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
312
312
  "label",
313
313
  "active"
314
314
  ]),
315
- x(Y),
316
- x(G, {
317
- icon: f(P),
315
+ x(J),
316
+ x(W, {
317
+ icon: f(pe),
318
318
  label: f(M).paragraphEditor.subscript,
319
319
  active: e.editor.isActive("subscript"),
320
320
  onClick: r[4] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
@@ -323,8 +323,8 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
323
323
  "label",
324
324
  "active"
325
325
  ]),
326
- x(G, {
327
- icon: f(he),
326
+ x(W, {
327
+ icon: f(ge),
328
328
  label: f(M).paragraphEditor.superscript,
329
329
  active: e.editor.isActive("superscript"),
330
330
  onClick: r[5] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
@@ -333,8 +333,8 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
333
333
  "label",
334
334
  "active"
335
335
  ]),
336
- x(Y),
337
- x(G, {
336
+ x(J),
337
+ x(W, {
338
338
  icon: f(ie),
339
339
  label: f(M).paragraphEditor.addLink,
340
340
  active: e.editor.isActive("link"),
@@ -345,7 +345,7 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
345
345
  "active"
346
346
  ])
347
347
  ]), g("div", Ee, [
348
- x(G, {
348
+ x(W, {
349
349
  icon: f(se),
350
350
  label: f(M).paragraphEditor.bulletList,
351
351
  active: e.editor.isActive("bulletList"),
@@ -355,7 +355,7 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
355
355
  "label",
356
356
  "active"
357
357
  ]),
358
- x(G, {
358
+ x(W, {
359
359
  icon: f(ce),
360
360
  label: f(M).paragraphEditor.numberedList,
361
361
  active: e.editor.isActive("orderedList"),
@@ -365,9 +365,9 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
365
365
  "label",
366
366
  "active"
367
367
  ]),
368
- x(Y),
369
- x(G, {
370
- icon: f(ge),
368
+ x(J),
369
+ x(W, {
370
+ icon: f(_e),
371
371
  label: f(M).paragraphEditor.alignLeft,
372
372
  active: e.editor.isActive({ textAlign: "left" }),
373
373
  onClick: r[9] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
@@ -376,7 +376,7 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
376
376
  "label",
377
377
  "active"
378
378
  ]),
379
- x(G, {
379
+ x(W, {
380
380
  icon: f(fe),
381
381
  label: f(M).paragraphEditor.alignCenter,
382
382
  active: e.editor.isActive({ textAlign: "center" }),
@@ -386,8 +386,8 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
386
386
  "label",
387
387
  "active"
388
388
  ]),
389
- x(G, {
390
- icon: f(_e),
389
+ x(W, {
390
+ icon: f(ve),
391
391
  label: f(M).paragraphEditor.alignRight,
392
392
  active: e.editor.isActive({ textAlign: "right" }),
393
393
  onClick: r[11] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
@@ -396,40 +396,40 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
396
396
  "label",
397
397
  "active"
398
398
  ]),
399
- x(Y),
400
- x(Q, {
401
- "model-value": K(),
402
- options: f(ve),
399
+ x(J),
400
+ x(Z, {
401
+ "model-value": G(),
402
+ options: f(ye),
403
403
  label: f(M).paragraphEditor.lineHeight,
404
404
  placeholder: "LH",
405
405
  "width-class": "tpl:w-16",
406
- "onUpdate:modelValue": q
406
+ "onUpdate:modelValue": K
407
407
  }, null, 8, [
408
408
  "model-value",
409
409
  "options",
410
410
  "label"
411
411
  ]),
412
- x(Q, {
413
- "model-value": L("letterSpacing"),
414
- options: f(xe),
412
+ x(Z, {
413
+ "model-value": I("letterSpacing"),
414
+ options: f(Se),
415
415
  label: f(M).paragraphEditor.letterSpacing,
416
416
  placeholder: "LS",
417
417
  "width-class": "tpl:w-20",
418
- "onUpdate:modelValue": J
418
+ "onUpdate:modelValue": q
419
419
  }, null, 8, [
420
420
  "model-value",
421
421
  "options",
422
422
  "label"
423
423
  ]),
424
- x(Y),
425
- x(G, {
424
+ x(J),
425
+ x(W, {
426
426
  icon: f(ae),
427
427
  label: f(M).paragraphEditor.clearFormatting,
428
428
  onClick: r[12] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
429
429
  }, null, 8, ["icon", "label"]),
430
- x(Y),
431
- x(Se, { onInsert: F }),
432
- e.canRequestMergeTag ? (n(), u(v, { key: 0 }, [x(Y), g("button", {
430
+ x(J),
431
+ x(Ce, { onInsert: P }),
432
+ e.canRequestMergeTag ? (n(), u(v, { key: 0 }, [x(J), g("button", {
433
433
  type: "button",
434
434
  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)]",
435
435
  "aria-label": f(M).mergeTag.insert,
@@ -439,7 +439,7 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
439
439
  size: 16,
440
440
  "stroke-width": 2
441
441
  }), y(" " + s(f(M).mergeTag.insertShort), 1)], 8, De)], 64)) : d("", !0),
442
- e.canInsertLogicTag ? (n(), u(v, { key: 1 }, [x(Y), g("button", {
442
+ e.canInsertLogicTag ? (n(), u(v, { key: 1 }, [x(J), g("button", {
443
443
  type: "button",
444
444
  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)]",
445
445
  "aria-label": f(M).logicTag.insert,
@@ -450,11 +450,11 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
450
450
  size: 16,
451
451
  "stroke-width": 2
452
452
  }), y(" " + s(f(M).logicTag.insertShort), 1)], 8, Oe)], 64)) : d("", !0)
453
- ])], 64)) : (n(), u("div", ke, [x(f(w), {
453
+ ])], 64)) : (n(), u("div", ke, [x(f(T), {
454
454
  class: "tpl-spinner",
455
455
  size: 14,
456
456
  "stroke-width": 2
457
- }), y(" " + s(f(M).errors.editorLoading), 1)]))], 12, we)], 8, ["to"])) : d("", !0);
457
+ }), y(" " + s(f(M).errors.editorLoading), 1)]))], 12, $)], 8, ["to"])) : d("", !0);
458
458
  }
459
459
  }), je = { class: "tpl-text-editor-wrapper tpl:relative" }, Me = /* @__PURE__ */ b({
460
460
  __name: "ParagraphEditor",
@@ -464,7 +464,7 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
464
464
  },
465
465
  emits: ["done"],
466
466
  setup(t, { emit: r }) {
467
- let i = t, a = r, o = T(), { editor: s, EditorContent: c, isLoading: l, initError: d, retry: p, showLinkDialog: m, linkUrl: h, linkColor: g, linkDialogRef: _, canRequestMergeTag: v, canInsertLogicTag: y, openLinkDialog: b, insertLink: S, removeLink: C, closeLinkDialog: w, handleLinkKeydown: O, handleAddMergeTag: k, handleAddLogicTag: A } = D({
467
+ let i = t, a = r, o = S(), { editor: s, EditorContent: c, isLoading: l, initError: d, retry: p, showLinkDialog: m, linkUrl: h, linkColor: g, linkDialogRef: _, canRequestMergeTag: v, canInsertLogicTag: y, openLinkDialog: b, insertLink: C, removeLink: T, closeLinkDialog: D, handleLinkKeydown: O, handleAddMergeTag: k, handleAddLogicTag: A } = E({
468
468
  blockId: () => i.block.id,
469
469
  blockContent: () => i.block.content,
470
470
  onDone: () => a("done"),
@@ -482,7 +482,7 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
482
482
  import("./tiptap-C2indasq.js").then((e) => e.f),
483
483
  import("./tiptap-C2indasq.js").then((e) => e.d),
484
484
  import("./tiptap-C2indasq.js").then((e) => e.u),
485
- import("./extensions-B3M4IqhZ.js")
485
+ import("./extensions-DLHvZ0UH.js")
486
486
  ]);
487
487
  return {
488
488
  TiptapEditor: a,
@@ -499,7 +499,7 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
499
499
  u,
500
500
  d,
501
501
  f,
502
- E(l).configure({
502
+ w(l).configure({
503
503
  openOnClick: !1,
504
504
  HTMLAttributes: {
505
505
  target: "_blank",
@@ -549,7 +549,7 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
549
549
  "onAddMergeTag",
550
550
  "onAddLogicTag"
551
551
  ]),
552
- x(R, {
552
+ x(L, {
553
553
  editor: f(s),
554
554
  "editor-content": f(c),
555
555
  "is-loading": f(l),
@@ -562,7 +562,7 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
562
562
  "init-error",
563
563
  "onRetry"
564
564
  ]),
565
- x(L, {
565
+ x(I, {
566
566
  visible: f(m),
567
567
  "is-editing-link": f(s)?.isActive("link") ?? !1,
568
568
  "dialog-ref": f(_),
@@ -571,9 +571,9 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
571
571
  "onUpdate:linkUrl": i[1] ||= (t) => e(h) ? h.value = t : null,
572
572
  "link-color": f(g),
573
573
  "onUpdate:linkColor": i[2] ||= (t) => e(g) ? g.value = t : null,
574
- onClose: f(w),
575
- onInsert: f(S),
576
- onRemove: f(C),
574
+ onClose: f(D),
575
+ onInsert: f(C),
576
+ onRemove: f(T),
577
577
  onKeydown: f(O)
578
578
  }, null, 8, [
579
579
  "visible",
@@ -592,4 +592,4 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
592
592
  //#endregion
593
593
  export { Me as default };
594
594
 
595
- //# sourceMappingURL=ParagraphEditor-CQJ23PXU.js.map
595
+ //# sourceMappingURL=ParagraphEditor-BkafKSju.js.map