@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,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as ne, g as re } from "./keys-
|
|
3
|
-
import { t as ie } from "./useI18n-
|
|
4
|
-
import {
|
|
1
|
+
import { A as e, C as t, G as n, I as r, P as i, V as a, W as o, _ as s, b as ee, dt as te, et as c, ft as l, g as u, h as d, m as f, n as p, o as m, p as h, st as g, u as _, ut as v, x as y } from "./draggable-Du8AUMFT.js";
|
|
2
|
+
import { $ as ne, g as re } from "./keys-CUj6UA38.js";
|
|
3
|
+
import { t as ie } from "./useI18n-D8pY4LTq.js";
|
|
4
|
+
import { Bt as ae, G as b, I as oe, It as se, Pt as ce, at as x, f as S, j as C, nt as w, t as T, zt as le } from "./icons-okSPsLOa.js";
|
|
5
5
|
import { t as E } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
6
6
|
import { t as ue } from "./formatRelativeTime-BTD8Ktt-.js";
|
|
7
7
|
// src/components/CommentsSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -65,19 +65,19 @@ var de = ["aria-label"], fe = { class: "tpl:flex tpl:items-center tpl:justify-be
|
|
|
65
65
|
}, vt = {
|
|
66
66
|
key: 1,
|
|
67
67
|
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)]"
|
|
68
|
-
}, yt = ["placeholder", "disabled"], bt = ["disabled"], D = /*#__PURE__*/ E(/* @__PURE__ */
|
|
68
|
+
}, yt = ["placeholder", "disabled"], bt = ["disabled"], D = /*#__PURE__*/ E(/* @__PURE__ */ t({
|
|
69
69
|
__name: "CommentsSidebar",
|
|
70
70
|
props: {
|
|
71
71
|
visible: { type: Boolean },
|
|
72
72
|
feature: {}
|
|
73
73
|
},
|
|
74
74
|
emits: ["close"],
|
|
75
|
-
setup(
|
|
76
|
-
let O =
|
|
77
|
-
|
|
75
|
+
setup(t, { expose: E, emit: D }) {
|
|
76
|
+
let O = t, xt = D, { t: k, format: A } = ie(), j = ne(re, "CommentsSidebar"), M = h(() => O.feature.headless), N = c("unresolved"), P = c(""), F = c(null), I = c(""), L = c(null), R = c(""), z = c(/* @__PURE__ */ new Set()), B = c(null), V = c(null), H = h(() => O.feature.filterBlockId.value);
|
|
77
|
+
a(H, (e) => {
|
|
78
78
|
e && (N.value = "block");
|
|
79
79
|
}, { immediate: !0 });
|
|
80
|
-
let St =
|
|
80
|
+
let St = h(() => M.value.isLoading.value && M.value.comments.value.length === 0), Ct = h(() => {
|
|
81
81
|
let e = /* @__PURE__ */ new Set();
|
|
82
82
|
for (let t of j.content.value.blocks) if (e.add(t.id), t.type === "section") for (let n of t.children) for (let t of n) e.add(t.id);
|
|
83
83
|
return e;
|
|
@@ -85,11 +85,11 @@ var de = ["aria-label"], fe = { class: "tpl:flex tpl:items-center tpl:justify-be
|
|
|
85
85
|
function wt(e) {
|
|
86
86
|
return e ? !Ct.value.has(e) : !1;
|
|
87
87
|
}
|
|
88
|
-
let Tt =
|
|
88
|
+
let Tt = h(() => N.value !== "block" || !H.value ? !1 : O.feature.capability.isBlockSaved(H.value) === !1), U = h(() => {
|
|
89
89
|
let e = M.value.comments.value;
|
|
90
90
|
return N.value === "unresolved" ? e = e.filter((e) => !e.resolvedAt) : N.value === "block" && H.value && (e = e.filter((e) => e.blockId === H.value)), e;
|
|
91
91
|
});
|
|
92
|
-
|
|
92
|
+
a(() => j.state.selectedBlockId, (e) => {
|
|
93
93
|
N.value === "block" && e && (O.feature.filterBlockId.value = e);
|
|
94
94
|
});
|
|
95
95
|
function W(e, t) {
|
|
@@ -178,14 +178,14 @@ var de = ["aria-label"], fe = { class: "tpl:flex tpl:items-center tpl:justify-be
|
|
|
178
178
|
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Z(t)), e.key === "Escape" && K();
|
|
179
179
|
}
|
|
180
180
|
function It() {
|
|
181
|
-
|
|
181
|
+
e(() => {
|
|
182
182
|
V.value?.focus();
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
185
|
return E({
|
|
186
186
|
filterByBlock: Et,
|
|
187
187
|
focusNewComment: It
|
|
188
|
-
}), (e,
|
|
188
|
+
}), (e, a) => (i(), d(p, {
|
|
189
189
|
"enter-active-class": "tpl-comments-slide-enter-active",
|
|
190
190
|
"enter-from-class": "tpl:translate-x-full",
|
|
191
191
|
"enter-to-class": "tpl:translate-x-0",
|
|
@@ -193,72 +193,73 @@ var de = ["aria-label"], fe = { class: "tpl:flex tpl:items-center tpl:justify-be
|
|
|
193
193
|
"leave-from-class": "tpl:translate-x-0",
|
|
194
194
|
"leave-to-class": "tpl:translate-x-full"
|
|
195
195
|
}, {
|
|
196
|
-
default:
|
|
196
|
+
default: o(() => [t.visible ? (i(), s("div", {
|
|
197
197
|
key: 0,
|
|
198
198
|
role: "complementary",
|
|
199
199
|
"aria-label": g(k).comments.title,
|
|
200
200
|
"data-testid": "comments-sidebar",
|
|
201
201
|
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
202
|
}, [
|
|
203
|
-
|
|
203
|
+
f("div", fe, [f("div", pe, [
|
|
204
204
|
y(g(w), {
|
|
205
205
|
size: 13,
|
|
206
206
|
"stroke-width": 2
|
|
207
207
|
}),
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
]),
|
|
208
|
+
f("span", null, l(g(k).comments.title), 1),
|
|
209
|
+
t.feature.unresolvedCount.value > 0 ? (i(), s("span", me, l(t.feature.unresolvedCount.value), 1)) : u("", !0)
|
|
210
|
+
]), f("button", {
|
|
211
211
|
type: "button",
|
|
212
212
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
|
|
213
213
|
"aria-label": g(k).comments.close,
|
|
214
|
-
onClick:
|
|
214
|
+
onClick: a[0] ||= (e) => xt("close")
|
|
215
215
|
}, [y(g(T), {
|
|
216
216
|
size: 14,
|
|
217
217
|
"stroke-width": 2
|
|
218
218
|
})], 8, he)]),
|
|
219
|
-
|
|
220
|
-
|
|
219
|
+
f("div", ge, [
|
|
220
|
+
f("button", {
|
|
221
221
|
type: "button",
|
|
222
|
-
class:
|
|
222
|
+
class: v(["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
223
|
"aria-pressed": N.value === "unresolved",
|
|
224
224
|
"data-testid": "comments-filter-unresolved",
|
|
225
|
-
onClick:
|
|
225
|
+
onClick: a[1] ||= (e) => W("unresolved")
|
|
226
226
|
}, l(g(k).comments.filterUnresolved), 11, _e),
|
|
227
|
-
|
|
227
|
+
f("button", {
|
|
228
228
|
type: "button",
|
|
229
|
-
class:
|
|
229
|
+
class: v(["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
230
|
"aria-pressed": N.value === "all",
|
|
231
231
|
"data-testid": "comments-filter-all",
|
|
232
|
-
onClick:
|
|
232
|
+
onClick: a[2] ||= (e) => W("all")
|
|
233
233
|
}, l(g(k).comments.filterAll), 11, ve),
|
|
234
|
-
g(j).state.selectedBlockId ? (i(),
|
|
234
|
+
g(j).state.selectedBlockId ? (i(), s("button", {
|
|
235
235
|
key: 0,
|
|
236
236
|
type: "button",
|
|
237
|
-
class:
|
|
237
|
+
class: v(["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
238
|
"aria-pressed": N.value === "block",
|
|
239
|
-
|
|
239
|
+
"data-testid": "comments-filter-block",
|
|
240
|
+
onClick: a[3] ||= (e) => W("block", g(j).state.selectedBlockId ?? void 0)
|
|
240
241
|
}, l(g(k).comments.filterBlock), 11, ye)) : u("", !0)
|
|
241
242
|
]),
|
|
242
|
-
|
|
243
|
+
f("div", be, [St.value ? (i(), s("div", xe, [y(g(x), {
|
|
243
244
|
class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
|
|
244
245
|
size: 24,
|
|
245
246
|
"stroke-width": 2
|
|
246
|
-
})])) : U.value.length === 0 ? (i(),
|
|
247
|
+
})])) : U.value.length === 0 ? (i(), s("div", Se, [y(g(w), {
|
|
247
248
|
size: 32,
|
|
248
249
|
"stroke-width": 1.5,
|
|
249
250
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
250
|
-
}),
|
|
251
|
+
}), f("p", Ce, l(N.value === "all" ? g(k).comments.noCommentsHint : g(k).comments.noComments), 1)])) : (i(), s("div", we, [(i(!0), s(_, null, r(U.value, (e) => (i(), s("div", {
|
|
251
252
|
key: e.id,
|
|
252
253
|
class: "tpl-comment-thread",
|
|
253
254
|
"data-testid": "comment-thread"
|
|
254
255
|
}, [
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
e.updatedAt ? (i(),
|
|
260
|
-
]),
|
|
261
|
-
M.value.canResolve.value ? (i(),
|
|
256
|
+
f("div", Te, [
|
|
257
|
+
f("div", Ee, [f("div", De, [
|
|
258
|
+
f("span", Oe, l(M.value.isOwn(e) ? g(k).comments.ownedByYou : e.author.name), 1),
|
|
259
|
+
f("span", ke, l(Nt(e.createdAt)), 1),
|
|
260
|
+
e.updatedAt ? (i(), s("span", Ae, " (" + l(g(k).comments.edited) + ") ", 1)) : u("", !0)
|
|
261
|
+
]), f("div", je, [
|
|
262
|
+
M.value.canResolve.value ? (i(), s("button", {
|
|
262
263
|
key: 0,
|
|
263
264
|
"data-testid": "comment-resolve",
|
|
264
265
|
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
@@ -270,7 +271,7 @@ var de = ["aria-label"], fe = { class: "tpl:flex tpl:items-center tpl:justify-be
|
|
|
270
271
|
class: "tpl-resolve-icon",
|
|
271
272
|
style: te({ color: e.resolvedAt ? "var(--tpl-primary)" : void 0 })
|
|
272
273
|
}, null, 8, ["style"])], 8, Me)) : u("", !0),
|
|
273
|
-
jt(e) ? (i(),
|
|
274
|
+
jt(e) ? (i(), s("button", {
|
|
274
275
|
key: 1,
|
|
275
276
|
"data-testid": "comment-edit",
|
|
276
277
|
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
@@ -280,7 +281,7 @@ var de = ["aria-label"], fe = { class: "tpl:flex tpl:items-center tpl:justify-be
|
|
|
280
281
|
size: 12,
|
|
281
282
|
"stroke-width": 2
|
|
282
283
|
})], 8, Ne)) : u("", !0),
|
|
283
|
-
Mt(e) ? (i(),
|
|
284
|
+
Mt(e) ? (i(), s("button", {
|
|
284
285
|
key: 2,
|
|
285
286
|
"data-testid": "comment-delete",
|
|
286
287
|
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
@@ -291,44 +292,44 @@ var de = ["aria-label"], fe = { class: "tpl:flex tpl:items-center tpl:justify-be
|
|
|
291
292
|
"stroke-width": 2
|
|
292
293
|
})], 8, Pe)) : u("", !0)
|
|
293
294
|
])]),
|
|
294
|
-
y(
|
|
295
|
-
default:
|
|
295
|
+
y(p, { name: "tpl-resolve" }, {
|
|
296
|
+
default: o(() => [e.resolvedAt ? (i(), s("div", Fe, [y(g(ae), {
|
|
296
297
|
size: 10,
|
|
297
298
|
"stroke-width": 2.5
|
|
298
|
-
}),
|
|
299
|
+
}), f("span", null, l(g(A)(g(k).comments.resolvedBy, { name: e.resolvedBy?.name ?? "" })), 1)])) : u("", !0)]),
|
|
299
300
|
_: 2
|
|
300
301
|
}, 1024),
|
|
301
|
-
e.blockId && wt(e.blockId) ? (i(),
|
|
302
|
+
e.blockId && wt(e.blockId) ? (i(), s("span", Ie, l(g(k).comments.missingBlock), 1)) : e.blockId ? (i(), s("button", {
|
|
302
303
|
key: 1,
|
|
303
304
|
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)]",
|
|
304
305
|
onClick: (t) => g(j).selectBlock(e.blockId ?? "")
|
|
305
306
|
}, l(g(k).comments.jumpToBlock), 9, Le)) : u("", !0),
|
|
306
|
-
L.value === e.id ? (i(),
|
|
307
|
-
"onUpdate:modelValue":
|
|
307
|
+
L.value === e.id ? (i(), s("div", Re, [n(f("textarea", {
|
|
308
|
+
"onUpdate:modelValue": a[4] ||= (e) => R.value = e,
|
|
308
309
|
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)]",
|
|
309
310
|
rows: "3",
|
|
310
311
|
onKeydown: (t) => $(t, e.id)
|
|
311
|
-
}, null, 40, ze), [[
|
|
312
|
+
}, null, 40, ze), [[m, R.value]]), f("div", Be, [f("button", {
|
|
312
313
|
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)]",
|
|
313
314
|
disabled: !R.value.trim() || M.value.isSubmitting.value,
|
|
314
315
|
onClick: (t) => Z(e.id)
|
|
315
|
-
}, l(g(k).comments.save), 9, Ve),
|
|
316
|
+
}, l(g(k).comments.save), 9, Ve), f("button", {
|
|
316
317
|
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)]",
|
|
317
|
-
onClick:
|
|
318
|
-
}, l(g(k).comments.cancel), 1)])])) : (i(),
|
|
319
|
-
B.value === e.id ? (i(),
|
|
320
|
-
|
|
321
|
-
|
|
318
|
+
onClick: a[5] ||= (e) => K()
|
|
319
|
+
}, l(g(k).comments.cancel), 1)])])) : (i(), s("p", He, l(e.body), 1)),
|
|
320
|
+
B.value === e.id ? (i(), s("div", Ue, [
|
|
321
|
+
f("span", We, l(g(k).comments.deleteConfirm), 1),
|
|
322
|
+
f("button", {
|
|
322
323
|
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)]",
|
|
323
324
|
"data-testid": "comment-delete-confirm",
|
|
324
325
|
onClick: (t) => Q(e.id)
|
|
325
326
|
}, l(g(k).comments.delete), 9, Ge),
|
|
326
|
-
|
|
327
|
+
f("button", {
|
|
327
328
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
328
|
-
onClick:
|
|
329
|
+
onClick: a[6] ||= (e) => J()
|
|
329
330
|
}, l(g(k).comments.cancel), 1)
|
|
330
331
|
])) : u("", !0),
|
|
331
|
-
L.value !== e.id && B.value !== e.id ? (i(),
|
|
332
|
+
L.value !== e.id && B.value !== e.id ? (i(), s("div", Ke, [M.value.canCreate.value ? (i(), s("button", {
|
|
332
333
|
key: 0,
|
|
333
334
|
"data-testid": "comment-reply",
|
|
334
335
|
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
@@ -338,84 +339,84 @@ var de = ["aria-label"], fe = { class: "tpl:flex tpl:items-center tpl:justify-be
|
|
|
338
339
|
size: 13,
|
|
339
340
|
"stroke-width": 2,
|
|
340
341
|
class: "tpl:text-[var(--tpl-primary)]"
|
|
341
|
-
})], 8, qe)) : u("", !0), (e.replies?.length ?? 0) > 0 ? (i(),
|
|
342
|
+
})], 8, qe)) : u("", !0), (e.replies?.length ?? 0) > 0 ? (i(), s("button", {
|
|
342
343
|
key: 1,
|
|
343
344
|
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)]",
|
|
344
345
|
onClick: (t) => Dt(e.id)
|
|
345
|
-
}, [z.value.has(e.id) ? (i(), d(g(
|
|
346
|
+
}, [z.value.has(e.id) ? (i(), d(g(se), {
|
|
346
347
|
key: 0,
|
|
347
348
|
size: 11,
|
|
348
349
|
"stroke-width": 2
|
|
349
|
-
})) : (i(), d(g(
|
|
350
|
+
})) : (i(), d(g(le), {
|
|
350
351
|
key: 1,
|
|
351
352
|
size: 11,
|
|
352
353
|
"stroke-width": 2
|
|
353
354
|
})), ee(" " + l((e.replies?.length ?? 0) === 1 ? g(A)(g(k).comments.replyOne, { count: String(e.replies?.length ?? 0) }) : g(A)(g(k).comments.replyMany, { count: String(e.replies?.length ?? 0) })), 1)], 8, Je)) : u("", !0)])) : u("", !0)
|
|
354
355
|
]),
|
|
355
|
-
y(
|
|
356
|
-
default:
|
|
357
|
-
key:
|
|
358
|
-
class:
|
|
356
|
+
y(p, { name: "tpl-replies" }, {
|
|
357
|
+
default: o(() => [z.value.has(e.id) && (e.replies?.length ?? 0) > 0 ? (i(), s("div", Ye, [(i(!0), s(_, null, r(e.replies, (t, r) => (i(), s("div", {
|
|
358
|
+
key: t.id,
|
|
359
|
+
class: v(["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" : ""])
|
|
359
360
|
}, [
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
]),
|
|
361
|
+
f("div", Xe, [f("div", Ze, [
|
|
362
|
+
f("span", Qe, l(M.value.isOwn(t) ? g(k).comments.ownedByYou : t.author.name), 1),
|
|
363
|
+
f("span", $e, l(Nt(t.createdAt)), 1),
|
|
364
|
+
t.updatedAt ? (i(), s("span", et, " (" + l(g(k).comments.edited) + ") ", 1)) : u("", !0)
|
|
365
|
+
]), f("div", tt, [jt(t) ? (i(), s("button", {
|
|
365
366
|
key: 0,
|
|
366
367
|
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
367
368
|
title: g(k).comments.edit,
|
|
368
|
-
onClick: (e) => G(
|
|
369
|
+
onClick: (e) => G(t)
|
|
369
370
|
}, [y(g(b), {
|
|
370
371
|
size: 11,
|
|
371
372
|
"stroke-width": 2
|
|
372
|
-
})], 8, nt)) : u("", !0), Mt(
|
|
373
|
+
})], 8, nt)) : u("", !0), Mt(t) ? (i(), s("button", {
|
|
373
374
|
key: 1,
|
|
374
375
|
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
375
376
|
title: g(k).comments.delete,
|
|
376
|
-
onClick: (e) => q(
|
|
377
|
+
onClick: (e) => q(t.id)
|
|
377
378
|
}, [y(g(S), {
|
|
378
379
|
size: 11,
|
|
379
380
|
"stroke-width": 2
|
|
380
381
|
})], 8, rt)) : u("", !0)])]),
|
|
381
|
-
L.value ===
|
|
382
|
-
"onUpdate:modelValue":
|
|
382
|
+
L.value === t.id ? (i(), s("div", it, [n(f("textarea", {
|
|
383
|
+
"onUpdate:modelValue": a[7] ||= (e) => R.value = e,
|
|
383
384
|
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)]",
|
|
384
385
|
rows: "2",
|
|
385
|
-
onKeydown: (e) => $(e,
|
|
386
|
-
}, null, 40, at), [[
|
|
386
|
+
onKeydown: (e) => $(e, t.id)
|
|
387
|
+
}, null, 40, at), [[m, R.value]]), f("div", ot, [f("button", {
|
|
387
388
|
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)]",
|
|
388
389
|
disabled: !R.value.trim() || M.value.isSubmitting.value,
|
|
389
|
-
onClick: (e) => Z(
|
|
390
|
-
}, l(g(k).comments.save), 9, st),
|
|
390
|
+
onClick: (e) => Z(t.id)
|
|
391
|
+
}, l(g(k).comments.save), 9, st), f("button", {
|
|
391
392
|
class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
392
|
-
onClick:
|
|
393
|
-
}, l(g(k).comments.cancel), 1)])])) : (i(),
|
|
394
|
-
B.value ===
|
|
395
|
-
|
|
396
|
-
|
|
393
|
+
onClick: a[8] ||= (e) => K()
|
|
394
|
+
}, l(g(k).comments.cancel), 1)])])) : (i(), s("p", ct, l(t.body), 1)),
|
|
395
|
+
B.value === t.id ? (i(), s("div", lt, [
|
|
396
|
+
f("span", ut, l(g(k).comments.deleteConfirm), 1),
|
|
397
|
+
f("button", {
|
|
397
398
|
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)]",
|
|
398
399
|
"data-testid": "comment-delete-confirm",
|
|
399
|
-
onClick: (e) => Q(
|
|
400
|
+
onClick: (e) => Q(t.id)
|
|
400
401
|
}, l(g(k).comments.delete), 9, dt),
|
|
401
|
-
|
|
402
|
+
f("button", {
|
|
402
403
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
403
|
-
onClick:
|
|
404
|
+
onClick: a[9] ||= (e) => J()
|
|
404
405
|
}, l(g(k).comments.cancel), 1)
|
|
405
406
|
])) : u("", !0)
|
|
406
407
|
], 2))), 128))])) : u("", !0)]),
|
|
407
408
|
_: 2
|
|
408
409
|
}, 1024),
|
|
409
|
-
y(
|
|
410
|
-
default:
|
|
411
|
-
|
|
412
|
-
"onUpdate:modelValue":
|
|
410
|
+
y(p, { name: "tpl-replies" }, {
|
|
411
|
+
default: o(() => [F.value === e.id ? (i(), s("div", ft, [f("div", pt, [
|
|
412
|
+
n(f("textarea", {
|
|
413
|
+
"onUpdate:modelValue": a[10] ||= (e) => I.value = e,
|
|
413
414
|
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)]",
|
|
414
415
|
placeholder: g(k).comments.replyPlaceholder,
|
|
415
416
|
rows: "2",
|
|
416
417
|
onKeydown: (t) => Ft(t, e.id)
|
|
417
|
-
}, null, 40, mt), [[
|
|
418
|
-
|
|
418
|
+
}, null, 40, mt), [[m, I.value]]),
|
|
419
|
+
f("button", {
|
|
419
420
|
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)]",
|
|
420
421
|
disabled: !I.value.trim() || M.value.isSubmitting.value,
|
|
421
422
|
onClick: (t) => X(e.id)
|
|
@@ -423,9 +424,9 @@ var de = ["aria-label"], fe = { class: "tpl:flex tpl:items-center tpl:justify-be
|
|
|
423
424
|
size: 14,
|
|
424
425
|
"stroke-width": 2
|
|
425
426
|
})], 8, ht),
|
|
426
|
-
|
|
427
|
+
f("button", {
|
|
427
428
|
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)]",
|
|
428
|
-
onClick:
|
|
429
|
+
onClick: a[11] ||= (e) => kt()
|
|
429
430
|
}, [y(g(T), {
|
|
430
431
|
size: 14,
|
|
431
432
|
"stroke-width": 2
|
|
@@ -434,17 +435,17 @@ var de = ["aria-label"], fe = { class: "tpl:flex tpl:items-center tpl:justify-be
|
|
|
434
435
|
_: 2
|
|
435
436
|
}, 1024)
|
|
436
437
|
]))), 128))]))]),
|
|
437
|
-
M.value.canCreate.value ? (i(),
|
|
438
|
+
M.value.canCreate.value ? (i(), s("div", gt, [Tt.value ? (i(), s("div", _t, l(g(k).comments.saveTemplateFirst), 1)) : (i(), s("div", vt, [n(f("textarea", {
|
|
438
439
|
ref_key: "newCommentInput",
|
|
439
440
|
ref: V,
|
|
440
|
-
"onUpdate:modelValue":
|
|
441
|
+
"onUpdate:modelValue": a[12] ||= (e) => P.value = e,
|
|
441
442
|
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)]",
|
|
442
443
|
"data-testid": "comments-input",
|
|
443
444
|
placeholder: g(k).comments.placeholder,
|
|
444
445
|
disabled: M.value.isSubmitting.value,
|
|
445
446
|
rows: "2",
|
|
446
447
|
onKeydown: Pt
|
|
447
|
-
}, null, 40, yt), [[
|
|
448
|
+
}, null, 40, yt), [[m, P.value]]), f("button", {
|
|
448
449
|
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)]",
|
|
449
450
|
"data-testid": "comments-send",
|
|
450
451
|
disabled: !P.value.trim() || M.value.isSubmitting.value,
|
|
@@ -463,7 +464,7 @@ var de = ["aria-label"], fe = { class: "tpl:flex tpl:items-center tpl:justify-be
|
|
|
463
464
|
_: 1
|
|
464
465
|
}));
|
|
465
466
|
}
|
|
466
|
-
}), [["__scopeId", "data-v-
|
|
467
|
+
}), [["__scopeId", "data-v-7efe6a5c"]]);
|
|
467
468
|
export { D as default };
|
|
468
469
|
|
|
469
|
-
//# sourceMappingURL=CommentsSidebar-
|
|
470
|
+
//# sourceMappingURL=CommentsSidebar-CUtgvdBC.js.map
|