@templatical/editor 0.13.0 → 0.15.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 (178) hide show
  1. package/dist/{AiChatSidebar-B0-U5-sb.js → AiChatSidebar-BIKvYREk.js} +57 -56
  2. package/dist/{AiFeatureMenu-DxDwLS8B.js → AiFeatureMenu-QbD82crt.js} +23 -23
  3. package/dist/{BlockIssueBadge-C-EPqWsh.js → BlockIssueBadge-B3xVgMTh.js} +11 -11
  4. package/dist/CloudEditor-DptuSf7A.js +1234 -0
  5. package/dist/{CollaboratorBar-DgwjisX2.js → CollaboratorBar-DrA_K69w.js} +20 -20
  6. package/dist/{CommentsSidebar-CpRLN40c.js → CommentsSidebar-D_tSGvTX.js} +158 -157
  7. package/dist/CountdownBlock-apiYUhkQ.js +92 -0
  8. package/dist/CountdownToolbar-CS0axcjz.js +210 -0
  9. package/dist/{DesignReferenceSidebar-BgPDbOsl.js → DesignReferenceSidebar-DWYK9nTk.js} +58 -57
  10. package/dist/{IssuesPanel-I0z6k6-H.js → IssuesPanel-CR1MPaDE.js} +40 -40
  11. package/dist/{LoadingTrack-C7mGWPHS.js → LoadingTrack-DsecR8Rw.js} +1 -1
  12. package/dist/MergeTagSuggestion-CH2SUxBo.js +1327 -0
  13. package/dist/ModuleBrowserModal-D45rBj5C.js +202 -0
  14. package/dist/{ModulePreviewCanvas-Dni9kK4j.js → ModulePreviewCanvas-BiQ6B2-l.js} +29 -29
  15. package/dist/{NumberWithSuffix-D3fdj0iO.js → NumberWithSuffix-CrA6quxx.js} +143 -142
  16. package/dist/ParagraphEditor-1NaUJpZO.js +721 -0
  17. package/dist/{RichTextEditorContent-Q5altsx1.js → RichTextEditorContent-BqLHIZY7.js} +45 -44
  18. package/dist/{SaveModuleDialog-C38VqN2T.js → SaveModuleDialog-B0sPOTgO.js} +38 -37
  19. package/dist/{SnapshotHistory-ByloTpwh.js → SnapshotHistory-DslVzmSb.js} +34 -33
  20. package/dist/{TemplateScoringPanel-CUxiPtEf.js → TemplateScoringPanel-CZ62rGHz.js} +83 -82
  21. package/dist/{TestEmailModal-BvZBMBad.js → TestEmailModal-DWGniJVu.js} +22 -21
  22. package/dist/TitleEditor-D4t_gZZJ.js +193 -0
  23. package/dist/{TplModal-BYb-X5Bj.js → TplModal-Br2VG6cn.js} +14 -13
  24. package/dist/{blockTypeIcons-CyAom3iI.js → blockTypeIcons-CXhCS5WV.js} +5 -5
  25. package/dist/bundle-stats.json +8 -8
  26. package/dist/cdn/chunks/{AiFeatureMenu-BSoy-SoF.js → AiFeatureMenu-3Slo_LGA.js} +8 -8
  27. package/dist/cdn/chunks/{AiFeatureMenu-BSoy-SoF.js.map → AiFeatureMenu-3Slo_LGA.js.map} +1 -1
  28. package/dist/cdn/chunks/{BlockIssueBadge-BQDUuJxy.js → BlockIssueBadge-BxwEiiF3.js} +5 -5
  29. package/dist/cdn/chunks/{BlockIssueBadge-BQDUuJxy.js.map → BlockIssueBadge-BxwEiiF3.js.map} +1 -1
  30. package/dist/cdn/chunks/{CloudEditor-BZuzsQOZ.js → CloudEditor-DFIFWD9G.js} +163 -161
  31. package/dist/cdn/chunks/CloudEditor-DFIFWD9G.js.map +1 -0
  32. package/dist/cdn/chunks/{CollaboratorBar-DUpSrtDr.js → CollaboratorBar-Cu3vuN66.js} +4 -4
  33. package/dist/cdn/chunks/{CollaboratorBar-DUpSrtDr.js.map → CollaboratorBar-Cu3vuN66.js.map} +1 -1
  34. package/dist/cdn/chunks/{CountdownBlock-DChGTAsH.js → CountdownBlock-BEVAJQtQ.js} +3 -3
  35. package/dist/cdn/chunks/{CountdownBlock-DChGTAsH.js.map → CountdownBlock-BEVAJQtQ.js.map} +1 -1
  36. package/dist/cdn/chunks/{CountdownToolbar-C6gX2SJr.js → CountdownToolbar-CI2sQZv5.js} +4 -4
  37. package/dist/cdn/chunks/{CountdownToolbar-C6gX2SJr.js.map → CountdownToolbar-CI2sQZv5.js.map} +1 -1
  38. package/dist/cdn/chunks/{IssuesPanel-Bo1uhdSe.js → IssuesPanel-BdeDoTcn.js} +11 -11
  39. package/dist/cdn/chunks/{IssuesPanel-Bo1uhdSe.js.map → IssuesPanel-BdeDoTcn.js.map} +1 -1
  40. package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js +213 -0
  41. package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js.map +1 -0
  42. package/dist/cdn/chunks/{ModuleBrowserModal-a-tZRCcD.js → ModuleBrowserModal-Dz-I5zfj.js} +11 -8
  43. package/dist/cdn/chunks/{ModuleBrowserModal-a-tZRCcD.js.map → ModuleBrowserModal-Dz-I5zfj.js.map} +1 -1
  44. package/dist/cdn/chunks/{ModulePreviewCanvas-Bm6k0Op0.js → ModulePreviewCanvas-BfinyuAN.js} +21 -21
  45. package/dist/cdn/chunks/{ModulePreviewCanvas-Bm6k0Op0.js.map → ModulePreviewCanvas-BfinyuAN.js.map} +1 -1
  46. package/dist/cdn/chunks/{NumberWithSuffix-HTbuD3VJ.js → NumberWithSuffix-CDjEa08X.js} +4 -4
  47. package/dist/cdn/chunks/{NumberWithSuffix-HTbuD3VJ.js.map → NumberWithSuffix-CDjEa08X.js.map} +1 -1
  48. package/dist/cdn/chunks/{ParagraphEditor-pGrfSccu.js → ParagraphEditor-B3fG0vge.js} +130 -110
  49. package/dist/cdn/chunks/ParagraphEditor-B3fG0vge.js.map +1 -0
  50. package/dist/cdn/chunks/{RichTextEditorContent-D7XZix_1.js → RichTextEditorContent-C6YPCp9j.js} +4 -4
  51. package/dist/cdn/chunks/{RichTextEditorContent-D7XZix_1.js.map → RichTextEditorContent-C6YPCp9j.js.map} +1 -1
  52. package/dist/cdn/chunks/{SaveModuleDialog-C9PQ9x6j.js → SaveModuleDialog-C6UIIVAM.js} +6 -6
  53. package/dist/cdn/chunks/{SaveModuleDialog-C9PQ9x6j.js.map → SaveModuleDialog-C6UIIVAM.js.map} +1 -1
  54. package/dist/cdn/chunks/{TitleEditor-BvFbL16O.js → TitleEditor-BiZbLYF1.js} +62 -46
  55. package/dist/cdn/chunks/TitleEditor-BiZbLYF1.js.map +1 -0
  56. package/dist/cdn/chunks/blockTypeIcons-BernVG06.js +22 -0
  57. package/dist/cdn/chunks/{blockTypeIcons-Kd1MT0u8.js.map → blockTypeIcons-BernVG06.js.map} +1 -1
  58. package/dist/{de-C2wOXoxs.js → cdn/chunks/de-LsV0u1tP.js} +19 -1
  59. package/dist/cdn/chunks/de-LsV0u1tP.js.map +1 -0
  60. package/dist/cdn/chunks/{draggable-Bci-fq8y.js → draggable-kG-D5Xsm.js} +19 -10
  61. package/dist/cdn/chunks/draggable-kG-D5Xsm.js.map +1 -0
  62. package/dist/cdn/chunks/{en-dR7zfNC3.js → en-Bb8X1bOs.js} +18 -2
  63. package/dist/cdn/chunks/en-Bb8X1bOs.js.map +1 -0
  64. package/dist/cdn/chunks/extensions-Drp8UDc6.js +421 -0
  65. package/dist/cdn/chunks/extensions-Drp8UDc6.js.map +1 -0
  66. package/dist/cdn/chunks/{features-DU6lA8l1.js → features-Dpczf9Su.js} +1171 -994
  67. package/dist/cdn/chunks/features-Dpczf9Su.js.map +1 -0
  68. package/dist/cdn/chunks/{icons-BjHUZZyJ.js → icons-CuxnJiGQ.js} +170 -164
  69. package/dist/cdn/chunks/icons-CuxnJiGQ.js.map +1 -0
  70. package/dist/cdn/chunks/{liquid.browser-DKKBzRQu.js → liquid.browser-BJOEu6Cg.js} +693 -678
  71. package/dist/cdn/chunks/liquid.browser-BJOEu6Cg.js.map +1 -0
  72. package/dist/cdn/chunks/{media-library-Byelliig.js → media-library-CiYl_BO7.js} +556 -554
  73. package/dist/cdn/chunks/{media-library-Byelliig.js.map → media-library-CiYl_BO7.js.map} +1 -1
  74. package/dist/cdn/chunks/{pt-BR-BZ86xqK6.js → pt-BR-BwJY_cvb.js} +18 -2
  75. package/dist/cdn/chunks/pt-BR-BwJY_cvb.js.map +1 -0
  76. package/dist/cdn/chunks/{pusher-BICWUP2j.js → pusher-CIwiKF8H.js} +9 -6
  77. package/dist/cdn/chunks/{pusher-BICWUP2j.js.map → pusher-CIwiKF8H.js.map} +1 -1
  78. package/dist/cdn/chunks/quality-CNjGxBG0.js +2176 -0
  79. package/dist/cdn/chunks/{quality-DNnYAntR.js.map → quality-CNjGxBG0.js.map} +1 -1
  80. package/dist/cdn/chunks/{renderer-CZKO-Tav.js → renderer-CFkg8h-K.js} +40 -31
  81. package/dist/cdn/chunks/renderer-CFkg8h-K.js.map +1 -0
  82. package/dist/cdn/chunks/{src-DsqSXXjk.js → src-DRpKu4Dy.js} +11 -11
  83. package/dist/cdn/chunks/{src-DsqSXXjk.js.map → src-DRpKu4Dy.js.map} +1 -1
  84. package/dist/cdn/chunks/styles-B7wryV0l.js +3943 -0
  85. package/dist/cdn/chunks/styles-B7wryV0l.js.map +1 -0
  86. package/dist/cdn/chunks/{tiptap-CwScfbsM.js → tiptap-DF9PEiqH.js} +5429 -5373
  87. package/dist/cdn/chunks/tiptap-DF9PEiqH.js.map +1 -0
  88. package/dist/cdn/editor.css +1 -1
  89. package/dist/cdn/editor.js +117 -115
  90. package/dist/cdn/editor.js.map +1 -1
  91. package/dist/{check-BRzXxFHr.js → check-rl7ok6uJ.js} +1 -1
  92. package/dist/{chevron-down-DmEgzmYT.js → chevron-down-BKe__NOD.js} +1 -1
  93. package/dist/{circle-alert-BStvZr3O.js → circle-alert-C8xmpMsK.js} +1 -1
  94. package/dist/{clock-Blwp_1R6.js → clock-BW4JuDCN.js} +1 -1
  95. package/dist/{cloud-_olro76D.js → cloud-BQusL53H.js} +208 -208
  96. package/dist/createLucideIcon-Dx-EjR9r.js +43 -0
  97. package/dist/{cdn/chunks/de-C2wOXoxs.js → de-LsV0u1tP.js} +17 -3
  98. package/dist/{dist-BlG7k25W.js → dist-B5Sov3sS.js} +7 -7
  99. package/dist/dist-BEWiuOMi.js +251 -0
  100. package/dist/{dist-b7Ak-CuM.js → dist-BFmE-7hB.js} +2 -2
  101. package/dist/{dist-o73iaGqy.js → dist-BMoa33wT.js} +2 -2
  102. package/dist/{dist-BctFrpeA.js → dist-BibU4HNl.js} +74 -65
  103. package/dist/{dist-D6x1cQeh.js → dist-BsCGIDSt.js} +103 -102
  104. package/dist/dist-CNLKj9wa.js +5 -0
  105. package/dist/{dist-DULfKmTh.js → dist-CNXDNYQn.js} +729 -695
  106. package/dist/{dist-412xXefB.js → dist-COG3IdPK.js} +3 -3
  107. package/dist/{dist-Cz79qrLL.js → dist-CQZxDvFw.js} +3 -3
  108. package/dist/{dist-BwgjpLfr.js → dist-CRsjOQM-.js} +2 -2
  109. package/dist/dist-CTT6WYJ6.js +134 -0
  110. package/dist/dist-Cqa6aeAJ.js +5 -0
  111. package/dist/{dist-BCQZZUE9.js → dist-SXJJ2v41.js} +2 -2
  112. package/dist/{dist-DhKTdU52.js → dist-itdjZraK.js} +1445 -1420
  113. package/dist/{en-dR7zfNC3.js → en-Bb8X1bOs.js} +17 -1
  114. package/dist/extensions-DwaZAqm6.js +423 -0
  115. package/dist/{image-up-BFPbw_Zq.js → image-up-BwBCmQ4P.js} +1 -1
  116. package/dist/index.d.ts +17 -0
  117. package/dist/{info-B_qLEBN2.js → info-TCn7uWR5.js} +1 -1
  118. package/dist/keys-Cv8-8GsD.js +10 -0
  119. package/dist/{liquid.browser-CVjP5Mex.js → liquid.browser-DZLtv26k.js} +692 -677
  120. package/dist/{list-checks-CGg7JxPm.js → list-checks-CSrOWNgq.js} +1 -1
  121. package/dist/{loader-circle-CDF8eR_Q.js → loader-circle-BLmicnPG.js} +1 -1
  122. package/dist/{message-circle-C3cHsCJl.js → message-circle-C9hHMQCI.js} +1 -1
  123. package/dist/{pt-BR-BZ86xqK6.js → pt-BR-BwJY_cvb.js} +17 -1
  124. package/dist/{refresh-cw-Butml7Q4.js → refresh-cw-D1JQ1LNa.js} +1 -1
  125. package/dist/runtime-dom.esm-bundler-BzuoCyNp.js +523 -0
  126. package/dist/scan-line-DgijVq9y.js +31 -0
  127. package/dist/{send-k7npFJNO.js → send-DjPdq69F.js} +1 -1
  128. package/dist/{shield-check-CV6GbmCu.js → shield-check-Bqluu8FS.js} +1 -1
  129. package/dist/{sparkles-C965Xop4.js → sparkles-M4azPVSP.js} +1 -1
  130. package/dist/style.css +1 -1
  131. package/dist/styles-D7fQ7f_1.js +4164 -0
  132. package/dist/templatical-editor.js +155 -152
  133. package/dist/{text-align-start-Bxnps8fH.js → text-align-start-CMya5pCQ.js} +11 -11
  134. package/dist/{trash-2-DpGb7fIt.js → trash-2-C-81rkLS.js} +1 -1
  135. package/dist/{triangle-alert-BKYElAwz.js → triangle-alert-BuRWnynk.js} +1 -1
  136. package/dist/{upload-BF7sxd1_.js → upload-CWBIoLd4.js} +1 -1
  137. package/dist/{useAliveFlag-BinvbqQR.js → useAliveFlag-CECL_OUb.js} +1 -1
  138. package/dist/{useCloudI18n-L3H2XvdW.js → useCloudI18n-AKCy98qD.js} +2 -2
  139. package/dist/{useEditorCore-DKYZ7aKk.js → useEditorCore-vcWLdnjN.js} +1480 -1310
  140. package/dist/{useI18n-CTs_bP9d.js → useI18n-C-TDeJBt.js} +2 -2
  141. package/dist/{useMergeTag-e3RSY-s3.js → useMergeTag-DSrBY0-2.js} +6 -6
  142. package/dist/usePopoverRoot-DKUDnr55.js +8 -0
  143. package/dist/{vue.runtime.esm-bundler-B2k01iQh.js → vue.runtime.esm-bundler-l0XAqiyv.js} +639 -1151
  144. package/dist/{x-CGjkjdKK.js → x-CQSvXnGR.js} +1 -1
  145. package/package.json +27 -27
  146. package/dist/CloudEditor-DaEfipBn.js +0 -1230
  147. package/dist/CountdownBlock-DO9fziwf.js +0 -92
  148. package/dist/CountdownToolbar-BeII06yJ.js +0 -210
  149. package/dist/ModuleBrowserModal-DsZRr87F.js +0 -198
  150. package/dist/ParagraphEditor-CZ-cmhX3.js +0 -700
  151. package/dist/TitleEditor-DbNOcvhR.js +0 -177
  152. package/dist/cdn/chunks/CloudEditor-BZuzsQOZ.js.map +0 -1
  153. package/dist/cdn/chunks/ParagraphEditor-pGrfSccu.js.map +0 -1
  154. package/dist/cdn/chunks/TitleEditor-BvFbL16O.js.map +0 -1
  155. package/dist/cdn/chunks/blockTypeIcons-Kd1MT0u8.js +0 -22
  156. package/dist/cdn/chunks/de-C2wOXoxs.js.map +0 -1
  157. package/dist/cdn/chunks/draggable-Bci-fq8y.js.map +0 -1
  158. package/dist/cdn/chunks/en-dR7zfNC3.js.map +0 -1
  159. package/dist/cdn/chunks/extensions-CuUjSmuA.js +0 -605
  160. package/dist/cdn/chunks/extensions-CuUjSmuA.js.map +0 -1
  161. package/dist/cdn/chunks/features-DU6lA8l1.js.map +0 -1
  162. package/dist/cdn/chunks/icons-BjHUZZyJ.js.map +0 -1
  163. package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +0 -1
  164. package/dist/cdn/chunks/pt-BR-BZ86xqK6.js.map +0 -1
  165. package/dist/cdn/chunks/quality-DNnYAntR.js +0 -2176
  166. package/dist/cdn/chunks/renderer-CZKO-Tav.js.map +0 -1
  167. package/dist/cdn/chunks/styles-DiAdtiz9.js +0 -3428
  168. package/dist/cdn/chunks/styles-DiAdtiz9.js.map +0 -1
  169. package/dist/cdn/chunks/tiptap-CwScfbsM.js.map +0 -1
  170. package/dist/createLucideIcon-CmPAC-gt.js +0 -43
  171. package/dist/dist-BNEdeWub.js +0 -5
  172. package/dist/dist-Cgry6fNv.js +0 -382
  173. package/dist/dist-u0iIJH3V.js +0 -5
  174. package/dist/extensions-XPlNAKIL.js +0 -1720
  175. package/dist/keys-mFiJ5N0_.js +0 -10
  176. package/dist/scan-line-XYEqim_E.js +0 -25
  177. package/dist/styles-D0RCAWhB.js +0 -3647
  178. package/dist/usePopoverRoot-DVh7NY1q.js +0 -8
