@templatical/editor 0.52.1 → 0.54.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 (397) hide show
  1. package/README.md +1 -1
  2. package/dist/AiAltTextPopover-NMJqQKvD.js +106 -0
  3. package/dist/{AiAltTextReview-9ySsXOTU.js → AiAltTextReview-Ci4zHwRc.js} +68 -66
  4. package/dist/AiChatPanel-C8SeEJRP.js +561 -0
  5. package/dist/{AiPanels-DqT4PgQ0.js → AiPanels-CR6zphjP.js} +6 -6
  6. package/dist/{AiRewriteMenu-28agTycW.js → AiRewriteMenu-CIHUnPud.js} +76 -105
  7. package/dist/BlockIssueBadge-DaPTq1RE.js +33 -0
  8. package/dist/BlockPreviewCanvas-B70RSavL.js +140 -0
  9. package/dist/{CloudHeaderExtras-QI82yF54.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
  10. package/dist/{CloudPanels-BKJaLkUN.js → CloudPanels-VpSQiLLL.js} +53 -53
  11. package/dist/CollaborationNotices-Cnx0XHzZ.js +65 -0
  12. package/dist/{CollaboratorBar-CXQqN3VP.js → CollaboratorBar-BaBoNhwB.js} +24 -24
  13. package/dist/CommentsPanel-Ck3QmqiC.js +16 -0
  14. package/dist/CommentsSidebar-CHknhOar.js +526 -0
  15. package/dist/{CountdownBlock-CU2yTWtF.js → CountdownBlock-BMezkFbJ.js} +15 -15
  16. package/dist/CountdownToolbar-CM4XNEuO.js +258 -0
  17. package/dist/IssuesPanel-1wGV0wiy.js +371 -0
  18. package/dist/LanguageMenu-d2GlX67r.js +403 -0
  19. package/dist/{LoadingTrack-DM4g6j7b.js → LoadingTrack-BG8cg9xi.js} +2 -2
  20. package/dist/LocaleNotices-WzsYtBRs.js +46 -0
  21. package/dist/LogicTagInsertButton-DgTJ6Lvx.js +1096 -0
  22. package/dist/{MediaEditModal-Dy08GEwE.js → MediaEditModal-C3U9Mi31.js} +451 -451
  23. package/dist/{MediaPanels-BgEp7iCp.js → MediaPanels-CGmk9ufe.js} +4 -4
  24. package/dist/{MergeTagInput-B9dtUthD.js → MergeTagInput-B_51YcQO.js} +30 -30
  25. package/dist/{MergeTagModeToggle-DxujhYJ4.js → MergeTagModeToggle-D3Q2z317.js} +49 -49
  26. package/dist/MergeTagTextarea-DZz1L9DE.js +126 -0
  27. package/dist/ParagraphEditor-CI68PYDL.js +825 -0
  28. package/dist/{RestoreVersionDialog-C4s_JYCx.js → RestoreVersionDialog-DcuhpOIz.js} +23 -23
  29. package/dist/{RichTextEditorContent-o6HmE8GR.js → RichTextEditorContent-Dstovi0m.js} +47 -47
  30. package/dist/{SaveBlockDialog-CWLrly6l.js → SaveBlockDialog-vuwvoi-d.js} +86 -86
  31. package/dist/{cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js → SavedBlocksBrowserModal-DUJm0dOv.js} +135 -132
  32. package/dist/{SavedBlocksPanels-BE1N9rNZ.js → SavedBlocksPanels-BiMXQ5lY.js} +9 -9
  33. package/dist/{SavedBlocksPickBar-Dwl94xhP.js → SavedBlocksPickBar-CAstZfG7.js} +15 -15
  34. package/dist/TemplateSettings-Baar78_s.js +294 -0
  35. package/dist/TestEmailModal-Bl_GHdrN.js +212 -0
  36. package/dist/{TestEmailPanel-DaFjP9QK.js → TestEmailPanel-CpTBF7B5.js} +4 -4
  37. package/dist/TitleEditor-DkbEDAZB.js +202 -0
  38. package/dist/ToggleSwitch-R3wCCYE6.js +43 -0
  39. package/dist/Toolbar-bOZ_eq7X.js +3711 -0
  40. package/dist/{TplModal-DLMssVlt.js → TplModal-wk2gLa7_.js} +17 -17
  41. package/dist/{VersionHistoryMenu-BkbYUs0Q.js → VersionHistoryMenu-BnP0EyLl.js} +39 -39
  42. package/dist/{VersionHistoryPanels-DP7HaYWv.js → VersionHistoryPanels-Cq2rFKIX.js} +5 -5
  43. package/dist/VersionPreviewBanner-BPP939cD.js +37 -0
  44. package/dist/WrapperBlock-cWT_nZgQ.js +44 -0
  45. package/dist/{blockTypeIcons-BHjlPnPf.js → blockTypeIcons-BUyPZ7Su.js} +7 -7
  46. package/dist/bundle-stats.json +8 -8
  47. package/dist/{cdn/chunks/ca-CD-Kt1qz.js → ca-DOuIxWRv.js} +114 -2
  48. package/dist/cdn/chunks/AiAltTextPopover-Cnc_kUmb.js +107 -0
  49. package/dist/cdn/chunks/AiAltTextPopover-Cnc_kUmb.js.map +1 -0
  50. package/dist/cdn/chunks/{AiAltTextReview-BGLLSKLm.js → AiAltTextReview-DPeSY-7r.js} +70 -68
  51. package/dist/cdn/chunks/AiAltTextReview-DPeSY-7r.js.map +1 -0
  52. package/dist/cdn/chunks/AiChatPanel-By8Uo1nH.js +487 -0
  53. package/dist/cdn/chunks/AiChatPanel-By8Uo1nH.js.map +1 -0
  54. package/dist/cdn/chunks/{AiPanels-0wBarZSH.js → AiPanels-BblCSkQy.js} +11 -11
  55. package/dist/cdn/chunks/{AiPanels-0wBarZSH.js.map → AiPanels-BblCSkQy.js.map} +1 -1
  56. package/dist/cdn/chunks/{AiRewriteMenu-qf-cfEpy.js → AiRewriteMenu-C4btyN4W.js} +79 -79
  57. package/dist/cdn/chunks/AiRewriteMenu-C4btyN4W.js.map +1 -0
  58. package/dist/cdn/chunks/BlockIssueBadge-D3Plo_wt.js +34 -0
  59. package/dist/cdn/chunks/BlockIssueBadge-D3Plo_wt.js.map +1 -0
  60. package/dist/cdn/chunks/BlockPreviewCanvas-CTKmBPsq.js +142 -0
  61. package/dist/cdn/chunks/{BlockPreviewCanvas-DGBh6mqe.js.map → BlockPreviewCanvas-CTKmBPsq.js.map} +1 -1
  62. package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js → CloudHeaderExtras-BtqdN777.js} +4 -4
  63. package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js.map → CloudHeaderExtras-BtqdN777.js.map} +1 -1
  64. package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js → CloudPanels-COU26R83.js} +45 -45
  65. package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js.map → CloudPanels-COU26R83.js.map} +1 -1
  66. package/dist/cdn/chunks/CollaborationNotices-DraFUhyo.js +67 -0
  67. package/dist/cdn/chunks/CollaborationNotices-DraFUhyo.js.map +1 -0
  68. package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js → CollaboratorBar-0OEH3hrj.js} +17 -17
  69. package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js.map → CollaboratorBar-0OEH3hrj.js.map} +1 -1
  70. package/dist/cdn/chunks/CommentsPanel-tZZswofV.js +18 -0
  71. package/dist/cdn/chunks/{CommentsPanel-DoJnKLXI.js.map → CommentsPanel-tZZswofV.js.map} +1 -1
  72. package/dist/cdn/chunks/CommentsSidebar-7Hfl3Hdj.js +496 -0
  73. package/dist/cdn/chunks/CommentsSidebar-7Hfl3Hdj.js.map +1 -0
  74. package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js → CountdownBlock-CjMhMhnv.js} +22 -22
  75. package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js.map → CountdownBlock-CjMhMhnv.js.map} +1 -1
  76. package/dist/cdn/chunks/CountdownToolbar-CNgsNL5-.js +260 -0
  77. package/dist/cdn/chunks/CountdownToolbar-CNgsNL5-.js.map +1 -0
  78. package/dist/cdn/chunks/{IssuesPanel-C7LfxaAY.js → IssuesPanel-Duic0mIs.js} +133 -121
  79. package/dist/cdn/chunks/IssuesPanel-Duic0mIs.js.map +1 -0
  80. package/dist/cdn/chunks/LanguageMenu-B1Aue_lf.js +359 -0
  81. package/dist/cdn/chunks/LanguageMenu-B1Aue_lf.js.map +1 -0
  82. package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js → LoadingTrack-DUYcDHOV.js} +2 -2
  83. package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js.map → LoadingTrack-DUYcDHOV.js.map} +1 -1
  84. package/dist/cdn/chunks/LocaleNotices-8J2DRWeg.js +47 -0
  85. package/dist/cdn/chunks/LocaleNotices-8J2DRWeg.js.map +1 -0
  86. package/dist/{LogicTagInsertButton-CfscnwCn.js → cdn/chunks/LogicTagInsertButton-Bhvi0nWz.js} +422 -449
  87. package/dist/cdn/chunks/LogicTagInsertButton-Bhvi0nWz.js.map +1 -0
  88. package/dist/cdn/chunks/{MediaEditModal-Cpcod6_U.js → MediaEditModal-Dz972UFx.js} +421 -421
  89. package/dist/cdn/chunks/MediaEditModal-Dz972UFx.js.map +1 -0
  90. package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js → MediaPanels-C6Hqtp1H.js} +5 -5
  91. package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js.map → MediaPanels-C6Hqtp1H.js.map} +1 -1
  92. package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js → MergeTagInput-CrhZm-AW.js} +28 -28
  93. package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js.map → MergeTagInput-CrhZm-AW.js.map} +1 -1
  94. package/dist/cdn/chunks/{MergeTagModeToggle-BgKEVUtV.js → MergeTagModeToggle-CWVtXLYa.js} +52 -52
  95. package/dist/cdn/chunks/MergeTagModeToggle-CWVtXLYa.js.map +1 -0
  96. package/dist/cdn/chunks/MergeTagTextarea-hTIBwX0F.js +128 -0
  97. package/dist/cdn/chunks/MergeTagTextarea-hTIBwX0F.js.map +1 -0
  98. package/dist/cdn/chunks/ParagraphEditor-B2UU1Q5I.js +660 -0
  99. package/dist/cdn/chunks/ParagraphEditor-B2UU1Q5I.js.map +1 -0
  100. package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js → RestoreVersionDialog-C1Y5Ewo_.js} +22 -22
  101. package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js.map → RestoreVersionDialog-C1Y5Ewo_.js.map} +1 -1
  102. package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js → RichTextEditorContent-up4AqL7D.js} +44 -44
  103. package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js.map → RichTextEditorContent-up4AqL7D.js.map} +1 -1
  104. package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js → SaveBlockDialog-B9lwEP_T.js} +77 -77
  105. package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js.map → SaveBlockDialog-B9lwEP_T.js.map} +1 -1
  106. package/dist/{SavedBlocksBrowserModal-CE8n4EBS.js → cdn/chunks/SavedBlocksBrowserModal-fAeHUyxb.js} +103 -106
  107. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BPYcRoGa.js.map → SavedBlocksBrowserModal-fAeHUyxb.js.map} +1 -1
  108. package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js → SavedBlocksPanels-DRDTLDyZ.js} +9 -9
  109. package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js.map → SavedBlocksPanels-DRDTLDyZ.js.map} +1 -1
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js → SavedBlocksPickBar-B6b5z-o3.js} +16 -16
  111. package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js.map → SavedBlocksPickBar-B6b5z-o3.js.map} +1 -1
  112. package/dist/cdn/chunks/TemplateSettings-CWUpUKJb.js +266 -0
  113. package/dist/cdn/chunks/TemplateSettings-CWUpUKJb.js.map +1 -0
  114. package/dist/cdn/chunks/TestEmailModal-DQxnW5Q5.js +212 -0
  115. package/dist/cdn/chunks/TestEmailModal-DQxnW5Q5.js.map +1 -0
  116. package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js → TestEmailPanel-BcO_-16H.js} +5 -5
  117. package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js.map → TestEmailPanel-BcO_-16H.js.map} +1 -1
  118. package/dist/cdn/chunks/TitleEditor-pmycpmTd.js +202 -0
  119. package/dist/cdn/chunks/TitleEditor-pmycpmTd.js.map +1 -0
  120. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js +45 -0
  121. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js.map +1 -0
  122. package/dist/cdn/chunks/Toolbar-BlWVQRcA.js +3626 -0
  123. package/dist/cdn/chunks/Toolbar-BlWVQRcA.js.map +1 -0
  124. package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js → TplModal-ClSSGX7a.js} +20 -20
  125. package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js.map → TplModal-ClSSGX7a.js.map} +1 -1
  126. package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js → VersionHistoryMenu-CZury5gU.js} +33 -33
  127. package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js.map → VersionHistoryMenu-CZury5gU.js.map} +1 -1
  128. package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js → VersionHistoryPanels-B8GPBKMq.js} +6 -6
  129. package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js.map → VersionHistoryPanels-B8GPBKMq.js.map} +1 -1
  130. package/dist/cdn/chunks/VersionPreviewBanner-C4Ji8nu4.js +39 -0
  131. package/dist/cdn/chunks/VersionPreviewBanner-C4Ji8nu4.js.map +1 -0
  132. package/dist/cdn/chunks/WrapperBlock-BoUflYwY.js +46 -0
  133. package/dist/cdn/chunks/WrapperBlock-BoUflYwY.js.map +1 -0
  134. package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js → blockTypeIcons-Cc6RJ27V.js} +5 -5
  135. package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js.map → blockTypeIcons-Cc6RJ27V.js.map} +1 -1
  136. package/dist/{ca-CD-Kt1qz.js → cdn/chunks/ca-DOuIxWRv.js} +116 -0
  137. package/dist/cdn/chunks/ca-DOuIxWRv.js.map +1 -0
  138. package/dist/cdn/chunks/composables-C1KU4ZHw.js +3039 -0
  139. package/dist/cdn/chunks/composables-C1KU4ZHw.js.map +1 -0
  140. package/dist/cdn/chunks/{createCloudRuntime-Cth2JCEh.js → createCloudRuntime-C2Zs5F1O.js} +75 -73
  141. package/dist/cdn/chunks/createCloudRuntime-C2Zs5F1O.js.map +1 -0
  142. package/dist/{de-CeFJ6wbM.js → cdn/chunks/de-DaOUfYBX.js} +116 -0
  143. package/dist/cdn/chunks/de-DaOUfYBX.js.map +1 -0
  144. package/dist/cdn/chunks/{dist-8ym3y-pH.js → dist-BzXULHvI.js} +48 -48
  145. package/dist/cdn/chunks/{dist-8ym3y-pH.js.map → dist-BzXULHvI.js.map} +1 -1
  146. package/dist/cdn/chunks/{dist-BMzNabtD.js → dist-DqGgijFI.js} +114 -114
  147. package/dist/cdn/chunks/{dist-BMzNabtD.js.map → dist-DqGgijFI.js.map} +1 -1
  148. package/dist/cdn/chunks/{draggable-Du8AUMFT.js → draggable-DepKdldn.js} +1491 -1486
  149. package/dist/cdn/chunks/draggable-DepKdldn.js.map +1 -0
  150. package/dist/cdn/chunks/{editor-modal-CyCe560f.js → editor-modal-erQEOHZN.js} +781 -781
  151. package/dist/cdn/chunks/{editor-modal-CyCe560f.js.map → editor-modal-erQEOHZN.js.map} +1 -1
  152. package/dist/cdn/chunks/en-B6tLGRHq.js +1 -0
  153. package/dist/{en-D14i5nFh.js → cdn/chunks/en-C0pHHMiR.js} +116 -0
  154. package/dist/cdn/chunks/en-C0pHHMiR.js.map +1 -0
  155. package/dist/{es-zDacbMhs.js → cdn/chunks/es-CxyEKr6n.js} +116 -0
  156. package/dist/cdn/chunks/es-CxyEKr6n.js.map +1 -0
  157. package/dist/cdn/chunks/{extensions-CFF2KWy-.js → extensions-DcMKZpzh.js} +59 -59
  158. package/dist/cdn/chunks/{extensions-CFF2KWy-.js.map → extensions-DcMKZpzh.js.map} +1 -1
  159. package/dist/{fr-CSgYtjOd.js → cdn/chunks/fr-CYbamiI6.js} +116 -0
  160. package/dist/cdn/chunks/fr-CYbamiI6.js.map +1 -0
  161. package/dist/cdn/chunks/{icons-okSPsLOa.js → icons-Da9GKjPx.js} +188 -147
  162. package/dist/cdn/chunks/icons-Da9GKjPx.js.map +1 -0
  163. package/dist/{ja-B7H3ID8O.js → cdn/chunks/ja-DfaIAoGI.js} +116 -0
  164. package/dist/cdn/chunks/ja-DfaIAoGI.js.map +1 -0
  165. package/dist/cdn/chunks/keys-CoQtCqNv.js +11 -0
  166. package/dist/cdn/chunks/keys-CoQtCqNv.js.map +1 -0
  167. package/dist/cdn/chunks/languageName-DEEOhDWI.js +12 -0
  168. package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +1 -0
  169. package/dist/{nl-176ySmc5.js → cdn/chunks/nl-DkrB-VKZ.js} +116 -0
  170. package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +1 -0
  171. package/dist/cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js +290 -0
  172. package/dist/cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js.map +1 -0
  173. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js +16 -0
  174. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js.map +1 -0
  175. package/dist/cdn/chunks/plural-CyxrJXL1.js +17 -0
  176. package/dist/cdn/chunks/plural-CyxrJXL1.js.map +1 -0
  177. package/dist/{preRenderCustomBlocks--_xc0XK3.js → cdn/chunks/preRenderCustomBlocks-f7GEKdvw.js} +5 -3
  178. package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js.map → preRenderCustomBlocks-f7GEKdvw.js.map} +1 -1
  179. package/dist/{pt-BR-dDlTwX18.js → cdn/chunks/pt-BR-CY5Ye7eP.js} +116 -0
  180. package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +1 -0
  181. package/dist/cdn/chunks/sanitizeHtml-WTfz9lZd.js +61 -0
  182. package/dist/cdn/chunks/sanitizeHtml-WTfz9lZd.js.map +1 -0
  183. package/dist/cdn/chunks/socialIcons-DeCYorUT.js +2638 -0
  184. package/dist/cdn/chunks/socialIcons-DeCYorUT.js.map +1 -0
  185. package/dist/cdn/chunks/{src-DEd87i_U.js → src-A_cKeTM_.js} +618 -461
  186. package/dist/cdn/chunks/src-A_cKeTM_.js.map +1 -0
  187. package/dist/cdn/chunks/src-BQUv2CYU.js +2606 -0
  188. package/dist/cdn/chunks/src-BQUv2CYU.js.map +1 -0
  189. package/dist/cdn/chunks/src-BWX_xVxO.js +671 -0
  190. package/dist/cdn/chunks/src-BWX_xVxO.js.map +1 -0
  191. package/dist/{styleConstants-B8xVRiwX.js → cdn/chunks/styleConstants-CgiNKdnc.js} +7 -5
  192. package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +1 -0
  193. package/dist/cdn/chunks/templateSettingsFields-cjlP-jdw.js.map +1 -1
  194. package/dist/cdn/chunks/{tiptap-CbiTlECY.js → tiptap-Dipw_zOQ.js} +40 -40
  195. package/dist/cdn/chunks/{tiptap-CbiTlECY.js.map → tiptap-Dipw_zOQ.js.map} +1 -1
  196. package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js → useCloudI18n-Cc5NZqiI.js} +3 -3
  197. package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js.map → useCloudI18n-Cc5NZqiI.js.map} +1 -1
  198. package/dist/cdn/chunks/useEditorRoot-D_LuZ_hE.js +9 -0
  199. package/dist/cdn/chunks/{useEditorRoot-vjZJwKrV.js.map → useEditorRoot-D_LuZ_hE.js.map} +1 -1
  200. package/dist/cdn/chunks/{useI18n-D8pY4LTq.js → useI18n-BnJYydPv.js} +3 -3
  201. package/dist/cdn/chunks/{useI18n-D8pY4LTq.js.map → useI18n-BnJYydPv.js.map} +1 -1
  202. package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js +33 -0
  203. package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js.map +1 -0
  204. package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js → useLogicTag-DtYe8HIq.js} +5 -5
  205. package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js.map → useLogicTag-DtYe8HIq.js.map} +1 -1
  206. package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js → useMergeTag-B8ULmsnp.js} +6 -6
  207. package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js.map → useMergeTag-B8ULmsnp.js.map} +1 -1
  208. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js +78 -0
  209. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js.map +1 -0
  210. package/dist/cdn/chunks/{useScrollToBlock-vjQ0fe-L.js → useScrollToBlock-Ct1AwLD-.js} +5 -5
  211. package/dist/cdn/chunks/useScrollToBlock-Ct1AwLD-.js.map +1 -0
  212. package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js → withCurrentFont-MK8ga9q9.js} +2 -2
  213. package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js.map → withCurrentFont-MK8ga9q9.js.map} +1 -1
  214. package/dist/cdn/editor.css +1 -1
  215. package/dist/cdn/editor.js +2189 -1495
  216. package/dist/cdn/editor.js.map +1 -1
  217. package/dist/{check-BZ8o0eet.js → check-XMnOOIEC.js} +1 -1
  218. package/dist/{chevron-down-DfAAfILv.js → chevron-down-DmamTEWQ.js} +1 -1
  219. package/dist/{chevron-right-Bk4mGdr7.js → chevron-right-BEFXOH27.js} +1 -1
  220. package/dist/{chevron-up-MhUf_azW.js → chevron-up-Dw7woXj8.js} +1 -1
  221. package/dist/{circle-alert-CShJwVFv.js → circle-alert-BTKC9vkq.js} +1 -1
  222. package/dist/{clock-CTfD6OCt.js → clock-BVT5u2uG.js} +1 -1
  223. package/dist/composables-CMIrGXJ1.js +4517 -0
  224. package/dist/{createCloudRuntime-DCgO4A1r.js → createCloudRuntime-DGV5a5Af.js} +54 -52
  225. package/dist/{createLucideIcon-CvhTA2KG.js → createLucideIcon-CgDE3xAR.js} +16 -16
  226. package/dist/{cdn/chunks/de-CeFJ6wbM.js → de-DaOUfYBX.js} +114 -2
  227. package/dist/{dist-ByCWA2Tv.js → dist-0alKVRc_.js} +101 -101
  228. package/dist/{dist-Cy8I5scI.js → dist-54VCNoC0.js} +2 -2
  229. package/dist/dist-6DU0me3E.js +4 -0
  230. package/dist/{dist-p3wymUDt.js → dist-B8dY8drK.js} +2 -2
  231. package/dist/{dist-Dd5MU2Ev.js → dist-B9a7iVye.js} +2 -2
  232. package/dist/{dist-V7W1UhVr.js → dist-BWflWcpW.js} +2 -2
  233. package/dist/{dist-D6fZec6r.js → dist-C3hu_C3w.js} +2 -2
  234. package/dist/{dist-CVy-7PHQ.js → dist-CX7skkvG.js} +48 -48
  235. package/dist/dist-CcOn7WCo.js +4 -0
  236. package/dist/dist-Cdkm20M6.js +2542 -0
  237. package/dist/{dist-BS5uKktL.js → dist-ChOb5XHW.js} +2 -2
  238. package/dist/{dist-BF5zEHop.js → dist-DZ3X-uB8.js} +2 -2
  239. package/dist/{dist-CWSG7Kj0.js → dist-D_XrUEET.js} +5 -5
  240. package/dist/{dist-txQLT2sF.js → dist-TAv500j6.js} +2 -2
  241. package/dist/{dist-D6cMdrfG.js → dist-fqSers8_.js} +55 -55
  242. package/dist/{editor-modal-zaZHcmlO.js → editor-modal-BeX6otLk.js} +953 -952
  243. package/dist/{cdn/chunks/en-D14i5nFh.js → en-C0pHHMiR.js} +114 -2
  244. package/dist/en-Do0SU6tR.js +1 -0
  245. package/dist/{cdn/chunks/es-zDacbMhs.js → es-CxyEKr6n.js} +114 -2
  246. package/dist/{extensions-fo_c-vqf.js → extensions-BJ184osp.js} +173 -173
  247. package/dist/{eye-7W4t5e0Q.js → eye-ByMgHeA_.js} +1 -1
  248. package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
  249. package/dist/{image-BDiRFzSd.js → image-Ch8tR35K.js} +1 -1
  250. package/dist/index.d.ts +182 -14
  251. package/dist/{info-Cxi3-Kh9.js → info-DzSD-Wpk.js} +1 -1
  252. package/dist/{cdn/chunks/ja-B7H3ID8O.js → ja-DfaIAoGI.js} +114 -2
  253. package/dist/keys-BCqskl51.js +9 -0
  254. package/dist/languageName-DEEOhDWI.js +10 -0
  255. package/dist/{link-ju_2Cmir.js → link-oDn9AR2w.js} +1 -1
  256. package/dist/{list-DYZJf0aZ.js → list-C5t07dp8.js} +1 -1
  257. package/dist/{loader-circle-BZRD0a4I.js → loader-circle-k6xvKgUB.js} +1 -1
  258. package/dist/{message-circle-DuEw4Zfx.js → message-circle-C23R6OJR.js} +1 -1
  259. package/dist/{cdn/chunks/nl-176ySmc5.js → nl-DkrB-VKZ.js} +114 -2
  260. package/dist/normalizeMergeTagMarkup-CUCo7B5X.js +288 -0
  261. package/dist/noticeTones-D7BPu-Le.js +14 -0
  262. package/dist/{package-CePMr2kK.js → package-C90eQ7NU.js} +1 -1
  263. package/dist/{pencil-D3aFCL7c.js → pencil-BK7GrQuA.js} +1 -1
  264. package/dist/plural-CyxrJXL1.js +15 -0
  265. package/dist/plus-Cr0Mis63.js +13 -0
  266. package/dist/{cdn/chunks/preRenderCustomBlocks-BcXIz7oJ.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -6
  267. package/dist/{cdn/chunks/pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -2
  268. package/dist/{refresh-cw-xnro7_Sk.js → refresh-cw-_ZLOIEvA.js} +2 -12
  269. package/dist/rotate-ccw-CB5wsHwv.js +13 -0
  270. package/dist/{runtime-dom.esm-bundler-BURR-bj5.js → runtime-dom.esm-bundler-DlHp8xgy.js} +154 -154
  271. package/dist/sanitizeHtml-2rjV0r-6.js +962 -0
  272. package/dist/{search-CDrstRBv.js → search-BmrQNox8.js} +1 -1
  273. package/dist/{send-DROkPOaX.js → send-blAsIBBg.js} +1 -1
  274. package/dist/{smartphone-Bx6u_tjn.js → smartphone-BPpWYrwV.js} +1 -1
  275. package/dist/socialIcons-TFiOkpoU.js +2705 -0
  276. package/dist/{sparkles-CdaTtvoz.js → sparkles-OqIxrNp-.js} +1 -1
  277. package/dist/{square-BbCROH_f.js → square-BP-V7iT-.js} +1 -1
  278. package/dist/style.css +1 -1
  279. package/dist/{cdn/chunks/styleConstants-B8xVRiwX.js → styleConstants-CgiNKdnc.js} +5 -7
  280. package/dist/templatical-editor.js +2438 -1752
  281. package/dist/{text-align-start-CGacJ9Vw.js → text-align-start-4mwX2o-F.js} +13 -13
  282. package/dist/{trash-DxCd7zIy.js → trash-B99WixTA.js} +1 -1
  283. package/dist/{triangle-alert-7_oaitpf.js → triangle-alert-CHMiDkHa.js} +1 -1
  284. package/dist/{upload-DuFEOi_0.js → upload-Cp8o-hrN.js} +1 -1
  285. package/dist/{useCloudI18n-DEMmUKuO.js → useCloudI18n-Dh2iydo1.js} +4 -4
  286. package/dist/useEditorRoot-DY3mgcHm.js +7 -0
  287. package/dist/{useI18n-BBrHTdu8.js → useI18n-CgtvtF4C.js} +4 -4
  288. package/dist/useLocalizedDisplay-DNNwDRxL.js +31 -0
  289. package/dist/{useLogicTag-ZPC39rfH.js → useLogicTag-BXXXQQmi.js} +4 -4
  290. package/dist/{useMergeTag-BQ4qqWpQ.js → useMergeTag-C9Okr87y.js} +5 -5
  291. package/dist/usePopoverPosition-VDQjyX_A.js +76 -0
  292. package/dist/{useScrollToBlock-BSyAV4pk.js → useScrollToBlock-B35ObCGK.js} +5 -5
  293. package/dist/{vue.runtime.esm-bundler-CnEeTfhs.js → vue.runtime.esm-bundler-BJXc_Mri.js} +1373 -1368
  294. package/dist/withCurrentFont-DJiQqZzL.js +18 -0
  295. package/dist/{x-BpfG7v9g.js → x-BIBStNMS.js} +1 -1
  296. package/package.json +21 -21
  297. package/dist/AiAltTextPopover-DawbUywc.js +0 -105
  298. package/dist/AiChatPanel-CupPhmsN.js +0 -548
  299. package/dist/BlockIssueBadge-BxpDy3u-.js +0 -33
  300. package/dist/BlockPreviewCanvas-B-4bmJ3t.js +0 -140
  301. package/dist/CollaborationNotices-CTw4JThq.js +0 -75
  302. package/dist/CommentsPanel-DwwFuh1h.js +0 -16
  303. package/dist/CommentsSidebar-9ZfiC2DO.js +0 -500
  304. package/dist/CountdownToolbar-BqoYzf_6.js +0 -197
  305. package/dist/IssuesPanel-4ykrf1ax.js +0 -359
  306. package/dist/MergeTagTextarea-CPFEjJZd.js +0 -69
  307. package/dist/ParagraphEditor-CWXfurGh.js +0 -796
  308. package/dist/TemplateSettings-CS0f1Ues.js +0 -236
  309. package/dist/TestEmailModal-DBD0X5nV.js +0 -209
  310. package/dist/TitleEditor-DSqtle77.js +0 -198
  311. package/dist/ToggleSwitch-JykPyD_8.js +0 -36
  312. package/dist/Toolbar-BZPFfKrf.js +0 -3145
  313. package/dist/VersionPreviewBanner-DECaBwLq.js +0 -37
  314. package/dist/WrapperBlock-BsJv_Fiw.js +0 -44
  315. package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js +0 -106
  316. package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js.map +0 -1
  317. package/dist/cdn/chunks/AiAltTextReview-BGLLSKLm.js.map +0 -1
  318. package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js +0 -474
  319. package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js.map +0 -1
  320. package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +0 -1
  321. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +0 -34
  322. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +0 -1
  323. package/dist/cdn/chunks/BlockPreviewCanvas-DGBh6mqe.js +0 -142
  324. package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js +0 -77
  325. package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js.map +0 -1
  326. package/dist/cdn/chunks/CommentsPanel-DoJnKLXI.js +0 -18
  327. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js +0 -470
  328. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +0 -1
  329. package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js +0 -199
  330. package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js.map +0 -1
  331. package/dist/cdn/chunks/IssuesPanel-C7LfxaAY.js.map +0 -1
  332. package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js +0 -1051
  333. package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js.map +0 -1
  334. package/dist/cdn/chunks/MediaEditModal-Cpcod6_U.js.map +0 -1
  335. package/dist/cdn/chunks/MergeTagModeToggle-BgKEVUtV.js.map +0 -1
  336. package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js +0 -71
  337. package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js.map +0 -1
  338. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js +0 -631
  339. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +0 -1
  340. package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js +0 -208
  341. package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js.map +0 -1
  342. package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js +0 -209
  343. package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js.map +0 -1
  344. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js +0 -198
  345. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +0 -1
  346. package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js +0 -38
  347. package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js.map +0 -1
  348. package/dist/cdn/chunks/Toolbar-CdpsvNOR.js +0 -3061
  349. package/dist/cdn/chunks/Toolbar-CdpsvNOR.js.map +0 -1
  350. package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js +0 -39
  351. package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js.map +0 -1
  352. package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js +0 -46
  353. package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js.map +0 -1
  354. package/dist/cdn/chunks/ca-CD-Kt1qz.js.map +0 -1
  355. package/dist/cdn/chunks/createCloudRuntime-Cth2JCEh.js.map +0 -1
  356. package/dist/cdn/chunks/de-CeFJ6wbM.js.map +0 -1
  357. package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +0 -1
  358. package/dist/cdn/chunks/en-D14i5nFh.js.map +0 -1
  359. package/dist/cdn/chunks/en-TIqv4ag3.js +0 -1
  360. package/dist/cdn/chunks/es-zDacbMhs.js.map +0 -1
  361. package/dist/cdn/chunks/fr-CSgYtjOd.js.map +0 -1
  362. package/dist/cdn/chunks/icons-okSPsLOa.js.map +0 -1
  363. package/dist/cdn/chunks/ja-B7H3ID8O.js.map +0 -1
  364. package/dist/cdn/chunks/keys-CUj6UA38.js +0 -11
  365. package/dist/cdn/chunks/keys-CUj6UA38.js.map +0 -1
  366. package/dist/cdn/chunks/nl-176ySmc5.js.map +0 -1
  367. package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js +0 -198
  368. package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js.map +0 -1
  369. package/dist/cdn/chunks/pt-BR-dDlTwX18.js.map +0 -1
  370. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +0 -72
  371. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +0 -1
  372. package/dist/cdn/chunks/socialIcons-jsTDmkbb.js +0 -2008
  373. package/dist/cdn/chunks/socialIcons-jsTDmkbb.js.map +0 -1
  374. package/dist/cdn/chunks/src-C7bkofBL.js +0 -647
  375. package/dist/cdn/chunks/src-C7bkofBL.js.map +0 -1
  376. package/dist/cdn/chunks/src-DEd87i_U.js.map +0 -1
  377. package/dist/cdn/chunks/src-DwWrYnUj.js +0 -1404
  378. package/dist/cdn/chunks/src-DwWrYnUj.js.map +0 -1
  379. package/dist/cdn/chunks/styleConstants-B8xVRiwX.js.map +0 -1
  380. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +0 -2582
  381. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +0 -1
  382. package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +0 -9
  383. package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js +0 -70
  384. package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js.map +0 -1
  385. package/dist/cdn/chunks/useScrollToBlock-vjQ0fe-L.js.map +0 -1
  386. package/dist/dist-CKi_npZM.js +0 -1344
  387. package/dist/dist-DyFArF_G.js +0 -4
  388. package/dist/dist-pA3ooG6N.js +0 -4
  389. package/dist/en-Db76vJbY.js +0 -1
  390. package/dist/keys-BgRERHzu.js +0 -9
  391. package/dist/normalizeMergeTagMarkup-CELnOlgK.js +0 -196
  392. package/dist/sanitizeHtml-BzfzpYJY.js +0 -942
  393. package/dist/socialIcons-D7MGsg0d.js +0 -2075
  394. package/dist/useEditorCore-BSo2sSID.js +0 -4059
  395. package/dist/useEditorRoot-BMcoCLBx.js +0 -7
  396. package/dist/usePopoverPosition-DV1PxL66.js +0 -68
  397. package/dist/withCurrentFont-B22FXAF5.js +0 -18
@@ -1,236 +0,0 @@
1
- import { C as e, Mt as t, N as n, Nt as r, _ as i, c as a, d as o, f as s, j as c, jt as l, l as u, r as d, st as f, y as p } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
2
- import { gt as ee } from "./dist-CKi_npZM.js";
3
- import { $ as te, q as ne, v as re } from "./keys-BgRERHzu.js";
4
- import { t as ie } from "./useI18n-BBrHTdu8.js";
5
- import { n as ae, t as m } from "./templateSettingsFields-cjlP-jdw.js";
6
- import { t as h } from "./createLucideIcon-CvhTA2KG.js";
7
- import { c as g } from "./LogicTagInsertButton-CfscnwCn.js";
8
- import { t as oe } from "./eye-7W4t5e0Q.js";
9
- import { t as se } from "./info-Cxi3-Kh9.js";
10
- import { t as _ } from "./square-BbCROH_f.js";
11
- import { g as v, h as ce, l as le, m as ue, p as y, t as b } from "./styleConstants-B8xVRiwX.js";
12
- import { t as x } from "./MergeTagTextarea-CPFEjJZd.js";
13
- import { t as S } from "./ToggleSwitch-JykPyD_8.js";
14
- import { n as C, t as w } from "./withCurrentFont-B22FXAF5.js";
15
- var T = h({
16
- name: "circle",
17
- size: 24,
18
- node: [["circle", {
19
- cx: "12",
20
- cy: "12",
21
- r: "10",
22
- key: "1mglay"
23
- }]]
24
- }), E = h({
25
- name: "globe",
26
- size: 24,
27
- node: [
28
- ["circle", {
29
- cx: "12",
30
- cy: "12",
31
- r: "10",
32
- key: "1mglay"
33
- }],
34
- ["path", {
35
- d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",
36
- key: "13o1zl"
37
- }],
38
- ["path", {
39
- d: "M2 12h20",
40
- key: "9i4pu4"
41
- }]
42
- ]
43
- }), D = {
44
- "data-testid": "template-settings",
45
- class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
46
- }, O = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, k = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, A = {
47
- key: 0,
48
- "data-testid": "template-settings-width-preset"
49
- }, j = { class: "tpl:grid tpl:grid-cols-4 tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-bg-hover)]" }, M = ["onClick"], N = {
50
- key: 1,
51
- "data-testid": "template-settings-width-custom"
52
- }, P = { class: "tpl:flex tpl:items-stretch" }, F = ["value"], I = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, L = {
53
- key: 0,
54
- "data-testid": "template-settings-background"
55
- }, R = {
56
- key: 1,
57
- "data-testid": "template-settings-text-color"
58
- }, z = {
59
- key: 2,
60
- "data-testid": "template-settings-link-color"
61
- }, B = {
62
- key: 3,
63
- "data-testid": "template-settings-link-underline"
64
- }, V = {
65
- key: 4,
66
- "data-testid": "template-settings-font-family"
67
- }, H = ["value"], U = ["value"], de = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, fe = {
68
- key: 0,
69
- "data-testid": "template-settings-locale"
70
- }, pe = ["value"], W = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, me = {
71
- key: 1,
72
- "data-testid": "template-settings-direction"
73
- }, he = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, ge = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, _e = {
74
- key: 0,
75
- "data-testid": "template-settings-preheader"
76
- }, ve = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, ye = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, be = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, xe = {
77
- key: 4,
78
- class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3",
79
- "data-testid": "template-settings-card-tips"
80
- }, Se = { class: "tpl:mb-2.5 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text-muted)]" }, Ce = { class: "tpl:m-0 tpl:list-disc tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, we = { class: "tpl:mb-1 tpl:last:mb-0" }, Te = { class: "tpl:mb-1 tpl:last:mb-0" }, Ee = { class: "tpl:mb-1 tpl:last:mb-0" }, De = 150, G = /* @__PURE__ */ p({
81
- __name: "TemplateSettings",
82
- props: { settings: {} },
83
- emits: ["update"],
84
- setup(p, { emit: h }) {
85
- let G = p, K = h, { t: q } = ie(), J = te(re, "TemplateSettings"), Y = a(() => w(G.settings.fontFamily).trim() || J.defaultFont.value), Oe = a(() => C(J.fonts.value, Y.value)), ke = [
86
- {
87
- value: 480,
88
- label: "480px"
89
- },
90
- {
91
- value: 600,
92
- label: "600px"
93
- },
94
- {
95
- value: 700,
96
- label: "700px"
97
- },
98
- {
99
- value: 800,
100
- label: "800px"
101
- }
102
- ], X = e(ne, new Set(m));
103
- function Z(e) {
104
- return X.has(e);
105
- }
106
- function Q(e) {
107
- return m.some((t) => ae[t] === e && Z(t));
108
- }
109
- let Ae = X.size > 0, je = a(() => ee(G.settings) === "rtl"), $ = `${le} tpl:flex tpl:flex-col tpl:gap-3.5`;
110
- return (e, a) => (c(), s("aside", D, [u("div", O, [
111
- Q("layout") ? (c(), s("div", {
112
- key: 0,
113
- class: l($),
114
- "data-testid": "template-settings-card-layout"
115
- }, [
116
- u("div", k, [i(f(_), {
117
- class: "tpl:text-[var(--tpl-text-muted)]",
118
- size: 14,
119
- "stroke-width": 2
120
- }), u("span", null, r(f(q).templateSettings.layout), 1)]),
121
- Z("width") ? (c(), s("div", A, [u("label", { class: l(f(v)) }, r(f(q).templateSettings.widthPreset), 3), u("div", j, [(c(), s(d, null, n(ke, (e) => u("button", {
122
- key: e.value,
123
- class: "tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
124
- style: t({
125
- backgroundColor: p.settings.width === e.value ? "var(--tpl-bg)" : "transparent",
126
- color: p.settings.width === e.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
127
- boxShadow: p.settings.width === e.value ? "var(--tpl-shadow)" : "none"
128
- }),
129
- onClick: (t) => K("update", { width: e.value })
130
- }, r(e.label), 13, M)), 64))])])) : o("", !0),
131
- Z("width") ? (c(), s("div", N, [u("label", { class: l(f(v)) }, r(f(q).templateSettings.customWidth), 3), u("div", P, [u("input", {
132
- type: "number",
133
- class: l(f(ue)),
134
- value: p.settings.width,
135
- min: "300",
136
- max: "900",
137
- onInput: a[0] ||= (e) => K("update", { width: Number(e.target.value) })
138
- }, null, 42, F), u("span", { class: l(f(ce)) }, "px", 2)])])) : o("", !0)
139
- ])) : o("", !0),
140
- Q("appearance") ? (c(), s("div", {
141
- key: 1,
142
- class: l($),
143
- "data-testid": "template-settings-card-appearance"
144
- }, [
145
- u("div", I, [i(f(T), {
146
- class: "tpl:text-[var(--tpl-text-muted)]",
147
- size: 14,
148
- "stroke-width": 2
149
- }), u("span", null, r(f(q).templateSettings.appearance), 1)]),
150
- Z("backgroundColor") ? (c(), s("div", L, [u("label", { class: l(f(v)) }, r(f(q).templateSettings.backgroundColor), 3), i(g, {
151
- "model-value": p.settings.backgroundColor,
152
- placeholder: f(b),
153
- "onUpdate:modelValue": a[1] ||= (e) => K("update", { backgroundColor: e })
154
- }, null, 8, ["model-value", "placeholder"])])) : o("", !0),
155
- Z("textColor") ? (c(), s("div", R, [u("label", { class: l(f(v)) }, r(f(q).templateSettings.textColor), 3), i(g, {
156
- "model-value": p.settings.textColor ?? "",
157
- "seed-color": "#1a1a1a",
158
- "onUpdate:modelValue": a[2] ||= (e) => K("update", { textColor: e })
159
- }, null, 8, ["model-value"])])) : o("", !0),
160
- Z("linkColor") ? (c(), s("div", z, [u("label", { class: l(f(v)) }, r(f(q).templateSettings.linkColor), 3), i(g, {
161
- "model-value": p.settings.linkColor ?? "",
162
- "seed-color": "#0066cc",
163
- "onUpdate:modelValue": a[3] ||= (e) => K("update", { linkColor: e || void 0 })
164
- }, null, 8, ["model-value"])])) : o("", !0),
165
- Z("linkUnderline") ? (c(), s("div", B, [i(S, {
166
- class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
167
- "model-value": p.settings.linkUnderline,
168
- label: f(q).templateSettings.linkUnderline,
169
- "onUpdate:modelValue": a[4] ||= (e) => K("update", { linkUnderline: e })
170
- }, null, 8, ["model-value", "label"])])) : o("", !0),
171
- Z("fontFamily") ? (c(), s("div", V, [u("label", { class: l(f(v)) }, r(f(q).templateSettings.fontFamily), 3), u("select", {
172
- class: l(f(y)),
173
- value: Y.value,
174
- onChange: a[5] ||= (e) => K("update", { fontFamily: e.target.value })
175
- }, [(c(!0), s(d, null, n(Oe.value, (e) => (c(), s("option", {
176
- key: e.value,
177
- value: e.value
178
- }, r(e.label), 9, U))), 128))], 42, H)])) : o("", !0)
179
- ])) : o("", !0),
180
- Q("language") ? (c(), s("div", {
181
- key: 2,
182
- class: l($),
183
- "data-testid": "template-settings-card-language"
184
- }, [
185
- u("div", de, [i(f(E), {
186
- class: "tpl:text-[var(--tpl-text-muted)]",
187
- size: 14,
188
- "stroke-width": 2
189
- }), u("span", null, r(f(q).templateSettings.language), 1)]),
190
- Z("locale") ? (c(), s("div", fe, [
191
- u("label", { class: l(f(v)) }, r(f(q).templateSettings.contentLocale), 3),
192
- u("input", {
193
- type: "text",
194
- class: l(f(y)),
195
- value: p.settings.locale ?? "",
196
- placeholder: "en",
197
- spellcheck: "false",
198
- autocapitalize: "off",
199
- autocomplete: "off",
200
- onInput: a[6] ||= (e) => K("update", { locale: e.target.value.trim() || void 0 })
201
- }, null, 42, pe),
202
- u("p", W, r(f(q).templateSettings.contentLocaleHint), 1)
203
- ])) : o("", !0),
204
- Z("direction") ? (c(), s("div", me, [i(S, {
205
- class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
206
- "model-value": je.value,
207
- label: f(q).templateSettings.contentDirection,
208
- "onUpdate:modelValue": a[7] ||= (e) => K("update", { direction: e ? "rtl" : "ltr" })
209
- }, null, 8, ["model-value", "label"]), u("p", he, r(f(q).templateSettings.contentDirectionHint), 1)])) : o("", !0)
210
- ])) : o("", !0),
211
- Q("preheader") ? (c(), s("div", {
212
- key: 3,
213
- class: l($),
214
- "data-testid": "template-settings-card-preheader"
215
- }, [u("div", ge, [i(f(oe), {
216
- class: "tpl:text-[var(--tpl-text-muted)]",
217
- size: 14,
218
- "stroke-width": 2
219
- }), u("span", null, r(f(q).templateSettings.preheaderText), 1)]), Z("preheaderText") ? (c(), s("div", _e, [i(x, {
220
- "model-value": p.settings.preheaderText ?? "",
221
- placeholder: f(q).templateSettings.preheaderTextPlaceholder,
222
- rows: 2,
223
- "onUpdate:modelValue": a[8] ||= (e) => K("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
224
- }, null, 8, ["model-value", "placeholder"]), u("div", ve, [u("span", ye, r(f(q).templateSettings.preheaderTextHint), 1), u("span", be, r((p.settings.preheaderText ?? "").length) + "/" + r(De), 1)])])) : o("", !0)])) : o("", !0),
225
- Ae ? (c(), s("div", xe, [u("div", Se, [i(f(se), {
226
- size: 14,
227
- "stroke-width": 2
228
- }), u("span", null, r(f(q).templateSettings.tips), 1)]), u("ul", Ce, [
229
- u("li", we, r(f(q).templateSettings.tip1), 1),
230
- u("li", Te, r(f(q).templateSettings.tip2), 1),
231
- u("li", Ee, r(f(q).templateSettings.tip3), 1)
232
- ])])) : o("", !0)
233
- ])]));
234
- }
235
- });
236
- export { G as default };
@@ -1,209 +0,0 @@
1
- import { $ as e, C as t, H as n, N as r, Nt as i, U as a, _ as o, c as s, d as c, f as l, g as u, j as d, jt as f, l as p, r as m, st as h, u as g, y as _, z as ee } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
2
- import { a as te, i as ne } from "./runtime-dom.esm-bundler-BURR-bj5.js";
3
- import { g as re, nt as ie } from "./dist-CKi_npZM.js";
4
- import { H as ae } from "./useEditorCore-BSo2sSID.js";
5
- import { C as oe, F as v, H as se, M as y, O as ce, g as le } from "./keys-BgRERHzu.js";
6
- import { t as ue } from "./useI18n-BBrHTdu8.js";
7
- import { t as de } from "./check-BZ8o0eet.js";
8
- import { t as fe } from "./loader-circle-BZRD0a4I.js";
9
- import { n as pe, t as me } from "./MergeTagModeToggle-DxujhYJ4.js";
10
- import { v as he } from "./styleConstants-B8xVRiwX.js";
11
- import { t as ge } from "./TplModal-DLMssVlt.js";
12
- import { t as b } from "./BlockPreviewCanvas-B-4bmJ3t.js";
13
- // src/utils/validateEmailShape.ts
14
- var x = /[,;<>()[\]\\"'`|/?#@!$%^&*+=~{}]/;
15
- function S(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 || x.test(i)) return !1;
22
- let a = i.indexOf(".");
23
- return a > 0 && a < i.length - 1;
24
- }
25
- // src/components/TestEmailModal.vue?vue&type=script&setup=true&lang.ts
26
- var C = ["aria-busy"], w = {
27
- id: "tpl-test-email-title",
28
- class: "tpl:mb-4 tpl:shrink-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
29
- }, T = { class: "tpl:mb-3 tpl:shrink-0" }, E = {
30
- for: "tpl-test-email-recipient",
31
- class: "tpl:mb-1.5 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]"
32
- }, D = ["value"], O = ["disabled"], k = ["value"], A = ["placeholder", "disabled"], j = {
33
- key: 3,
34
- class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
35
- }, M = { class: "tpl:mb-2 tpl:shrink-0" }, N = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-between tpl:gap-2" }, P = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, F = { class: "tpl:flex tpl:items-center tpl:gap-2" }, I = {
36
- "data-testid": "test-email-preview-hint",
37
- class: "tpl:mt-1 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
38
- }, L = {
39
- id: "tpl-test-email-preview",
40
- "data-testid": "test-email-preview",
41
- 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)]"
42
- }, _e = {
43
- key: 0,
44
- role: "status",
45
- "aria-busy": "true",
46
- "data-testid": "preview-resolution-loading",
47
- class: "tpl:flex tpl:flex-col tpl:gap-3"
48
- }, ve = { class: "tpl:sr-only" }, ye = {
49
- key: 1,
50
- role: "status",
51
- "data-testid": "preview-resolution-failed",
52
- 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)]"
53
- }, be = {
54
- key: 0,
55
- role: "status",
56
- "data-testid": "test-email-success",
57
- 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))]"
58
- }, xe = {
59
- key: 1,
60
- role: "alert",
61
- "data-testid": "test-email-error",
62
- class: "tpl:mb-3 tpl:shrink-0 tpl:text-xs tpl:text-[var(--tpl-danger)]"
63
- }, Se = { class: "tpl:flex tpl:shrink-0 tpl:justify-end tpl:gap-2" }, Ce = ["disabled"], we = ["disabled"], Te = {
64
- key: 0,
65
- class: "tpl:flex tpl:items-center tpl:gap-1.5"
66
- }, Ee = { key: 1 }, R = /* @__PURE__ */ _({
67
- __name: "TestEmailModal",
68
- props: {
69
- visible: { type: Boolean },
70
- allowedRecipients: {},
71
- defaultRecipient: {},
72
- isSending: { type: Boolean },
73
- justSent: { type: Boolean },
74
- error: {}
75
- },
76
- emits: ["send", "close"],
77
- setup(_, { emit: x }) {
78
- let R = _, z = x, { t: B } = ue(), De = t(le, null), V = t(oe, void 0), H = e(""), U = e("desktop"), Oe = t(se, void 0), W = ae({
79
- resolvePreview: Oe ?? void 0,
80
- getContent: () => {
81
- let e = De?.content.value ?? {
82
- blocks: [],
83
- settings: {}
84
- };
85
- return V && R.visible ? re(V, e) : e;
86
- },
87
- isActive: () => R.visible,
88
- getRecipient: () => H.value || void 0
89
- }), G = t(y, null), K = e(ie(t(ce, v).value)), q = s({
90
- get: () => W.isConfigured ? !1 : G?.value ?? K.value,
91
- set: (e) => {
92
- G ? G.value = e : K.value = e;
93
- }
94
- }), ke = s(() => W.content.value.blocks ?? []), Ae = s(() => W.content.value.settings), J = s(() => R.allowedRecipients !== void 0 && R.allowedRecipients.length > 0), je = s(() => R.allowedRecipients?.length === 1);
95
- ee(() => R.visible, (e) => {
96
- e && (H.value = R.defaultRecipient ?? R.allowedRecipients?.[0] ?? "");
97
- }, { immediate: !0 });
98
- let Y = s(() => J.value ? H.value.length > 0 : S(H.value)), X = s(() => Y.value && !R.isSending && !R.justSent), Me = s(() => !J.value && H.value.trim().length > 0 && !Y.value), Z = s(() => R.error ? R.error.kind === "provider" ? R.error.message : B.testEmail.recipientNotAllowed : null);
99
- function Q() {
100
- X.value && z("send", H.value.trim());
101
- }
102
- function $() {
103
- R.isSending || z("close");
104
- }
105
- function Ne(e) {
106
- e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q()), e.key === "Escape" && $();
107
- }
108
- return (e, t) => (d(), g(ge, {
109
- visible: _.visible,
110
- onClose: $,
111
- onKeydown: Ne
112
- }, {
113
- default: n(() => [p("div", {
114
- role: "dialog",
115
- "aria-modal": "true",
116
- "aria-busy": _.isSending,
117
- "aria-labelledby": "tpl-test-email-title",
118
- class: "tpl-scale-in tpl:flex tpl:max-h-[90%] tpl:w-full tpl:max-w-3xl tpl:flex-col tpl:rounded-[var(--tpl-radius-lg)] tpl:p-5",
119
- style: {
120
- "background-color": "var(--tpl-bg-elevated)",
121
- "box-shadow": "var(--tpl-shadow-xl)"
122
- }
123
- }, [
124
- p("h3", w, i(h(B).testEmail.title), 1),
125
- p("div", T, [
126
- p("label", E, i(h(B).testEmail.recipientLabel), 1),
127
- je.value ? (d(), l("input", {
128
- key: 0,
129
- id: "tpl-test-email-recipient",
130
- type: "text",
131
- value: H.value,
132
- disabled: "",
133
- "data-testid": "test-email-recipient",
134
- 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:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)] tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
135
- }, null, 8, D)) : J.value ? a((d(), l("select", {
136
- key: 1,
137
- id: "tpl-test-email-recipient",
138
- "onUpdate:modelValue": t[0] ||= (e) => H.value = e,
139
- disabled: _.isSending || _.justSent,
140
- "data-testid": "test-email-recipient",
141
- 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:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)] tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
142
- }, [(d(!0), l(m, null, r(_.allowedRecipients, (e) => (d(), l("option", {
143
- key: e,
144
- value: e
145
- }, i(e), 9, k))), 128))], 8, O)), [[ne, H.value]]) : a((d(), l("input", {
146
- key: 2,
147
- id: "tpl-test-email-recipient",
148
- "onUpdate:modelValue": t[1] ||= (e) => H.value = e,
149
- type: "email",
150
- autocomplete: "email",
151
- spellcheck: "false",
152
- placeholder: h(B).testEmail.recipientPlaceholder,
153
- disabled: _.isSending || _.justSent,
154
- "data-testid": "test-email-recipient",
155
- 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:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)] tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
156
- }, null, 8, A)), [[te, H.value]]),
157
- Me.value ? (d(), l("p", j, i(h(B).testEmail.invalidAddress), 1)) : c("", !0)
158
- ]),
159
- p("div", M, [p("div", N, [p("span", P, i(h(B).testEmail.preview), 1), p("div", F, [h(W).supersedesSamples.value ? c("", !0) : (d(), g(me, {
160
- key: 0,
161
- "sample-mode": q.value,
162
- onChange: t[2] ||= (e) => q.value = e
163
- }, null, 8, ["sample-mode"])), o(pe, {
164
- viewport: U.value,
165
- onChange: t[3] ||= (e) => U.value = e
166
- }, null, 8, ["viewport"])])]), p("p", I, i(h(W).supersedesSamples.value ? h(B).previewResolution.hint : q.value ? h(B).testEmail.previewHintSample : h(B).testEmail.previewHint), 1)]),
167
- p("div", L, [h(W).isInitialResolve.value ? (d(), l("div", _e, [p("span", ve, i(h(B).previewResolution.resolving), 1), (d(), l(m, null, r(3, (e) => p("div", {
168
- key: e,
169
- "aria-hidden": "true",
170
- class: "tpl-pulse tpl:h-16 tpl:rounded-md tpl:bg-[var(--tpl-bg-hover)]"
171
- })), 64))])) : h(W).hasFailed.value ? (d(), l("p", ye, i(h(B).previewResolution.failed), 1)) : c("", !0), h(W).isInitialResolve.value ? c("", !0) : (d(), g(b, {
172
- key: 2,
173
- blocks: ke.value,
174
- settings: Ae.value,
175
- viewport: U.value,
176
- "apply-condition-filter": !h(W).isConfigured
177
- }, null, 8, [
178
- "blocks",
179
- "settings",
180
- "viewport",
181
- "apply-condition-filter"
182
- ]))]),
183
- _.justSent ? (d(), l("p", be, [o(h(de), {
184
- size: 13,
185
- "stroke-width": 2.5
186
- }), u(" " + i(h(B).testEmail.success), 1)])) : Z.value ? (d(), l("p", xe, i(Z.value), 1)) : c("", !0),
187
- p("div", Se, [p("button", {
188
- type: "button",
189
- "data-testid": "test-email-cancel",
190
- class: f(["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 }]),
191
- disabled: _.isSending,
192
- onClick: $
193
- }, i(h(B).testEmail.cancel), 11, Ce), p("button", {
194
- type: "button",
195
- "data-testid": "test-email-send",
196
- class: f(h(he)),
197
- disabled: !X.value,
198
- onClick: Q
199
- }, [_.isSending ? (d(), l("span", Te, [o(h(fe), {
200
- class: "tpl:animate-spin",
201
- size: 12,
202
- "stroke-width": 2
203
- }), u(" " + i(h(B).testEmail.sending), 1)])) : (d(), l("span", Ee, i(h(B).testEmail.send), 1))], 10, we)])
204
- ], 8, C)]),
205
- _: 1
206
- }, 8, ["visible"]));
207
- }
208
- });
209
- export { R as default };
@@ -1,198 +0,0 @@
1
- import { C as e, J as t, Mt as n, Nt as r, _ as i, a, c as o, d as s, f as c, g as l, j as u, jt as d, l as f, r as p, st as m, u as h, y as g } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
2
- import { b as ee, y as te } from "./useEditorCore-BSo2sSID.js";
3
- import { A as ne, E as re, J as _, Z as v } from "./keys-BgRERHzu.js";
4
- import { t as y } from "./useI18n-BBrHTdu8.js";
5
- import { n as b } from "./usePopoverPosition-DV1PxL66.js";
6
- import { l as x, u as ie } from "./LogicTagInsertButton-CfscnwCn.js";
7
- import { i as ae, n as oe, r as se, t as ce } from "./RichTextEditorContent-o6HmE8GR.js";
8
- import { t as S } from "./link-ju_2Cmir.js";
9
- import { t as C } from "./loader-circle-BZRD0a4I.js";
10
- // src/components/blocks/TitleEditor.vue?vue&type=script&setup=true&lang.ts
11
- var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme", "aria-label"], E = ["aria-label", "title"], D = ["aria-label", "title"], O = ["aria-label", "title"], k = {
12
- key: 0,
13
- class: "tpl:mx-1.5 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]"
14
- }, A = ["aria-label", "title"], j = {
15
- key: 2,
16
- class: "tpl:mx-1.5 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]"
17
- }, M = ["aria-label", "title"], N = {
18
- key: 1,
19
- class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
20
- }, P = /* @__PURE__ */ g({
21
- __name: "TitleEditor",
22
- props: {
23
- block: {},
24
- toolbarPosition: {}
25
- },
26
- emits: ["done"],
27
- setup(g, { emit: P }) {
28
- let F = g, I = P, L = e(_, null), R = e(v, null), z = b(), B = e(ne, null), le = e(re, null), V = o(() => (B?.isOpen.value ?? !1) || (le?.isOpen.value ?? !1)), { t: H } = y(), { editor: U, EditorContent: W, isLoading: G, initError: ue, retry: de, showLinkDialog: fe, linkUrl: K, linkColor: q, linkDialogRef: J, canRequestMergeTag: Y, canInsertLogicTag: X, openLinkDialog: Z, insertLink: pe, removeLink: me, closeLinkDialog: he, handleLinkKeydown: ge, handleAddMergeTag: Q, handleAddLogicTag: $ } = te({
29
- blockId: () => F.block.id,
30
- blockContent: () => F.block.content,
31
- onDone: () => I("done"),
32
- editorName: "TitleEditor",
33
- async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
34
- let [{ Editor: a, EditorContent: o }, { default: s }, { default: c }, { MergeTagNode: l, MergeTagSuggestion: u, LogicMergeTagNode: d, LineBoundaryKeys: f }] = await Promise.all([
35
- import("./dist-D6cMdrfG.js").then((e) => e.r),
36
- import("./dist-CWSG7Kj0.js"),
37
- import("./dist-txQLT2sF.js"),
38
- import("./extensions-fo_c-vqf.js")
39
- ]);
40
- return {
41
- TiptapEditor: a,
42
- EC: o,
43
- extensions: [
44
- s.configure({
45
- heading: !1,
46
- codeBlock: !1,
47
- blockquote: !1,
48
- horizontalRule: !1,
49
- bulletList: !1,
50
- orderedList: !1,
51
- listItem: !1,
52
- strike: !1,
53
- link: !1
54
- }),
55
- ee(c).configure({
56
- openOnClick: !1,
57
- HTMLAttributes: {
58
- target: "_blank",
59
- rel: "noopener noreferrer"
60
- }
61
- }),
62
- l.configure({
63
- mergeTags: () => e.value,
64
- syntax: t
65
- }),
66
- d.configure({ syntax: t }),
67
- f,
68
- ...r && n && e.value.length > 0 ? [u.configure({
69
- mergeTags: () => e.value,
70
- char: n,
71
- emptyText: i,
72
- popoverRoot: z
73
- })] : []
74
- ]
75
- };
76
- }
77
- });
78
- return (e, o) => (u(), c("div", w, [
79
- m(z) && !V.value ? (u(), h(a, {
80
- key: 0,
81
- to: m(z)
82
- }, [f("div", {
83
- "data-tpl-theme": m(R),
84
- role: "toolbar",
85
- "aria-label": m(H).titleEditor.toolbar,
86
- class: "tpl tpl-text-toolbar tpl:absolute tpl:flex tpl:items-center 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-[var(--tpl-shadow-lg)]",
87
- style: n({
88
- ...m(L),
89
- top: `${g.toolbarPosition.top}px`,
90
- left: `${g.toolbarPosition.left}px`,
91
- transform: "translateY(-100%)"
92
- })
93
- }, [!m(G) && m(U) ? (u(), c(p, { key: 0 }, [
94
- f("button", {
95
- type: "button",
96
- class: d(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": m(U)?.isActive("bold") }]),
97
- "aria-label": m(H).titleEditor.bold,
98
- title: m(H).titleEditor.bold,
99
- onClick: o[0] ||= (e) => m(U)?.chain().focus().toggleBold().run()
100
- }, [i(m(se), {
101
- size: 16,
102
- "stroke-width": 2.5
103
- })], 10, E),
104
- f("button", {
105
- type: "button",
106
- class: d(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": m(U)?.isActive("italic") }]),
107
- "aria-label": m(H).titleEditor.italic,
108
- title: m(H).titleEditor.italic,
109
- onClick: o[1] ||= (e) => m(U)?.chain().focus().toggleItalic().run()
110
- }, [i(m(ae), {
111
- size: 16,
112
- "stroke-width": 2
113
- })], 10, D),
114
- o[8] ||= f("span", {
115
- class: "tpl:mx-1.5 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
116
- "aria-hidden": "true"
117
- }, null, -1),
118
- f("button", {
119
- type: "button",
120
- class: d(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": m(U)?.isActive("link") }]),
121
- "aria-label": m(H).titleEditor.addLink,
122
- title: m(H).titleEditor.addLink,
123
- onClick: o[2] ||= (...e) => m(Z) && m(Z)(...e)
124
- }, [i(m(S), {
125
- size: 16,
126
- "stroke-width": 2
127
- })], 10, O),
128
- m(Y) ? (u(), c("span", k)) : s("", !0),
129
- m(Y) ? (u(), c("button", {
130
- key: 1,
131
- type: "button",
132
- 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:hover:bg-[var(--tpl-bg-active)]",
133
- "aria-label": m(H).mergeTag.insert,
134
- title: m(H).mergeTag.insert,
135
- onClick: o[3] ||= (...e) => m(Q) && m(Q)(...e)
136
- }, [i(m(x), {
137
- size: 16,
138
- "stroke-width": 2
139
- }), l(" " + r(m(H).mergeTag.insertShort), 1)], 8, A)) : s("", !0),
140
- m(X) ? (u(), c("span", j)) : s("", !0),
141
- m(X) ? (u(), c("button", {
142
- key: 3,
143
- type: "button",
144
- 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:hover:bg-[var(--tpl-bg-active)]",
145
- "aria-label": m(H).logicTag.insert,
146
- title: m(H).logicTag.insert,
147
- "data-testid": "insert-logic-button",
148
- onClick: o[4] ||= (...e) => m($) && m($)(...e)
149
- }, [i(m(ie), {
150
- size: 16,
151
- "stroke-width": 2
152
- }), l(" " + r(m(H).logicTag.insertShort), 1)], 8, M)) : s("", !0)
153
- ], 64)) : (u(), c("div", N, [i(m(C), {
154
- class: "tpl-spinner",
155
- size: 14,
156
- "stroke-width": 2
157
- }), l(" " + r(m(H).errors.editorLoading), 1)]))], 12, T)], 8, ["to"])) : s("", !0),
158
- i(ce, {
159
- editor: m(U),
160
- "editor-content": m(W),
161
- "is-loading": m(G),
162
- "init-error": m(ue),
163
- onRetry: m(de)
164
- }, null, 8, [
165
- "editor",
166
- "editor-content",
167
- "is-loading",
168
- "init-error",
169
- "onRetry"
170
- ]),
171
- i(oe, {
172
- visible: m(fe),
173
- "is-editing-link": m(U)?.isActive("link") ?? !1,
174
- "dialog-ref": m(J),
175
- "onUpdate:dialogRef": o[5] ||= (e) => t(J) ? J.value = e : null,
176
- "link-url": m(K),
177
- "onUpdate:linkUrl": o[6] ||= (e) => t(K) ? K.value = e : null,
178
- "link-color": m(q),
179
- "onUpdate:linkColor": o[7] ||= (e) => t(q) ? q.value = e : null,
180
- onClose: m(he),
181
- onInsert: m(pe),
182
- onRemove: m(me),
183
- onKeydown: m(ge)
184
- }, null, 8, [
185
- "visible",
186
- "is-editing-link",
187
- "dialog-ref",
188
- "link-url",
189
- "link-color",
190
- "onClose",
191
- "onInsert",
192
- "onRemove",
193
- "onKeydown"
194
- ])
195
- ]));
196
- }
197
- });
198
- export { P as default };