@templatical/editor 0.26.3 → 0.27.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 (284) hide show
  1. package/README.md +3 -1
  2. package/dist/{AiChatSidebar-CMBz6Wix.js → AiChatSidebar-iVJDzqjr.js} +60 -60
  3. package/dist/AiFeatureMenu-DvrK-dzj.js +57 -0
  4. package/dist/{BlockIssueBadge-Buk3_6QF.js → BlockIssueBadge-BHysq7XQ.js} +11 -11
  5. package/dist/BlockPreviewCanvas-GZbr0ph5.js +121 -0
  6. package/dist/CloudHeaderExtras-Cx8gFWu2.js +59 -0
  7. package/dist/CloudPanels-D0X449DD.js +227 -0
  8. package/dist/{CollaboratorBar-BGwbg9aN.js → CollaboratorBar-DMSWCrX3.js} +21 -21
  9. package/dist/ColorPicker-DCjFQCAg.js +501 -0
  10. package/dist/CommentsPanel-D5wQB1Kf.js +18 -0
  11. package/dist/CommentsSidebar-BoTIxpLE.js +481 -0
  12. package/dist/{cdn/chunks/CountdownBlock-vLTkTI9e.js → CountdownBlock-BFX8iU90.js} +19 -21
  13. package/dist/{cdn/chunks/CountdownToolbar-DPjcgcVR.js → CountdownToolbar-CSftc9Ma.js} +52 -53
  14. package/dist/{DesignReferenceSidebar-Bx96XFmK.js → DesignReferenceSidebar-DKsx2TiL.js} +72 -71
  15. package/dist/{IssuesPanel-Do7RLXsP.js → IssuesPanel-flKKwKpM.js} +38 -38
  16. package/dist/{LoadingTrack-BexpNuTV.js → LoadingTrack-C2T8ixEL.js} +3 -3
  17. package/dist/{MergeTagModeToggle-P-UguQHc.js → MergeTagModeToggle-PKCoKAoF.js} +43 -43
  18. package/dist/{MergeTagSuggestion-BJ43ihWR.js → MergeTagSuggestion-DGha0WRp.js} +46 -46
  19. package/dist/{cdn/chunks/NumberWithSuffix-BXrRdfq1.js → NumberWithSuffix-DdPCXfKf.js} +42 -44
  20. package/dist/{ParagraphEditor-6WN5jmXr.js → ParagraphEditor-vDU-5y6r.js} +200 -198
  21. package/dist/RestoreVersionDialog-DIn1muFD.js +86 -0
  22. package/dist/{RichTextEditorContent-fbYJXAio.js → RichTextEditorContent-I83k5DtQ.js} +44 -44
  23. package/dist/SaveBlockDialog-C_QvYAeL.js +266 -0
  24. package/dist/{SavedBlocksBrowserModal-GMrajvfV.js → SavedBlocksBrowserModal-CefWWcdT.js} +116 -115
  25. package/dist/{cdn/chunks/SavedBlocksPanels-CUtYoi5Z.js → SavedBlocksPanels-DnQwO-7O.js} +9 -11
  26. package/dist/{SavedBlocksPickBar-Dk_IaMO9.js → SavedBlocksPickBar-BsFubArH.js} +17 -17
  27. package/dist/{TemplateScoringPanel-BZUsb3FD.js → TemplateScoringPanel-Bv_bBsJi.js} +87 -87
  28. package/dist/TestEmailModal-STPWDP79.js +206 -0
  29. package/dist/{cdn/chunks/TestEmailPanel-B8y7JabA.js → TestEmailPanel-HYVjApKZ.js} +4 -6
  30. package/dist/TitleEditor-DnB0EJ_g.js +198 -0
  31. package/dist/TplModal-chvLhXmC.js +49 -0
  32. package/dist/VersionHistoryMenu-Cq4rH56t.js +155 -0
  33. package/dist/VersionHistoryPanels-D7k_F7-9.js +46 -0
  34. package/dist/VersionPreviewBanner-DthyHe6C.js +38 -0
  35. package/dist/{blockTypeIcons-C7wRSaT3.js → blockTypeIcons-B8r4jMBn.js} +6 -6
  36. package/dist/bundle-stats.json +8 -8
  37. package/dist/{ca-D1zgI9fQ.js → ca-Cqg9O8mx.js} +69 -6
  38. package/dist/cdn/chunks/{AiChatSidebar-CQ8KUmNB.js → AiChatSidebar-DTUoBH5a.js} +54 -54
  39. package/dist/cdn/chunks/AiChatSidebar-DTUoBH5a.js.map +1 -0
  40. package/dist/cdn/chunks/AiFeatureMenu-Dyh7mUMB.js +57 -0
  41. package/dist/cdn/chunks/AiFeatureMenu-Dyh7mUMB.js.map +1 -0
  42. package/dist/cdn/chunks/{BlockIssueBadge-BEEY9o2o.js → BlockIssueBadge-UzSSOM_2.js} +13 -13
  43. package/dist/cdn/chunks/{BlockIssueBadge-BEEY9o2o.js.map → BlockIssueBadge-UzSSOM_2.js.map} +1 -1
  44. package/dist/cdn/chunks/{BlockPreviewCanvas-msj619wT.js → BlockPreviewCanvas-DStQFo9P.js} +42 -42
  45. package/dist/cdn/chunks/{BlockPreviewCanvas-msj619wT.js.map → BlockPreviewCanvas-DStQFo9P.js.map} +1 -1
  46. package/dist/cdn/chunks/CloudHeaderExtras-BZVu7dnO.js +60 -0
  47. package/dist/cdn/chunks/CloudHeaderExtras-BZVu7dnO.js.map +1 -0
  48. package/dist/cdn/chunks/CloudPanels-CXbaBKHQ.js +227 -0
  49. package/dist/cdn/chunks/CloudPanels-CXbaBKHQ.js.map +1 -0
  50. package/dist/cdn/chunks/{CollaboratorBar-G_sZDZXw.js → CollaboratorBar-BH_lZlat.js} +22 -22
  51. package/dist/cdn/chunks/CollaboratorBar-BH_lZlat.js.map +1 -0
  52. package/dist/cdn/chunks/ColorPicker-CStXen0Y.js +502 -0
  53. package/dist/cdn/chunks/ColorPicker-CStXen0Y.js.map +1 -0
  54. package/dist/cdn/chunks/CommentsPanel-jzZ2X0P4.js +20 -0
  55. package/dist/cdn/chunks/CommentsPanel-jzZ2X0P4.js.map +1 -0
  56. package/dist/cdn/chunks/CommentsSidebar-Dxke-vUP.js +460 -0
  57. package/dist/cdn/chunks/CommentsSidebar-Dxke-vUP.js.map +1 -0
  58. package/dist/{CountdownBlock-DuyvGcr8.js → cdn/chunks/CountdownBlock-BYSrJWxg.js} +25 -23
  59. package/dist/cdn/chunks/{CountdownBlock-vLTkTI9e.js.map → CountdownBlock-BYSrJWxg.js.map} +1 -1
  60. package/dist/{CountdownToolbar-CBE9wRaV.js → cdn/chunks/CountdownToolbar-CZPtQIb8.js} +66 -63
  61. package/dist/cdn/chunks/{CountdownToolbar-DPjcgcVR.js.map → CountdownToolbar-CZPtQIb8.js.map} +1 -1
  62. package/dist/cdn/chunks/{DesignReferenceSidebar-B-HFXV0W.js → DesignReferenceSidebar-sZWciECR.js} +64 -64
  63. package/dist/cdn/chunks/DesignReferenceSidebar-sZWciECR.js.map +1 -0
  64. package/dist/cdn/chunks/{IssuesPanel-DKTS4QVb.js → IssuesPanel-CHtetM9i.js} +36 -36
  65. package/dist/cdn/chunks/IssuesPanel-CHtetM9i.js.map +1 -0
  66. package/dist/cdn/chunks/{LoadingTrack-C52ZGL5q.js → LoadingTrack-Dp_QZvAK.js} +3 -3
  67. package/dist/cdn/chunks/{LoadingTrack-C52ZGL5q.js.map → LoadingTrack-Dp_QZvAK.js.map} +1 -1
  68. package/dist/cdn/chunks/{MergeTagModeToggle-DQ79SqQc.js → MergeTagModeToggle-ZwW-5EeN.js} +39 -39
  69. package/dist/cdn/chunks/{MergeTagModeToggle-DQ79SqQc.js.map → MergeTagModeToggle-ZwW-5EeN.js.map} +1 -1
  70. package/dist/cdn/chunks/{MergeTagSuggestion-Dn8dExNa.js → MergeTagSuggestion-DhllqTA3.js} +47 -47
  71. package/dist/cdn/chunks/MergeTagSuggestion-DhllqTA3.js.map +1 -0
  72. package/dist/{NumberWithSuffix-D37ZWiZh.js → cdn/chunks/NumberWithSuffix-yeQLcCyH.js} +37 -35
  73. package/dist/cdn/chunks/NumberWithSuffix-yeQLcCyH.js.map +1 -0
  74. package/dist/cdn/chunks/{ParagraphEditor-CZ5Z6AgG.js → ParagraphEditor-BJJ925sx.js} +234 -233
  75. package/dist/cdn/chunks/ParagraphEditor-BJJ925sx.js.map +1 -0
  76. package/dist/cdn/chunks/RestoreVersionDialog-B0Jadu6F.js +87 -0
  77. package/dist/cdn/chunks/RestoreVersionDialog-B0Jadu6F.js.map +1 -0
  78. package/dist/cdn/chunks/{RichTextEditorContent-DtL49Jpo.js → RichTextEditorContent-CfSq2wPR.js} +44 -44
  79. package/dist/cdn/chunks/RichTextEditorContent-CfSq2wPR.js.map +1 -0
  80. package/dist/cdn/chunks/SaveBlockDialog-C1DXh6P9.js +265 -0
  81. package/dist/cdn/chunks/SaveBlockDialog-C1DXh6P9.js.map +1 -0
  82. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BkQXEUE2.js → SavedBlocksBrowserModal-BerMxAUt.js} +114 -113
  83. package/dist/cdn/chunks/SavedBlocksBrowserModal-BerMxAUt.js.map +1 -0
  84. package/dist/{SavedBlocksPanels-DEPmNhi6.js → cdn/chunks/SavedBlocksPanels-BUE4lzVP.js} +11 -9
  85. package/dist/cdn/chunks/{SavedBlocksPanels-CUtYoi5Z.js.map → SavedBlocksPanels-BUE4lzVP.js.map} +1 -1
  86. package/dist/cdn/chunks/{SavedBlocksPickBar-C80qJykl.js → SavedBlocksPickBar-4HrqQfvl.js} +17 -17
  87. package/dist/cdn/chunks/SavedBlocksPickBar-4HrqQfvl.js.map +1 -0
  88. package/dist/cdn/chunks/{TemplateScoringPanel-NucRtAP0.js → TemplateScoringPanel-Xdkp2EMY.js} +81 -81
  89. package/dist/cdn/chunks/TemplateScoringPanel-Xdkp2EMY.js.map +1 -0
  90. package/dist/cdn/chunks/TestEmailModal-yfmFiavR.js +206 -0
  91. package/dist/cdn/chunks/TestEmailModal-yfmFiavR.js.map +1 -0
  92. package/dist/{TestEmailPanel-DubocPxf.js → cdn/chunks/TestEmailPanel-DqTDh5ri.js} +6 -4
  93. package/dist/cdn/chunks/{TestEmailPanel-B8y7JabA.js.map → TestEmailPanel-DqTDh5ri.js.map} +1 -1
  94. package/dist/cdn/chunks/{TitleEditor-C8WDXf4P.js → TitleEditor-nUAF7fKr.js} +83 -83
  95. package/dist/cdn/chunks/TitleEditor-nUAF7fKr.js.map +1 -0
  96. package/dist/cdn/chunks/TplModal-C0IqikoV.js +50 -0
  97. package/dist/cdn/chunks/TplModal-C0IqikoV.js.map +1 -0
  98. package/dist/cdn/chunks/VersionHistoryMenu-_MAj3qZj.js +148 -0
  99. package/dist/cdn/chunks/VersionHistoryMenu-_MAj3qZj.js.map +1 -0
  100. package/dist/cdn/chunks/VersionHistoryPanels-6Hz9w20W.js +48 -0
  101. package/dist/cdn/chunks/VersionHistoryPanels-6Hz9w20W.js.map +1 -0
  102. package/dist/cdn/chunks/VersionPreviewBanner-D098_6_I.js +40 -0
  103. package/dist/cdn/chunks/VersionPreviewBanner-D098_6_I.js.map +1 -0
  104. package/dist/cdn/chunks/{blockTypeIcons-FXlMM3PL.js → blockTypeIcons-hX_W4dqo.js} +2 -2
  105. package/dist/cdn/chunks/{blockTypeIcons-FXlMM3PL.js.map → blockTypeIcons-hX_W4dqo.js.map} +1 -1
  106. package/dist/cdn/chunks/{ca-D1zgI9fQ.js → ca-Cqg9O8mx.js} +70 -7
  107. package/dist/cdn/chunks/ca-Cqg9O8mx.js.map +1 -0
  108. package/dist/{cloud-qINCmQbn.js → cdn/chunks/cloud-BA0OpRh-.js} +400 -609
  109. package/dist/cdn/chunks/cloud-BA0OpRh-.js.map +1 -0
  110. package/dist/cdn/chunks/createCloudRuntime-DmzV7OnU.js +344 -0
  111. package/dist/cdn/chunks/createCloudRuntime-DmzV7OnU.js.map +1 -0
  112. package/dist/{de-DHra3lvx.js → cdn/chunks/de-BXmeeFbX.js} +71 -6
  113. package/dist/cdn/chunks/de-BXmeeFbX.js.map +1 -0
  114. package/dist/{de-uVoSP1xF.js → cdn/chunks/de-Dbwm2cON.js} +3 -54
  115. package/dist/cdn/chunks/de-Dbwm2cON.js.map +1 -0
  116. package/dist/cdn/chunks/{dist-B2HKGHnc.js → dist-CM8TB0VD.js} +136 -136
  117. package/dist/cdn/chunks/{dist-B2HKGHnc.js.map → dist-CM8TB0VD.js.map} +1 -1
  118. package/dist/cdn/chunks/{dist-C6z8AjBC.js → dist-CYLJiSiH.js} +63 -63
  119. package/dist/cdn/chunks/{dist-C6z8AjBC.js.map → dist-CYLJiSiH.js.map} +1 -1
  120. package/dist/cdn/chunks/{draggable-DCs9qL-b.js → draggable-BfpsXFg7.js} +916 -905
  121. package/dist/cdn/chunks/{draggable-DCs9qL-b.js.map → draggable-BfpsXFg7.js.map} +1 -1
  122. package/dist/{en-DlqX2YWZ.js → cdn/chunks/en-DbBNy67B.js} +71 -6
  123. package/dist/cdn/chunks/en-DbBNy67B.js.map +1 -0
  124. package/dist/{en-CjhsJxb-.js → cdn/chunks/en-Dzw4EqNI.js} +3 -54
  125. package/dist/cdn/chunks/en-Dzw4EqNI.js.map +1 -0
  126. package/dist/cdn/chunks/{es-Cuss2snv.js → es-JUsAjxWu.js} +70 -7
  127. package/dist/cdn/chunks/es-JUsAjxWu.js.map +1 -0
  128. package/dist/cdn/chunks/{extensions-qhcN3RMT.js → extensions-CMcVw2uu.js} +53 -53
  129. package/dist/cdn/chunks/{extensions-qhcN3RMT.js.map → extensions-CMcVw2uu.js.map} +1 -1
  130. package/dist/{fr-Cm85vB2g.js → cdn/chunks/fr-J3qgXH4h.js} +71 -6
  131. package/dist/cdn/chunks/fr-J3qgXH4h.js.map +1 -0
  132. package/dist/cdn/chunks/{icons-CvYN6zrM.js → icons-C36Ha5VU.js} +11 -11
  133. package/dist/cdn/chunks/{icons-CvYN6zrM.js.map → icons-C36Ha5VU.js.map} +1 -1
  134. package/dist/{keys-fwF3qZax.js → cdn/chunks/keys-CbQuRX85.js} +6 -4
  135. package/dist/cdn/chunks/keys-CbQuRX85.js.map +1 -0
  136. package/dist/cdn/chunks/logger-ByvdoAwq.js +23 -0
  137. package/dist/cdn/chunks/logger-ByvdoAwq.js.map +1 -0
  138. package/dist/cdn/chunks/{nl-dmiIX7oT.js → nl-D_4DkqOi.js} +70 -7
  139. package/dist/cdn/chunks/nl-D_4DkqOi.js.map +1 -0
  140. package/dist/cdn/chunks/preRenderCustomBlocks-CbA3RcAy.js +23 -0
  141. package/dist/cdn/chunks/preRenderCustomBlocks-CbA3RcAy.js.map +1 -0
  142. package/dist/{pt-BR-CTzHTqJD.js → cdn/chunks/pt-BR-BxzQzWGJ.js} +3 -54
  143. package/dist/cdn/chunks/pt-BR-BxzQzWGJ.js.map +1 -0
  144. package/dist/cdn/chunks/{pt-BR-CaIG-7EM.js → pt-BR-KGURyEEQ.js} +70 -7
  145. package/dist/cdn/chunks/pt-BR-KGURyEEQ.js.map +1 -0
  146. package/dist/cdn/chunks/{src-BwbnXShT.js → src-BOjFLNf7.js} +148 -134
  147. package/dist/cdn/chunks/src-BOjFLNf7.js.map +1 -0
  148. package/dist/cdn/chunks/{src-xkGep9eN.js → src-Dq3fgSIx.js} +1448 -1458
  149. package/dist/cdn/chunks/src-Dq3fgSIx.js.map +1 -0
  150. package/dist/cdn/chunks/styleConstants-ByDqaYj_.js +61 -0
  151. package/dist/cdn/chunks/styleConstants-ByDqaYj_.js.map +1 -0
  152. package/dist/cdn/chunks/timeouts-DHPZQ0G3.js +6 -0
  153. package/dist/cdn/chunks/timeouts-DHPZQ0G3.js.map +1 -0
  154. package/dist/cdn/chunks/{tiptap-C44S1Cmh.js → tiptap-DmpGap5g.js} +40 -40
  155. package/dist/cdn/chunks/{tiptap-C44S1Cmh.js.map → tiptap-DmpGap5g.js.map} +1 -1
  156. package/dist/cdn/chunks/{useAliveFlag-Dxwgo6P4.js → useAliveFlag-Dtm174fG.js} +2 -2
  157. package/dist/cdn/chunks/{useAliveFlag-Dxwgo6P4.js.map → useAliveFlag-Dtm174fG.js.map} +1 -1
  158. package/dist/cdn/chunks/{useCloudI18n-8wkJtuJD.js → useCloudI18n-NVa1aeY8.js} +5 -5
  159. package/dist/cdn/chunks/{useCloudI18n-8wkJtuJD.js.map → useCloudI18n-NVa1aeY8.js.map} +1 -1
  160. package/dist/cdn/chunks/{useEditorCore-CcgxY-Gy.js → useEditorCore-CTu_qZ3W.js} +1434 -1147
  161. package/dist/cdn/chunks/useEditorCore-CTu_qZ3W.js.map +1 -0
  162. package/dist/cdn/chunks/{useI18n-UMs0F71x.js → useI18n-DVWCJJFH.js} +5 -5
  163. package/dist/cdn/chunks/{useI18n-UMs0F71x.js.map → useI18n-DVWCJJFH.js.map} +1 -1
  164. package/dist/cdn/chunks/{useMergeTag-JmXOtpln.js → useMergeTag-BfZBRPQp.js} +4 -4
  165. package/dist/cdn/chunks/{useMergeTag-JmXOtpln.js.map → useMergeTag-BfZBRPQp.js.map} +1 -1
  166. package/dist/cdn/chunks/{usePopoverPosition-cf8Y-ynK.js → usePopoverPosition-BC-HA7TK.js} +3 -3
  167. package/dist/cdn/chunks/{usePopoverPosition-cf8Y-ynK.js.map → usePopoverPosition-BC-HA7TK.js.map} +1 -1
  168. package/dist/cdn/editor.css +1 -1
  169. package/dist/cdn/editor.js +5103 -284
  170. package/dist/cdn/editor.js.map +1 -1
  171. package/dist/{check-On4TSac-.js → check-DZbmkMQe.js} +1 -1
  172. package/dist/{chevron-down-69EiBGoB.js → chevron-down-nYScOLeZ.js} +1 -1
  173. package/dist/{chevron-up-Dh3MG1Dw.js → chevron-up-CpYpDLnc.js} +1 -1
  174. package/dist/{circle-alert-cilwzafX.js → circle-alert-CuuK6thq.js} +1 -1
  175. package/dist/{clock-Dt0APH92.js → clock-DxkrtqOr.js} +1 -1
  176. package/dist/cloud-BAefVBb_.js +1444 -0
  177. package/dist/createCloudRuntime-Bt8W-ajI.js +342 -0
  178. package/dist/{createLucideIcon-C8WzBYCv.js → createLucideIcon-L-wQXW_R.js} +9 -9
  179. package/dist/{cdn/chunks/de-DHra3lvx.js → de-BXmeeFbX.js} +69 -8
  180. package/dist/{cdn/chunks/de-uVoSP1xF.js → de-Dbwm2cON.js} +1 -56
  181. package/dist/dist-B5iReTtK.js +251 -0
  182. package/dist/{dist-Cl8J0IES.js → dist-Ck9roB6K.js} +42 -42
  183. package/dist/{dist-BpKxrUi2.js → dist-CqcGTIiX.js} +46 -46
  184. package/dist/{cdn/chunks/en-DlqX2YWZ.js → en-DbBNy67B.js} +69 -8
  185. package/dist/{cdn/chunks/en-CjhsJxb-.js → en-Dzw4EqNI.js} +1 -56
  186. package/dist/{es-Cuss2snv.js → es-JUsAjxWu.js} +69 -6
  187. package/dist/{extensions-Cwg9S-0f.js → extensions-CX87G4aL.js} +42 -42
  188. package/dist/{cdn/chunks/fr-Cm85vB2g.js → fr-J3qgXH4h.js} +69 -8
  189. package/dist/{image-up-Ceggh_R3.js → image-up-DouZRGVt.js} +1 -1
  190. package/dist/index.d.ts +499 -23
  191. package/dist/{info-DO5odBcZ.js → info-puX5V6Iq.js} +1 -1
  192. package/dist/{cdn/chunks/keys-Cmc2Yl3D.js → keys-BxixS0TN.js} +4 -6
  193. package/dist/{list-checks-BSkPKbuI.js → list-checks-jw-ZlvWY.js} +1 -1
  194. package/dist/{loader-circle-bO7o7_HD.js → loader-circle-DqTxB7Kr.js} +1 -1
  195. package/dist/logger-BBlvSn6q.js +21 -0
  196. package/dist/{message-circle-BEkAk65X.js → message-circle-BZ7YpB22.js} +1 -1
  197. package/dist/{nl-dmiIX7oT.js → nl-D_4DkqOi.js} +69 -6
  198. package/dist/{pencil-t6m0EtKL.js → pencil-DmbRhTJu.js} +1 -1
  199. package/dist/preRenderCustomBlocks-BebjKtmw.js +21 -0
  200. package/dist/{cdn/chunks/pt-BR-CTzHTqJD.js → pt-BR-BxzQzWGJ.js} +1 -56
  201. package/dist/{pt-BR-CaIG-7EM.js → pt-BR-KGURyEEQ.js} +69 -6
  202. package/dist/{refresh-cw-CkOYVzK5.js → refresh-cw-OK_O-cL0.js} +1 -1
  203. package/dist/{runtime-dom.esm-bundler-CepEmvwF.js → runtime-dom.esm-bundler-BgKXIPLV.js} +144 -144
  204. package/dist/{scan-line-DwSVj25O.js → scan-line-DyaSTsJ5.js} +1 -1
  205. package/dist/{send-CWsWN8PQ.js → send-B-wasJJC.js} +1 -1
  206. package/dist/{shield-check-qje8Kufw.js → shield-check-DUIyRrTo.js} +1 -1
  207. package/dist/{sparkles-DumaWRW-.js → sparkles-DYEMATWC.js} +1 -1
  208. package/dist/style.css +1 -1
  209. package/dist/styleConstants-ByDqaYj_.js +59 -0
  210. package/dist/templatical-editor.js +5303 -289
  211. package/dist/{text-align-start-Ir8Ah4mT.js → text-align-start-CzjLeBLe.js} +1 -1
  212. package/dist/timeouts-DHPZQ0G3.js +4 -0
  213. package/dist/{trash-2-CklAFCmO.js → trash-2-C0shEPry.js} +1 -1
  214. package/dist/{triangle-alert-BBi4n93g.js → triangle-alert-Fw0ce8oQ.js} +1 -1
  215. package/dist/{upload-sVqqppuv.js → upload-D69C2CBx.js} +3 -4
  216. package/dist/{useAliveFlag-cvyBxHp7.js → useAliveFlag-BGIAZii_.js} +1 -1
  217. package/dist/{useCloudI18n-DKVm6PCa.js → useCloudI18n-CAZTZ9_a.js} +2 -2
  218. package/dist/{useEditorCore-P4UkhcyS.js → useEditorCore-B-kONNRw.js} +1604 -1320
  219. package/dist/{useI18n-DoVKdCTH.js → useI18n-BfXff_Sy.js} +2 -2
  220. package/dist/{useMergeTag-CYZk7dZD.js → useMergeTag-Dd4I7kge.js} +3 -3
  221. package/dist/usePopoverPosition-CxhCX3SQ.js +59 -0
  222. package/dist/{vue.runtime.esm-bundler-D1diBMsm.js → vue.runtime.esm-bundler-DzEsDRtY.js} +447 -436
  223. package/dist/{x-Mby7KlhS.js → x-BjTlFqRv.js} +1 -1
  224. package/package.json +7 -7
  225. package/dist/AiFeatureMenu-Cy-PVrNT.js +0 -63
  226. package/dist/BlockPreviewCanvas-BZKslwGI.js +0 -121
  227. package/dist/CloudEditor-CPRkQCRa.js +0 -1188
  228. package/dist/ColorPicker-ClETsjA3.js +0 -550
  229. package/dist/CommentsSidebar-CdRCCSDD.js +0 -435
  230. package/dist/SaveBlockDialog-21vDlEBS.js +0 -265
  231. package/dist/SnapshotHistory-Cb4WW2gf.js +0 -128
  232. package/dist/TestEmailModal-BHDKmd6B.js +0 -205
  233. package/dist/TitleEditor-Cy4B3UNe.js +0 -198
  234. package/dist/TplModal-Dv9zgSWI.js +0 -49
  235. package/dist/cdn/chunks/AiChatSidebar-CQ8KUmNB.js.map +0 -1
  236. package/dist/cdn/chunks/AiFeatureMenu-Cb9gaRBn.js +0 -63
  237. package/dist/cdn/chunks/AiFeatureMenu-Cb9gaRBn.js.map +0 -1
  238. package/dist/cdn/chunks/CloudEditor-DbyEsIxu.js +0 -1166
  239. package/dist/cdn/chunks/CloudEditor-DbyEsIxu.js.map +0 -1
  240. package/dist/cdn/chunks/CollaboratorBar-G_sZDZXw.js.map +0 -1
  241. package/dist/cdn/chunks/ColorPicker-W_UyiVGc.js +0 -552
  242. package/dist/cdn/chunks/ColorPicker-W_UyiVGc.js.map +0 -1
  243. package/dist/cdn/chunks/CommentsSidebar-BLRZRSSC.js +0 -412
  244. package/dist/cdn/chunks/CommentsSidebar-BLRZRSSC.js.map +0 -1
  245. package/dist/cdn/chunks/DesignReferenceSidebar-B-HFXV0W.js.map +0 -1
  246. package/dist/cdn/chunks/IssuesPanel-DKTS4QVb.js.map +0 -1
  247. package/dist/cdn/chunks/MergeTagSuggestion-Dn8dExNa.js.map +0 -1
  248. package/dist/cdn/chunks/NumberWithSuffix-BXrRdfq1.js.map +0 -1
  249. package/dist/cdn/chunks/ParagraphEditor-CZ5Z6AgG.js.map +0 -1
  250. package/dist/cdn/chunks/RichTextEditorContent-DtL49Jpo.js.map +0 -1
  251. package/dist/cdn/chunks/SaveBlockDialog-CVIVZEuy.js +0 -264
  252. package/dist/cdn/chunks/SaveBlockDialog-CVIVZEuy.js.map +0 -1
  253. package/dist/cdn/chunks/SavedBlocksBrowserModal-BkQXEUE2.js.map +0 -1
  254. package/dist/cdn/chunks/SavedBlocksPickBar-C80qJykl.js.map +0 -1
  255. package/dist/cdn/chunks/SnapshotHistory-DFinMrg_.js +0 -121
  256. package/dist/cdn/chunks/SnapshotHistory-DFinMrg_.js.map +0 -1
  257. package/dist/cdn/chunks/TemplateScoringPanel-NucRtAP0.js.map +0 -1
  258. package/dist/cdn/chunks/TestEmailModal-IxS-QjeH.js +0 -205
  259. package/dist/cdn/chunks/TestEmailModal-IxS-QjeH.js.map +0 -1
  260. package/dist/cdn/chunks/TitleEditor-C8WDXf4P.js.map +0 -1
  261. package/dist/cdn/chunks/TplModal-Ce0QuHyo.js +0 -50
  262. package/dist/cdn/chunks/TplModal-Ce0QuHyo.js.map +0 -1
  263. package/dist/cdn/chunks/ca-D1zgI9fQ.js.map +0 -1
  264. package/dist/cdn/chunks/cloud-DcC8bPwn.js +0 -1787
  265. package/dist/cdn/chunks/cloud-DcC8bPwn.js.map +0 -1
  266. package/dist/cdn/chunks/de-DHra3lvx.js.map +0 -1
  267. package/dist/cdn/chunks/de-uVoSP1xF.js.map +0 -1
  268. package/dist/cdn/chunks/en-CjhsJxb-.js.map +0 -1
  269. package/dist/cdn/chunks/en-DlqX2YWZ.js.map +0 -1
  270. package/dist/cdn/chunks/es-Cuss2snv.js.map +0 -1
  271. package/dist/cdn/chunks/fr-Cm85vB2g.js.map +0 -1
  272. package/dist/cdn/chunks/keys-Cmc2Yl3D.js.map +0 -1
  273. package/dist/cdn/chunks/nl-dmiIX7oT.js.map +0 -1
  274. package/dist/cdn/chunks/pt-BR-CTzHTqJD.js.map +0 -1
  275. package/dist/cdn/chunks/pt-BR-CaIG-7EM.js.map +0 -1
  276. package/dist/cdn/chunks/src-BwbnXShT.js.map +0 -1
  277. package/dist/cdn/chunks/src-xkGep9eN.js.map +0 -1
  278. package/dist/cdn/chunks/styles-DLAfU4Uf.js +0 -4140
  279. package/dist/cdn/chunks/styles-DLAfU4Uf.js.map +0 -1
  280. package/dist/cdn/chunks/timeouts-SsLMC4a3.js +0 -6
  281. package/dist/cdn/chunks/timeouts-SsLMC4a3.js.map +0 -1
  282. package/dist/cdn/chunks/useEditorCore-CcgxY-Gy.js.map +0 -1
  283. package/dist/styles-Dx__pP9O.js +0 -4318
  284. package/dist/usePopoverPosition-C0dPEF4X.js +0 -308
