@templatical/editor 0.52.0 → 0.52.1

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 (261) hide show
  1. package/dist/{AiAltTextPopover-Cm11CsKH.js → AiAltTextPopover-DawbUywc.js} +13 -13
  2. package/dist/{AiAltTextReview-DE8t8Rud.js → AiAltTextReview-9ySsXOTU.js} +22 -22
  3. package/dist/{AiChatPanel-7ftS7d40.js → AiChatPanel-CupPhmsN.js} +137 -137
  4. package/dist/{AiPanels-CxGp6klr.js → AiPanels-DqT4PgQ0.js} +4 -4
  5. package/dist/{AiRewriteMenu-DNI-5CUj.js → AiRewriteMenu-28agTycW.js} +62 -62
  6. package/dist/BlockIssueBadge-BxpDy3u-.js +33 -0
  7. package/dist/{BlockPreviewCanvas-Df9iz7sK.js → BlockPreviewCanvas-B-4bmJ3t.js} +23 -23
  8. package/dist/{CloudHeaderExtras-CsgyNNV1.js → CloudHeaderExtras-QI82yF54.js} +3 -3
  9. package/dist/{CloudPanels-BDV4XQ_l.js → CloudPanels-BKJaLkUN.js} +50 -50
  10. package/dist/{CollaborationNotices-JQ3vQoqO.js → CollaborationNotices-CTw4JThq.js} +11 -11
  11. package/dist/{CollaboratorBar-EeqqWcX6.js → CollaboratorBar-CXQqN3VP.js} +15 -15
  12. package/dist/{CommentsPanel-BuftXc0U.js → CommentsPanel-DwwFuh1h.js} +2 -2
  13. package/dist/CommentsSidebar-9ZfiC2DO.js +500 -0
  14. package/dist/{CountdownBlock-BT3ZTH1F.js → CountdownBlock-CU2yTWtF.js} +20 -20
  15. package/dist/{CountdownToolbar-CrL4WKy9.js → CountdownToolbar-BqoYzf_6.js} +53 -53
  16. package/dist/IssuesPanel-4ykrf1ax.js +359 -0
  17. package/dist/{LoadingTrack-DZA5AoP9.js → LoadingTrack-DM4g6j7b.js} +1 -1
  18. package/dist/{LogicTagInsertButton-CSD9cfJB.js → LogicTagInsertButton-CfscnwCn.js} +234 -234
  19. package/dist/{MediaEditModal-DQl5w44r.js → MediaEditModal-Dy08GEwE.js} +446 -446
  20. package/dist/{MediaPanels-BFWYuJot.js → MediaPanels-BgEp7iCp.js} +2 -2
  21. package/dist/{MergeTagInput-DE7kWwXx.js → MergeTagInput-B9dtUthD.js} +11 -11
  22. package/dist/{MergeTagModeToggle-DvD0ne7N.js → MergeTagModeToggle-DxujhYJ4.js} +30 -30
  23. package/dist/{MergeTagTextarea-DVPQkiYY.js → MergeTagTextarea-CPFEjJZd.js} +11 -11
  24. package/dist/{ParagraphEditor-D-nqs82g.js → ParagraphEditor-CWXfurGh.js} +201 -201
  25. package/dist/{RestoreVersionDialog-DqUPsLB9.js → RestoreVersionDialog-C4s_JYCx.js} +14 -14
  26. package/dist/{RichTextEditorContent-Xq9D0Zs3.js → RichTextEditorContent-o6HmE8GR.js} +40 -39
  27. package/dist/{SaveBlockDialog-DAPv70p4.js → SaveBlockDialog-CWLrly6l.js} +56 -56
  28. package/dist/SavedBlocksBrowserModal-CE8n4EBS.js +359 -0
  29. package/dist/{SavedBlocksPanels-ChbL9v9x.js → SavedBlocksPanels-BE1N9rNZ.js} +6 -6
  30. package/dist/{SavedBlocksPickBar-hRaiLNdu.js → SavedBlocksPickBar-Dwl94xhP.js} +12 -12
  31. package/dist/{TemplateSettings-D0XcH32O.js → TemplateSettings-CS0f1Ues.js} +74 -74
  32. package/dist/{TestEmailModal-Cb5t0yB2.js → TestEmailModal-DBD0X5nV.js} +52 -52
  33. package/dist/{TestEmailPanel-COJQa2A9.js → TestEmailPanel-DaFjP9QK.js} +2 -2
  34. package/dist/{TitleEditor-BYk_9SpQ.js → TitleEditor-DSqtle77.js} +75 -75
  35. package/dist/{ToggleSwitch-poGWbduy.js → ToggleSwitch-JykPyD_8.js} +4 -4
  36. package/dist/{Toolbar-Dku_pZni.js → Toolbar-BZPFfKrf.js} +913 -913
  37. package/dist/{TplModal-9IndEYk5.js → TplModal-DLMssVlt.js} +15 -15
  38. package/dist/{VersionHistoryMenu-BG5qayvg.js → VersionHistoryMenu-BkbYUs0Q.js} +35 -35
  39. package/dist/{VersionHistoryPanels-hPg7Q5-f.js → VersionHistoryPanels-DP7HaYWv.js} +4 -4
  40. package/dist/{VersionPreviewBanner-CSs7zum_.js → VersionPreviewBanner-DECaBwLq.js} +9 -9
  41. package/dist/{WrapperBlock-DwjK_IdJ.js → WrapperBlock-BsJv_Fiw.js} +16 -16
  42. package/dist/{blockTypeIcons-yt7SLzub.js → blockTypeIcons-BHjlPnPf.js} +23 -22
  43. package/dist/bundle-stats.json +6 -6
  44. package/dist/cdn/chunks/{AiAltTextPopover-DjMoJCgU.js → AiAltTextPopover-SEEjkd-I.js} +21 -21
  45. package/dist/cdn/chunks/{AiAltTextPopover-DjMoJCgU.js.map → AiAltTextPopover-SEEjkd-I.js.map} +1 -1
  46. package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js → AiAltTextReview-BGLLSKLm.js} +41 -41
  47. package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js.map → AiAltTextReview-BGLLSKLm.js.map} +1 -1
  48. package/dist/cdn/chunks/{AiChatPanel-DXeZgc7D.js → AiChatPanel-DKDAaBNi.js} +127 -127
  49. package/dist/cdn/chunks/{AiChatPanel-DXeZgc7D.js.map → AiChatPanel-DKDAaBNi.js.map} +1 -1
  50. package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js → AiPanels-0wBarZSH.js} +3 -3
  51. package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js.map → AiPanels-0wBarZSH.js.map} +1 -1
  52. package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js → AiRewriteMenu-qf-cfEpy.js} +43 -43
  53. package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js.map → AiRewriteMenu-qf-cfEpy.js.map} +1 -1
  54. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +34 -0
  55. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +1 -0
  56. package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js → BlockPreviewCanvas-DGBh6mqe.js} +20 -20
  57. package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js.map → BlockPreviewCanvas-DGBh6mqe.js.map} +1 -1
  58. package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js → CloudHeaderExtras-BMNK_F9p.js} +3 -3
  59. package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js.map → CloudHeaderExtras-BMNK_F9p.js.map} +1 -1
  60. package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js → CloudPanels-JMWIoVWh.js} +32 -32
  61. package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js.map → CloudPanels-JMWIoVWh.js.map} +1 -1
  62. package/dist/cdn/chunks/{CollaborationNotices-Hf8r08Sw.js → CollaborationNotices-Bsf1rGW9.js} +12 -12
  63. package/dist/cdn/chunks/{CollaborationNotices-Hf8r08Sw.js.map → CollaborationNotices-Bsf1rGW9.js.map} +1 -1
  64. package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js → CollaboratorBar-CXByAoUz.js} +14 -14
  65. package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js.map → CollaboratorBar-CXByAoUz.js.map} +1 -1
  66. package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js → CommentsPanel-DoJnKLXI.js} +3 -3
  67. package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js.map → CommentsPanel-DoJnKLXI.js.map} +1 -1
  68. package/dist/cdn/chunks/{CommentsSidebar-Dj8sDiLN.js → CommentsSidebar-CUtgvdBC.js} +100 -99
  69. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +1 -0
  70. package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js → CountdownBlock-BqRw147R.js} +18 -18
  71. package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js.map → CountdownBlock-BqRw147R.js.map} +1 -1
  72. package/dist/cdn/chunks/{CountdownToolbar-CguFJdqn.js → CountdownToolbar-xobieKoU.js} +26 -26
  73. package/dist/cdn/chunks/{CountdownToolbar-CguFJdqn.js.map → CountdownToolbar-xobieKoU.js.map} +1 -1
  74. package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js → IssuesPanel-C7LfxaAY.js} +75 -75
  75. package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js.map → IssuesPanel-C7LfxaAY.js.map} +1 -1
  76. package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js → LoadingTrack-CZuLTazv.js} +2 -2
  77. package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js.map → LoadingTrack-CZuLTazv.js.map} +1 -1
  78. package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js → LogicTagInsertButton-BIi05UQu.js} +250 -250
  79. package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js.map → LogicTagInsertButton-BIi05UQu.js.map} +1 -1
  80. package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js → MediaEditModal-Cpcod6_U.js} +148 -148
  81. package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js.map → MediaEditModal-Cpcod6_U.js.map} +1 -1
  82. package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js → MediaPanels-BIdcW_1f.js} +3 -3
  83. package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js.map → MediaPanels-BIdcW_1f.js.map} +1 -1
  84. package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js → MergeTagInput-BvWg8o5E.js} +32 -32
  85. package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js.map → MergeTagInput-BvWg8o5E.js.map} +1 -1
  86. package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js → MergeTagModeToggle-BgKEVUtV.js} +27 -27
  87. package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js.map → MergeTagModeToggle-BgKEVUtV.js.map} +1 -1
  88. package/dist/cdn/chunks/{MergeTagTextarea-Zo0mYWbf.js → MergeTagTextarea-tBz8McZf.js} +32 -32
  89. package/dist/cdn/chunks/{MergeTagTextarea-Zo0mYWbf.js.map → MergeTagTextarea-tBz8McZf.js.map} +1 -1
  90. package/dist/cdn/chunks/{ParagraphEditor-DsPLVAgm.js → ParagraphEditor-B3Rj_cWF.js} +191 -191
  91. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +1 -0
  92. package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js → RestoreVersionDialog-CjOdD2xj.js} +19 -19
  93. package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js.map → RestoreVersionDialog-CjOdD2xj.js.map} +1 -1
  94. package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js → RichTextEditorContent-DNjR_sNN.js} +29 -29
  95. package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js.map → RichTextEditorContent-DNjR_sNN.js.map} +1 -1
  96. package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js → SaveBlockDialog-CUhpawq0.js} +75 -75
  97. package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js.map → SaveBlockDialog-CUhpawq0.js.map} +1 -1
  98. package/dist/cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js +356 -0
  99. package/dist/cdn/chunks/{SavedBlocksBrowserModal-B9XCjDfm.js.map → SavedBlocksBrowserModal-BPYcRoGa.js.map} +1 -1
  100. package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js → SavedBlocksPanels-C6--Bc81.js} +3 -3
  101. package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js.map → SavedBlocksPanels-C6--Bc81.js.map} +1 -1
  102. package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js → SavedBlocksPickBar-DUavxpbU.js} +14 -14
  103. package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js.map → SavedBlocksPickBar-DUavxpbU.js.map} +1 -1
  104. package/dist/cdn/chunks/{TemplateSettings-jWpmuWDR.js → TemplateSettings-CKtI-dof.js} +69 -69
  105. package/dist/cdn/chunks/{TemplateSettings-jWpmuWDR.js.map → TemplateSettings-CKtI-dof.js.map} +1 -1
  106. package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js → TestEmailModal-CDQTgESD.js} +65 -65
  107. package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js.map → TestEmailModal-CDQTgESD.js.map} +1 -1
  108. package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js → TestEmailPanel-CcUpEpAn.js} +3 -3
  109. package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js.map → TestEmailPanel-CcUpEpAn.js.map} +1 -1
  110. package/dist/cdn/chunks/{TitleEditor-R2lQw6WA.js → TitleEditor-Cob7RLyK.js} +70 -70
  111. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +1 -0
  112. package/dist/cdn/chunks/{ToggleSwitch-BDMugNES.js → ToggleSwitch-J7Vwhvha.js} +5 -5
  113. package/dist/cdn/chunks/{ToggleSwitch-BDMugNES.js.map → ToggleSwitch-J7Vwhvha.js.map} +1 -1
  114. package/dist/cdn/chunks/{Toolbar-CnvfW72e.js → Toolbar-CdpsvNOR.js} +893 -893
  115. package/dist/cdn/chunks/{Toolbar-CnvfW72e.js.map → Toolbar-CdpsvNOR.js.map} +1 -1
  116. package/dist/cdn/chunks/TplModal-CFPDgbwQ.js +51 -0
  117. package/dist/cdn/chunks/{TplModal-BDyeS69p.js.map → TplModal-CFPDgbwQ.js.map} +1 -1
  118. package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js → VersionHistoryMenu-BYlLRvRJ.js} +32 -32
  119. package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js.map → VersionHistoryMenu-BYlLRvRJ.js.map} +1 -1
  120. package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js → VersionHistoryPanels-C6SOVoiT.js} +3 -3
  121. package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js.map → VersionHistoryPanels-C6SOVoiT.js.map} +1 -1
  122. package/dist/cdn/chunks/{VersionPreviewBanner-CZ--HOoa.js → VersionPreviewBanner-Dvg0ZfAW.js} +10 -10
  123. package/dist/cdn/chunks/{VersionPreviewBanner-CZ--HOoa.js.map → VersionPreviewBanner-Dvg0ZfAW.js.map} +1 -1
  124. package/dist/cdn/chunks/{WrapperBlock-D3obNGab.js → WrapperBlock-C7Md56IT.js} +13 -13
  125. package/dist/cdn/chunks/{WrapperBlock-D3obNGab.js.map → WrapperBlock-C7Md56IT.js.map} +1 -1
  126. package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js +21 -0
  127. package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js.map +1 -0
  128. package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js → createCloudRuntime-Cth2JCEh.js} +36 -36
  129. package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js.map → createCloudRuntime-Cth2JCEh.js.map} +1 -1
  130. package/dist/cdn/chunks/{dist-C2epoAwW.js → dist-8ym3y-pH.js} +43 -43
  131. package/dist/cdn/chunks/{dist-C2epoAwW.js.map → dist-8ym3y-pH.js.map} +1 -1
  132. package/dist/{dist-BA-jTQgw.js → cdn/chunks/dist-BMzNabtD.js} +106 -107
  133. package/dist/cdn/chunks/{dist-CONcGNwy.js.map → dist-BMzNabtD.js.map} +1 -1
  134. package/dist/cdn/chunks/{draggable-B8hTTYFO.js → draggable-Du8AUMFT.js} +639 -636
  135. package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +1 -0
  136. package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js → editor-modal-CyCe560f.js} +891 -891
  137. package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js.map → editor-modal-CyCe560f.js.map} +1 -1
  138. package/dist/cdn/chunks/en-TIqv4ag3.js +1 -0
  139. package/dist/cdn/chunks/{extensions-ClDhn88e.js → extensions-CFF2KWy-.js} +55 -55
  140. package/dist/cdn/chunks/{extensions-ClDhn88e.js.map → extensions-CFF2KWy-.js.map} +1 -1
  141. package/dist/cdn/chunks/{icons-HCBP93Ch.js → icons-okSPsLOa.js} +99 -97
  142. package/dist/cdn/chunks/icons-okSPsLOa.js.map +1 -0
  143. package/dist/cdn/chunks/{keys-BF9gazbd.js → keys-CUj6UA38.js} +2 -2
  144. package/dist/cdn/chunks/{keys-BF9gazbd.js.map → keys-CUj6UA38.js.map} +1 -1
  145. package/dist/cdn/chunks/{liquid.browser-DkLBNrft.js → liquid.browser-rubac0VA.js} +782 -746
  146. package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
  147. package/dist/cdn/chunks/{normalizeMergeTagMarkup-DpHCSESZ.js → normalizeMergeTagMarkup-C_KlfSW4.js} +2 -2
  148. package/dist/cdn/chunks/{normalizeMergeTagMarkup-DpHCSESZ.js.map → normalizeMergeTagMarkup-C_KlfSW4.js.map} +1 -1
  149. package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js → preRenderCustomBlocks-BcXIz7oJ.js} +2 -2
  150. package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js.map → preRenderCustomBlocks-BcXIz7oJ.js.map} +1 -1
  151. package/dist/cdn/chunks/{sanitizeHtml-B2h15u0_.js → sanitizeHtml-CN85EDrO.js} +2 -2
  152. package/dist/cdn/chunks/{sanitizeHtml-B2h15u0_.js.map → sanitizeHtml-CN85EDrO.js.map} +1 -1
  153. package/dist/cdn/chunks/{socialIcons-rJoqO1TJ.js → socialIcons-jsTDmkbb.js} +480 -480
  154. package/dist/cdn/chunks/{socialIcons-rJoqO1TJ.js.map → socialIcons-jsTDmkbb.js.map} +1 -1
  155. package/dist/cdn/chunks/{src-CUH_EI7k.js → src-C7bkofBL.js} +6 -6
  156. package/dist/cdn/chunks/{src-CUH_EI7k.js.map → src-C7bkofBL.js.map} +1 -1
  157. package/dist/cdn/chunks/{src-BKpAis_q.js → src-DEd87i_U.js} +2 -2
  158. package/dist/cdn/chunks/{src-BKpAis_q.js.map → src-DEd87i_U.js.map} +1 -1
  159. package/dist/cdn/chunks/{src-C9DTvn1H.js → src-DwWrYnUj.js} +3 -22
  160. package/dist/cdn/chunks/src-DwWrYnUj.js.map +1 -0
  161. package/dist/cdn/chunks/{tiptap-ChSZybTi.js → tiptap-CbiTlECY.js} +45 -45
  162. package/dist/cdn/chunks/{tiptap-ChSZybTi.js.map → tiptap-CbiTlECY.js.map} +1 -1
  163. package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js → useCloudI18n-DY8_-ETE.js} +3 -3
  164. package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js.map → useCloudI18n-DY8_-ETE.js.map} +1 -1
  165. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +2582 -0
  166. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +1 -0
  167. package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +9 -0
  168. package/dist/cdn/chunks/{useEditorRoot-BT3c9CXj.js.map → useEditorRoot-vjZJwKrV.js.map} +1 -1
  169. package/dist/cdn/chunks/{useI18n-11iqzC6m.js → useI18n-D8pY4LTq.js} +3 -3
  170. package/dist/cdn/chunks/{useI18n-11iqzC6m.js.map → useI18n-D8pY4LTq.js.map} +1 -1
  171. package/dist/{useLogicTag-DFDYJeMN.js → cdn/chunks/useLogicTag-DBJDtpKA.js} +5 -3
  172. package/dist/cdn/chunks/{useLogicTag-vy5KGg5D.js.map → useLogicTag-DBJDtpKA.js.map} +1 -1
  173. package/dist/{useMergeTag-B46vACAG.js → cdn/chunks/useMergeTag-B-aG--s1.js} +7 -5
  174. package/dist/cdn/chunks/{useMergeTag-BFBBjnwh.js.map → useMergeTag-B-aG--s1.js.map} +1 -1
  175. package/dist/cdn/chunks/{usePopoverPosition-AnVIwiVv.js → usePopoverPosition-DSMtmu2W.js} +4 -4
  176. package/dist/cdn/chunks/{usePopoverPosition-AnVIwiVv.js.map → usePopoverPosition-DSMtmu2W.js.map} +1 -1
  177. package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js → useScrollToBlock-vjQ0fe-L.js} +3 -3
  178. package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js.map → useScrollToBlock-vjQ0fe-L.js.map} +1 -1
  179. package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js → withCurrentFont-hZTvYBHO.js} +2 -2
  180. package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js.map → withCurrentFont-hZTvYBHO.js.map} +1 -1
  181. package/dist/cdn/editor.css +1 -1
  182. package/dist/cdn/editor.js +1422 -1422
  183. package/dist/cdn/editor.js.map +1 -1
  184. package/dist/{check-N3x4z_rH.js → check-BZ8o0eet.js} +1 -1
  185. package/dist/{chevron-down-gXu9qNwO.js → chevron-down-DfAAfILv.js} +1 -1
  186. package/dist/{chevron-right-rL0ayGk5.js → chevron-right-Bk4mGdr7.js} +1 -1
  187. package/dist/{chevron-up-0ugh8HnW.js → chevron-up-MhUf_azW.js} +1 -1
  188. package/dist/{circle-alert-B9Ls75B5.js → circle-alert-CShJwVFv.js} +1 -1
  189. package/dist/{clock-BqHBaCLm.js → clock-CTfD6OCt.js} +1 -1
  190. package/dist/{createCloudRuntime-B5VIdnwz.js → createCloudRuntime-DCgO4A1r.js} +24 -24
  191. package/dist/{createLucideIcon-BV7Gwz_Z.js → createLucideIcon-CvhTA2KG.js} +6 -6
  192. package/dist/{cdn/chunks/dist-CONcGNwy.js → dist-ByCWA2Tv.js} +100 -99
  193. package/dist/{dist-CzrLYq2s.js → dist-CKi_npZM.js} +2 -21
  194. package/dist/{dist-CEdyyDn7.js → dist-CVy-7PHQ.js} +54 -54
  195. package/dist/{dist-DDN7yR-w.js → dist-D6cMdrfG.js} +129 -129
  196. package/dist/{editor-modal-Du9VI9q4.js → editor-modal-zaZHcmlO.js} +812 -812
  197. package/dist/en-Db76vJbY.js +1 -0
  198. package/dist/{extensions-FRYhx7qa.js → extensions-fo_c-vqf.js} +32 -32
  199. package/dist/{eye-BKj9Tfnc.js → eye-7W4t5e0Q.js} +1 -1
  200. package/dist/{image-DNdvdTla.js → image-BDiRFzSd.js} +1 -1
  201. package/dist/{info-Bx-kBkbH.js → info-Cxi3-Kh9.js} +1 -1
  202. package/dist/{keys-DBjrQkYH.js → keys-BgRERHzu.js} +1 -1
  203. package/dist/{link-D8-rYdIQ.js → link-ju_2Cmir.js} +1 -1
  204. package/dist/{liquid.browser-D1RxawkY.js → liquid.browser-DUXEekoN.js} +781 -745
  205. package/dist/{list-BneisA27.js → list-DYZJf0aZ.js} +1 -1
  206. package/dist/{loader-circle-DBEXphyx.js → loader-circle-BZRD0a4I.js} +1 -1
  207. package/dist/{message-circle-Bg4xInCM.js → message-circle-DuEw4Zfx.js} +1 -1
  208. package/dist/{normalizeMergeTagMarkup-IH8COHzd.js → normalizeMergeTagMarkup-CELnOlgK.js} +1 -1
  209. package/dist/{package-B40Vkfsp.js → package-CePMr2kK.js} +1 -1
  210. package/dist/{pencil-CYdAHTds.js → pencil-D3aFCL7c.js} +1 -1
  211. package/dist/{preRenderCustomBlocks-AbZArwkR.js → preRenderCustomBlocks--_xc0XK3.js} +1 -1
  212. package/dist/{refresh-cw-Bb1FWrU0.js → refresh-cw-xnro7_Sk.js} +1 -1
  213. package/dist/{runtime-dom.esm-bundler-CLGymEyk.js → runtime-dom.esm-bundler-BURR-bj5.js} +118 -118
  214. package/dist/{sanitizeHtml-CnOA1efV.js → sanitizeHtml-BzfzpYJY.js} +1 -1
  215. package/dist/{search-BZEo08gi.js → search-CDrstRBv.js} +1 -1
  216. package/dist/{send-DHtrnXQs.js → send-DROkPOaX.js} +1 -1
  217. package/dist/{smartphone-dlN3vpA3.js → smartphone-Bx6u_tjn.js} +1 -1
  218. package/dist/{socialIcons-B_d52_eS.js → socialIcons-D7MGsg0d.js} +366 -366
  219. package/dist/{sparkles-NOttoDnJ.js → sparkles-CdaTtvoz.js} +1 -1
  220. package/dist/{square-B1CJgdt2.js → square-BbCROH_f.js} +1 -1
  221. package/dist/style.css +1 -1
  222. package/dist/templatical-editor.js +1096 -1096
  223. package/dist/{text-align-start-zpoXmb-Z.js → text-align-start-CGacJ9Vw.js} +1 -1
  224. package/dist/{trash-CGbk4Sgt.js → trash-DxCd7zIy.js} +1 -1
  225. package/dist/{triangle-alert-CKLMyGVp.js → triangle-alert-7_oaitpf.js} +1 -1
  226. package/dist/{upload-DQoackAn.js → upload-DuFEOi_0.js} +1 -1
  227. package/dist/{useCloudI18n-DcLtxOQZ.js → useCloudI18n-DEMmUKuO.js} +2 -2
  228. package/dist/{useEditorCore-DG9UvWUm.js → useEditorCore-BSo2sSID.js} +1518 -1470
  229. package/dist/useEditorRoot-BMcoCLBx.js +7 -0
  230. package/dist/{useI18n-CeTm777E.js → useI18n-BBrHTdu8.js} +2 -2
  231. package/dist/{cdn/chunks/useLogicTag-vy5KGg5D.js → useLogicTag-ZPC39rfH.js} +3 -5
  232. package/dist/{cdn/chunks/useMergeTag-BFBBjnwh.js → useMergeTag-BQ4qqWpQ.js} +5 -7
  233. package/dist/{usePopoverPosition-C42kD7zt.js → usePopoverPosition-DV1PxL66.js} +3 -3
  234. package/dist/{useScrollToBlock-C-NzvjeO.js → useScrollToBlock-BSyAV4pk.js} +3 -3
  235. package/dist/{vue.runtime.esm-bundler-CrlI8j5R.js → vue.runtime.esm-bundler-CnEeTfhs.js} +993 -990
  236. package/dist/{withCurrentFont-v_a4Oso8.js → withCurrentFont-B22FXAF5.js} +1 -1
  237. package/dist/{x-zcrnmcmU.js → x-BpfG7v9g.js} +1 -1
  238. package/package.json +10 -10
  239. package/dist/BlockIssueBadge-6Ri2FfX-.js +0 -33
  240. package/dist/CommentsSidebar-Co3x4uH0.js +0 -499
  241. package/dist/IssuesPanel-BHFQ3wrP.js +0 -359
  242. package/dist/SavedBlocksBrowserModal-SRtN5h9q.js +0 -359
  243. package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js +0 -34
  244. package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js.map +0 -1
  245. package/dist/cdn/chunks/CommentsSidebar-Dj8sDiLN.js.map +0 -1
  246. package/dist/cdn/chunks/ParagraphEditor-DsPLVAgm.js.map +0 -1
  247. package/dist/cdn/chunks/SavedBlocksBrowserModal-B9XCjDfm.js +0 -356
  248. package/dist/cdn/chunks/TitleEditor-R2lQw6WA.js.map +0 -1
  249. package/dist/cdn/chunks/TplModal-BDyeS69p.js +0 -51
  250. package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js +0 -21
  251. package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js.map +0 -1
  252. package/dist/cdn/chunks/draggable-B8hTTYFO.js.map +0 -1
  253. package/dist/cdn/chunks/en-CKAXAo3Z.js +0 -1
  254. package/dist/cdn/chunks/icons-HCBP93Ch.js.map +0 -1
  255. package/dist/cdn/chunks/liquid.browser-DkLBNrft.js.map +0 -1
  256. package/dist/cdn/chunks/src-C9DTvn1H.js.map +0 -1
  257. package/dist/cdn/chunks/useEditorCore-CjaEV_01.js +0 -2534
  258. package/dist/cdn/chunks/useEditorCore-CjaEV_01.js.map +0 -1
  259. package/dist/cdn/chunks/useEditorRoot-BT3c9CXj.js +0 -9
  260. package/dist/en-CyEE7FPY.js +0 -1
  261. package/dist/useEditorRoot-BKr6nNkC.js +0 -7
