@templatical/editor 0.37.0 → 0.39.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 (223) hide show
  1. package/dist/{AiChatSidebar-tu4eLcf_.js → AiChatSidebar-jVlXXND3.js} +66 -66
  2. package/dist/{AiFeatureMenu-BF0i0vA4.js → AiFeatureMenu-C1HCntyQ.js} +6 -6
  3. package/dist/{BlockIssueBadge-DT-FqKeC.js → BlockIssueBadge-JhNgcUmZ.js} +4 -4
  4. package/dist/{BlockPreviewCanvas-DDCmMram.js → BlockPreviewCanvas-C_rA5LJN.js} +2 -2
  5. package/dist/{CloudHeaderExtras-NPhudovT.js → CloudHeaderExtras-DvYyNsPB.js} +3 -3
  6. package/dist/{CloudPanels-Iwnky0iA.js → CloudPanels-CDPhPVdd.js} +5 -5
  7. package/dist/{CollaboratorBar-DAITu0hz.js → CollaboratorBar-Co9UPoB0.js} +3 -3
  8. package/dist/{ColorPicker-BqlZ_TqG.js → ColorPicker-BTtN94te.js} +6 -6
  9. package/dist/{CommentsPanel-CDvgmWP1.js → CommentsPanel-CRcVN9Ri.js} +1 -1
  10. package/dist/{CommentsSidebar-X_xqM3dR.js → CommentsSidebar-gDU977br.js} +12 -12
  11. package/dist/{CountdownBlock-ZFJIdbP6.js → CountdownBlock-CEzrfe5R.js} +1 -1
  12. package/dist/{CountdownToolbar-DBFoG3a6.js → CountdownToolbar-B00zhkNJ.js} +2 -2
  13. package/dist/{DesignReferenceSidebar--QtXjLrw.js → DesignReferenceSidebar-DedivZZl.js} +7 -7
  14. package/dist/{IssuesPanel-BLbNFMSX.js → IssuesPanel-C-PjdmAV.js} +7 -7
  15. package/dist/{MediaPanels-CMTAhDXB.js → MediaPanels-BpQNY8YX.js} +1 -1
  16. package/dist/{MergeTagInput-BEjzj4Iu.js → MergeTagInput-Cw1RoMly.js} +201 -149
  17. package/dist/{MergeTagModeToggle-DKN6ihI5.js → MergeTagModeToggle-DGuzSAdX.js} +35 -35
  18. package/dist/{MergeTagSuggestion-DKoLEeoj.js → MergeTagSuggestion-BXO3UIXW.js} +2 -2
  19. package/dist/{ParagraphEditor-1E9yzOfk.js → ParagraphEditor-jMKLLTa8.js} +38 -38
  20. package/dist/{RestoreVersionDialog-BMGUkcd8.js → RestoreVersionDialog-DG1jUdBM.js} +4 -4
  21. package/dist/{RichTextEditorContent-BnxbQUV9.js → RichTextEditorContent-JrNEg0kv.js} +8 -8
  22. package/dist/{SaveBlockDialog-WKASpCCT.js → SaveBlockDialog-C0KC-OKs.js} +8 -8
  23. package/dist/{SavedBlocksBrowserModal-AYEXTMtQ.js → SavedBlocksBrowserModal-zyOiRgWZ.js} +10 -10
  24. package/dist/{SavedBlocksPanels-D_CpacTl.js → SavedBlocksPanels-epMd799w.js} +1 -1
  25. package/dist/{SavedBlocksPickBar-BHMwg-1G.js → SavedBlocksPickBar-CJqqQ3jd.js} +3 -3
  26. package/dist/{TemplateScoringPanel-CSin43YM.js → TemplateScoringPanel-m2FOeaai.js} +103 -103
  27. package/dist/{TestEmailModal-BxizsRCd.js → TestEmailModal-D58kYkMV.js} +54 -54
  28. package/dist/{TestEmailPanel-vd2e5HzT.js → TestEmailPanel-BmFVBIQt.js} +1 -1
  29. package/dist/{TitleEditor-CLJ68Ty4.js → TitleEditor-C4BGPXnf.js} +13 -13
  30. package/dist/{TplModal-Q9fDgS1M.js → TplModal-BIDJw4Kj.js} +3 -3
  31. package/dist/{VersionHistoryMenu-eGYVhM4H.js → VersionHistoryMenu-dt_aZQfh.js} +7 -7
  32. package/dist/{VersionHistoryPanels-C7Ntrrfq.js → VersionHistoryPanels-B_5SBRrr.js} +1 -1
  33. package/dist/{VersionPreviewBanner-BbQXnR0M.js → VersionPreviewBanner-DttvOkwd.js} +2 -2
  34. package/dist/{blockTypeIcons-5qD4bB76.js → blockTypeIcons-CzTizYmK.js} +2 -2
  35. package/dist/bundle-stats.json +8 -8
  36. package/dist/{cdn/chunks/ca-D9S-UCfZ.js → ca-YlPDhElv.js} +5 -3
  37. package/dist/cdn/chunks/{AiChatSidebar-dyqqHAcI.js → AiChatSidebar-DeZl9Tk0.js} +54 -54
  38. package/dist/cdn/chunks/AiChatSidebar-DeZl9Tk0.js.map +1 -0
  39. package/dist/cdn/chunks/{AiFeatureMenu-BjVMwhW8.js → AiFeatureMenu-Bv8jMu9p.js} +5 -5
  40. package/dist/cdn/chunks/{AiFeatureMenu-BjVMwhW8.js.map → AiFeatureMenu-Bv8jMu9p.js.map} +1 -1
  41. package/dist/cdn/chunks/{BlockIssueBadge-BJ__oEtm.js → BlockIssueBadge-B6PpoOPv.js} +4 -4
  42. package/dist/cdn/chunks/{BlockIssueBadge-BJ__oEtm.js.map → BlockIssueBadge-B6PpoOPv.js.map} +1 -1
  43. package/dist/cdn/chunks/{BlockPreviewCanvas-B5f26eLE.js → BlockPreviewCanvas-DfEtDosD.js} +3 -3
  44. package/dist/cdn/chunks/{BlockPreviewCanvas-B5f26eLE.js.map → BlockPreviewCanvas-DfEtDosD.js.map} +1 -1
  45. package/dist/cdn/chunks/{CloudHeaderExtras-D5P5IEKA.js → CloudHeaderExtras-Hk98ub-C.js} +4 -4
  46. package/dist/cdn/chunks/{CloudHeaderExtras-D5P5IEKA.js.map → CloudHeaderExtras-Hk98ub-C.js.map} +1 -1
  47. package/dist/cdn/chunks/{CloudPanels-DkmR05nB.js → CloudPanels-Ba3GLmvF.js} +5 -5
  48. package/dist/cdn/chunks/{CloudPanels-DkmR05nB.js.map → CloudPanels-Ba3GLmvF.js.map} +1 -1
  49. package/dist/cdn/chunks/{CollaboratorBar-Yn7KSpt4.js → CollaboratorBar-D2dCQ9gg.js} +4 -4
  50. package/dist/cdn/chunks/{CollaboratorBar-Yn7KSpt4.js.map → CollaboratorBar-D2dCQ9gg.js.map} +1 -1
  51. package/dist/cdn/chunks/{ColorPicker-LcrzgMoW.js → ColorPicker-BaonTCAQ.js} +7 -7
  52. package/dist/cdn/chunks/{ColorPicker-LcrzgMoW.js.map → ColorPicker-BaonTCAQ.js.map} +1 -1
  53. package/dist/cdn/chunks/{CommentsPanel-CntwwocI.js → CommentsPanel-CV2HveQk.js} +2 -2
  54. package/dist/cdn/chunks/{CommentsPanel-CntwwocI.js.map → CommentsPanel-CV2HveQk.js.map} +1 -1
  55. package/dist/cdn/chunks/{CommentsSidebar-BLDKnKy7.js → CommentsSidebar-Dok_vaRc.js} +4 -4
  56. package/dist/cdn/chunks/{CommentsSidebar-BLDKnKy7.js.map → CommentsSidebar-Dok_vaRc.js.map} +1 -1
  57. package/dist/cdn/chunks/{CountdownBlock-B4AfqJwb.js → CountdownBlock-DGDl3ota.js} +2 -2
  58. package/dist/cdn/chunks/{CountdownBlock-B4AfqJwb.js.map → CountdownBlock-DGDl3ota.js.map} +1 -1
  59. package/dist/cdn/chunks/{CountdownToolbar-CA1dpuOI.js → CountdownToolbar-B9Rin64t.js} +3 -3
  60. package/dist/cdn/chunks/{CountdownToolbar-CA1dpuOI.js.map → CountdownToolbar-B9Rin64t.js.map} +1 -1
  61. package/dist/cdn/chunks/{DesignReferenceSidebar-D1Y9Hswe.js → DesignReferenceSidebar-eCuTFak2.js} +4 -4
  62. package/dist/cdn/chunks/{DesignReferenceSidebar-D1Y9Hswe.js.map → DesignReferenceSidebar-eCuTFak2.js.map} +1 -1
  63. package/dist/cdn/chunks/{IssuesPanel-Q62LTqvd.js → IssuesPanel-CP7FEzw7.js} +5 -5
  64. package/dist/cdn/chunks/{IssuesPanel-Q62LTqvd.js.map → IssuesPanel-CP7FEzw7.js.map} +1 -1
  65. package/dist/cdn/chunks/{MediaPanels-D21M6shx.js → MediaPanels-TYrKKHX5.js} +2 -2
  66. package/dist/cdn/chunks/{MediaPanels-D21M6shx.js.map → MediaPanels-TYrKKHX5.js.map} +1 -1
  67. package/dist/cdn/chunks/MergeTagInput-CSIThqkz.js +470 -0
  68. package/dist/cdn/chunks/MergeTagInput-CSIThqkz.js.map +1 -0
  69. package/dist/cdn/chunks/{MergeTagModeToggle-DYxkAGtA.js → MergeTagModeToggle-QGTUIWWo.js} +32 -32
  70. package/dist/cdn/chunks/{MergeTagModeToggle-DYxkAGtA.js.map → MergeTagModeToggle-QGTUIWWo.js.map} +1 -1
  71. package/dist/cdn/chunks/{MergeTagSuggestion-t8Uj00Er.js → MergeTagSuggestion-CY6WK8Eb.js} +3 -3
  72. package/dist/cdn/chunks/MergeTagSuggestion-CY6WK8Eb.js.map +1 -0
  73. package/dist/cdn/chunks/{ParagraphEditor-Bd-GQXee.js → ParagraphEditor-D1tsPv4v.js} +22 -22
  74. package/dist/cdn/chunks/{ParagraphEditor-Bd-GQXee.js.map → ParagraphEditor-D1tsPv4v.js.map} +1 -1
  75. package/dist/cdn/chunks/{RestoreVersionDialog-2X9RpM9A.js → RestoreVersionDialog-BeCxNPLS.js} +4 -4
  76. package/dist/cdn/chunks/{RestoreVersionDialog-2X9RpM9A.js.map → RestoreVersionDialog-BeCxNPLS.js.map} +1 -1
  77. package/dist/cdn/chunks/{RichTextEditorContent-D_rb0rmU.js → RichTextEditorContent-BBxzACFQ.js} +8 -8
  78. package/dist/cdn/chunks/{RichTextEditorContent-D_rb0rmU.js.map → RichTextEditorContent-BBxzACFQ.js.map} +1 -1
  79. package/dist/cdn/chunks/{SaveBlockDialog-CufdTomT.js → SaveBlockDialog-CLgh_g7H.js} +7 -7
  80. package/dist/cdn/chunks/{SaveBlockDialog-CufdTomT.js.map → SaveBlockDialog-CLgh_g7H.js.map} +1 -1
  81. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CqpaNsk7.js → SavedBlocksBrowserModal-B4TcUJJe.js} +8 -8
  82. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CqpaNsk7.js.map → SavedBlocksBrowserModal-B4TcUJJe.js.map} +1 -1
  83. package/dist/cdn/chunks/{SavedBlocksPanels-DpxYxddo.js → SavedBlocksPanels-CaBsHoRC.js} +2 -2
  84. package/dist/cdn/chunks/{SavedBlocksPanels-DpxYxddo.js.map → SavedBlocksPanels-CaBsHoRC.js.map} +1 -1
  85. package/dist/cdn/chunks/{SavedBlocksPickBar-Drpoav1B.js → SavedBlocksPickBar-iG35XCDx.js} +4 -4
  86. package/dist/cdn/chunks/{SavedBlocksPickBar-Drpoav1B.js.map → SavedBlocksPickBar-iG35XCDx.js.map} +1 -1
  87. package/dist/cdn/chunks/{TemplateScoringPanel-DBjUNULq.js → TemplateScoringPanel-DuQJBykq.js} +86 -86
  88. package/dist/cdn/chunks/TemplateScoringPanel-DuQJBykq.js.map +1 -0
  89. package/dist/cdn/chunks/{TestEmailModal-BTNlSW6f.js → TestEmailModal-D6Woss3r.js} +52 -52
  90. package/dist/cdn/chunks/TestEmailModal-D6Woss3r.js.map +1 -0
  91. package/dist/cdn/chunks/{TestEmailPanel-D0A9Zgxr.js → TestEmailPanel-CWQFB7J3.js} +2 -2
  92. package/dist/cdn/chunks/{TestEmailPanel-D0A9Zgxr.js.map → TestEmailPanel-CWQFB7J3.js.map} +1 -1
  93. package/dist/cdn/chunks/{TitleEditor-CrnuIq62.js → TitleEditor-CbY1tgSl.js} +12 -12
  94. package/dist/cdn/chunks/TitleEditor-CbY1tgSl.js.map +1 -0
  95. package/dist/cdn/chunks/{TplModal-DYXrTz42.js → TplModal-CGpp-d_r.js} +4 -4
  96. package/dist/cdn/chunks/{TplModal-DYXrTz42.js.map → TplModal-CGpp-d_r.js.map} +1 -1
  97. package/dist/cdn/chunks/{VersionHistoryMenu-bDGnE4hb.js → VersionHistoryMenu-ByVJXDbK.js} +4 -4
  98. package/dist/cdn/chunks/{VersionHistoryMenu-bDGnE4hb.js.map → VersionHistoryMenu-ByVJXDbK.js.map} +1 -1
  99. package/dist/cdn/chunks/{VersionHistoryPanels-82P0Q0HM.js → VersionHistoryPanels-CQJ5OggF.js} +2 -2
  100. package/dist/cdn/chunks/{VersionHistoryPanels-82P0Q0HM.js.map → VersionHistoryPanels-CQJ5OggF.js.map} +1 -1
  101. package/dist/cdn/chunks/{VersionPreviewBanner-BJiwKkVC.js → VersionPreviewBanner-G4lLbfr8.js} +3 -3
  102. package/dist/cdn/chunks/{VersionPreviewBanner-BJiwKkVC.js.map → VersionPreviewBanner-G4lLbfr8.js.map} +1 -1
  103. package/dist/cdn/chunks/{blockTypeIcons-CNjJSFun.js → blockTypeIcons-CQY-vxdM.js} +2 -2
  104. package/dist/cdn/chunks/{blockTypeIcons-CNjJSFun.js.map → blockTypeIcons-CQY-vxdM.js.map} +1 -1
  105. package/dist/{ca-D9S-UCfZ.js → cdn/chunks/ca-YlPDhElv.js} +7 -1
  106. package/dist/cdn/chunks/{ca-D9S-UCfZ.js.map → ca-YlPDhElv.js.map} +1 -1
  107. package/dist/cdn/chunks/cloud-BLgCKP7Z.js.map +1 -1
  108. package/dist/cdn/chunks/{createCloudRuntime-U-qCH-dq.js → createCloudRuntime-ClvtMBF1.js} +2 -2
  109. package/dist/cdn/chunks/{createCloudRuntime-U-qCH-dq.js.map → createCloudRuntime-ClvtMBF1.js.map} +1 -1
  110. package/dist/cdn/chunks/{de-BUPszLpi.js → de-CONjnzrF.js} +6 -2
  111. package/dist/cdn/chunks/{de-BUPszLpi.js.map → de-CONjnzrF.js.map} +1 -1
  112. package/dist/cdn/chunks/draggable-kbOhCgnk.js.map +1 -1
  113. package/dist/cdn/chunks/{editor-modal-MXgtarMl.js → editor-modal-B6IdQWlf.js} +3 -3
  114. package/dist/cdn/chunks/{editor-modal-MXgtarMl.js.map → editor-modal-B6IdQWlf.js.map} +1 -1
  115. package/dist/cdn/chunks/{en-BbOC5x3w.js → en-BAMooiOF.js} +6 -2
  116. package/dist/cdn/chunks/{en-BbOC5x3w.js.map → en-BAMooiOF.js.map} +1 -1
  117. package/dist/cdn/chunks/en-DjunooBz.js +2 -0
  118. package/dist/{es-0bCDcT9p.js → cdn/chunks/es-I47lHs2m.js} +7 -1
  119. package/dist/cdn/chunks/{es-0bCDcT9p.js.map → es-I47lHs2m.js.map} +1 -1
  120. package/dist/cdn/chunks/{extensions-B8_jnIkD.js → extensions-D2YIhF7u.js} +126 -101
  121. package/dist/cdn/chunks/extensions-D2YIhF7u.js.map +1 -0
  122. package/dist/cdn/chunks/{fr-Brr8mJ9e.js → fr-B8MIKjT4.js} +6 -2
  123. package/dist/cdn/chunks/{fr-Brr8mJ9e.js.map → fr-B8MIKjT4.js.map} +1 -1
  124. package/dist/cdn/chunks/htmlparser-ClUZ6waR.js +1113 -0
  125. package/dist/cdn/chunks/htmlparser-ClUZ6waR.js.map +1 -0
  126. package/dist/cdn/chunks/{icons-BUlqGSgd.js → icons-DdrAicM2.js} +33 -33
  127. package/dist/cdn/chunks/{icons-BUlqGSgd.js.map → icons-DdrAicM2.js.map} +1 -1
  128. package/dist/cdn/chunks/keys-DXYJTLZF.js +12 -0
  129. package/dist/cdn/chunks/keys-DXYJTLZF.js.map +1 -0
  130. package/dist/{nl-Co3_RL0M.js → cdn/chunks/nl-CBLxcb-0.js} +7 -1
  131. package/dist/cdn/chunks/{nl-Co3_RL0M.js.map → nl-CBLxcb-0.js.map} +1 -1
  132. package/dist/{pt-BR-BECez5b0.js → cdn/chunks/pt-BR-CMSRfX7t.js} +7 -1
  133. package/dist/cdn/chunks/{pt-BR-BECez5b0.js.map → pt-BR-CMSRfX7t.js.map} +1 -1
  134. package/dist/cdn/chunks/{src-CUvZWL6Y.js → src-CaNsA_WX.js} +2 -2
  135. package/dist/cdn/chunks/{src-CUvZWL6Y.js.map → src-CaNsA_WX.js.map} +1 -1
  136. package/dist/cdn/chunks/src-Dwgq7hf4.js.map +1 -1
  137. package/dist/cdn/chunks/{src-Ozknnj-v.js → src-fn7uy1FD.js} +3 -3
  138. package/dist/cdn/chunks/{src-Ozknnj-v.js.map → src-fn7uy1FD.js.map} +1 -1
  139. package/dist/cdn/chunks/{useCloudI18n-DSWSGj-A.js → useCloudI18n-OezCj0cx.js} +2 -2
  140. package/dist/cdn/chunks/{useCloudI18n-DSWSGj-A.js.map → useCloudI18n-OezCj0cx.js.map} +1 -1
  141. package/dist/cdn/chunks/{useEditorCore-Cs7rYVBo.js → useEditorCore-06PtcUi1.js} +482 -473
  142. package/dist/cdn/chunks/useEditorCore-06PtcUi1.js.map +1 -0
  143. package/dist/cdn/chunks/{useEditorRoot-B0zW2nT4.js → useEditorRoot-ByHPMqYT.js} +2 -2
  144. package/dist/cdn/chunks/{useEditorRoot-B0zW2nT4.js.map → useEditorRoot-ByHPMqYT.js.map} +1 -1
  145. package/dist/cdn/chunks/{useI18n-Dlo7R9RA.js → useI18n-BhE7ndNr.js} +2 -2
  146. package/dist/cdn/chunks/{useI18n-Dlo7R9RA.js.map → useI18n-BhE7ndNr.js.map} +1 -1
  147. package/dist/cdn/chunks/useMergeTag-DE2mpy1w.js +60 -0
  148. package/dist/cdn/chunks/useMergeTag-DE2mpy1w.js.map +1 -0
  149. package/dist/cdn/chunks/{usePopoverPosition-ElP3ABaV.js → usePopoverPosition-BPL891uG.js} +2 -2
  150. package/dist/cdn/chunks/{usePopoverPosition-ElP3ABaV.js.map → usePopoverPosition-BPL891uG.js.map} +1 -1
  151. package/dist/cdn/chunks/{useScrollToBlock-nTbWkgaU.js → useScrollToBlock-DwF4pVur.js} +2 -2
  152. package/dist/cdn/chunks/{useScrollToBlock-nTbWkgaU.js.map → useScrollToBlock-DwF4pVur.js.map} +1 -1
  153. package/dist/cdn/editor.css +1 -1
  154. package/dist/cdn/editor.js +894 -857
  155. package/dist/cdn/editor.js.map +1 -1
  156. package/dist/{check-DWtkBzBU.js → check-9xX6RVHz.js} +1 -1
  157. package/dist/{chevron-down-C-Fjxcqj.js → chevron-down-J5hFJ6TL.js} +1 -1
  158. package/dist/{chevron-right-SOkn2d4P.js → chevron-right-BJuo5PQ-.js} +1 -1
  159. package/dist/{chevron-up-lntU1ypp.js → chevron-up-Qfi5k52_.js} +1 -1
  160. package/dist/{circle-alert-CjzUTwy3.js → circle-alert-BiArYmkB.js} +1 -1
  161. package/dist/{clock-pB2QKPsJ.js → clock-BkYJZ7Y0.js} +1 -1
  162. package/dist/{copy-CId1E038.js → copy-BRLUNHwF.js} +1 -1
  163. package/dist/{createCloudRuntime-x5WZm3p8.js → createCloudRuntime-CNFXaTNQ.js} +1 -1
  164. package/dist/{createLucideIcon-Cwf_nTzE.js → createLucideIcon-CDDkF1Tm.js} +5 -5
  165. package/dist/{de-BUPszLpi.js → de-CONjnzrF.js} +5 -1
  166. package/dist/{editor-modal-B_LaQf0s.js → editor-modal-uAEB6xKz.js} +15 -15
  167. package/dist/{en-BbOC5x3w.js → en-BAMooiOF.js} +5 -1
  168. package/dist/en-CQWkDCpm.js +2 -0
  169. package/dist/{cdn/chunks/es-0bCDcT9p.js → es-I47lHs2m.js} +5 -3
  170. package/dist/{extensions-CHOBZRab.js → extensions-CcGj7OfS.js} +129 -104
  171. package/dist/{eye-BuGtFUoJ.js → eye-DwhBOaV8.js} +1 -1
  172. package/dist/{fr-Brr8mJ9e.js → fr-B8MIKjT4.js} +5 -1
  173. package/dist/{image-up-gH4JEpU5.js → image-up-CiyQNZBt.js} +1 -1
  174. package/dist/index.d.ts +15 -0
  175. package/dist/{info-BQ60P82u.js → info-D6A1qEiF.js} +1 -1
  176. package/dist/keys-DD1rl72F.js +10 -0
  177. package/dist/{link-3R8it3J7.js → link-tKGmYWsB.js} +1 -1
  178. package/dist/{list-Ccdgj46T.js → list-DjZQRpeI.js} +1 -1
  179. package/dist/{loader-circle-B_tAD4k6.js → loader-circle-D9ZL3Sv0.js} +1 -1
  180. package/dist/{message-circle-P-KSc6V0.js → message-circle-KTHxCcpB.js} +1 -1
  181. package/dist/{cdn/chunks/nl-Co3_RL0M.js → nl-CBLxcb-0.js} +5 -3
  182. package/dist/{pencil-9ZiwqS4r.js → pencil-Bq-nbQ7F.js} +1 -1
  183. package/dist/{plus-BwJEzCaO.js → plus-CRMnR4IG.js} +1 -1
  184. package/dist/{cdn/chunks/pt-BR-BECez5b0.js → pt-BR-CMSRfX7t.js} +5 -3
  185. package/dist/{refresh-cw-DEgfb2FK.js → refresh-cw-D7bYS5tm.js} +1 -1
  186. package/dist/{search-DqQ8Li5E.js → search-DUo0YwPz.js} +1 -1
  187. package/dist/{send-CE6uvqop.js → send-DaVMQphu.js} +1 -1
  188. package/dist/{shield-check-DhD1Z3rd.js → shield-check-DxaaurL9.js} +1 -1
  189. package/dist/{sparkles-R0ZQHa6F.js → sparkles-D6T6k30e.js} +1 -1
  190. package/dist/style.css +1 -1
  191. package/dist/templatical-editor.js +1156 -1119
  192. package/dist/{text-align-start-DSux2UNn.js → text-align-start-vreFpmCX.js} +1 -1
  193. package/dist/{trash-Cf_SqsER.js → trash-DBv8MGY6.js} +1 -1
  194. package/dist/{triangle-alert-C6tGa6jw.js → triangle-alert-CmNS2LLv.js} +1 -1
  195. package/dist/{upload-DusKjpVr.js → upload-DDB9Fs0P.js} +1 -1
  196. package/dist/{useCloudI18n-BLyh_e2T.js → useCloudI18n-C1wuXik6.js} +1 -1
  197. package/dist/{useEditorCore-DhlKOYwe.js → useEditorCore-jfwgLThK.js} +1077 -1068
  198. package/dist/{useEditorRoot-ds57-l6F.js → useEditorRoot-eVv4doqZ.js} +1 -1
  199. package/dist/{useI18n-BbdxxpOE.js → useI18n-VOtdfENx.js} +1 -1
  200. package/dist/useMergeTag-CQM9pFca.js +58 -0
  201. package/dist/{usePopoverPosition-CprM5p-c.js → usePopoverPosition-gZjRywai.js} +1 -1
  202. package/dist/{useScrollToBlock-BTFw0b9O.js → useScrollToBlock-C0Ehnyl4.js} +2 -2
  203. package/dist/{x-D_-42Ukq.js → x-B7sgO_z8.js} +1 -1
  204. package/package.json +10 -10
  205. package/dist/cdn/chunks/AiChatSidebar-dyqqHAcI.js.map +0 -1
  206. package/dist/cdn/chunks/MergeTagInput-l7paaAml.js +0 -419
  207. package/dist/cdn/chunks/MergeTagInput-l7paaAml.js.map +0 -1
  208. package/dist/cdn/chunks/MergeTagSuggestion-t8Uj00Er.js.map +0 -1
  209. package/dist/cdn/chunks/TemplateScoringPanel-DBjUNULq.js.map +0 -1
  210. package/dist/cdn/chunks/TestEmailModal-BTNlSW6f.js.map +0 -1
  211. package/dist/cdn/chunks/TitleEditor-CrnuIq62.js.map +0 -1
  212. package/dist/cdn/chunks/en-C9U7N77n.js +0 -2
  213. package/dist/cdn/chunks/extensions-B8_jnIkD.js.map +0 -1
  214. package/dist/cdn/chunks/htmlparser-DTML8Gvz.js +0 -1007
  215. package/dist/cdn/chunks/htmlparser-DTML8Gvz.js.map +0 -1
  216. package/dist/cdn/chunks/keys-DBFhDFng.js +0 -12
  217. package/dist/cdn/chunks/keys-DBFhDFng.js.map +0 -1
  218. package/dist/cdn/chunks/useEditorCore-Cs7rYVBo.js.map +0 -1
  219. package/dist/cdn/chunks/useMergeTag-BYAifvh8.js +0 -46
  220. package/dist/cdn/chunks/useMergeTag-BYAifvh8.js.map +0 -1
  221. package/dist/en-DcmpWV53.js +0 -2
  222. package/dist/keys-DQA2i1k1.js +0 -10
  223. package/dist/useMergeTag-DlvOBW_B.js +0 -44
