@templatical/editor 0.61.0 → 0.62.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 (230) hide show
  1. package/LICENSE +21 -109
  2. package/README.md +3 -3
  3. package/dist/{AiAltTextPopover-DSA1wiiW.js → AiAltTextPopover-C1Ike67q.js} +3 -4
  4. package/dist/{AiAltTextReview-B9-vfzCj.js → AiAltTextReview-BjT7_PoG.js} +2 -3
  5. package/dist/{AiChatPanel-DF5TvO9H.js → AiChatPanel-C82fJozf.js} +3 -4
  6. package/dist/{AiPanels-zRqC5DIP.js → AiPanels-sam_GMNs.js} +1 -1
  7. package/dist/{AiRewriteMenu-CmZKTO-O.js → AiRewriteMenu-CpBcT6QL.js} +3 -4
  8. package/dist/{BlockIssueBadge-Bug5iqcK.js → BlockIssueBadge-D3OmWkCh.js} +2 -3
  9. package/dist/{BlockPreviewCanvas-knSyWaCP.js → BlockPreviewCanvas-BHRmnq0w.js} +6 -6
  10. package/dist/{CollaborationNotices-BM35YG72.js → CollaborationNotices-Cmc7Ziuf.js} +1 -1
  11. package/dist/{CollaboratorBar-DMsEOndt.js → CollaboratorBar-DVtWefk1.js} +1 -1
  12. package/dist/{CommentsPanel-BMYvXRKK.js → CommentsPanel-BSt22Zw9.js} +1 -1
  13. package/dist/{cdn/chunks/CommentsSidebar-BEiOQ_zT.js → CommentsSidebar-C8qbxjyN.js} +228 -205
  14. package/dist/{CountdownBlock-AYPypmcX.js → CountdownBlock-bFAELCB6.js} +3 -4
  15. package/dist/{CountdownToolbar-BprSuPJk.js → CountdownToolbar-CJbPEVV5.js} +4 -4
  16. package/dist/{IssuesPanel-CeCvUfa7.js → IssuesPanel-CKYf6K84.js} +4 -5
  17. package/dist/{LanguageMenu-CkGqLYjf.js → LanguageMenu-BFOEQEPy.js} +5 -6
  18. package/dist/{LocaleNotices-D0be8ovO.js → LocaleNotices-24UYFxo2.js} +7 -8
  19. package/dist/{LogicTagInsertButton-BzEZUTRZ.js → LogicTagInsertButton-DdaafrjI.js} +95 -96
  20. package/dist/{MergeTagInput-By2FSStk.js → MergeTagInput-BXM6-eF-.js} +1 -1
  21. package/dist/{MergeTagModeToggle-DtjOZhoD.js → MergeTagModeToggle-ooA_Ytfq.js} +2 -3
  22. package/dist/{MergeTagTextarea-BjHlamJv.js → MergeTagTextarea-B86MPY89.js} +3 -4
  23. package/dist/{ParagraphEditor-Ctu4fSsl.js → ParagraphEditor-C15Glzy_.js} +78 -79
  24. package/dist/{RestoreVersionDialog-DvZoTJVa.js → RestoreVersionDialog-C13Bo4b0.js} +2 -2
  25. package/dist/{RichTextEditorContent-B1p7Ykq8.js → RichTextEditorContent-BNMBOkdy.js} +5 -6
  26. package/dist/{SaveBlockDialog-DHfT-Tpx.js → SaveBlockDialog-lm_1-2w2.js} +23 -24
  27. package/dist/{SavedBlocksBrowserModal-BjJuuXQv.js → SavedBlocksBrowserModal-BjUZG5_S.js} +8 -9
  28. package/dist/{SavedBlocksPanels-D6eiMQZ3.js → SavedBlocksPanels-Bj3LAXcL.js} +1 -1
  29. package/dist/{SavedBlocksPickBar-BkgCDSXe.js → SavedBlocksPickBar-DOTr0Imx.js} +2 -2
  30. package/dist/{TemplateSettings-DQAbNsiS.js → TemplateSettings-Z-i-_xF5.js} +19 -20
  31. package/dist/{TestEmailModal-m_AEa36T.js → TestEmailModal-ClEnoNEB.js} +17 -18
  32. package/dist/{TestEmailPanel-OApkuaVd.js → TestEmailPanel-CVmrt-d9.js} +1 -1
  33. package/dist/{TitleEditor-Cwdtfk15.js → TitleEditor-BHZF5C6q.js} +8 -9
  34. package/dist/{Toolbar-D_T55elL.js → Toolbar-bwAdFK4A.js} +308 -310
  35. package/dist/{TplModal-2MKm5y6r.js → TplModal-QWmSO1nR.js} +4 -4
  36. package/dist/{VersionHistoryMenu-B3-xJ7GO.js → VersionHistoryMenu-qoOkZKal.js} +6 -7
  37. package/dist/{VersionHistoryPanels-CCM0IQBg.js → VersionHistoryPanels-D82hgc2v.js} +1 -1
  38. package/dist/{VersionPreviewBanner-DLAB4ZbS.js → VersionPreviewBanner-DEN9rl6y.js} +1 -1
  39. package/dist/{WrapperBlock-BZl10HLy.js → WrapperBlock-32v93A9w.js} +4 -4
  40. package/dist/{blockTypeIcons-C691ZY1l.js → blockTypeIcons-C1S2wVx8.js} +4 -4
  41. package/dist/bundle-stats.json +8 -8
  42. package/dist/{ca-C8N05sCU.js → ca-BIseSbs-.js} +1 -2
  43. package/dist/cdn/chunks/{AiAltTextPopover-BLNN_Pnd.js → AiAltTextPopover-mDx_knAl.js} +4 -5
  44. package/dist/cdn/chunks/{AiAltTextPopover-BLNN_Pnd.js.map → AiAltTextPopover-mDx_knAl.js.map} +1 -1
  45. package/dist/cdn/chunks/{AiAltTextReview-Db8vSNpe.js → AiAltTextReview-Dmg8iVWD.js} +3 -4
  46. package/dist/cdn/chunks/{AiAltTextReview-Db8vSNpe.js.map → AiAltTextReview-Dmg8iVWD.js.map} +1 -1
  47. package/dist/cdn/chunks/{AiChatPanel-BYAsgmoC.js → AiChatPanel-CEDr_x8G.js} +4 -5
  48. package/dist/cdn/chunks/{AiChatPanel-BYAsgmoC.js.map → AiChatPanel-CEDr_x8G.js.map} +1 -1
  49. package/dist/cdn/chunks/{AiPanels-MY_YPls8.js → AiPanels-qJgLTYPs.js} +2 -2
  50. package/dist/cdn/chunks/{AiPanels-MY_YPls8.js.map → AiPanels-qJgLTYPs.js.map} +1 -1
  51. package/dist/cdn/chunks/{AiRewriteMenu-BSePiXe_.js → AiRewriteMenu-2a9WjizC.js} +4 -5
  52. package/dist/cdn/chunks/{AiRewriteMenu-BSePiXe_.js.map → AiRewriteMenu-2a9WjizC.js.map} +1 -1
  53. package/dist/cdn/chunks/{BlockIssueBadge-fYeNnepj.js → BlockIssueBadge-D87CYoPw.js} +3 -4
  54. package/dist/cdn/chunks/{BlockIssueBadge-fYeNnepj.js.map → BlockIssueBadge-D87CYoPw.js.map} +1 -1
  55. package/dist/cdn/chunks/{BlockPreviewCanvas-B153A3hu.js → BlockPreviewCanvas-DDDKuWJz.js} +8 -8
  56. package/dist/cdn/chunks/{BlockPreviewCanvas-B153A3hu.js.map → BlockPreviewCanvas-DDDKuWJz.js.map} +1 -1
  57. package/dist/cdn/chunks/{CollaborationNotices-COkmBmps.js → CollaborationNotices-DyzhN_Ns.js} +2 -2
  58. package/dist/cdn/chunks/{CollaborationNotices-COkmBmps.js.map → CollaborationNotices-DyzhN_Ns.js.map} +1 -1
  59. package/dist/cdn/chunks/{CollaboratorBar-BSzI8YIU.js → CollaboratorBar-bNFuQxxP.js} +2 -2
  60. package/dist/cdn/chunks/{CollaboratorBar-BSzI8YIU.js.map → CollaboratorBar-bNFuQxxP.js.map} +1 -1
  61. package/dist/cdn/chunks/{CommentsPanel-R27fqh9O.js → CommentsPanel-D-D2qsS6.js} +2 -2
  62. package/dist/cdn/chunks/{CommentsPanel-R27fqh9O.js.map → CommentsPanel-D-D2qsS6.js.map} +1 -1
  63. package/dist/cdn/chunks/CommentsSidebar-CCVp8M2T.js +479 -0
  64. package/dist/cdn/chunks/CommentsSidebar-CCVp8M2T.js.map +1 -0
  65. package/dist/cdn/chunks/{CountdownBlock--hlKE2aj.js → CountdownBlock-5hUzymeP.js} +4 -5
  66. package/dist/cdn/chunks/{CountdownBlock--hlKE2aj.js.map → CountdownBlock-5hUzymeP.js.map} +1 -1
  67. package/dist/cdn/chunks/{CountdownToolbar-DOhXnbsq.js → CountdownToolbar-DaGxwKfG.js} +5 -5
  68. package/dist/cdn/chunks/{CountdownToolbar-DOhXnbsq.js.map → CountdownToolbar-DaGxwKfG.js.map} +1 -1
  69. package/dist/cdn/chunks/{IssuesPanel-DgxiS3hF.js → IssuesPanel-DQQo1B1z.js} +10 -11
  70. package/dist/cdn/chunks/IssuesPanel-DQQo1B1z.js.map +1 -0
  71. package/dist/cdn/chunks/{LanguageMenu-B6kt8SgX.js → LanguageMenu-2Er64H2b.js} +6 -7
  72. package/dist/cdn/chunks/{LanguageMenu-B6kt8SgX.js.map → LanguageMenu-2Er64H2b.js.map} +1 -1
  73. package/dist/cdn/chunks/{LocaleNotices-Bleg4gTu.js → LocaleNotices-DSfOyyyf.js} +8 -9
  74. package/dist/cdn/chunks/{LocaleNotices-Bleg4gTu.js.map → LocaleNotices-DSfOyyyf.js.map} +1 -1
  75. package/dist/cdn/chunks/{LogicTagInsertButton-DGg1Wvhp.js → LogicTagInsertButton-CumMM1rP.js} +7 -8
  76. package/dist/cdn/chunks/{LogicTagInsertButton-DGg1Wvhp.js.map → LogicTagInsertButton-CumMM1rP.js.map} +1 -1
  77. package/dist/cdn/chunks/{MergeTagInput-BVfTwujW.js → MergeTagInput-Dm_QiG96.js} +2 -2
  78. package/dist/cdn/chunks/{MergeTagInput-BVfTwujW.js.map → MergeTagInput-Dm_QiG96.js.map} +1 -1
  79. package/dist/cdn/chunks/{MergeTagModeToggle-BoI0C1Y6.js → MergeTagModeToggle-Bir7lkLe.js} +3 -4
  80. package/dist/cdn/chunks/{MergeTagModeToggle-BoI0C1Y6.js.map → MergeTagModeToggle-Bir7lkLe.js.map} +1 -1
  81. package/dist/cdn/chunks/{MergeTagTextarea-DGDv-pdn.js → MergeTagTextarea-B_IFeWfZ.js} +4 -5
  82. package/dist/cdn/chunks/{MergeTagTextarea-DGDv-pdn.js.map → MergeTagTextarea-B_IFeWfZ.js.map} +1 -1
  83. package/dist/cdn/chunks/{ParagraphEditor-D0q36Myd.js → ParagraphEditor-CWjMxuy0.js} +135 -136
  84. package/dist/cdn/chunks/{ParagraphEditor-D0q36Myd.js.map → ParagraphEditor-CWjMxuy0.js.map} +1 -1
  85. package/dist/cdn/chunks/{RestoreVersionDialog-CJggFdbi.js → RestoreVersionDialog-BsfulSK7.js} +3 -3
  86. package/dist/cdn/chunks/{RestoreVersionDialog-CJggFdbi.js.map → RestoreVersionDialog-BsfulSK7.js.map} +1 -1
  87. package/dist/cdn/chunks/{RichTextEditorContent-D3ihUF8v.js → RichTextEditorContent-CuvFVxEq.js} +6 -7
  88. package/dist/cdn/chunks/{RichTextEditorContent-D3ihUF8v.js.map → RichTextEditorContent-CuvFVxEq.js.map} +1 -1
  89. package/dist/cdn/chunks/{SaveBlockDialog-BzES5tqd.js → SaveBlockDialog-8zxJlHw2.js} +25 -26
  90. package/dist/cdn/chunks/{SaveBlockDialog-BzES5tqd.js.map → SaveBlockDialog-8zxJlHw2.js.map} +1 -1
  91. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CLNcZcLd.js → SavedBlocksBrowserModal-DtaGW2H4.js} +9 -10
  92. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CLNcZcLd.js.map → SavedBlocksBrowserModal-DtaGW2H4.js.map} +1 -1
  93. package/dist/cdn/chunks/{SavedBlocksPanels-R0W9LElD.js → SavedBlocksPanels-CtDhdbiD.js} +2 -2
  94. package/dist/cdn/chunks/{SavedBlocksPanels-R0W9LElD.js.map → SavedBlocksPanels-CtDhdbiD.js.map} +1 -1
  95. package/dist/cdn/chunks/{SavedBlocksPickBar-JNi5Rx4V.js → SavedBlocksPickBar-DovcCaoW.js} +3 -3
  96. package/dist/cdn/chunks/{SavedBlocksPickBar-JNi5Rx4V.js.map → SavedBlocksPickBar-DovcCaoW.js.map} +1 -1
  97. package/dist/cdn/chunks/{TemplateSettings-C5wsNcgX.js → TemplateSettings-B8Ch5ps8.js} +20 -21
  98. package/dist/cdn/chunks/{TemplateSettings-C5wsNcgX.js.map → TemplateSettings-B8Ch5ps8.js.map} +1 -1
  99. package/dist/cdn/chunks/{TestEmailModal-BxIAwjww.js → TestEmailModal-D1EuQSgA.js} +16 -17
  100. package/dist/cdn/chunks/{TestEmailModal-BxIAwjww.js.map → TestEmailModal-D1EuQSgA.js.map} +1 -1
  101. package/dist/cdn/chunks/{TestEmailPanel-B8BsWXjE.js → TestEmailPanel-0iG-utN7.js} +2 -2
  102. package/dist/cdn/chunks/{TestEmailPanel-B8BsWXjE.js.map → TestEmailPanel-0iG-utN7.js.map} +1 -1
  103. package/dist/cdn/chunks/{TitleEditor-DhcI1aRS.js → TitleEditor-k2vSwKxN.js} +17 -18
  104. package/dist/cdn/chunks/{TitleEditor-DhcI1aRS.js.map → TitleEditor-k2vSwKxN.js.map} +1 -1
  105. package/dist/cdn/chunks/{Toolbar-Ch3h2BUs.js → Toolbar-BnTSuZQb.js} +310 -312
  106. package/dist/cdn/chunks/Toolbar-BnTSuZQb.js.map +1 -0
  107. package/dist/cdn/chunks/{TplModal-CPOqOxVf.js → TplModal-iRdN04Sa.js} +5 -5
  108. package/dist/cdn/chunks/{TplModal-CPOqOxVf.js.map → TplModal-iRdN04Sa.js.map} +1 -1
  109. package/dist/cdn/chunks/{VersionHistoryMenu-DTDO48HI.js → VersionHistoryMenu-DlPr3twf.js} +7 -8
  110. package/dist/cdn/chunks/{VersionHistoryMenu-DTDO48HI.js.map → VersionHistoryMenu-DlPr3twf.js.map} +1 -1
  111. package/dist/cdn/chunks/{VersionHistoryPanels-CVrXHYxT.js → VersionHistoryPanels-Bw5UHEvo.js} +2 -2
  112. package/dist/cdn/chunks/{VersionHistoryPanels-CVrXHYxT.js.map → VersionHistoryPanels-Bw5UHEvo.js.map} +1 -1
  113. package/dist/cdn/chunks/{VersionPreviewBanner-C1H_fYAr.js → VersionPreviewBanner-anJgZOcw.js} +2 -2
  114. package/dist/cdn/chunks/VersionPreviewBanner-anJgZOcw.js.map +1 -0
  115. package/dist/cdn/chunks/{WrapperBlock-B8SJ7Q4w.js → WrapperBlock-CFjCtyvx.js} +5 -5
  116. package/dist/cdn/chunks/{WrapperBlock-B8SJ7Q4w.js.map → WrapperBlock-CFjCtyvx.js.map} +1 -1
  117. package/dist/cdn/chunks/{ca-C8N05sCU.js → ca-BIseSbs-.js} +2 -3
  118. package/dist/cdn/chunks/{ca-C8N05sCU.js.map → ca-BIseSbs-.js.map} +1 -1
  119. package/dist/cdn/chunks/{composables-CKXPwWo9.js → composables-Nir0umYc.js} +444 -464
  120. package/dist/cdn/chunks/composables-Nir0umYc.js.map +1 -0
  121. package/dist/{da-Dno_4nGy.js → cdn/chunks/da-DN46iRXS.js} +3 -2
  122. package/dist/cdn/chunks/{da-Dno_4nGy.js.map → da-DN46iRXS.js.map} +1 -1
  123. package/dist/{de-DRR5JSkh.js → cdn/chunks/de-Dyk8PPCm.js} +3 -2
  124. package/dist/cdn/chunks/{de-DRR5JSkh.js.map → de-Dyk8PPCm.js.map} +1 -1
  125. package/dist/{en-DAcLbbpg.js → cdn/chunks/en-BzMbMmgz.js} +3 -2
  126. package/dist/cdn/chunks/{en-DAcLbbpg.js.map → en-BzMbMmgz.js.map} +1 -1
  127. package/dist/{es-BcEQLQxe.js → cdn/chunks/es-KSHEXYyf.js} +3 -2
  128. package/dist/cdn/chunks/{es-BcEQLQxe.js.map → es-KSHEXYyf.js.map} +1 -1
  129. package/dist/cdn/chunks/{extensions-Bq9nXmBP.js → extensions-Br2hHeiR.js} +5 -5
  130. package/dist/cdn/chunks/{extensions-Bq9nXmBP.js.map → extensions-Br2hHeiR.js.map} +1 -1
  131. package/dist/{fr-CNQG7ESr.js → cdn/chunks/fr-DtKHfZyk.js} +3 -2
  132. package/dist/cdn/chunks/{fr-CNQG7ESr.js.map → fr-DtKHfZyk.js.map} +1 -1
  133. package/dist/{ja-CMxWxqSH.js → cdn/chunks/ja-DUSaDVPA.js} +3 -2
  134. package/dist/cdn/chunks/{ja-CMxWxqSH.js.map → ja-DUSaDVPA.js.map} +1 -1
  135. package/dist/{nl-BjyYZDkC.js → cdn/chunks/nl-DQbuxzD6.js} +3 -2
  136. package/dist/cdn/chunks/{nl-BjyYZDkC.js.map → nl-DQbuxzD6.js.map} +1 -1
  137. package/dist/{pt-BR-DC2A3C0v.js → cdn/chunks/pt-BR-CxpxBtvc.js} +3 -2
  138. package/dist/cdn/chunks/{pt-BR-DC2A3C0v.js.map → pt-BR-CxpxBtvc.js.map} +1 -1
  139. package/dist/cdn/chunks/rolldown-runtime-CGnMp29N.js +10 -0
  140. package/dist/cdn/chunks/{socialIcons-CSe4YJ52.js → socialIcons-CXQfKLUV.js} +156 -136
  141. package/dist/cdn/chunks/socialIcons-CXQfKLUV.js.map +1 -0
  142. package/dist/cdn/chunks/{src-Bk1LF1np.js → src-9e0wFfHH.js} +4 -2
  143. package/dist/cdn/chunks/src-9e0wFfHH.js.map +1 -0
  144. package/dist/cdn/chunks/src-A0kzK-pR.js.map +1 -1
  145. package/dist/cdn/chunks/{src-edESkGqO.js → src-C9jjLNMg.js} +2 -2
  146. package/dist/cdn/chunks/{src-edESkGqO.js.map → src-C9jjLNMg.js.map} +1 -1
  147. package/dist/cdn/chunks/{tiptap-DDhueoan.js → tiptap-DLW5XdqI.js} +2 -2
  148. package/dist/cdn/chunks/{tiptap-DDhueoan.js.map → tiptap-DLW5XdqI.js.map} +1 -1
  149. package/dist/cdn/chunks/{useEditorRoot-D0Lp2x4_.js → useEditorRoot-BPVxLYFD.js} +2 -2
  150. package/dist/cdn/chunks/{useEditorRoot-D0Lp2x4_.js.map → useEditorRoot-BPVxLYFD.js.map} +1 -1
  151. package/dist/cdn/chunks/useI18n-DwP1ksBW.js +24 -0
  152. package/dist/cdn/chunks/{keys-ywH4jHJ2.js.map → useI18n-DwP1ksBW.js.map} +1 -1
  153. package/dist/cdn/chunks/{useLanguageName-DDhdVpqh.js → useLanguageName-CeuoO9WZ.js} +2 -2
  154. package/dist/cdn/chunks/{useLanguageName-DDhdVpqh.js.map → useLanguageName-CeuoO9WZ.js.map} +1 -1
  155. package/dist/cdn/chunks/{useLogicTag-CKtQlJDa.js → useLogicTag-gphGbQfy.js} +3 -3
  156. package/dist/cdn/chunks/{useLogicTag-CKtQlJDa.js.map → useLogicTag-gphGbQfy.js.map} +1 -1
  157. package/dist/cdn/chunks/{useMergeTag-Dwy3U0PI.js → useMergeTag-QM-tkBc6.js} +3 -3
  158. package/dist/cdn/chunks/{useMergeTag-Dwy3U0PI.js.map → useMergeTag-QM-tkBc6.js.map} +1 -1
  159. package/dist/cdn/chunks/{usePopoverPosition-CBp9uwjV.js → usePopoverPosition-Cg8LR0W4.js} +2 -2
  160. package/dist/cdn/chunks/{usePopoverPosition-CBp9uwjV.js.map → usePopoverPosition-Cg8LR0W4.js.map} +1 -1
  161. package/dist/cdn/chunks/{useScrollToBlock-32EnuMwu.js → useScrollToBlock-CS7zo4oQ.js} +2 -2
  162. package/dist/cdn/chunks/{useScrollToBlock-32EnuMwu.js.map → useScrollToBlock-CS7zo4oQ.js.map} +1 -1
  163. package/dist/cdn/editor.css +1 -1
  164. package/dist/cdn/editor.js +877 -975
  165. package/dist/cdn/editor.js.map +1 -1
  166. package/dist/{composables-26aR45W3.js → composables-6SKZrQs-.js} +817 -837
  167. package/dist/{cdn/chunks/da-Dno_4nGy.js → da-DN46iRXS.js} +1 -4
  168. package/dist/{cdn/chunks/de-DRR5JSkh.js → de-Dyk8PPCm.js} +1 -4
  169. package/dist/{cdn/chunks/en-DAcLbbpg.js → en-BzMbMmgz.js} +1 -4
  170. package/dist/{cdn/chunks/es-BcEQLQxe.js → es-KSHEXYyf.js} +1 -4
  171. package/dist/{extensions-zHf8YFRw.js → extensions-D74nAP73.js} +3 -3
  172. package/dist/{cdn/chunks/fr-CNQG7ESr.js → fr-DtKHfZyk.js} +1 -4
  173. package/dist/index.d.ts +33 -405
  174. package/dist/{cdn/chunks/ja-CMxWxqSH.js → ja-DUSaDVPA.js} +1 -4
  175. package/dist/{cdn/chunks/nl-BjyYZDkC.js → nl-DQbuxzD6.js} +1 -4
  176. package/dist/{cdn/chunks/pt-BR-DC2A3C0v.js → pt-BR-CxpxBtvc.js} +1 -4
  177. package/dist/{socialIcons-mWE33bOn.js → socialIcons-K89pe-h2.js} +84 -64
  178. package/dist/style.css +1 -1
  179. package/dist/templatical-editor.js +1060 -1158
  180. package/dist/{useEditorRoot-DWfC2CVC.js → useEditorRoot-CQeutW_s.js} +1 -1
  181. package/dist/useI18n-B05qsAsl.js +22 -0
  182. package/dist/{useLanguageName-CEFzafHB.js → useLanguageName-CnpG7FD5.js} +1 -1
  183. package/dist/{useLogicTag-K5CPoMTk.js → useLogicTag-DSa1si4o.js} +2 -2
  184. package/dist/{useMergeTag-tsU_Sw2x.js → useMergeTag-DwxbvRZI.js} +2 -2
  185. package/dist/{usePopoverPosition-DF0ZYH7g.js → usePopoverPosition-B8CXTr8v.js} +1 -1
  186. package/dist/{useScrollToBlock-eZXiGa8o.js → useScrollToBlock-ZZBBGFan.js} +1 -1
  187. package/package.json +11 -13
  188. package/dist/CloudHeaderExtras-DC_oNrxz.js +0 -22
  189. package/dist/CloudPanels-BbHJHZri.js +0 -167
  190. package/dist/CommentsSidebar-_8at1Rug.js +0 -516
  191. package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js +0 -24
  192. package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js.map +0 -1
  193. package/dist/cdn/chunks/CloudPanels-Bv26_Sd8.js +0 -167
  194. package/dist/cdn/chunks/CloudPanels-Bv26_Sd8.js.map +0 -1
  195. package/dist/cdn/chunks/CommentsSidebar-BEiOQ_zT.js.map +0 -1
  196. package/dist/cdn/chunks/IssuesPanel-DgxiS3hF.js.map +0 -1
  197. package/dist/cdn/chunks/Toolbar-Ch3h2BUs.js.map +0 -1
  198. package/dist/cdn/chunks/VersionPreviewBanner-C1H_fYAr.js.map +0 -1
  199. package/dist/cdn/chunks/composables-CKXPwWo9.js.map +0 -1
  200. package/dist/cdn/chunks/createCloudRuntime-CUlw09ix.js +0 -1405
  201. package/dist/cdn/chunks/createCloudRuntime-CUlw09ix.js.map +0 -1
  202. package/dist/cdn/chunks/de-6M4JoHoD.js +0 -21
  203. package/dist/cdn/chunks/de-6M4JoHoD.js.map +0 -1
  204. package/dist/cdn/chunks/en-FzUuJ8HW.js +0 -21
  205. package/dist/cdn/chunks/en-FzUuJ8HW.js.map +0 -1
  206. package/dist/cdn/chunks/keys-ywH4jHJ2.js +0 -11
  207. package/dist/cdn/chunks/logger-CqQTfJGx.js +0 -26
  208. package/dist/cdn/chunks/logger-CqQTfJGx.js.map +0 -1
  209. package/dist/cdn/chunks/preRenderCustomBlocks-BLVFtvl8.js +0 -22
  210. package/dist/cdn/chunks/preRenderCustomBlocks-BLVFtvl8.js.map +0 -1
  211. package/dist/cdn/chunks/pt-BR-Bp92Fc6J.js +0 -21
  212. package/dist/cdn/chunks/pt-BR-Bp92Fc6J.js.map +0 -1
  213. package/dist/cdn/chunks/pusher-x9rNqzon.js +0 -2473
  214. package/dist/cdn/chunks/pusher-x9rNqzon.js.map +0 -1
  215. package/dist/cdn/chunks/rolldown-runtime-QGRDbDUS.js +0 -19
  216. package/dist/cdn/chunks/socialIcons-CSe4YJ52.js.map +0 -1
  217. package/dist/cdn/chunks/src-Bk1LF1np.js.map +0 -1
  218. package/dist/cdn/chunks/useCloudI18n-BTV9uu3c.js +0 -24
  219. package/dist/cdn/chunks/useCloudI18n-BTV9uu3c.js.map +0 -1
  220. package/dist/cdn/chunks/useI18n-DPg6rPbu.js +0 -18
  221. package/dist/cdn/chunks/useI18n-DPg6rPbu.js.map +0 -1
  222. package/dist/createCloudRuntime-CiEo0wkr.js +0 -1389
  223. package/dist/de-6M4JoHoD.js +0 -19
  224. package/dist/en-FzUuJ8HW.js +0 -19
  225. package/dist/keys-B4DimcgX.js +0 -9
  226. package/dist/logger-BOu7oEtk.js +0 -24
  227. package/dist/preRenderCustomBlocks-6CLw2rP6.js +0 -20
  228. package/dist/pt-BR-Bp92Fc6J.js +0 -19
  229. package/dist/useCloudI18n-BnuOL1YS.js +0 -22
  230. package/dist/useI18n-Cx9W7OWb.js +0 -16
