@templatical/editor 0.39.0 → 0.39.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 (249) hide show
  1. package/README.md +2 -4
  2. package/dist/{AiChatSidebar-jVlXXND3.js → AiChatSidebar-pOxCZWz9.js} +14 -14
  3. package/dist/{AiFeatureMenu-C1HCntyQ.js → AiFeatureMenu-Bljk6Qjv.js} +7 -7
  4. package/dist/{BlockIssueBadge-JhNgcUmZ.js → BlockIssueBadge-D5oGxOQP.js} +5 -5
  5. package/dist/{BlockPreviewCanvas-C_rA5LJN.js → BlockPreviewCanvas-DXGjUECG.js} +27 -27
  6. package/dist/{CloudHeaderExtras-DvYyNsPB.js → CloudHeaderExtras-DaocwNmy.js} +5 -5
  7. package/dist/{CloudPanels-CDPhPVdd.js → CloudPanels-CyZAnSJY.js} +7 -7
  8. package/dist/{CollaboratorBar-Co9UPoB0.js → CollaboratorBar-C7Zca3g1.js} +4 -4
  9. package/dist/{CommentsPanel-CRcVN9Ri.js → CommentsPanel-CNOb7YCm.js} +2 -2
  10. package/dist/{CommentsSidebar-gDU977br.js → CommentsSidebar-VmwjU9va.js} +14 -14
  11. package/dist/{CountdownBlock-CEzrfe5R.js → CountdownBlock-DSvbf3qU.js} +3 -3
  12. package/dist/{CountdownToolbar-B00zhkNJ.js → CountdownToolbar-C2kfS6Oy.js} +31 -30
  13. package/dist/{DesignReferenceSidebar-DedivZZl.js → DesignReferenceSidebar-QC4gEUWp.js} +11 -11
  14. package/dist/{IssuesPanel-C-PjdmAV.js → IssuesPanel-DL2Xr14_.js} +8 -8
  15. package/dist/{LoadingTrack-BlTL4zFv.js → LoadingTrack-C2jKCU2d.js} +1 -1
  16. package/dist/LogicTagInsertButton-D8IwH-9Z.js +1071 -0
  17. package/dist/{MediaPanels-BpQNY8YX.js → MediaPanels-Cc4UkfG1.js} +2 -2
  18. package/dist/MergeTagInput-QI-5KG2R.js +81 -0
  19. package/dist/{MergeTagModeToggle-DGuzSAdX.js → MergeTagModeToggle-D793Bj_E.js} +14 -55
  20. package/dist/{ParagraphEditor-jMKLLTa8.js → ParagraphEditor-DkkPSexG.js} +65 -66
  21. package/dist/{RestoreVersionDialog-DG1jUdBM.js → RestoreVersionDialog-BgueZnZr.js} +5 -5
  22. package/dist/{RichTextEditorContent-JrNEg0kv.js → RichTextEditorContent-BC5UTVnb.js} +11 -11
  23. package/dist/{SaveBlockDialog-C0KC-OKs.js → SaveBlockDialog-BuTuVlLr.js} +12 -11
  24. package/dist/{SavedBlocksBrowserModal-zyOiRgWZ.js → SavedBlocksBrowserModal-Srhix8BB.js} +17 -16
  25. package/dist/{SavedBlocksPanels-epMd799w.js → SavedBlocksPanels-B2iScCS-.js} +2 -2
  26. package/dist/{SavedBlocksPickBar-CJqqQ3jd.js → SavedBlocksPickBar-cI7bDQQi.js} +4 -4
  27. package/dist/{TemplateScoringPanel-m2FOeaai.js → TemplateScoringPanel-C2Rdlyn6.js} +16 -16
  28. package/dist/TemplateSettings-C_5leDdF.js +245 -0
  29. package/dist/{TestEmailModal-D58kYkMV.js → TestEmailModal-DJ5q_u4N.js} +10 -10
  30. package/dist/{TestEmailPanel-BmFVBIQt.js → TestEmailPanel-CP24UGst.js} +2 -2
  31. package/dist/{TitleEditor-C4BGPXnf.js → TitleEditor-QBBOXtxx.js} +15 -15
  32. package/dist/ToggleSwitch-JvQ_CmI1.js +102 -0
  33. package/dist/Toolbar-COD2TW20.js +2426 -0
  34. package/dist/{TplModal-BIDJw4Kj.js → TplModal-C8xGjC1l.js} +5 -5
  35. package/dist/{VersionHistoryMenu-dt_aZQfh.js → VersionHistoryMenu-BVQityes.js} +10 -10
  36. package/dist/{VersionHistoryPanels-B_5SBRrr.js → VersionHistoryPanels-BrK6na4A.js} +2 -2
  37. package/dist/{VersionPreviewBanner-DttvOkwd.js → VersionPreviewBanner-BaMSgA1O.js} +3 -3
  38. package/dist/{blockTypeIcons-CzTizYmK.js → blockTypeIcons-CdXugKyV.js} +16 -37
  39. package/dist/bundle-stats.json +8 -8
  40. package/dist/cdn/chunks/{AiChatSidebar-DeZl9Tk0.js → AiChatSidebar-CjSEoK4x.js} +8 -8
  41. package/dist/cdn/chunks/{AiChatSidebar-DeZl9Tk0.js.map → AiChatSidebar-CjSEoK4x.js.map} +1 -1
  42. package/dist/cdn/chunks/{AiFeatureMenu-Bv8jMu9p.js → AiFeatureMenu-l0K5TOSn.js} +6 -6
  43. package/dist/cdn/chunks/{AiFeatureMenu-Bv8jMu9p.js.map → AiFeatureMenu-l0K5TOSn.js.map} +1 -1
  44. package/dist/cdn/chunks/{BlockIssueBadge-B6PpoOPv.js → BlockIssueBadge-9hHpaXb9.js} +5 -5
  45. package/dist/cdn/chunks/{BlockIssueBadge-B6PpoOPv.js.map → BlockIssueBadge-9hHpaXb9.js.map} +1 -1
  46. package/dist/cdn/chunks/{BlockPreviewCanvas-DfEtDosD.js → BlockPreviewCanvas-lQrAdgG3.js} +30 -30
  47. package/dist/cdn/chunks/{BlockPreviewCanvas-DfEtDosD.js.map → BlockPreviewCanvas-lQrAdgG3.js.map} +1 -1
  48. package/dist/cdn/chunks/{CloudHeaderExtras-Hk98ub-C.js → CloudHeaderExtras-CXNe7Q-4.js} +5 -5
  49. package/dist/cdn/chunks/{CloudHeaderExtras-Hk98ub-C.js.map → CloudHeaderExtras-CXNe7Q-4.js.map} +1 -1
  50. package/dist/cdn/chunks/{CloudPanels-Ba3GLmvF.js → CloudPanels-bHhh9AUA.js} +6 -6
  51. package/dist/cdn/chunks/{CloudPanels-Ba3GLmvF.js.map → CloudPanels-bHhh9AUA.js.map} +1 -1
  52. package/dist/cdn/chunks/{CollaboratorBar-D2dCQ9gg.js → CollaboratorBar-DgqcaGGI.js} +5 -5
  53. package/dist/cdn/chunks/{CollaboratorBar-D2dCQ9gg.js.map → CollaboratorBar-DgqcaGGI.js.map} +1 -1
  54. package/dist/cdn/chunks/{CommentsPanel-CV2HveQk.js → CommentsPanel-Cy4TlTHC.js} +3 -3
  55. package/dist/cdn/chunks/{CommentsPanel-CV2HveQk.js.map → CommentsPanel-Cy4TlTHC.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsSidebar-Dok_vaRc.js → CommentsSidebar-C7oAP3Mx.js} +5 -5
  57. package/dist/cdn/chunks/{CommentsSidebar-Dok_vaRc.js.map → CommentsSidebar-C7oAP3Mx.js.map} +1 -1
  58. package/dist/cdn/chunks/{CountdownBlock-DGDl3ota.js → CountdownBlock-DdC8Lg5F.js} +4 -4
  59. package/dist/cdn/chunks/{CountdownBlock-DGDl3ota.js.map → CountdownBlock-DdC8Lg5F.js.map} +1 -1
  60. package/dist/cdn/chunks/{CountdownToolbar-B9Rin64t.js → CountdownToolbar-CN9h4nlC.js} +22 -21
  61. package/dist/cdn/chunks/{CountdownToolbar-B9Rin64t.js.map → CountdownToolbar-CN9h4nlC.js.map} +1 -1
  62. package/dist/cdn/chunks/{DesignReferenceSidebar-eCuTFak2.js → DesignReferenceSidebar-Bjo0M-AY.js} +7 -7
  63. package/dist/cdn/chunks/{DesignReferenceSidebar-eCuTFak2.js.map → DesignReferenceSidebar-Bjo0M-AY.js.map} +1 -1
  64. package/dist/cdn/chunks/{IssuesPanel-CP7FEzw7.js → IssuesPanel-DdFk-Blf.js} +6 -6
  65. package/dist/cdn/chunks/{IssuesPanel-CP7FEzw7.js.map → IssuesPanel-DdFk-Blf.js.map} +1 -1
  66. package/dist/cdn/chunks/{LoadingTrack-Cm3TDKb3.js → LoadingTrack-Ba5xh5HD.js} +2 -2
  67. package/dist/cdn/chunks/{LoadingTrack-Cm3TDKb3.js.map → LoadingTrack-Ba5xh5HD.js.map} +1 -1
  68. package/dist/cdn/chunks/LogicTagInsertButton-DpyPozop.js +1035 -0
  69. package/dist/cdn/chunks/LogicTagInsertButton-DpyPozop.js.map +1 -0
  70. package/dist/cdn/chunks/{MediaPanels-TYrKKHX5.js → MediaPanels-kX9AZQ7K.js} +3 -3
  71. package/dist/cdn/chunks/{MediaPanels-TYrKKHX5.js.map → MediaPanels-kX9AZQ7K.js.map} +1 -1
  72. package/dist/cdn/chunks/MergeTagInput-ERJr7bP_.js +83 -0
  73. package/dist/cdn/chunks/MergeTagInput-ERJr7bP_.js.map +1 -0
  74. package/dist/cdn/chunks/{MergeTagModeToggle-QGTUIWWo.js → MergeTagModeToggle-n3nvSNeQ.js} +5 -5
  75. package/dist/cdn/chunks/{MergeTagModeToggle-QGTUIWWo.js.map → MergeTagModeToggle-n3nvSNeQ.js.map} +1 -1
  76. package/dist/cdn/chunks/{ParagraphEditor-D1tsPv4v.js → ParagraphEditor-DO4RzP8l.js} +40 -40
  77. package/dist/cdn/chunks/{ParagraphEditor-D1tsPv4v.js.map → ParagraphEditor-DO4RzP8l.js.map} +1 -1
  78. package/dist/cdn/chunks/{RestoreVersionDialog-BeCxNPLS.js → RestoreVersionDialog-CzZ_sFnz.js} +5 -5
  79. package/dist/cdn/chunks/{RestoreVersionDialog-BeCxNPLS.js.map → RestoreVersionDialog-CzZ_sFnz.js.map} +1 -1
  80. package/dist/cdn/chunks/{RichTextEditorContent-BBxzACFQ.js → RichTextEditorContent-Ch5zeyZ7.js} +8 -8
  81. package/dist/cdn/chunks/{RichTextEditorContent-BBxzACFQ.js.map → RichTextEditorContent-Ch5zeyZ7.js.map} +1 -1
  82. package/dist/cdn/chunks/{SaveBlockDialog-CLgh_g7H.js → SaveBlockDialog-LgxYrXyx.js} +10 -9
  83. package/dist/cdn/chunks/{SaveBlockDialog-CLgh_g7H.js.map → SaveBlockDialog-LgxYrXyx.js.map} +1 -1
  84. package/dist/cdn/chunks/{SavedBlocksBrowserModal-B4TcUJJe.js → SavedBlocksBrowserModal-CdeSsTpb.js} +9 -9
  85. package/dist/cdn/chunks/{SavedBlocksBrowserModal-B4TcUJJe.js.map → SavedBlocksBrowserModal-CdeSsTpb.js.map} +1 -1
  86. package/dist/cdn/chunks/{SavedBlocksPanels-CaBsHoRC.js → SavedBlocksPanels-B5hakNJj.js} +3 -3
  87. package/dist/cdn/chunks/{SavedBlocksPanels-CaBsHoRC.js.map → SavedBlocksPanels-B5hakNJj.js.map} +1 -1
  88. package/dist/cdn/chunks/{SavedBlocksPickBar-iG35XCDx.js → SavedBlocksPickBar-Cl6PLwwV.js} +5 -5
  89. package/dist/cdn/chunks/{SavedBlocksPickBar-iG35XCDx.js.map → SavedBlocksPickBar-Cl6PLwwV.js.map} +1 -1
  90. package/dist/cdn/chunks/{TemplateScoringPanel-DuQJBykq.js → TemplateScoringPanel--JxR6CsQ.js} +6 -6
  91. package/dist/cdn/chunks/{TemplateScoringPanel-DuQJBykq.js.map → TemplateScoringPanel--JxR6CsQ.js.map} +1 -1
  92. package/dist/cdn/chunks/TemplateSettings-DjXiiiNr.js +207 -0
  93. package/dist/cdn/chunks/TemplateSettings-DjXiiiNr.js.map +1 -0
  94. package/dist/cdn/chunks/{TestEmailModal-D6Woss3r.js → TestEmailModal-BAuDxJtD.js} +9 -9
  95. package/dist/cdn/chunks/{TestEmailModal-D6Woss3r.js.map → TestEmailModal-BAuDxJtD.js.map} +1 -1
  96. package/dist/cdn/chunks/{TestEmailPanel-CWQFB7J3.js → TestEmailPanel-GUGZisLp.js} +3 -3
  97. package/dist/cdn/chunks/{TestEmailPanel-CWQFB7J3.js.map → TestEmailPanel-GUGZisLp.js.map} +1 -1
  98. package/dist/cdn/chunks/{TitleEditor-CbY1tgSl.js → TitleEditor-uKu33Nwr.js} +12 -12
  99. package/dist/cdn/chunks/{TitleEditor-CbY1tgSl.js.map → TitleEditor-uKu33Nwr.js.map} +1 -1
  100. package/dist/cdn/chunks/ToggleSwitch-CDy8OfcB.js +104 -0
  101. package/dist/cdn/chunks/ToggleSwitch-CDy8OfcB.js.map +1 -0
  102. package/dist/cdn/chunks/Toolbar-dxDYwN5E.js +2385 -0
  103. package/dist/cdn/chunks/Toolbar-dxDYwN5E.js.map +1 -0
  104. package/dist/cdn/chunks/{TplModal-CGpp-d_r.js → TplModal-DuwS2ifK.js} +5 -5
  105. package/dist/cdn/chunks/{TplModal-CGpp-d_r.js.map → TplModal-DuwS2ifK.js.map} +1 -1
  106. package/dist/cdn/chunks/{VersionHistoryMenu-ByVJXDbK.js → VersionHistoryMenu-Dij1pTEb.js} +6 -6
  107. package/dist/cdn/chunks/{VersionHistoryMenu-ByVJXDbK.js.map → VersionHistoryMenu-Dij1pTEb.js.map} +1 -1
  108. package/dist/cdn/chunks/{VersionHistoryPanels-CQJ5OggF.js → VersionHistoryPanels-GeR6MStB.js} +3 -3
  109. package/dist/cdn/chunks/{VersionHistoryPanels-CQJ5OggF.js.map → VersionHistoryPanels-GeR6MStB.js.map} +1 -1
  110. package/dist/cdn/chunks/{VersionPreviewBanner-G4lLbfr8.js → VersionPreviewBanner-Df3FVlig.js} +4 -4
  111. package/dist/cdn/chunks/{VersionPreviewBanner-G4lLbfr8.js.map → VersionPreviewBanner-Df3FVlig.js.map} +1 -1
  112. package/dist/cdn/chunks/{blockTypeIcons-CQY-vxdM.js → blockTypeIcons-raBjStuv.js} +2 -2
  113. package/dist/cdn/chunks/{blockTypeIcons-CQY-vxdM.js.map → blockTypeIcons-raBjStuv.js.map} +1 -1
  114. package/dist/cdn/chunks/{cloud-BLgCKP7Z.js → cloud-eaXyxZ8l.js} +2 -2
  115. package/dist/cdn/chunks/{cloud-BLgCKP7Z.js.map → cloud-eaXyxZ8l.js.map} +1 -1
  116. package/dist/cdn/chunks/{createCloudRuntime-ClvtMBF1.js → createCloudRuntime-D5bXzcTe.js} +6 -6
  117. package/dist/cdn/chunks/{createCloudRuntime-ClvtMBF1.js.map → createCloudRuntime-D5bXzcTe.js.map} +1 -1
  118. package/dist/cdn/chunks/{dist-BW6Y49zE.js → dist-BRZhN8qJ.js} +4 -4
  119. package/dist/cdn/chunks/dist-BRZhN8qJ.js.map +1 -0
  120. package/dist/cdn/chunks/{dist-CAFTQ6Y2.js → dist-CXB2_kBa.js} +27 -22
  121. package/dist/cdn/chunks/dist-CXB2_kBa.js.map +1 -0
  122. package/dist/cdn/chunks/{draggable-kbOhCgnk.js → draggable-IB4x6w2O.js} +1477 -1470
  123. package/dist/cdn/chunks/draggable-IB4x6w2O.js.map +1 -0
  124. package/dist/cdn/chunks/{editor-modal-B6IdQWlf.js → editor-modal-C_xYN_66.js} +7 -7
  125. package/dist/cdn/chunks/{editor-modal-B6IdQWlf.js.map → editor-modal-C_xYN_66.js.map} +1 -1
  126. package/dist/cdn/chunks/en-BwfjKb4M.js +2 -0
  127. package/dist/cdn/chunks/{extensions-D2YIhF7u.js → extensions-Bhu8UEE5.js} +105 -45
  128. package/dist/cdn/chunks/extensions-Bhu8UEE5.js.map +1 -0
  129. package/dist/cdn/chunks/{icons-DdrAicM2.js → icons-BKkJ-5xF.js} +43 -43
  130. package/dist/cdn/chunks/{icons-DdrAicM2.js.map → icons-BKkJ-5xF.js.map} +1 -1
  131. package/dist/cdn/chunks/{keys-DXYJTLZF.js → keys-dJbD1QPs.js} +2 -2
  132. package/dist/cdn/chunks/{keys-DXYJTLZF.js.map → keys-dJbD1QPs.js.map} +1 -1
  133. package/dist/cdn/chunks/socialIcons-9VrG8X3m.js +1054 -0
  134. package/dist/cdn/chunks/socialIcons-9VrG8X3m.js.map +1 -0
  135. package/dist/cdn/chunks/{src-fn7uy1FD.js → src-CZ-W8YBa.js} +3 -3
  136. package/dist/cdn/chunks/{src-fn7uy1FD.js.map → src-CZ-W8YBa.js.map} +1 -1
  137. package/dist/cdn/chunks/templateSettingsFields-YCFVBVYh.js +36 -0
  138. package/dist/cdn/chunks/templateSettingsFields-YCFVBVYh.js.map +1 -0
  139. package/dist/cdn/chunks/{tiptap-Epe8m3Vo.js → tiptap-DhLuKyDc.js} +2776 -2773
  140. package/dist/cdn/chunks/tiptap-DhLuKyDc.js.map +1 -0
  141. package/dist/cdn/chunks/{useAliveFlag-CT9gjvO_.js → useAliveFlag-DAlQLbM2.js} +2 -2
  142. package/dist/cdn/chunks/{useAliveFlag-CT9gjvO_.js.map → useAliveFlag-DAlQLbM2.js.map} +1 -1
  143. package/dist/cdn/chunks/{useCloudI18n-OezCj0cx.js → useCloudI18n-C09JcFS0.js} +3 -3
  144. package/dist/cdn/chunks/{useCloudI18n-OezCj0cx.js.map → useCloudI18n-C09JcFS0.js.map} +1 -1
  145. package/dist/cdn/chunks/useEditorCore-BHmIp1hW.js +2592 -0
  146. package/dist/cdn/chunks/useEditorCore-BHmIp1hW.js.map +1 -0
  147. package/dist/cdn/chunks/useEditorRoot-DFx2fXJP.js +10 -0
  148. package/dist/cdn/chunks/{useEditorRoot-ByHPMqYT.js.map → useEditorRoot-DFx2fXJP.js.map} +1 -1
  149. package/dist/cdn/chunks/{useI18n-BhE7ndNr.js → useI18n-DTZ9sIcv.js} +3 -3
  150. package/dist/cdn/chunks/{useI18n-BhE7ndNr.js.map → useI18n-DTZ9sIcv.js.map} +1 -1
  151. package/dist/cdn/chunks/useLogicTag-E2V0Xdcb.js +38 -0
  152. package/dist/cdn/chunks/useLogicTag-E2V0Xdcb.js.map +1 -0
  153. package/dist/cdn/chunks/{useMergeTag-DE2mpy1w.js → useMergeTag-BE8oDoha.js} +3 -3
  154. package/dist/cdn/chunks/{useMergeTag-DE2mpy1w.js.map → useMergeTag-BE8oDoha.js.map} +1 -1
  155. package/dist/cdn/chunks/{usePopoverPosition-BPL891uG.js → usePopoverPosition-gB9q-ql7.js} +3 -3
  156. package/dist/cdn/chunks/{usePopoverPosition-BPL891uG.js.map → usePopoverPosition-gB9q-ql7.js.map} +1 -1
  157. package/dist/cdn/chunks/{useScrollToBlock-DwF4pVur.js → useScrollToBlock-CtTXwmiU.js} +3 -3
  158. package/dist/cdn/chunks/{useScrollToBlock-DwF4pVur.js.map → useScrollToBlock-CtTXwmiU.js.map} +1 -1
  159. package/dist/cdn/editor.css +1 -1
  160. package/dist/cdn/editor.js +809 -3337
  161. package/dist/cdn/editor.js.map +1 -1
  162. package/dist/{check-9xX6RVHz.js → check-eqb2JhqU.js} +1 -1
  163. package/dist/{chevron-down-J5hFJ6TL.js → chevron-down-Dkr-7Ywl.js} +1 -1
  164. package/dist/{chevron-right-BJuo5PQ-.js → chevron-right-Bge4XF_B.js} +1 -1
  165. package/dist/{chevron-up-Qfi5k52_.js → chevron-up-CQAyl0kC.js} +1 -1
  166. package/dist/{circle-alert-BiArYmkB.js → circle-alert-CYgTHKWr.js} +1 -1
  167. package/dist/{clock-BkYJZ7Y0.js → clock-BgSJZJP5.js} +1 -1
  168. package/dist/{cloud-DdidMW6f.js → cloud-C9xWZXhg.js} +1 -1
  169. package/dist/{copy-BRLUNHwF.js → copy-mw6PVnOJ.js} +1 -1
  170. package/dist/{createCloudRuntime-CNFXaTNQ.js → createCloudRuntime-BGd5--Bq.js} +5 -5
  171. package/dist/{createLucideIcon-CDDkF1Tm.js → createLucideIcon-BxY5yz5u.js} +6 -6
  172. package/dist/{dist-D8i1ixHK.js → dist-8VFzbeu9.js} +3 -3
  173. package/dist/{dist-DBirAJIs.js → dist-BDuPwOyn.js} +26 -21
  174. package/dist/{dist-CtF9STPS.js → dist-BJM3eFyT.js} +1 -1
  175. package/dist/{dist-DkcA6epL.js → dist-BdHF7nyq.js} +3 -3
  176. package/dist/{dist-ByT5fgKq.js → dist-Bl4rxpX9.js} +1 -1
  177. package/dist/{dist-BVqAYoRB.js → dist-BmsLcnrO.js} +4 -4
  178. package/dist/{dist-CtMXAH7a.js → dist-BxVnMgXZ.js} +1 -1
  179. package/dist/{dist-DC-3T0ED.js → dist-CQSVro7b.js} +1 -1
  180. package/dist/{dist-f7HXo6j6.js → dist-DQbOebGW.js} +1 -1
  181. package/dist/{dist-DL9334yz.js → dist-DerFNpDY.js} +3 -3
  182. package/dist/{dist-D08oVYhr.js → dist-Djmzp6wi.js} +1 -1
  183. package/dist/{dist-D7WY8VPq.js → dist-DyrEOKEJ.js} +1 -1
  184. package/dist/{dist-DzdeVn-W.js → dist-EDkj3Ub1.js} +1 -1
  185. package/dist/{dist-C1tsW_99.js → dist-wyXxj3R1.js} +1 -1
  186. package/dist/{editor-modal-uAEB6xKz.js → editor-modal-OPhP71YO.js} +20 -20
  187. package/dist/en-CjNopehs.js +2 -0
  188. package/dist/extensions-DRN-elXT.js +1645 -0
  189. package/dist/{eye-DwhBOaV8.js → eye-DphkRtAD.js} +1 -1
  190. package/dist/{image-up-CiyQNZBt.js → image-up-Qi2BXD7T.js} +1 -1
  191. package/dist/{info-D6A1qEiF.js → info-VSyAs02q.js} +1 -1
  192. package/dist/{keys-DD1rl72F.js → keys-BdoSgsz9.js} +1 -1
  193. package/dist/{link-tKGmYWsB.js → link-CNuozGqD.js} +1 -1
  194. package/dist/{list-DjZQRpeI.js → list-BA0I5Wmu.js} +1 -1
  195. package/dist/{loader-circle-D9ZL3Sv0.js → loader-circle-z5eeqasv.js} +1 -1
  196. package/dist/{message-circle-KTHxCcpB.js → message-circle-BsQ9hEup.js} +1 -1
  197. package/dist/package-OkXfuRoO.js +25 -0
  198. package/dist/{pencil-Bq-nbQ7F.js → pencil-DFVFA7Dj.js} +1 -1
  199. package/dist/{plus-CRMnR4IG.js → plus-D8bkVjZ7.js} +1 -1
  200. package/dist/{refresh-cw-D7bYS5tm.js → refresh-cw-DPB7YFuz.js} +1 -1
  201. package/dist/{runtime-dom.esm-bundler-PnoZU512.js → runtime-dom.esm-bundler-BGbPz4-g.js} +2 -2
  202. package/dist/{search-DUo0YwPz.js → search-C-dCgqIa.js} +1 -1
  203. package/dist/{send-DaVMQphu.js → send-Cm2fy2zm.js} +1 -1
  204. package/dist/{shield-check-DxaaurL9.js → shield-check-COgBYFDF.js} +1 -1
  205. package/dist/smartphone-v0u_MOEV.js +46 -0
  206. package/dist/socialIcons-DkGcpEwC.js +1130 -0
  207. package/dist/{sparkles-D6T6k30e.js → sparkles-Ds0RF8Iu.js} +1 -1
  208. package/dist/style.css +1 -1
  209. package/dist/templateSettingsFields-YCFVBVYh.js +34 -0
  210. package/dist/templatical-editor.js +895 -3498
  211. package/dist/{text-align-start-vreFpmCX.js → text-align-start-DiavaIm6.js} +1 -1
  212. package/dist/{trash-DBv8MGY6.js → trash-DnOkfu2V.js} +1 -1
  213. package/dist/{triangle-alert-CmNS2LLv.js → triangle-alert-DGLAyXnh.js} +1 -1
  214. package/dist/{upload-DDB9Fs0P.js → upload-BBDme2cy.js} +1 -1
  215. package/dist/{useAliveFlag-oyByIcjy.js → useAliveFlag-BkKyhkwZ.js} +1 -1
  216. package/dist/{useCloudI18n-C1wuXik6.js → useCloudI18n-D1iedlP3.js} +2 -2
  217. package/dist/{useEditorCore-jfwgLThK.js → useEditorCore-C5APBjjV.js} +1140 -2325
  218. package/dist/{useEditorRoot-eVv4doqZ.js → useEditorRoot-BOxn5EfP.js} +2 -2
  219. package/dist/{useI18n-VOtdfENx.js → useI18n-Ds_-druD.js} +2 -2
  220. package/dist/useLogicTag-DoHfc08B.js +36 -0
  221. package/dist/{useMergeTag-CQM9pFca.js → useMergeTag-DXyum3kG.js} +2 -2
  222. package/dist/{usePopoverPosition-gZjRywai.js → usePopoverPosition-Du-Ah8E9.js} +2 -2
  223. package/dist/{useScrollToBlock-C0Ehnyl4.js → useScrollToBlock-DXQYPCnJ.js} +3 -3
  224. package/dist/{vue.runtime.esm-bundler-DShF3P6k.js → vue.runtime.esm-bundler-CyqhBwpY.js} +1133 -1126
  225. package/dist/{x-B7sgO_z8.js → x-3BHV3Q6K.js} +1 -1
  226. package/package.json +14 -14
  227. package/dist/ColorPicker-BTtN94te.js +0 -501
  228. package/dist/FieldRow-C8nOknr_.js +0 -128
  229. package/dist/MergeTagInput-Cw1RoMly.js +0 -509
  230. package/dist/MergeTagSuggestion-BXO3UIXW.js +0 -1329
  231. package/dist/cdn/chunks/ColorPicker-BaonTCAQ.js +0 -502
  232. package/dist/cdn/chunks/ColorPicker-BaonTCAQ.js.map +0 -1
  233. package/dist/cdn/chunks/FieldRow-D9OJhYeb.js +0 -130
  234. package/dist/cdn/chunks/FieldRow-D9OJhYeb.js.map +0 -1
  235. package/dist/cdn/chunks/MergeTagInput-CSIThqkz.js +0 -470
  236. package/dist/cdn/chunks/MergeTagInput-CSIThqkz.js.map +0 -1
  237. package/dist/cdn/chunks/MergeTagSuggestion-CY6WK8Eb.js +0 -215
  238. package/dist/cdn/chunks/MergeTagSuggestion-CY6WK8Eb.js.map +0 -1
  239. package/dist/cdn/chunks/dist-BW6Y49zE.js.map +0 -1
  240. package/dist/cdn/chunks/dist-CAFTQ6Y2.js.map +0 -1
  241. package/dist/cdn/chunks/draggable-kbOhCgnk.js.map +0 -1
  242. package/dist/cdn/chunks/en-DjunooBz.js +0 -2
  243. package/dist/cdn/chunks/extensions-D2YIhF7u.js.map +0 -1
  244. package/dist/cdn/chunks/tiptap-Epe8m3Vo.js.map +0 -1
  245. package/dist/cdn/chunks/useEditorCore-06PtcUi1.js +0 -3698
  246. package/dist/cdn/chunks/useEditorCore-06PtcUi1.js.map +0 -1
  247. package/dist/cdn/chunks/useEditorRoot-ByHPMqYT.js +0 -10
  248. package/dist/en-CQWkDCpm.js +0 -2
  249. package/dist/extensions-CcGj7OfS.js +0 -470