@@ -1,17 +1,18 @@
1
1
  import { A as e, E as t, J as n, K as r, M as i, S as a, W as o, Z as s, at as c, c as l, d as u, g as d, h as f, jt as p, kt as m, l as h, r as g, s as _, u as v, v as y } from "./vue.runtime.esm-bundler-DShF3P6k.js";
2
- import { c as b, s as x } from "./runtime-dom.esm-bundler-PnoZU512.js";
3
- import { F as S, M as C, O as w, j as T } from "./dist-tGkjkX-v.js";
4
- import { w as E } from "./useEditorCore-DhlKOYwe.js";
5
- import { G as D } from "./keys-DQA2i1k1.js";
6
- import { t as O } from "./useI18n-BbdxxpOE.js";
7
- import { n as k } from "./usePopoverPosition-CprM5p-c.js";
8
- import { t as A } from "./createLucideIcon-Cwf_nTzE.js";
9
- import { t as j } from "./x-D_-42Ukq.js";
2
+ import { c as b } from "./runtime-dom.esm-bundler-PnoZU512.js";
3
+ import { F as x, M as S, O as C, j as w } from "./dist-tGkjkX-v.js";
4
+ import { w as T } from "./useEditorCore-jfwgLThK.js";
5
+ import { q as E } from "./keys-DD1rl72F.js";
6
+ import { t as D } from "./useI18n-VOtdfENx.js";
7
+ import { n as O } from "./usePopoverPosition-gZjRywai.js";
8
+ import { t as k } from "./createLucideIcon-CDDkF1Tm.js";
9
+ import { t as A } from "./pencil-Bq-nbQ7F.js";
10
+ import { t as j } from "./x-B7sgO_z8.js";
10
11
  import { t as M } from "./_plugin-vue_export-helper-B3ysoDQm.js";
