@templatical/editor 0.56.1 → 0.57.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 (303) hide show
  1. package/README.md +1 -1
  2. package/dist/{AiAltTextPopover-CpZ7UeAZ.js → AiAltTextPopover-BiZHthAB.js} +5 -5
  3. package/dist/{AiAltTextReview-LYxvn7Qe.js → AiAltTextReview-BwhROHiF.js} +6 -6
  4. package/dist/{AiChatPanel-Cy05P-iO.js → AiChatPanel-Cros4ZCM.js} +22 -25
  5. package/dist/AiPanels-D_CdHqFZ.js +26 -0
  6. package/dist/{AiRewriteMenu-DgqJHnza.js → AiRewriteMenu-6b8GNj64.js} +53 -53
  7. package/dist/{BlockIssueBadge-CxHJmuOh.js → BlockIssueBadge-i2cZy5PB.js} +5 -5
  8. package/dist/{BlockPreviewCanvas-DEmNZkEG.js → BlockPreviewCanvas-BAYIy-QJ.js} +27 -27
  9. package/dist/{CloudHeaderExtras-Cqhw-jMz.js → CloudHeaderExtras-CJsXi4Ku.js} +2 -2
  10. package/dist/{CloudPanels-Bmlf05Il.js → CloudPanels-Cb54vtYC.js} +6 -6
  11. package/dist/{CollaborationNotices-C27GCMvK.js → CollaborationNotices-DkYX-ose.js} +3 -3
  12. package/dist/{CollaboratorBar-CLQjksX-.js → CollaboratorBar-xDweDvB6.js} +3 -3
  13. package/dist/CommentsPanel-t3w16YUl.js +23 -0
  14. package/dist/CommentsSidebar-B3M90RY_.js +516 -0
  15. package/dist/{CountdownBlock-D8dqjm3F.js → CountdownBlock-BrR2uqM3.js} +4 -4
  16. package/dist/{CountdownToolbar-IjpCOjCd.js → CountdownToolbar-CTbJPh8B.js} +7 -7
  17. package/dist/{IssuesPanel-uwuzeMSW.js → IssuesPanel-BUKc8lld.js} +13 -13
  18. package/dist/{LanguageMenu-C-eQ0lFy.js → LanguageMenu-DruJAMET.js} +16 -16
  19. package/dist/{LoadingTrack-BG8cg9xi.js → LoadingTrack-c4SeD16s.js} +1 -1
  20. package/dist/{LocaleNotices-CDK_9D7P.js → LocaleNotices-D6zk-QCL.js} +5 -5
  21. package/dist/{LogicTagInsertButton-BSolF7Fd.js → LogicTagInsertButton-Ci7V0Exe.js} +65 -65
  22. package/dist/{MediaEditModal-C8yc9dxt.js → MediaEditModal-BxbwZxnf.js} +4 -4
  23. package/dist/{MediaPanels-FI4I8asn.js → MediaPanels-BiUxsTMM.js} +2 -2
  24. package/dist/{MergeTagInput-B1nl2ZMT.js → MergeTagInput-BA89v7KJ.js} +2 -2
  25. package/dist/{MergeTagModeToggle-DXvb80OE.js → MergeTagModeToggle-De_FNmcG.js} +7 -7
  26. package/dist/{MergeTagTextarea-DJlf3VbS.js → MergeTagTextarea-BRMB24Dg.js} +9 -9
  27. package/dist/{ParagraphEditor-Dqco128s.js → ParagraphEditor-DYqh0kEa.js} +51 -51
  28. package/dist/{RestoreVersionDialog-hqLCuGV5.js → RestoreVersionDialog-CRkyFafq.js} +5 -5
  29. package/dist/{RichTextEditorContent-xIEF0Y3Z.js → RichTextEditorContent-WeCqqCy3.js} +10 -10
  30. package/dist/{SaveBlockDialog-CQlCP_XC.js → SaveBlockDialog-D992yyO4.js} +15 -15
  31. package/dist/{SavedBlocksBrowserModal-BXA32Fx6.js → SavedBlocksBrowserModal-tH74h2Tz.js} +13 -13
  32. package/dist/{SavedBlocksPanels-BKUzbamj.js → SavedBlocksPanels-BuzEwYfp.js} +2 -2
  33. package/dist/{SavedBlocksPickBar-BlvF-4UF.js → SavedBlocksPickBar-DbULBPsI.js} +4 -4
  34. package/dist/{TemplateSettings-CYFtR8zv.js → TemplateSettings-eMBAy_wd.js} +14 -14
  35. package/dist/{TestEmailModal-BbaL17HO.js → TestEmailModal-hb9iopaZ.js} +13 -13
  36. package/dist/{TestEmailPanel-DhB1CSpg.js → TestEmailPanel-DbeZjj0u.js} +2 -2
  37. package/dist/{TitleEditor-3BRl8u5l.js → TitleEditor-CisDioGi.js} +14 -14
  38. package/dist/{ToggleSwitch-R3wCCYE6.js → ToggleSwitch-BIPdFWUr.js} +1 -1
  39. package/dist/{Toolbar-pzNIakGM.js → Toolbar-BUVRjylH.js} +218 -218
  40. package/dist/{TplModal-WNuWhHZm.js → TplModal-BPPP-uM6.js} +6 -6
  41. package/dist/{VersionHistoryMenu--T-Qp_mH.js → VersionHistoryMenu-Cd2IaHgT.js} +10 -10
  42. package/dist/{VersionHistoryPanels-BPubvYIE.js → VersionHistoryPanels-BNONrE-8.js} +2 -2
  43. package/dist/{VersionPreviewBanner-ClL3Wkln.js → VersionPreviewBanner-lkAf7tc8.js} +3 -3
  44. package/dist/{WrapperBlock-CjfCPceb.js → WrapperBlock-B3UAv5kv.js} +5 -5
  45. package/dist/{blockTypeIcons-12OMwVyN.js → blockTypeIcons-BPPpqFc2.js} +3 -3
  46. package/dist/bundle-stats.json +7 -7
  47. package/dist/cdn/chunks/{AiAltTextPopover-PFjTrl0y.js → AiAltTextPopover-CafZSF50.js} +5 -5
  48. package/dist/cdn/chunks/{AiAltTextPopover-PFjTrl0y.js.map → AiAltTextPopover-CafZSF50.js.map} +1 -1
  49. package/dist/cdn/chunks/{AiAltTextReview-BMjzvApH.js → AiAltTextReview-BJcaqyp5.js} +6 -6
  50. package/dist/cdn/chunks/{AiAltTextReview-BMjzvApH.js.map → AiAltTextReview-BJcaqyp5.js.map} +1 -1
  51. package/dist/cdn/chunks/{AiChatPanel-C2gpq4kP.js → AiChatPanel-DNCUpV8n.js} +15 -18
  52. package/dist/cdn/chunks/AiChatPanel-DNCUpV8n.js.map +1 -0
  53. package/dist/cdn/chunks/AiPanels-IV0VEkBL.js +27 -0
  54. package/dist/cdn/chunks/AiPanels-IV0VEkBL.js.map +1 -0
  55. package/dist/cdn/chunks/{AiRewriteMenu-CnkyjPEu.js → AiRewriteMenu-DFUZWA7e.js} +58 -58
  56. package/dist/cdn/chunks/AiRewriteMenu-DFUZWA7e.js.map +1 -0
  57. package/dist/cdn/chunks/{BlockIssueBadge-DncZ-HDf.js → BlockIssueBadge-DIlFDDwh.js} +5 -5
  58. package/dist/cdn/chunks/BlockIssueBadge-DIlFDDwh.js.map +1 -0
  59. package/dist/cdn/chunks/{BlockPreviewCanvas-CCSEzL46.js → BlockPreviewCanvas-D0VhkzY8.js} +28 -28
  60. package/dist/cdn/chunks/BlockPreviewCanvas-D0VhkzY8.js.map +1 -0
  61. package/dist/cdn/chunks/{CloudHeaderExtras-uUJYJFJ6.js → CloudHeaderExtras-CazfMn6A.js} +3 -3
  62. package/dist/cdn/chunks/{CloudHeaderExtras-uUJYJFJ6.js.map → CloudHeaderExtras-CazfMn6A.js.map} +1 -1
  63. package/dist/cdn/chunks/{CloudPanels-CRztnw4M.js → CloudPanels-BiU1MD-4.js} +5 -5
  64. package/dist/cdn/chunks/CloudPanels-BiU1MD-4.js.map +1 -0
  65. package/dist/cdn/chunks/{CollaborationNotices-IuLYT2x7.js → CollaborationNotices-DGA8XRZJ.js} +4 -4
  66. package/dist/cdn/chunks/{CollaborationNotices-IuLYT2x7.js.map → CollaborationNotices-DGA8XRZJ.js.map} +1 -1
  67. package/dist/cdn/chunks/{CollaboratorBar-C1ZI2xwa.js → CollaboratorBar-BWL1Shc1.js} +4 -4
  68. package/dist/cdn/chunks/{CollaboratorBar-C1ZI2xwa.js.map → CollaboratorBar-BWL1Shc1.js.map} +1 -1
  69. package/dist/cdn/chunks/CommentsPanel-4mrl4zMK.js +24 -0
  70. package/dist/cdn/chunks/CommentsPanel-4mrl4zMK.js.map +1 -0
  71. package/dist/cdn/chunks/CommentsSidebar-BJ87vc7i.js +486 -0
  72. package/dist/cdn/chunks/CommentsSidebar-BJ87vc7i.js.map +1 -0
  73. package/dist/cdn/chunks/{CountdownBlock-8aPSExrv.js → CountdownBlock-Do6oItNW.js} +5 -5
  74. package/dist/cdn/chunks/{CountdownBlock-8aPSExrv.js.map → CountdownBlock-Do6oItNW.js.map} +1 -1
  75. package/dist/cdn/chunks/{CountdownToolbar-CnWQEW5g.js → CountdownToolbar-CH8UK01N.js} +8 -8
  76. package/dist/cdn/chunks/{CountdownToolbar-CnWQEW5g.js.map → CountdownToolbar-CH8UK01N.js.map} +1 -1
  77. package/dist/cdn/chunks/{IssuesPanel-CrplCzo8.js → IssuesPanel-3NPqHXJx.js} +9 -9
  78. package/dist/cdn/chunks/IssuesPanel-3NPqHXJx.js.map +1 -0
  79. package/dist/cdn/chunks/{LanguageMenu-B6MNInCL.js → LanguageMenu-75uu4P2d.js} +105 -105
  80. package/dist/cdn/chunks/LanguageMenu-75uu4P2d.js.map +1 -0
  81. package/dist/cdn/chunks/{LoadingTrack-DUYcDHOV.js → LoadingTrack-o-89hApJ.js} +2 -2
  82. package/dist/cdn/chunks/{LoadingTrack-DUYcDHOV.js.map → LoadingTrack-o-89hApJ.js.map} +1 -1
  83. package/dist/cdn/chunks/{LocaleNotices-TxeAl8Iq.js → LocaleNotices-CUN5K5QJ.js} +5 -5
  84. package/dist/cdn/chunks/{LocaleNotices-TxeAl8Iq.js.map → LocaleNotices-CUN5K5QJ.js.map} +1 -1
  85. package/dist/cdn/chunks/{LogicTagInsertButton-DvSVx2DB.js → LogicTagInsertButton-C5L73hYh.js} +12 -12
  86. package/dist/cdn/chunks/{LogicTagInsertButton-DvSVx2DB.js.map → LogicTagInsertButton-C5L73hYh.js.map} +1 -1
  87. package/dist/cdn/chunks/{MediaEditModal-tGK6htBl.js → MediaEditModal-BHTMNHx0.js} +4 -4
  88. package/dist/cdn/chunks/{MediaEditModal-tGK6htBl.js.map → MediaEditModal-BHTMNHx0.js.map} +1 -1
  89. package/dist/cdn/chunks/{MediaPanels-BVrQYz2C.js → MediaPanels-BlianNRh.js} +3 -3
  90. package/dist/cdn/chunks/{MediaPanels-BVrQYz2C.js.map → MediaPanels-BlianNRh.js.map} +1 -1
  91. package/dist/cdn/chunks/{MergeTagInput-DeuNH3re.js → MergeTagInput-D8cbnnZu.js} +3 -3
  92. package/dist/cdn/chunks/{MergeTagInput-DeuNH3re.js.map → MergeTagInput-D8cbnnZu.js.map} +1 -1
  93. package/dist/cdn/chunks/{MergeTagModeToggle-D7maMGIM.js → MergeTagModeToggle-D-RhwBsO.js} +6 -6
  94. package/dist/cdn/chunks/{MergeTagModeToggle-D7maMGIM.js.map → MergeTagModeToggle-D-RhwBsO.js.map} +1 -1
  95. package/dist/cdn/chunks/{MergeTagTextarea-B2xxIU3e.js → MergeTagTextarea-CAJIi2FE.js} +7 -7
  96. package/dist/cdn/chunks/{MergeTagTextarea-B2xxIU3e.js.map → MergeTagTextarea-CAJIi2FE.js.map} +1 -1
  97. package/dist/cdn/chunks/{ParagraphEditor-Bx_Hlw8d.js → ParagraphEditor-sRPXZDzp.js} +30 -30
  98. package/dist/cdn/chunks/{ParagraphEditor-Bx_Hlw8d.js.map → ParagraphEditor-sRPXZDzp.js.map} +1 -1
  99. package/dist/cdn/chunks/{RestoreVersionDialog-CPrrWTsT.js → RestoreVersionDialog-CJK-14PX.js} +5 -5
  100. package/dist/cdn/chunks/RestoreVersionDialog-CJK-14PX.js.map +1 -0
  101. package/dist/cdn/chunks/{RichTextEditorContent-Dze4C9VI.js → RichTextEditorContent-DU0wtA_j.js} +9 -9
  102. package/dist/cdn/chunks/{RichTextEditorContent-Dze4C9VI.js.map → RichTextEditorContent-DU0wtA_j.js.map} +1 -1
  103. package/dist/cdn/chunks/{SaveBlockDialog-CXVwnfsy.js → SaveBlockDialog-C8hY9xA-.js} +13 -13
  104. package/dist/cdn/chunks/{SaveBlockDialog-CXVwnfsy.js.map → SaveBlockDialog-C8hY9xA-.js.map} +1 -1
  105. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BDTmenOE.js → SavedBlocksBrowserModal-B3nFAgAa.js} +9 -9
  106. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BDTmenOE.js.map → SavedBlocksBrowserModal-B3nFAgAa.js.map} +1 -1
  107. package/dist/cdn/chunks/{SavedBlocksPanels-B41Rk_v1.js → SavedBlocksPanels-CQenugHO.js} +3 -3
  108. package/dist/cdn/chunks/{SavedBlocksPanels-B41Rk_v1.js.map → SavedBlocksPanels-CQenugHO.js.map} +1 -1
  109. package/dist/cdn/chunks/{SavedBlocksPickBar-B97z_rFH.js → SavedBlocksPickBar-DzUP4IYv.js} +5 -5
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-B97z_rFH.js.map → SavedBlocksPickBar-DzUP4IYv.js.map} +1 -1
  111. package/dist/cdn/chunks/{TemplateSettings-YwwRbxPc.js → TemplateSettings-DnOwyN_1.js} +12 -12
  112. package/dist/cdn/chunks/{TemplateSettings-YwwRbxPc.js.map → TemplateSettings-DnOwyN_1.js.map} +1 -1
  113. package/dist/cdn/chunks/{TestEmailModal-BiFP2Cbx.js → TestEmailModal-BFqmfOZ1.js} +10 -10
  114. package/dist/cdn/chunks/{TestEmailModal-BiFP2Cbx.js.map → TestEmailModal-BFqmfOZ1.js.map} +1 -1
  115. package/dist/cdn/chunks/{TestEmailPanel-BrivPMk2.js → TestEmailPanel-DFOhhaa9.js} +3 -3
  116. package/dist/cdn/chunks/{TestEmailPanel-BrivPMk2.js.map → TestEmailPanel-DFOhhaa9.js.map} +1 -1
  117. package/dist/cdn/chunks/{TitleEditor-CzPkkL2s.js → TitleEditor-ChPXTB9T.js} +13 -13
  118. package/dist/cdn/chunks/{TitleEditor-CzPkkL2s.js.map → TitleEditor-ChPXTB9T.js.map} +1 -1
  119. package/dist/cdn/chunks/{ToggleSwitch-BSkySwA1.js → ToggleSwitch-C0w0srN_.js} +2 -2
  120. package/dist/cdn/chunks/{ToggleSwitch-BSkySwA1.js.map → ToggleSwitch-C0w0srN_.js.map} +1 -1
  121. package/dist/cdn/chunks/{Toolbar-VH07SzX7.js → Toolbar-bbO5WoKo.js} +302 -302
  122. package/dist/cdn/chunks/Toolbar-bbO5WoKo.js.map +1 -0
  123. package/dist/cdn/chunks/{TplModal-DMe6J811.js → TplModal-Bg97XHIJ.js} +6 -6
  124. package/dist/cdn/chunks/{TplModal-DMe6J811.js.map → TplModal-Bg97XHIJ.js.map} +1 -1
  125. package/dist/cdn/chunks/{VersionHistoryMenu-DkwbKhBl.js → VersionHistoryMenu-BNPxnWiO.js} +9 -9
  126. package/dist/cdn/chunks/{VersionHistoryMenu-DkwbKhBl.js.map → VersionHistoryMenu-BNPxnWiO.js.map} +1 -1
  127. package/dist/cdn/chunks/{VersionHistoryPanels-CgxhMRAl.js → VersionHistoryPanels-CyyRXWPU.js} +3 -3
  128. package/dist/cdn/chunks/{VersionHistoryPanels-CgxhMRAl.js.map → VersionHistoryPanels-CyyRXWPU.js.map} +1 -1
  129. package/dist/cdn/chunks/{VersionPreviewBanner-WVBDBrwQ.js → VersionPreviewBanner-BldFvgxJ.js} +4 -4
  130. package/dist/cdn/chunks/{VersionPreviewBanner-WVBDBrwQ.js.map → VersionPreviewBanner-BldFvgxJ.js.map} +1 -1
  131. package/dist/cdn/chunks/{WrapperBlock-CCCIcqe2.js → WrapperBlock-ZBCf7Y8u.js} +6 -6
  132. package/dist/cdn/chunks/{WrapperBlock-CCCIcqe2.js.map → WrapperBlock-ZBCf7Y8u.js.map} +1 -1
  133. package/dist/cdn/chunks/{blockTypeIcons-CzYA5DF9.js → blockTypeIcons-19xd5ZPi.js} +6 -6
  134. package/dist/cdn/chunks/{blockTypeIcons-CzYA5DF9.js.map → blockTypeIcons-19xd5ZPi.js.map} +1 -1
  135. package/dist/cdn/chunks/{composables-D3lsO7Io.js → composables-CMBZad02.js} +750 -730
  136. package/dist/cdn/chunks/composables-CMBZad02.js.map +1 -0
  137. package/dist/cdn/chunks/{createCloudRuntime-CE79GB1H.js → createCloudRuntime-BHGFjpek.js} +157 -143
  138. package/dist/cdn/chunks/createCloudRuntime-BHGFjpek.js.map +1 -0
  139. package/dist/cdn/chunks/da-CYWJkrTg.js +97 -0
  140. package/dist/cdn/chunks/da-CYWJkrTg.js.map +1 -0
  141. package/dist/cdn/chunks/da-qQzj0QGy.js +950 -0
  142. package/dist/cdn/chunks/da-qQzj0QGy.js.map +1 -0
  143. package/dist/cdn/chunks/{dist-BzXULHvI.js → dist-BtWMy7UQ.js} +3 -3
  144. package/dist/cdn/chunks/{dist-BzXULHvI.js.map → dist-BtWMy7UQ.js.map} +1 -1
  145. package/dist/cdn/chunks/{dist-Cf1pSluo.js → dist-zu1jwYIS.js} +4 -4
  146. package/dist/cdn/chunks/{dist-Cf1pSluo.js.map → dist-zu1jwYIS.js.map} +1 -1
  147. package/dist/cdn/chunks/{draggable-DepKdldn.js → draggable-IRVFEZ-b.js} +1535 -1500
  148. package/dist/cdn/chunks/draggable-IRVFEZ-b.js.map +1 -0
  149. package/dist/cdn/chunks/{editor-modal-CN69NlOK.js → editor-modal-CarOiAYJ.js} +77 -76
  150. package/dist/cdn/chunks/{editor-modal-CN69NlOK.js.map → editor-modal-CarOiAYJ.js.map} +1 -1
  151. package/dist/cdn/chunks/en-B4s_0ryk.js +1 -0
  152. package/dist/cdn/chunks/{extensions-8dlM-fU4.js → extensions-Beg0g2wm.js} +7 -7
  153. package/dist/cdn/chunks/{extensions-8dlM-fU4.js.map → extensions-Beg0g2wm.js.map} +1 -1
  154. package/dist/cdn/chunks/{icons-DHExFLlT.js → icons-Cl4oR2mf.js} +73 -73
  155. package/dist/cdn/chunks/icons-Cl4oR2mf.js.map +1 -0
  156. package/dist/cdn/chunks/keys-BQqbBUag.js +11 -0
  157. package/dist/cdn/chunks/keys-BQqbBUag.js.map +1 -0
  158. package/dist/cdn/chunks/{normalizeMergeTagMarkup-aWjkotui.js → normalizeMergeTagMarkup-B8yU4usU.js} +55 -55
  159. package/dist/cdn/chunks/{normalizeMergeTagMarkup-aWjkotui.js.map → normalizeMergeTagMarkup-B8yU4usU.js.map} +1 -1
  160. package/dist/cdn/chunks/{preRenderCustomBlocks-Dn6dFUwx.js → preRenderCustomBlocks-CPHm2GOQ.js} +2 -2
  161. package/dist/cdn/chunks/{preRenderCustomBlocks-Dn6dFUwx.js.map → preRenderCustomBlocks-CPHm2GOQ.js.map} +1 -1
  162. package/dist/cdn/chunks/{sanitizeHtml-B3njfkSy.js → sanitizeHtml-B7LC0gKK.js} +22 -11
  163. package/dist/cdn/chunks/sanitizeHtml-B7LC0gKK.js.map +1 -0
  164. package/dist/cdn/chunks/{socialIcons-BFgc3qqJ.js → socialIcons-D9D02_y5.js} +575 -524
  165. package/dist/cdn/chunks/socialIcons-D9D02_y5.js.map +1 -0
  166. package/dist/cdn/chunks/{src-C9JWWxAk.js → src-BCrSqaj8.js} +108 -95
  167. package/dist/cdn/chunks/src-BCrSqaj8.js.map +1 -0
  168. package/dist/cdn/chunks/{src-GgKlXNxy.js → src-BO4aXl_Y.js} +232 -228
  169. package/dist/cdn/chunks/src-BO4aXl_Y.js.map +1 -0
  170. package/dist/cdn/chunks/{src-mXG-Of9A.js → src-DeywvttP.js} +812 -780
  171. package/dist/cdn/chunks/src-DeywvttP.js.map +1 -0
  172. package/dist/cdn/chunks/{tiptap-C940SvId.js → tiptap-BPiZqxCt.js} +40 -31
  173. package/dist/cdn/chunks/tiptap-BPiZqxCt.js.map +1 -0
  174. package/dist/cdn/chunks/{useCloudI18n-Xsih9yRH.js → useCloudI18n-Dr4S2TRW.js} +3 -3
  175. package/dist/cdn/chunks/{useCloudI18n-Xsih9yRH.js.map → useCloudI18n-Dr4S2TRW.js.map} +1 -1
  176. package/dist/cdn/chunks/useEditorRoot-B_kf_k-g.js +9 -0
  177. package/dist/cdn/chunks/{useEditorRoot-Beau2Z_T.js.map → useEditorRoot-B_kf_k-g.js.map} +1 -1
  178. package/dist/cdn/chunks/{useI18n-D8s7HtTn.js → useI18n-CSf-ZpcM.js} +3 -3
  179. package/dist/cdn/chunks/{useI18n-D8s7HtTn.js.map → useI18n-CSf-ZpcM.js.map} +1 -1
  180. package/dist/cdn/chunks/useLocalizedDisplay-oykFcYrW.js +33 -0
  181. package/dist/cdn/chunks/{useLocalizedDisplay-Bgg4qpev.js.map → useLocalizedDisplay-oykFcYrW.js.map} +1 -1
  182. package/dist/cdn/chunks/{useLogicTag-B0PDeDxl.js → useLogicTag-D_qg9qqO.js} +4 -4
  183. package/dist/cdn/chunks/{useLogicTag-B0PDeDxl.js.map → useLogicTag-D_qg9qqO.js.map} +1 -1
  184. package/dist/cdn/chunks/{useMergeTag-BSU75bKk.js → useMergeTag-VLnVHtxV.js} +4 -4
  185. package/dist/cdn/chunks/{useMergeTag-BSU75bKk.js.map → useMergeTag-VLnVHtxV.js.map} +1 -1
  186. package/dist/cdn/chunks/{usePopoverPosition-esO6wjvU.js → usePopoverPosition-BJFFi8x6.js} +3 -3
  187. package/dist/cdn/chunks/{usePopoverPosition-esO6wjvU.js.map → usePopoverPosition-BJFFi8x6.js.map} +1 -1
  188. package/dist/cdn/chunks/{useScrollToBlock-CJuUu7Xj.js → useScrollToBlock-MI4PP5lk.js} +3 -3
  189. package/dist/cdn/chunks/{useScrollToBlock-CJuUu7Xj.js.map → useScrollToBlock-MI4PP5lk.js.map} +1 -1
  190. package/dist/cdn/chunks/{withCurrentFont-QqBilClC.js → withCurrentFont-m6TtR0dC.js} +2 -2
  191. package/dist/cdn/chunks/{withCurrentFont-QqBilClC.js.map → withCurrentFont-m6TtR0dC.js.map} +1 -1
  192. package/dist/cdn/editor.css +1 -1
  193. package/dist/cdn/editor.js +685 -663
  194. package/dist/cdn/editor.js.map +1 -1
  195. package/dist/{check-CcuCoJDh.js → check-C7ua4TAK.js} +1 -1
  196. package/dist/{chevron-down-BfYIbFbC.js → chevron-down-DftQrAkI.js} +1 -1
  197. package/dist/{chevron-right-DyjFqY35.js → chevron-right-B-DULGbg.js} +1 -1
  198. package/dist/{chevron-up-BHEIxuS-.js → chevron-up-CeYsyD8c.js} +1 -1
  199. package/dist/{circle-alert-Tq7kAh9S.js → circle-exclamation-point-DHjORV_I.js} +3 -3
  200. package/dist/{clock-Df0ZiXwQ.js → clock-CajOtLEZ.js} +1 -1
  201. package/dist/{composables-DreAt_0A.js → composables-Cq7rsxRc.js} +1123 -1103
  202. package/dist/{createCloudRuntime-CL4tUlDC.js → createCloudRuntime-CHsFF8DI.js} +42 -28
  203. package/dist/{createLucideIcon-CfBdtoUw.js → createLucideIcon-D-mELTSY.js} +6 -6
  204. package/dist/da-CYWJkrTg.js +95 -0
  205. package/dist/da-qQzj0QGy.js +948 -0
  206. package/dist/{dist-CX7skkvG.js → dist-A328tG0Z.js} +2 -2
  207. package/dist/{dist-BjzK1g4Z.js → dist-B15BvV94.js} +2 -2
  208. package/dist/{dist-DDytHU_6.js → dist-B3G4Yvpd.js} +3 -3
  209. package/dist/{dist-CiYotUR8.js → dist-B6ptxfPo.js} +3 -3
  210. package/dist/{dist-0GWMyHtM.js → dist-BmV-2uBJ.js} +2 -2
  211. package/dist/{dist-CCLRTtJP.js → dist-BxKFi2h_.js} +5 -5
  212. package/dist/{dist-BMUUt3zJ.js → dist-C0hVefGI.js} +791 -759
  213. package/dist/{dist-CsknfjrZ.js → dist-CMBOqk9I.js} +7 -7
  214. package/dist/{dist-ZrT0vAB6.js → dist-CXTsTO5h.js} +2 -2
  215. package/dist/{dist-Dq9VnANT.js → dist-D5BUcCjv.js} +2 -2
  216. package/dist/dist-D9cbSSSx.js +4 -0
  217. package/dist/{dist-BsumKKh9.js → dist-DAdrn64r.js} +2 -2
  218. package/dist/{dist-C3avsUq9.js → dist-DENg3ORe.js} +31 -22
  219. package/dist/{dist-Cr1CLCmx.js → dist-DI_8rB1X.js} +2 -2
  220. package/dist/dist-ELLEk-lS.js +4 -0
  221. package/dist/{editor-modal-BD32TXws.js → editor-modal-CgsaLpwB.js} +20 -19
  222. package/dist/en-DBLcB-CW.js +1 -0
  223. package/dist/{extensions-DKxHlSd7.js → extensions-BSXjPQEc.js} +21 -21
  224. package/dist/{eye-B3psrAqd.js → eye-fe5sKF_K.js} +1 -1
  225. package/dist/{image-C3yuPDxx.js → image-CUC7SZiW.js} +1 -1
  226. package/dist/index.d.ts +6 -4
  227. package/dist/{info-DKja7A68.js → info-DDbLU4pT.js} +1 -1
  228. package/dist/keys-D9oKZN1h.js +9 -0
  229. package/dist/{link-DhzPI4Hn.js → link-C2icj0iH.js} +1 -1
  230. package/dist/{list-DVGn7Ik2.js → list-KYC_Jb5A.js} +1 -1
  231. package/dist/{loader-circle-DqKWsMHO.js → loader-circle-DmyagWpc.js} +1 -1
  232. package/dist/{message-circle-C4TonoBs.js → message-circle-ijyWn6UJ.js} +1 -1
  233. package/dist/{normalizeMergeTagMarkup-Da9JAgx7.js → normalizeMergeTagMarkup-CBLCQe02.js} +82 -82
  234. package/dist/{package-9OkiEO4S.js → package-CKYm_jQY.js} +1 -1
  235. package/dist/{pencil-M9vkOB7C.js → pencil-C2TRSR-Y.js} +1 -1
  236. package/dist/{plus-DxZiv9YC.js → plus-CotJVDxb.js} +1 -1
  237. package/dist/{preRenderCustomBlocks-CdqSp2P7.js → preRenderCustomBlocks-e2OlY4aU.js} +3 -3
  238. package/dist/{refresh-cw-UY8_sdFG.js → refresh-cw-CuCRV6D5.js} +1 -1
  239. package/dist/{rotate-ccw-BFTGCpHn.js → rotate-ccw-BlnQ3y6R.js} +1 -1
  240. package/dist/{runtime-dom.esm-bundler-DlHp8xgy.js → runtime-dom.esm-bundler-nN-jsqr1.js} +20 -20
  241. package/dist/{sanitizeHtml-wBibnBF4.js → sanitizeHtml-Dfn-fH17.js} +25 -14
  242. package/dist/{search-RuGJnMEn.js → search-Dxw6oFrZ.js} +1 -1
  243. package/dist/{send-DGB1ar02.js → send-C-blQBZ9.js} +1 -1
  244. package/dist/{smartphone-CVA29CU_.js → smartphone-rLz4X-Dd.js} +1 -1
  245. package/dist/{socialIcons-oo4uL16Y.js → socialIcons-BZRLo0eT.js} +600 -549
  246. package/dist/{sparkles-IHfEwEcd.js → sparkles-JWQlUiSn.js} +1 -1
  247. package/dist/{square-_Cl44UU6.js → square-DshDy1Il.js} +1 -1
  248. package/dist/style.css +1 -1
  249. package/dist/templatical-editor.js +748 -726
  250. package/dist/{text-align-start-Dqk2Xt_Q.js → text-align-start-CyasaQtr.js} +13 -13
  251. package/dist/{trash-Cr7rD5Hh.js → trash-B1lZp2Tv.js} +1 -1
  252. package/dist/{triangle-alert-CKcpwtUj.js → triangle-exclamation-point-BhJvBEoT.js} +3 -3
  253. package/dist/{upload-DR9pqVON.js → upload-CNK8JX38.js} +1 -1
  254. package/dist/{useCloudI18n-BczJoFf4.js → useCloudI18n-HhCZYRV6.js} +2 -2
  255. package/dist/useEditorRoot-B0Njczhx.js +7 -0
  256. package/dist/{useI18n-zeWYtWSv.js → useI18n-CM9vKbYc.js} +2 -2
  257. package/dist/{cdn/chunks/useLocalizedDisplay-Bgg4qpev.js → useLocalizedDisplay-B7tlQF4g.js} +2 -4
  258. package/dist/{useLogicTag-B4Zpk3eo.js → useLogicTag-k_y-4o4W.js} +3 -3
  259. package/dist/{useMergeTag-B5qlq8px.js → useMergeTag-BiZ6XOdL.js} +3 -3
  260. package/dist/{usePopoverPosition-Br3zt_MQ.js → usePopoverPosition-CVRzzLkC.js} +2 -2
  261. package/dist/{useScrollToBlock-BfOzc1Z6.js → useScrollToBlock-vf_KD0FM.js} +3 -3
  262. package/dist/{vue.runtime.esm-bundler-BJXc_Mri.js → vue.runtime.esm-bundler-BE5V8ADU.js} +414 -362
  263. package/dist/{withCurrentFont-m_PHcOD0.js → withCurrentFont-CPhRujet.js} +1 -1
  264. package/dist/{x-DZSFHafL.js → x-DbLX5Qdm.js} +1 -1
  265. package/package.json +23 -23
  266. package/dist/AiPanels-CwKmXzyr.js +0 -31
  267. package/dist/CommentsPanel-B5NqPMmY.js +0 -16
  268. package/dist/CommentsSidebar-BDrcrDxS.js +0 -526
  269. package/dist/cdn/chunks/AiChatPanel-C2gpq4kP.js.map +0 -1
  270. package/dist/cdn/chunks/AiPanels-Cx3PE2mE.js +0 -32
  271. package/dist/cdn/chunks/AiPanels-Cx3PE2mE.js.map +0 -1
  272. package/dist/cdn/chunks/AiRewriteMenu-CnkyjPEu.js.map +0 -1
  273. package/dist/cdn/chunks/BlockIssueBadge-DncZ-HDf.js.map +0 -1
  274. package/dist/cdn/chunks/BlockPreviewCanvas-CCSEzL46.js.map +0 -1
  275. package/dist/cdn/chunks/CloudPanels-CRztnw4M.js.map +0 -1
  276. package/dist/cdn/chunks/CommentsPanel-lgjJNrrY.js +0 -18
  277. package/dist/cdn/chunks/CommentsPanel-lgjJNrrY.js.map +0 -1
  278. package/dist/cdn/chunks/CommentsSidebar-DTold7iy.js +0 -496
  279. package/dist/cdn/chunks/CommentsSidebar-DTold7iy.js.map +0 -1
  280. package/dist/cdn/chunks/IssuesPanel-CrplCzo8.js.map +0 -1
  281. package/dist/cdn/chunks/LanguageMenu-B6MNInCL.js.map +0 -1
  282. package/dist/cdn/chunks/RestoreVersionDialog-CPrrWTsT.js.map +0 -1
  283. package/dist/cdn/chunks/Toolbar-VH07SzX7.js.map +0 -1
  284. package/dist/cdn/chunks/composables-D3lsO7Io.js.map +0 -1
  285. package/dist/cdn/chunks/createCloudRuntime-CE79GB1H.js.map +0 -1
  286. package/dist/cdn/chunks/draggable-DepKdldn.js.map +0 -1
  287. package/dist/cdn/chunks/en-Bcz4gS9U.js +0 -1
  288. package/dist/cdn/chunks/icons-DHExFLlT.js.map +0 -1
  289. package/dist/cdn/chunks/keys-BUmIvYy3.js +0 -11
  290. package/dist/cdn/chunks/keys-BUmIvYy3.js.map +0 -1
  291. package/dist/cdn/chunks/sanitizeHtml-B3njfkSy.js.map +0 -1
  292. package/dist/cdn/chunks/socialIcons-BFgc3qqJ.js.map +0 -1
  293. package/dist/cdn/chunks/src-C9JWWxAk.js.map +0 -1
  294. package/dist/cdn/chunks/src-GgKlXNxy.js.map +0 -1
  295. package/dist/cdn/chunks/src-mXG-Of9A.js.map +0 -1
  296. package/dist/cdn/chunks/tiptap-C940SvId.js.map +0 -1
  297. package/dist/cdn/chunks/useEditorRoot-Beau2Z_T.js +0 -9
  298. package/dist/dist-B_0FPmoy.js +0 -4
  299. package/dist/dist-DKV9m4Uu.js +0 -4
  300. package/dist/en-Dgs_-NBw.js +0 -1
  301. package/dist/keys-w_VRjoMu.js +0 -9
  302. package/dist/useEditorRoot-BcXKhM_8.js +0 -7
  303. package/dist/useLocalizedDisplay-Cbhx208c.js +0 -31
