@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.
- package/dist/{AiChatPanel-DPoq2Til.js → AiChatPanel-DF5TvO9H.js} +166 -166
- package/dist/{AiPanels-UdfhAzzu.js → AiPanels-zRqC5DIP.js} +1 -1
- package/dist/{AiRewriteMenu-DOreXB10.js → AiRewriteMenu-CmZKTO-O.js} +6 -6
- package/dist/{BlockIssueBadge-DQ_6NI4p.js → BlockIssueBadge-Bug5iqcK.js} +2 -2
- package/dist/{BlockPreviewCanvas-YaFum01Z.js → BlockPreviewCanvas-knSyWaCP.js} +3 -3
- package/dist/{CloudPanels-Bxv7vUYr.js → CloudPanels-BbHJHZri.js} +3 -3
- package/dist/{CollaborationNotices-PqWv0q8W.js → CollaborationNotices-BM35YG72.js} +1 -1
- package/dist/{CollaboratorBar-p-_PWqXW.js → CollaboratorBar-DMsEOndt.js} +1 -1
- package/dist/{CommentsPanel-BUo-YhSX.js → CommentsPanel-BMYvXRKK.js} +1 -1
- package/dist/{CommentsSidebar-D_Pz7FPz.js → CommentsSidebar-_8at1Rug.js} +139 -139
- package/dist/{CountdownToolbar-BQdhVNaK.js → CountdownToolbar-BprSuPJk.js} +3 -3
- package/dist/{IssuesPanel-C7mBrK6a.js → IssuesPanel-CeCvUfa7.js} +8 -8
- package/dist/{LanguageMenu-wS43Ck1x.js → LanguageMenu-CkGqLYjf.js} +124 -124
- package/dist/{LocaleNotices-CAvDAawJ.js → LocaleNotices-D0be8ovO.js} +10 -10
- package/dist/{LogicTagInsertButton-Clc3JTg_.js → LogicTagInsertButton-BzEZUTRZ.js} +3 -3
- package/dist/{MediaEditModal-YXOL0d_y.js → MediaEditModal-Bg-7RojG.js} +1 -1
- package/dist/{MediaPanels-VCv5epgs.js → MediaPanels-E9gLZ1Qb.js} +1 -1
- package/dist/{MergeTagInput-B5a9noTB.js → MergeTagInput-By2FSStk.js} +1 -1
- package/dist/{MergeTagModeToggle-D1r2aH5x.js → MergeTagModeToggle-DtjOZhoD.js} +3 -3
- package/dist/{MergeTagTextarea-CA9dPfMH.js → MergeTagTextarea-BjHlamJv.js} +14 -14
- package/dist/{ParagraphEditor-zMOqNnmx.js → ParagraphEditor-Ctu4fSsl.js} +23 -23
- package/dist/{RestoreVersionDialog-DdPpilBS.js → RestoreVersionDialog-DvZoTJVa.js} +3 -3
- package/dist/{RichTextEditorContent-gnRxu4-L.js → RichTextEditorContent-B1p7Ykq8.js} +4 -4
- package/dist/{SaveBlockDialog-CQzccFIM.js → SaveBlockDialog-DHfT-Tpx.js} +7 -7
- package/dist/{SavedBlocksBrowserModal-8cZ9z-pL.js → SavedBlocksBrowserModal-BjJuuXQv.js} +9 -9
- package/dist/{SavedBlocksPanels-C9Oztudc.js → SavedBlocksPanels-D6eiMQZ3.js} +1 -1
- package/dist/{SavedBlocksPickBar-udG0wuTf.js → SavedBlocksPickBar-BkgCDSXe.js} +2 -2
- package/dist/{TemplateSettings-DsaSsCC8.js → TemplateSettings-DQAbNsiS.js} +6 -6
- package/dist/{TestEmailModal-BP6954nj.js → TestEmailModal-m_AEa36T.js} +7 -7
- package/dist/{TestEmailPanel-5YlcWwPJ.js → TestEmailPanel-OApkuaVd.js} +1 -1
- package/dist/{TitleEditor-Cy-6WZuK.js → TitleEditor-Cwdtfk15.js} +9 -9
- package/dist/{Toolbar-Br0W6NE0.js → Toolbar-D_T55elL.js} +358 -358
- package/dist/{TplModal-DnytM7wO.js → TplModal-2MKm5y6r.js} +1 -1
- package/dist/{VersionHistoryMenu-D-RCk3oB.js → VersionHistoryMenu-B3-xJ7GO.js} +5 -5
- package/dist/{VersionHistoryPanels-DIqWP71K.js → VersionHistoryPanels-CCM0IQBg.js} +1 -1
- package/dist/{VersionPreviewBanner-DMg2sw3V.js → VersionPreviewBanner-DLAB4ZbS.js} +1 -1
- package/dist/{WrapperBlock-DoNQX0Ml.js → WrapperBlock-BZl10HLy.js} +2 -2
- package/dist/{blockTypeIcons-BePGuX0b.js → blockTypeIcons-C691ZY1l.js} +3 -3
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiChatPanel-cIT2haLo.js → AiChatPanel-BYAsgmoC.js} +146 -146
- package/dist/cdn/chunks/AiChatPanel-BYAsgmoC.js.map +1 -0
- package/dist/cdn/chunks/{AiPanels-B4GG8w3J.js → AiPanels-MY_YPls8.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-B4GG8w3J.js.map → AiPanels-MY_YPls8.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-BqwwNUzj.js → AiRewriteMenu-BSePiXe_.js} +4 -4
- package/dist/cdn/chunks/{AiRewriteMenu-BqwwNUzj.js.map → AiRewriteMenu-BSePiXe_.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-C50pmOMZ.js → BlockIssueBadge-fYeNnepj.js} +2 -2
- package/dist/cdn/chunks/{BlockIssueBadge-C50pmOMZ.js.map → BlockIssueBadge-fYeNnepj.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-T13OIi1f.js → BlockPreviewCanvas-B153A3hu.js} +4 -4
- package/dist/cdn/chunks/{BlockPreviewCanvas-T13OIi1f.js.map → BlockPreviewCanvas-B153A3hu.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-DDNWZ7ET.js → CloudPanels-Bv26_Sd8.js} +3 -3
- package/dist/cdn/chunks/{CloudPanels-DDNWZ7ET.js.map → CloudPanels-Bv26_Sd8.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-CTmjjbHv.js → CollaborationNotices-COkmBmps.js} +2 -2
- package/dist/cdn/chunks/{CollaborationNotices-CTmjjbHv.js.map → CollaborationNotices-COkmBmps.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-CzHjawjF.js → CollaboratorBar-BSzI8YIU.js} +2 -2
- package/dist/cdn/chunks/{CollaboratorBar-CzHjawjF.js.map → CollaboratorBar-BSzI8YIU.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-Dh0_eRBe.js → CommentsPanel-R27fqh9O.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-Dh0_eRBe.js.map → CommentsPanel-R27fqh9O.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-JxZ-O2mY.js → CommentsSidebar-BEiOQ_zT.js} +133 -133
- package/dist/cdn/chunks/CommentsSidebar-BEiOQ_zT.js.map +1 -0
- package/dist/cdn/chunks/{CountdownToolbar-D16RWxkh.js → CountdownToolbar-DOhXnbsq.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-D16RWxkh.js.map → CountdownToolbar-DOhXnbsq.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BtAn12hl.js → IssuesPanel-DgxiS3hF.js} +2 -2
- package/dist/cdn/chunks/{IssuesPanel-BtAn12hl.js.map → IssuesPanel-DgxiS3hF.js.map} +1 -1
- package/dist/cdn/chunks/{LanguageMenu-D71nO6LO.js → LanguageMenu-B6kt8SgX.js} +105 -105
- package/dist/cdn/chunks/LanguageMenu-B6kt8SgX.js.map +1 -0
- package/dist/cdn/chunks/{LocaleNotices-CzrNKR-N.js → LocaleNotices-Bleg4gTu.js} +10 -10
- package/dist/cdn/chunks/LocaleNotices-Bleg4gTu.js.map +1 -0
- package/dist/cdn/chunks/{LogicTagInsertButton-B4wuPoMa.js → LogicTagInsertButton-DGg1Wvhp.js} +2 -2
- package/dist/cdn/chunks/{LogicTagInsertButton-B4wuPoMa.js.map → LogicTagInsertButton-DGg1Wvhp.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-DJ2wxInt.js → MediaEditModal-BQO6ggJK.js} +2 -2
- package/dist/cdn/chunks/{MediaEditModal-DJ2wxInt.js.map → MediaEditModal-BQO6ggJK.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-BJawNjr9.js → MediaPanels-Ciahwsyt.js} +2 -2
- package/dist/cdn/chunks/{MediaPanels-BJawNjr9.js.map → MediaPanels-Ciahwsyt.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-DZD-p4nR.js → MergeTagInput-BVfTwujW.js} +2 -2
- package/dist/cdn/chunks/{MergeTagInput-DZD-p4nR.js.map → MergeTagInput-BVfTwujW.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-DGuJCgqO.js → MergeTagModeToggle-BoI0C1Y6.js} +2 -2
- package/dist/cdn/chunks/{MergeTagModeToggle-DGuJCgqO.js.map → MergeTagModeToggle-BoI0C1Y6.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-BRiaRBr_.js → MergeTagTextarea-DGDv-pdn.js} +15 -15
- package/dist/cdn/chunks/MergeTagTextarea-DGDv-pdn.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-BClN3WxA.js → ParagraphEditor-D0q36Myd.js} +24 -24
- package/dist/cdn/chunks/{ParagraphEditor-BClN3WxA.js.map → ParagraphEditor-D0q36Myd.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-CVfKIT1K.js → RestoreVersionDialog-CJggFdbi.js} +3 -3
- package/dist/cdn/chunks/{RestoreVersionDialog-CVfKIT1K.js.map → RestoreVersionDialog-CJggFdbi.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-CtV0Q0SO.js → RichTextEditorContent-D3ihUF8v.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-CtV0Q0SO.js.map → RichTextEditorContent-D3ihUF8v.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-Cy6mI_xB.js → SaveBlockDialog-BzES5tqd.js} +6 -6
- package/dist/cdn/chunks/{SaveBlockDialog-Cy6mI_xB.js.map → SaveBlockDialog-BzES5tqd.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DW917QDB.js → SavedBlocksBrowserModal-CLNcZcLd.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DW917QDB.js.map → SavedBlocksBrowserModal-CLNcZcLd.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-Cyzerpxs.js → SavedBlocksPanels-R0W9LElD.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-Cyzerpxs.js.map → SavedBlocksPanels-R0W9LElD.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-D6n86773.js → SavedBlocksPickBar-JNi5Rx4V.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPickBar-D6n86773.js.map → SavedBlocksPickBar-JNi5Rx4V.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings--_ZfbhnU.js → TemplateSettings-C5wsNcgX.js} +4 -4
- package/dist/cdn/chunks/{TemplateSettings--_ZfbhnU.js.map → TemplateSettings-C5wsNcgX.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-V_UFUIaf.js → TestEmailModal-BxIAwjww.js} +6 -6
- package/dist/cdn/chunks/{TestEmailModal-V_UFUIaf.js.map → TestEmailModal-BxIAwjww.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-CBfqsO2u.js → TestEmailPanel-B8BsWXjE.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-CBfqsO2u.js.map → TestEmailPanel-B8BsWXjE.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-CimWOQVn.js → TitleEditor-DhcI1aRS.js} +8 -8
- package/dist/cdn/chunks/{TitleEditor-CimWOQVn.js.map → TitleEditor-DhcI1aRS.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-czJfutfE.js → Toolbar-Ch3h2BUs.js} +202 -202
- package/dist/cdn/chunks/Toolbar-Ch3h2BUs.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-BtJJ5-En.js → TplModal-CPOqOxVf.js} +2 -2
- package/dist/cdn/chunks/{TplModal-BtJJ5-En.js.map → TplModal-CPOqOxVf.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-CVGlUPwS.js → VersionHistoryMenu-DTDO48HI.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryMenu-CVGlUPwS.js.map → VersionHistoryMenu-DTDO48HI.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-BS0USHsp.js → VersionHistoryPanels-CVrXHYxT.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-BS0USHsp.js.map → VersionHistoryPanels-CVrXHYxT.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-5RFz4AQx.js → VersionPreviewBanner-C1H_fYAr.js} +2 -2
- package/dist/cdn/chunks/{VersionPreviewBanner-5RFz4AQx.js.map → VersionPreviewBanner-C1H_fYAr.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-CSjYFYUT.js → WrapperBlock-B8SJ7Q4w.js} +3 -3
- package/dist/cdn/chunks/{WrapperBlock-CSjYFYUT.js.map → WrapperBlock-B8SJ7Q4w.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-BOonB9gK.js → blockTypeIcons-ZKw-Eiu0.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-BOonB9gK.js.map → blockTypeIcons-ZKw-Eiu0.js.map} +1 -1
- package/dist/cdn/chunks/{composables-BHsV8gkq.js → composables-CKXPwWo9.js} +152 -152
- package/dist/cdn/chunks/composables-CKXPwWo9.js.map +1 -0
- package/dist/cdn/chunks/dompurify-BflADeuH.js +850 -0
- package/dist/cdn/chunks/dompurify-BflADeuH.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-BVM_0uoL.js → editor-modal-BlSmX9Ch.js} +4 -4
- package/dist/cdn/chunks/{editor-modal-BVM_0uoL.js.map → editor-modal-BlSmX9Ch.js.map} +1 -1
- package/dist/cdn/chunks/en-jObtIVCp.js +1 -0
- package/dist/cdn/chunks/{extensions-BeGvJ6f0.js → extensions-Bq9nXmBP.js} +3 -3
- package/dist/cdn/chunks/{extensions-BeGvJ6f0.js.map → extensions-Bq9nXmBP.js.map} +1 -1
- package/dist/cdn/chunks/{icons-CWEBTtbR.js → icons-DdVB-5WO.js} +28 -28
- package/dist/cdn/chunks/{icons-CWEBTtbR.js.map → icons-DdVB-5WO.js.map} +1 -1
- package/dist/cdn/chunks/keys-ywH4jHJ2.js.map +1 -1
- package/dist/cdn/chunks/{sanitizeHtml-Db0S2JVP.js → sanitizeHtml-Plkmw1Qt.js} +2 -2
- package/dist/cdn/chunks/{sanitizeHtml-Db0S2JVP.js.map → sanitizeHtml-Plkmw1Qt.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-DMelHF3p.js → socialIcons-CSe4YJ52.js} +2 -2
- package/dist/cdn/chunks/{socialIcons-DMelHF3p.js.map → socialIcons-CSe4YJ52.js.map} +1 -1
- package/dist/cdn/chunks/{src-B32tyank.js → src-Bk1LF1np.js} +16 -14
- package/dist/cdn/chunks/src-Bk1LF1np.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-LIEsAVOF.js → tiptap-DDhueoan.js} +15 -7
- package/dist/cdn/chunks/{tiptap-LIEsAVOF.js.map → tiptap-DDhueoan.js.map} +1 -1
- package/dist/cdn/chunks/useLanguageName-DDhdVpqh.js +41 -0
- package/dist/cdn/chunks/useLanguageName-DDhdVpqh.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +64 -62
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-C82yyyf1.js → check-8ZykoWzl.js} +1 -1
- package/dist/{chevron-down-BaBVjNbM.js → chevron-down-D_CUJHwi.js} +1 -1
- package/dist/{chevron-right-DkS-bw8X.js → chevron-right-B2WYkQtG.js} +1 -1
- package/dist/{chevron-up-C1KzUIK4.js → chevron-up-L-H27use.js} +1 -1
- package/dist/{circle-exclamation-point-DsmqtTUQ.js → circle-exclamation-point-BCx1tR91.js} +1 -1
- package/dist/{clock-dpIs7vo0.js → clock-DOOnNINY.js} +1 -1
- package/dist/{composables-DG_CMpuY.js → composables-26aR45W3.js} +1222 -1222
- package/dist/{createLucideIcon-BSam2AUu.js → createLucideIcon-BKeRiObH.js} +5 -5
- package/dist/{dist-CRcnmuxb.js → dist-B1bGGOA0.js} +2 -2
- package/dist/{dist-DRbuXmjl.js → dist-C3ZVR_pd.js} +2 -2
- package/dist/{dist-BvNveHdP.js → dist-C8aVVj28.js} +2 -2
- package/dist/dist-CTzstDyz.js +4 -0
- package/dist/{dist-xc8l1i2C.js → dist-CcxrHURm.js} +786 -778
- package/dist/{dist-LrtNpIZD.js → dist-D41-1sSL.js} +6 -6
- package/dist/{dist-BKFfCbrD.js → dist-DRJhbfT9.js} +2 -2
- package/dist/{dist-DCGVHlXC.js → dist-DkQutATU.js} +2 -2
- package/dist/{dist-BMULQVZF.js → dist-DyrUc7rM.js} +2 -2
- package/dist/{dist-CiOtB5na.js → dist-p_84-Inl.js} +2 -2
- package/dist/{dist-Bsg1RBUb.js → dist-tG9_FTOs.js} +2 -2
- package/dist/dist-zQ8L1LNg.js +4 -0
- package/dist/{editor-modal-odubnc9x.js → editor-modal-CRtEWHbQ.js} +15 -15
- package/dist/en-CMswCXqE.js +1 -0
- package/dist/{extensions-Cao-H_tB.js → extensions-zHf8YFRw.js} +4 -4
- package/dist/{eye-CxCHEszj.js → eye-BjZOVab7.js} +1 -1
- package/dist/{image-DvXPzqNd.js → image-g47lDP0J.js} +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/{info-2KHWaZ2L.js → info-DXij4QjB.js} +1 -1
- package/dist/{link-_OmrcJMv.js → link-BFJF0mWz.js} +1 -1
- package/dist/{list-Dekd7JE8.js → list-Cso9vnLq.js} +1 -1
- package/dist/{loader-circle-D_hT5mFS.js → loader-circle-uLY01591.js} +1 -1
- package/dist/{message-circle-DDbiG-jz.js → message-circle-amY03UMa.js} +1 -1
- package/dist/{package-cORUe57D.js → package-DnjoSQa1.js} +1 -1
- package/dist/{pencil-D67H4fxq.js → pencil-D1HBG4pb.js} +1 -1
- package/dist/{plus-BpTZAx28.js → plus-PzFvtj-Z.js} +1 -1
- package/dist/{refresh-cw-B4T0IFwI.js → refresh-cw-BPDv-S-4.js} +1 -1
- package/dist/{rotate-ccw-BDQgjpuo.js → rotate-ccw-DQZVEj1V.js} +1 -1
- package/dist/sanitizeHtml-DxmFirMi.js +945 -0
- package/dist/{search-Dp9pkaVt.js → search-BUBeKVdD.js} +1 -1
- package/dist/{send-DO9GhgCH.js → send-BJEuoIc2.js} +1 -1
- package/dist/{smartphone-CPW3I3hV.js → smartphone-DZ5xyNU4.js} +1 -1
- package/dist/{socialIcons-DXOO2y7u.js → socialIcons-mWE33bOn.js} +3 -3
- package/dist/{sparkles-CIBjNfij.js → sparkles-zWGR8hrs.js} +1 -1
- package/dist/{square-3W65qrrH.js → square--3H462TJ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +78 -76
- package/dist/{text-align-start-Bs70tpRU.js → text-align-start-B5Dx2Ylg.js} +13 -13
- package/dist/{trash-CTzhAm1o.js → trash-CJsobpw0.js} +1 -1
- package/dist/{triangle-exclamation-point-D_13CuJY.js → triangle-exclamation-point-Bi7ZKTZU.js} +1 -1
- package/dist/{upload-DFxkP9MI.js → upload-DZ_-FNJ4.js} +1 -1
- package/dist/useLanguageName-CEFzafHB.js +39 -0
- package/dist/{useScrollToBlock-194ePl4q.js → useScrollToBlock-eZXiGa8o.js} +1 -1
- package/dist/{x-D7L8mLHJ.js → x-CuyPLm0U.js} +1 -1
- package/package.json +24 -24
- package/dist/cdn/chunks/AiChatPanel-cIT2haLo.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-JxZ-O2mY.js.map +0 -1
- package/dist/cdn/chunks/LanguageMenu-D71nO6LO.js.map +0 -1
- package/dist/cdn/chunks/LocaleNotices-CzrNKR-N.js.map +0 -1
- package/dist/cdn/chunks/MergeTagTextarea-BRiaRBr_.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-czJfutfE.js.map +0 -1
- package/dist/cdn/chunks/composables-BHsV8gkq.js.map +0 -1
- package/dist/cdn/chunks/dompurify-JVtr5-B1.js +0 -872
- package/dist/cdn/chunks/dompurify-JVtr5-B1.js.map +0 -1
- package/dist/cdn/chunks/en-DlDEofnd.js +0 -1
- package/dist/cdn/chunks/languageName-DEEOhDWI.js +0 -12
- package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +0 -1
- package/dist/cdn/chunks/src-B32tyank.js.map +0 -1
- package/dist/dist-BnPPgVlu.js +0 -4
- package/dist/dist-zAzcxDCA.js +0 -4
- package/dist/en-CAImT1hl.js +0 -1
- package/dist/languageName-DEEOhDWI.js +0 -10
- 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
|
|
4
|
-
import { t as
|
|
5
|
-
import { O as
|
|
6
|
-
import { t as
|
|
7
|
-
import { Bt as
|
|
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 } =
|
|
79
|
-
function
|
|
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
|
|
83
|
-
r(
|
|
84
|
-
e && (
|
|
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(() =>
|
|
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(() =>
|
|
95
|
-
let e =
|
|
96
|
-
return
|
|
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
|
-
|
|
99
|
+
P.value === "block" && e && (O.feature.filterBlockId.value = e);
|
|
100
100
|
});
|
|
101
|
-
function
|
|
102
|
-
|
|
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
|
-
|
|
105
|
+
J("block", e);
|
|
106
106
|
}
|
|
107
107
|
function Nt(e) {
|
|
108
|
-
|
|
108
|
+
U.value.has(e) ? U.value.delete(e) : U.value.add(e);
|
|
109
109
|
}
|
|
110
110
|
function Pt(e) {
|
|
111
|
-
|
|
111
|
+
z.value = e, B.value = "", V.value = null, U.value.has(e) || U.value.add(e);
|
|
112
112
|
}
|
|
113
113
|
function Ft() {
|
|
114
|
-
|
|
114
|
+
z.value = null, B.value = "";
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
|
|
116
|
+
function Y(e) {
|
|
117
|
+
V.value = e.id, H.value = e.body, z.value = null;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
119
|
+
function X() {
|
|
120
|
+
V.value = null, H.value = "";
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
|
|
122
|
+
function Z(e) {
|
|
123
|
+
W.value = e;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
125
|
+
function Q() {
|
|
126
|
+
W.value = null;
|
|
127
127
|
}
|
|
128
128
|
async function It() {
|
|
129
|
-
let e =
|
|
130
|
-
if (!e || !
|
|
131
|
-
let t =
|
|
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
|
|
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
|
-
}),
|
|
137
|
+
}), R.value = "";
|
|
138
138
|
} catch {}
|
|
139
139
|
}
|
|
140
140
|
async function Lt(e) {
|
|
141
|
-
let t =
|
|
142
|
-
if (!t || !
|
|
143
|
-
let n =
|
|
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
|
|
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
|
-
}),
|
|
150
|
+
}), z.value = null, B.value = "";
|
|
151
151
|
} catch {}
|
|
152
152
|
}
|
|
153
|
-
async function
|
|
154
|
-
let t =
|
|
153
|
+
async function $(e) {
|
|
154
|
+
let t = H.value.trim();
|
|
155
155
|
if (t) try {
|
|
156
|
-
await
|
|
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
|
|
161
|
+
await N.value.remove(e);
|
|
162
162
|
} catch {}
|
|
163
|
-
|
|
163
|
+
W.value = null;
|
|
164
164
|
}
|
|
165
165
|
async function zt(e) {
|
|
166
166
|
try {
|
|
167
|
-
await
|
|
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
|
|
171
|
+
return N.value.canUpdate.value && N.value.isOwn(e);
|
|
175
172
|
}
|
|
176
173
|
function Vt(e) {
|
|
177
|
-
return
|
|
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
|
|
182
|
+
function Wt(e, t) {
|
|
183
183
|
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Lt(t));
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(),
|
|
185
|
+
function Gt(e, t) {
|
|
186
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), $(t)), e.key === "Escape" && X();
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Kt() {
|
|
189
189
|
te(() => {
|
|
190
|
-
|
|
190
|
+
G.value?.focus();
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
193
|
return E({
|
|
194
194
|
filterByBlock: Mt,
|
|
195
|
-
focusNewComment:
|
|
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",
|
|
223
|
-
"aria-pressed":
|
|
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) =>
|
|
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",
|
|
230
|
-
"aria-pressed":
|
|
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) =>
|
|
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",
|
|
238
|
-
"aria-pressed":
|
|
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) =>
|
|
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(
|
|
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)]",
|
|
247
|
-
"aria-pressed":
|
|
248
|
-
onClick: o[4] ||= (e) =>
|
|
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(
|
|
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
|
-
})])) :
|
|
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(
|
|
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(
|
|
267
|
-
f("span", Pe, p(
|
|
268
|
-
c(
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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) =>
|
|
293
|
-
}, [y(c(
|
|
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
|
-
|
|
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) =>
|
|
303
|
-
}, [y(c(
|
|
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(
|
|
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
|
-
|
|
321
|
-
"onUpdate:modelValue": o[5] ||= (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) =>
|
|
325
|
-
}, null, 40, We), [[h,
|
|
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: !
|
|
328
|
-
onClick: (t) =>
|
|
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) =>
|
|
331
|
+
onClick: o[6] ||= (e) => X()
|
|
332
332
|
}, p(c(k).comments.cancel), 1)])])) : (t(), s("p", qe, p(e.body), 1)),
|
|
333
|
-
|
|
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) =>
|
|
342
|
+
onClick: o[7] ||= (e) => Q()
|
|
343
343
|
}, p(c(k).comments.cancel), 1)
|
|
344
344
|
])) : u("", !0),
|
|
345
|
-
|
|
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(
|
|
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
|
-
}, [
|
|
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(
|
|
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(() => [
|
|
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(
|
|
376
|
-
f("span", it, p(
|
|
377
|
-
c(
|
|
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(
|
|
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, [
|
|
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) =>
|
|
388
|
-
}, [y(c(
|
|
387
|
+
onClick: (e) => Y(n)
|
|
388
|
+
}, [y(c(x), {
|
|
389
389
|
size: 11,
|
|
390
390
|
"stroke-width": 2
|
|
391
|
-
})], 8, st)) : u("", !0),
|
|
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) =>
|
|
396
|
-
}, [y(c(
|
|
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
|
-
|
|
401
|
-
"onUpdate:modelValue": o[8] ||= (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) =>
|
|
405
|
-
}, null, 40, ut), [[h,
|
|
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: !
|
|
408
|
-
onClick: (e) =>
|
|
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) =>
|
|
411
|
+
onClick: o[9] ||= (e) => X()
|
|
412
412
|
}, p(c(k).comments.cancel), 1)])])) : (t(), s("p", pt, p(n.body), 1)),
|
|
413
|
-
|
|
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) =>
|
|
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(() => [
|
|
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) =>
|
|
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) =>
|
|
436
|
-
}, null, 40, yt), [[h,
|
|
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: !
|
|
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
|
-
|
|
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:
|
|
459
|
-
"onUpdate:modelValue": o[13] ||= (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:
|
|
463
|
+
disabled: N.value.isSubmitting.value,
|
|
464
464
|
rows: "2",
|
|
465
|
-
onKeydown:
|
|
466
|
-
}, null, 40, wt), [[h,
|
|
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: !
|
|
469
|
+
disabled: !R.value.trim() || N.value.isSubmitting.value,
|
|
470
470
|
onClick: It
|
|
471
|
-
}, [
|
|
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-
|
|
483
|
+
}), [["__scopeId", "data-v-2aee0b06"]]);
|
|
484
484
|
export { D as default };
|
|
485
485
|
|
|
486
|
-
//# sourceMappingURL=CommentsSidebar-
|
|
486
|
+
//# sourceMappingURL=CommentsSidebar-BEiOQ_zT.js.map
|