@@ -1,12 +1,12 @@
1
- import { $ as e, A as t, C as n, D as r, I as i, J as a, P as o, T as s, U as c, X as l, _ as u, b as d, c as f, dt as p, f as m, g as h, h as g, l as _, lt as v, m as y, n as b, ot as x, p as S, q as C, r as w, u as T, ut as E, x as D } from "./draggable-B8hTTYFO.js";
2
- import { c as O, i as k, s as A, u as j } from "./src-C9DTvn1H.js";
3
- import { t as ee } from "./dist-CONcGNwy.js";
4
- import { J as te, Y as M, Z as ne, d as re } from "./keys-BF9gazbd.js";
5
- import { t as N } from "./useI18n-11iqzC6m.js";
6
- import { a as P, i as ie, n as ae, o as oe, r as se, t as ce } from "./usePopoverPosition-AnVIwiVv.js";
7
- import { Bt as le, G as F, N as I, t as L } from "./icons-HCBP93Ch.js";
8
- import { t as R } from "./useMergeTag-BFBBjnwh.js";
9
- import { t as ue } from "./useLogicTag-vy5KGg5D.js";
1
+ import { A as e, C as t, D as n, I as r, J as i, P as a, T as o, W as s, Y as c, Z as l, _ as u, b as d, c as f, dt as p, et as m, f as h, ft as g, g as _, h as v, l as y, m as b, n as x, p as S, r as C, st as w, u as T, ut as E, x as D } from "./draggable-Du8AUMFT.js";
2
+ import { c as O, i as k, s as A, u as j } from "./src-DwWrYnUj.js";
3
+ import { t as ee } from "./dist-BMzNabtD.js";
4
+ import { J as te, Y as M, Z as ne, d as re } from "./keys-CUj6UA38.js";
5
+ import { t as N } from "./useI18n-D8pY4LTq.js";
6
+ import { a as P, i as ie, n as ae, o as oe, r as se, t as ce } from "./usePopoverPosition-DSMtmu2W.js";
7
+ import { G as le, N as F, Vt as I, t as L } from "./icons-okSPsLOa.js";
8
+ import { t as R } from "./useMergeTag-B-aG--s1.js";
9
+ import { t as ue } from "./useLogicTag-DBJDtpKA.js";
10
10
  import { u as de } from "./styleConstants-B8xVRiwX.js";
