@templatical/editor 0.60.3 → 0.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/dist/{AiChatPanel-DPoq2Til.js → AiChatPanel-DF5TvO9H.js} +166 -166
  2. package/dist/{AiPanels-UdfhAzzu.js → AiPanels-zRqC5DIP.js} +1 -1
  3. package/dist/{AiRewriteMenu-DOreXB10.js → AiRewriteMenu-CmZKTO-O.js} +6 -6
  4. package/dist/{BlockIssueBadge-DQ_6NI4p.js → BlockIssueBadge-Bug5iqcK.js} +2 -2
  5. package/dist/{BlockPreviewCanvas-YaFum01Z.js → BlockPreviewCanvas-knSyWaCP.js} +3 -3
  6. package/dist/{CloudPanels-Bxv7vUYr.js → CloudPanels-BbHJHZri.js} +3 -3
  7. package/dist/{CollaborationNotices-PqWv0q8W.js → CollaborationNotices-BM35YG72.js} +1 -1
  8. package/dist/{CollaboratorBar-p-_PWqXW.js → CollaboratorBar-DMsEOndt.js} +1 -1
  9. package/dist/{CommentsPanel-BUo-YhSX.js → CommentsPanel-BMYvXRKK.js} +1 -1
  10. package/dist/{CommentsSidebar-D_Pz7FPz.js → CommentsSidebar-_8at1Rug.js} +139 -139
  11. package/dist/{CountdownToolbar-BQdhVNaK.js → CountdownToolbar-BprSuPJk.js} +3 -3
  12. package/dist/{IssuesPanel-C7mBrK6a.js → IssuesPanel-CeCvUfa7.js} +8 -8
  13. package/dist/{LanguageMenu-wS43Ck1x.js → LanguageMenu-CkGqLYjf.js} +124 -124
  14. package/dist/{LocaleNotices-CAvDAawJ.js → LocaleNotices-D0be8ovO.js} +10 -10
  15. package/dist/{LogicTagInsertButton-Clc3JTg_.js → LogicTagInsertButton-BzEZUTRZ.js} +3 -3
  16. package/dist/{MediaEditModal-YXOL0d_y.js → MediaEditModal-Bg-7RojG.js} +1 -1
  17. package/dist/{MediaPanels-VCv5epgs.js → MediaPanels-E9gLZ1Qb.js} +1 -1
  18. package/dist/{MergeTagInput-B5a9noTB.js → MergeTagInput-By2FSStk.js} +1 -1
  19. package/dist/{MergeTagModeToggle-D1r2aH5x.js → MergeTagModeToggle-DtjOZhoD.js} +3 -3
  20. package/dist/{MergeTagTextarea-CA9dPfMH.js → MergeTagTextarea-BjHlamJv.js} +14 -14
  21. package/dist/{ParagraphEditor-zMOqNnmx.js → ParagraphEditor-Ctu4fSsl.js} +23 -23
  22. package/dist/{RestoreVersionDialog-DdPpilBS.js → RestoreVersionDialog-DvZoTJVa.js} +3 -3
  23. package/dist/{RichTextEditorContent-gnRxu4-L.js → RichTextEditorContent-B1p7Ykq8.js} +4 -4
  24. package/dist/{SaveBlockDialog-CQzccFIM.js → SaveBlockDialog-DHfT-Tpx.js} +7 -7
  25. package/dist/{SavedBlocksBrowserModal-8cZ9z-pL.js → SavedBlocksBrowserModal-BjJuuXQv.js} +9 -9
  26. package/dist/{SavedBlocksPanels-C9Oztudc.js → SavedBlocksPanels-D6eiMQZ3.js} +1 -1
  27. package/dist/{SavedBlocksPickBar-udG0wuTf.js → SavedBlocksPickBar-BkgCDSXe.js} +2 -2
  28. package/dist/{TemplateSettings-DsaSsCC8.js → TemplateSettings-DQAbNsiS.js} +6 -6
  29. package/dist/{TestEmailModal-BP6954nj.js → TestEmailModal-m_AEa36T.js} +7 -7
  30. package/dist/{TestEmailPanel-5YlcWwPJ.js → TestEmailPanel-OApkuaVd.js} +1 -1
  31. package/dist/{TitleEditor-Cy-6WZuK.js → TitleEditor-Cwdtfk15.js} +9 -9
  32. package/dist/{Toolbar-Br0W6NE0.js → Toolbar-D_T55elL.js} +358 -358
  33. package/dist/{TplModal-DnytM7wO.js → TplModal-2MKm5y6r.js} +1 -1
  34. package/dist/{VersionHistoryMenu-D-RCk3oB.js → VersionHistoryMenu-B3-xJ7GO.js} +5 -5
  35. package/dist/{VersionHistoryPanels-DIqWP71K.js → VersionHistoryPanels-CCM0IQBg.js} +1 -1
  36. package/dist/{VersionPreviewBanner-DMg2sw3V.js → VersionPreviewBanner-DLAB4ZbS.js} +1 -1
  37. package/dist/{WrapperBlock-DoNQX0Ml.js → WrapperBlock-BZl10HLy.js} +2 -2
  38. package/dist/{blockTypeIcons-BePGuX0b.js → blockTypeIcons-C691ZY1l.js} +3 -3
  39. package/dist/bundle-stats.json +6 -6
  40. package/dist/cdn/chunks/{AiChatPanel-cIT2haLo.js → AiChatPanel-BYAsgmoC.js} +146 -146
  41. package/dist/cdn/chunks/AiChatPanel-BYAsgmoC.js.map +1 -0
  42. package/dist/cdn/chunks/{AiPanels-B4GG8w3J.js → AiPanels-MY_YPls8.js} +2 -2
  43. package/dist/cdn/chunks/{AiPanels-B4GG8w3J.js.map → AiPanels-MY_YPls8.js.map} +1 -1
  44. package/dist/cdn/chunks/{AiRewriteMenu-BqwwNUzj.js → AiRewriteMenu-BSePiXe_.js} +4 -4
  45. package/dist/cdn/chunks/{AiRewriteMenu-BqwwNUzj.js.map → AiRewriteMenu-BSePiXe_.js.map} +1 -1
  46. package/dist/cdn/chunks/{BlockIssueBadge-C50pmOMZ.js → BlockIssueBadge-fYeNnepj.js} +2 -2
  47. package/dist/cdn/chunks/{BlockIssueBadge-C50pmOMZ.js.map → BlockIssueBadge-fYeNnepj.js.map} +1 -1
  48. package/dist/cdn/chunks/{BlockPreviewCanvas-T13OIi1f.js → BlockPreviewCanvas-B153A3hu.js} +4 -4
  49. package/dist/cdn/chunks/{BlockPreviewCanvas-T13OIi1f.js.map → BlockPreviewCanvas-B153A3hu.js.map} +1 -1
  50. package/dist/cdn/chunks/{CloudPanels-DDNWZ7ET.js → CloudPanels-Bv26_Sd8.js} +3 -3
  51. package/dist/cdn/chunks/{CloudPanels-DDNWZ7ET.js.map → CloudPanels-Bv26_Sd8.js.map} +1 -1
  52. package/dist/cdn/chunks/{CollaborationNotices-CTmjjbHv.js → CollaborationNotices-COkmBmps.js} +2 -2
  53. package/dist/cdn/chunks/{CollaborationNotices-CTmjjbHv.js.map → CollaborationNotices-COkmBmps.js.map} +1 -1
  54. package/dist/cdn/chunks/{CollaboratorBar-CzHjawjF.js → CollaboratorBar-BSzI8YIU.js} +2 -2
  55. package/dist/cdn/chunks/{CollaboratorBar-CzHjawjF.js.map → CollaboratorBar-BSzI8YIU.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsPanel-Dh0_eRBe.js → CommentsPanel-R27fqh9O.js} +2 -2
  57. package/dist/cdn/chunks/{CommentsPanel-Dh0_eRBe.js.map → CommentsPanel-R27fqh9O.js.map} +1 -1
  58. package/dist/cdn/chunks/{CommentsSidebar-JxZ-O2mY.js → CommentsSidebar-BEiOQ_zT.js} +133 -133
  59. package/dist/cdn/chunks/CommentsSidebar-BEiOQ_zT.js.map +1 -0
  60. package/dist/cdn/chunks/{CountdownToolbar-D16RWxkh.js → CountdownToolbar-DOhXnbsq.js} +4 -4
  61. package/dist/cdn/chunks/{CountdownToolbar-D16RWxkh.js.map → CountdownToolbar-DOhXnbsq.js.map} +1 -1
  62. package/dist/cdn/chunks/{IssuesPanel-BtAn12hl.js → IssuesPanel-DgxiS3hF.js} +2 -2
  63. package/dist/cdn/chunks/{IssuesPanel-BtAn12hl.js.map → IssuesPanel-DgxiS3hF.js.map} +1 -1
  64. package/dist/cdn/chunks/{LanguageMenu-D71nO6LO.js → LanguageMenu-B6kt8SgX.js} +105 -105
  65. package/dist/cdn/chunks/LanguageMenu-B6kt8SgX.js.map +1 -0
  66. package/dist/cdn/chunks/{LocaleNotices-CzrNKR-N.js → LocaleNotices-Bleg4gTu.js} +10 -10
  67. package/dist/cdn/chunks/LocaleNotices-Bleg4gTu.js.map +1 -0
  68. package/dist/cdn/chunks/{LogicTagInsertButton-B4wuPoMa.js → LogicTagInsertButton-DGg1Wvhp.js} +2 -2
  69. package/dist/cdn/chunks/{LogicTagInsertButton-B4wuPoMa.js.map → LogicTagInsertButton-DGg1Wvhp.js.map} +1 -1
  70. package/dist/cdn/chunks/{MediaEditModal-DJ2wxInt.js → MediaEditModal-BQO6ggJK.js} +2 -2
  71. package/dist/cdn/chunks/{MediaEditModal-DJ2wxInt.js.map → MediaEditModal-BQO6ggJK.js.map} +1 -1
  72. package/dist/cdn/chunks/{MediaPanels-BJawNjr9.js → MediaPanels-Ciahwsyt.js} +2 -2
  73. package/dist/cdn/chunks/{MediaPanels-BJawNjr9.js.map → MediaPanels-Ciahwsyt.js.map} +1 -1
  74. package/dist/cdn/chunks/{MergeTagInput-DZD-p4nR.js → MergeTagInput-BVfTwujW.js} +2 -2
  75. package/dist/cdn/chunks/{MergeTagInput-DZD-p4nR.js.map → MergeTagInput-BVfTwujW.js.map} +1 -1
  76. package/dist/cdn/chunks/{MergeTagModeToggle-DGuJCgqO.js → MergeTagModeToggle-BoI0C1Y6.js} +2 -2
  77. package/dist/cdn/chunks/{MergeTagModeToggle-DGuJCgqO.js.map → MergeTagModeToggle-BoI0C1Y6.js.map} +1 -1
  78. package/dist/cdn/chunks/{MergeTagTextarea-BRiaRBr_.js → MergeTagTextarea-DGDv-pdn.js} +15 -15
  79. package/dist/cdn/chunks/MergeTagTextarea-DGDv-pdn.js.map +1 -0
  80. package/dist/cdn/chunks/{ParagraphEditor-BClN3WxA.js → ParagraphEditor-D0q36Myd.js} +24 -24
  81. package/dist/cdn/chunks/{ParagraphEditor-BClN3WxA.js.map → ParagraphEditor-D0q36Myd.js.map} +1 -1
  82. package/dist/cdn/chunks/{RestoreVersionDialog-CVfKIT1K.js → RestoreVersionDialog-CJggFdbi.js} +3 -3
  83. package/dist/cdn/chunks/{RestoreVersionDialog-CVfKIT1K.js.map → RestoreVersionDialog-CJggFdbi.js.map} +1 -1
  84. package/dist/cdn/chunks/{RichTextEditorContent-CtV0Q0SO.js → RichTextEditorContent-D3ihUF8v.js} +4 -4
  85. package/dist/cdn/chunks/{RichTextEditorContent-CtV0Q0SO.js.map → RichTextEditorContent-D3ihUF8v.js.map} +1 -1
  86. package/dist/cdn/chunks/{SaveBlockDialog-Cy6mI_xB.js → SaveBlockDialog-BzES5tqd.js} +6 -6
  87. package/dist/cdn/chunks/{SaveBlockDialog-Cy6mI_xB.js.map → SaveBlockDialog-BzES5tqd.js.map} +1 -1
  88. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DW917QDB.js → SavedBlocksBrowserModal-CLNcZcLd.js} +6 -6
  89. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DW917QDB.js.map → SavedBlocksBrowserModal-CLNcZcLd.js.map} +1 -1
  90. package/dist/cdn/chunks/{SavedBlocksPanels-Cyzerpxs.js → SavedBlocksPanels-R0W9LElD.js} +2 -2
  91. package/dist/cdn/chunks/{SavedBlocksPanels-Cyzerpxs.js.map → SavedBlocksPanels-R0W9LElD.js.map} +1 -1
  92. package/dist/cdn/chunks/{SavedBlocksPickBar-D6n86773.js → SavedBlocksPickBar-JNi5Rx4V.js} +3 -3
  93. package/dist/cdn/chunks/{SavedBlocksPickBar-D6n86773.js.map → SavedBlocksPickBar-JNi5Rx4V.js.map} +1 -1
  94. package/dist/cdn/chunks/{TemplateSettings--_ZfbhnU.js → TemplateSettings-C5wsNcgX.js} +4 -4
  95. package/dist/cdn/chunks/{TemplateSettings--_ZfbhnU.js.map → TemplateSettings-C5wsNcgX.js.map} +1 -1
  96. package/dist/cdn/chunks/{TestEmailModal-V_UFUIaf.js → TestEmailModal-BxIAwjww.js} +6 -6
  97. package/dist/cdn/chunks/{TestEmailModal-V_UFUIaf.js.map → TestEmailModal-BxIAwjww.js.map} +1 -1
  98. package/dist/cdn/chunks/{TestEmailPanel-CBfqsO2u.js → TestEmailPanel-B8BsWXjE.js} +2 -2
  99. package/dist/cdn/chunks/{TestEmailPanel-CBfqsO2u.js.map → TestEmailPanel-B8BsWXjE.js.map} +1 -1
  100. package/dist/cdn/chunks/{TitleEditor-CimWOQVn.js → TitleEditor-DhcI1aRS.js} +8 -8
  101. package/dist/cdn/chunks/{TitleEditor-CimWOQVn.js.map → TitleEditor-DhcI1aRS.js.map} +1 -1
  102. package/dist/cdn/chunks/{Toolbar-czJfutfE.js → Toolbar-Ch3h2BUs.js} +202 -202
  103. package/dist/cdn/chunks/Toolbar-Ch3h2BUs.js.map +1 -0
  104. package/dist/cdn/chunks/{TplModal-BtJJ5-En.js → TplModal-CPOqOxVf.js} +2 -2
  105. package/dist/cdn/chunks/{TplModal-BtJJ5-En.js.map → TplModal-CPOqOxVf.js.map} +1 -1
  106. package/dist/cdn/chunks/{VersionHistoryMenu-CVGlUPwS.js → VersionHistoryMenu-DTDO48HI.js} +2 -2
  107. package/dist/cdn/chunks/{VersionHistoryMenu-CVGlUPwS.js.map → VersionHistoryMenu-DTDO48HI.js.map} +1 -1
  108. package/dist/cdn/chunks/{VersionHistoryPanels-BS0USHsp.js → VersionHistoryPanels-CVrXHYxT.js} +2 -2
  109. package/dist/cdn/chunks/{VersionHistoryPanels-BS0USHsp.js.map → VersionHistoryPanels-CVrXHYxT.js.map} +1 -1
  110. package/dist/cdn/chunks/{VersionPreviewBanner-5RFz4AQx.js → VersionPreviewBanner-C1H_fYAr.js} +2 -2
  111. package/dist/cdn/chunks/{VersionPreviewBanner-5RFz4AQx.js.map → VersionPreviewBanner-C1H_fYAr.js.map} +1 -1
  112. package/dist/cdn/chunks/{WrapperBlock-CSjYFYUT.js → WrapperBlock-B8SJ7Q4w.js} +3 -3
  113. package/dist/cdn/chunks/{WrapperBlock-CSjYFYUT.js.map → WrapperBlock-B8SJ7Q4w.js.map} +1 -1
  114. package/dist/cdn/chunks/{blockTypeIcons-BOonB9gK.js → blockTypeIcons-ZKw-Eiu0.js} +2 -2
  115. package/dist/cdn/chunks/{blockTypeIcons-BOonB9gK.js.map → blockTypeIcons-ZKw-Eiu0.js.map} +1 -1
  116. package/dist/cdn/chunks/{composables-BHsV8gkq.js → composables-CKXPwWo9.js} +152 -152
  117. package/dist/cdn/chunks/composables-CKXPwWo9.js.map +1 -0
  118. package/dist/cdn/chunks/dompurify-BflADeuH.js +850 -0
  119. package/dist/cdn/chunks/dompurify-BflADeuH.js.map +1 -0
  120. package/dist/cdn/chunks/{editor-modal-BVM_0uoL.js → editor-modal-BlSmX9Ch.js} +4 -4
  121. package/dist/cdn/chunks/{editor-modal-BVM_0uoL.js.map → editor-modal-BlSmX9Ch.js.map} +1 -1
  122. package/dist/cdn/chunks/en-jObtIVCp.js +1 -0
  123. package/dist/cdn/chunks/{extensions-BeGvJ6f0.js → extensions-Bq9nXmBP.js} +3 -3
  124. package/dist/cdn/chunks/{extensions-BeGvJ6f0.js.map → extensions-Bq9nXmBP.js.map} +1 -1
  125. package/dist/cdn/chunks/{icons-CWEBTtbR.js → icons-DdVB-5WO.js} +28 -28
  126. package/dist/cdn/chunks/{icons-CWEBTtbR.js.map → icons-DdVB-5WO.js.map} +1 -1
  127. package/dist/cdn/chunks/keys-ywH4jHJ2.js.map +1 -1
  128. package/dist/cdn/chunks/{sanitizeHtml-Db0S2JVP.js → sanitizeHtml-Plkmw1Qt.js} +2 -2
  129. package/dist/cdn/chunks/{sanitizeHtml-Db0S2JVP.js.map → sanitizeHtml-Plkmw1Qt.js.map} +1 -1
  130. package/dist/cdn/chunks/{socialIcons-DMelHF3p.js → socialIcons-CSe4YJ52.js} +2 -2
  131. package/dist/cdn/chunks/{socialIcons-DMelHF3p.js.map → socialIcons-CSe4YJ52.js.map} +1 -1
  132. package/dist/cdn/chunks/{src-B32tyank.js → src-Bk1LF1np.js} +16 -14
  133. package/dist/cdn/chunks/src-Bk1LF1np.js.map +1 -0
  134. package/dist/cdn/chunks/{tiptap-LIEsAVOF.js → tiptap-DDhueoan.js} +15 -7
  135. package/dist/cdn/chunks/{tiptap-LIEsAVOF.js.map → tiptap-DDhueoan.js.map} +1 -1
  136. package/dist/cdn/chunks/useLanguageName-DDhdVpqh.js +41 -0
  137. package/dist/cdn/chunks/useLanguageName-DDhdVpqh.js.map +1 -0
  138. package/dist/cdn/editor.css +1 -1
  139. package/dist/cdn/editor.js +64 -62
  140. package/dist/cdn/editor.js.map +1 -1
  141. package/dist/{check-C82yyyf1.js → check-8ZykoWzl.js} +1 -1
  142. package/dist/{chevron-down-BaBVjNbM.js → chevron-down-D_CUJHwi.js} +1 -1
  143. package/dist/{chevron-right-DkS-bw8X.js → chevron-right-B2WYkQtG.js} +1 -1
  144. package/dist/{chevron-up-C1KzUIK4.js → chevron-up-L-H27use.js} +1 -1
  145. package/dist/{circle-exclamation-point-DsmqtTUQ.js → circle-exclamation-point-BCx1tR91.js} +1 -1
  146. package/dist/{clock-dpIs7vo0.js → clock-DOOnNINY.js} +1 -1
  147. package/dist/{composables-DG_CMpuY.js → composables-26aR45W3.js} +1222 -1222
  148. package/dist/{createLucideIcon-BSam2AUu.js → createLucideIcon-BKeRiObH.js} +5 -5
  149. package/dist/{dist-CRcnmuxb.js → dist-B1bGGOA0.js} +2 -2
  150. package/dist/{dist-DRbuXmjl.js → dist-C3ZVR_pd.js} +2 -2
  151. package/dist/{dist-BvNveHdP.js → dist-C8aVVj28.js} +2 -2
  152. package/dist/dist-CTzstDyz.js +4 -0
  153. package/dist/{dist-xc8l1i2C.js → dist-CcxrHURm.js} +786 -778
  154. package/dist/{dist-LrtNpIZD.js → dist-D41-1sSL.js} +6 -6
  155. package/dist/{dist-BKFfCbrD.js → dist-DRJhbfT9.js} +2 -2
  156. package/dist/{dist-DCGVHlXC.js → dist-DkQutATU.js} +2 -2
  157. package/dist/{dist-BMULQVZF.js → dist-DyrUc7rM.js} +2 -2
  158. package/dist/{dist-CiOtB5na.js → dist-p_84-Inl.js} +2 -2
  159. package/dist/{dist-Bsg1RBUb.js → dist-tG9_FTOs.js} +2 -2
  160. package/dist/dist-zQ8L1LNg.js +4 -0
  161. package/dist/{editor-modal-odubnc9x.js → editor-modal-CRtEWHbQ.js} +15 -15
  162. package/dist/en-CMswCXqE.js +1 -0
  163. package/dist/{extensions-Cao-H_tB.js → extensions-zHf8YFRw.js} +4 -4
  164. package/dist/{eye-CxCHEszj.js → eye-BjZOVab7.js} +1 -1
  165. package/dist/{image-DvXPzqNd.js → image-g47lDP0J.js} +1 -1
  166. package/dist/index.d.ts +5 -1
  167. package/dist/{info-2KHWaZ2L.js → info-DXij4QjB.js} +1 -1
  168. package/dist/{link-_OmrcJMv.js → link-BFJF0mWz.js} +1 -1
  169. package/dist/{list-Dekd7JE8.js → list-Cso9vnLq.js} +1 -1
  170. package/dist/{loader-circle-D_hT5mFS.js → loader-circle-uLY01591.js} +1 -1
  171. package/dist/{message-circle-DDbiG-jz.js → message-circle-amY03UMa.js} +1 -1
  172. package/dist/{package-cORUe57D.js → package-DnjoSQa1.js} +1 -1
  173. package/dist/{pencil-D67H4fxq.js → pencil-D1HBG4pb.js} +1 -1
  174. package/dist/{plus-BpTZAx28.js → plus-PzFvtj-Z.js} +1 -1
  175. package/dist/{refresh-cw-B4T0IFwI.js → refresh-cw-BPDv-S-4.js} +1 -1
  176. package/dist/{rotate-ccw-BDQgjpuo.js → rotate-ccw-DQZVEj1V.js} +1 -1
  177. package/dist/sanitizeHtml-DxmFirMi.js +945 -0
  178. package/dist/{search-Dp9pkaVt.js → search-BUBeKVdD.js} +1 -1
  179. package/dist/{send-DO9GhgCH.js → send-BJEuoIc2.js} +1 -1
  180. package/dist/{smartphone-CPW3I3hV.js → smartphone-DZ5xyNU4.js} +1 -1
  181. package/dist/{socialIcons-DXOO2y7u.js → socialIcons-mWE33bOn.js} +3 -3
  182. package/dist/{sparkles-CIBjNfij.js → sparkles-zWGR8hrs.js} +1 -1
  183. package/dist/{square-3W65qrrH.js → square--3H462TJ.js} +1 -1
  184. package/dist/style.css +1 -1
  185. package/dist/templatical-editor.js +78 -76
  186. package/dist/{text-align-start-Bs70tpRU.js → text-align-start-B5Dx2Ylg.js} +13 -13
  187. package/dist/{trash-CTzhAm1o.js → trash-CJsobpw0.js} +1 -1
  188. package/dist/{triangle-exclamation-point-D_13CuJY.js → triangle-exclamation-point-Bi7ZKTZU.js} +1 -1
  189. package/dist/{upload-DFxkP9MI.js → upload-DZ_-FNJ4.js} +1 -1
  190. package/dist/useLanguageName-CEFzafHB.js +39 -0
  191. package/dist/{useScrollToBlock-194ePl4q.js → useScrollToBlock-eZXiGa8o.js} +1 -1
  192. package/dist/{x-D7L8mLHJ.js → x-CuyPLm0U.js} +1 -1
  193. package/package.json +24 -24
  194. package/dist/cdn/chunks/AiChatPanel-cIT2haLo.js.map +0 -1
  195. package/dist/cdn/chunks/CommentsSidebar-JxZ-O2mY.js.map +0 -1
  196. package/dist/cdn/chunks/LanguageMenu-D71nO6LO.js.map +0 -1
  197. package/dist/cdn/chunks/LocaleNotices-CzrNKR-N.js.map +0 -1
  198. package/dist/cdn/chunks/MergeTagTextarea-BRiaRBr_.js.map +0 -1
  199. package/dist/cdn/chunks/Toolbar-czJfutfE.js.map +0 -1
  200. package/dist/cdn/chunks/composables-BHsV8gkq.js.map +0 -1
  201. package/dist/cdn/chunks/dompurify-JVtr5-B1.js +0 -872
  202. package/dist/cdn/chunks/dompurify-JVtr5-B1.js.map +0 -1
  203. package/dist/cdn/chunks/en-DlDEofnd.js +0 -1
  204. package/dist/cdn/chunks/languageName-DEEOhDWI.js +0 -12
  205. package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +0 -1
  206. package/dist/cdn/chunks/src-B32tyank.js.map +0 -1
  207. package/dist/dist-BnPPgVlu.js +0 -4
  208. package/dist/dist-zAzcxDCA.js +0 -4
  209. package/dist/en-CAImT1hl.js +0 -1
  210. package/dist/languageName-DEEOhDWI.js +0 -10
  211. package/dist/sanitizeHtml-Ru5_-IbM.js +0 -973