@@ -1,509 +0,0 @@
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 } 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";
11
- import { t as M } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import { t as N } from "./useMergeTag-CQM9pFca.js";
13
- import { p as P } from "./styleConstants-C_YAPdQS.js";
14
- import { n as F, r as I } from "./MergeTagSuggestion-BXO3UIXW.js";
15
- var L = k({
16
- name: "braces",
17
- size: 24,
18
- node: [["path", {
19
- d: "M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",
20
- key: "ezmyqa"
21
- }], ["path", {
22
- d: "M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",
23
- key: "e1hn23"
24
- }]],
25
- aliases: ["curly-braces"]
26
- }), R = k({
27
- name: "scan-line",
28
- size: 24,
29
- node: [
30
- ["path", {
31
- d: "M3 7V5a2 2 0 0 1 2-2h2",
32
- key: "aa7l1z"
33
- }],
34
- ["path", {
35
- d: "M17 3h2a2 2 0 0 1 2 2v2",
36
- key: "4qcy5o"
37
- }],
38
- ["path", {
39
- d: "M21 17v2a2 2 0 0 1-2 2h-2",
40
- key: "6vwrx8"
41
- }],
42
- ["path", {
43
- d: "M7 21H5a2 2 0 0 1-2-2v-2",
44
- key: "ioqczr"
45
- }],
46
- ["path", {
47
- d: "M7 12h10",
48
- key: "b7w52i"
49
- }]
50
- ]
51
- });
52
- //#endregion
53
- //#region src/utils/mergeTagTrigger.ts
54
- function z(e, t, n, r) {
55
- if (!n) return null;
56
- let i = e.slice(0, t), a = i.lastIndexOf(n);
57
- if (a === -1) return null;
58
- let o = i.slice(a + n.length);
59
- return /\s/.test(o) || r && o.includes(r) ? null : {
60
- triggerStart: a,
61
- caret: t,
62
- query: o
63
- };
64
- }
65
- //#endregion
66
- //#region src/utils/textFieldCaret.ts
67
- var B = /* @__PURE__ */ "boxSizing.width.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderStyle.paddingTop.paddingRight.paddingBottom.paddingLeft.fontStyle.fontVariant.fontWeight.fontStretch.fontSize.lineHeight.fontFamily.textAlign.textTransform.textIndent.letterSpacing.wordSpacing.tabSize.whiteSpace.wordWrap.wordBreak".split(".");
68
- function V(e, t, n) {
69
- return {
70
- left: e,
71
- top: t,
72
- bottom: n,
73
- right: e,
74
- width: 0,
75
- height: n - t,
76
- x: e,
77
- y: t,
78
- toJSON: () => ({})
79
- };
80
- }
81
- function H(e, t) {
82
- let n = e.ownerDocument, r = n.defaultView;
83
- if (!r) return null;
84
- let i = e.tagName === "INPUT", a = r.getComputedStyle(e), o = n.createElement("div");
85
- o.setAttribute("aria-hidden", "true");
86
- let s = o.style;
87
- s.position = "absolute", s.visibility = "hidden", s.top = "0", s.left = "0", s.overflow = "hidden", s.whiteSpace = i ? "pre" : "pre-wrap", s.wordWrap = i ? "normal" : "break-word";
88
- let c = s, l = a;
89
- for (let e of B) c[e] = l[e];
90
- i && (s.width = "auto", s.whiteSpace = "pre");
91
- let u = e.value, d = u.slice(0, t);
92
- i && (d = d.replace(/\s/g, "\xA0")), o.textContent = d;
93
- let f = n.createElement("span");
94
- f.textContent = u.slice(t) || ".", o.appendChild(f), n.body.appendChild(o);
95
- let p = f.offsetTop, m = f.offsetLeft;
96
- n.body.removeChild(o);
97
- let h = e.getBoundingClientRect(), g = parseFloat(a.borderTopWidth) || 0, _ = parseFloat(a.borderLeftWidth) || 0, v = parseFloat(a.lineHeight) || parseFloat(a.fontSize) || 0, y = h.left + m + _ - e.scrollLeft;
98
- if (i) return V(y, h.top, h.bottom);
99
- let b = h.top + p + g - e.scrollTop;
100
- return V(y, b, b + v);
101
- }
102
- //#endregion
103
- //#region src/composables/useMergeTagAutocomplete.ts
104
- var U = /* @__PURE__ */ new Set([
105
- "ArrowLeft",
106
- "ArrowRight",
107
- "Home",
108
- "End"
109
- ]);
110
- function W(e) {
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;
112
- o() && n(() => {
113
- x = !0, b.close();
114
- });
115
- function C(e) {
116
- let t = e.value ?? "";
117
- return z(t, e.selectionStart ?? t.length, p, m);
118
- }
119
- function T(e, n, r) {
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;
121
- f?.(), c(p), b.close(), t(() => {
122
- if (x) return;
123
- let e = i.value;
124
- e?.focus(), e?.setSelectionRange(h, h);
125
- });
126
- }
127
- function D() {
128
- if (!h.value || x) return;
129
- let e = i.value;
130
- if (!e) {
131
- b.close();
132
- return;
133
- }
134
- let t = C(e);
135
- if (!t) {
136
- b.close();
137
- return;
138
- }
139
- let n = I(l.value, t.query), r = () => H(e, t.triggerStart), a = (n) => T(e, t, n);
140
- b.isOpen() ? b.update({
141
- items: n,
142
- getRect: r,
143
- onCommand: a
144
- }) : b.open({
145
- items: n,
146
- getRect: r,
147
- anchorEl: e,
148
- onCommand: a
149
- });
150
- }
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;
153
- }
154
- return {
155
- available: h,
156
- refresh: D,
157
- handleKeydown: k,
158
- close: () => b.close(),
159
- isOpen: () => b.isOpen()
160
- };
161
- }
162
- //#endregion
163
- //#region src/composables/useMergeTagField.ts
164
- function G(e) {
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;
166
- o() && n(() => {
167
- E = !0;
168
- });
169
- let D = W({
170
- elementRef: a,
171
- modelValue: r,
172
- emit: i,
173
- mergeTags: c,
174
- syntax: h,
175
- enabled: g,
176
- onInsert: () => {
177
- S.value = !0;
178
- }
179
- }), O = _(() => {
180
- let e = r();
181
- if (!e) return [];
182
- let t = [], n = `(${h.value.source}|${h.logic.source})`, i = new RegExp(n, "g"), a = 0, o;
183
- for (; (o = i.exec(e)) !== null;) {
184
- o.index > a && t.push({
185
- type: "text",
186
- value: e.slice(a, o.index)
187
- });
188
- let n = o[0];
189
- d(n) ? t.push({
190
- type: "mergeTag",
191
- value: n,
192
- label: f(n)
193
- }) : x(n, h) ? t.push({
194
- type: "logicMergeTag",
195
- value: n,
196
- keyword: C(n, h)
197
- }) : t.push({
198
- type: "text",
199
- value: n
200
- }), a = o.index + n.length;
201
- }
202
- return a < e.length && t.push({
203
- type: "text",
204
- value: e.slice(a)
205
- }), t;
206
- }), k = _(() => O.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
207
- function A() {
208
- S.value = !0, t(() => {
209
- a.value?.focus();
210
- let e = r()?.length || 0;
211
- a.value?.setSelectionRange(e, e);
212
- });
213
- }
214
- function j() {
215
- w || (S.value = !1);
216
- }
217
- function M(e) {
218
- i(e.target.value), D.refresh();
219
- }
220
- function P(e) {
221
- return D.handleKeydown(e) ? (e.preventDefault(), !0) : (e.key === "Escape" && j(), !1);
222
- }
223
- function F() {
224
- D.refresh();
225
- }
226
- function I() {
227
- D.close(), j();
228
- }
229
- function L() {
230
- i("");
231
- }
232
- async function R() {
233
- let e = S.value && a.value ? a.value.selectionStart ?? r().length : r().length;
234
- w = !0;
235
- let n;
236
- try {
237
- n = await m();
238
- } finally {
239
- w = !1;
240
- }
241
- if (!E && n) {
242
- let o = r().slice(0, e), s = r().slice(e), c = o + n.value + s;
243
- i(c), S.value = !0, t(() => {
244
- if (E) return;
245
- let t = e + n.value.length;
246
- a.value?.focus(), a.value?.setSelectionRange(t, t);
247
- });
248
- }
249
- }
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() {
266
- let e = a.value, n = e?.selectionStart ?? r().length, o = e?.selectionEnd ?? n;
267
- w = !0;
268
- let s;
269
- try {
270
- s = await b();
271
- } finally {
272
- w = !1;
273
- }
274
- if (E || !s) return;
275
- let c = r(), l, 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));
278
- });
279
- }
280
- return {
281
- segments: O,
282
- hasMergeTags: k,
283
- canRequestMergeTag: l,
284
- isRequestingMergeTag: u,
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
299
- };
300
- }
301
- //#endregion
302
- //#region src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
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,
309
- class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
310
- }, ee = ["aria-label", "title"], te = ["aria-label", "title"], Z = /* @__PURE__ */ y({
311
- __name: "MergeTagSegments",
312
- props: {
313
- segments: {},
314
- displayClass: {},
315
- pulse: { type: Boolean }
316
- },
317
- emits: [
318
- "edit",
319
- "clear",
320
- "repick"
321
- ],
322
- setup(t, { emit: n }) {
323
- let r = n, { t: a, format: o } = D(), { canRepickMergeTag: s, showRawValue: f } = N();
324
- function h() {
325
- r("edit");
326
- }
327
- return (n, _) => (e(), u("div", {
328
- role: "group",
329
- "aria-label": c(a).mergeTag.fieldGroup,
330
- class: m([t.displayClass, { "tpl-pulse-fill": t.pulse }]),
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));
386
- }
387
- }), ne = [
388
- "aria-label",
389
- "title",
390
- "disabled"
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({
392
- __name: "MergeTagInsertButton",
393
- props: { disabled: { type: Boolean } },
394
- emits: ["insert"],
395
- setup(t) {
396
- let { t: n } = D();
397
- return (r, i) => (e(), u("button", {
398
- type: "button",
399
- class: m([re, "tpl:mt-1.5"]),
400
- "aria-label": c(n).mergeTag.insert,
401
- title: c(n).mergeTag.insert,
402
- disabled: t.disabled,
403
- onMousedown: i[0] ||= b(() => {}, ["prevent"]),
404
- onClick: i[1] ||= (e) => r.$emit("insert")
405
- }, [d(c(R), {
406
- size: 12,
407
- "stroke-width": 2
408
- }), f(" " + p(c(n).mergeTag.insertShort), 1)], 42, ne));
409
- }
410
- }), ie = [
411
- "aria-label",
412
- "title",
413
- "disabled"
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({
415
- __name: "LogicTagInsertButton",
416
- props: { disabled: { type: Boolean } },
417
- emits: ["insert"],
418
- setup(t) {
419
- let { t: n } = D();
420
- return (r, i) => (e(), u("button", {
421
- type: "button",
422
- class: m([ae, "tpl:mt-1.5"]),
423
- "aria-label": c(n).logicTag.insert,
424
- title: c(n).logicTag.insert,
425
- disabled: t.disabled,
426
- "data-testid": "field-insert-logic-button",
427
- onMousedown: i[0] ||= b(() => {}, ["prevent"]),
428
- onClick: i[1] ||= (e) => r.$emit("insert")
429
- }, [d(c(L), {
430
- size: 12,
431
- "stroke-width": 2
432
- }), f(" " + p(c(n).logicTag.insertShort), 1)], 42, ie));
433
- }
434
- }), oe = { key: 0 }, se = {
435
- key: 0,
436
- class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
437
- }, ce = { key: 1 }, le = [
438
- "type",
439
- "value",
440
- "placeholder"
441
- ], ue = {
442
- key: 0,
443
- class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
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({
445
- __name: "MergeTagInput",
446
- props: {
447
- modelValue: {},
448
- type: { default: "text" },
449
- placeholder: { default: "" },
450
- pulse: {
451
- type: Boolean,
452
- default: !1
453
- }
454
- },
455
- emits: ["update:modelValue", "keydown"],
456
- setup(t, { emit: n }) {
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({
458
- modelValue: () => r.modelValue,
459
- emit: (e) => i("update:modelValue", e),
460
- elementRef: a
461
- });
462
- function A(e) {
463
- C(e) || i("keydown", e);
464
- }
465
- return (n, r) => c(f) && !c(b) ? (e(), u("div", oe, [d(Z, {
466
- segments: c(o),
467
- "display-class": de,
468
- pulse: t.pulse,
469
- onEdit: c(x),
470
- onClear: c(E),
471
- onRepick: c(k)
472
- }, null, 8, [
473
- "segments",
474
- "pulse",
475
- "onEdit",
476
- "onClear",
477
- "onRepick"
478
- ]), c(p) || c(_) ? (e(), u("div", se, [c(p) ? (e(), h(Q, {
479
- key: 0,
480
- disabled: c(g),
481
- onInsert: c(D)
482
- }, null, 8, ["disabled", "onInsert"])) : v("", !0), c(_) ? (e(), h($, {
483
- key: 1,
484
- disabled: c(y),
485
- onInsert: c(O)
486
- }, null, 8, ["disabled", "onInsert"])) : v("", !0)])) : v("", !0)])) : (e(), u("div", ce, [l("input", {
487
- ref_key: "inputRef",
488
- ref: a,
489
- type: t.type,
490
- class: m([c(P), { "tpl-pulse-fill": t.pulse }]),
491
- value: t.modelValue,
492
- placeholder: t.placeholder,
493
- onInput: r[0] ||= (...e) => c(S) && c(S)(...e),
494
- onKeydown: A,
495
- onClick: r[1] ||= (...e) => c(w) && c(w)(...e),
496
- onBlur: r[2] ||= (...e) => c(T) && c(T)(...e)
497
- }, null, 42, le), c(p) || c(_) ? (e(), u("div", ue, [c(p) ? (e(), h(Q, {
498
- key: 0,
499
- disabled: c(g),
500
- onInsert: c(D)
501
- }, null, 8, ["disabled", "onInsert"])) : v("", !0), c(_) ? (e(), h($, {
502
- key: 1,
503
- disabled: c(y),
504
- onInsert: c(O)
505
- }, null, 8, ["disabled", "onInsert"])) : v("", !0)])) : v("", !0)]));
506
- }
507
- }), [["__scopeId", "data-v-fca026e4"]]);
508
- //#endregion
509
- export { G as a, Z as i, $ as n, R as o, Q as r, L as s, fe as t };