@templatical/editor 0.8.5 → 0.9.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 (102) hide show
  1. package/dist/{AiChatSidebar-uhkhnXQd.js → AiChatSidebar-BUKj9n02.js} +4 -4
  2. package/dist/{AiFeatureMenu-DXNKvXP5.js → AiFeatureMenu-Co14YVJt.js} +3 -3
  3. package/dist/{BlockIssueBadge-DM-vXeD6.js → BlockIssueBadge-DThKKeub.js} +2 -2
  4. package/dist/{CloudEditor-BSkPQjwo.js → CloudEditor-CAtw_sFC.js} +217 -216
  5. package/dist/{CollaboratorBar-CP76Sh6c.js → CollaboratorBar-Bc6q0gB9.js} +2 -2
  6. package/dist/{CommentsSidebar-_llWQ4VT.js → CommentsSidebar-DiH4R4F0.js} +3 -3
  7. package/dist/{CountdownBlock-I99sC0C5.js → CountdownBlock-BTPefclD.js} +2 -2
  8. package/dist/{CountdownToolbar-BUhOUiQ9.js → CountdownToolbar-Dvr2icg-.js} +2 -2
  9. package/dist/{DesignReferenceSidebar-CfJqJ7l6.js → DesignReferenceSidebar-BP32MgpS.js} +2 -2
  10. package/dist/{IssuesPanel-4MKZe8yP.js → IssuesPanel-B1LT91IX.js} +2 -2
  11. package/dist/{ModuleBrowserModal-BFQTm6uY.js → ModuleBrowserModal-CWegFoOA.js} +77 -85
  12. package/dist/{ModulePreviewCanvas-DeqMpo73.js → ModulePreviewCanvas-D9WUSSRT.js} +2 -2
  13. package/dist/{NumberWithSuffix-CxMFy_j3.js → NumberWithSuffix-CxUBW_V2.js} +2 -2
  14. package/dist/{ParagraphEditor-DqomSbW3.js → ParagraphEditor-DrAz2yot.js} +115 -115
  15. package/dist/{RichTextEditorContent-B_KCY6T1.js → RichTextEditorContent-gR169m1-.js} +4 -4
  16. package/dist/{SaveModuleDialog-DKcpPeWd.js → SaveModuleDialog-DWidA0c9.js} +6 -6
  17. package/dist/{SnapshotHistory-Z9RQj53S.js → SnapshotHistory-CIo2Jaw-.js} +4 -4
  18. package/dist/{TemplateScoringPanel-BIwEwFxD.js → TemplateScoringPanel-seBvvn8O.js} +2 -2
  19. package/dist/{TestEmailModal-C8DhylO1.js → TestEmailModal-BuCuWp3N.js} +3 -3
  20. package/dist/{TitleEditor-CgLrn6R3.js → TitleEditor-BmW0uMl7.js} +64 -64
  21. package/dist/{TplModal-CbwRwmR3.js → TplModal-YFpBaiLj.js} +4 -4
  22. package/dist/{blockTypeIcons-CccKujXP.js → blockTypeIcons-DCkHXPhx.js} +19 -11
  23. package/dist/bundle-stats.json +8 -8
  24. package/dist/cdn/chunks/{AiFeatureMenu-ChNv7XXj.js → AiFeatureMenu-Dayzk2H7.js} +2 -2
  25. package/dist/cdn/chunks/{AiFeatureMenu-ChNv7XXj.js.map → AiFeatureMenu-Dayzk2H7.js.map} +1 -1
  26. package/dist/cdn/chunks/{BlockIssueBadge-BovmWgok.js → BlockIssueBadge-D_US2wqo.js} +4 -4
  27. package/dist/cdn/chunks/{BlockIssueBadge-BovmWgok.js.map → BlockIssueBadge-D_US2wqo.js.map} +1 -1
  28. package/dist/cdn/chunks/{CloudEditor-CHF_P5OL.js → CloudEditor-CyJItWsK.js} +186 -185
  29. package/dist/cdn/chunks/{CloudEditor-CHF_P5OL.js.map → CloudEditor-CyJItWsK.js.map} +1 -1
  30. package/dist/cdn/chunks/{CollaboratorBar-Bjr5YSh0.js → CollaboratorBar-C4CFs5EJ.js} +3 -3
  31. package/dist/cdn/chunks/{CollaboratorBar-Bjr5YSh0.js.map → CollaboratorBar-C4CFs5EJ.js.map} +1 -1
  32. package/dist/cdn/chunks/{CountdownBlock-KyzvhjMF.js → CountdownBlock-D6lCXhZA.js} +2 -2
  33. package/dist/cdn/chunks/{CountdownBlock-KyzvhjMF.js.map → CountdownBlock-D6lCXhZA.js.map} +1 -1
  34. package/dist/cdn/chunks/{CountdownToolbar-bJtMHGYz.js → CountdownToolbar-BsGUxoRv.js} +3 -3
  35. package/dist/cdn/chunks/{CountdownToolbar-bJtMHGYz.js.map → CountdownToolbar-BsGUxoRv.js.map} +1 -1
  36. package/dist/cdn/chunks/{IssuesPanel-DFSYTQXy.js → IssuesPanel-DeHTmRDz.js} +5 -5
  37. package/dist/cdn/chunks/{IssuesPanel-DFSYTQXy.js.map → IssuesPanel-DeHTmRDz.js.map} +1 -1
  38. package/dist/cdn/chunks/{ModuleBrowserModal-DS0BGRhZ.js → ModuleBrowserModal-Cgjz4xAz.js} +8 -8
  39. package/dist/cdn/chunks/ModuleBrowserModal-Cgjz4xAz.js.map +1 -0
  40. package/dist/cdn/chunks/{ModulePreviewCanvas-Dwn2cA5a.js → ModulePreviewCanvas-CeS9PsAA.js} +2 -2
  41. package/dist/cdn/chunks/{ModulePreviewCanvas-Dwn2cA5a.js.map → ModulePreviewCanvas-CeS9PsAA.js.map} +1 -1
  42. package/dist/cdn/chunks/{NumberWithSuffix-BNBeHv0P.js → NumberWithSuffix-Bp-idLCc.js} +2 -2
  43. package/dist/cdn/chunks/{NumberWithSuffix-BNBeHv0P.js.map → NumberWithSuffix-Bp-idLCc.js.map} +1 -1
  44. package/dist/cdn/chunks/{ParagraphEditor-C4TrTIOm.js → ParagraphEditor-fM9aFu8T.js} +105 -105
  45. package/dist/cdn/chunks/ParagraphEditor-fM9aFu8T.js.map +1 -0
  46. package/dist/cdn/chunks/{RichTextEditorContent-HNFFL4aK.js → RichTextEditorContent-DwNPE5H5.js} +4 -4
  47. package/dist/cdn/chunks/{RichTextEditorContent-HNFFL4aK.js.map → RichTextEditorContent-DwNPE5H5.js.map} +1 -1
  48. package/dist/cdn/chunks/{SaveModuleDialog-CbHqqeID.js → SaveModuleDialog-BrtDXzIz.js} +4 -4
  49. package/dist/cdn/chunks/SaveModuleDialog-BrtDXzIz.js.map +1 -0
  50. package/dist/cdn/chunks/TitleEditor-D0rSnye0.js +175 -0
  51. package/dist/cdn/chunks/TitleEditor-D0rSnye0.js.map +1 -0
  52. package/dist/cdn/chunks/{blockTypeIcons-BUlgu9JL.js → blockTypeIcons-YOEe5mDE.js} +3 -3
  53. package/dist/cdn/chunks/{blockTypeIcons-BUlgu9JL.js.map → blockTypeIcons-YOEe5mDE.js.map} +1 -1
  54. package/dist/{de-ED7c5RpG.js → cdn/chunks/de-CATfXDKV.js} +14 -1
  55. package/dist/cdn/chunks/{de-ED7c5RpG.js.map → de-CATfXDKV.js.map} +1 -1
  56. package/dist/cdn/chunks/{en-ivilDUn0.js → en-CwCAgYL5.js} +13 -2
  57. package/dist/cdn/chunks/{en-ivilDUn0.js.map → en-CwCAgYL5.js.map} +1 -1
  58. package/dist/cdn/chunks/{extensions-DK_lVs7A.js → extensions-GYsbQFPr.js} +25 -22
  59. package/dist/cdn/chunks/extensions-GYsbQFPr.js.map +1 -0
  60. package/dist/cdn/chunks/{features-LiilsBqW.js → features-D-2kVhHY.js} +1232 -1189
  61. package/dist/cdn/chunks/features-D-2kVhHY.js.map +1 -0
  62. package/dist/cdn/chunks/{icons-Bn2SIR30.js → icons-fZoyKV_s.js} +2 -2
  63. package/dist/cdn/chunks/{icons-Bn2SIR30.js.map → icons-fZoyKV_s.js.map} +1 -1
  64. package/dist/cdn/chunks/{media-library-Bb2PavAd.js → media-library-CO2WOETY.js} +240 -240
  65. package/dist/cdn/chunks/{media-library-Bb2PavAd.js.map → media-library-CO2WOETY.js.map} +1 -1
  66. package/dist/{pt-BR-B5tm2iBl.js → cdn/chunks/pt-BR-D3Mg7AKe.js} +14 -1
  67. package/dist/cdn/chunks/{pt-BR-B5tm2iBl.js.map → pt-BR-D3Mg7AKe.js.map} +1 -1
  68. package/dist/cdn/chunks/{quality-Bpj6kNxR.js → quality-BxPiS-wv.js} +464 -464
  69. package/dist/cdn/chunks/{quality-Bpj6kNxR.js.map → quality-BxPiS-wv.js.map} +1 -1
  70. package/dist/cdn/chunks/{renderer-CYYyu-Di.js → renderer-7z2t_bYQ.js} +68 -68
  71. package/dist/cdn/chunks/{renderer-CYYyu-Di.js.map → renderer-7z2t_bYQ.js.map} +1 -1
  72. package/dist/cdn/chunks/{src-CQjZnxvw.js → src-ftxPuuQh.js} +4 -4
  73. package/dist/cdn/chunks/{src-CQjZnxvw.js.map → src-ftxPuuQh.js.map} +1 -1
  74. package/dist/cdn/chunks/{styles-5g8XOS68.js → styles-o0HIrw9F.js} +877 -622
  75. package/dist/cdn/chunks/styles-o0HIrw9F.js.map +1 -0
  76. package/dist/cdn/editor.css +1 -1
  77. package/dist/cdn/editor.js +102 -101
  78. package/dist/cdn/editor.js.map +1 -1
  79. package/dist/{cdn/chunks/de-ED7c5RpG.js → de-CATfXDKV.js} +12 -3
  80. package/dist/{dist-HO0vjY5Z.js → dist-CNLAS2v2.js} +130 -124
  81. package/dist/{en-ivilDUn0.js → en-CwCAgYL5.js} +12 -1
  82. package/dist/{extensions-DeNHyWwh.js → extensions-Mj2-D8uK.js} +6 -3
  83. package/dist/{keys-B8K7Z7Ef.js → keys-BiQlvx51.js} +3 -3
  84. package/dist/{cdn/chunks/pt-BR-B5tm2iBl.js → pt-BR-D3Mg7AKe.js} +12 -3
  85. package/dist/style.css +1 -1
  86. package/dist/{styles-Bgqv7rLA.js → styles-CJtcKmsx.js} +857 -601
  87. package/dist/templatical-editor.js +104 -103
  88. package/dist/{useCloudI18n-DFzVgYhJ.js → useCloudI18n-DKWJg6rJ.js} +1 -1
  89. package/dist/{useEditorCore-CaOVDL_m.js → useEditorCore-CEkf_VWX.js} +662 -632
  90. package/dist/{useI18n-CBbStVlD.js → useI18n-Besvmtxy.js} +1 -1
  91. package/dist/useMergeTag-WNzaCpXR.js +44 -0
  92. package/dist/{usePopoverRoot-62PlZQQ3.js → usePopoverRoot-CKt956u-.js} +1 -1
  93. package/package.json +7 -7
  94. package/dist/cdn/chunks/ModuleBrowserModal-DS0BGRhZ.js.map +0 -1
  95. package/dist/cdn/chunks/ParagraphEditor-C4TrTIOm.js.map +0 -1
  96. package/dist/cdn/chunks/SaveModuleDialog-CbHqqeID.js.map +0 -1
  97. package/dist/cdn/chunks/TitleEditor-gr-eBUq_.js +0 -175
  98. package/dist/cdn/chunks/TitleEditor-gr-eBUq_.js.map +0 -1
  99. package/dist/cdn/chunks/extensions-DK_lVs7A.js.map +0 -1
  100. package/dist/cdn/chunks/features-LiilsBqW.js.map +0 -1
  101. package/dist/cdn/chunks/styles-5g8XOS68.js.map +0 -1
  102. package/dist/useMergeTag-RWsgUcSh.js +0 -34