@@ -1,20 +1,20 @@
1
- import { A as e, Dt as t, Et as n, I as r, N as i, O as a, Ot as o, R as ee, Y as s, _ as c, c as l, d as u, h as d, l as f, m as p, nt as m, r as h, u as g, x as te } from "./vue.runtime.esm-bundler-D1diBMsm.js";
2
- import { t as ne } from "./runtime-dom.esm-bundler-CepEmvwF.js";
3
- import { E as re, G as _, g as ie, z as v } from "./keys-fwF3qZax.js";
4
- import { t as y } from "./createLucideIcon-C8WzBYCv.js";
5
- import { t as b } from "./chevron-down-69EiBGoB.js";
6
- import { t as x } from "./circle-alert-cilwzafX.js";
7
- import { n as S, t as C } from "./refresh-cw-CkOYVzK5.js";
8
- import { t as ae } from "./info-DO5odBcZ.js";
9
- import { t as w } from "./loader-circle-bO7o7_HD.js";
10
- import { t as T } from "./shield-check-qje8Kufw.js";
11
- import { t as E } from "./sparkles-DumaWRW-.js";
12
- import { t as oe } from "./triangle-alert-BBi4n93g.js";
13
- import { t as se } from "./x-Mby7KlhS.js";
14
- import { t as ce } from "./LoadingTrack-BexpNuTV.js";
1
+ import { Dt as e, L as t, Ot as n, P as r, S as i, X as a, c as o, d as s, g as c, h as l, j as u, k as d, kt as f, l as p, r as m, rt as h, u as g, v as _, z as ee } from "./vue.runtime.esm-bundler-DzEsDRtY.js";
2
+ import { t as te } from "./runtime-dom.esm-bundler-BgKXIPLV.js";
3
+ import { R as ne, T as re, W as v, h as y } from "./keys-BxixS0TN.js";
4
+ import { t as b } from "./createLucideIcon-L-wQXW_R.js";
5
+ import { t as ie } from "./chevron-down-nYScOLeZ.js";
6
+ import { t as x } from "./circle-alert-CuuK6thq.js";
7
+ import { n as ae, t as S } from "./refresh-cw-OK_O-cL0.js";
8
+ import { t as C } from "./info-puX5V6Iq.js";
9
+ import { t as w } from "./loader-circle-DqTxB7Kr.js";
10
+ import { t as T } from "./shield-check-DUIyRrTo.js";
11
+ import { t as E } from "./sparkles-DYEMATWC.js";
12
+ import { t as oe } from "./triangle-alert-Fw0ce8oQ.js";
13
+ import { t as se } from "./x-BjTlFqRv.js";
14
+ import { t as ce } from "./LoadingTrack-C2T8ixEL.js";
15
15
  import { t as D } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