@@ -1,10 +1,10 @@
1
1
  import { C as e, F as t, G as n, H as r, K as i, L as a, O as o, _ as s, b as ee, ct as c, dt as l, g as u, h as d, j as te, m as f, mt as p, n as m, o as h, p as g, pt as ne, tt as _, u as v, x as y } from "./draggable-IRVFEZ-b.js";
2
2
  import { u as b } from "./styleConstants-Br6CIRoS.js";
3
- import { t as x } from "./languageName-DEEOhDWI.js";
4
- import { t as re } from "./formatRelativeTime-BTD8Ktt-.js";
5
- import { O as ie, ut as ae, v as oe } from "./keys-ywH4jHJ2.js";
6
- import { t as se } from "./useI18n-DPg6rPbu.js";
7
- import { Bt as ce, G as S, I as le, It as ue, Lt as de, Vt as fe, at as C, f as pe, j as me, nt as w, t as T } from "./icons-CWEBTtbR.js";
3
+ import { t as re } from "./useLanguageName-DDhdVpqh.js";
4
+ import { t as ie } from "./formatRelativeTime-BTD8Ktt-.js";
5
+ import { O as ae, ut as oe, v as se } from "./keys-ywH4jHJ2.js";
6
+ import { t as ce } from "./useI18n-DPg6rPbu.js";
7
+ import { Bt as le, G as x, I as ue, It as de, Lt as fe, Vt as pe, at as S, f as C, j as me, nt as w, t as T } from "./icons-DdVB-5WO.js";
8
8
  import { t as E } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