11
11
  // ../../node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js
12
12
  var z = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, B = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n, V = (e) => me(H(e)), H = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
@@ -279,7 +279,7 @@ var Pe = [
279
279
  "placeholder",
280
280
  "disabled",
281
281
  "aria-label"
282
- ], Ke = ["aria-label", "title"], qe = /* @__PURE__ */ n({
282
+ ], Ke = ["aria-label", "title"], qe = /* @__PURE__ */ t({
283
283
  __name: "ColorPicker",
284
284
  props: {
285
285
  modelValue: {},
@@ -306,17 +306,17 @@ var Pe = [
306
306
  }
307
307
  },
308
308
  emits: ["update:modelValue"],
309
- setup(t, { emit: n }) {
310
- let a = t, s = n, { t: l } = N(), C = e(!1), w = e(), O = e(), k = e(!1);
311
- ee(w, () => {
312
- C.value = !1;
309
+ setup(e, { emit: t }) {
310
+ let i = e, o = t, { t: c } = N(), l = m(!1), C = m(), O = m(), k = m(!1);
311
+ ee(C, () => {
312
+ l.value = !1;
313
313
  }, { ignore: [O] });
314
- let A = S(() => !a.modelValue), j = S(() => a.modelValue.trim().toLowerCase() === "transparent"), M = S(() => ie(a.modelValue)), le = S(() => (a.modelValue ? P(a.modelValue) : null) || (P(a.seedColor) ?? "#ffffff")), F = S(() => !a.disabled && !A.value), I = r(re, oe), R = S(() => [...new Set(a.presets ?? I.presets)]), ue = S(() => a.allowCustom ?? I.allowCustom), z = S(() => R.value.length > 0), B = S(() => ue.value || !z.value), V = S(() => se(a.modelValue));
314
+ let A = S(() => !i.modelValue), j = S(() => i.modelValue.trim().toLowerCase() === "transparent"), M = S(() => ie(i.modelValue)), le = S(() => (i.modelValue ? P(i.modelValue) : null) || (P(i.seedColor) ?? "#ffffff")), F = S(() => !i.disabled && !A.value), I = n(re, oe), R = S(() => [...new Set(i.presets ?? I.presets)]), ue = S(() => i.allowCustom ?? I.allowCustom), z = S(() => R.value.length > 0), B = S(() => ue.value || !z.value), V = S(() => se(i.modelValue));
315
315
  function H(e) {
316
316
  return V.value !== "" && se(e) === V.value;
317
317
  }
318
318
  function fe(e) {
319
- s("update:modelValue", e);
319
+ o("update:modelValue", e);
320
320
  }
321
321
  let U = S(() => z.value && !B.value);
322
322
  function W(e) {
@@ -344,30 +344,30 @@ var Pe = [
344
344
  r !== -1 && (t[(r + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + t.length) % t.length]?.focus(), e.preventDefault());
345
345
  }
346
346
  function q(e) {
347
- k.value = !0, s("update:modelValue", e.detail.value);
347
+ k.value = !0, o("update:modelValue", e.detail.value);
348
348
  }
349
349
  function he() {
350
350
  k.value = !1;
351
351
  }
352
352
  function ge() {
353
- !k.value && A.value && s("update:modelValue", le.value);
353
+ !k.value && A.value && o("update:modelValue", le.value);
354
354
  }
355
355
  function J(e) {
356
- s("update:modelValue", e.target.value);
356
+ o("update:modelValue", e.target.value);
357
357
  }
358
358
  function Y() {
359
- s("update:modelValue", "");
359
+ o("update:modelValue", "");
360
360
  }
361
361
  function X() {
362
- s("update:modelValue", "transparent");
362
+ o("update:modelValue", "transparent");
363
363
  }
364
- let Z = ae(), { toLocal: _e } = ce(), ve = r(te, null), ye = r(ne, null), Q = e({
364
+ let Z = ae(), { toLocal: _e } = ce(), ve = n(te, null), ye = n(ne, null), Q = m({
365
365
  top: 0,
366
366
  left: 0
367
367
  });
368
368
  function be() {
369
- if (!a.disabled) {
370
- if (!C.value) {
369
+ if (!i.disabled) {
370
+ if (!l.value) {
371
371
  let e = O.value?.getBoundingClientRect();
372
372
  if (e) {
373
373
  let t = e.bottom + 8 + 240 <= window.innerHeight ? e.bottom + 8 : Math.max(8, e.top - 240 - 8);
@@ -377,56 +377,56 @@ var Pe = [
377
377
  });
378
378
  }
379
379
  }
380
- C.value = !C.value;
380
+ l.value = !l.value;
381
381
  }
382
382
  }
383
- return (e, n) => (o(), u("div", { class: v(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", t.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
384
- y("button", {
383
+ return (t, n) => (a(), u("div", { class: E(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", e.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
384
+ b("button", {
385
385
  ref_key: "swatchRef",
386
386
  ref: O,
387
387
  type: "button",
388
- disabled: t.disabled,
389
- "aria-label": t.ariaLabel || x(l).colorPicker.pickColor,
390
- title: t.ariaLabel || void 0,
391
- "aria-expanded": C.value,
392
- class: v([
388
+ disabled: e.disabled,
389
+ "aria-label": e.ariaLabel || w(c).colorPicker.pickColor,
390
+ title: e.ariaLabel || void 0,
391
+ "aria-expanded": l.value,
392
+ class: E([
393
393
  "tpl:shrink-0 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-0.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
394
- t.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
395
- C.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !t.disabled && "tpl:hover:border-[var(--tpl-text-dim)]",
396
- t.size === "sm" ? "tpl:size-8" : "tpl:size-10"
394
+ e.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
395
+ l.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !e.disabled && "tpl:hover:border-[var(--tpl-text-dim)]",
396
+ e.size === "sm" ? "tpl:size-8" : "tpl:size-10"
397
397
  ]),
398
398
  onClick: be
399
- }, [y("span", {
400
- class: v(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", {
399
+ }, [b("span", {
400
+ class: E(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", {
401
401
  "tpl-color-swatch-empty": A.value,
402
402
  "tpl-color-swatch-transparent": j.value
403
403
  }]),
404
- style: E(A.value || j.value ? void 0 : { backgroundColor: M.value })
404
+ style: p(A.value || j.value ? void 0 : { backgroundColor: M.value })
405
405
  }, null, 6)], 10, Pe),
406
- !t.swatchOnly && B.value ? (o(), u("div", Fe, [y("input", {
406
+ !e.swatchOnly && B.value ? (a(), u("div", Fe, [b("input", {
407
407
  type: "text",
408
- class: v([x(de), "tpl:w-full"]),
409
- style: E(F.value ? { paddingRight: "2.25rem" } : void 0),
408
+ class: E([w(de), "tpl:w-full"]),
409
+ style: p(F.value ? { paddingRight: "2.25rem" } : void 0),
410
410
  value: M.value,
411
- placeholder: t.placeholder || x(l).colorPicker.notSet,
412
- disabled: t.disabled,
413
- "aria-label": x(l).colorPicker.hexValue,
411
+ placeholder: e.placeholder || w(c).colorPicker.notSet,
412
+ disabled: e.disabled,
413
+ "aria-label": w(c).colorPicker.hexValue,
414
414
  onInput: J
415
- }, null, 46, Ie), F.value ? (o(), u("button", {
415
+ }, null, 46, Ie), F.value ? (a(), u("button", {
416
416
  key: 0,
417
417
  type: "button",
418
- "aria-label": x(l).colorPicker.clear,
419
- title: x(l).colorPicker.clear,
418
+ "aria-label": w(c).colorPicker.clear,
419
+ title: w(c).colorPicker.clear,
420
420
  class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
421
421
  onClick: Y
422
- }, [D(x(L), {
422
+ }, [D(w(L), {
423
423
  size: 14,
424
424
  "stroke-width": 1.5
425
- })], 8, Le)) : h("", !0)])) : h("", !0),
426
- (o(), g(m, {
427
- to: x(Z),
428
- disabled: !x(Z)
429
- }, [D(b, {
425
+ })], 8, Le)) : _("", !0)])) : _("", !0),
426
+ (a(), v(h, {
427
+ to: w(Z),
428
+ disabled: !w(Z)
429
+ }, [D(x, {
430
430
  "enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
431
431
  "enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
432
432
  "enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
@@ -434,45 +434,45 @@ var Pe = [
434
434
  "leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
435
435
  "leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
436
436
  }, {
437
- default: c(() => [C.value ? (o(), u("div", {
437
+ default: s(() => [l.value ? (a(), u("div", {
438
438
  key: 0,
439
439
  ref_key: "popoverRef",
440
- ref: w,
441
- "data-tpl-theme": x(ye),
440
+ ref: C,
441
+ "data-tpl-theme": w(ye),
442
442
  class: "tpl-color-popover tpl:absolute tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3 tpl:shadow-[var(--tpl-shadow-lg)]",
443
- style: E({
443
+ style: p({
444
444
  top: `${Q.value.top}px`,
445
445
  left: `${Q.value.left}px`,
446
- ...x(ve)
446
+ ...w(ve)
447
447
  })
448
448
  }, [
449
- t.allowTransparent ? (o(), u("button", {
449
+ e.allowTransparent ? (a(), u("button", {
450
450
  key: 0,
451
451
  type: "button",
452
452
  "data-testid": "color-picker-transparent",
453
453
  "aria-pressed": j.value,
454
- "aria-label": x(l).colorPicker.transparent,
455
- title: x(l).colorPicker.transparent,
456
- class: v(["tpl:mb-2 tpl:flex tpl:w-full tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:py-1 tpl:text-left tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)]", j.value ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
454
+ "aria-label": w(c).colorPicker.transparent,
455
+ title: w(c).colorPicker.transparent,
456
+ class: E(["tpl:mb-2 tpl:flex tpl:w-full tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:py-1 tpl:text-left tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)]", j.value ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
457
457
  onClick: X
458
- }, [n[2] ||= y("span", { class: "tpl-color-swatch-transparent tpl:size-4 tpl:shrink-0 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)]" }, null, -1), d(" " + p(x(l).colorPicker.transparent), 1)], 10, ze)) : h("", !0),
459
- z.value ? (o(), u("div", {
458
+ }, [n[2] ||= b("span", { class: "tpl-color-swatch-transparent tpl:size-4 tpl:shrink-0 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)]" }, null, -1), d(" " + g(w(c).colorPicker.transparent), 1)], 10, ze)) : _("", !0),
459
+ z.value ? (a(), u("div", {
460
460
  key: 1,
461
461
  role: "radiogroup",
462
- "aria-label": x(l).colorPicker.presetColors,
463
- class: v(["tpl:flex tpl:flex-wrap tpl:gap-1.5", B.value && "tpl:mb-2"]),
462
+ "aria-label": w(c).colorPicker.presetColors,
463
+ class: E(["tpl:flex tpl:flex-wrap tpl:gap-1.5", B.value && "tpl:mb-2"]),
464
464
  onKeydown: me
465
- }, [U.value ? (o(), u("button", {
465
+ }, [U.value ? (a(), u("button", {
466
466
  key: 0,
467
467
  type: "button",
468
468
  role: "radio",
469
- "aria-label": x(l).colorPicker.clear,
470
- title: x(l).colorPicker.clear,
469
+ "aria-label": w(c).colorPicker.clear,
470
+ title: w(c).colorPicker.clear,
471
471
  "aria-checked": A.value,
472
472
  tabindex: K(),
473
- class: v(["tpl-color-swatch-empty tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", A.value ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
473
+ class: E(["tpl-color-swatch-empty tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", A.value ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
474
474
  onClick: Y
475
- }, null, 10, Ve)) : h("", !0), (o(!0), u(T, null, i(R.value, (e, t) => (o(), u("button", {
475
+ }, null, 10, Ve)) : _("", !0), (a(!0), u(T, null, r(R.value, (e, t) => (a(), u("button", {
476
476
  key: e,
477
477
  type: "button",
478
478
  role: "radio",
@@ -480,41 +480,41 @@ var Pe = [
480
480
  title: e,
481
481
  "aria-checked": H(e),
482
482
  tabindex: pe(t),
483
- style: E({ backgroundColor: e }),
484
- class: v(["tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", H(e) ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
483
+ style: p({ backgroundColor: e }),
484
+ class: E(["tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", H(e) ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
485
485
  onClick: (t) => fe(e)
486
- }, null, 14, He))), 128))], 42, Be)) : h("", !0),
487
- B.value ? (o(), u("hex-color-picker", {
486
+ }, null, 14, He))), 128))], 42, Be)) : _("", !0),
487
+ B.value ? (a(), u("hex-color-picker", {
488
488
  key: 2,
489
489
  color: le.value,
490
- "aria-label": x(l).colorPicker.pickColor,
490
+ "aria-label": w(c).colorPicker.pickColor,
491
491
  onColorChanged: q,
492
492
  onPointerdown: he,
493
493
  onPointerup: ge,
494
- onKeydown: n[0] ||= f((e) => C.value = !1, ["escape"])
495
- }, null, 40, Ue)) : h("", !0),
496
- t.swatchOnly && B.value ? (o(), u("div", We, [y("input", {
494
+ onKeydown: n[0] ||= f((e) => l.value = !1, ["escape"])
495
+ }, null, 40, Ue)) : _("", !0),
496
+ e.swatchOnly && B.value ? (a(), u("div", We, [b("input", {
497
497
  type: "text",
498
- class: v([x(de), "tpl:w-full"]),
499
- style: E(F.value ? { paddingRight: "2.25rem" } : void 0),
498
+ class: E([w(de), "tpl:w-full"]),
499
+ style: p(F.value ? { paddingRight: "2.25rem" } : void 0),
500
500
  value: M.value,
501
- placeholder: t.placeholder || x(l).colorPicker.notSet,
502
- disabled: t.disabled,
503
- "aria-label": x(l).colorPicker.hexValue,
501
+ placeholder: e.placeholder || w(c).colorPicker.notSet,
502
+ disabled: e.disabled,
503
+ "aria-label": w(c).colorPicker.hexValue,
504
504
  onChange: J,
505
- onKeydown: n[1] ||= f(_((e) => e.target.blur(), ["prevent"]), ["enter"])
506
- }, null, 46, Ge), F.value ? (o(), u("button", {
505
+ onKeydown: n[1] ||= f(y((e) => e.target.blur(), ["prevent"]), ["enter"])
506
+ }, null, 46, Ge), F.value ? (a(), u("button", {
507
507
  key: 0,
508
508
  type: "button",
509
- "aria-label": x(l).colorPicker.clear,
510
- title: x(l).colorPicker.clear,
509
+ "aria-label": w(c).colorPicker.clear,
510
+ title: w(c).colorPicker.clear,
511
511
  class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
512
512
  onClick: Y
513
- }, [D(x(L), {
513
+ }, [D(w(L), {
514
514
  size: 14,
515
515
  "stroke-width": 1.5
516
- })], 8, Ke)) : h("", !0)])) : h("", !0)
517
- ], 12, Re)) : h("", !0)]),
516
+ })], 8, Ke)) : _("", !0)])) : _("", !0)
517
+ ], 12, Re)) : _("", !0)]),
518
518
  _: 1
519
519
  })], 8, ["to", "disabled"]))
520
520
  ], 2));
@@ -530,7 +530,7 @@ var Pe = [
530
530
  "data-merge-tag-value",
531
531
  "onMousedown",
532
532
  "onMousemove"
533
- ], Ze = { class: "tpl:font-medium" }, Qe = { class: "tpl:text-[var(--tpl-text-dim)] tpl:font-mono" }, $e = /* @__PURE__ */ n({
533
+ ], Ze = { class: "tpl:font-medium" }, Qe = { class: "tpl:text-[var(--tpl-text-dim)] tpl:font-mono" }, $e = /* @__PURE__ */ t({
534
534
  __name: "MergeTagSuggestionList",
535
535
  props: {
536
536
  items: {},
@@ -544,12 +544,12 @@ var Pe = [
544
544
  function n(e) {
545
545
  return t.listId ? `${t.listId}-opt-${e}` : void 0;
546
546
  }
547
- return (t, r) => (o(), u("div", {
547
+ return (t, i) => (a(), u("div", {
548
548
  id: e.listId,
549
549
  class: "tpl:min-w-[200px] tpl:max-w-[320px] tpl:max-h-[50vh] tpl:overflow-y-auto tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:py-1 tpl:shadow-[var(--tpl-shadow-lg)]",
550
550
  role: "listbox",
551
551
  "data-testid": "merge-tag-suggestion-list"
552
- }, [e.items.length === 0 ? (o(), u("div", Ye, p(e.emptyText), 1)) : h("", !0), (o(!0), u(T, null, i(e.items, (r, i) => (o(), u("button", {
552
+ }, [e.items.length === 0 ? (a(), u("div", Ye, g(e.emptyText), 1)) : _("", !0), (a(!0), u(T, null, r(e.items, (r, i) => (a(), u("button", {
553
553
  key: r.value,
554
554
  id: n(i),
555
555
  type: "button",
@@ -557,10 +557,10 @@ var Pe = [
557
557
  "aria-selected": i === e.selectedIndex,
558
558
  "data-selected": i === e.selectedIndex ? "true" : "false",
559
559
  "data-merge-tag-value": r.value,
560
- class: v(["tpl:flex tpl:w-full tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:px-3 tpl:py-1.5 tpl:text-left tpl:text-xs tpl:transition-colors", i === e.selectedIndex ? "tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
561
- onMousedown: _((e) => t.$emit("select", r), ["prevent", "stop"]),
560
+ class: E(["tpl:flex tpl:w-full tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:px-3 tpl:py-1.5 tpl:text-left tpl:text-xs tpl:transition-colors", i === e.selectedIndex ? "tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
561
+ onMousedown: y((e) => t.$emit("select", r), ["prevent", "stop"]),
562
562
  onMousemove: (n) => i !== e.selectedIndex && t.$emit("hover", i)
563
- }, [y("span", Ze, p(r.label), 1), y("span", Qe, p(r.value), 1)], 42, Xe))), 128))], 8, Je));
563
+ }, [b("span", Ze, g(r.label), 1), b("span", Qe, g(r.value), 1)], 42, Xe))), 128))], 8, Je));
564
564
  }
565
565
  }), et = 10, tt = 0;
566
566
  function nt(e, t) {
@@ -573,14 +573,14 @@ function nt(e, t) {
573
573
  function rt(e, t, n, r) {
574
574
  return t.length === 0 ? e.key === "Enter" || e.key === "Tab" : e.key === "ArrowDown" ? (n.value = (n.value + 1) % t.length, !0) : e.key === "ArrowUp" ? (n.value = (n.value - 1 + t.length) % t.length, !0) : e.key === "Enter" || e.key === "Tab" ? (r(t[n.value]), !0) : !1;
575
575
  }
576
- function it(t, n) {
577
- let r = null, i = null, a = null, o = e([]), c = e(0), l = null, u = `tpl-merge-tag-suggestion-${++tt}`, d = null, f = [], p = null;
578
- function m() {
579
- y(d?.() ?? null);
576
+ function it(e, t) {
577
+ let n = null, r = null, i = null, a = m([]), s = m(0), c = null, l = `tpl-merge-tag-suggestion-${++tt}`, u = null, d = [], f = null;
578
+ function p() {
579
+ y(u?.() ?? null);
580
580
  }
581
581
  function h() {
582
- m(), p !== null && cancelAnimationFrame(p), p = requestAnimationFrame(() => {
583
- p = null, m();
582
+ p(), f !== null && cancelAnimationFrame(f), f = requestAnimationFrame(() => {
583
+ f = null, p();
584
584
  });
585
585
  }
586
586
  function g(e) {
@@ -592,26 +592,26 @@ function it(t, n) {
592
592
  return t;
593
593
  }
594
594
  function _(e) {
595
- f = [window, ...g(e)];
596
- for (let e of f) e.addEventListener("scroll", m, {
595
+ d = [window, ...g(e)];
596
+ for (let e of d) e.addEventListener("scroll", p, {
597
597
  passive: !0,
598
598
  capture: !0
599
599
  });
600
- window.addEventListener("resize", m, { passive: !0 });
600
+ window.addEventListener("resize", p, { passive: !0 });
601
601
  }
602
602
  function v() {
603
- for (let e of f) e.removeEventListener("scroll", m, { capture: !0 });
604
- window.removeEventListener("resize", m), f = [];
603
+ for (let e of d) e.removeEventListener("scroll", p, { capture: !0 });
604
+ window.removeEventListener("resize", p), d = [];
605
605
  }
606
606
  function y(e) {
607
- if (!i || !e || e.bottom < 0 || e.top > window.innerHeight) return;
608
- i.style.position = "absolute", i.style.zIndex = "9999";
609
- let t = i.offsetParent?.getBoundingClientRect(), n = t?.top ?? 0;
610
- i.style.left = `${e.left - (t?.left ?? 0)}px`, i.style.top = `${e.bottom - n}px`;
611
- let r = i.offsetHeight;
612
- if (r !== 0 && window.innerHeight - e.bottom < r) {
613
- let t = Math.max(0, e.top - r);
614
- i.style.top = `${t - n}px`;
607
+ if (!r || !e || e.bottom < 0 || e.top > window.innerHeight) return;
608
+ r.style.position = "absolute", r.style.zIndex = "9999";
609
+ let t = r.offsetParent?.getBoundingClientRect(), n = t?.top ?? 0;
610
+ r.style.left = `${e.left - (t?.left ?? 0)}px`, r.style.top = `${e.bottom - n}px`;
611
+ let i = r.offsetHeight;
612
+ if (i !== 0 && window.innerHeight - e.bottom < i) {
613
+ let t = Math.max(0, e.top - i);
614
+ r.style.top = `${t - n}px`;
615
615
  }
616
616
  }
617
617
  function b(e, t) {
@@ -627,40 +627,40 @@ function it(t, n) {
627
627
  e.style.fontFamily = i.fontFamily, e.style.fontSize = i.fontSize, e.style.lineHeight = i.lineHeight;
628
628
  }
629
629
  function x(e) {
630
- a && (e ? (a.setAttribute("role", "combobox"), a.setAttribute("aria-haspopup", "listbox"), a.setAttribute("aria-expanded", "true"), a.setAttribute("aria-controls", u)) : (a.removeAttribute("aria-expanded"), a.removeAttribute("aria-controls"), a.removeAttribute("aria-activedescendant"), a.removeAttribute("aria-haspopup"), a.removeAttribute("role")));
630
+ i && (e ? (i.setAttribute("role", "combobox"), i.setAttribute("aria-haspopup", "listbox"), i.setAttribute("aria-expanded", "true"), i.setAttribute("aria-controls", l)) : (i.removeAttribute("aria-expanded"), i.removeAttribute("aria-controls"), i.removeAttribute("aria-activedescendant"), i.removeAttribute("aria-haspopup"), i.removeAttribute("role")));
631
631
  }
632
632
  function S() {
633
- a && (o.value.length === 0 ? a.removeAttribute("aria-activedescendant") : a.setAttribute("aria-activedescendant", `${u}-opt-${c.value}`));
633
+ i && (a.value.length === 0 ? i.removeAttribute("aria-activedescendant") : i.setAttribute("aria-activedescendant", `${l}-opt-${s.value}`));
634
634
  }
635
- function C(e) {
636
- l?.(e);
635
+ function w(e) {
636
+ c?.(e);
637
637
  }
638
638
  return {
639
- open: ({ items: e, getRect: f, anchorEl: p, onCommand: m }) => {
640
- o.value = e, c.value = 0, l = m, i = document.createElement("div"), i.setAttribute("data-testid", "merge-tag-suggestion-popup"), a = p, b(i, p), (n?.value ?? document.body).appendChild(i), r = w({ render() {
641
- return s($e, {
642
- items: o.value,
643
- selectedIndex: c.value,
644
- emptyText: t,
645
- listId: u,
646
- onSelect: (e) => C(e),
639
+ open: ({ items: d, getRect: f, anchorEl: p, onCommand: m }) => {
640
+ a.value = d, s.value = 0, c = m, r = document.createElement("div"), r.setAttribute("data-testid", "merge-tag-suggestion-popup"), i = p, b(r, p), (t?.value ?? document.body).appendChild(r), n = C({ render() {
641
+ return o($e, {
642
+ items: a.value,
643
+ selectedIndex: s.value,
644
+ emptyText: e,
645
+ listId: l,
646
+ onSelect: (e) => w(e),
647
647
  onHover: (e) => {
648
- c.value = e, S();
648
+ s.value = e, S();
649
649
  }
650
650
  });
651
- } }), r.mount(i), x(!0), S(), d = f, h(), _(p);
651
+ } }), n.mount(r), x(!0), S(), u = f, h(), _(p);
652
652
  },
653
653
  update: ({ items: e, getRect: t, onCommand: n }) => {
654
- o.value = e, c.value >= e.length && (c.value = 0), l = n, S(), d = t, h();
654
+ a.value = e, s.value >= e.length && (s.value = 0), c = n, S(), u = t, h();
655
655
  },
656
656
  handleKeyDown: (e) => {
657
- let t = rt(e, o.value, c, C);
657
+ let t = rt(e, a.value, s, w);
658
658
  return t && S(), t;
659
659
  },
660
660
  close: () => {
661
- i !== null && (p !== null && (cancelAnimationFrame(p), p = null), v(), x(!1), r?.unmount(), i.remove(), r = null, i = null, a = null, l = null, d = null);
661
+ r !== null && (f !== null && (cancelAnimationFrame(f), f = null), v(), x(!1), n?.unmount(), r.remove(), n = null, r = null, i = null, c = null, u = null);
662
662
  },
663
- isOpen: () => i !== null
663
+ isOpen: () => r !== null
664
664
  };
665
665
  }
666
666
  // src/utils/mergeTagTrigger.ts
@@ -723,78 +723,78 @@ var ut = /* @__PURE__ */ new Set([
723
723
  "Home",
724
724
  "End"
725
725
  ]);
726
- function dt(e) {
727
- let { elementRef: n, modelValue: i, emit: o, mergeTags: s, syntax: c, enabled: u, onInsert: d } = e, f = O(c), p = A(c), m = S(() => u && f !== null && s.value.length > 0), h = r(M, null), g = it((a(h) ? h.value : h)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", ae()), _ = !1;
728
- C() && l(() => {
729
- _ = !0, g.close();
726
+ function dt(t) {
727
+ let { elementRef: r, modelValue: a, emit: o, mergeTags: s, syntax: u, enabled: d, onInsert: f } = t, p = O(u), m = A(u), h = S(() => d && p !== null && s.value.length > 0), g = n(M, null), _ = it((c(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", ae()), v = !1;
728
+ i() && l(() => {
729
+ v = !0, _.close();
730
730
  });
731
- function v(e) {
731
+ function y(e) {
732
732
  let t = e.value ?? "";
733
- return at(t, e.selectionStart ?? t.length, f, p, c.value);
733
+ return at(t, e.selectionStart ?? t.length, p, m, u.value);
734
734
  }
735
- function y(e, r, a) {
736
- let s = e.value ?? i(), c = s.slice(r.caret), l = p && c.startsWith(p) ? p.length : 0, u = s.slice(0, r.triggerStart), f = s.slice(r.caret + l), m = u + a.value + f, h = u.length + a.value.length;
737
- d?.(), o(m), g.close(), t(() => {
738
- if (_) return;
739
- let e = n.value;
735
+ function b(t, n, i) {
736
+ let s = t.value ?? a(), c = s.slice(n.caret), l = m && c.startsWith(m) ? m.length : 0, u = s.slice(0, n.triggerStart), d = s.slice(n.caret + l), p = u + i.value + d, h = u.length + i.value.length;
737
+ f?.(), o(p), _.close(), e(() => {
738
+ if (v) return;
739
+ let e = r.value;
740
740
  e?.focus(), e?.setSelectionRange(h, h);
741
741
  });
742
742
  }
743
- function b() {
744
- if (!m.value || _) return;
745
- let e = n.value;
743
+ function x() {
744
+ if (!h.value || v) return;
745
+ let e = r.value;
746
746
  if (!e) {
747
- g.close();
747
+ _.close();
748
748
  return;
749
749
  }
750
- let t = v(e);
750
+ let t = y(e);
751
751
  if (!t) {
752
- g.close();
752
+ _.close();
753
753
  return;
754
754
  }
755
- let r = nt(s.value, t.query), i = () => lt(e, t.triggerStart), a = (n) => y(e, t, n);
756
- g.isOpen() ? g.update({
757
- items: r,
755
+ let n = nt(s.value, t.query), i = () => lt(e, t.triggerStart), a = (n) => b(e, t, n);
756
+ _.isOpen() ? _.update({
757
+ items: n,
758
758
  getRect: i,
759
759
  onCommand: a
760
- }) : g.open({
761
- items: r,
760
+ }) : _.open({
761
+ items: n,
762
762
  getRect: i,
763
763
  anchorEl: e,
764
764
  onCommand: a
765
765
  });
766
766
  }
767
- function x(e) {
768
- return g.isOpen() ? e.key === "Escape" ? (g.close(), !0) : ut.has(e.key) ? (g.close(), !1) : g.handleKeyDown(e) : !1;
767
+ function C(e) {
768
+ return _.isOpen() ? e.key === "Escape" ? (_.close(), !0) : ut.has(e.key) ? (_.close(), !1) : _.handleKeyDown(e) : !1;
769
769
  }
770
770
  return {
771
- available: m,
772
- refresh: b,
773
- handleKeydown: x,
774
- close: () => g.close(),
775
- isOpen: () => g.isOpen()
771
+ available: h,
772
+ refresh: x,
773
+ handleKeydown: C,
774
+ close: () => _.close(),
775
+ isOpen: () => _.isOpen()
776
776
  };
777
777
  }
778
778
  // src/composables/useMergeTagField.ts
779
- function ft(n) {
780
- let { modelValue: r, emit: i, elementRef: a } = n, { mergeTags: o, canRequestMergeTag: s, isRequesting: c, isMergeTagValue: u, getMergeTagDisplayLabel: d, findMergeTag: f, requestMergeTag: p, syntax: m, autocomplete: h } = R(), { canInsertLogicTag: g, isRequesting: _, requestLogicTag: v } = ue(), y = e(!1), b = !1, x = !1;
781
- C() && l(() => {
782
- x = !0;
779
+ function ft(t) {
780
+ let { modelValue: n, emit: r, elementRef: a } = t, { mergeTags: o, canRequestMergeTag: s, isRequesting: c, isMergeTagValue: u, getMergeTagDisplayLabel: d, findMergeTag: f, requestMergeTag: p, syntax: h, autocomplete: g } = R(), { canInsertLogicTag: _, isRequesting: v, requestLogicTag: y } = ue(), b = m(!1), x = !1, C = !1;
781
+ i() && l(() => {
782
+ C = !0;
783
783
  });
784
784
  let w = dt({
785
785
  elementRef: a,
786
- modelValue: r,
787
- emit: i,
786
+ modelValue: n,
787
+ emit: r,
788
788
  mergeTags: o,
789
- syntax: m,
790
- enabled: h,
789
+ syntax: h,
790
+ enabled: g,
791
791
  onInsert: () => {
792
- y.value = !0;
792
+ b.value = !0;
793
793
  }
794
794
  }), T = S(() => {
795
- let e = r();
795
+ let e = n();
796
796
  if (!e) return [];
797
- let t = [], n = `(${m.value.source}|${m.logic.source})`, i = new RegExp(n, "g"), a = 0, o;
797
+ let t = [], r = `(${h.value.source}|${h.logic.source})`, i = new RegExp(r, "g"), a = 0, o;
798
798
  for (; (o = i.exec(e)) !== null;) {
799
799
  o.index > a && t.push({
800
800
  type: "text",
@@ -805,10 +805,10 @@ function ft(n) {
805
805
  type: "mergeTag",
806
806
  value: n,
807
807
  label: d(n)
808
- }) : j(n, m) ? t.push({
808
+ }) : j(n, h) ? t.push({
809
809
  type: "logicMergeTag",
810
810
  value: n,
811
- keyword: k(n, m)
811
+ keyword: k(n, h)
812
812
  }) : t.push({
813
813
  type: "text",
814
814
  value: n
@@ -820,17 +820,17 @@ function ft(n) {
820
820
  }), t;
821
821
  }), E = S(() => T.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
822
822
  function D() {
823
- y.value = !0, t(() => {
823
+ b.value = !0, e(() => {
824
824
  a.value?.focus();
825
- let e = r()?.length || 0;
825
+ let e = n()?.length || 0;
826
826
  a.value?.setSelectionRange(e, e);
827
827
  });
828
828
  }
829
829
  function O() {
830
- b || (y.value = !1);
830
+ x || (b.value = !1);
831
831
  }
832
832
  function A(e) {
833
- i(e.target.value), w.refresh();
833
+ r(e.target.value), w.refresh();
834
834
  }
835
835
  function ee(e) {
836
836
  return w.handleKeydown(e) ? (e.preventDefault(), !0) : (e.key === "Escape" && O(), !1);
@@ -842,54 +842,54 @@ function ft(n) {
842
842
  w.close(), O();
843
843
  }
844
844
  function ne() {
845
- i("");
845
+ r("");
846
846
  }
847
847
  async function re() {
848
- let e = y.value && a.value ? a.value.selectionStart ?? r().length : r().length;
849
- b = !0;
850
- let n;
848
+ let t = b.value && a.value ? a.value.selectionStart ?? n().length : n().length;
849
+ x = !0;
850
+ let i;
851
851
  try {
852
- n = await p();
852
+ i = await p();
853
853
  } finally {
854
- b = !1;
854
+ x = !1;
855
855
  }
856
- if (!x && n) {
857
- let o = r().slice(0, e), s = r().slice(e), c = o + n.value + s;
858
- i(c), y.value = !0, t(() => {
859
- if (x) return;
860
- let t = e + n.value.length;
861
- a.value?.focus(), a.value?.setSelectionRange(t, t);
856
+ if (!C && i) {
857
+ let o = n().slice(0, t), s = n().slice(t), c = o + i.value + s;
858
+ r(c), b.value = !0, e(() => {
859
+ if (C) return;
860
+ let e = t + i.value.length;
861
+ a.value?.focus(), a.value?.setSelectionRange(e, e);
862
862
  });
863
863
  }
864
864
  }
865
865
  async function N(e) {
866
866
  let t = T.value, n = t[e];
867
867
  if (n?.type !== "mergeTag") return;
868
- b = !0;
869
- let r;
868
+ x = !0;
869
+ let i;
870
870
  try {
871
- r = await p({
871
+ i = await p({
872
872
  reason: "edit",
873
873
  current: f(n.value)
874
874
  });
875
875
  } finally {
876
- b = !1;
876
+ x = !1;
877
877
  }
878
- !x && r && i(t.map((t, n) => n === e ? r.value : t.value).join(""));
878
+ !C && i && r(t.map((t, n) => n === e ? i.value : t.value).join(""));
879
879
  }
880
880
  async function P() {
881
- let e = a.value, n = e?.selectionStart ?? r().length, o = e?.selectionEnd ?? n;
882
- b = !0;
881
+ let t = a.value, i = t?.selectionStart ?? n().length, o = t?.selectionEnd ?? i;
882
+ x = !0;
883
883
  let s;
884
884
  try {
885
- s = await v();
885
+ s = await y();
886
886
  } finally {
887
- b = !1;
887
+ x = !1;
888
888
  }
889
- if (x || !s) return;
890
- let c = r(), l, u;
891
- "before" in s ? (l = c.slice(0, n) + s.before + c.slice(n, o) + s.after + c.slice(o), u = n + s.before.length + (o - n)) : (l = c.slice(0, n) + s.value + c.slice(n), u = n + s.value.length), i(l), y.value = !0, t(() => {
892
- x || (a.value?.focus(), a.value?.setSelectionRange(u, u));
889
+ if (C || !s) return;
890
+ let c = n(), l, u;
891
+ "before" in s ? (l = c.slice(0, i) + s.before + c.slice(i, o) + s.after + c.slice(o), u = i + s.before.length + (o - i)) : (l = c.slice(0, i) + s.value + c.slice(i), u = i + s.value.length), r(l), b.value = !0, e(() => {
892
+ C || (a.value?.focus(), a.value?.setSelectionRange(u, u));
893
893
  });
894
894
  }
895
895
  return {
@@ -897,9 +897,9 @@ function ft(n) {
897
897
  hasMergeTags: E,
898
898
  canRequestMergeTag: s,
899
899
  isRequestingMergeTag: c,
900
- canInsertLogicTag: g,
901
- isRequestingLogicTag: _,
902
- isEditing: y,
900
+ canInsertLogicTag: _,
901
+ isRequestingLogicTag: v,
902
+ isEditing: b,
903
903
  startEditing: D,
904
904
  stopEditing: O,
905
905
  handleInput: A,
@@ -921,7 +921,7 @@ var pt = ["aria-label"], mt = [
921
921
  ], ht = ["data-tooltip"], gt = ["data-tooltip"], _t = {
922
922
  key: 3,
923
923
  class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
924
- }, vt = ["aria-label", "title"], yt = ["aria-label", "title"], bt = /* @__PURE__ */ n({
924
+ }, vt = ["aria-label", "title"], yt = ["aria-label", "title"], bt = /* @__PURE__ */ t({
925
925
  __name: "MergeTagSegments",
926
926
  props: {
927
927
  segments: {},
@@ -934,37 +934,37 @@ var pt = ["aria-label"], mt = [
934
934
  "repick"
935
935
  ],
936
936
  setup(e, { emit: t }) {
937
- let n = t, { t: r, format: a } = N(), { canRepickMergeTag: s, showRawValue: c } = R();
937
+ let n = t, { t: i, format: o } = N(), { canRepickMergeTag: s, showRawValue: c } = R();
938
938
  function l() {
939
939
  n("edit");
940
940
  }
941
- return (t, d) => (o(), u("div", {
941
+ return (t, d) => (a(), u("div", {
942
942
  role: "group",
943
- "aria-label": x(r).mergeTag.fieldGroup,
944
- class: v([e.displayClass, { "tpl-pulse-fill": e.pulse }]),
943
+ "aria-label": w(i).mergeTag.fieldGroup,
944
+ class: E([e.displayClass, { "tpl-pulse-fill": e.pulse }]),
945
945
  onClick: l
946
946
  }, [
947
- (o(!0), u(T, null, i(e.segments, (e, t) => (o(), u(T, { key: `${e.type}-${t}-${e.value}` }, [e.type === "mergeTag" && x(s)(e.value) ? (o(), u("button", {
947
+ (a(!0), u(T, null, r(e.segments, (e, t) => (a(), u(T, { key: `${e.type}-${t}-${e.value}` }, [e.type === "mergeTag" && w(s)(e.value) ? (a(), u("button", {
948
948
  key: 0,
949
949
  type: "button",
950
- class: v(["tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:rounded tpl:border-none tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium", x(c) ? "tpl-tooltip" : ""]),
951
- "data-tooltip": x(c) ? e.value : void 0,
952
- "aria-label": x(a)(x(r).mergeTag.changeTag, { label: e.label }),
950
+ class: E(["tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:rounded tpl:border-none tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium", w(c) ? "tpl-tooltip" : ""]),
951
+ "data-tooltip": w(c) ? e.value : void 0,
952
+ "aria-label": w(o)(w(i).mergeTag.changeTag, { label: e.label }),
953
953
  "data-testid": "merge-tag-field-chip",
954
954
  style: {
955
955
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
956
956
  color: "var(--tpl-primary)"
957
957
  },
958
- onClick: _((e) => n("repick", t), ["stop"])
959
- }, p(e.label), 11, mt)) : e.type === "mergeTag" ? (o(), u("span", {
958
+ onClick: y((e) => n("repick", t), ["stop"])
959
+ }, g(e.label), 11, mt)) : e.type === "mergeTag" ? (a(), u("span", {
960
960
  key: 1,
961
- class: v(["tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium", x(c) ? "tpl-tooltip" : ""]),
962
- "data-tooltip": x(c) ? e.value : void 0,
961
+ class: E(["tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium", w(c) ? "tpl-tooltip" : ""]),
962
+ "data-tooltip": w(c) ? e.value : void 0,
963
963
  style: {
964
964
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
965
965
  color: "var(--tpl-primary)"
966
966
  }
967
- }, p(e.label), 11, ht)) : e.type === "logicMergeTag" ? (o(), u("span", {
967
+ }, g(e.label), 11, ht)) : e.type === "logicMergeTag" ? (a(), u("span", {
968
968
  key: 2,
969
969
  class: "tpl-tooltip tpl:inline-flex tpl:items-center tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.8em] tpl:font-bold tpl:tracking-wide tpl:uppercase",
970
970
  "data-tooltip": e.value,
@@ -973,26 +973,26 @@ var pt = ["aria-label"], mt = [
973
973
  border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
974
974
  color: "var(--tpl-primary)"
975
975
  }
976
- }, p(e.keyword), 9, gt)) : (o(), u("span", _t, p(e.value), 1))], 64))), 128)),
977
- y("button", {
976
+ }, g(e.keyword), 9, gt)) : (a(), u("span", _t, g(e.value), 1))], 64))), 128)),
977
+ b("button", {
978
978
  type: "button",
979
979
  class: "tpl:ml-auto tpl:flex tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-dim)] tpl:opacity-60 tpl:transition-all tpl:hover:text-[var(--tpl-primary)] tpl:hover:opacity-100",
980
- "aria-label": x(r).mergeTag.editAsText,
981
- title: x(r).mergeTag.editAsText,
980
+ "aria-label": w(i).mergeTag.editAsText,
981
+ title: w(i).mergeTag.editAsText,
982
982
  "data-testid": "merge-tag-field-edit",
983
- onClick: _(l, ["stop"])
984
- }, [D(x(F), {
983
+ onClick: y(l, ["stop"])
984
+ }, [D(w(le), {
985
985
  size: 12,
986
986
  "stroke-width": 2
987
987
  })], 8, vt),
988
- y("button", {
988
+ b("button", {
989
989
  type: "button",
990
990
  class: "tpl:flex tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-dim)] tpl:opacity-60 tpl:transition-all tpl:hover:text-[var(--tpl-danger)] tpl:hover:opacity-100",
991
- "aria-label": x(r).mergeTag.remove,
992
- title: x(r).mergeTag.remove,
991
+ "aria-label": w(i).mergeTag.remove,
992
+ title: w(i).mergeTag.remove,
993
993
  "data-testid": "merge-tag-field-clear",
994
- onClick: d[0] ||= _((e) => n("clear"), ["stop"])
995
- }, [D(x(L), {
994
+ onClick: d[0] ||= y((e) => n("clear"), ["stop"])
995
+ }, [D(w(L), {
996
996
  size: 12,
997
997
  "stroke-width": 2.5
998
998
  })], 8, yt)
@@ -1002,50 +1002,50 @@ var pt = ["aria-label"], mt = [
1002
1002
  "aria-label",
1003
1003
  "title",
1004
1004
  "disabled"
1005
- ], St = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:hover:border-[var(--tpl-primary)]", Ct = /* @__PURE__ */ n({
1005
+ ], St = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:hover:border-[var(--tpl-primary)]", Ct = /* @__PURE__ */ t({
1006
1006
  __name: "MergeTagInsertButton",
1007
1007
  props: { disabled: { type: Boolean } },
1008
1008
  emits: ["insert"],
1009
1009
  setup(e) {
1010
1010
  let { t } = N();
1011
- return (n, r) => (o(), u("button", {
1011
+ return (n, r) => (a(), u("button", {
1012
1012
  type: "button",
1013
- class: v([St, "tpl:mt-1.5"]),
1014
- "aria-label": x(t).mergeTag.insert,
1015
- title: x(t).mergeTag.insert,
1013
+ class: E([St, "tpl:mt-1.5"]),
1014
+ "aria-label": w(t).mergeTag.insert,
1015
+ title: w(t).mergeTag.insert,
1016
1016
  disabled: e.disabled,
1017
- onMousedown: r[0] ||= _(() => {}, ["prevent"]),
1017
+ onMousedown: r[0] ||= y(() => {}, ["prevent"]),
1018
1018
  onClick: r[1] ||= (e) => n.$emit("insert")
1019
- }, [D(x(I), {
1019
+ }, [D(w(F), {
1020
1020
  size: 12,
1021
1021
  "stroke-width": 2
1022
- }), d(" " + p(x(t).mergeTag.insertShort), 1)], 42, xt));
1022
+ }), d(" " + g(w(t).mergeTag.insertShort), 1)], 42, xt));
1023
1023
  }
1024
1024
  }), wt = [
1025
1025
  "aria-label",
1026
1026
  "title",
1027
1027
  "disabled"
1028
- ], Tt = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:hover:border-[var(--tpl-primary)]", Et = /* @__PURE__ */ n({
1028
+ ], Tt = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:hover:border-[var(--tpl-primary)]", Et = /* @__PURE__ */ t({
1029
1029
  __name: "LogicTagInsertButton",
1030
1030
  props: { disabled: { type: Boolean } },
1031
1031
  emits: ["insert"],
1032
1032
  setup(e) {
1033
1033
  let { t } = N();
1034
- return (n, r) => (o(), u("button", {
1034
+ return (n, r) => (a(), u("button", {
1035
1035
  type: "button",
1036
- class: v([Tt, "tpl:mt-1.5"]),
1037
- "aria-label": x(t).logicTag.insert,
1038
- title: x(t).logicTag.insert,
1036
+ class: E([Tt, "tpl:mt-1.5"]),
1037
+ "aria-label": w(t).logicTag.insert,
1038
+ title: w(t).logicTag.insert,
1039
1039
  disabled: e.disabled,
1040
1040
  "data-testid": "field-insert-logic-button",
1041
- onMousedown: r[0] ||= _(() => {}, ["prevent"]),
1041
+ onMousedown: r[0] ||= y(() => {}, ["prevent"]),
1042
1042
  onClick: r[1] ||= (e) => n.$emit("insert")
1043
- }, [D(x(le), {
1043
+ }, [D(w(I), {
1044
1044
  size: 12,
1045
1045
  "stroke-width": 2
1046
- }), d(" " + p(x(t).logicTag.insertShort), 1)], 42, wt));
1046
+ }), d(" " + g(w(t).logicTag.insertShort), 1)], 42, wt));
1047
1047
  }
1048
1048
  });
1049
1049
  export { it as a, qe as c, ft as i, Ct as n, nt as o, bt as r, rt as s, Et as t };
1050
1050
 
1051
- //# sourceMappingURL=LogicTagInsertButton-B_ldj3TO.js.map
1051
+ //# sourceMappingURL=LogicTagInsertButton-BIi05UQu.js.map