@templatical/editor 0.60.4 → 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.
- package/LICENSE +21 -109
- package/README.md +3 -3
- package/dist/{AiAltTextPopover-DSA1wiiW.js → AiAltTextPopover-C1Ike67q.js} +3 -4
- package/dist/{AiAltTextReview-B9-vfzCj.js → AiAltTextReview-BjT7_PoG.js} +2 -3
- package/dist/{AiChatPanel-CjUnhJGB.js → AiChatPanel-C82fJozf.js} +165 -166
- package/dist/{AiPanels-DwI9KjjI.js → AiPanels-sam_GMNs.js} +1 -1
- package/dist/{AiRewriteMenu-Bh1cIX8F.js → AiRewriteMenu-CpBcT6QL.js} +3 -4
- package/dist/{BlockIssueBadge-Bug5iqcK.js → BlockIssueBadge-D3OmWkCh.js} +2 -3
- package/dist/{BlockPreviewCanvas-C_N6f_FS.js → BlockPreviewCanvas-BHRmnq0w.js} +6 -6
- package/dist/{CollaborationNotices-BM35YG72.js → CollaborationNotices-Cmc7Ziuf.js} +1 -1
- package/dist/{CollaboratorBar-DMsEOndt.js → CollaboratorBar-DVtWefk1.js} +1 -1
- package/dist/{CommentsPanel-BSLk23YP.js → CommentsPanel-BSt22Zw9.js} +1 -1
- package/dist/{CommentsSidebar-L-DgP_kM.js → CommentsSidebar-C8qbxjyN.js} +177 -184
- package/dist/{CountdownBlock-AYPypmcX.js → CountdownBlock-bFAELCB6.js} +3 -4
- package/dist/{CountdownToolbar-B6erqTbz.js → CountdownToolbar-CJbPEVV5.js} +4 -4
- package/dist/{IssuesPanel-CeCvUfa7.js → IssuesPanel-CKYf6K84.js} +4 -5
- package/dist/{LanguageMenu-DsfCHdVi.js → LanguageMenu-BFOEQEPy.js} +124 -125
- package/dist/{LocaleNotices-BxR3xcLl.js → LocaleNotices-24UYFxo2.js} +12 -13
- package/dist/{LogicTagInsertButton-BzEZUTRZ.js → LogicTagInsertButton-DdaafrjI.js} +95 -96
- package/dist/{MergeTagInput-By2FSStk.js → MergeTagInput-BXM6-eF-.js} +1 -1
- package/dist/{MergeTagModeToggle-DtjOZhoD.js → MergeTagModeToggle-ooA_Ytfq.js} +2 -3
- package/dist/{MergeTagTextarea-q6eeDD2l.js → MergeTagTextarea-B86MPY89.js} +14 -15
- package/dist/{ParagraphEditor-25SNi_8O.js → ParagraphEditor-C15Glzy_.js} +78 -79
- package/dist/{RestoreVersionDialog-BXtCxJF1.js → RestoreVersionDialog-C13Bo4b0.js} +2 -2
- package/dist/{RichTextEditorContent-B1p7Ykq8.js → RichTextEditorContent-BNMBOkdy.js} +5 -6
- package/dist/{SaveBlockDialog-k1lxEBVW.js → SaveBlockDialog-lm_1-2w2.js} +23 -24
- package/dist/{SavedBlocksBrowserModal-CV-8mDPj.js → SavedBlocksBrowserModal-BjUZG5_S.js} +8 -9
- package/dist/{SavedBlocksPanels-9nZj1jG_.js → SavedBlocksPanels-Bj3LAXcL.js} +1 -1
- package/dist/{SavedBlocksPickBar-Dy6NN9tm.js → SavedBlocksPickBar-DOTr0Imx.js} +2 -2
- package/dist/{TemplateSettings-DWxdUdM5.js → TemplateSettings-Z-i-_xF5.js} +19 -20
- package/dist/{TestEmailModal-BAkkZTaZ.js → TestEmailModal-ClEnoNEB.js} +17 -18
- package/dist/{TestEmailPanel-ccT2E3em.js → TestEmailPanel-CVmrt-d9.js} +1 -1
- package/dist/{TitleEditor-B19dYnER.js → TitleEditor-BHZF5C6q.js} +8 -9
- package/dist/{Toolbar-DxlZq_36.js → Toolbar-bwAdFK4A.js} +217 -219
- package/dist/{TplModal-Bp2qPmQw.js → TplModal-QWmSO1nR.js} +4 -4
- package/dist/{VersionHistoryMenu-B3-xJ7GO.js → VersionHistoryMenu-qoOkZKal.js} +6 -7
- package/dist/{VersionHistoryPanels-wAVDmhnP.js → VersionHistoryPanels-D82hgc2v.js} +1 -1
- package/dist/{VersionPreviewBanner-DLAB4ZbS.js → VersionPreviewBanner-DEN9rl6y.js} +1 -1
- package/dist/{WrapperBlock-DHnD6Exl.js → WrapperBlock-32v93A9w.js} +4 -4
- package/dist/{blockTypeIcons-C691ZY1l.js → blockTypeIcons-C1S2wVx8.js} +4 -4
- package/dist/bundle-stats.json +8 -8
- package/dist/{ca-C8N05sCU.js → ca-BIseSbs-.js} +1 -2
- package/dist/cdn/chunks/{AiAltTextPopover-BLNN_Pnd.js → AiAltTextPopover-mDx_knAl.js} +4 -5
- package/dist/cdn/chunks/{AiAltTextPopover-BLNN_Pnd.js.map → AiAltTextPopover-mDx_knAl.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-Db8vSNpe.js → AiAltTextReview-Dmg8iVWD.js} +3 -4
- package/dist/cdn/chunks/{AiAltTextReview-Db8vSNpe.js.map → AiAltTextReview-Dmg8iVWD.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-DTYmFRwb.js → AiChatPanel-CEDr_x8G.js} +147 -148
- package/dist/cdn/chunks/AiChatPanel-CEDr_x8G.js.map +1 -0
- package/dist/cdn/chunks/{AiPanels-BW9ze-6O.js → AiPanels-qJgLTYPs.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-BW9ze-6O.js.map → AiPanels-qJgLTYPs.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-B9b92d0R.js → AiRewriteMenu-2a9WjizC.js} +4 -5
- package/dist/cdn/chunks/{AiRewriteMenu-B9b92d0R.js.map → AiRewriteMenu-2a9WjizC.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-fYeNnepj.js → BlockIssueBadge-D87CYoPw.js} +3 -4
- package/dist/cdn/chunks/{BlockIssueBadge-fYeNnepj.js.map → BlockIssueBadge-D87CYoPw.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-CLid1x0c.js → BlockPreviewCanvas-DDDKuWJz.js} +8 -8
- package/dist/cdn/chunks/{BlockPreviewCanvas-CLid1x0c.js.map → BlockPreviewCanvas-DDDKuWJz.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-COkmBmps.js → CollaborationNotices-DyzhN_Ns.js} +2 -2
- package/dist/cdn/chunks/{CollaborationNotices-COkmBmps.js.map → CollaborationNotices-DyzhN_Ns.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-BSzI8YIU.js → CollaboratorBar-bNFuQxxP.js} +2 -2
- package/dist/cdn/chunks/{CollaboratorBar-BSzI8YIU.js.map → CollaboratorBar-bNFuQxxP.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-BynxXJ-F.js → CommentsPanel-D-D2qsS6.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-BynxXJ-F.js.map → CommentsPanel-D-D2qsS6.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-C81N5Hwr.js → CommentsSidebar-CCVp8M2T.js} +163 -170
- package/dist/cdn/chunks/CommentsSidebar-CCVp8M2T.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock--hlKE2aj.js → CountdownBlock-5hUzymeP.js} +4 -5
- package/dist/cdn/chunks/{CountdownBlock--hlKE2aj.js.map → CountdownBlock-5hUzymeP.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-f1aqEba0.js → CountdownToolbar-DaGxwKfG.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-f1aqEba0.js.map → CountdownToolbar-DaGxwKfG.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DgxiS3hF.js → IssuesPanel-DQQo1B1z.js} +10 -11
- package/dist/cdn/chunks/IssuesPanel-DQQo1B1z.js.map +1 -0
- package/dist/cdn/chunks/{LanguageMenu-CJp7XdfG.js → LanguageMenu-2Er64H2b.js} +106 -107
- package/dist/cdn/chunks/LanguageMenu-2Er64H2b.js.map +1 -0
- package/dist/cdn/chunks/{LocaleNotices-D5vZzcUj.js → LocaleNotices-DSfOyyyf.js} +13 -14
- package/dist/cdn/chunks/LocaleNotices-DSfOyyyf.js.map +1 -0
- package/dist/cdn/chunks/{LogicTagInsertButton-DGg1Wvhp.js → LogicTagInsertButton-CumMM1rP.js} +7 -8
- package/dist/cdn/chunks/{LogicTagInsertButton-DGg1Wvhp.js.map → LogicTagInsertButton-CumMM1rP.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-BVfTwujW.js → MergeTagInput-Dm_QiG96.js} +2 -2
- package/dist/cdn/chunks/{MergeTagInput-BVfTwujW.js.map → MergeTagInput-Dm_QiG96.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BoI0C1Y6.js → MergeTagModeToggle-Bir7lkLe.js} +3 -4
- package/dist/cdn/chunks/{MergeTagModeToggle-BoI0C1Y6.js.map → MergeTagModeToggle-Bir7lkLe.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-DMXZgGUF.js → MergeTagTextarea-B_IFeWfZ.js} +15 -16
- package/dist/cdn/chunks/MergeTagTextarea-B_IFeWfZ.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-Ce7_Ix0K.js → ParagraphEditor-CWjMxuy0.js} +135 -136
- package/dist/cdn/chunks/{ParagraphEditor-Ce7_Ix0K.js.map → ParagraphEditor-CWjMxuy0.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-JmMLhN6G.js → RestoreVersionDialog-BsfulSK7.js} +3 -3
- package/dist/cdn/chunks/{RestoreVersionDialog-JmMLhN6G.js.map → RestoreVersionDialog-BsfulSK7.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-D3ihUF8v.js → RichTextEditorContent-CuvFVxEq.js} +6 -7
- package/dist/cdn/chunks/{RichTextEditorContent-D3ihUF8v.js.map → RichTextEditorContent-CuvFVxEq.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-B-2amBN5.js → SaveBlockDialog-8zxJlHw2.js} +25 -26
- package/dist/cdn/chunks/{SaveBlockDialog-B-2amBN5.js.map → SaveBlockDialog-8zxJlHw2.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BR6fQ222.js → SavedBlocksBrowserModal-DtaGW2H4.js} +9 -10
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BR6fQ222.js.map → SavedBlocksBrowserModal-DtaGW2H4.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-DVNNshfr.js → SavedBlocksPanels-CtDhdbiD.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-DVNNshfr.js.map → SavedBlocksPanels-CtDhdbiD.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BfxLHLQV.js → SavedBlocksPickBar-DovcCaoW.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPickBar-BfxLHLQV.js.map → SavedBlocksPickBar-DovcCaoW.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-TMFrRV2c.js → TemplateSettings-B8Ch5ps8.js} +20 -21
- package/dist/cdn/chunks/{TemplateSettings-TMFrRV2c.js.map → TemplateSettings-B8Ch5ps8.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-tTU35BKZ.js → TestEmailModal-D1EuQSgA.js} +16 -17
- package/dist/cdn/chunks/{TestEmailModal-tTU35BKZ.js.map → TestEmailModal-D1EuQSgA.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BNJBVwx0.js → TestEmailPanel-0iG-utN7.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-BNJBVwx0.js.map → TestEmailPanel-0iG-utN7.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BbscL_C1.js → TitleEditor-k2vSwKxN.js} +17 -18
- package/dist/cdn/chunks/{TitleEditor-BbscL_C1.js.map → TitleEditor-k2vSwKxN.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-BxzyS69X.js → Toolbar-BnTSuZQb.js} +307 -309
- package/dist/cdn/chunks/Toolbar-BnTSuZQb.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-Bzhc_l8y.js → TplModal-iRdN04Sa.js} +5 -5
- package/dist/cdn/chunks/{TplModal-Bzhc_l8y.js.map → TplModal-iRdN04Sa.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-DTDO48HI.js → VersionHistoryMenu-DlPr3twf.js} +7 -8
- package/dist/cdn/chunks/{VersionHistoryMenu-DTDO48HI.js.map → VersionHistoryMenu-DlPr3twf.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-Bbb1xUJs.js → VersionHistoryPanels-Bw5UHEvo.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-Bbb1xUJs.js.map → VersionHistoryPanels-Bw5UHEvo.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-C1H_fYAr.js → VersionPreviewBanner-anJgZOcw.js} +2 -2
- package/dist/cdn/chunks/VersionPreviewBanner-anJgZOcw.js.map +1 -0
- package/dist/cdn/chunks/{WrapperBlock-BboijK5T.js → WrapperBlock-CFjCtyvx.js} +5 -5
- package/dist/cdn/chunks/{WrapperBlock-BboijK5T.js.map → WrapperBlock-CFjCtyvx.js.map} +1 -1
- package/dist/cdn/chunks/{ca-C8N05sCU.js → ca-BIseSbs-.js} +2 -3
- package/dist/cdn/chunks/{ca-C8N05sCU.js.map → ca-BIseSbs-.js.map} +1 -1
- package/dist/cdn/chunks/{composables-C77dGo-I.js → composables-Nir0umYc.js} +551 -571
- package/dist/cdn/chunks/composables-Nir0umYc.js.map +1 -0
- package/dist/{da-Dno_4nGy.js → cdn/chunks/da-DN46iRXS.js} +3 -2
- package/dist/cdn/chunks/{da-Dno_4nGy.js.map → da-DN46iRXS.js.map} +1 -1
- package/dist/{de-DRR5JSkh.js → cdn/chunks/de-Dyk8PPCm.js} +3 -2
- package/dist/cdn/chunks/{de-DRR5JSkh.js.map → de-Dyk8PPCm.js.map} +1 -1
- package/dist/{en-DAcLbbpg.js → cdn/chunks/en-BzMbMmgz.js} +3 -2
- package/dist/cdn/chunks/{en-DAcLbbpg.js.map → en-BzMbMmgz.js.map} +1 -1
- package/dist/{es-BcEQLQxe.js → cdn/chunks/es-KSHEXYyf.js} +3 -2
- package/dist/cdn/chunks/{es-BcEQLQxe.js.map → es-KSHEXYyf.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-Bq9nXmBP.js → extensions-Br2hHeiR.js} +5 -5
- package/dist/cdn/chunks/{extensions-Bq9nXmBP.js.map → extensions-Br2hHeiR.js.map} +1 -1
- package/dist/{fr-CNQG7ESr.js → cdn/chunks/fr-DtKHfZyk.js} +3 -2
- package/dist/cdn/chunks/{fr-CNQG7ESr.js.map → fr-DtKHfZyk.js.map} +1 -1
- package/dist/{ja-CMxWxqSH.js → cdn/chunks/ja-DUSaDVPA.js} +3 -2
- package/dist/cdn/chunks/{ja-CMxWxqSH.js.map → ja-DUSaDVPA.js.map} +1 -1
- package/dist/{nl-BjyYZDkC.js → cdn/chunks/nl-DQbuxzD6.js} +3 -2
- package/dist/cdn/chunks/{nl-BjyYZDkC.js.map → nl-DQbuxzD6.js.map} +1 -1
- package/dist/{pt-BR-DC2A3C0v.js → cdn/chunks/pt-BR-CxpxBtvc.js} +3 -2
- package/dist/cdn/chunks/{pt-BR-DC2A3C0v.js.map → pt-BR-CxpxBtvc.js.map} +1 -1
- package/dist/cdn/chunks/rolldown-runtime-CGnMp29N.js +10 -0
- package/dist/cdn/chunks/{socialIcons-CSe4YJ52.js → socialIcons-CXQfKLUV.js} +156 -136
- package/dist/cdn/chunks/socialIcons-CXQfKLUV.js.map +1 -0
- package/dist/cdn/chunks/{src-1MSPRtI8.js → src-9e0wFfHH.js} +4 -2
- package/dist/cdn/chunks/src-9e0wFfHH.js.map +1 -0
- package/dist/cdn/chunks/src-A0kzK-pR.js.map +1 -1
- package/dist/cdn/chunks/{src-edESkGqO.js → src-C9jjLNMg.js} +2 -2
- package/dist/cdn/chunks/{src-edESkGqO.js.map → src-C9jjLNMg.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-DDhueoan.js → tiptap-DLW5XdqI.js} +2 -2
- package/dist/cdn/chunks/{tiptap-DDhueoan.js.map → tiptap-DLW5XdqI.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorRoot-D0Lp2x4_.js → useEditorRoot-BPVxLYFD.js} +2 -2
- package/dist/cdn/chunks/{useEditorRoot-D0Lp2x4_.js.map → useEditorRoot-BPVxLYFD.js.map} +1 -1
- package/dist/cdn/chunks/useI18n-DwP1ksBW.js +24 -0
- package/dist/cdn/chunks/useI18n-DwP1ksBW.js.map +1 -0
- package/dist/cdn/chunks/useLanguageName-CeuoO9WZ.js +41 -0
- package/dist/cdn/chunks/useLanguageName-CeuoO9WZ.js.map +1 -0
- package/dist/cdn/chunks/{useLogicTag-CKtQlJDa.js → useLogicTag-gphGbQfy.js} +3 -3
- package/dist/cdn/chunks/{useLogicTag-CKtQlJDa.js.map → useLogicTag-gphGbQfy.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-Dwy3U0PI.js → useMergeTag-QM-tkBc6.js} +3 -3
- package/dist/cdn/chunks/{useMergeTag-Dwy3U0PI.js.map → useMergeTag-QM-tkBc6.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-CBp9uwjV.js → usePopoverPosition-Cg8LR0W4.js} +2 -2
- package/dist/cdn/chunks/{usePopoverPosition-CBp9uwjV.js.map → usePopoverPosition-Cg8LR0W4.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-32EnuMwu.js → useScrollToBlock-CS7zo4oQ.js} +2 -2
- package/dist/cdn/chunks/{useScrollToBlock-32EnuMwu.js.map → useScrollToBlock-CS7zo4oQ.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +910 -1006
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{composables-Bu_OmyjT.js → composables-6SKZrQs-.js} +1335 -1355
- package/dist/{cdn/chunks/da-Dno_4nGy.js → da-DN46iRXS.js} +1 -4
- package/dist/{cdn/chunks/de-DRR5JSkh.js → de-Dyk8PPCm.js} +1 -4
- package/dist/{cdn/chunks/en-DAcLbbpg.js → en-BzMbMmgz.js} +1 -4
- package/dist/{cdn/chunks/es-BcEQLQxe.js → es-KSHEXYyf.js} +1 -4
- package/dist/{extensions-zHf8YFRw.js → extensions-D74nAP73.js} +3 -3
- package/dist/{cdn/chunks/fr-CNQG7ESr.js → fr-DtKHfZyk.js} +1 -4
- package/dist/index.d.ts +38 -406
- package/dist/{cdn/chunks/ja-CMxWxqSH.js → ja-DUSaDVPA.js} +1 -4
- package/dist/{cdn/chunks/nl-BjyYZDkC.js → nl-DQbuxzD6.js} +1 -4
- package/dist/{cdn/chunks/pt-BR-DC2A3C0v.js → pt-BR-CxpxBtvc.js} +1 -4
- package/dist/{socialIcons-mWE33bOn.js → socialIcons-K89pe-h2.js} +84 -64
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +1087 -1183
- package/dist/{useEditorRoot-DWfC2CVC.js → useEditorRoot-CQeutW_s.js} +1 -1
- package/dist/useI18n-B05qsAsl.js +22 -0
- package/dist/useLanguageName-CnpG7FD5.js +39 -0
- package/dist/{useLogicTag-K5CPoMTk.js → useLogicTag-DSa1si4o.js} +2 -2
- package/dist/{useMergeTag-tsU_Sw2x.js → useMergeTag-DwxbvRZI.js} +2 -2
- package/dist/{usePopoverPosition-DF0ZYH7g.js → usePopoverPosition-B8CXTr8v.js} +1 -1
- package/dist/{useScrollToBlock-eZXiGa8o.js → useScrollToBlock-ZZBBGFan.js} +1 -1
- package/package.json +12 -14
- package/dist/CloudHeaderExtras-DC_oNrxz.js +0 -22
- package/dist/CloudPanels-BS49EsuN.js +0 -167
- package/dist/cdn/chunks/AiChatPanel-DTYmFRwb.js.map +0 -1
- package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js +0 -24
- package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-D4dslsyk.js +0 -167
- package/dist/cdn/chunks/CloudPanels-D4dslsyk.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-C81N5Hwr.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-DgxiS3hF.js.map +0 -1
- package/dist/cdn/chunks/LanguageMenu-CJp7XdfG.js.map +0 -1
- package/dist/cdn/chunks/LocaleNotices-D5vZzcUj.js.map +0 -1
- package/dist/cdn/chunks/MergeTagTextarea-DMXZgGUF.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-BxzyS69X.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-C1H_fYAr.js.map +0 -1
- package/dist/cdn/chunks/composables-C77dGo-I.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-CUlw09ix.js +0 -1405
- package/dist/cdn/chunks/createCloudRuntime-CUlw09ix.js.map +0 -1
- package/dist/cdn/chunks/de-6M4JoHoD.js +0 -21
- package/dist/cdn/chunks/de-6M4JoHoD.js.map +0 -1
- package/dist/cdn/chunks/en-FzUuJ8HW.js +0 -21
- package/dist/cdn/chunks/en-FzUuJ8HW.js.map +0 -1
- package/dist/cdn/chunks/keys-ywH4jHJ2.js +0 -11
- package/dist/cdn/chunks/keys-ywH4jHJ2.js.map +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/logger-CqQTfJGx.js +0 -26
- package/dist/cdn/chunks/logger-CqQTfJGx.js.map +0 -1
- package/dist/cdn/chunks/preRenderCustomBlocks-BLVFtvl8.js +0 -22
- package/dist/cdn/chunks/preRenderCustomBlocks-BLVFtvl8.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-Bp92Fc6J.js +0 -21
- package/dist/cdn/chunks/pt-BR-Bp92Fc6J.js.map +0 -1
- package/dist/cdn/chunks/pusher-x9rNqzon.js +0 -2473
- package/dist/cdn/chunks/pusher-x9rNqzon.js.map +0 -1
- package/dist/cdn/chunks/rolldown-runtime-QGRDbDUS.js +0 -19
- package/dist/cdn/chunks/socialIcons-CSe4YJ52.js.map +0 -1
- package/dist/cdn/chunks/src-1MSPRtI8.js.map +0 -1
- package/dist/cdn/chunks/useCloudI18n-BTV9uu3c.js +0 -24
- package/dist/cdn/chunks/useCloudI18n-BTV9uu3c.js.map +0 -1
- package/dist/cdn/chunks/useI18n-DPg6rPbu.js +0 -18
- package/dist/cdn/chunks/useI18n-DPg6rPbu.js.map +0 -1
- package/dist/createCloudRuntime-CiEo0wkr.js +0 -1389
- package/dist/de-6M4JoHoD.js +0 -19
- package/dist/en-FzUuJ8HW.js +0 -19
- package/dist/keys-B4DimcgX.js +0 -9
- package/dist/languageName-DEEOhDWI.js +0 -10
- package/dist/logger-BOu7oEtk.js +0 -24
- package/dist/preRenderCustomBlocks-6CLw2rP6.js +0 -20
- package/dist/pt-BR-Bp92Fc6J.js +0 -19
- package/dist/useCloudI18n-BnuOL1YS.js +0 -22
- package/dist/useI18n-Cx9W7OWb.js +0 -16
|
@@ -1,116 +1,109 @@
|
|
|
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 {
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import { t as E } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
3
|
+
import { t as re } from "./useLanguageName-CeuoO9WZ.js";
|
|
4
|
+
import { t as ie } from "./formatRelativeTime-BTD8Ktt-.js";
|
|
5
|
+
import { D as ae, _ as oe, lt as se, t as ce } from "./useI18n-DwP1ksBW.js";
|
|
6
|
+
import { Bt as le, G as x, I as ue, It as de, Lt as fe, Vt as pe, at as S, f as me, j as he, nt as C, t as w } from "./icons-DdVB-5WO.js";
|
|
7
|
+
import { t as T } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
9
8
|
// src/components/CommentsSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
-
var
|
|
9
|
+
var ge = ["aria-label"], _e = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, ve = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]" }, ye = {
|
|
11
10
|
key: 0,
|
|
12
11
|
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)]"
|
|
13
|
-
},
|
|
12
|
+
}, be = ["aria-label"], xe = { class: "tpl:flex tpl:flex-wrap tpl:gap-1 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2" }, Se = ["aria-pressed"], Ce = ["aria-pressed"], we = ["aria-pressed"], Te = ["aria-pressed"], Ee = { class: "tpl:flex-1 tpl:overflow-y-auto" }, De = {
|
|
14
13
|
key: 0,
|
|
15
14
|
class: "tpl:flex tpl:h-full tpl:items-center tpl:justify-center"
|
|
16
|
-
},
|
|
15
|
+
}, Oe = {
|
|
17
16
|
key: 1,
|
|
18
17
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:px-6 tpl:text-center"
|
|
19
|
-
},
|
|
18
|
+
}, ke = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ae = {
|
|
20
19
|
key: 2,
|
|
21
20
|
class: "tpl:flex tpl:flex-col tpl:gap-3 tpl:p-3"
|
|
22
|
-
},
|
|
21
|
+
}, je = { class: "tpl-comment-card tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-3" }, Me = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Ne = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-1.5" }, Pe = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Fe = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, Ie = {
|
|
23
22
|
key: 1,
|
|
24
23
|
class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
|
|
25
|
-
},
|
|
24
|
+
}, Le = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, Re = ["title", "onClick"], ze = ["title", "onClick"], Be = ["title", "onClick"], Ve = {
|
|
26
25
|
key: 0,
|
|
27
26
|
class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1 tpl:text-[10px] tpl:text-[var(--tpl-primary)]"
|
|
28
|
-
},
|
|
27
|
+
}, He = {
|
|
29
28
|
key: 0,
|
|
30
29
|
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)]"
|
|
31
|
-
},
|
|
30
|
+
}, Ue = ["onClick"], We = {
|
|
32
31
|
key: 2,
|
|
33
32
|
class: "tpl:mt-2"
|
|
34
|
-
},
|
|
33
|
+
}, Ge = ["onKeydown"], Ke = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, qe = ["disabled", "onClick"], Je = {
|
|
35
34
|
key: 3,
|
|
36
35
|
class: "tpl:mt-1.5 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
|
|
37
|
-
},
|
|
36
|
+
}, Ye = {
|
|
38
37
|
key: 4,
|
|
39
38
|
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)]"
|
|
40
|
-
},
|
|
39
|
+
}, Xe = { class: "tpl:flex-1" }, Ze = ["onClick"], Qe = {
|
|
41
40
|
key: 5,
|
|
42
41
|
class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2"
|
|
43
|
-
},
|
|
42
|
+
}, $e = ["title", "onClick"], et = ["onClick"], tt = {
|
|
44
43
|
key: 0,
|
|
45
44
|
class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
|
|
46
|
-
},
|
|
45
|
+
}, nt = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, rt = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-1.5" }, it = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, at = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, ot = {
|
|
47
46
|
key: 1,
|
|
48
47
|
class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
|
|
49
|
-
},
|
|
48
|
+
}, st = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, ct = ["title", "onClick"], lt = ["title", "onClick"], ut = {
|
|
50
49
|
key: 0,
|
|
51
50
|
class: "tpl:mt-1.5"
|
|
52
|
-
},
|
|
51
|
+
}, dt = ["onKeydown"], ft = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, pt = ["disabled", "onClick"], mt = {
|
|
53
52
|
key: 1,
|
|
54
53
|
class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
|
|
55
|
-
},
|
|
54
|
+
}, ht = {
|
|
56
55
|
key: 2,
|
|
57
56
|
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)]"
|
|
58
|
-
},
|
|
57
|
+
}, gt = { class: "tpl:flex-1" }, _t = ["onClick"], vt = {
|
|
59
58
|
key: 0,
|
|
60
59
|
class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
|
|
61
|
-
},
|
|
60
|
+
}, yt = { 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)]" }, bt = ["placeholder", "onKeydown"], xt = ["disabled", "onClick"], St = {
|
|
62
61
|
key: 0,
|
|
63
62
|
class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]"
|
|
64
|
-
},
|
|
65
|
-
key: 0,
|
|
66
|
-
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)]"
|
|
67
|
-
}, Ct = {
|
|
68
|
-
key: 1,
|
|
69
|
-
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)]"
|
|
70
|
-
}, wt = ["placeholder", "disabled"], Tt = ["disabled"], D = /*#__PURE__*/ E(/* @__PURE__ */ e({
|
|
63
|
+
}, Ct = { 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)]" }, wt = ["placeholder", "disabled"], Tt = ["disabled"], E = /*#__PURE__*/ T(/* @__PURE__ */ e({
|
|
71
64
|
__name: "CommentsSidebar",
|
|
72
65
|
props: {
|
|
73
66
|
visible: { type: Boolean },
|
|
74
67
|
feature: {}
|
|
75
68
|
},
|
|
76
69
|
emits: ["close"],
|
|
77
|
-
setup(e, { expose:
|
|
78
|
-
let
|
|
70
|
+
setup(e, { expose: T, emit: E }) {
|
|
71
|
+
let D = e, Et = E, { t: O, format: k } = ce(), A = se(oe, "CommentsSidebar"), j = re(A), M = g(() => D.feature.headless), N = _("unresolved"), P = o(ae, void 0), F = _(!1), Dt = g(() => A.activeLocale?.value ?? A.content.value.settings.locale);
|
|
79
72
|
function I(e) {
|
|
80
|
-
return e.locale ??
|
|
73
|
+
return e.locale ?? A.content.value.settings.locale;
|
|
81
74
|
}
|
|
82
|
-
let L = _(""), R = _(null), z = _(""), B = _(null), V = _(""), H = _(/* @__PURE__ */ new Set()), U = _(null), W = _(null), G = g(() =>
|
|
75
|
+
let L = _(""), R = _(null), z = _(""), B = _(null), V = _(""), H = _(/* @__PURE__ */ new Set()), U = _(null), W = _(null), G = g(() => D.feature.filterBlockId.value);
|
|
83
76
|
r(G, (e) => {
|
|
84
77
|
e && (N.value = "block");
|
|
85
78
|
}, { immediate: !0 });
|
|
86
79
|
let Ot = g(() => M.value.isLoading.value && M.value.comments.value.length === 0), kt = g(() => {
|
|
87
80
|
let e = /* @__PURE__ */ new Set();
|
|
88
|
-
for (let t of
|
|
81
|
+
for (let t of A.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
82
|
return e;
|
|
90
83
|
});
|
|
91
84
|
function At(e) {
|
|
92
85
|
return e ? !kt.value.has(e) : !1;
|
|
93
86
|
}
|
|
94
|
-
let
|
|
87
|
+
let K = g(() => {
|
|
95
88
|
let e = M.value.comments.value;
|
|
96
89
|
return N.value === "unresolved" ? e = e.filter((e) => !e.resolvedAt) : N.value === "block" && G.value && (e = e.filter((e) => e.blockId === G.value)), F.value && (e = e.filter((e) => [e, ...e.replies ?? []].some((e) => I(e) === Dt.value))), e;
|
|
97
90
|
});
|
|
98
|
-
r(() =>
|
|
99
|
-
N.value === "block" && e && (
|
|
91
|
+
r(() => A.state.selectedBlockId, (e) => {
|
|
92
|
+
N.value === "block" && e && (D.feature.filterBlockId.value = e);
|
|
100
93
|
});
|
|
101
94
|
function q(e, t) {
|
|
102
|
-
N.value = e,
|
|
95
|
+
N.value = e, D.feature.filterBlockId.value = e === "block" ? t ?? null : null;
|
|
103
96
|
}
|
|
104
|
-
function
|
|
97
|
+
function jt(e) {
|
|
105
98
|
q("block", e);
|
|
106
99
|
}
|
|
107
|
-
function
|
|
100
|
+
function Mt(e) {
|
|
108
101
|
H.value.has(e) ? H.value.delete(e) : H.value.add(e);
|
|
109
102
|
}
|
|
110
|
-
function
|
|
103
|
+
function Nt(e) {
|
|
111
104
|
R.value = e, z.value = "", B.value = null, H.value.has(e) || H.value.add(e);
|
|
112
105
|
}
|
|
113
|
-
function
|
|
106
|
+
function Pt() {
|
|
114
107
|
R.value = null, z.value = "";
|
|
115
108
|
}
|
|
116
109
|
function J(e) {
|
|
@@ -125,7 +118,7 @@ var he = ["aria-label"], ge = { class: "tpl:flex tpl:items-center tpl:justify-be
|
|
|
125
118
|
function Z() {
|
|
126
119
|
U.value = null;
|
|
127
120
|
}
|
|
128
|
-
async function
|
|
121
|
+
async function Q() {
|
|
129
122
|
let e = L.value.trim();
|
|
130
123
|
if (!e || !M.value.canCreate.value) return;
|
|
131
124
|
let t = N.value === "block" ? G.value : void 0;
|
|
@@ -133,11 +126,11 @@ var he = ["aria-label"], ge = { class: "tpl:flex tpl:items-center tpl:justify-be
|
|
|
133
126
|
await M.value.create({
|
|
134
127
|
body: e,
|
|
135
128
|
blockId: t ?? void 0,
|
|
136
|
-
locale:
|
|
129
|
+
locale: A.activeLocale?.value ?? A.content.value.settings.locale
|
|
137
130
|
}), L.value = "";
|
|
138
131
|
} catch {}
|
|
139
132
|
}
|
|
140
|
-
async function
|
|
133
|
+
async function Ft(e) {
|
|
141
134
|
let t = z.value.trim();
|
|
142
135
|
if (!t || !M.value.canCreate.value) return;
|
|
143
136
|
let n = M.value.find(e);
|
|
@@ -146,99 +139,99 @@ var he = ["aria-label"], ge = { class: "tpl:flex tpl:items-center tpl:justify-be
|
|
|
146
139
|
body: t,
|
|
147
140
|
blockId: n?.blockId ?? void 0,
|
|
148
141
|
parentId: e,
|
|
149
|
-
locale:
|
|
142
|
+
locale: A.activeLocale?.value ?? A.content.value.settings.locale
|
|
150
143
|
}), R.value = null, z.value = "";
|
|
151
144
|
} catch {}
|
|
152
145
|
}
|
|
153
|
-
async function
|
|
146
|
+
async function $(e) {
|
|
154
147
|
let t = V.value.trim();
|
|
155
148
|
if (t) try {
|
|
156
149
|
await M.value.update(e, { body: t }), B.value = null, V.value = "";
|
|
157
150
|
} catch {}
|
|
158
151
|
}
|
|
159
|
-
async function
|
|
152
|
+
async function It(e) {
|
|
160
153
|
try {
|
|
161
154
|
await M.value.remove(e);
|
|
162
155
|
} catch {}
|
|
163
156
|
U.value = null;
|
|
164
157
|
}
|
|
165
|
-
async function
|
|
158
|
+
async function Lt(e) {
|
|
166
159
|
try {
|
|
167
160
|
await M.value.setResolved(e.id, !e.resolvedAt);
|
|
168
161
|
} catch {}
|
|
169
162
|
}
|
|
170
|
-
function
|
|
163
|
+
function Rt(e) {
|
|
171
164
|
return M.value.canUpdate.value && M.value.isOwn(e);
|
|
172
165
|
}
|
|
173
|
-
function
|
|
166
|
+
function zt(e) {
|
|
174
167
|
return M.value.canDelete.value && M.value.isOwn(e);
|
|
175
168
|
}
|
|
169
|
+
function Bt(e) {
|
|
170
|
+
return ie(e, O.time) ?? e;
|
|
171
|
+
}
|
|
176
172
|
function Vt(e) {
|
|
177
|
-
|
|
173
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q());
|
|
178
174
|
}
|
|
179
|
-
function Ht(e) {
|
|
180
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(),
|
|
175
|
+
function Ht(e, t) {
|
|
176
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Ft(t));
|
|
181
177
|
}
|
|
182
178
|
function Ut(e, t) {
|
|
183
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(),
|
|
179
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), $(t)), e.key === "Escape" && Y();
|
|
184
180
|
}
|
|
185
|
-
function Wt(
|
|
186
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q(t)), e.key === "Escape" && Y();
|
|
187
|
-
}
|
|
188
|
-
function Gt() {
|
|
181
|
+
function Wt() {
|
|
189
182
|
te(() => {
|
|
190
183
|
W.value?.focus();
|
|
191
184
|
});
|
|
192
185
|
}
|
|
193
|
-
return
|
|
194
|
-
filterByBlock:
|
|
195
|
-
focusNewComment:
|
|
186
|
+
return T({
|
|
187
|
+
filterByBlock: jt,
|
|
188
|
+
focusNewComment: Wt
|
|
196
189
|
}), (r, o) => e.visible ? (t(), s("div", {
|
|
197
190
|
key: 0,
|
|
198
191
|
role: "complementary",
|
|
199
|
-
"aria-label": c(
|
|
192
|
+
"aria-label": c(O).comments.title,
|
|
200
193
|
"data-testid": "comments-sidebar",
|
|
201
194
|
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)]"
|
|
202
195
|
}, [
|
|
203
|
-
f("div",
|
|
204
|
-
y(c(
|
|
196
|
+
f("div", _e, [f("div", ve, [
|
|
197
|
+
y(c(C), {
|
|
205
198
|
size: 13,
|
|
206
199
|
"stroke-width": 2
|
|
207
200
|
}),
|
|
208
|
-
f("span", null, p(c(
|
|
209
|
-
e.feature.unresolvedCount.value > 0 ? (t(), s("span",
|
|
201
|
+
f("span", null, p(c(O).comments.title), 1),
|
|
202
|
+
e.feature.unresolvedCount.value > 0 ? (t(), s("span", ye, p(e.feature.unresolvedCount.value), 1)) : u("", !0)
|
|
210
203
|
]), f("button", {
|
|
211
204
|
type: "button",
|
|
212
205
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
|
|
213
|
-
"aria-label": c(
|
|
206
|
+
"aria-label": c(O).comments.close,
|
|
214
207
|
onClick: o[0] ||= (e) => Et("close")
|
|
215
|
-
}, [y(c(
|
|
208
|
+
}, [y(c(w), {
|
|
216
209
|
size: 14,
|
|
217
210
|
"stroke-width": 2
|
|
218
|
-
})], 8,
|
|
219
|
-
f("div",
|
|
211
|
+
})], 8, be)]),
|
|
212
|
+
f("div", xe, [
|
|
220
213
|
f("button", {
|
|
221
214
|
type: "button",
|
|
222
215
|
class: l(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", N.value === "unresolved" ? "tpl-comment-filter--active" : ""]),
|
|
223
216
|
"aria-pressed": N.value === "unresolved",
|
|
224
217
|
"data-testid": "comments-filter-unresolved",
|
|
225
218
|
onClick: o[1] ||= (e) => q("unresolved")
|
|
226
|
-
}, p(c(
|
|
219
|
+
}, p(c(O).comments.filterUnresolved), 11, Se),
|
|
227
220
|
f("button", {
|
|
228
221
|
type: "button",
|
|
229
222
|
class: l(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", N.value === "all" ? "tpl-comment-filter--active" : ""]),
|
|
230
223
|
"aria-pressed": N.value === "all",
|
|
231
224
|
"data-testid": "comments-filter-all",
|
|
232
225
|
onClick: o[2] ||= (e) => q("all")
|
|
233
|
-
}, p(c(
|
|
234
|
-
c(
|
|
226
|
+
}, p(c(O).comments.filterAll), 11, Ce),
|
|
227
|
+
c(A).state.selectedBlockId ? (t(), s("button", {
|
|
235
228
|
key: 0,
|
|
236
229
|
type: "button",
|
|
237
230
|
class: l(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", N.value === "block" ? "tpl-comment-filter--active" : ""]),
|
|
238
231
|
"aria-pressed": N.value === "block",
|
|
239
232
|
"data-testid": "comments-filter-block",
|
|
240
|
-
onClick: o[3] ||= (e) => q("block", c(
|
|
241
|
-
}, p(c(
|
|
233
|
+
onClick: o[3] ||= (e) => q("block", c(A).state.selectedBlockId ?? void 0)
|
|
234
|
+
}, p(c(O).comments.filterBlock), 11, we)) : u("", !0),
|
|
242
235
|
c(P) ? (t(), s("button", {
|
|
243
236
|
key: 1,
|
|
244
237
|
type: "button",
|
|
@@ -246,206 +239,206 @@ var he = ["aria-label"], ge = { class: "tpl:flex tpl:items-center tpl:justify-be
|
|
|
246
239
|
class: l(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:focus-visible:outline-none tpl:focus-visible:shadow-[var(--tpl-ring)]", F.value ? "tpl-comment-filter--active" : ""]),
|
|
247
240
|
"aria-pressed": F.value,
|
|
248
241
|
onClick: o[4] ||= (e) => F.value = !F.value
|
|
249
|
-
}, p(c(
|
|
242
|
+
}, p(c(O).comments.filterLanguage), 11, Te)) : u("", !0)
|
|
250
243
|
]),
|
|
251
|
-
f("div",
|
|
244
|
+
f("div", Ee, [Ot.value ? (t(), s("div", De, [y(c(S), {
|
|
252
245
|
class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
|
|
253
246
|
size: 24,
|
|
254
247
|
"stroke-width": 2
|
|
255
|
-
})])) : K.value.length === 0 ? (t(), s("div",
|
|
248
|
+
})])) : K.value.length === 0 ? (t(), s("div", Oe, [y(c(C), {
|
|
256
249
|
size: 32,
|
|
257
250
|
"stroke-width": 1.5,
|
|
258
251
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
259
|
-
}), f("p",
|
|
252
|
+
}), f("p", ke, p(N.value === "all" ? c(O).comments.noCommentsHint : c(O).comments.noComments), 1)])) : (t(), s("div", Ae, [(t(!0), s(v, null, a(K.value, (e) => (t(), s("div", {
|
|
260
253
|
key: e.id,
|
|
261
254
|
class: "tpl-comment-thread",
|
|
262
255
|
"data-testid": "comment-thread"
|
|
263
256
|
}, [
|
|
264
|
-
f("div",
|
|
265
|
-
f("div",
|
|
266
|
-
f("span",
|
|
267
|
-
f("span",
|
|
257
|
+
f("div", je, [
|
|
258
|
+
f("div", Me, [f("div", Ne, [
|
|
259
|
+
f("span", Pe, p(M.value.isOwn(e) ? c(O).comments.ownedByYou : e.author.name), 1),
|
|
260
|
+
f("span", Fe, p(Bt(e.createdAt)), 1),
|
|
268
261
|
c(P) ? (t(), s("span", {
|
|
269
262
|
key: 0,
|
|
270
263
|
"data-testid": "comment-locale-badge",
|
|
271
264
|
class: l(c(b))
|
|
272
|
-
}, p(c(
|
|
273
|
-
e.updatedAt ? (t(), s("span",
|
|
274
|
-
]), f("div",
|
|
265
|
+
}, p(c(j)(I(e))), 3)) : u("", !0),
|
|
266
|
+
e.updatedAt ? (t(), s("span", Ie, " (" + p(c(O).comments.edited) + ") ", 1)) : u("", !0)
|
|
267
|
+
]), f("div", Le, [
|
|
275
268
|
M.value.canResolve.value ? (t(), s("button", {
|
|
276
269
|
key: 0,
|
|
277
270
|
"data-testid": "comment-resolve",
|
|
278
271
|
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
279
|
-
title: e.resolvedAt ? c(
|
|
280
|
-
onClick: (t) =>
|
|
281
|
-
}, [y(c(
|
|
272
|
+
title: e.resolvedAt ? c(O).comments.unresolve : c(O).comments.resolve,
|
|
273
|
+
onClick: (t) => Lt(e)
|
|
274
|
+
}, [y(c(de), {
|
|
282
275
|
size: 13,
|
|
283
276
|
"stroke-width": 2,
|
|
284
277
|
class: "tpl-resolve-icon",
|
|
285
278
|
style: ne({ color: e.resolvedAt ? "var(--tpl-primary)" : void 0 })
|
|
286
|
-
}, null, 8, ["style"])], 8,
|
|
287
|
-
|
|
279
|
+
}, null, 8, ["style"])], 8, Re)) : u("", !0),
|
|
280
|
+
Rt(e) ? (t(), s("button", {
|
|
288
281
|
key: 1,
|
|
289
282
|
"data-testid": "comment-edit",
|
|
290
283
|
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
291
|
-
title: c(
|
|
284
|
+
title: c(O).comments.edit,
|
|
292
285
|
onClick: (t) => J(e)
|
|
293
|
-
}, [y(c(
|
|
286
|
+
}, [y(c(x), {
|
|
294
287
|
size: 12,
|
|
295
288
|
"stroke-width": 2
|
|
296
|
-
})], 8,
|
|
297
|
-
|
|
289
|
+
})], 8, ze)) : u("", !0),
|
|
290
|
+
zt(e) ? (t(), s("button", {
|
|
298
291
|
key: 2,
|
|
299
292
|
"data-testid": "comment-delete",
|
|
300
293
|
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
301
|
-
title: c(
|
|
294
|
+
title: c(O).comments.delete,
|
|
302
295
|
onClick: (t) => X(e.id)
|
|
303
|
-
}, [y(c(
|
|
296
|
+
}, [y(c(me), {
|
|
304
297
|
size: 12,
|
|
305
298
|
"stroke-width": 2
|
|
306
|
-
})], 8,
|
|
299
|
+
})], 8, Be)) : u("", !0)
|
|
307
300
|
])]),
|
|
308
301
|
y(m, { name: "tpl-resolve" }, {
|
|
309
|
-
default: n(() => [e.resolvedAt ? (t(), s("div",
|
|
302
|
+
default: n(() => [e.resolvedAt ? (t(), s("div", Ve, [y(c(pe), {
|
|
310
303
|
size: 10,
|
|
311
304
|
"stroke-width": 2.5
|
|
312
|
-
}), f("span", null, p(c(
|
|
305
|
+
}), f("span", null, p(c(k)(c(O).comments.resolvedBy, { name: e.resolvedBy?.name ?? "" })), 1)])) : u("", !0)]),
|
|
313
306
|
_: 2
|
|
314
307
|
}, 1024),
|
|
315
|
-
e.blockId && At(e.blockId) ? (t(), s("span",
|
|
308
|
+
e.blockId && At(e.blockId) ? (t(), s("span", He, p(c(O).comments.missingBlock), 1)) : e.blockId ? (t(), s("button", {
|
|
316
309
|
key: 1,
|
|
317
310
|
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
|
-
onClick: (t) => c(
|
|
319
|
-
}, p(c(
|
|
320
|
-
B.value === e.id ? (t(), s("div",
|
|
311
|
+
onClick: (t) => c(A).selectBlock(e.blockId ?? "")
|
|
312
|
+
}, p(c(O).comments.jumpToBlock), 9, Ue)) : u("", !0),
|
|
313
|
+
B.value === e.id ? (t(), s("div", We, [i(f("textarea", {
|
|
321
314
|
"onUpdate:modelValue": o[5] ||= (e) => V.value = e,
|
|
322
315
|
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
316
|
rows: "3",
|
|
324
|
-
onKeydown: (t) =>
|
|
325
|
-
}, null, 40,
|
|
317
|
+
onKeydown: (t) => Ut(t, e.id)
|
|
318
|
+
}, null, 40, Ge), [[h, V.value]]), f("div", Ke, [f("button", {
|
|
326
319
|
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
320
|
disabled: !V.value.trim() || M.value.isSubmitting.value,
|
|
328
|
-
onClick: (t) =>
|
|
329
|
-
}, p(c(
|
|
321
|
+
onClick: (t) => $(e.id)
|
|
322
|
+
}, p(c(O).comments.save), 9, qe), f("button", {
|
|
330
323
|
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
324
|
onClick: o[6] ||= (e) => Y()
|
|
332
|
-
}, p(c(
|
|
333
|
-
U.value === e.id ? (t(), s("div",
|
|
334
|
-
f("span",
|
|
325
|
+
}, p(c(O).comments.cancel), 1)])])) : (t(), s("p", Je, p(e.body), 1)),
|
|
326
|
+
U.value === e.id ? (t(), s("div", Ye, [
|
|
327
|
+
f("span", Xe, p(c(O).comments.deleteConfirm), 1),
|
|
335
328
|
f("button", {
|
|
336
329
|
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)]",
|
|
337
330
|
"data-testid": "comment-delete-confirm",
|
|
338
|
-
onClick: (t) =>
|
|
339
|
-
}, p(c(
|
|
331
|
+
onClick: (t) => It(e.id)
|
|
332
|
+
}, p(c(O).comments.delete), 9, Ze),
|
|
340
333
|
f("button", {
|
|
341
334
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
342
335
|
onClick: o[7] ||= (e) => Z()
|
|
343
|
-
}, p(c(
|
|
336
|
+
}, p(c(O).comments.cancel), 1)
|
|
344
337
|
])) : u("", !0),
|
|
345
|
-
B.value !== e.id && U.value !== e.id ? (t(), s("div",
|
|
338
|
+
B.value !== e.id && U.value !== e.id ? (t(), s("div", Qe, [M.value.canCreate.value ? (t(), s("button", {
|
|
346
339
|
key: 0,
|
|
347
340
|
"data-testid": "comment-reply",
|
|
348
341
|
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
349
|
-
title: c(
|
|
350
|
-
onClick: (t) =>
|
|
351
|
-
}, [y(c(
|
|
342
|
+
title: c(O).comments.reply,
|
|
343
|
+
onClick: (t) => Nt(e.id)
|
|
344
|
+
}, [y(c(ue), {
|
|
352
345
|
size: 13,
|
|
353
346
|
"stroke-width": 2,
|
|
354
347
|
class: "tpl:text-[var(--tpl-primary)]"
|
|
355
|
-
})], 8,
|
|
348
|
+
})], 8, $e)) : u("", !0), (e.replies?.length ?? 0) > 0 ? (t(), s("button", {
|
|
356
349
|
key: 1,
|
|
357
350
|
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
|
-
onClick: (t) =>
|
|
359
|
-
}, [H.value.has(e.id) ? (t(), d(c(
|
|
351
|
+
onClick: (t) => Mt(e.id)
|
|
352
|
+
}, [H.value.has(e.id) ? (t(), d(c(fe), {
|
|
360
353
|
key: 0,
|
|
361
354
|
size: 11,
|
|
362
355
|
"stroke-width": 2
|
|
363
|
-
})) : (t(), d(c(
|
|
356
|
+
})) : (t(), d(c(le), {
|
|
364
357
|
key: 1,
|
|
365
358
|
size: 11,
|
|
366
359
|
"stroke-width": 2
|
|
367
|
-
})), ee(" " + p((e.replies?.length ?? 0) === 1 ? c(
|
|
360
|
+
})), ee(" " + p((e.replies?.length ?? 0) === 1 ? c(k)(c(O).comments.replyOne, { count: String(e.replies?.length ?? 0) }) : c(k)(c(O).comments.replyMany, { count: String(e.replies?.length ?? 0) })), 1)], 8, et)) : u("", !0)])) : u("", !0)
|
|
368
361
|
]),
|
|
369
362
|
y(m, { name: "tpl-replies" }, {
|
|
370
|
-
default: n(() => [H.value.has(e.id) && (e.replies?.length ?? 0) > 0 ? (t(), s("div",
|
|
363
|
+
default: n(() => [H.value.has(e.id) && (e.replies?.length ?? 0) > 0 ? (t(), s("div", tt, [(t(!0), s(v, null, a(e.replies, (n, r) => (t(), s("div", {
|
|
371
364
|
key: n.id,
|
|
372
365
|
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
366
|
}, [
|
|
374
|
-
f("div",
|
|
375
|
-
f("span",
|
|
376
|
-
f("span",
|
|
367
|
+
f("div", nt, [f("div", rt, [
|
|
368
|
+
f("span", it, p(M.value.isOwn(n) ? c(O).comments.ownedByYou : n.author.name), 1),
|
|
369
|
+
f("span", at, p(Bt(n.createdAt)), 1),
|
|
377
370
|
c(P) ? (t(), s("span", {
|
|
378
371
|
key: 0,
|
|
379
372
|
"data-testid": "comment-locale-badge",
|
|
380
373
|
class: l(c(b))
|
|
381
|
-
}, p(c(
|
|
382
|
-
n.updatedAt ? (t(), s("span",
|
|
383
|
-
]), f("div",
|
|
374
|
+
}, p(c(j)(I(n))), 3)) : u("", !0),
|
|
375
|
+
n.updatedAt ? (t(), s("span", ot, " (" + p(c(O).comments.edited) + ") ", 1)) : u("", !0)
|
|
376
|
+
]), f("div", st, [Rt(n) ? (t(), s("button", {
|
|
384
377
|
key: 0,
|
|
385
378
|
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
386
|
-
title: c(
|
|
379
|
+
title: c(O).comments.edit,
|
|
387
380
|
onClick: (e) => J(n)
|
|
388
|
-
}, [y(c(
|
|
381
|
+
}, [y(c(x), {
|
|
389
382
|
size: 11,
|
|
390
383
|
"stroke-width": 2
|
|
391
|
-
})], 8,
|
|
384
|
+
})], 8, ct)) : u("", !0), zt(n) ? (t(), s("button", {
|
|
392
385
|
key: 1,
|
|
393
386
|
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
394
|
-
title: c(
|
|
387
|
+
title: c(O).comments.delete,
|
|
395
388
|
onClick: (e) => X(n.id)
|
|
396
|
-
}, [y(c(
|
|
389
|
+
}, [y(c(me), {
|
|
397
390
|
size: 11,
|
|
398
391
|
"stroke-width": 2
|
|
399
|
-
})], 8,
|
|
400
|
-
B.value === n.id ? (t(), s("div",
|
|
392
|
+
})], 8, lt)) : u("", !0)])]),
|
|
393
|
+
B.value === n.id ? (t(), s("div", ut, [i(f("textarea", {
|
|
401
394
|
"onUpdate:modelValue": o[8] ||= (e) => V.value = e,
|
|
402
395
|
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
396
|
rows: "2",
|
|
404
|
-
onKeydown: (e) =>
|
|
405
|
-
}, null, 40,
|
|
397
|
+
onKeydown: (e) => Ut(e, n.id)
|
|
398
|
+
}, null, 40, dt), [[h, V.value]]), f("div", ft, [f("button", {
|
|
406
399
|
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
400
|
disabled: !V.value.trim() || M.value.isSubmitting.value,
|
|
408
|
-
onClick: (e) =>
|
|
409
|
-
}, p(c(
|
|
401
|
+
onClick: (e) => $(n.id)
|
|
402
|
+
}, p(c(O).comments.save), 9, pt), f("button", {
|
|
410
403
|
class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
411
404
|
onClick: o[9] ||= (e) => Y()
|
|
412
|
-
}, p(c(
|
|
413
|
-
U.value === n.id ? (t(), s("div",
|
|
414
|
-
f("span",
|
|
405
|
+
}, p(c(O).comments.cancel), 1)])])) : (t(), s("p", mt, p(n.body), 1)),
|
|
406
|
+
U.value === n.id ? (t(), s("div", ht, [
|
|
407
|
+
f("span", gt, p(c(O).comments.deleteConfirm), 1),
|
|
415
408
|
f("button", {
|
|
416
409
|
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)]",
|
|
417
410
|
"data-testid": "comment-delete-confirm",
|
|
418
|
-
onClick: (e) =>
|
|
419
|
-
}, p(c(
|
|
411
|
+
onClick: (e) => It(n.id)
|
|
412
|
+
}, p(c(O).comments.delete), 9, _t),
|
|
420
413
|
f("button", {
|
|
421
414
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
422
415
|
onClick: o[10] ||= (e) => Z()
|
|
423
|
-
}, p(c(
|
|
416
|
+
}, p(c(O).comments.cancel), 1)
|
|
424
417
|
])) : u("", !0)
|
|
425
418
|
], 2))), 128))])) : u("", !0)]),
|
|
426
419
|
_: 2
|
|
427
420
|
}, 1024),
|
|
428
421
|
y(m, { name: "tpl-replies" }, {
|
|
429
|
-
default: n(() => [R.value === e.id ? (t(), s("div",
|
|
422
|
+
default: n(() => [R.value === e.id ? (t(), s("div", vt, [f("div", yt, [
|
|
430
423
|
i(f("textarea", {
|
|
431
424
|
"onUpdate:modelValue": o[11] ||= (e) => z.value = e,
|
|
432
425
|
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
|
-
placeholder: c(
|
|
426
|
+
placeholder: c(O).comments.replyPlaceholder,
|
|
434
427
|
rows: "2",
|
|
435
|
-
onKeydown: (t) =>
|
|
436
|
-
}, null, 40,
|
|
428
|
+
onKeydown: (t) => Ht(t, e.id)
|
|
429
|
+
}, null, 40, bt), [[h, z.value]]),
|
|
437
430
|
f("button", {
|
|
438
431
|
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
432
|
disabled: !z.value.trim() || M.value.isSubmitting.value,
|
|
440
|
-
onClick: (t) =>
|
|
441
|
-
}, [y(c(
|
|
433
|
+
onClick: (t) => Ft(e.id)
|
|
434
|
+
}, [y(c(he), {
|
|
442
435
|
size: 14,
|
|
443
436
|
"stroke-width": 2
|
|
444
|
-
})], 8,
|
|
437
|
+
})], 8, xt),
|
|
445
438
|
f("button", {
|
|
446
439
|
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)]",
|
|
447
|
-
onClick: o[12] ||= (e) =>
|
|
448
|
-
}, [y(c(
|
|
440
|
+
onClick: o[12] ||= (e) => Pt()
|
|
441
|
+
}, [y(c(w), {
|
|
449
442
|
size: 14,
|
|
450
443
|
"stroke-width": 2
|
|
451
444
|
})])
|
|
@@ -453,34 +446,34 @@ var he = ["aria-label"], ge = { class: "tpl:flex tpl:items-center tpl:justify-be
|
|
|
453
446
|
_: 2
|
|
454
447
|
}, 1024)
|
|
455
448
|
]))), 128))]))]),
|
|
456
|
-
M.value.canCreate.value ? (t(), s("div",
|
|
449
|
+
M.value.canCreate.value ? (t(), s("div", St, [f("div", Ct, [i(f("textarea", {
|
|
457
450
|
ref_key: "newCommentInput",
|
|
458
451
|
ref: W,
|
|
459
452
|
"onUpdate:modelValue": o[13] ||= (e) => L.value = e,
|
|
460
453
|
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
454
|
"data-testid": "comments-input",
|
|
462
|
-
placeholder: c(
|
|
455
|
+
placeholder: c(O).comments.placeholder,
|
|
463
456
|
disabled: M.value.isSubmitting.value,
|
|
464
457
|
rows: "2",
|
|
465
|
-
onKeydown:
|
|
458
|
+
onKeydown: Vt
|
|
466
459
|
}, null, 40, wt), [[h, L.value]]), f("button", {
|
|
467
460
|
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
461
|
"data-testid": "comments-send",
|
|
469
462
|
disabled: !L.value.trim() || M.value.isSubmitting.value,
|
|
470
|
-
onClick:
|
|
471
|
-
}, [M.value.isSubmitting.value ? (t(), d(c(
|
|
463
|
+
onClick: Q
|
|
464
|
+
}, [M.value.isSubmitting.value ? (t(), d(c(S), {
|
|
472
465
|
key: 0,
|
|
473
466
|
class: "tpl-spinner",
|
|
474
467
|
size: 16,
|
|
475
468
|
"stroke-width": 2
|
|
476
|
-
})) : (t(), d(c(
|
|
469
|
+
})) : (t(), d(c(he), {
|
|
477
470
|
key: 1,
|
|
478
471
|
size: 16,
|
|
479
472
|
"stroke-width": 2
|
|
480
|
-
}))], 8, Tt)])
|
|
481
|
-
], 8,
|
|
473
|
+
}))], 8, Tt)])])) : u("", !0)
|
|
474
|
+
], 8, ge)) : u("", !0);
|
|
482
475
|
}
|
|
483
|
-
}), [["__scopeId", "data-v-
|
|
484
|
-
export {
|
|
476
|
+
}), [["__scopeId", "data-v-aa4cfc4a"]]);
|
|
477
|
+
export { E as default };
|
|
485
478
|
|
|
486
|
-
//# sourceMappingURL=CommentsSidebar-
|
|
479
|
+
//# sourceMappingURL=CommentsSidebar-CCVp8M2T.js.map
|