11
- import { t as N } from "./useMergeTag-DlvOBW_B.js";
12
+ import { t as N } from "./useMergeTag-CQM9pFca.js";
12
13
  import { p as P } from "./styleConstants-C_YAPdQS.js";
13
- import { n as F, r as I } from "./MergeTagSuggestion-DKoLEeoj.js";
14
- var L = A({
14
+ import { n as F, r as I } from "./MergeTagSuggestion-BXO3UIXW.js";
15
+ var L = k({
15
16
  name: "braces",
16
17
  size: 24,
17
18
  node: [["path", {
@@ -22,7 +23,7 @@ var L = A({
22
23
  key: "e1hn23"
23
24
  }]],
24
25
  aliases: ["curly-braces"]
25
- }), R = A({
26
+ }), R = k({
26
27
  name: "scan-line",
27
28
  size: 24,
28
29
  node: [
@@ -107,78 +108,78 @@ var U = /* @__PURE__ */ new Set([
107
108
  "End"
108
109
  ]);
109
110
  function W(e) {
110
- let { elementRef: i, modelValue: s, emit: c, mergeTags: l, syntax: u, enabled: d, onInsert: f } = e, p = C(u), m = T(u), h = d && p !== null && l.length > 0, g = a(D, null), _ = (r(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", v = k(), y = F(_, v), b = !1;
111
+ let { elementRef: i, modelValue: s, emit: c, mergeTags: l, syntax: u, enabled: d, onInsert: f } = e, p = S(u), m = w(u), h = _(() => d && p !== null && l.value.length > 0), g = a(E, null), v = (r(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", y = O(), b = F(v, y), x = !1;
111
112
  o() && n(() => {
112
- b = !0, y.close();
113
+ x = !0, b.close();
113
114
  });
114
- function x(e) {
115
+ function C(e) {
115
116
  let t = e.value ?? "";
116
117
  return z(t, e.selectionStart ?? t.length, p, m);
117
118
  }
118
- function S(e, n, r) {
119
+ function T(e, n, r) {
119
120
  let a = e.value ?? s(), o = a.slice(n.caret), l = m && o.startsWith(m) ? m.length : 0, u = a.slice(0, n.triggerStart), d = a.slice(n.caret + l), p = u + r.value + d, h = u.length + r.value.length;
120
- f?.(), c(p), y.close(), t(() => {
121
- if (b) return;
121
+ f?.(), c(p), b.close(), t(() => {
122
+ if (x) return;
122
123
  let e = i.value;
123
124
  e?.focus(), e?.setSelectionRange(h, h);
124
125
  });
125
126
  }
126
- function w() {
127
- if (!h || b) return;
127
+ function D() {
128
+ if (!h.value || x) return;
128
129
  let e = i.value;
129
130
  if (!e) {
130
- y.close();
131
+ b.close();
131
132
  return;
132
133
  }
133
- let t = x(e);
134
+ let t = C(e);
134
135
  if (!t) {
135
- y.close();
136
+ b.close();
136
137
  return;
137
138
  }
138
- let n = I(l, t.query), r = () => H(e, t.triggerStart), a = (n) => S(e, t, n);
139
- y.isOpen() ? y.update({
139
+ let n = I(l.value, t.query), r = () => H(e, t.triggerStart), a = (n) => T(e, t, n);
140
+ b.isOpen() ? b.update({
140
141
  items: n,
141
142
  getRect: r,
142
143
  onCommand: a
143
- }) : y.open({
144
+ }) : b.open({
144
145
  items: n,
145
146
  getRect: r,
146
147
  anchorEl: e,
147
148
  onCommand: a
148
149
  });
149
150
  }
150
- function E(e) {
151
- return y.isOpen() ? e.key === "Escape" ? (y.close(), !0) : U.has(e.key) ? (y.close(), !1) : y.handleKeyDown(e) : !1;
151
+ function k(e) {
152
+ return b.isOpen() ? e.key === "Escape" ? (b.close(), !0) : U.has(e.key) ? (b.close(), !1) : b.handleKeyDown(e) : !1;
152
153
  }
153
154
  return {
154
155
  available: h,
155
- refresh: w,
156
- handleKeydown: E,
157
- close: () => y.close(),
158
- isOpen: () => y.isOpen()
156
+ refresh: D,
157
+ handleKeydown: k,
158
+ close: () => b.close(),
159
+ isOpen: () => b.isOpen()
159
160
  };
160
161
  }
161
162
  //#endregion
162
163
  //#region src/composables/useMergeTagField.ts
163
164
  function G(e) {
164
- let { modelValue: r, emit: i, elementRef: a } = e, { mergeTags: c, canRequestMergeTag: l, isRequesting: u, isMergeTagValue: d, getMergeTagLabel: f, requestMergeTag: p, syntax: m, autocomplete: h } = N(), { canInsertLogicTag: g, isRequesting: v, requestLogicTag: y } = E(), b = s(!1), x = !1, C = !1;
165
+ let { modelValue: r, emit: i, elementRef: a } = e, { mergeTags: c, canRequestMergeTag: l, isRequesting: u, isMergeTagValue: d, getMergeTagDisplayLabel: f, findMergeTag: p, requestMergeTag: m, syntax: h, autocomplete: g } = N(), { canInsertLogicTag: v, isRequesting: y, requestLogicTag: b } = T(), S = s(!1), w = !1, E = !1;
165
166
  o() && n(() => {
166
- C = !0;
167
+ E = !0;
167
168
  });
168
- let T = W({
169
+ let D = W({
169
170
  elementRef: a,
170
171
  modelValue: r,
171
172
  emit: i,
172
173
  mergeTags: c,
173
- syntax: m,
174
- enabled: h,
174
+ syntax: h,
175
+ enabled: g,
175
176
  onInsert: () => {
176
- b.value = !0;
177
+ S.value = !0;
177
178
  }
178
- }), D = _(() => {
179
+ }), O = _(() => {
179
180
  let e = r();
180
181
  if (!e) return [];
181
- let t = [], n = `(${m.value.source}|${m.logic.source})`, i = new RegExp(n, "g"), a = 0, o;
182
+ let t = [], n = `(${h.value.source}|${h.logic.source})`, i = new RegExp(n, "g"), a = 0, o;
182
183
  for (; (o = i.exec(e)) !== null;) {
183
184
  o.index > a && t.push({
184
185
  type: "text",
@@ -189,10 +190,10 @@ function G(e) {
189
190
  type: "mergeTag",
190
191
  value: n,
191
192
  label: f(n)
192
- }) : S(n, m) ? t.push({
193
+ }) : x(n, h) ? t.push({
193
194
  type: "logicMergeTag",
194
195
  value: n,
195
- keyword: w(n, m)
196
+ keyword: C(n, h)
196
197
  }) : t.push({
197
198
  type: "text",
198
199
  value: n
@@ -202,151 +203,200 @@ function G(e) {
202
203
  type: "text",
203
204
  value: e.slice(a)
204
205
  }), t;
205
- }), O = _(() => D.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
206
- function k() {
207
- b.value = !0, t(() => {
206
+ }), k = _(() => O.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
207
+ function A() {
208
+ S.value = !0, t(() => {
208
209
  a.value?.focus();
209
210
  let e = r()?.length || 0;
210
211
  a.value?.setSelectionRange(e, e);
211
212
  });
212
213
  }
213
- function A() {
214
- x || (b.value = !1);
215
- }
216
- function j(e) {
217
- i(e.target.value), T.refresh();
214
+ function j() {
215
+ w || (S.value = !1);
218
216
  }
219
217
  function M(e) {
220
- return T.handleKeydown(e) ? (e.preventDefault(), !0) : (e.key === "Escape" && A(), !1);
218
+ i(e.target.value), D.refresh();
221
219
  }
222
- function P() {
223
- T.refresh();
220
+ function P(e) {
221
+ return D.handleKeydown(e) ? (e.preventDefault(), !0) : (e.key === "Escape" && j(), !1);
224
222
  }
225
223
  function F() {
226
- T.close(), A();
224
+ D.refresh();
227
225
  }
228
226
  function I() {
227
+ D.close(), j();
228
+ }
229
+ function L() {
229
230
  i("");
230
231
  }
231
- async function L() {
232
- let e = b.value && a.value ? a.value.selectionStart ?? r().length : r().length;
233
- x = !0;
232
+ async function R() {
233
+ let e = S.value && a.value ? a.value.selectionStart ?? r().length : r().length;
234
+ w = !0;
234
235
  let n;
235
236
  try {
236
- n = await p();
237
+ n = await m();
237
238
  } finally {
238
- x = !1;
239
+ w = !1;
239
240
  }
240
- if (!C && n) {
241
+ if (!E && n) {
241
242
  let o = r().slice(0, e), s = r().slice(e), c = o + n.value + s;
242
- i(c), b.value = !0, t(() => {
243
- if (C) return;
243
+ i(c), S.value = !0, t(() => {
244
+ if (E) return;
244
245
  let t = e + n.value.length;
245
246
  a.value?.focus(), a.value?.setSelectionRange(t, t);
246
247
  });
247
248
  }
248
249
  }
249
- async function R() {
250
+ async function z(e) {
251
+ let t = O.value, n = t[e];
252
+ if (n?.type !== "mergeTag") return;
253
+ w = !0;
254
+ let r;
255
+ try {
256
+ r = await m({
257
+ reason: "edit",
258
+ current: p(n.value)
259
+ });
260
+ } finally {
261
+ w = !1;
262
+ }
263
+ !E && r && i(t.map((t, n) => n === e ? r.value : t.value).join(""));
264
+ }
265
+ async function B() {
250
266
  let e = a.value, n = e?.selectionStart ?? r().length, o = e?.selectionEnd ?? n;
251
- x = !0;
267
+ w = !0;
252
268
  let s;
253
269
  try {
254
- s = await y();
270
+ s = await b();
255
271
  } finally {
256
- x = !1;
272
+ w = !1;
257
273
  }
258
- if (C || !s) return;
274
+ if (E || !s) return;
259
275
  let c = r(), l, u;
260
- "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), b.value = !0, t(() => {
261
- C || (a.value?.focus(), a.value?.setSelectionRange(u, u));
276
+ "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), S.value = !0, t(() => {
277
+ E || (a.value?.focus(), a.value?.setSelectionRange(u, u));
262
278
  });
263
279
  }
264
280
  return {
265
- segments: D,
266
- hasMergeTags: O,
281
+ segments: O,
282
+ hasMergeTags: k,
267
283
  canRequestMergeTag: l,
268
284
  isRequestingMergeTag: u,
269
- canInsertLogicTag: g,
270
- isRequestingLogicTag: v,
271
- isEditing: b,
272
- startEditing: k,
273
- stopEditing: A,
274
- handleInput: j,
275
- handleKeydown: M,
276
- handleClick: P,
277
- handleBlur: F,
278
- clearValue: I,
279
- insertMergeTag: L,
280
- insertLogicTag: R,
281
- autocompleteAvailable: T.available
285
+ canInsertLogicTag: v,
286
+ isRequestingLogicTag: y,
287
+ isEditing: S,
288
+ startEditing: A,
289
+ stopEditing: j,
290
+ handleInput: M,
291
+ handleKeydown: P,
292
+ handleClick: F,
293
+ handleBlur: I,
294
+ clearValue: L,
295
+ insertMergeTag: R,
296
+ replaceMergeTagAt: z,
297
+ insertLogicTag: B,
298
+ autocompleteAvailable: D.available
282
299
  };
283
300
  }
284
301
  //#endregion
285
302
  //#region src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
286
- var K = ["aria-label", "onKeydown"], q = ["data-tooltip"], J = ["data-tooltip"], Y = {
287
- key: 2,
303
+ var K = ["aria-label"], q = [
304
+ "data-tooltip",
305
+ "aria-label",
306
+ "onClick"
307
+ ], J = ["data-tooltip"], Y = ["data-tooltip"], X = {
308
+ key: 3,
288
309
  class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
289
- }, X = ["aria-label", "title"], Z = /* @__PURE__ */ y({
310
+ }, ee = ["aria-label", "title"], te = ["aria-label", "title"], Z = /* @__PURE__ */ y({
290
311
  __name: "MergeTagSegments",
291
312
  props: {
292
313
  segments: {},
293
314
  displayClass: {},
294
315
  pulse: { type: Boolean }
295
316
  },
296
- emits: ["edit", "clear"],
317
+ emits: [
318
+ "edit",
319
+ "clear",
320
+ "repick"
321
+ ],
297
322
  setup(t, { emit: n }) {
298
- let r = n, { t: a } = O();
299
- function o() {
323
+ let r = n, { t: a, format: o } = D(), { canRepickMergeTag: s, showRawValue: f } = N();
324
+ function h() {
300
325
  r("edit");
301
326
  }
302
- return (n, s) => (e(), u("div", {
303
- role: "button",
304
- tabindex: "0",
305
- "aria-label": c(a).mergeTag.clickToEdit,
327
+ return (n, _) => (e(), u("div", {
328
+ role: "group",
329
+ "aria-label": c(a).mergeTag.fieldGroup,
306
330
  class: m([t.displayClass, { "tpl-pulse-fill": t.pulse }]),
307
- onClick: o,
308
- onKeydown: [x(o, ["enter"]), x(b(o, ["prevent"]), ["space"])]
309
- }, [(e(!0), u(g, null, i(t.segments, (t, n) => (e(), u(g, { key: `${t.type}-${n}-${t.value}` }, [t.type === "mergeTag" ? (e(), u("span", {
310
- key: 0,
311
- class: "tpl-tooltip 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",
312
- "data-tooltip": t.value,
313
- style: {
314
- "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
315
- color: "var(--tpl-primary)"
316
- }
317
- }, p(t.label), 9, q)) : t.type === "logicMergeTag" ? (e(), u("span", {
318
- key: 1,
319
- 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",
320
- "data-tooltip": t.value,
321
- style: {
322
- "background-color": "transparent",
323
- border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
324
- color: "var(--tpl-primary)"
325
- }
326
- }, p(t.keyword), 9, J)) : (e(), u("span", Y, p(t.value), 1))], 64))), 128)), l("button", {
327
- type: "button",
328
- 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-danger)] tpl:hover:opacity-100",
329
- "aria-label": c(a).mergeTag.remove,
330
- title: c(a).mergeTag.remove,
331
- onClick: s[0] ||= b((e) => r("clear"), ["stop"])
332
- }, [d(c(j), {
333
- size: 12,
334
- "stroke-width": 2.5
335
- })], 8, X)], 42, K));
331
+ onClick: h
332
+ }, [
333
+ (e(!0), u(g, null, i(t.segments, (t, n) => (e(), u(g, { key: `${t.type}-${n}-${t.value}` }, [t.type === "mergeTag" && c(s)(t.value) ? (e(), u("button", {
334
+ key: 0,
335
+ type: "button",
336
+ class: m(["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", c(f) ? "tpl-tooltip" : ""]),
337
+ "data-tooltip": c(f) ? t.value : void 0,
338
+ "aria-label": c(o)(c(a).mergeTag.changeTag, { label: t.label }),
339
+ "data-testid": "merge-tag-field-chip",
340
+ style: {
341
+ "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
342
+ color: "var(--tpl-primary)"
343
+ },
344
+ onClick: b((e) => r("repick", n), ["stop"])
345
+ }, p(t.label), 11, q)) : t.type === "mergeTag" ? (e(), u("span", {
346
+ key: 1,
347
+ class: m(["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", c(f) ? "tpl-tooltip" : ""]),
348
+ "data-tooltip": c(f) ? t.value : void 0,
349
+ style: {
350
+ "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
351
+ color: "var(--tpl-primary)"
352
+ }
353
+ }, p(t.label), 11, J)) : t.type === "logicMergeTag" ? (e(), u("span", {
354
+ key: 2,
355
+ 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",
356
+ "data-tooltip": t.value,
357
+ style: {
358
+ "background-color": "transparent",
359
+ border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
360
+ color: "var(--tpl-primary)"
361
+ }
362
+ }, p(t.keyword), 9, Y)) : (e(), u("span", X, p(t.value), 1))], 64))), 128)),
363
+ l("button", {
364
+ type: "button",
365
+ 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",
366
+ "aria-label": c(a).mergeTag.editAsText,
367
+ title: c(a).mergeTag.editAsText,
368
+ "data-testid": "merge-tag-field-edit",
369
+ onClick: b(h, ["stop"])
370
+ }, [d(c(A), {
371
+ size: 12,
372
+ "stroke-width": 2
373
+ })], 8, ee),
374
+ l("button", {
375
+ type: "button",
376
+ 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",
377
+ "aria-label": c(a).mergeTag.remove,
378
+ title: c(a).mergeTag.remove,
379
+ "data-testid": "merge-tag-field-clear",
380
+ onClick: _[0] ||= b((e) => r("clear"), ["stop"])
381
+ }, [d(c(j), {
382
+ size: 12,
383
+ "stroke-width": 2.5
384
+ })], 8, te)
385
+ ], 10, K));
336
386
  }
337
- }), ee = [
387
+ }), ne = [
338
388
  "aria-label",
339
389
  "title",
340
390
  "disabled"
341
- ], te = "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)]", Q = /* @__PURE__ */ y({
391
+ ], re = "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)]", Q = /* @__PURE__ */ y({
342
392
  __name: "MergeTagInsertButton",
343
393
  props: { disabled: { type: Boolean } },
344
394
  emits: ["insert"],
345
395
  setup(t) {
346
- let { t: n } = O();
396
+ let { t: n } = D();
347
397
  return (r, i) => (e(), u("button", {
348
398
  type: "button",
349
- class: m([te, "tpl:mt-1.5"]),
399
+ class: m([re, "tpl:mt-1.5"]),
350
400
  "aria-label": c(n).mergeTag.insert,
351
401
  title: c(n).mergeTag.insert,
352
402
  disabled: t.disabled,
@@ -355,21 +405,21 @@ var K = ["aria-label", "onKeydown"], q = ["data-tooltip"], J = ["data-tooltip"],
355
405
  }, [d(c(R), {
356
406
  size: 12,
357
407
  "stroke-width": 2
358
- }), f(" " + p(c(n).mergeTag.insertShort), 1)], 42, ee));
408
+ }), f(" " + p(c(n).mergeTag.insertShort), 1)], 42, ne));
359
409
  }
360
- }), ne = [
410
+ }), ie = [
361
411
  "aria-label",
362
412
  "title",
363
413
  "disabled"
364
- ], re = "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)]", $ = /* @__PURE__ */ y({
414
+ ], ae = "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)]", $ = /* @__PURE__ */ y({
365
415
  __name: "LogicTagInsertButton",
366
416
  props: { disabled: { type: Boolean } },
367
417
  emits: ["insert"],
368
418
  setup(t) {
369
- let { t: n } = O();
419
+ let { t: n } = D();
370
420
  return (r, i) => (e(), u("button", {
371
421
  type: "button",
372
- class: m([re, "tpl:mt-1.5"]),
422
+ class: m([ae, "tpl:mt-1.5"]),
373
423
  "aria-label": c(n).logicTag.insert,
374
424
  title: c(n).logicTag.insert,
375
425
  disabled: t.disabled,
@@ -379,19 +429,19 @@ var K = ["aria-label", "onKeydown"], q = ["data-tooltip"], J = ["data-tooltip"],
379
429
  }, [d(c(L), {
380
430
  size: 12,
381
431
  "stroke-width": 2
382
- }), f(" " + p(c(n).logicTag.insertShort), 1)], 42, ne));
432
+ }), f(" " + p(c(n).logicTag.insertShort), 1)], 42, ie));
383
433
  }
384
- }), ie = { key: 0 }, ae = {
434
+ }), oe = { key: 0 }, se = {
385
435
  key: 0,
386
436
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
387
- }, oe = { key: 1 }, se = [
437
+ }, ce = { key: 1 }, le = [
388
438
  "type",
389
439
  "value",
390
440
  "placeholder"
391
- ], ce = {
441
+ ], ue = {
392
442
  key: 0,
393
443
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
394
- }, le = "tpl:flex tpl:w-full tpl:min-h-10 tpl:cursor-pointer tpl:items-center tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-[var(--tpl-shadow-sm)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3.5 tpl:py-1.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", ue = /*#__PURE__*/ M(/* @__PURE__ */ y({
444
+ }, de = "tpl:flex tpl:w-full tpl:min-h-10 tpl:cursor-pointer tpl:items-center tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-[var(--tpl-shadow-sm)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3.5 tpl:py-1.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", fe = /*#__PURE__*/ M(/* @__PURE__ */ y({
395
445
  __name: "MergeTagInput",
396
446
  props: {
397
447
  modelValue: {},
@@ -404,26 +454,28 @@ var K = ["aria-label", "onKeydown"], q = ["data-tooltip"], J = ["data-tooltip"],
404
454
  },
405
455
  emits: ["update:modelValue", "keydown"],
406
456
  setup(t, { emit: n }) {
407
- let r = t, i = n, a = s(null), { segments: o, hasMergeTags: f, canRequestMergeTag: p, isRequestingMergeTag: g, canInsertLogicTag: _, isRequestingLogicTag: y, isEditing: b, startEditing: x, handleInput: S, handleKeydown: C, handleClick: w, handleBlur: T, clearValue: E, insertMergeTag: D, insertLogicTag: O } = G({
457
+ let r = t, i = n, a = s(null), { segments: o, hasMergeTags: f, canRequestMergeTag: p, isRequestingMergeTag: g, canInsertLogicTag: _, isRequestingLogicTag: y, isEditing: b, startEditing: x, handleInput: S, handleKeydown: C, handleClick: w, handleBlur: T, clearValue: E, insertMergeTag: D, insertLogicTag: O, replaceMergeTagAt: k } = G({
408
458
  modelValue: () => r.modelValue,
409
459
  emit: (e) => i("update:modelValue", e),
410
460
  elementRef: a
411
461
  });
412
- function k(e) {
462
+ function A(e) {
413
463
  C(e) || i("keydown", e);
414
464
  }
415
- return (n, r) => c(f) && !c(b) ? (e(), u("div", ie, [d(Z, {
465
+ return (n, r) => c(f) && !c(b) ? (e(), u("div", oe, [d(Z, {
416
466
  segments: c(o),
417
- "display-class": le,
467
+ "display-class": de,
418
468
  pulse: t.pulse,
419
469
  onEdit: c(x),
420
- onClear: c(E)
470
+ onClear: c(E),
471
+ onRepick: c(k)
421
472
  }, null, 8, [
422
473
  "segments",
423
474
  "pulse",
424
475
  "onEdit",
425
- "onClear"
426
- ]), c(p) || c(_) ? (e(), u("div", ae, [c(p) ? (e(), h(Q, {
476
+ "onClear",
477
+ "onRepick"
478
+ ]), c(p) || c(_) ? (e(), u("div", se, [c(p) ? (e(), h(Q, {
427
479
  key: 0,
428
480
  disabled: c(g),
429
481
  onInsert: c(D)
@@ -431,7 +483,7 @@ var K = ["aria-label", "onKeydown"], q = ["data-tooltip"], J = ["data-tooltip"],
431
483
  key: 1,
432
484
  disabled: c(y),
433
485
  onInsert: c(O)
434
- }, null, 8, ["disabled", "onInsert"])) : v("", !0)])) : v("", !0)])) : (e(), u("div", oe, [l("input", {
486
+ }, null, 8, ["disabled", "onInsert"])) : v("", !0)])) : v("", !0)])) : (e(), u("div", ce, [l("input", {
435
487
  ref_key: "inputRef",
436
488
  ref: a,
437
489
  type: t.type,
@@ -439,10 +491,10 @@ var K = ["aria-label", "onKeydown"], q = ["data-tooltip"], J = ["data-tooltip"],
439
491
  value: t.modelValue,
440
492
  placeholder: t.placeholder,
441
493
  onInput: r[0] ||= (...e) => c(S) && c(S)(...e),
442
- onKeydown: k,
494
+ onKeydown: A,
443
495
  onClick: r[1] ||= (...e) => c(w) && c(w)(...e),
444
496
  onBlur: r[2] ||= (...e) => c(T) && c(T)(...e)
445
- }, null, 42, se), c(p) || c(_) ? (e(), u("div", ce, [c(p) ? (e(), h(Q, {
497
+ }, null, 42, le), c(p) || c(_) ? (e(), u("div", ue, [c(p) ? (e(), h(Q, {
446
498
  key: 0,
447
499
  disabled: c(g),
448
500
  onInsert: c(D)
@@ -452,6 +504,6 @@ var K = ["aria-label", "onKeydown"], q = ["data-tooltip"], J = ["data-tooltip"],
452
504
  onInsert: c(O)
453
505
  }, null, 8, ["disabled", "onInsert"])) : v("", !0)])) : v("", !0)]));
454
506
  }
455
- }), [["__scopeId", "data-v-31b31866"]]);
507
+ }), [["__scopeId", "data-v-fca026e4"]]);
456
508
  //#endregion
457
- export { G as a, Z as i, $ as n, R as o, Q as r, L as s, ue as t };
509
+ export { G as a, Z as i, $ as n, R as o, Q as r, L as s, fe as t };