@@ -1,700 +0,0 @@
1
- import { A as e, F as t, G as n, M as r, X as i, _ as a, at as o, b as s, c, d as l, f as u, h as d, l as f, m as p, ot as m, p as h, rt as g, s as _, st as v, u as y, v as b, w as x } from "./vue.runtime.esm-bundler-B2k01iQh.js";
2
- import { T as S, w as C, x as w } from "./useEditorCore-DKYZ7aKk.js";
3
- import { t as T } from "./dist-Cgry6fNv.js";
4
- import { A as E, M as D, N as O, g as ee, x as te } from "./keys-mFiJ5N0_.js";
5
- import { t as k } from "./useI18n-CTs_bP9d.js";
6
- import { t as A } from "./createLucideIcon-CmPAC-gt.js";
7
- import { t as ne } from "./loader-circle-CDF8eR_Q.js";
8
- import { n as j, r as M, t as re } from "./text-align-start-Bxnps8fH.js";
9
- import { a as ie, i as ae, n as N, r as oe, t as P } from "./RichTextEditorContent-Q5altsx1.js";
10
- import { t as se } from "./scan-line-XYEqim_E.js";
11
- import { t as F } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import { a as ce, o as le, s as I } from "./styleConstants-lGobwiLH.js";
13
- import { t as L } from "./usePopoverRoot-DVh7NY1q.js";
14
- var R = A("list-ordered", [
15
- ["path", {
16
- d: "M11 5h10",
17
- key: "1cz7ny"
18
- }],
19
- ["path", {
20
- d: "M11 12h10",
21
- key: "1438ji"
22
- }],
23
- ["path", {
24
- d: "M11 19h10",
25
- key: "11t30w"
26
- }],
27
- ["path", {
28
- d: "M4 4h1v5",
29
- key: "10yrso"
30
- }],
31
- ["path", {
32
- d: "M4 9h2",
33
- key: "r1h2o0"
34
- }],
35
- ["path", {
36
- d: "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",
37
- key: "xtkcd5"
38
- }]
39
- ]), z = A("list", [
40
- ["path", {
41
- d: "M3 5h.01",
42
- key: "18ugdj"
43
- }],
44
- ["path", {
45
- d: "M3 12h.01",
46
- key: "nlz23k"
47
- }],
48
- ["path", {
49
- d: "M3 19h.01",
50
- key: "noohij"
51
- }],
52
- ["path", {
53
- d: "M8 5h13",
54
- key: "1pao27"
55
- }],
56
- ["path", {
57
- d: "M8 12h13",
58
- key: "1za7za"
59
- }],
60
- ["path", {
61
- d: "M8 19h13",
62
- key: "m83p4d"
63
- }]
64
- ]), B = A("remove-formatting", [
65
- ["path", {
66
- d: "M4 7V4h16v3",
67
- key: "9msm58"
68
- }],
69
- ["path", {
70
- d: "M5 20h6",
71
- key: "1h6pxn"
72
- }],
73
- ["path", {
74
- d: "M13 4 8 20",
75
- key: "kqq6aj"
76
- }],
77
- ["path", {
78
- d: "m15 15 5 5",
79
- key: "me55sn"
80
- }],
81
- ["path", {
82
- d: "m20 15-5 5",
83
- key: "11p7ol"
84
- }]
85
- ]), V = A("smile", [
86
- ["circle", {
87
- cx: "12",
88
- cy: "12",
89
- r: "10",
90
- key: "1mglay"
91
- }],
92
- ["path", {
93
- d: "M8 14s1.5 2 4 2 4-2 4-2",
94
- key: "1y1vjs"
95
- }],
96
- ["line", {
97
- x1: "9",
98
- x2: "9.01",
99
- y1: "9",
100
- y2: "9",
101
- key: "yxxnd0"
102
- }],
103
- ["line", {
104
- x1: "15",
105
- x2: "15.01",
106
- y1: "9",
107
- y2: "9",
108
- key: "1p4y9e"
109
- }]
110
- ]), H = A("strikethrough", [
111
- ["path", {
112
- d: "M16 4H9a3 3 0 0 0-2.83 4",
113
- key: "43sutm"
114
- }],
115
- ["path", {
116
- d: "M14 12a4 4 0 0 1 0 8H6",
117
- key: "nlfj13"
118
- }],
119
- ["line", {
120
- x1: "4",
121
- x2: "20",
122
- y1: "12",
123
- y2: "12",
124
- key: "1e0a9i"
125
- }]
126
- ]), U = A("subscript", [
127
- ["path", {
128
- d: "m4 5 8 8",
129
- key: "1eunvl"
130
- }],
131
- ["path", {
132
- d: "m12 5-8 8",
133
- key: "1ah0jp"
134
- }],
135
- ["path", {
136
- d: "M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07",
137
- key: "e8ta8j"
138
- }]
139
- ]), W = A("superscript", [
140
- ["path", {
141
- d: "m4 19 8-8",
142
- key: "hr47gm"
143
- }],
144
- ["path", {
145
- d: "m12 19-8-8",
146
- key: "1dhhmo"
147
- }],
148
- ["path", {
149
- d: "M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06",
150
- key: "1dfcux"
151
- }]
152
- ]), ue = A("underline", [["path", {
153
- d: "M6 4v6a6 6 0 0 0 12 0V4",
154
- key: "9kb039"
155
- }], ["line", {
156
- x1: "4",
157
- x2: "20",
158
- y1: "20",
159
- y2: "20",
160
- key: "nun2al"
161
- }]]), G = [
162
- "aria-label",
163
- "title",
164
- "aria-expanded"
165
- ], K = ["aria-label"], q = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, J = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, Y = ["aria-label", "onClick"], de = /* @__PURE__ */ s({
166
- __name: "EmojiPickerDropdown",
167
- emits: ["insert"],
168
- setup(t, { emit: n }) {
169
- let a = n, { categories: s, isOpen: m, toggle: h, close: y } = C(), { t: x, format: w } = k(), E = i(null), D = i(null);
170
- S(E, l(() => m.value)), T(D, () => {
171
- m.value && y();
172
- });
173
- function O(e) {
174
- a("insert", e), y();
175
- }
176
- return (t, n) => (e(), d("div", {
177
- ref_key: "rootRef",
178
- ref: D,
179
- class: "tpl:relative"
180
- }, [u("button", {
181
- type: "button",
182
- class: o(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": g(m) }]),
183
- "aria-label": g(x).paragraphEditor.insertEmoji,
184
- title: g(x).paragraphEditor.insertEmoji,
185
- "aria-expanded": g(m),
186
- "aria-haspopup": "dialog",
187
- "aria-controls": "tpl-emoji-picker",
188
- onClick: n[0] ||= (...e) => g(h) && g(h)(...e)
189
- }, [b(g(V), {
190
- size: 16,
191
- "stroke-width": 2
192
- })], 10, G), g(m) ? (e(), d("div", {
193
- key: 0,
194
- id: "tpl-emoji-picker",
195
- ref_key: "pickerRef",
196
- ref: E,
197
- role: "dialog",
198
- "aria-modal": "false",
199
- "aria-label": g(x).paragraphEditor.insertEmoji,
200
- tabindex: "-1",
201
- 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",
202
- onKeydown: n[1] ||= _(c((...e) => g(y) && g(y)(...e), ["stop", "prevent"]), ["esc"])
203
- }, [(e(!0), d(f, null, r(g(s), (t) => (e(), d("div", {
204
- key: t.key,
205
- class: "tpl:mb-2 tpl:last:mb-0"
206
- }, [u("div", q, v(g(x).emoji[t.key]), 1), u("div", J, [(e(!0), d(f, null, r(t.emojis, (t) => (e(), d("button", {
207
- key: t,
208
- type: "button",
209
- "aria-label": g(w)(g(x).paragraphEditor.emojiItemLabel, { emoji: t }),
210
- 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)]",
211
- onClick: (e) => O(t)
212
- }, v(t), 9, Y))), 128))])]))), 128))], 40, K)) : p("", !0)], 512));
213
- }
214
- }), fe = [
215
- "aria-label",
216
- "title",
217
- "aria-pressed"
218
- ], X = /* @__PURE__ */ s({
219
- __name: "ToolbarIconButton",
220
- props: {
221
- icon: {},
222
- label: {},
223
- active: { type: Boolean },
224
- strokeWidth: {},
225
- size: {}
226
- },
227
- setup(n) {
228
- return (r, i) => (e(), d("button", {
229
- type: "button",
230
- class: o(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": n.active }]),
231
- "aria-label": n.label,
232
- title: n.label,
233
- "aria-pressed": n.active ? "true" : "false"
234
- }, [(e(), h(t(n.icon), {
235
- size: n.size ?? 16,
236
- "stroke-width": n.strokeWidth ?? 2
237
- }, null, 8, ["size", "stroke-width"]))], 10, fe));
238
- }
239
- }), pe = {}, me = {
240
- class: "tpl:mx-1 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
241
- "aria-hidden": "true"
242
- };
243
- function he(t, n) {
244
- return e(), d("span", me);
245
- }
246
- var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
247
- "value",
248
- "aria-label",
249
- "title"
250
- ], _e = { value: "" }, ve = ["value"], Q = /* @__PURE__ */ s({
251
- __name: "ToolbarSelect",
252
- props: {
253
- modelValue: {},
254
- options: {},
255
- label: {},
256
- placeholder: {},
257
- widthClass: {}
258
- },
259
- emits: ["update:modelValue"],
260
- setup(t, { emit: n }) {
261
- let i = n;
262
- function a(e) {
263
- i("update:modelValue", e.target.value);
264
- }
265
- function s(e) {
266
- return typeof e == "string" ? e : e.value;
267
- }
268
- function c(e) {
269
- return typeof e == "string" ? e : e.label;
270
- }
271
- return (n, i) => (e(), d("select", {
272
- class: o(["tpl:h-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none", t.widthClass ?? "tpl:w-20"]),
273
- value: t.modelValue,
274
- "aria-label": t.label,
275
- title: t.label,
276
- onChange: a
277
- }, [u("option", _e, v(t.placeholder ?? ""), 1), (e(!0), d(f, null, r(t.options, (t) => (e(), d("option", {
278
- key: s(t),
279
- value: s(t)
280
- }, v(c(t)), 9, ve))), 128))], 42, ge));
281
- }
282
- }), ye = ["data-tpl-theme", "aria-label"], be = { class: "tpl:flex tpl:items-center tpl:gap-1" }, $ = { class: "tpl:relative" }, xe = [
283
- "value",
284
- "aria-label",
285
- "title"
286
- ], Se = { class: "tpl:relative" }, Ce = [
287
- "value",
288
- "aria-label",
289
- "title"
290
- ], we = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Te = ["aria-label", "title"], Ee = {
291
- key: 1,
292
- class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
293
- }, De = /* @__PURE__ */ s({
294
- __name: "ParagraphToolbar",
295
- props: {
296
- editor: {},
297
- toolbarPosition: {},
298
- isLoading: { type: Boolean },
299
- canRequestMergeTag: { type: Boolean }
300
- },
301
- emits: ["open-link-dialog", "add-merge-tag"],
302
- setup(t, { emit: n }) {
303
- let r = t, i = n, o = x(E, null), s = x(D, null), c = O(ee, "ParagraphToolbar"), _ = L(), S = x(te, null), C = l(() => S?.isOpen.value ?? !1), { t: w } = k(), T = c.fonts;
304
- function A(e) {
305
- r.editor?.chain().focus().insertContent(e).run();
306
- }
307
- function N(e) {
308
- return r.editor?.getAttributes("textStyle")[e] || "";
309
- }
310
- function P(e) {
311
- let t = r.editor?.chain().focus();
312
- e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
313
- }
314
- function F(e) {
315
- let t = r.editor?.chain().focus();
316
- e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
317
- }
318
- function V(e) {
319
- let t = r.editor?.chain().focus();
320
- e ? t?.setColor(e).run() : t?.unsetColor().run();
321
- }
322
- function G() {
323
- return r.editor?.getAttributes("paragraph").lineHeight || "";
324
- }
325
- function K(e) {
326
- let t = r.editor?.chain().focus();
327
- e ? t?.setLineHeight(e).run() : t?.unsetLineHeight().run();
328
- }
329
- function q(e) {
330
- let t = r.editor?.chain().focus();
331
- e && e !== "normal" ? t?.setLetterSpacing(e).run() : t?.unsetLetterSpacing().run();
332
- }
333
- function J() {
334
- return r.editor?.getAttributes("highlight").color || "";
335
- }
336
- function Y(e) {
337
- let t = r.editor?.chain().focus();
338
- e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
339
- }
340
- return (n, r) => g(_) && !C.value ? (e(), h(y, {
341
- key: 0,
342
- to: g(_)
343
- }, [u("div", {
344
- "data-tpl-theme": g(s),
345
- role: "toolbar",
346
- "aria-label": g(w).paragraphEditor.toolbar,
347
- 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",
348
- style: m({
349
- ...g(o),
350
- top: `${t.toolbarPosition.top}px`,
351
- left: `${t.toolbarPosition.left}px`,
352
- transform: "translateY(-100%)",
353
- flexDirection: "column"
354
- })
355
- }, [!t.isLoading && t.editor ? (e(), d(f, { key: 0 }, [u("div", be, [
356
- b(Q, {
357
- "model-value": N("fontFamily"),
358
- options: g(T),
359
- label: g(w).paragraphEditor.fontFamily,
360
- placeholder: g(w).paragraphEditor.defaultFont,
361
- "width-class": "tpl:w-32",
362
- "onUpdate:modelValue": P
363
- }, null, 8, [
364
- "model-value",
365
- "options",
366
- "label",
367
- "placeholder"
368
- ]),
369
- b(Q, {
370
- "model-value": N("fontSize"),
371
- options: g(ce),
372
- label: g(w).paragraphEditor.fontSize,
373
- placeholder: g(w).paragraphEditor.defaultSize,
374
- "width-class": "tpl:w-20",
375
- "onUpdate:modelValue": F
376
- }, null, 8, [
377
- "model-value",
378
- "options",
379
- "label",
380
- "placeholder"
381
- ]),
382
- b(Z),
383
- u("div", $, [u("input", {
384
- type: "color",
385
- class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-1",
386
- value: N("color") || g("#000000"),
387
- "aria-label": g(w).paragraphEditor.textColor,
388
- title: g(w).paragraphEditor.textColor,
389
- onInput: r[0] ||= (e) => V(e.target.value)
390
- }, null, 40, xe)]),
391
- u("div", Se, [u("input", {
392
- type: "color",
393
- class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:p-1",
394
- style: m({ backgroundColor: J() || "var(--tpl-bg)" }),
395
- value: J() || g("#ffff00"),
396
- "aria-label": g(w).paragraphEditor.highlightColor,
397
- title: g(w).paragraphEditor.highlightColor,
398
- onInput: r[1] ||= (e) => Y(e.target.value)
399
- }, null, 44, Ce)]),
400
- b(Z),
401
- b(X, {
402
- icon: g(ie),
403
- label: g(w).paragraphEditor.bold,
404
- active: t.editor.isActive("bold"),
405
- "stroke-width": 2.5,
406
- onClick: r[2] ||= (e) => t.editor.chain().focus().toggleBold().run()
407
- }, null, 8, [
408
- "icon",
409
- "label",
410
- "active"
411
- ]),
412
- b(X, {
413
- icon: g(ae),
414
- label: g(w).paragraphEditor.italic,
415
- active: t.editor.isActive("italic"),
416
- onClick: r[3] ||= (e) => t.editor.chain().focus().toggleItalic().run()
417
- }, null, 8, [
418
- "icon",
419
- "label",
420
- "active"
421
- ]),
422
- b(X, {
423
- icon: g(ue),
424
- label: g(w).paragraphEditor.underline,
425
- active: t.editor.isActive("underline"),
426
- onClick: r[4] ||= (e) => t.editor.chain().focus().toggleUnderline().run()
427
- }, null, 8, [
428
- "icon",
429
- "label",
430
- "active"
431
- ]),
432
- b(X, {
433
- icon: g(H),
434
- label: g(w).paragraphEditor.strikethrough,
435
- active: t.editor.isActive("strike"),
436
- onClick: r[5] ||= (e) => t.editor.chain().focus().toggleStrike().run()
437
- }, null, 8, [
438
- "icon",
439
- "label",
440
- "active"
441
- ]),
442
- b(Z),
443
- b(X, {
444
- icon: g(U),
445
- label: g(w).paragraphEditor.subscript,
446
- active: t.editor.isActive("subscript"),
447
- onClick: r[6] ||= (e) => t.editor.chain().focus().toggleSubscript().run()
448
- }, null, 8, [
449
- "icon",
450
- "label",
451
- "active"
452
- ]),
453
- b(X, {
454
- icon: g(W),
455
- label: g(w).paragraphEditor.superscript,
456
- active: t.editor.isActive("superscript"),
457
- onClick: r[7] ||= (e) => t.editor.chain().focus().toggleSuperscript().run()
458
- }, null, 8, [
459
- "icon",
460
- "label",
461
- "active"
462
- ]),
463
- b(Z),
464
- b(X, {
465
- icon: g(oe),
466
- label: g(w).paragraphEditor.addLink,
467
- active: t.editor.isActive("link"),
468
- onClick: r[8] ||= (e) => i("open-link-dialog")
469
- }, null, 8, [
470
- "icon",
471
- "label",
472
- "active"
473
- ])
474
- ]), u("div", we, [
475
- b(X, {
476
- icon: g(z),
477
- label: g(w).paragraphEditor.bulletList,
478
- active: t.editor.isActive("bulletList"),
479
- onClick: r[9] ||= (e) => t.editor.chain().focus().toggleBulletList().run()
480
- }, null, 8, [
481
- "icon",
482
- "label",
483
- "active"
484
- ]),
485
- b(X, {
486
- icon: g(R),
487
- label: g(w).paragraphEditor.numberedList,
488
- active: t.editor.isActive("orderedList"),
489
- onClick: r[10] ||= (e) => t.editor.chain().focus().toggleOrderedList().run()
490
- }, null, 8, [
491
- "icon",
492
- "label",
493
- "active"
494
- ]),
495
- b(Z),
496
- b(X, {
497
- icon: g(re),
498
- label: g(w).paragraphEditor.alignLeft,
499
- active: t.editor.isActive({ textAlign: "left" }),
500
- onClick: r[11] ||= (e) => t.editor.chain().focus().setTextAlign("left").run()
501
- }, null, 8, [
502
- "icon",
503
- "label",
504
- "active"
505
- ]),
506
- b(X, {
507
- icon: g(M),
508
- label: g(w).paragraphEditor.alignCenter,
509
- active: t.editor.isActive({ textAlign: "center" }),
510
- onClick: r[12] ||= (e) => t.editor.chain().focus().setTextAlign("center").run()
511
- }, null, 8, [
512
- "icon",
513
- "label",
514
- "active"
515
- ]),
516
- b(X, {
517
- icon: g(j),
518
- label: g(w).paragraphEditor.alignRight,
519
- active: t.editor.isActive({ textAlign: "right" }),
520
- onClick: r[13] ||= (e) => t.editor.chain().focus().setTextAlign("right").run()
521
- }, null, 8, [
522
- "icon",
523
- "label",
524
- "active"
525
- ]),
526
- b(Z),
527
- b(Q, {
528
- "model-value": G(),
529
- options: g(I),
530
- label: g(w).paragraphEditor.lineHeight,
531
- placeholder: "LH",
532
- "width-class": "tpl:w-16",
533
- "onUpdate:modelValue": K
534
- }, null, 8, [
535
- "model-value",
536
- "options",
537
- "label"
538
- ]),
539
- b(Q, {
540
- "model-value": N("letterSpacing"),
541
- options: g(le),
542
- label: g(w).paragraphEditor.letterSpacing,
543
- placeholder: "LS",
544
- "width-class": "tpl:w-20",
545
- "onUpdate:modelValue": q
546
- }, null, 8, [
547
- "model-value",
548
- "options",
549
- "label"
550
- ]),
551
- b(Z),
552
- b(X, {
553
- icon: g(B),
554
- label: g(w).paragraphEditor.clearFormatting,
555
- onClick: r[14] ||= (e) => t.editor.chain().focus().clearNodes().unsetAllMarks().run()
556
- }, null, 8, ["icon", "label"]),
557
- b(Z),
558
- b(de, { onInsert: A }),
559
- t.canRequestMergeTag ? (e(), d(f, { key: 0 }, [b(Z), u("button", {
560
- type: "button",
561
- 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)]",
562
- "aria-label": g(w).mergeTag.insert,
563
- title: g(w).mergeTag.insert,
564
- onClick: r[15] ||= (e) => i("add-merge-tag")
565
- }, [b(g(se), {
566
- size: 16,
567
- "stroke-width": 2
568
- }), a(" " + v(g(w).mergeTag.insert), 1)], 8, Te)], 64)) : p("", !0)
569
- ])], 64)) : (e(), d("div", Ee, [b(g(ne), {
570
- class: "tpl-spinner",
571
- size: 14,
572
- "stroke-width": 2
573
- }), a(" " + v(g(w).errors.editorLoading), 1)]))], 12, ye)], 8, ["to"])) : p("", !0);
574
- }
575
- }), Oe = { class: "tpl-text-editor-wrapper tpl:relative" }, ke = /* @__PURE__ */ s({
576
- __name: "ParagraphEditor",
577
- props: {
578
- block: {},
579
- toolbarPosition: {}
580
- },
581
- emits: ["done"],
582
- setup(t, { emit: r }) {
583
- let i = t, a = r, o = L(), { editor: s, EditorContent: c, isLoading: l, initError: u, retry: f, showLinkDialog: p, linkUrl: m, linkDialogRef: h, canRequestMergeTag: _, openLinkDialog: v, insertLink: y, removeLink: x, closeLinkDialog: S, handleLinkKeydown: C, handleAddMergeTag: T } = w({
584
- blockId: () => i.block.id,
585
- blockContent: () => i.block.content,
586
- onDone: () => a("done"),
587
- editorName: "ParagraphEditor",
588
- async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
589
- 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([
590
- import("./dist-D6x1cQeh.js").then((e) => e.r),
591
- import("./dist-DULfKmTh.js"),
592
- import("./dist-BlG7k25W.js"),
593
- import("./dist-o73iaGqy.js"),
594
- import("./dist-Cz79qrLL.js"),
595
- import("./dist-412xXefB.js"),
596
- import("./dist-BwgjpLfr.js"),
597
- import("./dist-BCQZZUE9.js"),
598
- import("./dist-BNEdeWub.js"),
599
- import("./dist-u0iIJH3V.js"),
600
- import("./dist-b7Ak-CuM.js"),
601
- import("./extensions-XPlNAKIL.js")
602
- ]);
603
- return {
604
- TiptapEditor: a,
605
- EC: s,
606
- extensions: [
607
- c.configure({
608
- heading: !1,
609
- codeBlock: !1,
610
- blockquote: !1,
611
- horizontalRule: !1
612
- }),
613
- u,
614
- d,
615
- f,
616
- l.configure({
617
- openOnClick: !1,
618
- HTMLAttributes: {
619
- target: "_blank",
620
- rel: "noopener noreferrer"
621
- }
622
- }),
623
- p.configure({ types: ["paragraph"] }),
624
- m,
625
- h,
626
- g,
627
- _.configure({ multicolor: !0 }),
628
- x,
629
- S,
630
- C,
631
- v.configure({
632
- mergeTags: e,
633
- syntax: t
634
- }),
635
- b.configure({ syntax: t }),
636
- ...r && n && e.length > 0 ? [y.configure({
637
- mergeTags: e,
638
- char: n,
639
- emptyText: i,
640
- popoverRoot: o
641
- })] : []
642
- ]
643
- };
644
- }
645
- });
646
- return (r, i) => (e(), d("div", Oe, [
647
- b(De, {
648
- editor: g(s),
649
- "toolbar-position": t.toolbarPosition,
650
- "is-loading": g(l),
651
- "can-request-merge-tag": g(_),
652
- onOpenLinkDialog: g(v),
653
- onAddMergeTag: g(T)
654
- }, null, 8, [
655
- "editor",
656
- "toolbar-position",
657
- "is-loading",
658
- "can-request-merge-tag",
659
- "onOpenLinkDialog",
660
- "onAddMergeTag"
661
- ]),
662
- b(P, {
663
- editor: g(s),
664
- "editor-content": g(c),
665
- "is-loading": g(l),
666
- "init-error": g(u),
667
- onRetry: g(f)
668
- }, null, 8, [
669
- "editor",
670
- "editor-content",
671
- "is-loading",
672
- "init-error",
673
- "onRetry"
674
- ]),
675
- b(N, {
676
- visible: g(p),
677
- "is-editing-link": g(s)?.isActive("link") ?? !1,
678
- "dialog-ref": g(h),
679
- "onUpdate:dialogRef": i[0] ||= (e) => n(h) ? h.value = e : null,
680
- "link-url": g(m),
681
- "onUpdate:linkUrl": i[1] ||= (e) => n(m) ? m.value = e : null,
682
- onClose: g(S),
683
- onInsert: g(y),
684
- onRemove: g(x),
685
- onKeydown: g(C)
686
- }, null, 8, [
687
- "visible",
688
- "is-editing-link",
689
- "dialog-ref",
690
- "link-url",
691
- "onClose",
692
- "onInsert",
693
- "onRemove",
694
- "onKeydown"
695
- ])
696
- ]));
697
- }
698
- });
699
- //#endregion
700
- export { ke as default };