@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,22 +1,22 @@
|
|
|
1
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
2
|
import { a as y, t as b } from "./runtime-dom.esm-bundler-nN-jsqr1.js";
|
|
3
3
|
import { u as x } from "./styleConstants-Br6CIRoS.js";
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { O as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
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
18
|
import { t as de } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
19
|
-
var fe =
|
|
19
|
+
var fe = S({
|
|
20
20
|
name: "circle-check",
|
|
21
21
|
size: 24,
|
|
22
22
|
node: [["circle", {
|
|
@@ -29,7 +29,7 @@ var fe = C({
|
|
|
29
29
|
key: "xofnsj"
|
|
30
30
|
}]],
|
|
31
31
|
aliases: ["check-circle-2"]
|
|
32
|
-
}), pe =
|
|
32
|
+
}), pe = S({
|
|
33
33
|
name: "reply",
|
|
34
34
|
size: 24,
|
|
35
35
|
node: [["path", {
|
|
@@ -106,16 +106,16 @@ var fe = C({
|
|
|
106
106
|
feature: {}
|
|
107
107
|
},
|
|
108
108
|
emits: ["close"],
|
|
109
|
-
setup(v, { expose:
|
|
110
|
-
let k = v, Tt = de, { t: A, format: j } =
|
|
111
|
-
function
|
|
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
112
|
return e.locale ?? M.content.value.settings.locale;
|
|
113
113
|
}
|
|
114
|
-
let
|
|
115
|
-
e(
|
|
116
|
-
e && (
|
|
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
117
|
}, { immediate: !0 });
|
|
118
|
-
let Dt = u(() =>
|
|
118
|
+
let Dt = u(() => P.value.isLoading.value && P.value.comments.value.length === 0), Ot = u(() => {
|
|
119
119
|
let e = /* @__PURE__ */ new Set();
|
|
120
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
121
|
return e;
|
|
@@ -123,108 +123,108 @@ var fe = C({
|
|
|
123
123
|
function kt(e) {
|
|
124
124
|
return e ? !Ot.value.has(e) : !1;
|
|
125
125
|
}
|
|
126
|
-
let At = u(() =>
|
|
127
|
-
let e =
|
|
128
|
-
return
|
|
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
129
|
});
|
|
130
130
|
e(() => M.state.selectedBlockId, (e) => {
|
|
131
|
-
|
|
131
|
+
F.value === "block" && e && (k.feature.filterBlockId.value = e);
|
|
132
132
|
});
|
|
133
|
-
function
|
|
134
|
-
|
|
133
|
+
function Y(e, t) {
|
|
134
|
+
F.value = e, k.feature.filterBlockId.value = e === "block" ? t ?? null : null;
|
|
135
135
|
}
|
|
136
136
|
function jt(e) {
|
|
137
|
-
|
|
137
|
+
Y("block", e);
|
|
138
138
|
}
|
|
139
139
|
function Mt(e) {
|
|
140
|
-
|
|
140
|
+
W.value.has(e) ? W.value.delete(e) : W.value.add(e);
|
|
141
141
|
}
|
|
142
142
|
function Nt(e) {
|
|
143
|
-
|
|
143
|
+
B.value = e, V.value = "", H.value = null, W.value.has(e) || W.value.add(e);
|
|
144
144
|
}
|
|
145
145
|
function Pt() {
|
|
146
|
-
|
|
146
|
+
B.value = null, V.value = "";
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
148
|
+
function X(e) {
|
|
149
|
+
H.value = e.id, U.value = e.body, B.value = null;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
|
|
151
|
+
function Z() {
|
|
152
|
+
H.value = null, U.value = "";
|
|
153
153
|
}
|
|
154
154
|
function Ft(e) {
|
|
155
|
-
|
|
155
|
+
G.value = e;
|
|
156
156
|
}
|
|
157
157
|
function It() {
|
|
158
|
-
|
|
158
|
+
G.value = null;
|
|
159
159
|
}
|
|
160
160
|
async function Lt() {
|
|
161
|
-
let e =
|
|
162
|
-
if (!e || !
|
|
163
|
-
let t =
|
|
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
164
|
try {
|
|
165
|
-
await
|
|
165
|
+
await P.value.create({
|
|
166
166
|
body: e,
|
|
167
167
|
blockId: t ?? void 0,
|
|
168
168
|
locale: M.activeLocale?.value ?? M.content.value.settings.locale
|
|
169
|
-
}),
|
|
169
|
+
}), z.value = "";
|
|
170
170
|
} catch {}
|
|
171
171
|
}
|
|
172
172
|
async function Rt(e) {
|
|
173
|
-
let t =
|
|
174
|
-
if (!t || !
|
|
175
|
-
let n =
|
|
173
|
+
let t = V.value.trim();
|
|
174
|
+
if (!t || !P.value.canCreate.value) return;
|
|
175
|
+
let n = P.value.find(e);
|
|
176
176
|
try {
|
|
177
|
-
await
|
|
177
|
+
await P.value.create({
|
|
178
178
|
body: t,
|
|
179
179
|
blockId: n?.blockId ?? void 0,
|
|
180
180
|
parentId: e,
|
|
181
181
|
locale: M.activeLocale?.value ?? M.content.value.settings.locale
|
|
182
|
-
}),
|
|
182
|
+
}), B.value = null, V.value = "";
|
|
183
183
|
} catch {}
|
|
184
184
|
}
|
|
185
|
-
async function
|
|
186
|
-
let t =
|
|
185
|
+
async function Q(e) {
|
|
186
|
+
let t = U.value.trim();
|
|
187
187
|
if (t) try {
|
|
188
|
-
await
|
|
188
|
+
await P.value.update(e, { body: t }), H.value = null, U.value = "";
|
|
189
189
|
} catch {}
|
|
190
190
|
}
|
|
191
191
|
async function zt(e) {
|
|
192
192
|
try {
|
|
193
|
-
await
|
|
193
|
+
await P.value.remove(e);
|
|
194
194
|
} catch {}
|
|
195
|
-
|
|
195
|
+
G.value = null;
|
|
196
196
|
}
|
|
197
197
|
async function Bt(e) {
|
|
198
198
|
try {
|
|
199
|
-
await
|
|
199
|
+
await P.value.setResolved(e.id, !e.resolvedAt);
|
|
200
200
|
} catch {}
|
|
201
201
|
}
|
|
202
|
-
function Q(e) {
|
|
203
|
-
return N.value.canUpdate.value && N.value.isOwn(e);
|
|
204
|
-
}
|
|
205
202
|
function Vt(e) {
|
|
206
|
-
return
|
|
203
|
+
return P.value.canUpdate.value && P.value.isOwn(e);
|
|
207
204
|
}
|
|
208
205
|
function Ht(e) {
|
|
209
|
-
return
|
|
206
|
+
return P.value.canDelete.value && P.value.isOwn(e);
|
|
210
207
|
}
|
|
211
208
|
function Ut(e) {
|
|
209
|
+
return re(e, A.time) ?? e;
|
|
210
|
+
}
|
|
211
|
+
function Wt(e) {
|
|
212
212
|
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Lt());
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function Gt(e, t) {
|
|
215
215
|
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Rt(t));
|
|
216
216
|
}
|
|
217
217
|
function $(e, t) {
|
|
218
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(),
|
|
218
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q(t)), e.key === "Escape" && Z();
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function Kt() {
|
|
221
221
|
i(() => {
|
|
222
|
-
|
|
222
|
+
K.value?.focus();
|
|
223
223
|
});
|
|
224
224
|
}
|
|
225
|
-
return
|
|
225
|
+
return S({
|
|
226
226
|
filterByBlock: jt,
|
|
227
|
-
focusNewComment:
|
|
227
|
+
focusNewComment: Kt
|
|
228
228
|
}), (e, i) => v.visible ? (n(), m("div", {
|
|
229
229
|
key: 0,
|
|
230
230
|
role: "complementary",
|
|
@@ -233,7 +233,7 @@ var fe = C({
|
|
|
233
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
234
|
}, [
|
|
235
235
|
h("div", he, [h("div", ge, [
|
|
236
|
-
l(d(
|
|
236
|
+
l(d(w), {
|
|
237
237
|
size: 13,
|
|
238
238
|
"stroke-width": 2
|
|
239
239
|
}),
|
|
@@ -244,67 +244,67 @@ var fe = C({
|
|
|
244
244
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
|
|
245
245
|
"aria-label": d(A).comments.close,
|
|
246
246
|
onClick: i[0] ||= (e) => Tt("close")
|
|
247
|
-
}, [l(d(
|
|
247
|
+
}, [l(d(O), {
|
|
248
248
|
size: 14,
|
|
249
249
|
"stroke-width": 2
|
|
250
250
|
})], 8, ve)]),
|
|
251
251
|
h("div", ye, [
|
|
252
252
|
h("button", {
|
|
253
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",
|
|
255
|
-
"aria-pressed":
|
|
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
256
|
"data-testid": "comments-filter-unresolved",
|
|
257
|
-
onClick: i[1] ||= (e) =>
|
|
257
|
+
onClick: i[1] ||= (e) => Y("unresolved")
|
|
258
258
|
}, t(d(A).comments.filterUnresolved), 11, be),
|
|
259
259
|
h("button", {
|
|
260
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",
|
|
262
|
-
"aria-pressed":
|
|
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
263
|
"data-testid": "comments-filter-all",
|
|
264
|
-
onClick: i[2] ||= (e) =>
|
|
264
|
+
onClick: i[2] ||= (e) => Y("all")
|
|
265
265
|
}, t(d(A).comments.filterAll), 11, xe),
|
|
266
266
|
d(M).state.selectedBlockId ? (n(), m("button", {
|
|
267
267
|
key: 0,
|
|
268
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",
|
|
270
|
-
"aria-pressed":
|
|
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
271
|
"data-testid": "comments-filter-block",
|
|
272
|
-
onClick: i[3] ||= (e) =>
|
|
272
|
+
onClick: i[3] ||= (e) => Y("block", d(M).state.selectedBlockId ?? void 0)
|
|
273
273
|
}, t(d(A).comments.filterBlock), 11, Se)) : f("", !0),
|
|
274
|
-
d(
|
|
274
|
+
d(I) ? (n(), m("button", {
|
|
275
275
|
key: 1,
|
|
276
276
|
type: "button",
|
|
277
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)]",
|
|
279
|
-
"aria-pressed":
|
|
280
|
-
onClick: i[4] ||= (e) =>
|
|
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
281
|
}, t(d(A).comments.filterLanguage), 11, Ce)) : f("", !0)
|
|
282
282
|
]),
|
|
283
|
-
h("div", we, [Dt.value ? (n(), m("div", Te, [l(d(
|
|
283
|
+
h("div", we, [Dt.value ? (n(), m("div", Te, [l(d(C), {
|
|
284
284
|
class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
|
|
285
285
|
size: 24,
|
|
286
286
|
"stroke-width": 2
|
|
287
|
-
})])) :
|
|
287
|
+
})])) : J.value.length === 0 ? (n(), m("div", Ee, [l(d(w), {
|
|
288
288
|
size: 32,
|
|
289
289
|
"stroke-width": 1.5,
|
|
290
290
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
291
|
-
}), h("p", De, t(
|
|
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
292
|
key: e.id,
|
|
293
293
|
class: "tpl-comment-thread",
|
|
294
294
|
"data-testid": "comment-thread"
|
|
295
295
|
}, [
|
|
296
296
|
h("div", ke, [
|
|
297
297
|
h("div", Ae, [h("div", je, [
|
|
298
|
-
h("span", Me, t(
|
|
299
|
-
h("span", Ne, t(
|
|
300
|
-
d(
|
|
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
301
|
key: 0,
|
|
302
302
|
"data-testid": "comment-locale-badge",
|
|
303
303
|
class: r(d(x))
|
|
304
|
-
}, t(d(
|
|
304
|
+
}, t(d(N)(R(e))), 3)) : f("", !0),
|
|
305
305
|
e.updatedAt ? (n(), m("span", Pe, " (" + t(d(A).comments.edited) + ") ", 1)) : f("", !0)
|
|
306
306
|
]), h("div", Fe, [
|
|
307
|
-
|
|
307
|
+
P.value.canResolve.value ? (n(), m("button", {
|
|
308
308
|
key: 0,
|
|
309
309
|
"data-testid": "comment-resolve",
|
|
310
310
|
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
@@ -316,29 +316,29 @@ var fe = C({
|
|
|
316
316
|
class: "tpl-resolve-icon",
|
|
317
317
|
style: o({ color: e.resolvedAt ? "var(--tpl-primary)" : void 0 })
|
|
318
318
|
}, null, 8, ["style"])], 8, Ie)) : f("", !0),
|
|
319
|
-
|
|
319
|
+
Vt(e) ? (n(), m("button", {
|
|
320
320
|
key: 1,
|
|
321
321
|
"data-testid": "comment-edit",
|
|
322
322
|
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
323
323
|
title: d(A).comments.edit,
|
|
324
|
-
onClick: (t) =>
|
|
325
|
-
}, [l(d(
|
|
324
|
+
onClick: (t) => X(e)
|
|
325
|
+
}, [l(d(T), {
|
|
326
326
|
size: 12,
|
|
327
327
|
"stroke-width": 2
|
|
328
328
|
})], 8, Le)) : f("", !0),
|
|
329
|
-
|
|
329
|
+
Ht(e) ? (n(), m("button", {
|
|
330
330
|
key: 2,
|
|
331
331
|
"data-testid": "comment-delete",
|
|
332
332
|
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
333
333
|
title: d(A).comments.delete,
|
|
334
334
|
onClick: (t) => Ft(e.id)
|
|
335
|
-
}, [l(d(
|
|
335
|
+
}, [l(d(D), {
|
|
336
336
|
size: 12,
|
|
337
337
|
"stroke-width": 2
|
|
338
338
|
})], 8, Re)) : f("", !0)
|
|
339
339
|
])]),
|
|
340
340
|
l(b, { name: "tpl-resolve" }, {
|
|
341
|
-
default: s(() => [e.resolvedAt ? (n(), m("div", ze, [l(d(
|
|
341
|
+
default: s(() => [e.resolvedAt ? (n(), m("div", ze, [l(d(ce), {
|
|
342
342
|
size: 10,
|
|
343
343
|
"stroke-width": 2.5
|
|
344
344
|
}), h("span", null, t(d(j)(d(A).comments.resolvedBy, { name: e.resolvedBy?.name ?? "" })), 1)])) : f("", !0)]),
|
|
@@ -349,20 +349,20 @@ var fe = C({
|
|
|
349
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
350
|
onClick: (t) => d(M).selectBlock(e.blockId ?? "")
|
|
351
351
|
}, t(d(A).comments.jumpToBlock), 9, Ve)) : f("", !0),
|
|
352
|
-
|
|
353
|
-
"onUpdate:modelValue": i[5] ||= (e) =>
|
|
352
|
+
H.value === e.id ? (n(), m("div", He, [c(h("textarea", {
|
|
353
|
+
"onUpdate:modelValue": i[5] ||= (e) => U.value = e,
|
|
354
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
355
|
rows: "3",
|
|
356
356
|
onKeydown: (t) => $(t, e.id)
|
|
357
|
-
}, null, 40, Ue), [[y,
|
|
357
|
+
}, null, 40, Ue), [[y, U.value]]), h("div", We, [h("button", {
|
|
358
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: !
|
|
360
|
-
onClick: (t) =>
|
|
359
|
+
disabled: !U.value.trim() || P.value.isSubmitting.value,
|
|
360
|
+
onClick: (t) => Q(e.id)
|
|
361
361
|
}, t(d(A).comments.save), 9, Ge), h("button", {
|
|
362
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) =>
|
|
363
|
+
onClick: i[6] ||= (e) => Z()
|
|
364
364
|
}, t(d(A).comments.cancel), 1)])])) : (n(), m("p", Ke, t(e.body), 1)),
|
|
365
|
-
|
|
365
|
+
G.value === e.id ? (n(), m("div", qe, [
|
|
366
366
|
h("span", Je, t(d(A).comments.deleteConfirm), 1),
|
|
367
367
|
h("button", {
|
|
368
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)]",
|
|
@@ -374,7 +374,7 @@ var fe = C({
|
|
|
374
374
|
onClick: i[7] ||= (e) => It()
|
|
375
375
|
}, t(d(A).comments.cancel), 1)
|
|
376
376
|
])) : f("", !0),
|
|
377
|
-
|
|
377
|
+
H.value !== e.id && G.value !== e.id ? (n(), m("div", Xe, [P.value.canCreate.value ? (n(), m("button", {
|
|
378
378
|
key: 0,
|
|
379
379
|
"data-testid": "comment-reply",
|
|
380
380
|
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
@@ -388,61 +388,61 @@ var fe = C({
|
|
|
388
388
|
key: 1,
|
|
389
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
390
|
onClick: (t) => Mt(e.id)
|
|
391
|
-
}, [
|
|
391
|
+
}, [W.value.has(e.id) ? (n(), _(d(ue), {
|
|
392
392
|
key: 0,
|
|
393
393
|
size: 11,
|
|
394
394
|
"stroke-width": 2
|
|
395
|
-
})) : (n(), _(d(
|
|
395
|
+
})) : (n(), _(d(le), {
|
|
396
396
|
key: 1,
|
|
397
397
|
size: 11,
|
|
398
398
|
"stroke-width": 2
|
|
399
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
400
|
]),
|
|
401
401
|
l(b, { name: "tpl-replies" }, {
|
|
402
|
-
default: s(() => [
|
|
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
403
|
key: a.id,
|
|
404
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
405
|
}, [
|
|
406
406
|
h("div", et, [h("div", tt, [
|
|
407
|
-
h("span", nt, t(
|
|
408
|
-
h("span", rt, t(
|
|
409
|
-
d(
|
|
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
410
|
key: 0,
|
|
411
411
|
"data-testid": "comment-locale-badge",
|
|
412
412
|
class: r(d(x))
|
|
413
|
-
}, t(d(
|
|
413
|
+
}, t(d(N)(R(a))), 3)) : f("", !0),
|
|
414
414
|
a.updatedAt ? (n(), m("span", it, " (" + t(d(A).comments.edited) + ") ", 1)) : f("", !0)
|
|
415
|
-
]), h("div", at, [
|
|
415
|
+
]), h("div", at, [Vt(a) ? (n(), m("button", {
|
|
416
416
|
key: 0,
|
|
417
417
|
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
418
418
|
title: d(A).comments.edit,
|
|
419
|
-
onClick: (e) =>
|
|
420
|
-
}, [l(d(
|
|
419
|
+
onClick: (e) => X(a)
|
|
420
|
+
}, [l(d(T), {
|
|
421
421
|
size: 11,
|
|
422
422
|
"stroke-width": 2
|
|
423
|
-
})], 8, ot)) : f("", !0),
|
|
423
|
+
})], 8, ot)) : f("", !0), Ht(a) ? (n(), m("button", {
|
|
424
424
|
key: 1,
|
|
425
425
|
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
426
426
|
title: d(A).comments.delete,
|
|
427
427
|
onClick: (e) => Ft(a.id)
|
|
428
|
-
}, [l(d(
|
|
428
|
+
}, [l(d(D), {
|
|
429
429
|
size: 11,
|
|
430
430
|
"stroke-width": 2
|
|
431
431
|
})], 8, st)) : f("", !0)])]),
|
|
432
|
-
|
|
433
|
-
"onUpdate:modelValue": i[8] ||= (e) =>
|
|
432
|
+
H.value === a.id ? (n(), m("div", ct, [c(h("textarea", {
|
|
433
|
+
"onUpdate:modelValue": i[8] ||= (e) => U.value = e,
|
|
434
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
435
|
rows: "2",
|
|
436
436
|
onKeydown: (e) => $(e, a.id)
|
|
437
|
-
}, null, 40, lt), [[y,
|
|
437
|
+
}, null, 40, lt), [[y, U.value]]), h("div", ut, [h("button", {
|
|
438
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: !
|
|
440
|
-
onClick: (e) =>
|
|
439
|
+
disabled: !U.value.trim() || P.value.isSubmitting.value,
|
|
440
|
+
onClick: (e) => Q(a.id)
|
|
441
441
|
}, t(d(A).comments.save), 9, dt), h("button", {
|
|
442
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) =>
|
|
443
|
+
onClick: i[9] ||= (e) => Z()
|
|
444
444
|
}, t(d(A).comments.cancel), 1)])])) : (n(), m("p", ft, t(a.body), 1)),
|
|
445
|
-
|
|
445
|
+
G.value === a.id ? (n(), m("div", pt, [
|
|
446
446
|
h("span", mt, t(d(A).comments.deleteConfirm), 1),
|
|
447
447
|
h("button", {
|
|
448
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)]",
|
|
@@ -458,26 +458,26 @@ var fe = C({
|
|
|
458
458
|
_: 2
|
|
459
459
|
}, 1024),
|
|
460
460
|
l(b, { name: "tpl-replies" }, {
|
|
461
|
-
default: s(() => [
|
|
461
|
+
default: s(() => [B.value === e.id ? (n(), m("div", gt, [h("div", _t, [
|
|
462
462
|
c(h("textarea", {
|
|
463
|
-
"onUpdate:modelValue": i[11] ||= (e) =>
|
|
463
|
+
"onUpdate:modelValue": i[11] ||= (e) => V.value = e,
|
|
464
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
465
|
placeholder: d(A).comments.replyPlaceholder,
|
|
466
466
|
rows: "2",
|
|
467
|
-
onKeydown: (t) =>
|
|
468
|
-
}, null, 40, vt), [[y,
|
|
467
|
+
onKeydown: (t) => Gt(t, e.id)
|
|
468
|
+
}, null, 40, vt), [[y, V.value]]),
|
|
469
469
|
h("button", {
|
|
470
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: !
|
|
471
|
+
disabled: !V.value.trim() || P.value.isSubmitting.value,
|
|
472
472
|
onClick: (t) => Rt(e.id)
|
|
473
|
-
}, [l(d(
|
|
473
|
+
}, [l(d(E), {
|
|
474
474
|
size: 14,
|
|
475
475
|
"stroke-width": 2
|
|
476
476
|
})], 8, yt),
|
|
477
477
|
h("button", {
|
|
478
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
479
|
onClick: i[12] ||= (e) => Pt()
|
|
480
|
-
}, [l(d(
|
|
480
|
+
}, [l(d(O), {
|
|
481
481
|
size: 14,
|
|
482
482
|
"stroke-width": 2
|
|
483
483
|
})])
|
|
@@ -485,32 +485,32 @@ var fe = C({
|
|
|
485
485
|
_: 2
|
|
486
486
|
}, 1024)
|
|
487
487
|
]))), 128))]))]),
|
|
488
|
-
|
|
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
489
|
ref_key: "newCommentInput",
|
|
490
|
-
ref:
|
|
491
|
-
"onUpdate:modelValue": i[13] ||= (e) =>
|
|
490
|
+
ref: K,
|
|
491
|
+
"onUpdate:modelValue": i[13] ||= (e) => z.value = e,
|
|
492
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
493
|
"data-testid": "comments-input",
|
|
494
494
|
placeholder: d(A).comments.placeholder,
|
|
495
|
-
disabled:
|
|
495
|
+
disabled: P.value.isSubmitting.value,
|
|
496
496
|
rows: "2",
|
|
497
|
-
onKeydown:
|
|
498
|
-
}, null, 40, Ct), [[y,
|
|
497
|
+
onKeydown: Wt
|
|
498
|
+
}, null, 40, Ct), [[y, z.value]]), h("button", {
|
|
499
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
500
|
"data-testid": "comments-send",
|
|
501
|
-
disabled: !
|
|
501
|
+
disabled: !z.value.trim() || P.value.isSubmitting.value,
|
|
502
502
|
onClick: Lt
|
|
503
|
-
}, [
|
|
503
|
+
}, [P.value.isSubmitting.value ? (n(), _(d(C), {
|
|
504
504
|
key: 0,
|
|
505
505
|
class: "tpl-spinner",
|
|
506
506
|
size: 16,
|
|
507
507
|
"stroke-width": 2
|
|
508
|
-
})) : (n(), _(d(
|
|
508
|
+
})) : (n(), _(d(E), {
|
|
509
509
|
key: 1,
|
|
510
510
|
size: 16,
|
|
511
511
|
"stroke-width": 2
|
|
512
512
|
}))], 8, wt)]))])) : f("", !0)
|
|
513
513
|
], 8, me)) : f("", !0);
|
|
514
514
|
}
|
|
515
|
-
}), [["__scopeId", "data-v-
|
|
515
|
+
}), [["__scopeId", "data-v-2aee0b06"]]);
|
|
516
516
|
export { k as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ft as e, M as t, Mt as n, P as r, U as i, _ as a, c as o, ct as s, f as c, l, r as u, u as d, y as f } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
|
|
2
|
-
import { c as p } from "./LogicTagInsertButton-
|
|
3
|
-
import { n as m, r as h } from "./Toolbar-
|
|
4
|
-
import { n as g } from "./MergeTagTextarea-
|
|
2
|
+
import { c as p } from "./LogicTagInsertButton-BzEZUTRZ.js";
|
|
3
|
+
import { n as m, r as h } from "./Toolbar-D_T55elL.js";
|
|
4
|
+
import { n as g } from "./MergeTagTextarea-BjHlamJv.js";
|
|
5
5
|
import { t as _ } from "./ToggleSwitch-BIPdFWUr.js";
|
|
6
6
|
import { t as v } from "./useI18n-Cx9W7OWb.js";
|
|
7
7
|
import { h as y } from "./styleConstants-Br6CIRoS.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { B as e, Ft as t, L as n, M as r, Mt as ee, O as i, P as te, _ as a, c as o, ct as s, d as c, et as l, f as u, g as d, j as ne, l as f, r as p, u as m, v as h, w as g, y as re } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
|
|
2
|
-
import { a as ie, n as ae, o as oe, r as se, t as ce } from "./useScrollToBlock-
|
|
3
|
-
import { t as le } from "./circle-exclamation-point-
|
|
4
|
-
import { t as ue } from "./triangle-exclamation-point-
|
|
5
|
-
import { t as de } from "./info-
|
|
6
|
-
import { t as _ } from "./createLucideIcon-
|
|
7
|
-
import { t as fe } from "./check-
|
|
8
|
-
import { t as v } from "./sparkles-
|
|
9
|
-
import { t as pe } from "./square
|
|
2
|
+
import { a as ie, n as ae, o as oe, r as se, t as ce } from "./useScrollToBlock-eZXiGa8o.js";
|
|
3
|
+
import { t as le } from "./circle-exclamation-point-BCx1tR91.js";
|
|
4
|
+
import { t as ue } from "./triangle-exclamation-point-Bi7ZKTZU.js";
|
|
5
|
+
import { t as de } from "./info-DXij4QjB.js";
|
|
6
|
+
import { t as _ } from "./createLucideIcon-BKeRiObH.js";
|
|
7
|
+
import { t as fe } from "./check-8ZykoWzl.js";
|
|
8
|
+
import { t as v } from "./sparkles-zWGR8hrs.js";
|
|
9
|
+
import { t as pe } from "./square--3H462TJ.js";
|
|
10
10
|
import { t as me } from "./useI18n-Cx9W7OWb.js";
|
|
11
11
|
import { D as he, n as ge, nt as _e, st as ve, tt as ye, v as be } from "./keys-B4DimcgX.js";
|
|
12
12
|
var xe = _({
|