@@ -1,4 +1,4 @@
1
- import { Pt as e, ot as t } from "./dist-BMUUt3zJ.js";
1
+ import { It as e, ct as t } from "./dist-C0hVefGI.js";
2
2
  // src/utils/withCurrentFont.ts
3
3
  function n(t) {
4
4
  return t && e(t).length > 0 ? t : "";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-CfBdtoUw.js";
1
+ import { t as e } from "./createLucideIcon-D-mELTSY.js";
2
2
  var t = e({
3
3
  name: "x",
4
4
  size: 24,
package/package.json CHANGED
@@ -1,26 +1,26 @@
1
1
  {
2
2
  "name": "@templatical/editor",
3
3
  "description": "Vue 3 visual drag-and-drop email editor powered by Templatical",
4
- "version": "0.56.1",
4
+ "version": "0.57.1",
5
5
  "bugs": "https://github.com/templatical/sdk/issues",
6
6
  "devDependencies": {
7
- "@lucide/vue": "^1.67.0",
8
- "@templatical/core": "0.56.1",
9
- "@templatical/media-library": "0.56.1",
10
- "@templatical/types": "0.56.1",
11
- "@tiptap/core": "^3.32.2",
12
- "@tiptap/extension-color": "^3.32.2",
13
- "@tiptap/extension-font-family": "^3.32.2",
14
- "@tiptap/extension-highlight": "^3.32.2",
15
- "@tiptap/extension-link": "^3.32.2",
16
- "@tiptap/extension-subscript": "^3.32.2",
17
- "@tiptap/extension-superscript": "^3.32.2",
18
- "@tiptap/extension-text-align": "^3.32.2",
19
- "@tiptap/extension-text-style": "^3.32.2",
20
- "@tiptap/extension-underline": "^3.32.2",
21
- "@tiptap/starter-kit": "^3.32.2",
22
- "@tiptap/suggestion": "^3.32.2",
23
- "@tiptap/vue-3": "^3.32.2",
7
+ "@lucide/vue": "^1.69.0",
8
+ "@templatical/core": "0.57.1",
9
+ "@templatical/media-library": "0.57.1",
10
+ "@templatical/types": "0.57.1",
11
+ "@tiptap/core": "^3.32.3",
12
+ "@tiptap/extension-color": "^3.32.3",
13
+ "@tiptap/extension-font-family": "^3.32.3",
14
+ "@tiptap/extension-highlight": "^3.32.3",
15
+ "@tiptap/extension-link": "^3.32.3",
16
+ "@tiptap/extension-subscript": "^3.32.3",
17
+ "@tiptap/extension-superscript": "^3.32.3",
18
+ "@tiptap/extension-text-align": "^3.32.3",
19
+ "@tiptap/extension-text-style": "^3.32.3",
20
+ "@tiptap/extension-underline": "^3.32.3",
21
+ "@tiptap/starter-kit": "^3.32.3",
22
+ "@tiptap/suggestion": "^3.32.3",
23
+ "@tiptap/vue-3": "^3.32.3",
24
24
  "@vitejs/plugin-vue": "^6.0.10",
25
25
  "@vue/test-utils": "^2.5.1",
26
26
  "@vueuse/core": "^15.0.0",
@@ -32,9 +32,9 @@
32
32
  "tailwindcss": "^4.3.4",
33
33
  "typescript": "^6.0.3",
34
34
  "vanilla-colorful": "^0.7.2",
35
- "vite": "^8.3.5",
35
+ "vite": "^8.3.6",
36
36
  "vitest": "^5.1.0",
37
- "vue": "^3.5.44",
37
+ "vue": "^3.5.45",
38
38
  "vue-draggable-plus": "^0.6.1",
39
39
  "vue-tsc": "^3.3.14"
40
40
  },
@@ -65,11 +65,11 @@
65
65
  "license": "FSL-1.1-MIT",
66
66
  "module": "./dist/templatical-editor.js",
67
67
  "optionalDependencies": {
68
- "@templatical/quality": "0.56.1"
68
+ "@templatical/quality": "0.57.1"
69
69
  },
70
70
  "peerDependencies": {
71
- "@templatical/quality": "0.56.1",
72
- "@templatical/renderer": "0.56.1",
71
+ "@templatical/quality": "0.57.1",
72
+ "@templatical/renderer": "0.57.1",
73
73
  "pusher-js": "^8.6.0"
74
74
  },
75
75
  "peerDependenciesMeta": {
@@ -1,31 +0,0 @@
1
- import { L as e, M as t, U as n, c as r, d as i, i as a, u as o, v as s, y as c } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
2
- import { t as l } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
3
- import { t as u } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
4
- // src/components/ai/AiPanels.vue
5
- var d = /*#__PURE__*/ u(/* @__PURE__ */ c({
6
- __name: "AiPanels",
7
- props: { feature: {} },
8
- setup(c) {
9
- let u = s(() => import("./AiChatPanel-Cy05P-iO.js")), d = c, f = { chat: u }, p = r(() => {
10
- let e = d.feature.panel.value;
11
- return e !== null && e in f ? f[e] : null;
12
- });
13
- return (r, s) => (t(), o(l, {
14
- "enter-active-class": "tpl-ai-slide-enter-active",
15
- "enter-from-class": "tpl:translate-x-full",
16
- "enter-to-class": "tpl:translate-x-0",
17
- "leave-active-class": "tpl-ai-slide-leave-active",
18
- "leave-from-class": "tpl:translate-x-0",
19
- "leave-to-class": "tpl:translate-x-full",
20
- mode: "out-in"
21
- }, {
22
- default: n(() => [(t(), o(a, null, [p.value ? (t(), o(e(p.value), {
23
- key: c.feature.panel.value ?? "none",
24
- feature: c.feature,
25
- onClose: s[0] ||= (e) => c.feature.close()
26
- }, null, 40, ["feature"])) : i("", !0)], 1024))]),
27
- _: 1
28
- }));
29
- }
30
- }), [["__scopeId", "data-v-3d8e197c"]]);
31
- export { d as default };
@@ -1,16 +0,0 @@
1
- import { M as e, ct as t, d as n, u as r, v as i, y as a } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
2
- // src/components/CommentsPanel.vue
3
- var o = /* @__PURE__ */ a({
4
- __name: "CommentsPanel",
5
- props: { feature: {} },
6
- setup(a) {
7
- let o = i(() => import("./CommentsSidebar-BDrcrDxS.js"));
8
- return (i, s) => a.feature.isOpen.value ? (e(), r(t(o), {
9
- key: 0,
10
- visible: a.feature.isOpen.value,
11
- feature: a.feature,
12
- onClose: s[0] ||= (e) => a.feature.close()
13
- }, null, 8, ["visible", "feature"])) : n("", !0);
14
- }
15
- });
16
- export { o as default };
@@ -1,526 +0,0 @@
1
- import { B as e, Ft as t, M as n, Mt as r, O as i, P as a, Pt as o, U as s, W as c, _ as l, c as u, ct as d, d as f, et as p, f as m, g as ee, l as h, r as g, u as _, w as te, y as v } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
2
- import { a as y, t as b } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
3
- import { u as x } from "./styleConstants-CgiNKdnc.js";
4
- import { t as S } from "./languageName-DEEOhDWI.js";
5
- import { t as ne } from "./formatRelativeTime-BTD8Ktt-.js";
6
- import { O as re, st as ie, v as ae } from "./keys-w_VRjoMu.js";
7
- import { t as oe } from "./useI18n-zeWYtWSv.js";
8
- import { t as se } from "./check-CcuCoJDh.js";
9
- import { t as C } from "./createLucideIcon-CfBdtoUw.js";
10
- import { t as ce } from "./chevron-down-BfYIbFbC.js";
11
- import { t as le } from "./chevron-up-BHEIxuS-.js";
12
- import { t as w } from "./loader-circle-DqKWsMHO.js";
13
- import { t as T } from "./message-circle-C4TonoBs.js";
14
- import { t as E } from "./pencil-M9vkOB7C.js";
15
- import { t as D } from "./send-DGB1ar02.js";
16
- import { t as O } from "./trash-Cr7rD5Hh.js";
17
- import { t as ue } from "./x-DZSFHafL.js";
18
- import { t as de } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
19
- var fe = C({
20
- name: "circle-check",
21
- size: 24,
22
- node: [["circle", {
23
- cx: "12",
24
- cy: "12",
25
- r: "10",
26
- key: "1mglay"
27
- }], ["path", {
28
- d: "m16 9-5.5 5.5L8 12",
29
- key: "xofnsj"
30
- }]],
31
- aliases: ["check-circle-2"]
32
- }), pe = C({
33
- name: "reply",
34
- size: 24,
35
- node: [["path", {
36
- d: "M20 18v-2a4 4 0 0 0-4-4H4",
37
- key: "5vmcpk"
38
- }], ["path", {
39
- d: "m9 17-5-5 5-5",
40
- key: "nvlc11"
41
- }]]
42
- }), me = ["aria-label"], he = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, ge = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]" }, _e = {
43
- key: 0,
44
- class: "tpl:ml-1 tpl:inline-flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[10px] tpl:font-semibold tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-on-primary)]"
45
- }, ve = ["aria-label"], ye = { class: "tpl:flex tpl:flex-wrap tpl:gap-1 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2" }, be = ["aria-pressed"], xe = ["aria-pressed"], Se = ["aria-pressed"], Ce = ["aria-pressed"], we = { class: "tpl:flex-1 tpl:overflow-y-auto" }, Te = {
46
- key: 0,
47
- class: "tpl:flex tpl:h-full tpl:items-center tpl:justify-center"
48
- }, Ee = {
49
- key: 1,
50
- class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:px-6 tpl:text-center"
51
- }, De = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Oe = {
52
- key: 2,
53
- class: "tpl:flex tpl:flex-col tpl:gap-3 tpl:p-3"
54
- }, ke = { class: "tpl-comment-card tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-3" }, Ae = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, je = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-1.5" }, Me = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Ne = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, Pe = {
55
- key: 1,
56
- class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
57
- }, Fe = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, Ie = ["title", "onClick"], Le = ["title", "onClick"], Re = ["title", "onClick"], ze = {
58
- key: 0,
59
- class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1 tpl:text-[10px] tpl:text-[var(--tpl-primary)]"
60
- }, Be = {
61
- key: 0,
62
- class: "tpl:mt-1 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-warning-light)] tpl:text-[var(--tpl-warning)]"
63
- }, Ve = ["onClick"], He = {
64
- key: 2,
65
- class: "tpl:mt-2"
66
- }, Ue = ["onKeydown"], We = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, Ge = ["disabled", "onClick"], Ke = {
67
- key: 3,
68
- class: "tpl:mt-1.5 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
69
- }, qe = {
70
- key: 4,
71
- class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2 tpl:rounded-md tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
72
- }, Je = { class: "tpl:flex-1" }, Ye = ["onClick"], Xe = {
73
- key: 5,
74
- class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2"
75
- }, Ze = ["title", "onClick"], Qe = ["onClick"], $e = {
76
- key: 0,
77
- class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
78
- }, et = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, tt = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-1.5" }, nt = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, rt = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, it = {
79
- key: 1,
80
- class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
81
- }, at = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, ot = ["title", "onClick"], st = ["title", "onClick"], ct = {
82
- key: 0,
83
- class: "tpl:mt-1.5"
84
- }, lt = ["onKeydown"], ut = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, dt = ["disabled", "onClick"], ft = {
85
- key: 1,
86
- class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
87
- }, pt = {
88
- key: 2,
89
- class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2 tpl:rounded-md tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
90
- }, mt = { class: "tpl:flex-1" }, ht = ["onClick"], gt = {
91
- key: 0,
92
- class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
93
- }, _t = { class: "tpl-comments-input-wrapper tpl-focus-ring-host tpl:flex tpl:items-end tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, vt = ["placeholder", "onKeydown"], yt = ["disabled", "onClick"], bt = {
94
- key: 0,
95
- class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]"
96
- }, xt = {
97
- key: 0,
98
- class: "tpl:flex tpl:min-h-[68px] tpl:items-center tpl:rounded-md tpl:px-3 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-warning-light)] tpl:text-[var(--tpl-warning)]"
99
- }, St = {
100
- key: 1,
101
- class: "tpl-comments-input-wrapper tpl-focus-ring-host tpl:flex tpl:min-h-[68px] tpl:items-end tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]"
102
- }, Ct = ["placeholder", "disabled"], wt = ["disabled"], k = /*#__PURE__*/ de(/* @__PURE__ */ v({
103
- __name: "CommentsSidebar",
104
- props: {
105
- visible: { type: Boolean },
106
- feature: {}
107
- },
108
- emits: ["close"],
109
- setup(v, { expose: C, emit: de }) {
110
- let k = v, Tt = de, { t: A, format: j } = oe(), M = ie(ae, "CommentsSidebar"), N = u(() => k.feature.headless), P = p("unresolved"), F = te(re, void 0), I = p(!1), Et = u(() => M.activeLocale?.value ?? M.content.value.settings.locale);
111
- function L(e) {
112
- return e.locale ?? M.content.value.settings.locale;
113
- }
114
- let R = p(""), z = p(null), B = p(""), V = p(null), H = p(""), U = p(/* @__PURE__ */ new Set()), W = p(null), G = p(null), K = u(() => k.feature.filterBlockId.value);
115
- e(K, (e) => {
116
- e && (P.value = "block");
117
- }, { immediate: !0 });
118
- let Dt = u(() => N.value.isLoading.value && N.value.comments.value.length === 0), Ot = u(() => {
119
- let e = /* @__PURE__ */ new Set();
120
- for (let t of M.content.value.blocks) if (e.add(t.id), t.type === "section") for (let n of t.children) for (let t of n) e.add(t.id);
121
- return e;
122
- });
123
- function kt(e) {
124
- return e ? !Ot.value.has(e) : !1;
125
- }
126
- let At = u(() => P.value !== "block" || !K.value ? !1 : k.feature.capability.isBlockSaved(K.value) === !1), q = u(() => {
127
- let e = N.value.comments.value;
128
- return P.value === "unresolved" ? e = e.filter((e) => !e.resolvedAt) : P.value === "block" && K.value && (e = e.filter((e) => e.blockId === K.value)), I.value && (e = e.filter((e) => [e, ...e.replies ?? []].some((e) => L(e) === Et.value))), e;
129
- });
130
- e(() => M.state.selectedBlockId, (e) => {
131
- P.value === "block" && e && (k.feature.filterBlockId.value = e);
132
- });
133
- function J(e, t) {
134
- P.value = e, k.feature.filterBlockId.value = e === "block" ? t ?? null : null;
135
- }
136
- function jt(e) {
137
- J("block", e);
138
- }
139
- function Mt(e) {
140
- U.value.has(e) ? U.value.delete(e) : U.value.add(e);
141
- }
142
- function Nt(e) {
143
- z.value = e, B.value = "", V.value = null, U.value.has(e) || U.value.add(e);
144
- }
145
- function Pt() {
146
- z.value = null, B.value = "";
147
- }
148
- function Y(e) {
149
- V.value = e.id, H.value = e.body, z.value = null;
150
- }
151
- function X() {
152
- V.value = null, H.value = "";
153
- }
154
- function Ft(e) {
155
- W.value = e;
156
- }
157
- function It() {
158
- W.value = null;
159
- }
160
- async function Lt() {
161
- let e = R.value.trim();
162
- if (!e || !N.value.canCreate.value) return;
163
- let t = P.value === "block" ? K.value : void 0;
164
- try {
165
- await N.value.create({
166
- body: e,
167
- blockId: t ?? void 0,
168
- locale: M.activeLocale?.value ?? M.content.value.settings.locale
169
- }), R.value = "";
170
- } catch {}
171
- }
172
- async function Rt(e) {
173
- let t = B.value.trim();
174
- if (!t || !N.value.canCreate.value) return;
175
- let n = N.value.find(e);
176
- try {
177
- await N.value.create({
178
- body: t,
179
- blockId: n?.blockId ?? void 0,
180
- parentId: e,
181
- locale: M.activeLocale?.value ?? M.content.value.settings.locale
182
- }), z.value = null, B.value = "";
183
- } catch {}
184
- }
185
- async function Z(e) {
186
- let t = H.value.trim();
187
- if (t) try {
188
- await N.value.update(e, { body: t }), V.value = null, H.value = "";
189
- } catch {}
190
- }
191
- async function zt(e) {
192
- try {
193
- await N.value.remove(e);
194
- } catch {}
195
- W.value = null;
196
- }
197
- async function Bt(e) {
198
- try {
199
- await N.value.setResolved(e.id, !e.resolvedAt);
200
- } catch {}
201
- }
202
- function Q(e) {
203
- return N.value.canUpdate.value && N.value.isOwn(e);
204
- }
205
- function Vt(e) {
206
- return N.value.canDelete.value && N.value.isOwn(e);
207
- }
208
- function Ht(e) {
209
- return ne(e, A.time) ?? e;
210
- }
211
- function Ut(e) {
212
- e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Lt());
213
- }
214
- function Wt(e, t) {
215
- e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Rt(t));
216
- }
217
- function $(e, t) {
218
- e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Z(t)), e.key === "Escape" && X();
219
- }
220
- function Gt() {
221
- i(() => {
222
- G.value?.focus();
223
- });
224
- }
225
- return C({
226
- filterByBlock: jt,
227
- focusNewComment: Gt
228
- }), (e, i) => (n(), _(b, {
229
- "enter-active-class": "tpl-comments-slide-enter-active",
230
- "enter-from-class": "tpl:translate-x-full",
231
- "enter-to-class": "tpl:translate-x-0",
232
- "leave-active-class": "tpl-comments-slide-leave-active",
233
- "leave-from-class": "tpl:translate-x-0",
234
- "leave-to-class": "tpl:translate-x-full"
235
- }, {
236
- default: s(() => [v.visible ? (n(), m("div", {
237
- key: 0,
238
- role: "complementary",
239
- "aria-label": d(A).comments.title,
240
- "data-testid": "comments-sidebar",
241
- class: "tpl-comments-sidebar tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
242
- }, [
243
- h("div", he, [h("div", ge, [
244
- l(d(T), {
245
- size: 13,
246
- "stroke-width": 2
247
- }),
248
- h("span", null, t(d(A).comments.title), 1),
249
- v.feature.unresolvedCount.value > 0 ? (n(), m("span", _e, t(v.feature.unresolvedCount.value), 1)) : f("", !0)
250
- ]), h("button", {
251
- type: "button",
252
- class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
253
- "aria-label": d(A).comments.close,
254
- onClick: i[0] ||= (e) => Tt("close")
255
- }, [l(d(ue), {
256
- size: 14,
257
- "stroke-width": 2
258
- })], 8, ve)]),
259
- h("div", ye, [
260
- h("button", {
261
- type: "button",
262
- class: r(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", P.value === "unresolved" ? "tpl-comment-filter--active" : ""]),
263
- "aria-pressed": P.value === "unresolved",
264
- "data-testid": "comments-filter-unresolved",
265
- onClick: i[1] ||= (e) => J("unresolved")
266
- }, t(d(A).comments.filterUnresolved), 11, be),
267
- h("button", {
268
- type: "button",
269
- class: r(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", P.value === "all" ? "tpl-comment-filter--active" : ""]),
270
- "aria-pressed": P.value === "all",
271
- "data-testid": "comments-filter-all",
272
- onClick: i[2] ||= (e) => J("all")
273
- }, t(d(A).comments.filterAll), 11, xe),
274
- d(M).state.selectedBlockId ? (n(), m("button", {
275
- key: 0,
276
- type: "button",
277
- class: r(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", P.value === "block" ? "tpl-comment-filter--active" : ""]),
278
- "aria-pressed": P.value === "block",
279
- "data-testid": "comments-filter-block",
280
- onClick: i[3] ||= (e) => J("block", d(M).state.selectedBlockId ?? void 0)
281
- }, t(d(A).comments.filterBlock), 11, Se)) : f("", !0),
282
- d(F) ? (n(), m("button", {
283
- key: 1,
284
- type: "button",
285
- "data-testid": "comments-filter-language",
286
- class: r(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:focus-visible:outline-none tpl:focus-visible:shadow-[var(--tpl-ring)]", I.value ? "tpl-comment-filter--active" : ""]),
287
- "aria-pressed": I.value,
288
- onClick: i[4] ||= (e) => I.value = !I.value
289
- }, t(d(A).comments.filterLanguage), 11, Ce)) : f("", !0)
290
- ]),
291
- h("div", we, [Dt.value ? (n(), m("div", Te, [l(d(w), {
292
- class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
293
- size: 24,
294
- "stroke-width": 2
295
- })])) : q.value.length === 0 ? (n(), m("div", Ee, [l(d(T), {
296
- size: 32,
297
- "stroke-width": 1.5,
298
- class: "tpl:text-[var(--tpl-text-dim)]"
299
- }), h("p", De, t(P.value === "all" ? d(A).comments.noCommentsHint : d(A).comments.noComments), 1)])) : (n(), m("div", Oe, [(n(!0), m(g, null, a(q.value, (e) => (n(), m("div", {
300
- key: e.id,
301
- class: "tpl-comment-thread",
302
- "data-testid": "comment-thread"
303
- }, [
304
- h("div", ke, [
305
- h("div", Ae, [h("div", je, [
306
- h("span", Me, t(N.value.isOwn(e) ? d(A).comments.ownedByYou : e.author.name), 1),
307
- h("span", Ne, t(Ht(e.createdAt)), 1),
308
- d(F) ? (n(), m("span", {
309
- key: 0,
310
- "data-testid": "comment-locale-badge",
311
- class: r(d(x))
312
- }, t(d(S)(L(e))), 3)) : f("", !0),
313
- e.updatedAt ? (n(), m("span", Pe, " (" + t(d(A).comments.edited) + ") ", 1)) : f("", !0)
314
- ]), h("div", Fe, [
315
- N.value.canResolve.value ? (n(), m("button", {
316
- key: 0,
317
- "data-testid": "comment-resolve",
318
- class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
319
- title: e.resolvedAt ? d(A).comments.unresolve : d(A).comments.resolve,
320
- onClick: (t) => Bt(e)
321
- }, [l(d(fe), {
322
- size: 13,
323
- "stroke-width": 2,
324
- class: "tpl-resolve-icon",
325
- style: o({ color: e.resolvedAt ? "var(--tpl-primary)" : void 0 })
326
- }, null, 8, ["style"])], 8, Ie)) : f("", !0),
327
- Q(e) ? (n(), m("button", {
328
- key: 1,
329
- "data-testid": "comment-edit",
330
- class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
331
- title: d(A).comments.edit,
332
- onClick: (t) => Y(e)
333
- }, [l(d(E), {
334
- size: 12,
335
- "stroke-width": 2
336
- })], 8, Le)) : f("", !0),
337
- Vt(e) ? (n(), m("button", {
338
- key: 2,
339
- "data-testid": "comment-delete",
340
- class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
341
- title: d(A).comments.delete,
342
- onClick: (t) => Ft(e.id)
343
- }, [l(d(O), {
344
- size: 12,
345
- "stroke-width": 2
346
- })], 8, Re)) : f("", !0)
347
- ])]),
348
- l(b, { name: "tpl-resolve" }, {
349
- default: s(() => [e.resolvedAt ? (n(), m("div", ze, [l(d(se), {
350
- size: 10,
351
- "stroke-width": 2.5
352
- }), h("span", null, t(d(j)(d(A).comments.resolvedBy, { name: e.resolvedBy?.name ?? "" })), 1)])) : f("", !0)]),
353
- _: 2
354
- }, 1024),
355
- e.blockId && kt(e.blockId) ? (n(), m("span", Be, t(d(A).comments.missingBlock), 1)) : e.blockId ? (n(), m("button", {
356
- key: 1,
357
- class: "tpl:mt-1 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:transition-colors tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]",
358
- onClick: (t) => d(M).selectBlock(e.blockId ?? "")
359
- }, t(d(A).comments.jumpToBlock), 9, Ve)) : f("", !0),
360
- V.value === e.id ? (n(), m("div", He, [c(h("textarea", {
361
- "onUpdate:modelValue": i[5] ||= (e) => H.value = e,
362
- class: "tpl:w-full tpl:resize-none tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:font-sans tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]",
363
- rows: "3",
364
- onKeydown: (t) => $(t, e.id)
365
- }, null, 40, Ue), [[y, H.value]]), h("div", We, [h("button", {
366
- class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-on-primary)]",
367
- disabled: !H.value.trim() || N.value.isSubmitting.value,
368
- onClick: (t) => Z(e.id)
369
- }, t(d(A).comments.save), 9, Ge), h("button", {
370
- class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
371
- onClick: i[6] ||= (e) => X()
372
- }, t(d(A).comments.cancel), 1)])])) : (n(), m("p", Ke, t(e.body), 1)),
373
- W.value === e.id ? (n(), m("div", qe, [
374
- h("span", Je, t(d(A).comments.deleteConfirm), 1),
375
- h("button", {
376
- class: "tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-danger)] tpl:text-[var(--tpl-bg)]",
377
- "data-testid": "comment-delete-confirm",
378
- onClick: (t) => zt(e.id)
379
- }, t(d(A).comments.delete), 9, Ye),
380
- h("button", {
381
- class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
382
- onClick: i[7] ||= (e) => It()
383
- }, t(d(A).comments.cancel), 1)
384
- ])) : f("", !0),
385
- V.value !== e.id && W.value !== e.id ? (n(), m("div", Xe, [N.value.canCreate.value ? (n(), m("button", {
386
- key: 0,
387
- "data-testid": "comment-reply",
388
- class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
389
- title: d(A).comments.reply,
390
- onClick: (t) => Nt(e.id)
391
- }, [l(d(pe), {
392
- size: 13,
393
- "stroke-width": 2,
394
- class: "tpl:text-[var(--tpl-primary)]"
395
- })], 8, Ze)) : f("", !0), (e.replies?.length ?? 0) > 0 ? (n(), m("button", {
396
- key: 1,
397
- class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
398
- onClick: (t) => Mt(e.id)
399
- }, [U.value.has(e.id) ? (n(), _(d(le), {
400
- key: 0,
401
- size: 11,
402
- "stroke-width": 2
403
- })) : (n(), _(d(ce), {
404
- key: 1,
405
- size: 11,
406
- "stroke-width": 2
407
- })), ee(" " + t((e.replies?.length ?? 0) === 1 ? d(j)(d(A).comments.replyOne, { count: String(e.replies?.length ?? 0) }) : d(j)(d(A).comments.replyMany, { count: String(e.replies?.length ?? 0) })), 1)], 8, Qe)) : f("", !0)])) : f("", !0)
408
- ]),
409
- l(b, { name: "tpl-replies" }, {
410
- default: s(() => [U.value.has(e.id) && (e.replies?.length ?? 0) > 0 ? (n(), m("div", $e, [(n(!0), m(g, null, a(e.replies, (a, o) => (n(), m("div", {
411
- key: a.id,
412
- class: r(["tpl-comment-reply-card tpl:relative tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-2.5", o < (e.replies?.length ?? 0) - 1 ? "tpl:mb-2" : ""])
413
- }, [
414
- h("div", et, [h("div", tt, [
415
- h("span", nt, t(N.value.isOwn(a) ? d(A).comments.ownedByYou : a.author.name), 1),
416
- h("span", rt, t(Ht(a.createdAt)), 1),
417
- d(F) ? (n(), m("span", {
418
- key: 0,
419
- "data-testid": "comment-locale-badge",
420
- class: r(d(x))
421
- }, t(d(S)(L(a))), 3)) : f("", !0),
422
- a.updatedAt ? (n(), m("span", it, " (" + t(d(A).comments.edited) + ") ", 1)) : f("", !0)
423
- ]), h("div", at, [Q(a) ? (n(), m("button", {
424
- key: 0,
425
- class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
426
- title: d(A).comments.edit,
427
- onClick: (e) => Y(a)
428
- }, [l(d(E), {
429
- size: 11,
430
- "stroke-width": 2
431
- })], 8, ot)) : f("", !0), Vt(a) ? (n(), m("button", {
432
- key: 1,
433
- class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
434
- title: d(A).comments.delete,
435
- onClick: (e) => Ft(a.id)
436
- }, [l(d(O), {
437
- size: 11,
438
- "stroke-width": 2
439
- })], 8, st)) : f("", !0)])]),
440
- V.value === a.id ? (n(), m("div", ct, [c(h("textarea", {
441
- "onUpdate:modelValue": i[8] ||= (e) => H.value = e,
442
- class: "tpl:w-full tpl:resize-none tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:font-sans tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]",
443
- rows: "2",
444
- onKeydown: (e) => $(e, a.id)
445
- }, null, 40, lt), [[y, H.value]]), h("div", ut, [h("button", {
446
- class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-on-primary)]",
447
- disabled: !H.value.trim() || N.value.isSubmitting.value,
448
- onClick: (e) => Z(a.id)
449
- }, t(d(A).comments.save), 9, dt), h("button", {
450
- class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
451
- onClick: i[9] ||= (e) => X()
452
- }, t(d(A).comments.cancel), 1)])])) : (n(), m("p", ft, t(a.body), 1)),
453
- W.value === a.id ? (n(), m("div", pt, [
454
- h("span", mt, t(d(A).comments.deleteConfirm), 1),
455
- h("button", {
456
- class: "tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-danger)] tpl:text-[var(--tpl-bg)]",
457
- "data-testid": "comment-delete-confirm",
458
- onClick: (e) => zt(a.id)
459
- }, t(d(A).comments.delete), 9, ht),
460
- h("button", {
461
- class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
462
- onClick: i[10] ||= (e) => It()
463
- }, t(d(A).comments.cancel), 1)
464
- ])) : f("", !0)
465
- ], 2))), 128))])) : f("", !0)]),
466
- _: 2
467
- }, 1024),
468
- l(b, { name: "tpl-replies" }, {
469
- default: s(() => [z.value === e.id ? (n(), m("div", gt, [h("div", _t, [
470
- c(h("textarea", {
471
- "onUpdate:modelValue": i[11] ||= (e) => B.value = e,
472
- class: "tpl:max-h-24 tpl:flex-1 tpl:resize-none tpl:border-none tpl:bg-transparent tpl:font-sans tpl:text-xs tpl:outline-none tpl:text-[var(--tpl-text)]",
473
- placeholder: d(A).comments.replyPlaceholder,
474
- rows: "2",
475
- onKeydown: (t) => Wt(t, e.id)
476
- }, null, 40, vt), [[y, B.value]]),
477
- h("button", {
478
- class: "tpl-comments-send-btn tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
479
- disabled: !B.value.trim() || N.value.isSubmitting.value,
480
- onClick: (t) => Rt(e.id)
481
- }, [l(d(D), {
482
- size: 14,
483
- "stroke-width": 2
484
- })], 8, yt),
485
- h("button", {
486
- class: "tpl-comments-send-btn tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:text-[var(--tpl-text-muted)]",
487
- onClick: i[12] ||= (e) => Pt()
488
- }, [l(d(ue), {
489
- size: 14,
490
- "stroke-width": 2
491
- })])
492
- ])])) : f("", !0)]),
493
- _: 2
494
- }, 1024)
495
- ]))), 128))]))]),
496
- N.value.canCreate.value ? (n(), m("div", bt, [At.value ? (n(), m("div", xt, t(d(A).comments.saveTemplateFirst), 1)) : (n(), m("div", St, [c(h("textarea", {
497
- ref_key: "newCommentInput",
498
- ref: G,
499
- "onUpdate:modelValue": i[13] ||= (e) => R.value = e,
500
- class: "tpl:max-h-24 tpl:min-h-[48px] tpl:flex-1 tpl:resize-none tpl:border-none tpl:bg-transparent tpl:font-sans tpl:text-xs tpl:outline-none tpl:text-[var(--tpl-text)]",
501
- "data-testid": "comments-input",
502
- placeholder: d(A).comments.placeholder,
503
- disabled: N.value.isSubmitting.value,
504
- rows: "2",
505
- onKeydown: Ut
506
- }, null, 40, Ct), [[y, R.value]]), h("button", {
507
- class: "tpl-comments-send-btn tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
508
- "data-testid": "comments-send",
509
- disabled: !R.value.trim() || N.value.isSubmitting.value,
510
- onClick: Lt
511
- }, [N.value.isSubmitting.value ? (n(), _(d(w), {
512
- key: 0,
513
- class: "tpl-spinner",
514
- size: 16,
515
- "stroke-width": 2
516
- })) : (n(), _(d(D), {
517
- key: 1,
518
- size: 16,
519
- "stroke-width": 2
520
- }))], 8, wt)]))])) : f("", !0)
521
- ], 8, me)) : f("", !0)]),
522
- _: 1
523
- }));
524
- }
525
- }), [["__scopeId", "data-v-ebc3c2c6"]]);
526
- export { k as default };