@@ -1,20 +1,20 @@
1
- import { C as e, E as t, G as n, L as r, O as i, Q as a, R as o, U as s, Z as c, d as l, q as u, rt as d, tt as f, w as p, x as m } from "./vue.runtime.esm-bundler-BDSGA5hA.js";
1
+ import { C as e, E as t, G as n, L as r, O as i, Q as a, R as o, U as s, X as c, Z as l, d as u, q as d, rt as f, tt as p, w as m, x as h } from "./vue.runtime.esm-bundler-BDSGA5hA.js";
2
2
  //#region ../../node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.34_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
3
- function h(e, t) {
4
- return s() ? (u(e, t), !0) : !1;
3
+ function g(e, t) {
4
+ return s() ? (d(e, t), !0) : !1;
5
5
  }
6
- var g = /* @__PURE__ */ new WeakMap(), _ = (...t) => {
7
- let n = t[0], r = m()?.proxy ?? s();
6
+ var _ = /* @__PURE__ */ new WeakMap(), v = (...t) => {
7
+ let n = t[0], r = h()?.proxy ?? s();
8
8
  if (r == null && !e()) throw Error("injectLocal must be called in setup");
9
- return r && g.has(r) && n in g.get(r) ? g.get(r)[n] : p(...t);
10
- }, v = typeof window < "u" && typeof document < "u";
9
+ return r && _.has(r) && n in _.get(r) ? _.get(r)[n] : m(...t);
10
+ }, y = typeof window < "u" && typeof document < "u";
11
11
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
12
- var y = (e) => e != null, b = Object.prototype.toString, x = (e) => b.call(e) === "[object Object]", S = () => {}, C = /* @__PURE__ */ w();
13
- function w() {
12
+ var b = (e) => e != null, x = Object.prototype.toString, S = (e) => x.call(e) === "[object Object]", C = () => {}, w = /* @__PURE__ */ T();
13
+ function T() {
14
14
  var e, t;
15
- return v && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
15
+ return y && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
16
16
  }
17
- function T(e, t) {
17
+ function E(e, t) {
18
18
  function n(...n) {
19
19
  return new Promise((r, i) => {
20
20
  Promise.resolve(e(() => t.apply(this, n), {
@@ -26,13 +26,13 @@ function T(e, t) {
26
26
  }
27
27
  return n;
28
28
  }
29
- var E = (e) => e();
30
- function D(e, t = {}) {
31
- let n, r, i = S, a = (e) => {
32
- clearTimeout(e), i(), i = S;
29
+ var D = (e) => e();
30
+ function O(e, t = {}) {
31
+ let n, r, i = C, a = (e) => {
32
+ clearTimeout(e), i(), i = C;
33
33
  }, o;
34
34
  return (s) => {
35
- let c = f(e), l = f(t.maxWait);
35
+ let c = p(e), l = p(t.maxWait);
36
36
  return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
37
37
  i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
38
38
  n && a(n), r = void 0, e(o());
@@ -42,83 +42,89 @@ function D(e, t = {}) {
42
42
  });
43
43
  };
44
44
  }
45
- function O(e) {
45
+ function k(e) {
46
46
  return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
47
47
  }
48
- function k(e) {
48
+ function A(e) {
49
49
  return Array.isArray(e) ? e : [e];
50
50
  }
51
- function A(e) {
52
- return e || m();
51
+ function j(e) {
52
+ return e || h();
53
+ }
54
+ function M(e, t = 200, n = {}) {
55
+ return E(O(t, n), e);
53
56
  }
54
- function j(e, t = 200, n = {}) {
55
- return T(D(t, n), e);
57
+ function N(e, t = 200, n = {}) {
58
+ let i = c(p(e)), a = M(() => {
59
+ i.value = e.value;
60
+ }, t, n);
61
+ return r(e, () => a()), l(i);
56
62
  }
57
- function M(e, t, n = {}) {
58
- let { eventFilter: i = E, ...a } = n;
59
- return r(e, T(i, t), a);
63
+ function P(e, t, n = {}) {
64
+ let { eventFilter: i = D, ...a } = n;
65
+ return r(e, E(i, t), a);
60
66
  }
61
- function N(e, n = !0, r) {
62
- A(r) ? i(e, r) : n ? e() : t(e);
67
+ function F(e, n = !0, r) {
68
+ j(r) ? i(e, r) : n ? e() : t(e);
63
69
  }
64
- function P(e, t = 1e3, i = {}) {
65
- let { immediate: o = !0, immediateCallback: s = !1 } = i, l = null, u = a(!1);
70
+ function I(e, t = 1e3, i = {}) {
71
+ let { immediate: o = !0, immediateCallback: s = !1 } = i, c = null, u = a(!1);
66
72
  function d() {
67
- l &&= (clearInterval(l), null);
73
+ c &&= (clearInterval(c), null);
68
74
  }
69
- function p() {
75
+ function f() {
70
76
  u.value = !1, d();
71
77
  }
72
78
  function m() {
73
- let n = f(t);
74
- n <= 0 || (u.value = !0, s && e(), d(), u.value && (l = setInterval(e, n)));
79
+ let n = p(t);
80
+ n <= 0 || (u.value = !0, s && e(), d(), u.value && (c = setInterval(e, n)));
75
81
  }
76
- return o && v && m(), (n(t) || typeof t == "function") && h(r(t, () => {
77
- u.value && v && m();
78
- })), h(p), {
79
- isActive: c(u),
80
- pause: p,
82
+ return o && y && m(), (n(t) || typeof t == "function") && g(r(t, () => {
83
+ u.value && y && m();
84
+ })), g(f), {
85
+ isActive: l(u),
86
+ pause: f,
81
87
  resume: m
82
88
  };
83
89
  }
84
- function F(e, t, n = {}) {
90
+ function L(e, t, n = {}) {
85
91
  let { immediate: r = !0, immediateCallback: i = !1 } = n, o = a(!1), s;
86
- function l() {
92
+ function c() {
87
93
  s &&= (clearTimeout(s), void 0);
88
94
  }
89
95
  function u() {
90
- o.value = !1, l();
96
+ o.value = !1, c();
91
97
  }
92
98
  function d(...n) {
93
- i && e(), l(), o.value = !0, s = setTimeout(() => {
99
+ i && e(), c(), o.value = !0, s = setTimeout(() => {
94
100
  o.value = !1, s = void 0, e(...n);
95
- }, f(t));
101
+ }, p(t));
96
102
  }
97
- return r && (o.value = !0, v && d()), h(u), {
98
- isPending: c(o),
103
+ return r && (o.value = !0, y && d()), g(u), {
104
+ isPending: l(o),
99
105
  start: d,
100
106
  stop: u
101
107
  };
102
108
  }
103
- function I(e = !1, t = {}) {
109
+ function R(e = !1, t = {}) {
104
110
  let { truthyValue: r = !0, falsyValue: i = !1 } = t, o = n(e), s = a(e);
105
111
  function c(e) {
106
112
  if (arguments.length) return s.value = e, s.value;
107
113
  {
108
- let e = f(r);
109
- return s.value = s.value === e ? f(i) : e, s.value;
114
+ let e = p(r);
115
+ return s.value = s.value === e ? p(i) : e, s.value;
110
116
  }
111
117
  }
112
118
  return o ? c : [s, c];
113
119
  }
114
- function L(e, t, n = {}) {
120
+ function z(e, t, n = {}) {
115
121
  let { debounce: r = 0, maxWait: i = void 0, ...a } = n;
116
- return M(e, t, {
122
+ return P(e, t, {
117
123
  ...a,
118
- eventFilter: D(r, { maxWait: i })
124
+ eventFilter: O(r, { maxWait: i })
119
125
  });
120
126
  }
121
- function R(e, t, n) {
127
+ function B(e, t, n) {
122
128
  return r(e, t, {
123
129
  ...n,
124
130
  immediate: !0
@@ -126,60 +132,60 @@ function R(e, t, n) {
126
132
  }
127
133
  //#endregion
128
134
  //#region ../../node_modules/.pnpm/@vueuse+core@14.3.0_vue@3.5.34_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
129
- var z = v ? window : void 0;
130
- v && window.document, v && window.navigator, v && window.location;
131
- function B(e) {
132
- let t = f(e);
135
+ var V = y ? window : void 0;
136
+ y && window.document, y && window.navigator, y && window.location;
137
+ function H(e) {
138
+ let t = p(e);
133
139
  return t?.$el ?? t;
134
140
  }
135
- function V(...e) {
136
- let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = l(() => {
137
- let t = k(f(e[0])).filter((e) => e != null);
141
+ function U(...e) {
142
+ let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = u(() => {
143
+ let t = A(p(e[0])).filter((e) => e != null);
138
144
  return t.every((e) => typeof e != "string") ? t : void 0;
139
145
  });
140
- return R(() => [
141
- n.value?.map((e) => B(e)) ?? [z].filter((e) => e != null),
142
- k(f(n.value ? e[1] : e[0])),
143
- k(d(n.value ? e[2] : e[1])),
144
- f(n.value ? e[3] : e[2])
146
+ return B(() => [
147
+ n.value?.map((e) => H(e)) ?? [V].filter((e) => e != null),
148
+ A(p(n.value ? e[1] : e[0])),
149
+ A(f(n.value ? e[2] : e[1])),
150
+ p(n.value ? e[3] : e[2])
145
151
  ], ([e, n, r, i], a, o) => {
146
152
  if (!e?.length || !n?.length || !r?.length) return;
147
- let s = x(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
153
+ let s = S(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
148
154
  o(() => {
149
155
  c.forEach((e) => e());
150
156
  });
151
157
  }, { flush: "post" });
152
158
  }
153
- var H = !1;
154
- function U(e, t, n = {}) {
155
- let { window: r = z, ignore: i = [], capture: a = !0, detectIframe: o = !1, controls: s = !1 } = n;
159
+ var W = !1;
160
+ function G(e, t, n = {}) {
161
+ let { window: r = V, ignore: i = [], capture: a = !0, detectIframe: o = !1, controls: s = !1 } = n;
156
162
  if (!r) return s ? {
157
- stop: S,
158
- cancel: S,
159
- trigger: S
160
- } : S;
161
- if (C && !H) {
162
- H = !0;
163
+ stop: C,
164
+ cancel: C,
165
+ trigger: C
166
+ } : C;
167
+ if (w && !W) {
168
+ W = !0;
163
169
  let e = { passive: !0 };
164
- Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", S, e)), r.document.documentElement.addEventListener("click", S, e);
170
+ Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", C, e)), r.document.documentElement.addEventListener("click", C, e);
165
171
  }
166
- let c = !0, l = (e) => f(i).some((t) => {
172
+ let c = !0, l = (e) => p(i).some((t) => {
167
173
  if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
168
174
  {
169
- let n = B(t);
175
+ let n = H(t);
170
176
  return n && (e.target === n || e.composedPath().includes(n));
171
177
  }
172
178
  });
173
179
  function u(e) {
174
- let t = f(e);
180
+ let t = p(e);
175
181
  return t && t.$.subTree.shapeFlag === 16;
176
182
  }
177
183
  function d(e, t) {
178
- let n = f(e), r = n.$.subTree && n.$.subTree.children;
184
+ let n = p(e), r = n.$.subTree && n.$.subTree.children;
179
185
  return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
180
186
  }
181
- let p = (n) => {
182
- let r = B(e);
187
+ let f = (n) => {
188
+ let r = H(e);
183
189
  if (n.target != null && !(!(r instanceof Element) && u(e) && d(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
184
190
  if ("detail" in n && n.detail === 0 && (c = !l(n)), !c) {
185
191
  c = !0;
@@ -188,21 +194,21 @@ function U(e, t, n = {}) {
188
194
  t(n);
189
195
  }
190
196
  }, m = !1, h = [
191
- V(r, "click", (e) => {
197
+ U(r, "click", (e) => {
192
198
  m || (m = !0, setTimeout(() => {
193
199
  m = !1;
194
- }, 0), p(e));
200
+ }, 0), f(e));
195
201
  }, {
196
202
  passive: !0,
197
203
  capture: a
198
204
  }),
199
- V(r, "pointerdown", (t) => {
200
- let n = B(e);
205
+ U(r, "pointerdown", (t) => {
206
+ let n = H(e);
201
207
  c = !l(t) && !!(n && !t.composedPath().includes(n));
202
208
  }, { passive: !0 }),
203
- o && V(r, "blur", (n) => {
209
+ o && U(r, "blur", (n) => {
204
210
  setTimeout(() => {
205
- let i = B(e), a = r.document.activeElement;
211
+ let i = H(e), a = r.document.activeElement;
206
212
  for (; a?.shadowRoot;) a = a.shadowRoot.activeElement;
207
213
  a?.tagName === "IFRAME" && !i?.contains(r.document.activeElement) && t(n);
208
214
  }, 0);
@@ -214,68 +220,68 @@ function U(e, t, n = {}) {
214
220
  c = !1;
215
221
  },
216
222
  trigger: (e) => {
217
- c = !0, p(e), c = !1;
223
+ c = !0, f(e), c = !1;
218
224
  }
219
225
  } : g;
220
226
  }
221
- function W() {
222
- let e = a(!1), t = m();
227
+ function K() {
228
+ let e = a(!1), t = h();
223
229
  return t && i(() => {
224
230
  e.value = !0;
225
231
  }, t), e;
226
232
  }
227
233
  /* @__NO_SIDE_EFFECTS__ */
228
- function G(e) {
229
- let t = W();
230
- return l(() => (t.value, !!e()));
234
+ function q(e) {
235
+ let t = K();
236
+ return u(() => (t.value, !!e()));
231
237
  }
232
- function K(e, t, n = {}) {
233
- let { window: i = z, ...a } = n, o, s = /* @__PURE__ */ G(() => i && "MutationObserver" in i), c = () => {
238
+ function J(e, t, n = {}) {
239
+ let { window: i = V, ...a } = n, o, s = /* @__PURE__ */ q(() => i && "MutationObserver" in i), c = () => {
234
240
  o &&= (o.disconnect(), void 0);
235
- }, u = r(l(() => {
236
- let t = k(f(e)).map(B).filter(y);
241
+ }, l = r(u(() => {
242
+ let t = A(p(e)).map(H).filter(b);
237
243
  return new Set(t);
238
244
  }), (e) => {
239
245
  c(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, a)));
240
246
  }, {
241
247
  immediate: !0,
242
248
  flush: "post"
243
- }), d = () => o?.takeRecords(), p = () => {
244
- u(), c();
249
+ }), d = () => o?.takeRecords(), f = () => {
250
+ l(), c();
245
251
  };
246
- return h(p), {
252
+ return g(f), {
247
253
  isSupported: s,
248
- stop: p,
254
+ stop: f,
249
255
  takeRecords: d
250
256
  };
251
257
  }
252
- var q = Symbol("vueuse-ssr-width");
258
+ var Y = Symbol("vueuse-ssr-width");
253
259
  /* @__NO_SIDE_EFFECTS__ */
254
- function J() {
255
- let t = e() ? _(q, null) : null;
260
+ function X() {
261
+ let t = e() ? v(Y, null) : null;
256
262
  return typeof t == "number" ? t : void 0;
257
263
  }
258
- function Y(e, t = {}) {
259
- let { window: n = z, ssrWidth: r = /* @__PURE__ */ J() } = t, i = /* @__PURE__ */ G(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), s = a(typeof r == "number"), c = a(), u = a(!1);
264
+ function Z(e, t = {}) {
265
+ let { window: n = V, ssrWidth: r = /* @__PURE__ */ X() } = t, i = /* @__PURE__ */ q(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), s = a(typeof r == "number"), c = a(), l = a(!1);
260
266
  return o(() => {
261
267
  if (s.value) {
262
- s.value = !i.value, u.value = f(e).split(",").some((e) => {
268
+ s.value = !i.value, l.value = p(e).split(",").some((e) => {
263
269
  let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), i = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || i);
264
- return n && a && (a = r >= O(n[1])), i && a && (a = r <= O(i[1])), t ? !a : a;
270
+ return n && a && (a = r >= k(n[1])), i && a && (a = r <= k(i[1])), t ? !a : a;
265
271
  });
266
272
  return;
267
273
  }
268
- i.value && (c.value = n.matchMedia(f(e)), u.value = c.value.matches);
269
- }), V(c, "change", (e) => {
270
- u.value = e.matches;
271
- }, { passive: !0 }), l(() => u.value);
274
+ i.value && (c.value = n.matchMedia(p(e)), l.value = c.value.matches);
275
+ }), U(c, "change", (e) => {
276
+ l.value = e.matches;
277
+ }, { passive: !0 }), u(() => l.value);
272
278
  }
273
- function X(e, t, n = {}) {
274
- let { window: i = z, ...a } = n, o, s = /* @__PURE__ */ G(() => i && "ResizeObserver" in i), c = () => {
279
+ function Q(e, t, n = {}) {
280
+ let { window: i = V, ...a } = n, o, s = /* @__PURE__ */ q(() => i && "ResizeObserver" in i), c = () => {
275
281
  o &&= (o.disconnect(), void 0);
276
- }, u = r(l(() => {
277
- let t = f(e);
278
- return Array.isArray(t) ? t.map((e) => B(e)) : [B(t)];
282
+ }, l = r(u(() => {
283
+ let t = p(e);
284
+ return Array.isArray(t) ? t.map((e) => H(e)) : [H(t)];
279
285
  }), (e) => {
280
286
  if (c(), s.value && i) {
281
287
  o = new ResizeObserver(t);
@@ -285,17 +291,17 @@ function X(e, t, n = {}) {
285
291
  immediate: !0,
286
292
  flush: "post"
287
293
  }), d = () => {
288
- c(), u();
294
+ c(), l();
289
295
  };
290
- return h(d), {
296
+ return g(d), {
291
297
  isSupported: s,
292
298
  stop: d
293
299
  };
294
300
  }
295
- function Z(e, t = {}) {
301
+ function $(e, t = {}) {
296
302
  let { reset: n = !0, windowResize: i = !0, windowScroll: o = !0, immediate: s = !0, updateTiming: c = "sync" } = t, l = a(0), u = a(0), d = a(0), f = a(0), p = a(0), m = a(0), h = a(0), g = a(0);
297
303
  function _() {
298
- let t = B(e);
304
+ let t = H(e);
299
305
  if (!t) {
300
306
  n && (l.value = 0, u.value = 0, d.value = 0, f.value = 0, p.value = 0, m.value = 0, h.value = 0, g.value = 0);
301
307
  return;
@@ -306,10 +312,10 @@ function Z(e, t = {}) {
306
312
  function v() {
307
313
  c === "sync" ? _() : c === "next-frame" && requestAnimationFrame(() => _());
308
314
  }
309
- return X(e, v), r(() => B(e), (e) => !e && v()), K(e, v, { attributeFilter: ["style", "class"] }), o && V("scroll", v, {
315
+ return Q(e, v), r(() => H(e), (e) => !e && v()), J(e, v, { attributeFilter: ["style", "class"] }), o && U("scroll", v, {
310
316
  capture: !0,
311
317
  passive: !0
312
- }), i && V("resize", v, { passive: !0 }), N(() => {
318
+ }), i && U("resize", v, { passive: !0 }), F(() => {
313
319
  s && v();
314
320
  }), {
315
321
  height: l,
@@ -324,4 +330,4 @@ function Z(e, t = {}) {
324
330
  };
325
331
  }
326
332
  //#endregion
327
- export { j as a, I as c, Y as i, L as l, Z as n, P as o, V as r, F as s, U as t };
333
+ export { N as a, L as c, Z as i, R as l, $ as n, M as o, U as r, I as s, G as t, z as u };
@@ -390,7 +390,18 @@ var e = {
390
390
  insert: "Insert merge tag",
391
391
  editValue: "Edit merge tag value",
392
392
  deleteMergeTag: "Delete merge tag",
393
- suggestionEmpty: "No matching merge tags"
393
+ suggestionEmpty: "No matching merge tags",
394
+ picker: {
395
+ title: "Insert merge tag",
396
+ searchPlaceholder: "Search merge tags",
397
+ searchAriaLabel: "Search merge tags",
398
+ noResults: "No matching merge tags",
399
+ empty: "No merge tags configured",
400
+ otherGroup: "Other",
401
+ cancel: "Cancel",
402
+ close: "Close",
403
+ groupCount: "{count}"
404
+ }
394
405
  },
395
406
  canvas: {
396
407
  noBlocks: "No blocks yet",
@@ -1,7 +1,7 @@
1
1
  import { A as e, B as t, E as n, M as r, S as i, X as a, a as o, at as s, b as c, c as l, d as u, f as d, h as f, l as p, m, n as h, ot as g, p as _, rt as v, s as y, st as b, z as x } from "./vue.runtime.esm-bundler-BDSGA5hA.js";
2
2
  import { C as S, D as C, n as w, w as T } from "./dist-CIV3Brg-.js";
3
- import { t as E } from "./useI18n-CBbStVlD.js";
4
- import { t as D } from "./useMergeTag-RWsgUcSh.js";
3
+ import { t as E } from "./useI18n-Besvmtxy.js";
4
+ import { t as D } from "./useMergeTag-WNzaCpXR.js";
5
5
  import { Gt as O, P as k, _n as A, bn as j, gn as M, i as N, o as P, p as F, u as I, yn as L } from "./dist-BzuC8o3y.js";
6
6
  import { n as R, t as z } from "./dist-D8C6jIXM.js";
7
7
  //#region src/extensions/FontSize.ts
@@ -380,7 +380,10 @@ var G = I.create({
380
380
  addCommands() {
381
381
  return { insertMergeTag: (e) => ({ commands: t }) => t.insertContent({
382
382
  type: this.name,
383
- attrs: e
383
+ attrs: {
384
+ label: e.label,
385
+ value: e.value
386
+ }
384
387
  }) };
385
388
  },
386
389
  addKeyboardShortcuts() {
@@ -1,10 +1,10 @@
1
1
  import { w as e } from "./vue.runtime.esm-bundler-BDSGA5hA.js";
2
2
  //#region src/keys.ts
3
- var t = Symbol("translations"), n = Symbol("editor"), r = Symbol("history"), i = Symbol("blockActions"), a = Symbol("conditionPreview"), o = Symbol("fontsManager"), s = Symbol("themeStyles"), c = Symbol("tplUiTheme"), l = Symbol("blockDefaults"), u = Symbol("blockRegistry"), d = Symbol("customBlockDefinitions"), f = Symbol("mergeTags"), p = Symbol("mergeTagSyntax"), m = Symbol("onRequestMergeTag"), h = Symbol("mergeTagAutocomplete"), g = Symbol("onRequestMedia"), _ = Symbol("displayConditions"), v = Symbol("allowCustomConditions"), y = Symbol("capabilities"), b = Symbol("keyboardReorder"), x = Symbol("templateLint"), S = Symbol("editorRoot"), C = Symbol("popoverRoot"), w = Symbol("authManager"), T = Symbol("aiConfig"), E = Symbol("comments"), D = Symbol("savedModulesHeadless"), O = Symbol("scoring"), k = Symbol("cloudTranslations");
4
- function A(t, n) {
3
+ var t = Symbol("translations"), n = Symbol("editor"), r = Symbol("history"), i = Symbol("blockActions"), a = Symbol("conditionPreview"), o = Symbol("fontsManager"), s = Symbol("themeStyles"), c = Symbol("tplUiTheme"), l = Symbol("blockDefaults"), u = Symbol("blockRegistry"), d = Symbol("customBlockDefinitions"), f = Symbol("mergeTags"), p = Symbol("mergeTagSyntax"), m = Symbol("onRequestMergeTag"), h = Symbol("mergeTagAutocomplete"), g = Symbol("mergeTagPicker"), _ = Symbol("onRequestMedia"), v = Symbol("displayConditions"), y = Symbol("allowCustomConditions"), b = Symbol("capabilities"), x = Symbol("keyboardReorder"), S = Symbol("templateLint"), C = Symbol("editorRoot"), w = Symbol("popoverRoot"), T = Symbol("authManager"), E = Symbol("aiConfig"), D = Symbol("comments"), O = Symbol("savedModulesHeadless"), k = Symbol("scoring"), A = Symbol("cloudTranslations");
4
+ function j(t, n) {
5
5
  let r = e(t, null);
6
6
  if (r == null) throw Error(`${n} requires a provider for ${t.description ?? "unknown key"}. Ensure it is a descendant of Editor or CloudEditor.`);
7
7
  return r;
8
8
  }
9
9
  //#endregion
10
- export { A, C, s as D, x as E, t as O, m as S, O as T, b as _, l as a, p as b, k as c, d, _ as f, r as g, o as h, i, c as k, E as l, S as m, v as n, u as o, n as p, w as r, y as s, T as t, a as u, f as v, D as w, g as x, h as y };
10
+ export { c as A, m as C, S as D, k as E, s as O, _ as S, O as T, x as _, l as a, g as b, A as c, d, v as f, r as g, o as h, i, j, t as k, D as l, C as m, y as n, u as o, n as p, T as r, b as s, E as t, a as u, f as v, w, p as x, h as y };
@@ -390,7 +390,18 @@ var e = {
390
390
  insert: "Inserir merge tag",
391
391
  editValue: "Editar valor da merge tag",
392
392
  deleteMergeTag: "Excluir merge tag",
393
- suggestionEmpty: "Nenhuma merge tag correspondente"
393
+ suggestionEmpty: "Nenhuma merge tag correspondente",
394
+ picker: {
395
+ title: "Inserir merge tag",
396
+ searchPlaceholder: "Pesquisar merge tags",
397
+ searchAriaLabel: "Pesquisar merge tags",
398
+ noResults: "Nenhuma merge tag correspondente",
399
+ empty: "Nenhuma merge tag configurada",
400
+ otherGroup: "Outros",
401
+ cancel: "Cancelar",
402
+ close: "Fechar",
403
+ groupCount: "{count}"
404
+ }
394
405
  },
395
406
  canvas: {
396
407
  noBlocks: "Nenhum bloco ainda",
@@ -518,5 +529,3 @@ var e = {
518
529
  };
519
530
  //#endregion
520
531
  export { e as default };
521
-
522
- //# sourceMappingURL=pt-BR-B5tm2iBl.js.map