- import { n as le } from "./useCloudI18n-DKVm6PCa.js";
17
- var O = y("shield-x", [
16
+ import { n as le } from "./useCloudI18n-CAZTZ9_a.js";
17
+ var O = b("shield-x", [
18
18
  ["path", {
19
19
  d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
20
20
  key: "oel41y"
@@ -27,7 +27,7 @@ var O = y("shield-x", [
27
27
  d: "m9.5 9.5 5 5",
28
28
  key: "18nt4w"
29
29
  }]
30
- ]), k = y("zap", [["path", {
30
+ ]), k = b("zap", [["path", {
31
31
  d: "M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",
32
32
  key: "1v7up4"
33
33
  }]]);
@@ -86,12 +86,12 @@ var P = {
86
86
  }, Ee = {
87
87
  key: 3,
88
88
  class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
89
- }, De = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Oe = { class: "tpl:m-0 tpl:px-4 tpl:pb-2 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, G = /*#__PURE__*/ D(/* @__PURE__ */ c({
89
+ }, De = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Oe = { class: "tpl:m-0 tpl:px-4 tpl:pb-2 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, G = /*#__PURE__*/ D(/* @__PURE__ */ _({
90
90
  __name: "TemplateScoringPanel",
91
91
  props: { visible: { type: Boolean } },
92
92
  emits: ["close"],
93
- setup(c, { emit: y }) {
94
- let D = c, G = y, { t: K } = le(), q = _(ie, "TemplateScoringPanel"), J = _(v, "TemplateScoringPanel"), Y = te(re, []), X = s({
93
+ setup(_, { emit: b }) {
94
+ let D = _, G = b, { t: K } = le(), q = v(y, "TemplateScoringPanel"), J = v(ne, "TemplateScoringPanel"), Y = i(re, []), X = a({
95
95
  spam: !0,
96
96
  readability: !0,
97
97
  accessibility: !0,
@@ -107,14 +107,14 @@ var P = {
107
107
  "bestPractices"
108
108
  ], Ae = {
109
109
  spam: O,
110
- readability: S,
110
+ readability: ae,
111
111
  accessibility: E,
112
112
  bestPractices: k
113
113
  };
114
114
  function Q() {
115
115
  J.score(q.content.value, Y);
116
116
  }
117
- r(() => D.visible, (e) => {
117
+ t(() => D.visible, (e) => {
118
118
  e && !J.scoringResult.value && !J.isScoring.value && Q();
119
119
  });
120
120
  async function je(e) {
@@ -129,7 +129,7 @@ var P = {
129
129
  function $() {
130
130
  return J.scoringResult.value ? Z.reduce((e, t) => e + (J.scoringResult.value?.categories[t]?.findings.length ?? 0), 0) : 0;
131
131
  }
132
- return (r, s) => (a(), f(ne, {
132
+ return (t, i) => (d(), p(te, {
133
133
  "enter-active-class": "tpl-scoring-slide-enter-active",
134
134
  "enter-from-class": "tpl:translate-x-full",
135
135
  "enter-to-class": "tpl:translate-x-0",
@@ -137,121 +137,121 @@ var P = {
137
137
  "leave-from-class": "tpl:translate-x-0",
138
138
  "leave-to-class": "tpl:translate-x-full"
139
139
  }, {
140
- default: ee(() => [c.visible ? (a(), u("div", P, [l("div", F, [l("div", I, [d(m(T), {
140
+ default: ee(() => [_.visible ? (d(), s("div", P, [o("div", F, [o("div", I, [c(h(T), {
141
141
  size: 13,
142
142
  "stroke-width": 2
143
- }), l("span", null, o(m(K).scoring.title), 1)]), l("div", L, [m(J).scoringResult.value && !m(J).isScoring.value ? (a(), u("button", {
143
+ }), o("span", null, f(h(K).scoring.title), 1)]), o("div", L, [h(J).scoringResult.value && !h(J).isScoring.value ? (d(), s("button", {
144
144
  key: 0,
145
- class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
146
- title: m(K).scoring.rescore,
147
- onClick: s[0] ||= (e) => Q()
148
- }, [d(m(C), {
145
+ class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
146
+ title: h(K).scoring.rescore,
147
+ onClick: i[0] ||= (e) => Q()
148
+ }, [c(h(S), {
149
149
  size: 14,
150
150
  "stroke-width": 2
151
- })], 8, R)) : g("", !0), l("button", {
152
- class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
153
- onClick: s[1] ||= (e) => G("close")
154
- }, [d(m(se), {
151
+ })], 8, R)) : g("", !0), o("button", {
152
+ class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
153
+ onClick: i[1] ||= (e) => G("close")
154
+ }, [c(h(se), {
155
155
  size: 14,
156
156
  "stroke-width": 2
157
- })])])]), l("div", z, [m(J).isScoring.value ? (a(), u("div", B, [l("p", V, o(m(K).scoring.scoring), 1), d(ce, { class: "tpl:w-3/4" })])) : m(J).error.value && !m(J).scoringResult.value ? (a(), u("div", H, [
158
- d(m(x), {
157
+ })])])]), o("div", z, [h(J).isScoring.value ? (d(), s("div", B, [o("p", V, f(h(K).scoring.scoring), 1), c(ce, { class: "tpl:w-3/4" })])) : h(J).error.value && !h(J).scoringResult.value ? (d(), s("div", H, [
158
+ c(h(x), {
159
159
  size: 32,
160
160
  "stroke-width": 1.5,
161
161
  class: "tpl:text-[var(--tpl-danger)]"
162
162
  }),
163
- l("p", U, o(m(K).scoring.error), 1),
164
- l("button", {
165
- class: "tpl:mt-2 tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-muted)]",
166
- onClick: s[2] ||= (e) => Q()
167
- }, [d(m(C), {
163
+ o("p", U, f(h(K).scoring.error), 1),
164
+ o("button", {
165
+ class: "tpl:mt-2 tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-muted)]",
166
+ onClick: i[2] ||= (e) => Q()
167
+ }, [c(h(S), {
168
168
  size: 12,
169
169
  "stroke-width": 2
170
- }), p(" " + o(m(K).scoring.rescore), 1)])
171
- ])) : m(J).scoringResult.value ? (a(), u("div", W, [
172
- l("div", {
170
+ }), l(" " + f(h(K).scoring.rescore), 1)])
171
+ ])) : h(J).scoringResult.value ? (d(), s("div", W, [
172
+ o("div", {
173
173
  class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:p-5",
174
- style: t({ backgroundColor: m(j)(m(J).scoringResult.value.score) })
174
+ style: n({ backgroundColor: h(j)(h(J).scoringResult.value.score) })
175
175
  }, [
176
- l("span", {
176
+ o("span", {
177
177
  class: "tpl:text-4xl tpl:font-bold tpl:tabular-nums",
178
- style: t({ color: m(A)(m(J).scoringResult.value.score) })
179
- }, o(m(J).scoringResult.value.score), 5),
180
- l("span", ue, o(m(K).scoring.overallScore), 1),
181
- $() > 0 ? (a(), u("span", de, o($()) + " " + o(m(K).scoring.findings), 1)) : g("", !0)
178
+ style: n({ color: h(A)(h(J).scoringResult.value.score) })
179
+ }, f(h(J).scoringResult.value.score), 5),
180
+ o("span", ue, f(h(K).scoring.overallScore), 1),
181
+ $() > 0 ? (d(), s("span", de, f($()) + " " + f(h(K).scoring.findings), 1)) : g("", !0)
182
182
  ], 4),
183
- m(J).fixError.value ? (a(), u("div", fe, [d(m(x), {
183
+ h(J).fixError.value ? (d(), s("div", fe, [c(h(x), {
184
184
  size: 14,
185
185
  "stroke-width": 2,
186
186
  class: "tpl:mt-0.5 tpl:shrink-0"
187
- }), l("span", null, o(m(K).scoring.fixError), 1)])) : g("", !0),
188
- (a(), u(h, null, e(Z, (r) => l("div", {
189
- key: r,
187
+ }), o("span", null, f(h(K).scoring.fixError), 1)])) : g("", !0),
188
+ (d(), s(m, null, u(Z, (t) => o("div", {
189
+ key: t,
190
190
  class: "tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)]"
191
- }, [l("button", {
192
- class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-2.5 tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-colors tpl:duration-100 tpl:bg-[var(--tpl-bg)]",
193
- onClick: (e) => ke(r)
191
+ }, [o("button", {
192
+ class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-2.5 tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-colors tpl:bg-[var(--tpl-bg)]",
193
+ onClick: (e) => ke(t)
194
194
  }, [
195
- (a(), f(i(Ae[r]), {
195
+ (d(), p(r(Ae[t]), {
196
196
  size: 14,
197
197
  "stroke-width": 2,
198
- style: t({ color: m(A)(m(J).scoringResult.value.categories[r].score) })
198
+ style: n({ color: h(A)(h(J).scoringResult.value.categories[t].score) })
199
199
  }, null, 8, ["style"])),
200
- l("span", me, o(m(K).scoring.categories[r]), 1),
201
- l("span", {
200
+ o("span", me, f(h(K).scoring.categories[t]), 1),
201
+ o("span", {
202
202
  class: "tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-semibold tpl:tabular-nums",
203
- style: t({
204
- color: m(A)(m(J).scoringResult.value.categories[r].score),
205
- backgroundColor: m(j)(m(J).scoringResult.value.categories[r].score)
203
+ style: n({
204
+ color: h(A)(h(J).scoringResult.value.categories[t].score),
205
+ backgroundColor: h(j)(h(J).scoringResult.value.categories[t].score)
206
206
  })
207
- }, o(m(J).scoringResult.value.categories[r].score), 5),
208
- m(J).scoringResult.value.categories[r].findings.length > 0 ? (a(), u("span", he, o(m(J).scoringResult.value.categories[r].findings.length), 1)) : g("", !0),
209
- d(m(b), {
207
+ }, f(h(J).scoringResult.value.categories[t].score), 5),
208
+ h(J).scoringResult.value.categories[t].findings.length > 0 ? (d(), s("span", he, f(h(J).scoringResult.value.categories[t].findings.length), 1)) : g("", !0),
209
+ c(h(ie), {
210
210
  size: 12,
211
211
  "stroke-width": 2,
212
- class: n(["tpl:transition-transform tpl:duration-200 tpl:text-[var(--tpl-text-dim)]", X.value[r] ? "tpl:rotate-0" : "tpl:-rotate-90"])
212
+ class: e(["tpl:transition-transform tpl:duration-200 tpl:text-[var(--tpl-text-dim)]", X.value[t] ? "tpl:rotate-0" : "tpl:-rotate-90"])
213
213
  }, null, 8, ["class"])
214
- ], 8, pe), X.value[r] ? (a(), u("div", ge, [m(J).scoringResult.value.categories[r].findings.length === 0 ? (a(), u("div", _e, o(m(K).scoring.noFindings), 1)) : g("", !0), (a(!0), u(h, null, e(m(J).scoringResult.value.categories[r].findings, (e) => (a(), u("div", {
214
+ ], 8, pe), X.value[t] ? (d(), s("div", ge, [h(J).scoringResult.value.categories[t].findings.length === 0 ? (d(), s("div", _e, f(h(K).scoring.noFindings), 1)) : g("", !0), (d(!0), s(m, null, u(h(J).scoringResult.value.categories[t].findings, (e) => (d(), s("div", {
215
215
  key: e.id,
216
- class: "tpl:border-t tpl:px-3 tpl:py-2.5 first:tpl:border-t-0 tpl:border-[var(--tpl-border-light)]"
217
- }, [l("div", ve, [(a(), f(i(e.severity === "high" ? m(x) : e.severity === "medium" ? m(oe) : m(ae)), {
216
+ class: "tpl:border-t tpl:px-3 tpl:py-2.5 tpl:first:border-t-0 tpl:border-[var(--tpl-border-light)]"
217
+ }, [o("div", ve, [(d(), p(r(e.severity === "high" ? h(x) : e.severity === "medium" ? h(oe) : h(C)), {
218
218
  size: 13,
219
219
  "stroke-width": 2,
220
220
  class: "tpl:mt-0.5 tpl:shrink-0",
221
- style: t({ color: m(M)(e.severity) })
222
- }, null, 8, ["style"])), l("div", ye, [
223
- l("div", be, [l("span", {
221
+ style: n({ color: h(M)(e.severity) })
222
+ }, null, 8, ["style"])), o("div", ye, [
223
+ o("div", be, [o("span", {
224
224
  class: "tpl:mt-0.5 tpl:shrink-0 tpl:rounded tpl:px-1 tpl:py-px tpl:text-[10px] tpl:font-medium tpl:leading-tight",
225
- style: t({
226
- color: m(M)(e.severity),
227
- backgroundColor: m(N)(e.severity)
225
+ style: n({
226
+ color: h(M)(e.severity),
227
+ backgroundColor: h(N)(e.severity)
228
228
  })
229
- }, o(m(K).scoring.severity[e.severity]), 5), l("span", xe, o(e.message), 1)]),
230
- e.suggestion ? (a(), u("p", Se, o(e.suggestion), 1)) : g("", !0),
231
- e.blockId ? (a(), u("div", Ce, [l("button", {
232
- class: "tpl-scoring-fix-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded tpl:border tpl:px-3 tpl:py-1.5 tpl:text-[11px] tpl:font-medium tpl:transition-all tpl:duration-150 tpl:disabled:opacity-50 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)]",
229
+ }, f(h(K).scoring.severity[e.severity]), 5), o("span", xe, f(e.message), 1)]),
230
+ e.suggestion ? (d(), s("p", Se, f(e.suggestion), 1)) : g("", !0),
231
+ e.blockId ? (d(), s("div", Ce, [o("button", {
232
+ class: "tpl-scoring-fix-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded tpl:border tpl:px-3 tpl:py-1.5 tpl:text-[11px] tpl:font-medium tpl:transition-all tpl:disabled:opacity-50 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)]",
233
233
  style: { "background-color": "transparent" },
234
- disabled: m(J).fixingFindingId.value !== null,
234
+ disabled: h(J).fixingFindingId.value !== null,
235
235
  onClick: (t) => je(e)
236
- }, [m(J).fixingFindingId.value === e.id ? (a(), f(m(w), {
236
+ }, [h(J).fixingFindingId.value === e.id ? (d(), p(h(w), {
237
237
  key: 0,
238
238
  class: "tpl-spinner",
239
239
  size: 11,
240
240
  "stroke-width": 2
241
- })) : (a(), f(m(E), {
241
+ })) : (d(), p(h(E), {
242
242
  key: 1,
243
243
  size: 11,
244
244
  "stroke-width": 2
245
- })), p(" " + o(m(J).fixingFindingId.value === e.id ? m(K).scoring.fixing : m(K).scoring.fix), 1)], 8, we), m(J).fixError.value ? (a(), u("p", Te, o(m(J).fixError.value), 1)) : g("", !0)])) : g("", !0)
245
+ })), l(" " + f(h(J).fixingFindingId.value === e.id ? h(K).scoring.fixing : h(K).scoring.fix), 1)], 8, we), h(J).fixError.value ? (d(), s("p", Te, f(h(J).fixError.value), 1)) : g("", !0)])) : g("", !0)
246
246
  ])])]))), 128))])) : g("", !0)])), 64))
247
- ])) : (a(), u("div", Ee, [d(m(T), {
247
+ ])) : (d(), s("div", Ee, [c(h(T), {
248
248
  size: 32,
249
249
  "stroke-width": 1.5,
250
250
  class: "tpl:text-[var(--tpl-text-dim)]"
251
- }), l("p", De, o(m(K).scoring.emptyState), 1)])), l("p", Oe, o(m(K).aiMenu.disclaimer), 1)])])) : g("", !0)]),
251
+ }), o("p", De, f(h(K).scoring.emptyState), 1)])), o("p", Oe, f(h(K).aiMenu.disclaimer), 1)])])) : g("", !0)]),
252
252
  _: 1
253
253
  }));
254
254
  }
255
- }), [["__scopeId", "data-v-c23c73d4"]]);
255
+ }), [["__scopeId", "data-v-7da30b57"]]);
256
256
  //#endregion
257
257
  export { G as default };
@@ -0,0 +1,206 @@
1
+ import { B as e, Dt as t, L as n, S as r, X as i, c as a, d as o, g as s, h as c, j as l, k as u, kt as d, l as f, r as p, rt as m, s as h, u as g, v as _, z as ee } from "./vue.runtime.esm-bundler-DzEsDRtY.js";
2
+ import { a as te, i as v } from "./runtime-dom.esm-bundler-BgKXIPLV.js";
3
+ import { j as ne } from "./dist-B1kLn1rs.js";
4
+ import { H as re } from "./useEditorCore-B-kONNRw.js";
5
+ import { I as ie, O as ae, T as oe, h as se } from "./keys-BxixS0TN.js";
6
+ import { t as ce } from "./useI18n-BfXff_Sy.js";
7
+ import { t as le } from "./check-DZbmkMQe.js";
8
+ import { t as ue } from "./loader-circle-DqTxB7Kr.js";
9
+ import { n as de, t as fe } from "./MergeTagModeToggle-PKCoKAoF.js";
10
+ import { v as pe } from "./styleConstants-ByDqaYj_.js";
11
+ import { t as me } from "./TplModal-chvLhXmC.js";
12
+ import { t as he } from "./BlockPreviewCanvas-GZbr0ph5.js";
13
+ //#region src/utils/validateEmailShape.ts
14
+ var y = /[,;<>()[\]\\"'`|/?#@!$%^&*+=~{}]/;
15
+ function b(e) {
16
+ let t = e.trim();
17
+ if (t.length === 0 || /\s/.test(t)) return !1;
18
+ let n = t.split("@");
19
+ if (n.length !== 2) return !1;
20
+ let [r, i] = n;
21
+ if (r.length === 0 || y.test(i)) return !1;
22
+ let a = i.indexOf(".");
23
+ return a > 0 && a < i.length - 1;
24
+ }
25
+ //#endregion
26
+ //#region src/components/TestEmailModal.vue?vue&type=script&setup=true&lang.ts
27
+ var x = ["aria-busy"], S = {
28
+ id: "tpl-test-email-title",
29
+ class: "tpl:mb-4 tpl:shrink-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
30
+ }, C = { class: "tpl:mb-3 tpl:shrink-0" }, w = {
31
+ for: "tpl-test-email-recipient",
32
+ class: "tpl:mb-1.5 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]"
33
+ }, T = ["value"], E = ["disabled"], D = ["value"], O = ["placeholder", "disabled"], k = {
34
+ key: 3,
35
+ class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
36
+ }, A = { class: "tpl:mb-2 tpl:shrink-0" }, j = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-between tpl:gap-2" }, M = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, N = { class: "tpl:flex tpl:items-center tpl:gap-2" }, P = {
37
+ "data-testid": "test-email-preview-hint",
38
+ class: "tpl:mt-1 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
39
+ }, F = {
40
+ id: "tpl-test-email-preview",
41
+ "data-testid": "test-email-preview",
42
+ class: "tpl:mb-3 tpl:min-h-0 tpl:flex-1 tpl:overflow-y-auto tpl:rounded-[var(--tpl-radius-sm)] tpl:p-3 tpl:bg-[var(--tpl-canvas-bg)]"
43
+ }, I = {
44
+ key: 0,
45
+ role: "status",
46
+ "aria-busy": "true",
47
+ "data-testid": "preview-resolution-loading",
48
+ class: "tpl:flex tpl:flex-col tpl:gap-3"
49
+ }, L = { class: "tpl:sr-only" }, R = {
50
+ key: 1,
51
+ role: "status",
52
+ "data-testid": "preview-resolution-failed",
53
+ class: "tpl:mb-2 tpl:rounded-md tpl:px-3 tpl:py-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg-hover)]"
54
+ }, ge = {
55
+ key: 0,
56
+ role: "status",
57
+ "data-testid": "test-email-success",
58
+ class: "tpl:mb-3 tpl:flex tpl:shrink-0 tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-success,var(--tpl-primary))]"
59
+ }, _e = {
60
+ key: 1,
61
+ role: "alert",
62
+ "data-testid": "test-email-error",
63
+ class: "tpl:mb-3 tpl:shrink-0 tpl:text-xs tpl:text-[var(--tpl-danger)]"
64
+ }, ve = { class: "tpl:flex tpl:shrink-0 tpl:justify-end tpl:gap-2" }, ye = ["disabled"], be = ["disabled"], xe = {
65
+ key: 0,
66
+ class: "tpl:flex tpl:items-center tpl:gap-1.5"
67
+ }, Se = { key: 1 }, z = /* @__PURE__ */ _({
68
+ __name: "TestEmailModal",
69
+ props: {
70
+ visible: { type: Boolean },
71
+ allowedRecipients: {},
72
+ defaultRecipient: {},
73
+ isSending: { type: Boolean },
74
+ justSent: { type: Boolean },
75
+ error: {}
76
+ },
77
+ emits: ["send", "close"],
78
+ setup(_, { emit: y }) {
79
+ let z = _, B = y, { t: V } = ce(), Ce = r(se, null), H = i(""), U = i("desktop"), we = r(ie, void 0), W = re({
80
+ resolvePreview: we ?? void 0,
81
+ getContent: () => Ce?.content.value ?? {
82
+ blocks: [],
83
+ settings: {}
84
+ },
85
+ isActive: () => z.visible,
86
+ getRecipient: () => H.value || void 0
87
+ }), G = r(ae, null), K = i(ne(r(oe, []))), q = h({
88
+ get: () => W.isConfigured ? !1 : G?.value ?? K.value,
89
+ set: (e) => {
90
+ G ? G.value = e : K.value = e;
91
+ }
92
+ }), Te = h(() => W.content.value.blocks ?? []), J = h(() => z.allowedRecipients !== void 0 && z.allowedRecipients.length > 0), Ee = h(() => z.allowedRecipients?.length === 1);
93
+ n(() => z.visible, (e) => {
94
+ e && (H.value = z.defaultRecipient ?? z.allowedRecipients?.[0] ?? "");
95
+ }, { immediate: !0 });
96
+ let Y = h(() => J.value ? H.value.length > 0 : b(H.value)), X = h(() => Y.value && !z.isSending && !z.justSent), De = h(() => !J.value && H.value.trim().length > 0 && !Y.value), Z = h(() => z.error ? z.error.kind === "provider" ? z.error.message : V.testEmail.recipientNotAllowed : null);
97
+ function Q() {
98
+ X.value && B("send", H.value.trim());
99
+ }
100
+ function $() {
101
+ z.isSending || B("close");
102
+ }
103
+ function Oe(e) {
104
+ e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q()), e.key === "Escape" && $();
105
+ }
106
+ return (n, r) => (u(), f(me, {
107
+ visible: _.visible,
108
+ onClose: $,
109
+ onKeydown: Oe
110
+ }, {
111
+ default: ee(() => [a("div", {
112
+ role: "dialog",
113
+ "aria-modal": "true",
114
+ "aria-busy": _.isSending,
115
+ "aria-labelledby": "tpl-test-email-title",
116
+ class: "tpl-scale-in tpl:mx-4 tpl:flex tpl:max-h-[90vh] tpl:w-full tpl:max-w-2xl tpl:flex-col tpl:rounded-[var(--tpl-radius-lg)] tpl:p-5",
117
+ style: {
118
+ "background-color": "var(--tpl-bg-elevated)",
119
+ "box-shadow": "var(--tpl-shadow-xl)"
120
+ }
121
+ }, [
122
+ a("h3", S, d(m(V).testEmail.title), 1),
123
+ a("div", C, [
124
+ a("label", w, d(m(V).testEmail.recipientLabel), 1),
125
+ Ee.value ? (u(), o("input", {
126
+ key: 0,
127
+ id: "tpl-test-email-recipient",
128
+ type: "text",
129
+ value: H.value,
130
+ disabled: "",
131
+ "data-testid": "test-email-recipient",
132
+ class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:opacity-70 tpl:shadow-[var(--tpl-shadow-sm)] tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
133
+ }, null, 8, T)) : J.value ? e((u(), o("select", {
134
+ key: 1,
135
+ id: "tpl-test-email-recipient",
136
+ "onUpdate:modelValue": r[0] ||= (e) => H.value = e,
137
+ disabled: _.isSending || _.justSent,
138
+ "data-testid": "test-email-recipient",
139
+ class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:shadow-[var(--tpl-shadow-sm)] tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
140
+ }, [(u(!0), o(p, null, l(_.allowedRecipients, (e) => (u(), o("option", {
141
+ key: e,
142
+ value: e
143
+ }, d(e), 9, D))), 128))], 8, E)), [[v, H.value]]) : e((u(), o("input", {
144
+ key: 2,
145
+ id: "tpl-test-email-recipient",
146
+ "onUpdate:modelValue": r[1] ||= (e) => H.value = e,
147
+ type: "email",
148
+ autocomplete: "email",
149
+ spellcheck: "false",
150
+ placeholder: m(V).testEmail.recipientPlaceholder,
151
+ disabled: _.isSending || _.justSent,
152
+ "data-testid": "test-email-recipient",
153
+ class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:shadow-[var(--tpl-shadow-sm)] tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
154
+ }, null, 8, O)), [[te, H.value]]),
155
+ De.value ? (u(), o("p", k, d(m(V).testEmail.invalidAddress), 1)) : g("", !0)
156
+ ]),
157
+ a("div", A, [a("div", j, [a("span", M, d(m(V).testEmail.preview), 1), a("div", N, [m(W).supersedesSamples.value ? g("", !0) : (u(), f(fe, {
158
+ key: 0,
159
+ "sample-mode": q.value,
160
+ onChange: r[2] ||= (e) => q.value = e
161
+ }, null, 8, ["sample-mode"])), s(de, {
162
+ viewport: U.value,
163
+ onChange: r[3] ||= (e) => U.value = e
164
+ }, null, 8, ["viewport"])])]), a("p", P, d(m(W).supersedesSamples.value ? m(V).previewResolution.hint : q.value ? m(V).testEmail.previewHintSample : m(V).testEmail.previewHint), 1)]),
165
+ a("div", F, [m(W).isInitialResolve.value ? (u(), o("div", I, [a("span", L, d(m(V).previewResolution.resolving), 1), (u(), o(p, null, l(3, (e) => a("div", {
166
+ key: e,
167
+ "aria-hidden": "true",
168
+ class: "tpl-pulse tpl:h-16 tpl:rounded-md tpl:bg-[var(--tpl-bg-hover)]"
169
+ })), 64))])) : m(W).hasFailed.value ? (u(), o("p", R, d(m(V).previewResolution.failed), 1)) : g("", !0), m(W).isInitialResolve.value ? g("", !0) : (u(), f(he, {
170
+ key: 2,
171
+ blocks: Te.value,
172
+ viewport: U.value,
173
+ "apply-condition-filter": !m(W).isConfigured
174
+ }, null, 8, [
175
+ "blocks",
176
+ "viewport",
177
+ "apply-condition-filter"
178
+ ]))]),
179
+ _.justSent ? (u(), o("p", ge, [s(m(le), {
180
+ size: 13,
181
+ "stroke-width": 2.5
182
+ }), c(" " + d(m(V).testEmail.success), 1)])) : Z.value ? (u(), o("p", _e, d(Z.value), 1)) : g("", !0),
183
+ a("div", ve, [a("button", {
184
+ type: "button",
185
+ "data-testid": "test-email-cancel",
186
+ class: t(["tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-[var(--tpl-shadow-sm)] tpl:transition-all tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]", { "tpl:cursor-not-allowed tpl:opacity-50": _.isSending }]),
187
+ disabled: _.isSending,
188
+ onClick: $
189
+ }, d(m(V).testEmail.cancel), 11, ye), a("button", {
190
+ type: "button",
191
+ "data-testid": "test-email-send",
192
+ class: t(m(pe)),
193
+ disabled: !X.value,
194
+ onClick: Q
195
+ }, [_.isSending ? (u(), o("span", xe, [s(m(ue), {
196
+ class: "tpl:animate-spin",
197
+ size: 12,
198
+ "stroke-width": 2
199
+ }), c(" " + d(m(V).testEmail.sending), 1)])) : (u(), o("span", Se, d(m(V).testEmail.send), 1))], 10, be)])
200
+ ], 8, x)]),
201
+ _: 1
202
+ }, 8, ["visible"]));
203
+ }
204
+ });
205
+ //#endregion
206
+ export { z as default };
@@ -1,15 +1,15 @@
1
- import { M as e, b as t, h as n, it as r, m as i, x as a } from "./draggable-DCs9qL-b.js";
1
+ import { _ as e, k as t, l as n, rt as r, u as i, v as a } from "./vue.runtime.esm-bundler-DzEsDRtY.js";
2
2
  //#endregion
3
3
  //#region src/components/TestEmailPanel.vue
4
4
  var o = /* @__PURE__ */ a({
5
5
  __name: "TestEmailPanel",
6
6
  props: { feature: {} },
7
7
  setup(a) {
8
- let o = a, s = t(() => import("./TestEmailModal-IxS-QjeH.js"));
8
+ let o = a, s = e(() => import("./TestEmailModal-STPWDP79.js"));
9
9
  function c(e) {
10
10
  o.feature.send(e);
11
11
  }
12
- return (t, o) => a.feature.isModalOpen.value ? (e(), i(r(s), {
12
+ return (e, o) => a.feature.isModalOpen.value ? (t(), n(r(s), {
13
13
  key: 0,
14
14
  visible: a.feature.isModalOpen.value,
15
15
  "allowed-recipients": a.feature.allowedRecipients.value,
@@ -26,10 +26,8 @@ var o = /* @__PURE__ */ a({
26
26
  "is-sending",
27
27
  "just-sent",
28
28
  "error"
29
- ])) : n("", !0);
29
+ ])) : i("", !0);
30
30
  }
31
31
  });
32
32
  //#endregion
33
33
  export { o as default };
34
-
35
- //# sourceMappingURL=TestEmailPanel-B8y7JabA.js.map