@@ -1,516 +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-BE5V8ADU.js";
2
- import { a as y, t as b } from "./runtime-dom.esm-bundler-nN-jsqr1.js";
3
- import { u as x } from "./styleConstants-Br6CIRoS.js";
4
- import { t as ne } from "./useLanguageName-CEFzafHB.js";
5
- import { t as re } from "./formatRelativeTime-BTD8Ktt-.js";
6
- import { O as ie, ut as ae, v as oe } from "./keys-B4DimcgX.js";
7
- import { t as se } from "./useI18n-Cx9W7OWb.js";
8
- import { t as ce } from "./check-8ZykoWzl.js";
9
- import { t as S } from "./createLucideIcon-BKeRiObH.js";
10
- import { t as le } from "./chevron-down-D_CUJHwi.js";
11
- import { t as ue } from "./chevron-up-L-H27use.js";
12
- import { t as C } from "./loader-circle-uLY01591.js";
13
- import { t as w } from "./message-circle-amY03UMa.js";
14
- import { t as T } from "./pencil-D1HBG4pb.js";
15
- import { t as E } from "./send-BJEuoIc2.js";
16
- import { t as D } from "./trash-CJsobpw0.js";
17
- import { t as O } from "./x-CuyPLm0U.js";
18
- import { t as de } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
19
- var fe = S({
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 = S({
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: S, emit: de }) {
110
- let k = v, Tt = de, { t: A, format: j } = se(), M = ae(oe, "CommentsSidebar"), N = ne(M), P = u(() => k.feature.headless), F = p("unresolved"), I = te(ie, void 0), L = p(!1), Et = u(() => M.activeLocale?.value ?? M.content.value.settings.locale);
111
- function R(e) {
112
- return e.locale ?? M.content.value.settings.locale;
113
- }
114
- let z = p(""), B = p(null), V = p(""), H = p(null), U = p(""), W = p(/* @__PURE__ */ new Set()), G = p(null), K = p(null), q = u(() => k.feature.filterBlockId.value);
115
- e(q, (e) => {
116
- e && (F.value = "block");
117
- }, { immediate: !0 });
118
- let Dt = u(() => P.value.isLoading.value && P.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(() => F.value !== "block" || !q.value ? !1 : k.feature.capability.isBlockSaved(q.value) === !1), J = u(() => {
127
- let e = P.value.comments.value;
128
- return F.value === "unresolved" ? e = e.filter((e) => !e.resolvedAt) : F.value === "block" && q.value && (e = e.filter((e) => e.blockId === q.value)), L.value && (e = e.filter((e) => [e, ...e.replies ?? []].some((e) => R(e) === Et.value))), e;
129
- });
130
- e(() => M.state.selectedBlockId, (e) => {
131
- F.value === "block" && e && (k.feature.filterBlockId.value = e);
132
- });
133
- function Y(e, t) {
134
- F.value = e, k.feature.filterBlockId.value = e === "block" ? t ?? null : null;
135
- }
136
- function jt(e) {
137
- Y("block", e);
138
- }
139
- function Mt(e) {
140
- W.value.has(e) ? W.value.delete(e) : W.value.add(e);
141
- }
142
- function Nt(e) {
143
- B.value = e, V.value = "", H.value = null, W.value.has(e) || W.value.add(e);
144
- }
145
- function Pt() {
146
- B.value = null, V.value = "";
147
- }
148
- function X(e) {
149
- H.value = e.id, U.value = e.body, B.value = null;
150
- }
151
- function Z() {
152
- H.value = null, U.value = "";
153
- }
154
- function Ft(e) {
155
- G.value = e;
156
- }
157
- function It() {
158
- G.value = null;
159
- }
160
- async function Lt() {
161
- let e = z.value.trim();
162
- if (!e || !P.value.canCreate.value) return;
163
- let t = F.value === "block" ? q.value : void 0;
164
- try {
165
- await P.value.create({
166
- body: e,
167
- blockId: t ?? void 0,
168
- locale: M.activeLocale?.value ?? M.content.value.settings.locale
169
- }), z.value = "";
170
- } catch {}
171
- }
172
- async function Rt(e) {
173
- let t = V.value.trim();
174
- if (!t || !P.value.canCreate.value) return;
175
- let n = P.value.find(e);
176
- try {
177
- await P.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
- }), B.value = null, V.value = "";
183
- } catch {}
184
- }
185
- async function Q(e) {
186
- let t = U.value.trim();
187
- if (t) try {
188
- await P.value.update(e, { body: t }), H.value = null, U.value = "";
189
- } catch {}
190
- }
191
- async function zt(e) {
192
- try {
193
- await P.value.remove(e);
194
- } catch {}
195
- G.value = null;
196
- }
197
- async function Bt(e) {
198
- try {
199
- await P.value.setResolved(e.id, !e.resolvedAt);
200
- } catch {}
201
- }
202
- function Vt(e) {
203
- return P.value.canUpdate.value && P.value.isOwn(e);
204
- }
205
- function Ht(e) {
206
- return P.value.canDelete.value && P.value.isOwn(e);
207
- }
208
- function Ut(e) {
209
- return re(e, A.time) ?? e;
210
- }
211
- function Wt(e) {
212
- e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Lt());
213
- }
214
- function Gt(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(), Q(t)), e.key === "Escape" && Z();
219
- }
220
- function Kt() {
221
- i(() => {
222
- K.value?.focus();
223
- });
224
- }
225
- return S({
226
- filterByBlock: jt,
227
- focusNewComment: Kt
228
- }), (e, i) => v.visible ? (n(), m("div", {
229
- key: 0,
230
- role: "complementary",
231
- "aria-label": d(A).comments.title,
232
- "data-testid": "comments-sidebar",
233
- 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)]"
234
- }, [
235
- h("div", he, [h("div", ge, [
236
- l(d(w), {
237
- size: 13,
238
- "stroke-width": 2
239
- }),
240
- h("span", null, t(d(A).comments.title), 1),
241
- v.feature.unresolvedCount.value > 0 ? (n(), m("span", _e, t(v.feature.unresolvedCount.value), 1)) : f("", !0)
242
- ]), h("button", {
243
- type: "button",
244
- class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
245
- "aria-label": d(A).comments.close,
246
- onClick: i[0] ||= (e) => Tt("close")
247
- }, [l(d(O), {
248
- size: 14,
249
- "stroke-width": 2
250
- })], 8, ve)]),
251
- h("div", ye, [
252
- h("button", {
253
- type: "button",
254
- class: r(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", F.value === "unresolved" ? "tpl-comment-filter--active" : ""]),
255
- "aria-pressed": F.value === "unresolved",
256
- "data-testid": "comments-filter-unresolved",
257
- onClick: i[1] ||= (e) => Y("unresolved")
258
- }, t(d(A).comments.filterUnresolved), 11, be),
259
- h("button", {
260
- type: "button",
261
- class: r(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", F.value === "all" ? "tpl-comment-filter--active" : ""]),
262
- "aria-pressed": F.value === "all",
263
- "data-testid": "comments-filter-all",
264
- onClick: i[2] ||= (e) => Y("all")
265
- }, t(d(A).comments.filterAll), 11, xe),
266
- d(M).state.selectedBlockId ? (n(), m("button", {
267
- key: 0,
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", F.value === "block" ? "tpl-comment-filter--active" : ""]),
270
- "aria-pressed": F.value === "block",
271
- "data-testid": "comments-filter-block",
272
- onClick: i[3] ||= (e) => Y("block", d(M).state.selectedBlockId ?? void 0)
273
- }, t(d(A).comments.filterBlock), 11, Se)) : f("", !0),
274
- d(I) ? (n(), m("button", {
275
- key: 1,
276
- type: "button",
277
- "data-testid": "comments-filter-language",
278
- 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)]", L.value ? "tpl-comment-filter--active" : ""]),
279
- "aria-pressed": L.value,
280
- onClick: i[4] ||= (e) => L.value = !L.value
281
- }, t(d(A).comments.filterLanguage), 11, Ce)) : f("", !0)
282
- ]),
283
- h("div", we, [Dt.value ? (n(), m("div", Te, [l(d(C), {
284
- class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
285
- size: 24,
286
- "stroke-width": 2
287
- })])) : J.value.length === 0 ? (n(), m("div", Ee, [l(d(w), {
288
- size: 32,
289
- "stroke-width": 1.5,
290
- class: "tpl:text-[var(--tpl-text-dim)]"
291
- }), h("p", De, t(F.value === "all" ? d(A).comments.noCommentsHint : d(A).comments.noComments), 1)])) : (n(), m("div", Oe, [(n(!0), m(g, null, a(J.value, (e) => (n(), m("div", {
292
- key: e.id,
293
- class: "tpl-comment-thread",
294
- "data-testid": "comment-thread"
295
- }, [
296
- h("div", ke, [
297
- h("div", Ae, [h("div", je, [
298
- h("span", Me, t(P.value.isOwn(e) ? d(A).comments.ownedByYou : e.author.name), 1),
299
- h("span", Ne, t(Ut(e.createdAt)), 1),
300
- d(I) ? (n(), m("span", {
301
- key: 0,
302
- "data-testid": "comment-locale-badge",
303
- class: r(d(x))
304
- }, t(d(N)(R(e))), 3)) : f("", !0),
305
- e.updatedAt ? (n(), m("span", Pe, " (" + t(d(A).comments.edited) + ") ", 1)) : f("", !0)
306
- ]), h("div", Fe, [
307
- P.value.canResolve.value ? (n(), m("button", {
308
- key: 0,
309
- "data-testid": "comment-resolve",
310
- class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
311
- title: e.resolvedAt ? d(A).comments.unresolve : d(A).comments.resolve,
312
- onClick: (t) => Bt(e)
313
- }, [l(d(fe), {
314
- size: 13,
315
- "stroke-width": 2,
316
- class: "tpl-resolve-icon",
317
- style: o({ color: e.resolvedAt ? "var(--tpl-primary)" : void 0 })
318
- }, null, 8, ["style"])], 8, Ie)) : f("", !0),
319
- Vt(e) ? (n(), m("button", {
320
- key: 1,
321
- "data-testid": "comment-edit",
322
- class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
323
- title: d(A).comments.edit,
324
- onClick: (t) => X(e)
325
- }, [l(d(T), {
326
- size: 12,
327
- "stroke-width": 2
328
- })], 8, Le)) : f("", !0),
329
- Ht(e) ? (n(), m("button", {
330
- key: 2,
331
- "data-testid": "comment-delete",
332
- class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
333
- title: d(A).comments.delete,
334
- onClick: (t) => Ft(e.id)
335
- }, [l(d(D), {
336
- size: 12,
337
- "stroke-width": 2
338
- })], 8, Re)) : f("", !0)
339
- ])]),
340
- l(b, { name: "tpl-resolve" }, {
341
- default: s(() => [e.resolvedAt ? (n(), m("div", ze, [l(d(ce), {
342
- size: 10,
343
- "stroke-width": 2.5
344
- }), h("span", null, t(d(j)(d(A).comments.resolvedBy, { name: e.resolvedBy?.name ?? "" })), 1)])) : f("", !0)]),
345
- _: 2
346
- }, 1024),
347
- e.blockId && kt(e.blockId) ? (n(), m("span", Be, t(d(A).comments.missingBlock), 1)) : e.blockId ? (n(), m("button", {
348
- key: 1,
349
- 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)]",
350
- onClick: (t) => d(M).selectBlock(e.blockId ?? "")
351
- }, t(d(A).comments.jumpToBlock), 9, Ve)) : f("", !0),
352
- H.value === e.id ? (n(), m("div", He, [c(h("textarea", {
353
- "onUpdate:modelValue": i[5] ||= (e) => U.value = e,
354
- 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)]",
355
- rows: "3",
356
- onKeydown: (t) => $(t, e.id)
357
- }, null, 40, Ue), [[y, U.value]]), h("div", We, [h("button", {
358
- 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)]",
359
- disabled: !U.value.trim() || P.value.isSubmitting.value,
360
- onClick: (t) => Q(e.id)
361
- }, t(d(A).comments.save), 9, Ge), h("button", {
362
- 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)]",
363
- onClick: i[6] ||= (e) => Z()
364
- }, t(d(A).comments.cancel), 1)])])) : (n(), m("p", Ke, t(e.body), 1)),
365
- G.value === e.id ? (n(), m("div", qe, [
366
- h("span", Je, t(d(A).comments.deleteConfirm), 1),
367
- h("button", {
368
- 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)]",
369
- "data-testid": "comment-delete-confirm",
370
- onClick: (t) => zt(e.id)
371
- }, t(d(A).comments.delete), 9, Ye),
372
- h("button", {
373
- class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
374
- onClick: i[7] ||= (e) => It()
375
- }, t(d(A).comments.cancel), 1)
376
- ])) : f("", !0),
377
- H.value !== e.id && G.value !== e.id ? (n(), m("div", Xe, [P.value.canCreate.value ? (n(), m("button", {
378
- key: 0,
379
- "data-testid": "comment-reply",
380
- class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
381
- title: d(A).comments.reply,
382
- onClick: (t) => Nt(e.id)
383
- }, [l(d(pe), {
384
- size: 13,
385
- "stroke-width": 2,
386
- class: "tpl:text-[var(--tpl-primary)]"
387
- })], 8, Ze)) : f("", !0), (e.replies?.length ?? 0) > 0 ? (n(), m("button", {
388
- key: 1,
389
- 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)]",
390
- onClick: (t) => Mt(e.id)
391
- }, [W.value.has(e.id) ? (n(), _(d(ue), {
392
- key: 0,
393
- size: 11,
394
- "stroke-width": 2
395
- })) : (n(), _(d(le), {
396
- key: 1,
397
- size: 11,
398
- "stroke-width": 2
399
- })), 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)
400
- ]),
401
- l(b, { name: "tpl-replies" }, {
402
- default: s(() => [W.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", {
403
- key: a.id,
404
- 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" : ""])
405
- }, [
406
- h("div", et, [h("div", tt, [
407
- h("span", nt, t(P.value.isOwn(a) ? d(A).comments.ownedByYou : a.author.name), 1),
408
- h("span", rt, t(Ut(a.createdAt)), 1),
409
- d(I) ? (n(), m("span", {
410
- key: 0,
411
- "data-testid": "comment-locale-badge",
412
- class: r(d(x))
413
- }, t(d(N)(R(a))), 3)) : f("", !0),
414
- a.updatedAt ? (n(), m("span", it, " (" + t(d(A).comments.edited) + ") ", 1)) : f("", !0)
415
- ]), h("div", at, [Vt(a) ? (n(), m("button", {
416
- key: 0,
417
- class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
418
- title: d(A).comments.edit,
419
- onClick: (e) => X(a)
420
- }, [l(d(T), {
421
- size: 11,
422
- "stroke-width": 2
423
- })], 8, ot)) : f("", !0), Ht(a) ? (n(), m("button", {
424
- key: 1,
425
- class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
426
- title: d(A).comments.delete,
427
- onClick: (e) => Ft(a.id)
428
- }, [l(d(D), {
429
- size: 11,
430
- "stroke-width": 2
431
- })], 8, st)) : f("", !0)])]),
432
- H.value === a.id ? (n(), m("div", ct, [c(h("textarea", {
433
- "onUpdate:modelValue": i[8] ||= (e) => U.value = e,
434
- 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)]",
435
- rows: "2",
436
- onKeydown: (e) => $(e, a.id)
437
- }, null, 40, lt), [[y, U.value]]), h("div", ut, [h("button", {
438
- 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)]",
439
- disabled: !U.value.trim() || P.value.isSubmitting.value,
440
- onClick: (e) => Q(a.id)
441
- }, t(d(A).comments.save), 9, dt), h("button", {
442
- class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
443
- onClick: i[9] ||= (e) => Z()
444
- }, t(d(A).comments.cancel), 1)])])) : (n(), m("p", ft, t(a.body), 1)),
445
- G.value === a.id ? (n(), m("div", pt, [
446
- h("span", mt, t(d(A).comments.deleteConfirm), 1),
447
- h("button", {
448
- 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)]",
449
- "data-testid": "comment-delete-confirm",
450
- onClick: (e) => zt(a.id)
451
- }, t(d(A).comments.delete), 9, ht),
452
- h("button", {
453
- class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
454
- onClick: i[10] ||= (e) => It()
455
- }, t(d(A).comments.cancel), 1)
456
- ])) : f("", !0)
457
- ], 2))), 128))])) : f("", !0)]),
458
- _: 2
459
- }, 1024),
460
- l(b, { name: "tpl-replies" }, {
461
- default: s(() => [B.value === e.id ? (n(), m("div", gt, [h("div", _t, [
462
- c(h("textarea", {
463
- "onUpdate:modelValue": i[11] ||= (e) => V.value = e,
464
- 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)]",
465
- placeholder: d(A).comments.replyPlaceholder,
466
- rows: "2",
467
- onKeydown: (t) => Gt(t, e.id)
468
- }, null, 40, vt), [[y, V.value]]),
469
- h("button", {
470
- 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)]",
471
- disabled: !V.value.trim() || P.value.isSubmitting.value,
472
- onClick: (t) => Rt(e.id)
473
- }, [l(d(E), {
474
- size: 14,
475
- "stroke-width": 2
476
- })], 8, yt),
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:text-[var(--tpl-text-muted)]",
479
- onClick: i[12] ||= (e) => Pt()
480
- }, [l(d(O), {
481
- size: 14,
482
- "stroke-width": 2
483
- })])
484
- ])])) : f("", !0)]),
485
- _: 2
486
- }, 1024)
487
- ]))), 128))]))]),
488
- P.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", {
489
- ref_key: "newCommentInput",
490
- ref: K,
491
- "onUpdate:modelValue": i[13] ||= (e) => z.value = e,
492
- 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)]",
493
- "data-testid": "comments-input",
494
- placeholder: d(A).comments.placeholder,
495
- disabled: P.value.isSubmitting.value,
496
- rows: "2",
497
- onKeydown: Wt
498
- }, null, 40, Ct), [[y, z.value]]), h("button", {
499
- 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)]",
500
- "data-testid": "comments-send",
501
- disabled: !z.value.trim() || P.value.isSubmitting.value,
502
- onClick: Lt
503
- }, [P.value.isSubmitting.value ? (n(), _(d(C), {
504
- key: 0,
505
- class: "tpl-spinner",
506
- size: 16,
507
- "stroke-width": 2
508
- })) : (n(), _(d(E), {
509
- key: 1,
510
- size: 16,
511
- "stroke-width": 2
512
- }))], 8, wt)]))])) : f("", !0)
513
- ], 8, me)) : f("", !0);
514
- }
515
- }), [["__scopeId", "data-v-2aee0b06"]]);
516
- export { k as default };
@@ -1,24 +0,0 @@
1
- import { C as e, F as t, _ as n, ct as r, g as i, mt as a, u as o } from "./draggable-IRVFEZ-b.js";
2
- import { t as s } from "./useCloudI18n-BTV9uu3c.js";
3
- // src/cloud/components/CloudHeaderExtras.vue?vue&type=script&setup=true&lang.ts
4
- var c = {
5
- key: 0,
6
- "data-testid": "cloud-template-usage",
7
- class: "tpl:text-xs tpl:opacity-60 tpl:text-[var(--tpl-text-muted)]"
8
- }, l = /* @__PURE__ */ e({
9
- __name: "CloudHeaderExtras",
10
- props: {
11
- part: {},
12
- cloud: {}
13
- },
14
- setup(e) {
15
- let { t: l, format: u } = s();
16
- return (s, d) => e.part === "left" ? (t(), n(o, { key: 0 }, [e.cloud.featureFlags.templateLimit.value === null ? i("", !0) : (t(), n("span", c, a(r(u)(r(l).header.templatesUsed, {
17
- used: e.cloud.featureFlags.templateCount.value,
18
- max: e.cloud.featureFlags.templateLimit.value
19
- })), 1))], 64)) : i("", !0);
20
- }
21
- });
22
- export { l as default };
23
-
24
- //# sourceMappingURL=CloudHeaderExtras-Cd-ePldd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CloudHeaderExtras-Cd-ePldd.js","names":["_openBlock","_createElementBlock","_Fragment","_toDisplayString","_unref","defineComponent","openBlock","createElementBlock","unref","createCommentVNode","toDisplayString","Fragment","useCloudI18nStrict","_hoisted_1","CloudHeaderExtras_default","cloudT","cloudFormat","__props"],"sources":["../../../src/cloud/components/CloudHeaderExtras.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useCloudI18nStrict } from \"../../composables/useCloudI18n\";\nimport type { CloudAttachment } from \"../runtime\";\n\n/**\n * The Cloud-only header control, filled into `EditorHeader`'s `left-extras`\n * slot. `Editor.vue` still mounts the `right` part, which renders nothing until\n * Cloud's next right-hand control (S7 and S8 on the `cloud` branch).\n *\n * This control lives in a lazy chunk, so a Cloud session pays one round-trip\n * for it and an OSS session pays none.\n *\n * There is no `center` part. The header's centre track must hold a constant\n * width, so only the anchored columns take conditional controls — see\n * `EditorHeader.vue`'s centre comment.\n *\n * The plan-usage readout lives here rather than in the shared header because\n * it renders a **cloud-chunk** string; OSS translators never see it. Comments\n * and the collaborator bar are deliberately not here: both are shared and\n * provider-backed, so their controls and strings belong to the shared header\n * and the OSS chunk.\n */\ndefineProps<{\n part: \"left\" | \"right\";\n cloud: CloudAttachment;\n}>();\n\nconst { t: cloudT, format: cloudFormat } = useCloudI18nStrict();\n</script>\n\n<template>\n <!-- Left: the plan's template usage. -->\n <template v-if=\"part === 'left'\">\n <!-- A plan *limit*, not a templates concern, which is why it sits here and\n its string stays in the cloud chunk. -->\n <span\n v-if=\"cloud.featureFlags.templateLimit.value !== null\"\n data-testid=\"cloud-template-usage\"\n class=\"tpl:text-xs tpl:opacity-60 tpl:text-[var(--tpl-text-muted)]\"\n >\n {{\n cloudFormat(cloudT.header.templatesUsed, {\n used: cloud.featureFlags.templateCount.value,\n max: cloud.featureFlags.templateLimit.value,\n })\n }}\n </span>\n </template>\n</template>\n"],"mappings":";;;;;;;;;;;;;;EA2BA,IAAM,EAAE,GAAGe,GAAQ,QAAQC,MAAgBJ,EAAmB;E,iBAK5CK,EAAA,SAAI,UAApBjB,EAAA,GAAAC,EAeWC,GAAA,EAAA,KAAA,EAAA,GAAA,CAXDe,EAAA,MAAM,aAAa,cAAc,UAAK,O,aAD9CjB,EAAA,GAAAC,EAWO,QAXPY,GAWOV,EALHC,EAAAY,CAAA,CAAW,CAACZ,EAAAW,CAAA,CAAM,CAAC,OAAO,eAAa;GAAoB,MAAAE,EAAA,MAAM,aAAa,cAAc;GAAsB,KAAAA,EAAA,MAAM,aAAa,cAAc"}