9
9
  // src/components/CommentsSidebar.vue?vue&type=script&setup=true&lang.ts
10
10
  var he = ["aria-label"], ge = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, _e = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]" }, ve = {
@@ -75,15 +75,15 @@ var he = ["aria-label"], ge = { class: "tpl:flex tpl:items-center tpl:justify-be
75
75
  },
76
76
  emits: ["close"],
77
77
  setup(e, { expose: E, emit: D }) {
78
- let O = e, Et = D, { t: k, format: A } = se(), j = ae(oe, "CommentsSidebar"), M = g(() => O.feature.headless), N = _("unresolved"), P = o(ie, void 0), F = _(!1), Dt = g(() => j.activeLocale?.value ?? j.content.value.settings.locale);
79
- function I(e) {
78
+ let O = e, Et = D, { t: k, format: A } = ce(), j = oe(se, "CommentsSidebar"), M = re(j), N = g(() => O.feature.headless), P = _("unresolved"), F = o(ae, void 0), I = _(!1), Dt = g(() => j.activeLocale?.value ?? j.content.value.settings.locale);
79
+ function L(e) {
80
80
  return e.locale ?? j.content.value.settings.locale;
81
81
  }
82
- let L = _(""), R = _(null), z = _(""), B = _(null), V = _(""), H = _(/* @__PURE__ */ new Set()), U = _(null), W = _(null), G = g(() => O.feature.filterBlockId.value);
83
- r(G, (e) => {
84
- e && (N.value = "block");
82
+ let R = _(""), z = _(null), B = _(""), V = _(null), H = _(""), U = _(/* @__PURE__ */ new Set()), W = _(null), G = _(null), K = g(() => O.feature.filterBlockId.value);
83
+ r(K, (e) => {
84
+ e && (P.value = "block");
85
85
  }, { immediate: !0 });
86
- let Ot = g(() => M.value.isLoading.value && M.value.comments.value.length === 0), kt = g(() => {
86
+ let Ot = g(() => N.value.isLoading.value && N.value.comments.value.length === 0), kt = g(() => {
87
87
  let e = /* @__PURE__ */ new Set();
88
88
  for (let t of j.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);
89
89
  return e;
@@ -91,108 +91,108 @@ var he = ["aria-label"], ge = { class: "tpl:flex tpl:items-center tpl:justify-be
91
91
  function At(e) {
92
92
  return e ? !kt.value.has(e) : !1;
93
93
  }
94
- let jt = g(() => N.value !== "block" || !G.value ? !1 : O.feature.capability.isBlockSaved(G.value) === !1), K = g(() => {
95
- let e = M.value.comments.value;
96
- return N.value === "unresolved" ? e = e.filter((e) => !e.resolvedAt) : N.value === "block" && G.value && (e = e.filter((e) => e.blockId === G.value)), F.value && (e = e.filter((e) => [e, ...e.replies ?? []].some((e) => I(e) === Dt.value))), e;
94
+ let jt = g(() => P.value !== "block" || !K.value ? !1 : O.feature.capability.isBlockSaved(K.value) === !1), q = g(() => {
95
+ let e = N.value.comments.value;
96
+ 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) === Dt.value))), e;
97
97
  });
98
98
  r(() => j.state.selectedBlockId, (e) => {
99
- N.value === "block" && e && (O.feature.filterBlockId.value = e);
99
+ P.value === "block" && e && (O.feature.filterBlockId.value = e);
100
100
  });
101
- function q(e, t) {
102
- N.value = e, O.feature.filterBlockId.value = e === "block" ? t ?? null : null;
101
+ function J(e, t) {
102
+ P.value = e, O.feature.filterBlockId.value = e === "block" ? t ?? null : null;
103
103
  }
104
104
  function Mt(e) {
105
- q("block", e);
105
+ J("block", e);
106
106
  }
107
107
  function Nt(e) {
108
- H.value.has(e) ? H.value.delete(e) : H.value.add(e);
108
+ U.value.has(e) ? U.value.delete(e) : U.value.add(e);
109
109
  }
110
110
  function Pt(e) {
111
- R.value = e, z.value = "", B.value = null, H.value.has(e) || H.value.add(e);
111
+ z.value = e, B.value = "", V.value = null, U.value.has(e) || U.value.add(e);
112
112
  }
113
113
  function Ft() {
114
- R.value = null, z.value = "";
114
+ z.value = null, B.value = "";
115
115
  }
116
- function J(e) {
117
- B.value = e.id, V.value = e.body, R.value = null;
116
+ function Y(e) {
117
+ V.value = e.id, H.value = e.body, z.value = null;
118
118
  }
119
- function Y() {
120
- B.value = null, V.value = "";
119
+ function X() {
120
+ V.value = null, H.value = "";
121
121
  }
122
- function X(e) {
123
- U.value = e;
122
+ function Z(e) {
123
+ W.value = e;
124
124
  }
125
- function Z() {
126
- U.value = null;
125
+ function Q() {
126
+ W.value = null;
127
127
  }
128
128
  async function It() {
129
- let e = L.value.trim();
130
- if (!e || !M.value.canCreate.value) return;
131
- let t = N.value === "block" ? G.value : void 0;
129
+ let e = R.value.trim();
130
+ if (!e || !N.value.canCreate.value) return;
131
+ let t = P.value === "block" ? K.value : void 0;
132
132
  try {
133
- await M.value.create({
133
+ await N.value.create({
134
134
  body: e,
135
135
  blockId: t ?? void 0,
136
136
  locale: j.activeLocale?.value ?? j.content.value.settings.locale
137
- }), L.value = "";
137
+ }), R.value = "";
138
138
  } catch {}
139
139
  }
140
140
  async function Lt(e) {
141
- let t = z.value.trim();
142
- if (!t || !M.value.canCreate.value) return;
143
- let n = M.value.find(e);
141
+ let t = B.value.trim();
142
+ if (!t || !N.value.canCreate.value) return;
143
+ let n = N.value.find(e);
144
144
  try {
145
- await M.value.create({
145
+ await N.value.create({
146
146
  body: t,
147
147
  blockId: n?.blockId ?? void 0,
148
148
  parentId: e,
149
149
  locale: j.activeLocale?.value ?? j.content.value.settings.locale
150
- }), R.value = null, z.value = "";
150
+ }), z.value = null, B.value = "";
151
151
  } catch {}
152
152
  }
153
- async function Q(e) {
154
- let t = V.value.trim();
153
+ async function $(e) {
154
+ let t = H.value.trim();
155
155
  if (t) try {
156
- await M.value.update(e, { body: t }), B.value = null, V.value = "";
156
+ await N.value.update(e, { body: t }), V.value = null, H.value = "";
157
157
  } catch {}
158
158
  }
159
159
  async function Rt(e) {
160
160
  try {
161
- await M.value.remove(e);
161
+ await N.value.remove(e);
162
162
  } catch {}
163
- U.value = null;
163
+ W.value = null;
164
164
  }
165
165
  async function zt(e) {
166
166
  try {
167
- await M.value.setResolved(e.id, !e.resolvedAt);
167
+ await N.value.setResolved(e.id, !e.resolvedAt);
168
168
  } catch {}
169
169
  }
170
- function $(e) {
171
- return M.value.canUpdate.value && M.value.isOwn(e);
172
- }
173
170
  function Bt(e) {
174
- return M.value.canDelete.value && M.value.isOwn(e);
171
+ return N.value.canUpdate.value && N.value.isOwn(e);
175
172
  }
176
173
  function Vt(e) {
177
- return re(e, k.time) ?? e;
174
+ return N.value.canDelete.value && N.value.isOwn(e);
178
175
  }
179
176
  function Ht(e) {
177
+ return ie(e, k.time) ?? e;
178
+ }
179
+ function Ut(e) {
180
180
  e.key === "Enter" && !e.shiftKey && (e.preventDefault(), It());
181
181
  }
182
- function Ut(e, t) {
182
+ function Wt(e, t) {
183
183
  e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Lt(t));
184
184
  }
185
- function Wt(e, t) {
186
- e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q(t)), e.key === "Escape" && Y();
185
+ function Gt(e, t) {
186
+ e.key === "Enter" && !e.shiftKey && (e.preventDefault(), $(t)), e.key === "Escape" && X();
187
187
  }
188
- function Gt() {
188
+ function Kt() {
189
189
  te(() => {
190
- W.value?.focus();
190
+ G.value?.focus();
191
191
  });
192
192
  }
193
193
  return E({
194
194
  filterByBlock: Mt,
195
- focusNewComment: Gt
195
+ focusNewComment: Kt
196
196
  }), (r, o) => e.visible ? (t(), s("div", {
197
197
  key: 0,
198
198
  role: "complementary",
@@ -219,94 +219,94 @@ var he = ["aria-label"], ge = { class: "tpl:flex tpl:items-center tpl:justify-be
219
219
  f("div", be, [
220
220
  f("button", {
221
221
  type: "button",
222
- class: l(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", N.value === "unresolved" ? "tpl-comment-filter--active" : ""]),
223
- "aria-pressed": N.value === "unresolved",
222
+ class: l(["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" : ""]),
223
+ "aria-pressed": P.value === "unresolved",
224
224
  "data-testid": "comments-filter-unresolved",
225
- onClick: o[1] ||= (e) => q("unresolved")
225
+ onClick: o[1] ||= (e) => J("unresolved")
226
226
  }, p(c(k).comments.filterUnresolved), 11, xe),
227
227
  f("button", {
228
228
  type: "button",
229
- class: l(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", N.value === "all" ? "tpl-comment-filter--active" : ""]),
230
- "aria-pressed": N.value === "all",
229
+ class: l(["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" : ""]),
230
+ "aria-pressed": P.value === "all",
231
231
  "data-testid": "comments-filter-all",
232
- onClick: o[2] ||= (e) => q("all")
232
+ onClick: o[2] ||= (e) => J("all")
233
233
  }, p(c(k).comments.filterAll), 11, Se),
234
234
  c(j).state.selectedBlockId ? (t(), s("button", {
235
235
  key: 0,
236
236
  type: "button",
237
- class: l(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", N.value === "block" ? "tpl-comment-filter--active" : ""]),
238
- "aria-pressed": N.value === "block",
237
+ class: l(["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" : ""]),
238
+ "aria-pressed": P.value === "block",
239
239
  "data-testid": "comments-filter-block",
240
- onClick: o[3] ||= (e) => q("block", c(j).state.selectedBlockId ?? void 0)
240
+ onClick: o[3] ||= (e) => J("block", c(j).state.selectedBlockId ?? void 0)
241
241
  }, p(c(k).comments.filterBlock), 11, Ce)) : u("", !0),
242
- c(P) ? (t(), s("button", {
242
+ c(F) ? (t(), s("button", {
243
243
  key: 1,
244
244
  type: "button",
245
245
  "data-testid": "comments-filter-language",
246
- class: l(["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)]", F.value ? "tpl-comment-filter--active" : ""]),
247
- "aria-pressed": F.value,
248
- onClick: o[4] ||= (e) => F.value = !F.value
246
+ class: l(["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" : ""]),
247
+ "aria-pressed": I.value,
248
+ onClick: o[4] ||= (e) => I.value = !I.value
249
249
  }, p(c(k).comments.filterLanguage), 11, we)) : u("", !0)
250
250
  ]),
251
- f("div", Te, [Ot.value ? (t(), s("div", Ee, [y(c(C), {
251
+ f("div", Te, [Ot.value ? (t(), s("div", Ee, [y(c(S), {
252
252
  class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
253
253
  size: 24,
254
254
  "stroke-width": 2
255
- })])) : K.value.length === 0 ? (t(), s("div", De, [y(c(w), {
255
+ })])) : q.value.length === 0 ? (t(), s("div", De, [y(c(w), {
256
256
  size: 32,
257
257
  "stroke-width": 1.5,
258
258
  class: "tpl:text-[var(--tpl-text-dim)]"
259
- }), f("p", Oe, p(N.value === "all" ? c(k).comments.noCommentsHint : c(k).comments.noComments), 1)])) : (t(), s("div", ke, [(t(!0), s(v, null, a(K.value, (e) => (t(), s("div", {
259
+ }), f("p", Oe, p(P.value === "all" ? c(k).comments.noCommentsHint : c(k).comments.noComments), 1)])) : (t(), s("div", ke, [(t(!0), s(v, null, a(q.value, (e) => (t(), s("div", {
260
260
  key: e.id,
261
261
  class: "tpl-comment-thread",
262
262
  "data-testid": "comment-thread"
263
263
  }, [
264
264
  f("div", Ae, [
265
265
  f("div", je, [f("div", Me, [
266
- f("span", Ne, p(M.value.isOwn(e) ? c(k).comments.ownedByYou : e.author.name), 1),
267
- f("span", Pe, p(Vt(e.createdAt)), 1),
268
- c(P) ? (t(), s("span", {
266
+ f("span", Ne, p(N.value.isOwn(e) ? c(k).comments.ownedByYou : e.author.name), 1),
267
+ f("span", Pe, p(Ht(e.createdAt)), 1),
268
+ c(F) ? (t(), s("span", {
269
269
  key: 0,
270
270
  "data-testid": "comment-locale-badge",
271
271
  class: l(c(b))
272
- }, p(c(x)(I(e))), 3)) : u("", !0),
272
+ }, p(c(M)(L(e))), 3)) : u("", !0),
273
273
  e.updatedAt ? (t(), s("span", Fe, " (" + p(c(k).comments.edited) + ") ", 1)) : u("", !0)
274
274
  ]), f("div", Ie, [
275
- M.value.canResolve.value ? (t(), s("button", {
275
+ N.value.canResolve.value ? (t(), s("button", {
276
276
  key: 0,
277
277
  "data-testid": "comment-resolve",
278
278
  class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
279
279
  title: e.resolvedAt ? c(k).comments.unresolve : c(k).comments.resolve,
280
280
  onClick: (t) => zt(e)
281
- }, [y(c(ue), {
281
+ }, [y(c(de), {
282
282
  size: 13,
283
283
  "stroke-width": 2,
284
284
  class: "tpl-resolve-icon",
285
285
  style: ne({ color: e.resolvedAt ? "var(--tpl-primary)" : void 0 })
286
286
  }, null, 8, ["style"])], 8, Le)) : u("", !0),
287
- $(e) ? (t(), s("button", {
287
+ Bt(e) ? (t(), s("button", {
288
288
  key: 1,
289
289
  "data-testid": "comment-edit",
290
290
  class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
291
291
  title: c(k).comments.edit,
292
- onClick: (t) => J(e)
293
- }, [y(c(S), {
292
+ onClick: (t) => Y(e)
293
+ }, [y(c(x), {
294
294
  size: 12,
295
295
  "stroke-width": 2
296
296
  })], 8, Re)) : u("", !0),
297
- Bt(e) ? (t(), s("button", {
297
+ Vt(e) ? (t(), s("button", {
298
298
  key: 2,
299
299
  "data-testid": "comment-delete",
300
300
  class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
301
301
  title: c(k).comments.delete,
302
- onClick: (t) => X(e.id)
303
- }, [y(c(pe), {
302
+ onClick: (t) => Z(e.id)
303
+ }, [y(c(C), {
304
304
  size: 12,
305
305
  "stroke-width": 2
306
306
  })], 8, ze)) : u("", !0)
307
307
  ])]),
308
308
  y(m, { name: "tpl-resolve" }, {
309
- default: n(() => [e.resolvedAt ? (t(), s("div", Be, [y(c(fe), {
309
+ default: n(() => [e.resolvedAt ? (t(), s("div", Be, [y(c(pe), {
310
310
  size: 10,
311
311
  "stroke-width": 2.5
312
312
  }), f("span", null, p(c(A)(c(k).comments.resolvedBy, { name: e.resolvedBy?.name ?? "" })), 1)])) : u("", !0)]),
@@ -317,20 +317,20 @@ var he = ["aria-label"], ge = { class: "tpl:flex tpl:items-center tpl:justify-be
317
317
  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)]",
318
318
  onClick: (t) => c(j).selectBlock(e.blockId ?? "")
319
319
  }, p(c(k).comments.jumpToBlock), 9, He)) : u("", !0),
320
- B.value === e.id ? (t(), s("div", Ue, [i(f("textarea", {
321
- "onUpdate:modelValue": o[5] ||= (e) => V.value = e,
320
+ V.value === e.id ? (t(), s("div", Ue, [i(f("textarea", {
321
+ "onUpdate:modelValue": o[5] ||= (e) => H.value = e,
322
322
  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)]",
323
323
  rows: "3",
324
- onKeydown: (t) => Wt(t, e.id)
325
- }, null, 40, We), [[h, V.value]]), f("div", Ge, [f("button", {
324
+ onKeydown: (t) => Gt(t, e.id)
325
+ }, null, 40, We), [[h, H.value]]), f("div", Ge, [f("button", {
326
326
  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)]",
327
- disabled: !V.value.trim() || M.value.isSubmitting.value,
328
- onClick: (t) => Q(e.id)
327
+ disabled: !H.value.trim() || N.value.isSubmitting.value,
328
+ onClick: (t) => $(e.id)
329
329
  }, p(c(k).comments.save), 9, Ke), f("button", {
330
330
  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)]",
331
- onClick: o[6] ||= (e) => Y()
331
+ onClick: o[6] ||= (e) => X()
332
332
  }, p(c(k).comments.cancel), 1)])])) : (t(), s("p", qe, p(e.body), 1)),
333
- U.value === e.id ? (t(), s("div", Je, [
333
+ W.value === e.id ? (t(), s("div", Je, [
334
334
  f("span", Ye, p(c(k).comments.deleteConfirm), 1),
335
335
  f("button", {
336
336
  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)]",
@@ -339,16 +339,16 @@ var he = ["aria-label"], ge = { class: "tpl:flex tpl:items-center tpl:justify-be
339
339
  }, p(c(k).comments.delete), 9, Xe),
340
340
  f("button", {
341
341
  class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
342
- onClick: o[7] ||= (e) => Z()
342
+ onClick: o[7] ||= (e) => Q()
343
343
  }, p(c(k).comments.cancel), 1)
344
344
  ])) : u("", !0),
345
- B.value !== e.id && U.value !== e.id ? (t(), s("div", Ze, [M.value.canCreate.value ? (t(), s("button", {
345
+ V.value !== e.id && W.value !== e.id ? (t(), s("div", Ze, [N.value.canCreate.value ? (t(), s("button", {
346
346
  key: 0,
347
347
  "data-testid": "comment-reply",
348
348
  class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
349
349
  title: c(k).comments.reply,
350
350
  onClick: (t) => Pt(e.id)
351
- }, [y(c(le), {
351
+ }, [y(c(ue), {
352
352
  size: 13,
353
353
  "stroke-width": 2,
354
354
  class: "tpl:text-[var(--tpl-primary)]"
@@ -356,61 +356,61 @@ var he = ["aria-label"], ge = { class: "tpl:flex tpl:items-center tpl:justify-be
356
356
  key: 1,
357
357
  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)]",
358
358
  onClick: (t) => Nt(e.id)
359
- }, [H.value.has(e.id) ? (t(), d(c(de), {
359
+ }, [U.value.has(e.id) ? (t(), d(c(fe), {
360
360
  key: 0,
361
361
  size: 11,
362
362
  "stroke-width": 2
363
- })) : (t(), d(c(ce), {
363
+ })) : (t(), d(c(le), {
364
364
  key: 1,
365
365
  size: 11,
366
366
  "stroke-width": 2
367
367
  })), ee(" " + p((e.replies?.length ?? 0) === 1 ? c(A)(c(k).comments.replyOne, { count: String(e.replies?.length ?? 0) }) : c(A)(c(k).comments.replyMany, { count: String(e.replies?.length ?? 0) })), 1)], 8, $e)) : u("", !0)])) : u("", !0)
368
368
  ]),
369
369
  y(m, { name: "tpl-replies" }, {
370
- default: n(() => [H.value.has(e.id) && (e.replies?.length ?? 0) > 0 ? (t(), s("div", et, [(t(!0), s(v, null, a(e.replies, (n, r) => (t(), s("div", {
370
+ default: n(() => [U.value.has(e.id) && (e.replies?.length ?? 0) > 0 ? (t(), s("div", et, [(t(!0), s(v, null, a(e.replies, (n, r) => (t(), s("div", {
371
371
  key: n.id,
372
372
  class: l(["tpl-comment-reply-card tpl:relative tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-2.5", r < (e.replies?.length ?? 0) - 1 ? "tpl:mb-2" : ""])
373
373
  }, [
374
374
  f("div", tt, [f("div", nt, [
375
- f("span", rt, p(M.value.isOwn(n) ? c(k).comments.ownedByYou : n.author.name), 1),
376
- f("span", it, p(Vt(n.createdAt)), 1),
377
- c(P) ? (t(), s("span", {
375
+ f("span", rt, p(N.value.isOwn(n) ? c(k).comments.ownedByYou : n.author.name), 1),
376
+ f("span", it, p(Ht(n.createdAt)), 1),
377
+ c(F) ? (t(), s("span", {
378
378
  key: 0,
379
379
  "data-testid": "comment-locale-badge",
380
380
  class: l(c(b))
381
- }, p(c(x)(I(n))), 3)) : u("", !0),
381
+ }, p(c(M)(L(n))), 3)) : u("", !0),
382
382
  n.updatedAt ? (t(), s("span", at, " (" + p(c(k).comments.edited) + ") ", 1)) : u("", !0)
383
- ]), f("div", ot, [$(n) ? (t(), s("button", {
383
+ ]), f("div", ot, [Bt(n) ? (t(), s("button", {
384
384
  key: 0,
385
385
  class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
386
386
  title: c(k).comments.edit,
387
- onClick: (e) => J(n)
388
- }, [y(c(S), {
387
+ onClick: (e) => Y(n)
388
+ }, [y(c(x), {
389
389
  size: 11,
390
390
  "stroke-width": 2
391
- })], 8, st)) : u("", !0), Bt(n) ? (t(), s("button", {
391
+ })], 8, st)) : u("", !0), Vt(n) ? (t(), s("button", {
392
392
  key: 1,
393
393
  class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
394
394
  title: c(k).comments.delete,
395
- onClick: (e) => X(n.id)
396
- }, [y(c(pe), {
395
+ onClick: (e) => Z(n.id)
396
+ }, [y(c(C), {
397
397
  size: 11,
398
398
  "stroke-width": 2
399
399
  })], 8, ct)) : u("", !0)])]),
400
- B.value === n.id ? (t(), s("div", lt, [i(f("textarea", {
401
- "onUpdate:modelValue": o[8] ||= (e) => V.value = e,
400
+ V.value === n.id ? (t(), s("div", lt, [i(f("textarea", {
401
+ "onUpdate:modelValue": o[8] ||= (e) => H.value = e,
402
402
  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)]",
403
403
  rows: "2",
404
- onKeydown: (e) => Wt(e, n.id)
405
- }, null, 40, ut), [[h, V.value]]), f("div", dt, [f("button", {
404
+ onKeydown: (e) => Gt(e, n.id)
405
+ }, null, 40, ut), [[h, H.value]]), f("div", dt, [f("button", {
406
406
  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)]",
407
- disabled: !V.value.trim() || M.value.isSubmitting.value,
408
- onClick: (e) => Q(n.id)
407
+ disabled: !H.value.trim() || N.value.isSubmitting.value,
408
+ onClick: (e) => $(n.id)
409
409
  }, p(c(k).comments.save), 9, ft), f("button", {
410
410
  class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
411
- onClick: o[9] ||= (e) => Y()
411
+ onClick: o[9] ||= (e) => X()
412
412
  }, p(c(k).comments.cancel), 1)])])) : (t(), s("p", pt, p(n.body), 1)),
413
- U.value === n.id ? (t(), s("div", mt, [
413
+ W.value === n.id ? (t(), s("div", mt, [
414
414
  f("span", ht, p(c(k).comments.deleteConfirm), 1),
415
415
  f("button", {
416
416
  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)]",
@@ -419,24 +419,24 @@ var he = ["aria-label"], ge = { class: "tpl:flex tpl:items-center tpl:justify-be
419
419
  }, p(c(k).comments.delete), 9, gt),
420
420
  f("button", {
421
421
  class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
422
- onClick: o[10] ||= (e) => Z()
422
+ onClick: o[10] ||= (e) => Q()
423
423
  }, p(c(k).comments.cancel), 1)
424
424
  ])) : u("", !0)
425
425
  ], 2))), 128))])) : u("", !0)]),
426
426
  _: 2
427
427
  }, 1024),
428
428
  y(m, { name: "tpl-replies" }, {
429
- default: n(() => [R.value === e.id ? (t(), s("div", _t, [f("div", vt, [
429
+ default: n(() => [z.value === e.id ? (t(), s("div", _t, [f("div", vt, [
430
430
  i(f("textarea", {
431
- "onUpdate:modelValue": o[11] ||= (e) => z.value = e,
431
+ "onUpdate:modelValue": o[11] ||= (e) => B.value = e,
432
432
  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)]",
433
433
  placeholder: c(k).comments.replyPlaceholder,
434
434
  rows: "2",
435
- onKeydown: (t) => Ut(t, e.id)
436
- }, null, 40, yt), [[h, z.value]]),
435
+ onKeydown: (t) => Wt(t, e.id)
436
+ }, null, 40, yt), [[h, B.value]]),
437
437
  f("button", {
438
438
  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)]",
439
- disabled: !z.value.trim() || M.value.isSubmitting.value,
439
+ disabled: !B.value.trim() || N.value.isSubmitting.value,
440
440
  onClick: (t) => Lt(e.id)
441
441
  }, [y(c(me), {
442
442
  size: 14,
@@ -453,22 +453,22 @@ var he = ["aria-label"], ge = { class: "tpl:flex tpl:items-center tpl:justify-be
453
453
  _: 2
454
454
  }, 1024)
455
455
  ]))), 128))]))]),
456
- M.value.canCreate.value ? (t(), s("div", xt, [jt.value ? (t(), s("div", St, p(c(k).comments.saveTemplateFirst), 1)) : (t(), s("div", Ct, [i(f("textarea", {
456
+ N.value.canCreate.value ? (t(), s("div", xt, [jt.value ? (t(), s("div", St, p(c(k).comments.saveTemplateFirst), 1)) : (t(), s("div", Ct, [i(f("textarea", {
457
457
  ref_key: "newCommentInput",
458
- ref: W,
459
- "onUpdate:modelValue": o[13] ||= (e) => L.value = e,
458
+ ref: G,
459
+ "onUpdate:modelValue": o[13] ||= (e) => R.value = e,
460
460
  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)]",
461
461
  "data-testid": "comments-input",
462
462
  placeholder: c(k).comments.placeholder,
463
- disabled: M.value.isSubmitting.value,
463
+ disabled: N.value.isSubmitting.value,
464
464
  rows: "2",
465
- onKeydown: Ht
466
- }, null, 40, wt), [[h, L.value]]), f("button", {
465
+ onKeydown: Ut
466
+ }, null, 40, wt), [[h, R.value]]), f("button", {
467
467
  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)]",
468
468
  "data-testid": "comments-send",
469
- disabled: !L.value.trim() || M.value.isSubmitting.value,
469
+ disabled: !R.value.trim() || N.value.isSubmitting.value,
470
470
  onClick: It
471
- }, [M.value.isSubmitting.value ? (t(), d(c(C), {
471
+ }, [N.value.isSubmitting.value ? (t(), d(c(S), {
472
472
  key: 0,
473
473
  class: "tpl-spinner",
474
474
  size: 16,
@@ -480,7 +480,7 @@ var he = ["aria-label"], ge = { class: "tpl:flex tpl:items-center tpl:justify-be
480
480
  }))], 8, Tt)]))])) : u("", !0)
481
481
  ], 8, he)) : u("", !0);
482
482
  }
483
- }), [["__scopeId", "data-v-75eacb94"]]);
483
+ }), [["__scopeId", "data-v-2aee0b06"]]);
484
484
  export { D as default };
485
485
 
486
- //# sourceMappingURL=CommentsSidebar-JxZ-O2mY.js.map
486
+ //# sourceMappingURL=CommentsSidebar-BEiOQ_zT.js.map