@templatical/editor 0.52.0 → 0.52.1
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/{AiAltTextPopover-Cm11CsKH.js → AiAltTextPopover-DawbUywc.js} +13 -13
- package/dist/{AiAltTextReview-DE8t8Rud.js → AiAltTextReview-9ySsXOTU.js} +22 -22
- package/dist/{AiChatPanel-7ftS7d40.js → AiChatPanel-CupPhmsN.js} +137 -137
- package/dist/{AiPanels-CxGp6klr.js → AiPanels-DqT4PgQ0.js} +4 -4
- package/dist/{AiRewriteMenu-DNI-5CUj.js → AiRewriteMenu-28agTycW.js} +62 -62
- package/dist/BlockIssueBadge-BxpDy3u-.js +33 -0
- package/dist/{BlockPreviewCanvas-Df9iz7sK.js → BlockPreviewCanvas-B-4bmJ3t.js} +23 -23
- package/dist/{CloudHeaderExtras-CsgyNNV1.js → CloudHeaderExtras-QI82yF54.js} +3 -3
- package/dist/{CloudPanels-BDV4XQ_l.js → CloudPanels-BKJaLkUN.js} +50 -50
- package/dist/{CollaborationNotices-JQ3vQoqO.js → CollaborationNotices-CTw4JThq.js} +11 -11
- package/dist/{CollaboratorBar-EeqqWcX6.js → CollaboratorBar-CXQqN3VP.js} +15 -15
- package/dist/{CommentsPanel-BuftXc0U.js → CommentsPanel-DwwFuh1h.js} +2 -2
- package/dist/CommentsSidebar-9ZfiC2DO.js +500 -0
- package/dist/{CountdownBlock-BT3ZTH1F.js → CountdownBlock-CU2yTWtF.js} +20 -20
- package/dist/{CountdownToolbar-CrL4WKy9.js → CountdownToolbar-BqoYzf_6.js} +53 -53
- package/dist/IssuesPanel-4ykrf1ax.js +359 -0
- package/dist/{LoadingTrack-DZA5AoP9.js → LoadingTrack-DM4g6j7b.js} +1 -1
- package/dist/{LogicTagInsertButton-CSD9cfJB.js → LogicTagInsertButton-CfscnwCn.js} +234 -234
- package/dist/{MediaEditModal-DQl5w44r.js → MediaEditModal-Dy08GEwE.js} +446 -446
- package/dist/{MediaPanels-BFWYuJot.js → MediaPanels-BgEp7iCp.js} +2 -2
- package/dist/{MergeTagInput-DE7kWwXx.js → MergeTagInput-B9dtUthD.js} +11 -11
- package/dist/{MergeTagModeToggle-DvD0ne7N.js → MergeTagModeToggle-DxujhYJ4.js} +30 -30
- package/dist/{MergeTagTextarea-DVPQkiYY.js → MergeTagTextarea-CPFEjJZd.js} +11 -11
- package/dist/{ParagraphEditor-D-nqs82g.js → ParagraphEditor-CWXfurGh.js} +201 -201
- package/dist/{RestoreVersionDialog-DqUPsLB9.js → RestoreVersionDialog-C4s_JYCx.js} +14 -14
- package/dist/{RichTextEditorContent-Xq9D0Zs3.js → RichTextEditorContent-o6HmE8GR.js} +40 -39
- package/dist/{SaveBlockDialog-DAPv70p4.js → SaveBlockDialog-CWLrly6l.js} +56 -56
- package/dist/SavedBlocksBrowserModal-CE8n4EBS.js +359 -0
- package/dist/{SavedBlocksPanels-ChbL9v9x.js → SavedBlocksPanels-BE1N9rNZ.js} +6 -6
- package/dist/{SavedBlocksPickBar-hRaiLNdu.js → SavedBlocksPickBar-Dwl94xhP.js} +12 -12
- package/dist/{TemplateSettings-D0XcH32O.js → TemplateSettings-CS0f1Ues.js} +74 -74
- package/dist/{TestEmailModal-Cb5t0yB2.js → TestEmailModal-DBD0X5nV.js} +52 -52
- package/dist/{TestEmailPanel-COJQa2A9.js → TestEmailPanel-DaFjP9QK.js} +2 -2
- package/dist/{TitleEditor-BYk_9SpQ.js → TitleEditor-DSqtle77.js} +75 -75
- package/dist/{ToggleSwitch-poGWbduy.js → ToggleSwitch-JykPyD_8.js} +4 -4
- package/dist/{Toolbar-Dku_pZni.js → Toolbar-BZPFfKrf.js} +913 -913
- package/dist/{TplModal-9IndEYk5.js → TplModal-DLMssVlt.js} +15 -15
- package/dist/{VersionHistoryMenu-BG5qayvg.js → VersionHistoryMenu-BkbYUs0Q.js} +35 -35
- package/dist/{VersionHistoryPanels-hPg7Q5-f.js → VersionHistoryPanels-DP7HaYWv.js} +4 -4
- package/dist/{VersionPreviewBanner-CSs7zum_.js → VersionPreviewBanner-DECaBwLq.js} +9 -9
- package/dist/{WrapperBlock-DwjK_IdJ.js → WrapperBlock-BsJv_Fiw.js} +16 -16
- package/dist/{blockTypeIcons-yt7SLzub.js → blockTypeIcons-BHjlPnPf.js} +23 -22
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiAltTextPopover-DjMoJCgU.js → AiAltTextPopover-SEEjkd-I.js} +21 -21
- package/dist/cdn/chunks/{AiAltTextPopover-DjMoJCgU.js.map → AiAltTextPopover-SEEjkd-I.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js → AiAltTextReview-BGLLSKLm.js} +41 -41
- package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js.map → AiAltTextReview-BGLLSKLm.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-DXeZgc7D.js → AiChatPanel-DKDAaBNi.js} +127 -127
- package/dist/cdn/chunks/{AiChatPanel-DXeZgc7D.js.map → AiChatPanel-DKDAaBNi.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js → AiPanels-0wBarZSH.js} +3 -3
- package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js.map → AiPanels-0wBarZSH.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js → AiRewriteMenu-qf-cfEpy.js} +43 -43
- package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js.map → AiRewriteMenu-qf-cfEpy.js.map} +1 -1
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +34 -0
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +1 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js → BlockPreviewCanvas-DGBh6mqe.js} +20 -20
- package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js.map → BlockPreviewCanvas-DGBh6mqe.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js → CloudHeaderExtras-BMNK_F9p.js} +3 -3
- package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js.map → CloudHeaderExtras-BMNK_F9p.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js → CloudPanels-JMWIoVWh.js} +32 -32
- package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js.map → CloudPanels-JMWIoVWh.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-Hf8r08Sw.js → CollaborationNotices-Bsf1rGW9.js} +12 -12
- package/dist/cdn/chunks/{CollaborationNotices-Hf8r08Sw.js.map → CollaborationNotices-Bsf1rGW9.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js → CollaboratorBar-CXByAoUz.js} +14 -14
- package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js.map → CollaboratorBar-CXByAoUz.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js → CommentsPanel-DoJnKLXI.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js.map → CommentsPanel-DoJnKLXI.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-Dj8sDiLN.js → CommentsSidebar-CUtgvdBC.js} +100 -99
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js → CountdownBlock-BqRw147R.js} +18 -18
- package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js.map → CountdownBlock-BqRw147R.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CguFJdqn.js → CountdownToolbar-xobieKoU.js} +26 -26
- package/dist/cdn/chunks/{CountdownToolbar-CguFJdqn.js.map → CountdownToolbar-xobieKoU.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js → IssuesPanel-C7LfxaAY.js} +75 -75
- package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js.map → IssuesPanel-C7LfxaAY.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js → LoadingTrack-CZuLTazv.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js.map → LoadingTrack-CZuLTazv.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js → LogicTagInsertButton-BIi05UQu.js} +250 -250
- package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js.map → LogicTagInsertButton-BIi05UQu.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js → MediaEditModal-Cpcod6_U.js} +148 -148
- package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js.map → MediaEditModal-Cpcod6_U.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js → MediaPanels-BIdcW_1f.js} +3 -3
- package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js.map → MediaPanels-BIdcW_1f.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js → MergeTagInput-BvWg8o5E.js} +32 -32
- package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js.map → MergeTagInput-BvWg8o5E.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js → MergeTagModeToggle-BgKEVUtV.js} +27 -27
- package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js.map → MergeTagModeToggle-BgKEVUtV.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-Zo0mYWbf.js → MergeTagTextarea-tBz8McZf.js} +32 -32
- package/dist/cdn/chunks/{MergeTagTextarea-Zo0mYWbf.js.map → MergeTagTextarea-tBz8McZf.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DsPLVAgm.js → ParagraphEditor-B3Rj_cWF.js} +191 -191
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js → RestoreVersionDialog-CjOdD2xj.js} +19 -19
- package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js.map → RestoreVersionDialog-CjOdD2xj.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js → RichTextEditorContent-DNjR_sNN.js} +29 -29
- package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js.map → RichTextEditorContent-DNjR_sNN.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js → SaveBlockDialog-CUhpawq0.js} +75 -75
- package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js.map → SaveBlockDialog-CUhpawq0.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js +356 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-B9XCjDfm.js.map → SavedBlocksBrowserModal-BPYcRoGa.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js → SavedBlocksPanels-C6--Bc81.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js.map → SavedBlocksPanels-C6--Bc81.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js → SavedBlocksPickBar-DUavxpbU.js} +14 -14
- package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js.map → SavedBlocksPickBar-DUavxpbU.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-jWpmuWDR.js → TemplateSettings-CKtI-dof.js} +69 -69
- package/dist/cdn/chunks/{TemplateSettings-jWpmuWDR.js.map → TemplateSettings-CKtI-dof.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js → TestEmailModal-CDQTgESD.js} +65 -65
- package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js.map → TestEmailModal-CDQTgESD.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js → TestEmailPanel-CcUpEpAn.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js.map → TestEmailPanel-CcUpEpAn.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-R2lQw6WA.js → TitleEditor-Cob7RLyK.js} +70 -70
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +1 -0
- package/dist/cdn/chunks/{ToggleSwitch-BDMugNES.js → ToggleSwitch-J7Vwhvha.js} +5 -5
- package/dist/cdn/chunks/{ToggleSwitch-BDMugNES.js.map → ToggleSwitch-J7Vwhvha.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-CnvfW72e.js → Toolbar-CdpsvNOR.js} +893 -893
- package/dist/cdn/chunks/{Toolbar-CnvfW72e.js.map → Toolbar-CdpsvNOR.js.map} +1 -1
- package/dist/cdn/chunks/TplModal-CFPDgbwQ.js +51 -0
- package/dist/cdn/chunks/{TplModal-BDyeS69p.js.map → TplModal-CFPDgbwQ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js → VersionHistoryMenu-BYlLRvRJ.js} +32 -32
- package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js.map → VersionHistoryMenu-BYlLRvRJ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js → VersionHistoryPanels-C6SOVoiT.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js.map → VersionHistoryPanels-C6SOVoiT.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-CZ--HOoa.js → VersionPreviewBanner-Dvg0ZfAW.js} +10 -10
- package/dist/cdn/chunks/{VersionPreviewBanner-CZ--HOoa.js.map → VersionPreviewBanner-Dvg0ZfAW.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-D3obNGab.js → WrapperBlock-C7Md56IT.js} +13 -13
- package/dist/cdn/chunks/{WrapperBlock-D3obNGab.js.map → WrapperBlock-C7Md56IT.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js +21 -0
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js → createCloudRuntime-Cth2JCEh.js} +36 -36
- package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js.map → createCloudRuntime-Cth2JCEh.js.map} +1 -1
- package/dist/cdn/chunks/{dist-C2epoAwW.js → dist-8ym3y-pH.js} +43 -43
- package/dist/cdn/chunks/{dist-C2epoAwW.js.map → dist-8ym3y-pH.js.map} +1 -1
- package/dist/{dist-BA-jTQgw.js → cdn/chunks/dist-BMzNabtD.js} +106 -107
- package/dist/cdn/chunks/{dist-CONcGNwy.js.map → dist-BMzNabtD.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-B8hTTYFO.js → draggable-Du8AUMFT.js} +639 -636
- package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js → editor-modal-CyCe560f.js} +891 -891
- package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js.map → editor-modal-CyCe560f.js.map} +1 -1
- package/dist/cdn/chunks/en-TIqv4ag3.js +1 -0
- package/dist/cdn/chunks/{extensions-ClDhn88e.js → extensions-CFF2KWy-.js} +55 -55
- package/dist/cdn/chunks/{extensions-ClDhn88e.js.map → extensions-CFF2KWy-.js.map} +1 -1
- package/dist/cdn/chunks/{icons-HCBP93Ch.js → icons-okSPsLOa.js} +99 -97
- package/dist/cdn/chunks/icons-okSPsLOa.js.map +1 -0
- package/dist/cdn/chunks/{keys-BF9gazbd.js → keys-CUj6UA38.js} +2 -2
- package/dist/cdn/chunks/{keys-BF9gazbd.js.map → keys-CUj6UA38.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-DkLBNrft.js → liquid.browser-rubac0VA.js} +782 -746
- package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DpHCSESZ.js → normalizeMergeTagMarkup-C_KlfSW4.js} +2 -2
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DpHCSESZ.js.map → normalizeMergeTagMarkup-C_KlfSW4.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js → preRenderCustomBlocks-BcXIz7oJ.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js.map → preRenderCustomBlocks-BcXIz7oJ.js.map} +1 -1
- package/dist/cdn/chunks/{sanitizeHtml-B2h15u0_.js → sanitizeHtml-CN85EDrO.js} +2 -2
- package/dist/cdn/chunks/{sanitizeHtml-B2h15u0_.js.map → sanitizeHtml-CN85EDrO.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-rJoqO1TJ.js → socialIcons-jsTDmkbb.js} +480 -480
- package/dist/cdn/chunks/{socialIcons-rJoqO1TJ.js.map → socialIcons-jsTDmkbb.js.map} +1 -1
- package/dist/cdn/chunks/{src-CUH_EI7k.js → src-C7bkofBL.js} +6 -6
- package/dist/cdn/chunks/{src-CUH_EI7k.js.map → src-C7bkofBL.js.map} +1 -1
- package/dist/cdn/chunks/{src-BKpAis_q.js → src-DEd87i_U.js} +2 -2
- package/dist/cdn/chunks/{src-BKpAis_q.js.map → src-DEd87i_U.js.map} +1 -1
- package/dist/cdn/chunks/{src-C9DTvn1H.js → src-DwWrYnUj.js} +3 -22
- package/dist/cdn/chunks/src-DwWrYnUj.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-ChSZybTi.js → tiptap-CbiTlECY.js} +45 -45
- package/dist/cdn/chunks/{tiptap-ChSZybTi.js.map → tiptap-CbiTlECY.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js → useCloudI18n-DY8_-ETE.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js.map → useCloudI18n-DY8_-ETE.js.map} +1 -1
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +2582 -0
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-BT3c9CXj.js.map → useEditorRoot-vjZJwKrV.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-11iqzC6m.js → useI18n-D8pY4LTq.js} +3 -3
- package/dist/cdn/chunks/{useI18n-11iqzC6m.js.map → useI18n-D8pY4LTq.js.map} +1 -1
- package/dist/{useLogicTag-DFDYJeMN.js → cdn/chunks/useLogicTag-DBJDtpKA.js} +5 -3
- package/dist/cdn/chunks/{useLogicTag-vy5KGg5D.js.map → useLogicTag-DBJDtpKA.js.map} +1 -1
- package/dist/{useMergeTag-B46vACAG.js → cdn/chunks/useMergeTag-B-aG--s1.js} +7 -5
- package/dist/cdn/chunks/{useMergeTag-BFBBjnwh.js.map → useMergeTag-B-aG--s1.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-AnVIwiVv.js → usePopoverPosition-DSMtmu2W.js} +4 -4
- package/dist/cdn/chunks/{usePopoverPosition-AnVIwiVv.js.map → usePopoverPosition-DSMtmu2W.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js → useScrollToBlock-vjQ0fe-L.js} +3 -3
- package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js.map → useScrollToBlock-vjQ0fe-L.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js → withCurrentFont-hZTvYBHO.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js.map → withCurrentFont-hZTvYBHO.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1422 -1422
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-N3x4z_rH.js → check-BZ8o0eet.js} +1 -1
- package/dist/{chevron-down-gXu9qNwO.js → chevron-down-DfAAfILv.js} +1 -1
- package/dist/{chevron-right-rL0ayGk5.js → chevron-right-Bk4mGdr7.js} +1 -1
- package/dist/{chevron-up-0ugh8HnW.js → chevron-up-MhUf_azW.js} +1 -1
- package/dist/{circle-alert-B9Ls75B5.js → circle-alert-CShJwVFv.js} +1 -1
- package/dist/{clock-BqHBaCLm.js → clock-CTfD6OCt.js} +1 -1
- package/dist/{createCloudRuntime-B5VIdnwz.js → createCloudRuntime-DCgO4A1r.js} +24 -24
- package/dist/{createLucideIcon-BV7Gwz_Z.js → createLucideIcon-CvhTA2KG.js} +6 -6
- package/dist/{cdn/chunks/dist-CONcGNwy.js → dist-ByCWA2Tv.js} +100 -99
- package/dist/{dist-CzrLYq2s.js → dist-CKi_npZM.js} +2 -21
- package/dist/{dist-CEdyyDn7.js → dist-CVy-7PHQ.js} +54 -54
- package/dist/{dist-DDN7yR-w.js → dist-D6cMdrfG.js} +129 -129
- package/dist/{editor-modal-Du9VI9q4.js → editor-modal-zaZHcmlO.js} +812 -812
- package/dist/en-Db76vJbY.js +1 -0
- package/dist/{extensions-FRYhx7qa.js → extensions-fo_c-vqf.js} +32 -32
- package/dist/{eye-BKj9Tfnc.js → eye-7W4t5e0Q.js} +1 -1
- package/dist/{image-DNdvdTla.js → image-BDiRFzSd.js} +1 -1
- package/dist/{info-Bx-kBkbH.js → info-Cxi3-Kh9.js} +1 -1
- package/dist/{keys-DBjrQkYH.js → keys-BgRERHzu.js} +1 -1
- package/dist/{link-D8-rYdIQ.js → link-ju_2Cmir.js} +1 -1
- package/dist/{liquid.browser-D1RxawkY.js → liquid.browser-DUXEekoN.js} +781 -745
- package/dist/{list-BneisA27.js → list-DYZJf0aZ.js} +1 -1
- package/dist/{loader-circle-DBEXphyx.js → loader-circle-BZRD0a4I.js} +1 -1
- package/dist/{message-circle-Bg4xInCM.js → message-circle-DuEw4Zfx.js} +1 -1
- package/dist/{normalizeMergeTagMarkup-IH8COHzd.js → normalizeMergeTagMarkup-CELnOlgK.js} +1 -1
- package/dist/{package-B40Vkfsp.js → package-CePMr2kK.js} +1 -1
- package/dist/{pencil-CYdAHTds.js → pencil-D3aFCL7c.js} +1 -1
- package/dist/{preRenderCustomBlocks-AbZArwkR.js → preRenderCustomBlocks--_xc0XK3.js} +1 -1
- package/dist/{refresh-cw-Bb1FWrU0.js → refresh-cw-xnro7_Sk.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-CLGymEyk.js → runtime-dom.esm-bundler-BURR-bj5.js} +118 -118
- package/dist/{sanitizeHtml-CnOA1efV.js → sanitizeHtml-BzfzpYJY.js} +1 -1
- package/dist/{search-BZEo08gi.js → search-CDrstRBv.js} +1 -1
- package/dist/{send-DHtrnXQs.js → send-DROkPOaX.js} +1 -1
- package/dist/{smartphone-dlN3vpA3.js → smartphone-Bx6u_tjn.js} +1 -1
- package/dist/{socialIcons-B_d52_eS.js → socialIcons-D7MGsg0d.js} +366 -366
- package/dist/{sparkles-NOttoDnJ.js → sparkles-CdaTtvoz.js} +1 -1
- package/dist/{square-B1CJgdt2.js → square-BbCROH_f.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +1096 -1096
- package/dist/{text-align-start-zpoXmb-Z.js → text-align-start-CGacJ9Vw.js} +1 -1
- package/dist/{trash-CGbk4Sgt.js → trash-DxCd7zIy.js} +1 -1
- package/dist/{triangle-alert-CKLMyGVp.js → triangle-alert-7_oaitpf.js} +1 -1
- package/dist/{upload-DQoackAn.js → upload-DuFEOi_0.js} +1 -1
- package/dist/{useCloudI18n-DcLtxOQZ.js → useCloudI18n-DEMmUKuO.js} +2 -2
- package/dist/{useEditorCore-DG9UvWUm.js → useEditorCore-BSo2sSID.js} +1518 -1470
- package/dist/useEditorRoot-BMcoCLBx.js +7 -0
- package/dist/{useI18n-CeTm777E.js → useI18n-BBrHTdu8.js} +2 -2
- package/dist/{cdn/chunks/useLogicTag-vy5KGg5D.js → useLogicTag-ZPC39rfH.js} +3 -5
- package/dist/{cdn/chunks/useMergeTag-BFBBjnwh.js → useMergeTag-BQ4qqWpQ.js} +5 -7
- package/dist/{usePopoverPosition-C42kD7zt.js → usePopoverPosition-DV1PxL66.js} +3 -3
- package/dist/{useScrollToBlock-C-NzvjeO.js → useScrollToBlock-BSyAV4pk.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-CrlI8j5R.js → vue.runtime.esm-bundler-CnEeTfhs.js} +993 -990
- package/dist/{withCurrentFont-v_a4Oso8.js → withCurrentFont-B22FXAF5.js} +1 -1
- package/dist/{x-zcrnmcmU.js → x-BpfG7v9g.js} +1 -1
- package/package.json +10 -10
- package/dist/BlockIssueBadge-6Ri2FfX-.js +0 -33
- package/dist/CommentsSidebar-Co3x4uH0.js +0 -499
- package/dist/IssuesPanel-BHFQ3wrP.js +0 -359
- package/dist/SavedBlocksBrowserModal-SRtN5h9q.js +0 -359
- package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js +0 -34
- package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-Dj8sDiLN.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-DsPLVAgm.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-B9XCjDfm.js +0 -356
- package/dist/cdn/chunks/TitleEditor-R2lQw6WA.js.map +0 -1
- package/dist/cdn/chunks/TplModal-BDyeS69p.js +0 -51
- package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js +0 -21
- package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js.map +0 -1
- package/dist/cdn/chunks/draggable-B8hTTYFO.js.map +0 -1
- package/dist/cdn/chunks/en-CKAXAo3Z.js +0 -1
- package/dist/cdn/chunks/icons-HCBP93Ch.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-DkLBNrft.js.map +0 -1
- package/dist/cdn/chunks/src-C9DTvn1H.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CjaEV_01.js +0 -2534
- package/dist/cdn/chunks/useEditorCore-CjaEV_01.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-BT3c9CXj.js +0 -9
- package/dist/en-CyEE7FPY.js +0 -1
- package/dist/useEditorRoot-BKr6nNkC.js +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Mt as e, N as t,
|
|
2
|
-
import { t as f } from "./useI18n-
|
|
3
|
-
import { t as p } from "./createLucideIcon-
|
|
1
|
+
import { Mt as e, N as t, Nt as n, c as r, d as i, f as a, j as o, l as s, r as c, st as l, u, y as d } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
2
|
+
import { t as f } from "./useI18n-BBrHTdu8.js";
|
|
3
|
+
import { t as p } from "./createLucideIcon-CvhTA2KG.js";
|
|
4
4
|
import { t as m } from "./readableTextColor-BfZUGnVj.js";
|
|
5
5
|
var h = p({
|
|
6
6
|
name: "wifi-off",
|
|
@@ -66,7 +66,7 @@ var h = p({
|
|
|
66
66
|
connection: {}
|
|
67
67
|
},
|
|
68
68
|
setup(d) {
|
|
69
|
-
let p = d, { t: D } = f(), O =
|
|
69
|
+
let p = d, { t: D } = f(), O = r(() => p.people.slice(0, E)), k = r(() => p.people.slice(E)), A = r(() => k.value.map(N).join("\n")), j = r(() => p.connection === "connected"), M = r(() => p.connection === "connected" ? D.collaboration.connected : p.connection === "reconnecting" ? D.collaboration.reconnecting : D.collaboration.offline);
|
|
70
70
|
function N(e) {
|
|
71
71
|
return e.type === "guest" || e.name.trim() === "" ? D.collaboration.guest : e.name;
|
|
72
72
|
}
|
|
@@ -74,49 +74,49 @@ var h = p({
|
|
|
74
74
|
let t = N(e).trim().split(/\s+/);
|
|
75
75
|
return ((t[0]?.charAt(0) ?? "") + (t.length > 1 ? t[t.length - 1].charAt(0) : "")).toUpperCase();
|
|
76
76
|
}
|
|
77
|
-
return (
|
|
77
|
+
return (r, f) => (o(), a("div", {
|
|
78
78
|
"data-testid": "collaborator-bar",
|
|
79
79
|
role: "group",
|
|
80
|
-
"aria-label":
|
|
80
|
+
"aria-label": l(D).collaboration.people,
|
|
81
81
|
class: "tpl-collaborator-bar tpl:flex tpl:items-center tpl:gap-2"
|
|
82
82
|
}, [s("span", {
|
|
83
83
|
"data-testid": "collaborator-connection",
|
|
84
84
|
"data-state": d.connection ?? "none",
|
|
85
85
|
class: "tpl:flex tpl:items-center tpl:text-xs",
|
|
86
|
-
style:
|
|
86
|
+
style: e({ color: j.value ? "var(--tpl-success)" : "var(--tpl-text-muted)" }),
|
|
87
87
|
title: M.value
|
|
88
|
-
}, [j.value ? (
|
|
88
|
+
}, [j.value ? (o(), u(l(g), {
|
|
89
89
|
key: 0,
|
|
90
90
|
size: 12,
|
|
91
91
|
"stroke-width": 2,
|
|
92
92
|
"aria-hidden": "true"
|
|
93
|
-
})) : (
|
|
93
|
+
})) : (o(), u(l(h), {
|
|
94
94
|
key: 1,
|
|
95
95
|
size: 12,
|
|
96
96
|
"stroke-width": 2,
|
|
97
97
|
"aria-hidden": "true"
|
|
98
|
-
})), s("span", y,
|
|
98
|
+
})), s("span", y, n(M.value), 1)], 12, v), s("div", b, [(o(!0), a(c, null, t(O.value, (t) => (o(), a("span", {
|
|
99
99
|
key: t.key,
|
|
100
100
|
"data-testid": "collaborator-avatar",
|
|
101
101
|
"data-person-type": t.type,
|
|
102
102
|
class: "tpl-collaborator-avatar tpl:relative tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:overflow-hidden tpl:rounded-full tpl:border-2 tpl:border-[var(--tpl-bg)] tpl:text-[10px] tpl:font-bold tpl:transition-transform tpl:hover:z-10 tpl:hover:scale-110",
|
|
103
|
-
style:
|
|
103
|
+
style: e({
|
|
104
104
|
backgroundColor: t.color,
|
|
105
|
-
color:
|
|
105
|
+
color: l(m)(t.color),
|
|
106
106
|
boxShadow: `0 0 0 1px ${t.color}`
|
|
107
107
|
}),
|
|
108
108
|
title: N(t)
|
|
109
|
-
}, [t.avatarUrl ? (
|
|
109
|
+
}, [t.avatarUrl ? (o(), a("img", {
|
|
110
110
|
key: 0,
|
|
111
111
|
src: t.avatarUrl,
|
|
112
112
|
alt: "",
|
|
113
113
|
class: "tpl:size-full tpl:object-cover"
|
|
114
|
-
}, null, 8, S)) : (
|
|
114
|
+
}, null, 8, S)) : (o(), a("span", C, n(P(t)), 1)), s("span", w, n(N(t)), 1)], 12, x))), 128)), k.value.length > 0 ? (o(), a("span", {
|
|
115
115
|
key: 0,
|
|
116
116
|
"data-testid": "collaborator-overflow",
|
|
117
117
|
class: "tpl:relative tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-2 tpl:border-[var(--tpl-bg)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[10px] tpl:font-bold tpl:text-[var(--tpl-text-muted)]",
|
|
118
118
|
title: A.value
|
|
119
|
-
}, " +" +
|
|
119
|
+
}, " +" + n(k.value.length), 9, T)) : i("", !0)])], 8, _));
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
122
|
export { D as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as e, j as t,
|
|
1
|
+
import { d as e, j as t, st as n, u as r, v as i, y as a } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
2
2
|
// src/components/CommentsPanel.vue
|
|
3
3
|
var o = /* @__PURE__ */ a({
|
|
4
4
|
__name: "CommentsPanel",
|
|
5
5
|
props: { feature: {} },
|
|
6
6
|
setup(a) {
|
|
7
|
-
let o = i(() => import("./CommentsSidebar-
|
|
7
|
+
let o = i(() => import("./CommentsSidebar-9ZfiC2DO.js"));
|
|
8
8
|
return (i, s) => a.feature.isOpen.value ? (t(), r(n(o), {
|
|
9
9
|
key: 0,
|
|
10
10
|
visible: a.feature.isOpen.value,
|
|
@@ -0,0 +1,500 @@
|
|
|
1
|
+
import { $ as e, D as t, H as n, Mt as r, N as i, Nt as a, U as o, _ as s, c, d as l, f as u, g as ee, j as d, jt as f, l as p, r as m, st as h, u as g, y as _, z as v } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
2
|
+
import { a as y, t as b } from "./runtime-dom.esm-bundler-BURR-bj5.js";
|
|
3
|
+
import { $ as te, g as ne } from "./keys-BgRERHzu.js";
|
|
4
|
+
import { t as re } from "./useI18n-BBrHTdu8.js";
|
|
5
|
+
import { t as x } from "./createLucideIcon-CvhTA2KG.js";
|
|
6
|
+
import { t as ie } from "./check-BZ8o0eet.js";
|
|
7
|
+
import { t as ae } from "./chevron-down-DfAAfILv.js";
|
|
8
|
+
import { t as oe } from "./chevron-up-MhUf_azW.js";
|
|
9
|
+
import { t as S } from "./loader-circle-BZRD0a4I.js";
|
|
10
|
+
import { t as C } from "./message-circle-DuEw4Zfx.js";
|
|
11
|
+
import { t as w } from "./pencil-D3aFCL7c.js";
|
|
12
|
+
import { t as T } from "./send-DROkPOaX.js";
|
|
13
|
+
import { t as E } from "./trash-DxCd7zIy.js";
|
|
14
|
+
import { t as D } from "./x-BpfG7v9g.js";
|
|
15
|
+
import { t as O } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
16
|
+
import { t as se } from "./formatRelativeTime-BTD8Ktt-.js";
|
|
17
|
+
var ce = x({
|
|
18
|
+
name: "circle-check",
|
|
19
|
+
size: 24,
|
|
20
|
+
node: [["circle", {
|
|
21
|
+
cx: "12",
|
|
22
|
+
cy: "12",
|
|
23
|
+
r: "10",
|
|
24
|
+
key: "1mglay"
|
|
25
|
+
}], ["path", {
|
|
26
|
+
d: "m16 9-5.5 5.5L8 12",
|
|
27
|
+
key: "xofnsj"
|
|
28
|
+
}]],
|
|
29
|
+
aliases: ["check-circle-2"]
|
|
30
|
+
}), le = x({
|
|
31
|
+
name: "reply",
|
|
32
|
+
size: 24,
|
|
33
|
+
node: [["path", {
|
|
34
|
+
d: "M20 18v-2a4 4 0 0 0-4-4H4",
|
|
35
|
+
key: "5vmcpk"
|
|
36
|
+
}], ["path", {
|
|
37
|
+
d: "m9 17-5-5 5-5",
|
|
38
|
+
key: "nvlc11"
|
|
39
|
+
}]]
|
|
40
|
+
}), ue = ["aria-label"], de = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, fe = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]" }, pe = {
|
|
41
|
+
key: 0,
|
|
42
|
+
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)]"
|
|
43
|
+
}, me = ["aria-label"], he = { class: "tpl:flex tpl:gap-1 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2" }, ge = ["aria-pressed"], _e = ["aria-pressed"], ve = ["aria-pressed"], ye = { class: "tpl:flex-1 tpl:overflow-y-auto" }, be = {
|
|
44
|
+
key: 0,
|
|
45
|
+
class: "tpl:flex tpl:h-full tpl:items-center tpl:justify-center"
|
|
46
|
+
}, xe = {
|
|
47
|
+
key: 1,
|
|
48
|
+
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:px-6 tpl:text-center"
|
|
49
|
+
}, Se = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ce = {
|
|
50
|
+
key: 2,
|
|
51
|
+
class: "tpl:flex tpl:flex-col tpl:gap-3 tpl:p-3"
|
|
52
|
+
}, we = { class: "tpl-comment-card tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-3" }, Te = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Ee = { class: "tpl:flex tpl:items-center tpl:gap-1.5" }, De = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Oe = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, ke = {
|
|
53
|
+
key: 0,
|
|
54
|
+
class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
|
|
55
|
+
}, Ae = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, je = ["title", "onClick"], Me = ["title", "onClick"], Ne = ["title", "onClick"], Pe = {
|
|
56
|
+
key: 0,
|
|
57
|
+
class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1 tpl:text-[10px] tpl:text-[var(--tpl-primary)]"
|
|
58
|
+
}, Fe = {
|
|
59
|
+
key: 0,
|
|
60
|
+
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)]"
|
|
61
|
+
}, Ie = ["onClick"], Le = {
|
|
62
|
+
key: 2,
|
|
63
|
+
class: "tpl:mt-2"
|
|
64
|
+
}, Re = ["onKeydown"], ze = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, Be = ["disabled", "onClick"], Ve = {
|
|
65
|
+
key: 3,
|
|
66
|
+
class: "tpl:mt-1.5 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
|
|
67
|
+
}, He = {
|
|
68
|
+
key: 4,
|
|
69
|
+
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)]"
|
|
70
|
+
}, Ue = { class: "tpl:flex-1" }, We = ["onClick"], Ge = {
|
|
71
|
+
key: 5,
|
|
72
|
+
class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2"
|
|
73
|
+
}, Ke = ["title", "onClick"], qe = ["onClick"], Je = {
|
|
74
|
+
key: 0,
|
|
75
|
+
class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
|
|
76
|
+
}, Ye = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Xe = { class: "tpl:flex tpl:items-center tpl:gap-1.5" }, Ze = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Qe = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, $e = {
|
|
77
|
+
key: 0,
|
|
78
|
+
class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
|
|
79
|
+
}, et = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, tt = ["title", "onClick"], nt = ["title", "onClick"], rt = {
|
|
80
|
+
key: 0,
|
|
81
|
+
class: "tpl:mt-1.5"
|
|
82
|
+
}, it = ["onKeydown"], at = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, ot = ["disabled", "onClick"], st = {
|
|
83
|
+
key: 1,
|
|
84
|
+
class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
|
|
85
|
+
}, ct = {
|
|
86
|
+
key: 2,
|
|
87
|
+
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)]"
|
|
88
|
+
}, lt = { class: "tpl:flex-1" }, ut = ["onClick"], dt = {
|
|
89
|
+
key: 0,
|
|
90
|
+
class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
|
|
91
|
+
}, ft = { 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)]" }, pt = ["placeholder", "onKeydown"], mt = ["disabled", "onClick"], ht = {
|
|
92
|
+
key: 0,
|
|
93
|
+
class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]"
|
|
94
|
+
}, gt = {
|
|
95
|
+
key: 0,
|
|
96
|
+
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)]"
|
|
97
|
+
}, _t = {
|
|
98
|
+
key: 1,
|
|
99
|
+
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)]"
|
|
100
|
+
}, vt = ["placeholder", "disabled"], yt = ["disabled"], k = /*#__PURE__*/ O(/* @__PURE__ */ _({
|
|
101
|
+
__name: "CommentsSidebar",
|
|
102
|
+
props: {
|
|
103
|
+
visible: { type: Boolean },
|
|
104
|
+
feature: {}
|
|
105
|
+
},
|
|
106
|
+
emits: ["close"],
|
|
107
|
+
setup(_, { expose: x, emit: O }) {
|
|
108
|
+
let k = _, bt = O, { t: A, format: j } = re(), M = te(ne, "CommentsSidebar"), N = c(() => k.feature.headless), P = e("unresolved"), F = e(""), I = e(null), L = e(""), R = e(null), z = e(""), B = e(/* @__PURE__ */ new Set()), V = e(null), H = e(null), U = c(() => k.feature.filterBlockId.value);
|
|
109
|
+
v(U, (e) => {
|
|
110
|
+
e && (P.value = "block");
|
|
111
|
+
}, { immediate: !0 });
|
|
112
|
+
let xt = c(() => N.value.isLoading.value && N.value.comments.value.length === 0), St = c(() => {
|
|
113
|
+
let e = /* @__PURE__ */ new Set();
|
|
114
|
+
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);
|
|
115
|
+
return e;
|
|
116
|
+
});
|
|
117
|
+
function Ct(e) {
|
|
118
|
+
return e ? !St.value.has(e) : !1;
|
|
119
|
+
}
|
|
120
|
+
let wt = c(() => P.value !== "block" || !U.value ? !1 : k.feature.capability.isBlockSaved(U.value) === !1), W = c(() => {
|
|
121
|
+
let e = N.value.comments.value;
|
|
122
|
+
return P.value === "unresolved" ? e = e.filter((e) => !e.resolvedAt) : P.value === "block" && U.value && (e = e.filter((e) => e.blockId === U.value)), e;
|
|
123
|
+
});
|
|
124
|
+
v(() => M.state.selectedBlockId, (e) => {
|
|
125
|
+
P.value === "block" && e && (k.feature.filterBlockId.value = e);
|
|
126
|
+
});
|
|
127
|
+
function G(e, t) {
|
|
128
|
+
P.value = e, k.feature.filterBlockId.value = e === "block" ? t ?? null : null;
|
|
129
|
+
}
|
|
130
|
+
function Tt(e) {
|
|
131
|
+
G("block", e);
|
|
132
|
+
}
|
|
133
|
+
function Et(e) {
|
|
134
|
+
B.value.has(e) ? B.value.delete(e) : B.value.add(e);
|
|
135
|
+
}
|
|
136
|
+
function Dt(e) {
|
|
137
|
+
I.value = e, L.value = "", R.value = null, B.value.has(e) || B.value.add(e);
|
|
138
|
+
}
|
|
139
|
+
function Ot() {
|
|
140
|
+
I.value = null, L.value = "";
|
|
141
|
+
}
|
|
142
|
+
function K(e) {
|
|
143
|
+
R.value = e.id, z.value = e.body, I.value = null;
|
|
144
|
+
}
|
|
145
|
+
function q() {
|
|
146
|
+
R.value = null, z.value = "";
|
|
147
|
+
}
|
|
148
|
+
function J(e) {
|
|
149
|
+
V.value = e;
|
|
150
|
+
}
|
|
151
|
+
function Y() {
|
|
152
|
+
V.value = null;
|
|
153
|
+
}
|
|
154
|
+
async function X() {
|
|
155
|
+
let e = F.value.trim();
|
|
156
|
+
if (!e || !N.value.canCreate.value) return;
|
|
157
|
+
let t = P.value === "block" ? U.value : void 0;
|
|
158
|
+
try {
|
|
159
|
+
await N.value.create({
|
|
160
|
+
body: e,
|
|
161
|
+
blockId: t ?? void 0
|
|
162
|
+
}), F.value = "";
|
|
163
|
+
} catch {}
|
|
164
|
+
}
|
|
165
|
+
async function Z(e) {
|
|
166
|
+
let t = L.value.trim();
|
|
167
|
+
if (!t || !N.value.canCreate.value) return;
|
|
168
|
+
let n = N.value.find(e);
|
|
169
|
+
try {
|
|
170
|
+
await N.value.create({
|
|
171
|
+
body: t,
|
|
172
|
+
blockId: n?.blockId ?? void 0,
|
|
173
|
+
parentId: e
|
|
174
|
+
}), I.value = null, L.value = "";
|
|
175
|
+
} catch {}
|
|
176
|
+
}
|
|
177
|
+
async function Q(e) {
|
|
178
|
+
let t = z.value.trim();
|
|
179
|
+
if (t) try {
|
|
180
|
+
await N.value.update(e, { body: t }), R.value = null, z.value = "";
|
|
181
|
+
} catch {}
|
|
182
|
+
}
|
|
183
|
+
async function kt(e) {
|
|
184
|
+
try {
|
|
185
|
+
await N.value.remove(e);
|
|
186
|
+
} catch {}
|
|
187
|
+
V.value = null;
|
|
188
|
+
}
|
|
189
|
+
async function At(e) {
|
|
190
|
+
try {
|
|
191
|
+
await N.value.setResolved(e.id, !e.resolvedAt);
|
|
192
|
+
} catch {}
|
|
193
|
+
}
|
|
194
|
+
function jt(e) {
|
|
195
|
+
return N.value.canUpdate.value && N.value.isOwn(e);
|
|
196
|
+
}
|
|
197
|
+
function Mt(e) {
|
|
198
|
+
return N.value.canDelete.value && N.value.isOwn(e);
|
|
199
|
+
}
|
|
200
|
+
function Nt(e) {
|
|
201
|
+
return se(e, A.time) ?? e;
|
|
202
|
+
}
|
|
203
|
+
function Pt(e) {
|
|
204
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), X());
|
|
205
|
+
}
|
|
206
|
+
function Ft(e, t) {
|
|
207
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Z(t));
|
|
208
|
+
}
|
|
209
|
+
function $(e, t) {
|
|
210
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q(t)), e.key === "Escape" && q();
|
|
211
|
+
}
|
|
212
|
+
function It() {
|
|
213
|
+
t(() => {
|
|
214
|
+
H.value?.focus();
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
return x({
|
|
218
|
+
filterByBlock: Tt,
|
|
219
|
+
focusNewComment: It
|
|
220
|
+
}), (e, t) => (d(), g(b, {
|
|
221
|
+
"enter-active-class": "tpl-comments-slide-enter-active",
|
|
222
|
+
"enter-from-class": "tpl:translate-x-full",
|
|
223
|
+
"enter-to-class": "tpl:translate-x-0",
|
|
224
|
+
"leave-active-class": "tpl-comments-slide-leave-active",
|
|
225
|
+
"leave-from-class": "tpl:translate-x-0",
|
|
226
|
+
"leave-to-class": "tpl:translate-x-full"
|
|
227
|
+
}, {
|
|
228
|
+
default: n(() => [_.visible ? (d(), u("div", {
|
|
229
|
+
key: 0,
|
|
230
|
+
role: "complementary",
|
|
231
|
+
"aria-label": h(A).comments.title,
|
|
232
|
+
"data-testid": "comments-sidebar",
|
|
233
|
+
class: "tpl-comments-sidebar tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
|
|
234
|
+
}, [
|
|
235
|
+
p("div", de, [p("div", fe, [
|
|
236
|
+
s(h(C), {
|
|
237
|
+
size: 13,
|
|
238
|
+
"stroke-width": 2
|
|
239
|
+
}),
|
|
240
|
+
p("span", null, a(h(A).comments.title), 1),
|
|
241
|
+
_.feature.unresolvedCount.value > 0 ? (d(), u("span", pe, a(_.feature.unresolvedCount.value), 1)) : l("", !0)
|
|
242
|
+
]), p("button", {
|
|
243
|
+
type: "button",
|
|
244
|
+
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
|
|
245
|
+
"aria-label": h(A).comments.close,
|
|
246
|
+
onClick: t[0] ||= (e) => bt("close")
|
|
247
|
+
}, [s(h(D), {
|
|
248
|
+
size: 14,
|
|
249
|
+
"stroke-width": 2
|
|
250
|
+
})], 8, me)]),
|
|
251
|
+
p("div", he, [
|
|
252
|
+
p("button", {
|
|
253
|
+
type: "button",
|
|
254
|
+
class: f(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", P.value === "unresolved" ? "tpl-comment-filter--active" : ""]),
|
|
255
|
+
"aria-pressed": P.value === "unresolved",
|
|
256
|
+
"data-testid": "comments-filter-unresolved",
|
|
257
|
+
onClick: t[1] ||= (e) => G("unresolved")
|
|
258
|
+
}, a(h(A).comments.filterUnresolved), 11, ge),
|
|
259
|
+
p("button", {
|
|
260
|
+
type: "button",
|
|
261
|
+
class: f(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", P.value === "all" ? "tpl-comment-filter--active" : ""]),
|
|
262
|
+
"aria-pressed": P.value === "all",
|
|
263
|
+
"data-testid": "comments-filter-all",
|
|
264
|
+
onClick: t[2] ||= (e) => G("all")
|
|
265
|
+
}, a(h(A).comments.filterAll), 11, _e),
|
|
266
|
+
h(M).state.selectedBlockId ? (d(), u("button", {
|
|
267
|
+
key: 0,
|
|
268
|
+
type: "button",
|
|
269
|
+
class: f(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", P.value === "block" ? "tpl-comment-filter--active" : ""]),
|
|
270
|
+
"aria-pressed": P.value === "block",
|
|
271
|
+
"data-testid": "comments-filter-block",
|
|
272
|
+
onClick: t[3] ||= (e) => G("block", h(M).state.selectedBlockId ?? void 0)
|
|
273
|
+
}, a(h(A).comments.filterBlock), 11, ve)) : l("", !0)
|
|
274
|
+
]),
|
|
275
|
+
p("div", ye, [xt.value ? (d(), u("div", be, [s(h(S), {
|
|
276
|
+
class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
|
|
277
|
+
size: 24,
|
|
278
|
+
"stroke-width": 2
|
|
279
|
+
})])) : W.value.length === 0 ? (d(), u("div", xe, [s(h(C), {
|
|
280
|
+
size: 32,
|
|
281
|
+
"stroke-width": 1.5,
|
|
282
|
+
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
283
|
+
}), p("p", Se, a(P.value === "all" ? h(A).comments.noCommentsHint : h(A).comments.noComments), 1)])) : (d(), u("div", Ce, [(d(!0), u(m, null, i(W.value, (e) => (d(), u("div", {
|
|
284
|
+
key: e.id,
|
|
285
|
+
class: "tpl-comment-thread",
|
|
286
|
+
"data-testid": "comment-thread"
|
|
287
|
+
}, [
|
|
288
|
+
p("div", we, [
|
|
289
|
+
p("div", Te, [p("div", Ee, [
|
|
290
|
+
p("span", De, a(N.value.isOwn(e) ? h(A).comments.ownedByYou : e.author.name), 1),
|
|
291
|
+
p("span", Oe, a(Nt(e.createdAt)), 1),
|
|
292
|
+
e.updatedAt ? (d(), u("span", ke, " (" + a(h(A).comments.edited) + ") ", 1)) : l("", !0)
|
|
293
|
+
]), p("div", Ae, [
|
|
294
|
+
N.value.canResolve.value ? (d(), u("button", {
|
|
295
|
+
key: 0,
|
|
296
|
+
"data-testid": "comment-resolve",
|
|
297
|
+
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
298
|
+
title: e.resolvedAt ? h(A).comments.unresolve : h(A).comments.resolve,
|
|
299
|
+
onClick: (t) => At(e)
|
|
300
|
+
}, [s(h(ce), {
|
|
301
|
+
size: 13,
|
|
302
|
+
"stroke-width": 2,
|
|
303
|
+
class: "tpl-resolve-icon",
|
|
304
|
+
style: r({ color: e.resolvedAt ? "var(--tpl-primary)" : void 0 })
|
|
305
|
+
}, null, 8, ["style"])], 8, je)) : l("", !0),
|
|
306
|
+
jt(e) ? (d(), u("button", {
|
|
307
|
+
key: 1,
|
|
308
|
+
"data-testid": "comment-edit",
|
|
309
|
+
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
310
|
+
title: h(A).comments.edit,
|
|
311
|
+
onClick: (t) => K(e)
|
|
312
|
+
}, [s(h(w), {
|
|
313
|
+
size: 12,
|
|
314
|
+
"stroke-width": 2
|
|
315
|
+
})], 8, Me)) : l("", !0),
|
|
316
|
+
Mt(e) ? (d(), u("button", {
|
|
317
|
+
key: 2,
|
|
318
|
+
"data-testid": "comment-delete",
|
|
319
|
+
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
320
|
+
title: h(A).comments.delete,
|
|
321
|
+
onClick: (t) => J(e.id)
|
|
322
|
+
}, [s(h(E), {
|
|
323
|
+
size: 12,
|
|
324
|
+
"stroke-width": 2
|
|
325
|
+
})], 8, Ne)) : l("", !0)
|
|
326
|
+
])]),
|
|
327
|
+
s(b, { name: "tpl-resolve" }, {
|
|
328
|
+
default: n(() => [e.resolvedAt ? (d(), u("div", Pe, [s(h(ie), {
|
|
329
|
+
size: 10,
|
|
330
|
+
"stroke-width": 2.5
|
|
331
|
+
}), p("span", null, a(h(j)(h(A).comments.resolvedBy, { name: e.resolvedBy?.name ?? "" })), 1)])) : l("", !0)]),
|
|
332
|
+
_: 2
|
|
333
|
+
}, 1024),
|
|
334
|
+
e.blockId && Ct(e.blockId) ? (d(), u("span", Fe, a(h(A).comments.missingBlock), 1)) : e.blockId ? (d(), u("button", {
|
|
335
|
+
key: 1,
|
|
336
|
+
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)]",
|
|
337
|
+
onClick: (t) => h(M).selectBlock(e.blockId ?? "")
|
|
338
|
+
}, a(h(A).comments.jumpToBlock), 9, Ie)) : l("", !0),
|
|
339
|
+
R.value === e.id ? (d(), u("div", Le, [o(p("textarea", {
|
|
340
|
+
"onUpdate:modelValue": t[4] ||= (e) => z.value = e,
|
|
341
|
+
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)]",
|
|
342
|
+
rows: "3",
|
|
343
|
+
onKeydown: (t) => $(t, e.id)
|
|
344
|
+
}, null, 40, Re), [[y, z.value]]), p("div", ze, [p("button", {
|
|
345
|
+
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)]",
|
|
346
|
+
disabled: !z.value.trim() || N.value.isSubmitting.value,
|
|
347
|
+
onClick: (t) => Q(e.id)
|
|
348
|
+
}, a(h(A).comments.save), 9, Be), p("button", {
|
|
349
|
+
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)]",
|
|
350
|
+
onClick: t[5] ||= (e) => q()
|
|
351
|
+
}, a(h(A).comments.cancel), 1)])])) : (d(), u("p", Ve, a(e.body), 1)),
|
|
352
|
+
V.value === e.id ? (d(), u("div", He, [
|
|
353
|
+
p("span", Ue, a(h(A).comments.deleteConfirm), 1),
|
|
354
|
+
p("button", {
|
|
355
|
+
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)]",
|
|
356
|
+
"data-testid": "comment-delete-confirm",
|
|
357
|
+
onClick: (t) => kt(e.id)
|
|
358
|
+
}, a(h(A).comments.delete), 9, We),
|
|
359
|
+
p("button", {
|
|
360
|
+
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
361
|
+
onClick: t[6] ||= (e) => Y()
|
|
362
|
+
}, a(h(A).comments.cancel), 1)
|
|
363
|
+
])) : l("", !0),
|
|
364
|
+
R.value !== e.id && V.value !== e.id ? (d(), u("div", Ge, [N.value.canCreate.value ? (d(), u("button", {
|
|
365
|
+
key: 0,
|
|
366
|
+
"data-testid": "comment-reply",
|
|
367
|
+
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
368
|
+
title: h(A).comments.reply,
|
|
369
|
+
onClick: (t) => Dt(e.id)
|
|
370
|
+
}, [s(h(le), {
|
|
371
|
+
size: 13,
|
|
372
|
+
"stroke-width": 2,
|
|
373
|
+
class: "tpl:text-[var(--tpl-primary)]"
|
|
374
|
+
})], 8, Ke)) : l("", !0), (e.replies?.length ?? 0) > 0 ? (d(), u("button", {
|
|
375
|
+
key: 1,
|
|
376
|
+
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)]",
|
|
377
|
+
onClick: (t) => Et(e.id)
|
|
378
|
+
}, [B.value.has(e.id) ? (d(), g(h(oe), {
|
|
379
|
+
key: 0,
|
|
380
|
+
size: 11,
|
|
381
|
+
"stroke-width": 2
|
|
382
|
+
})) : (d(), g(h(ae), {
|
|
383
|
+
key: 1,
|
|
384
|
+
size: 11,
|
|
385
|
+
"stroke-width": 2
|
|
386
|
+
})), ee(" " + a((e.replies?.length ?? 0) === 1 ? h(j)(h(A).comments.replyOne, { count: String(e.replies?.length ?? 0) }) : h(j)(h(A).comments.replyMany, { count: String(e.replies?.length ?? 0) })), 1)], 8, qe)) : l("", !0)])) : l("", !0)
|
|
387
|
+
]),
|
|
388
|
+
s(b, { name: "tpl-replies" }, {
|
|
389
|
+
default: n(() => [B.value.has(e.id) && (e.replies?.length ?? 0) > 0 ? (d(), u("div", Je, [(d(!0), u(m, null, i(e.replies, (n, r) => (d(), u("div", {
|
|
390
|
+
key: n.id,
|
|
391
|
+
class: f(["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" : ""])
|
|
392
|
+
}, [
|
|
393
|
+
p("div", Ye, [p("div", Xe, [
|
|
394
|
+
p("span", Ze, a(N.value.isOwn(n) ? h(A).comments.ownedByYou : n.author.name), 1),
|
|
395
|
+
p("span", Qe, a(Nt(n.createdAt)), 1),
|
|
396
|
+
n.updatedAt ? (d(), u("span", $e, " (" + a(h(A).comments.edited) + ") ", 1)) : l("", !0)
|
|
397
|
+
]), p("div", et, [jt(n) ? (d(), u("button", {
|
|
398
|
+
key: 0,
|
|
399
|
+
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
400
|
+
title: h(A).comments.edit,
|
|
401
|
+
onClick: (e) => K(n)
|
|
402
|
+
}, [s(h(w), {
|
|
403
|
+
size: 11,
|
|
404
|
+
"stroke-width": 2
|
|
405
|
+
})], 8, tt)) : l("", !0), Mt(n) ? (d(), u("button", {
|
|
406
|
+
key: 1,
|
|
407
|
+
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
408
|
+
title: h(A).comments.delete,
|
|
409
|
+
onClick: (e) => J(n.id)
|
|
410
|
+
}, [s(h(E), {
|
|
411
|
+
size: 11,
|
|
412
|
+
"stroke-width": 2
|
|
413
|
+
})], 8, nt)) : l("", !0)])]),
|
|
414
|
+
R.value === n.id ? (d(), u("div", rt, [o(p("textarea", {
|
|
415
|
+
"onUpdate:modelValue": t[7] ||= (e) => z.value = e,
|
|
416
|
+
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)]",
|
|
417
|
+
rows: "2",
|
|
418
|
+
onKeydown: (e) => $(e, n.id)
|
|
419
|
+
}, null, 40, it), [[y, z.value]]), p("div", at, [p("button", {
|
|
420
|
+
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)]",
|
|
421
|
+
disabled: !z.value.trim() || N.value.isSubmitting.value,
|
|
422
|
+
onClick: (e) => Q(n.id)
|
|
423
|
+
}, a(h(A).comments.save), 9, ot), p("button", {
|
|
424
|
+
class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
425
|
+
onClick: t[8] ||= (e) => q()
|
|
426
|
+
}, a(h(A).comments.cancel), 1)])])) : (d(), u("p", st, a(n.body), 1)),
|
|
427
|
+
V.value === n.id ? (d(), u("div", ct, [
|
|
428
|
+
p("span", lt, a(h(A).comments.deleteConfirm), 1),
|
|
429
|
+
p("button", {
|
|
430
|
+
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)]",
|
|
431
|
+
"data-testid": "comment-delete-confirm",
|
|
432
|
+
onClick: (e) => kt(n.id)
|
|
433
|
+
}, a(h(A).comments.delete), 9, ut),
|
|
434
|
+
p("button", {
|
|
435
|
+
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
436
|
+
onClick: t[9] ||= (e) => Y()
|
|
437
|
+
}, a(h(A).comments.cancel), 1)
|
|
438
|
+
])) : l("", !0)
|
|
439
|
+
], 2))), 128))])) : l("", !0)]),
|
|
440
|
+
_: 2
|
|
441
|
+
}, 1024),
|
|
442
|
+
s(b, { name: "tpl-replies" }, {
|
|
443
|
+
default: n(() => [I.value === e.id ? (d(), u("div", dt, [p("div", ft, [
|
|
444
|
+
o(p("textarea", {
|
|
445
|
+
"onUpdate:modelValue": t[10] ||= (e) => L.value = e,
|
|
446
|
+
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)]",
|
|
447
|
+
placeholder: h(A).comments.replyPlaceholder,
|
|
448
|
+
rows: "2",
|
|
449
|
+
onKeydown: (t) => Ft(t, e.id)
|
|
450
|
+
}, null, 40, pt), [[y, L.value]]),
|
|
451
|
+
p("button", {
|
|
452
|
+
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)]",
|
|
453
|
+
disabled: !L.value.trim() || N.value.isSubmitting.value,
|
|
454
|
+
onClick: (t) => Z(e.id)
|
|
455
|
+
}, [s(h(T), {
|
|
456
|
+
size: 14,
|
|
457
|
+
"stroke-width": 2
|
|
458
|
+
})], 8, mt),
|
|
459
|
+
p("button", {
|
|
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:text-[var(--tpl-text-muted)]",
|
|
461
|
+
onClick: t[11] ||= (e) => Ot()
|
|
462
|
+
}, [s(h(D), {
|
|
463
|
+
size: 14,
|
|
464
|
+
"stroke-width": 2
|
|
465
|
+
})])
|
|
466
|
+
])])) : l("", !0)]),
|
|
467
|
+
_: 2
|
|
468
|
+
}, 1024)
|
|
469
|
+
]))), 128))]))]),
|
|
470
|
+
N.value.canCreate.value ? (d(), u("div", ht, [wt.value ? (d(), u("div", gt, a(h(A).comments.saveTemplateFirst), 1)) : (d(), u("div", _t, [o(p("textarea", {
|
|
471
|
+
ref_key: "newCommentInput",
|
|
472
|
+
ref: H,
|
|
473
|
+
"onUpdate:modelValue": t[12] ||= (e) => F.value = e,
|
|
474
|
+
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)]",
|
|
475
|
+
"data-testid": "comments-input",
|
|
476
|
+
placeholder: h(A).comments.placeholder,
|
|
477
|
+
disabled: N.value.isSubmitting.value,
|
|
478
|
+
rows: "2",
|
|
479
|
+
onKeydown: Pt
|
|
480
|
+
}, null, 40, vt), [[y, F.value]]), p("button", {
|
|
481
|
+
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)]",
|
|
482
|
+
"data-testid": "comments-send",
|
|
483
|
+
disabled: !F.value.trim() || N.value.isSubmitting.value,
|
|
484
|
+
onClick: X
|
|
485
|
+
}, [N.value.isSubmitting.value ? (d(), g(h(S), {
|
|
486
|
+
key: 0,
|
|
487
|
+
class: "tpl-spinner",
|
|
488
|
+
size: 16,
|
|
489
|
+
"stroke-width": 2
|
|
490
|
+
})) : (d(), g(h(T), {
|
|
491
|
+
key: 1,
|
|
492
|
+
size: 16,
|
|
493
|
+
"stroke-width": 2
|
|
494
|
+
}))], 8, yt)]))])) : l("", !0)
|
|
495
|
+
], 8, ue)) : l("", !0)]),
|
|
496
|
+
_: 1
|
|
497
|
+
}));
|
|
498
|
+
}
|
|
499
|
+
}), [["__scopeId", "data-v-7efe6a5c"]]);
|
|
500
|
+
export { k as default };
|