@templatical/editor 0.52.1 → 0.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/AiAltTextPopover-NMJqQKvD.js +106 -0
- package/dist/{AiAltTextReview-9ySsXOTU.js → AiAltTextReview-Ci4zHwRc.js} +68 -66
- package/dist/AiChatPanel-C8SeEJRP.js +561 -0
- package/dist/{AiPanels-DqT4PgQ0.js → AiPanels-CR6zphjP.js} +6 -6
- package/dist/{AiRewriteMenu-28agTycW.js → AiRewriteMenu-CIHUnPud.js} +76 -105
- package/dist/BlockIssueBadge-DaPTq1RE.js +33 -0
- package/dist/BlockPreviewCanvas-B70RSavL.js +140 -0
- package/dist/{CloudHeaderExtras-QI82yF54.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
- package/dist/{CloudPanels-BKJaLkUN.js → CloudPanels-VpSQiLLL.js} +53 -53
- package/dist/CollaborationNotices-Cnx0XHzZ.js +65 -0
- package/dist/{CollaboratorBar-CXQqN3VP.js → CollaboratorBar-BaBoNhwB.js} +24 -24
- package/dist/CommentsPanel-Ck3QmqiC.js +16 -0
- package/dist/CommentsSidebar-CHknhOar.js +526 -0
- package/dist/{CountdownBlock-CU2yTWtF.js → CountdownBlock-BMezkFbJ.js} +15 -15
- package/dist/CountdownToolbar-CM4XNEuO.js +258 -0
- package/dist/IssuesPanel-1wGV0wiy.js +371 -0
- package/dist/LanguageMenu-d2GlX67r.js +403 -0
- package/dist/{LoadingTrack-DM4g6j7b.js → LoadingTrack-BG8cg9xi.js} +2 -2
- package/dist/LocaleNotices-WzsYtBRs.js +46 -0
- package/dist/LogicTagInsertButton-DgTJ6Lvx.js +1096 -0
- package/dist/{MediaEditModal-Dy08GEwE.js → MediaEditModal-C3U9Mi31.js} +451 -451
- package/dist/{MediaPanels-BgEp7iCp.js → MediaPanels-CGmk9ufe.js} +4 -4
- package/dist/{MergeTagInput-B9dtUthD.js → MergeTagInput-B_51YcQO.js} +30 -30
- package/dist/{MergeTagModeToggle-DxujhYJ4.js → MergeTagModeToggle-D3Q2z317.js} +49 -49
- package/dist/MergeTagTextarea-DZz1L9DE.js +126 -0
- package/dist/ParagraphEditor-CI68PYDL.js +825 -0
- package/dist/{RestoreVersionDialog-C4s_JYCx.js → RestoreVersionDialog-DcuhpOIz.js} +23 -23
- package/dist/{RichTextEditorContent-o6HmE8GR.js → RichTextEditorContent-Dstovi0m.js} +47 -47
- package/dist/{SaveBlockDialog-CWLrly6l.js → SaveBlockDialog-vuwvoi-d.js} +86 -86
- package/dist/{cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js → SavedBlocksBrowserModal-DUJm0dOv.js} +135 -132
- package/dist/{SavedBlocksPanels-BE1N9rNZ.js → SavedBlocksPanels-BiMXQ5lY.js} +9 -9
- package/dist/{SavedBlocksPickBar-Dwl94xhP.js → SavedBlocksPickBar-CAstZfG7.js} +15 -15
- package/dist/TemplateSettings-Baar78_s.js +294 -0
- package/dist/TestEmailModal-Bl_GHdrN.js +212 -0
- package/dist/{TestEmailPanel-DaFjP9QK.js → TestEmailPanel-CpTBF7B5.js} +4 -4
- package/dist/TitleEditor-DkbEDAZB.js +202 -0
- package/dist/ToggleSwitch-R3wCCYE6.js +43 -0
- package/dist/Toolbar-bOZ_eq7X.js +3711 -0
- package/dist/{TplModal-DLMssVlt.js → TplModal-wk2gLa7_.js} +17 -17
- package/dist/{VersionHistoryMenu-BkbYUs0Q.js → VersionHistoryMenu-BnP0EyLl.js} +39 -39
- package/dist/{VersionHistoryPanels-DP7HaYWv.js → VersionHistoryPanels-Cq2rFKIX.js} +5 -5
- package/dist/VersionPreviewBanner-BPP939cD.js +37 -0
- package/dist/WrapperBlock-cWT_nZgQ.js +44 -0
- package/dist/{blockTypeIcons-BHjlPnPf.js → blockTypeIcons-BUyPZ7Su.js} +7 -7
- package/dist/bundle-stats.json +8 -8
- package/dist/{cdn/chunks/ca-CD-Kt1qz.js → ca-DOuIxWRv.js} +114 -2
- package/dist/cdn/chunks/AiAltTextPopover-Cnc_kUmb.js +107 -0
- package/dist/cdn/chunks/AiAltTextPopover-Cnc_kUmb.js.map +1 -0
- package/dist/cdn/chunks/{AiAltTextReview-BGLLSKLm.js → AiAltTextReview-DPeSY-7r.js} +70 -68
- package/dist/cdn/chunks/AiAltTextReview-DPeSY-7r.js.map +1 -0
- package/dist/cdn/chunks/AiChatPanel-By8Uo1nH.js +487 -0
- package/dist/cdn/chunks/AiChatPanel-By8Uo1nH.js.map +1 -0
- package/dist/cdn/chunks/{AiPanels-0wBarZSH.js → AiPanels-BblCSkQy.js} +11 -11
- package/dist/cdn/chunks/{AiPanels-0wBarZSH.js.map → AiPanels-BblCSkQy.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-qf-cfEpy.js → AiRewriteMenu-C4btyN4W.js} +79 -79
- package/dist/cdn/chunks/AiRewriteMenu-C4btyN4W.js.map +1 -0
- package/dist/cdn/chunks/BlockIssueBadge-D3Plo_wt.js +34 -0
- package/dist/cdn/chunks/BlockIssueBadge-D3Plo_wt.js.map +1 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-CTKmBPsq.js +142 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-DGBh6mqe.js.map → BlockPreviewCanvas-CTKmBPsq.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js → CloudHeaderExtras-BtqdN777.js} +4 -4
- package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js.map → CloudHeaderExtras-BtqdN777.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js → CloudPanels-COU26R83.js} +45 -45
- package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js.map → CloudPanels-COU26R83.js.map} +1 -1
- package/dist/cdn/chunks/CollaborationNotices-DraFUhyo.js +67 -0
- package/dist/cdn/chunks/CollaborationNotices-DraFUhyo.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js → CollaboratorBar-0OEH3hrj.js} +17 -17
- package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js.map → CollaboratorBar-0OEH3hrj.js.map} +1 -1
- package/dist/cdn/chunks/CommentsPanel-tZZswofV.js +18 -0
- package/dist/cdn/chunks/{CommentsPanel-DoJnKLXI.js.map → CommentsPanel-tZZswofV.js.map} +1 -1
- package/dist/cdn/chunks/CommentsSidebar-7Hfl3Hdj.js +496 -0
- package/dist/cdn/chunks/CommentsSidebar-7Hfl3Hdj.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js → CountdownBlock-CjMhMhnv.js} +22 -22
- package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js.map → CountdownBlock-CjMhMhnv.js.map} +1 -1
- package/dist/cdn/chunks/CountdownToolbar-CNgsNL5-.js +260 -0
- package/dist/cdn/chunks/CountdownToolbar-CNgsNL5-.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-C7LfxaAY.js → IssuesPanel-Duic0mIs.js} +133 -121
- package/dist/cdn/chunks/IssuesPanel-Duic0mIs.js.map +1 -0
- package/dist/cdn/chunks/LanguageMenu-B1Aue_lf.js +359 -0
- package/dist/cdn/chunks/LanguageMenu-B1Aue_lf.js.map +1 -0
- package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js → LoadingTrack-DUYcDHOV.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js.map → LoadingTrack-DUYcDHOV.js.map} +1 -1
- package/dist/cdn/chunks/LocaleNotices-8J2DRWeg.js +47 -0
- package/dist/cdn/chunks/LocaleNotices-8J2DRWeg.js.map +1 -0
- package/dist/{LogicTagInsertButton-CfscnwCn.js → cdn/chunks/LogicTagInsertButton-Bhvi0nWz.js} +422 -449
- package/dist/cdn/chunks/LogicTagInsertButton-Bhvi0nWz.js.map +1 -0
- package/dist/cdn/chunks/{MediaEditModal-Cpcod6_U.js → MediaEditModal-Dz972UFx.js} +421 -421
- package/dist/cdn/chunks/MediaEditModal-Dz972UFx.js.map +1 -0
- package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js → MediaPanels-C6Hqtp1H.js} +5 -5
- package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js.map → MediaPanels-C6Hqtp1H.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js → MergeTagInput-CrhZm-AW.js} +28 -28
- package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js.map → MergeTagInput-CrhZm-AW.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BgKEVUtV.js → MergeTagModeToggle-CWVtXLYa.js} +52 -52
- package/dist/cdn/chunks/MergeTagModeToggle-CWVtXLYa.js.map +1 -0
- package/dist/cdn/chunks/MergeTagTextarea-hTIBwX0F.js +128 -0
- package/dist/cdn/chunks/MergeTagTextarea-hTIBwX0F.js.map +1 -0
- package/dist/cdn/chunks/ParagraphEditor-B2UU1Q5I.js +660 -0
- package/dist/cdn/chunks/ParagraphEditor-B2UU1Q5I.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js → RestoreVersionDialog-C1Y5Ewo_.js} +22 -22
- package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js.map → RestoreVersionDialog-C1Y5Ewo_.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js → RichTextEditorContent-up4AqL7D.js} +44 -44
- package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js.map → RichTextEditorContent-up4AqL7D.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js → SaveBlockDialog-B9lwEP_T.js} +77 -77
- package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js.map → SaveBlockDialog-B9lwEP_T.js.map} +1 -1
- package/dist/{SavedBlocksBrowserModal-CE8n4EBS.js → cdn/chunks/SavedBlocksBrowserModal-fAeHUyxb.js} +103 -106
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BPYcRoGa.js.map → SavedBlocksBrowserModal-fAeHUyxb.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js → SavedBlocksPanels-DRDTLDyZ.js} +9 -9
- package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js.map → SavedBlocksPanels-DRDTLDyZ.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js → SavedBlocksPickBar-B6b5z-o3.js} +16 -16
- package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js.map → SavedBlocksPickBar-B6b5z-o3.js.map} +1 -1
- package/dist/cdn/chunks/TemplateSettings-CWUpUKJb.js +266 -0
- package/dist/cdn/chunks/TemplateSettings-CWUpUKJb.js.map +1 -0
- package/dist/cdn/chunks/TestEmailModal-DQxnW5Q5.js +212 -0
- package/dist/cdn/chunks/TestEmailModal-DQxnW5Q5.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js → TestEmailPanel-BcO_-16H.js} +5 -5
- package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js.map → TestEmailPanel-BcO_-16H.js.map} +1 -1
- package/dist/cdn/chunks/TitleEditor-pmycpmTd.js +202 -0
- package/dist/cdn/chunks/TitleEditor-pmycpmTd.js.map +1 -0
- package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js +45 -0
- package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js.map +1 -0
- package/dist/cdn/chunks/Toolbar-BlWVQRcA.js +3626 -0
- package/dist/cdn/chunks/Toolbar-BlWVQRcA.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js → TplModal-ClSSGX7a.js} +20 -20
- package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js.map → TplModal-ClSSGX7a.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js → VersionHistoryMenu-CZury5gU.js} +33 -33
- package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js.map → VersionHistoryMenu-CZury5gU.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js → VersionHistoryPanels-B8GPBKMq.js} +6 -6
- package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js.map → VersionHistoryPanels-B8GPBKMq.js.map} +1 -1
- package/dist/cdn/chunks/VersionPreviewBanner-C4Ji8nu4.js +39 -0
- package/dist/cdn/chunks/VersionPreviewBanner-C4Ji8nu4.js.map +1 -0
- package/dist/cdn/chunks/WrapperBlock-BoUflYwY.js +46 -0
- package/dist/cdn/chunks/WrapperBlock-BoUflYwY.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js → blockTypeIcons-Cc6RJ27V.js} +5 -5
- package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js.map → blockTypeIcons-Cc6RJ27V.js.map} +1 -1
- package/dist/{ca-CD-Kt1qz.js → cdn/chunks/ca-DOuIxWRv.js} +116 -0
- package/dist/cdn/chunks/ca-DOuIxWRv.js.map +1 -0
- package/dist/cdn/chunks/composables-C1KU4ZHw.js +3039 -0
- package/dist/cdn/chunks/composables-C1KU4ZHw.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-Cth2JCEh.js → createCloudRuntime-C2Zs5F1O.js} +75 -73
- package/dist/cdn/chunks/createCloudRuntime-C2Zs5F1O.js.map +1 -0
- package/dist/{de-CeFJ6wbM.js → cdn/chunks/de-DaOUfYBX.js} +116 -0
- package/dist/cdn/chunks/de-DaOUfYBX.js.map +1 -0
- package/dist/cdn/chunks/{dist-8ym3y-pH.js → dist-BzXULHvI.js} +48 -48
- package/dist/cdn/chunks/{dist-8ym3y-pH.js.map → dist-BzXULHvI.js.map} +1 -1
- package/dist/cdn/chunks/{dist-BMzNabtD.js → dist-DqGgijFI.js} +114 -114
- package/dist/cdn/chunks/{dist-BMzNabtD.js.map → dist-DqGgijFI.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-Du8AUMFT.js → draggable-DepKdldn.js} +1491 -1486
- package/dist/cdn/chunks/draggable-DepKdldn.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-CyCe560f.js → editor-modal-erQEOHZN.js} +781 -781
- package/dist/cdn/chunks/{editor-modal-CyCe560f.js.map → editor-modal-erQEOHZN.js.map} +1 -1
- package/dist/cdn/chunks/en-B6tLGRHq.js +1 -0
- package/dist/{en-D14i5nFh.js → cdn/chunks/en-C0pHHMiR.js} +116 -0
- package/dist/cdn/chunks/en-C0pHHMiR.js.map +1 -0
- package/dist/{es-zDacbMhs.js → cdn/chunks/es-CxyEKr6n.js} +116 -0
- package/dist/cdn/chunks/es-CxyEKr6n.js.map +1 -0
- package/dist/cdn/chunks/{extensions-CFF2KWy-.js → extensions-DcMKZpzh.js} +59 -59
- package/dist/cdn/chunks/{extensions-CFF2KWy-.js.map → extensions-DcMKZpzh.js.map} +1 -1
- package/dist/{fr-CSgYtjOd.js → cdn/chunks/fr-CYbamiI6.js} +116 -0
- package/dist/cdn/chunks/fr-CYbamiI6.js.map +1 -0
- package/dist/cdn/chunks/{icons-okSPsLOa.js → icons-Da9GKjPx.js} +188 -147
- package/dist/cdn/chunks/icons-Da9GKjPx.js.map +1 -0
- package/dist/{ja-B7H3ID8O.js → cdn/chunks/ja-DfaIAoGI.js} +116 -0
- package/dist/cdn/chunks/ja-DfaIAoGI.js.map +1 -0
- package/dist/cdn/chunks/keys-CoQtCqNv.js +11 -0
- package/dist/cdn/chunks/keys-CoQtCqNv.js.map +1 -0
- package/dist/cdn/chunks/languageName-DEEOhDWI.js +12 -0
- package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +1 -0
- package/dist/{nl-176ySmc5.js → cdn/chunks/nl-DkrB-VKZ.js} +116 -0
- package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +1 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js +290 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js.map +1 -0
- package/dist/cdn/chunks/noticeTones-D7BPu-Le.js +16 -0
- package/dist/cdn/chunks/noticeTones-D7BPu-Le.js.map +1 -0
- package/dist/cdn/chunks/plural-CyxrJXL1.js +17 -0
- package/dist/cdn/chunks/plural-CyxrJXL1.js.map +1 -0
- package/dist/{preRenderCustomBlocks--_xc0XK3.js → cdn/chunks/preRenderCustomBlocks-f7GEKdvw.js} +5 -3
- package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js.map → preRenderCustomBlocks-f7GEKdvw.js.map} +1 -1
- package/dist/{pt-BR-dDlTwX18.js → cdn/chunks/pt-BR-CY5Ye7eP.js} +116 -0
- package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +1 -0
- package/dist/cdn/chunks/sanitizeHtml-WTfz9lZd.js +61 -0
- package/dist/cdn/chunks/sanitizeHtml-WTfz9lZd.js.map +1 -0
- package/dist/cdn/chunks/socialIcons-DeCYorUT.js +2638 -0
- package/dist/cdn/chunks/socialIcons-DeCYorUT.js.map +1 -0
- package/dist/cdn/chunks/{src-DEd87i_U.js → src-A_cKeTM_.js} +618 -461
- package/dist/cdn/chunks/src-A_cKeTM_.js.map +1 -0
- package/dist/cdn/chunks/src-BQUv2CYU.js +2606 -0
- package/dist/cdn/chunks/src-BQUv2CYU.js.map +1 -0
- package/dist/cdn/chunks/src-BWX_xVxO.js +671 -0
- package/dist/cdn/chunks/src-BWX_xVxO.js.map +1 -0
- package/dist/{styleConstants-B8xVRiwX.js → cdn/chunks/styleConstants-CgiNKdnc.js} +7 -5
- package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +1 -0
- package/dist/cdn/chunks/templateSettingsFields-cjlP-jdw.js.map +1 -1
- package/dist/cdn/chunks/{tiptap-CbiTlECY.js → tiptap-Dipw_zOQ.js} +40 -40
- package/dist/cdn/chunks/{tiptap-CbiTlECY.js.map → tiptap-Dipw_zOQ.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js → useCloudI18n-Cc5NZqiI.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js.map → useCloudI18n-Cc5NZqiI.js.map} +1 -1
- package/dist/cdn/chunks/useEditorRoot-D_LuZ_hE.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-vjZJwKrV.js.map → useEditorRoot-D_LuZ_hE.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-D8pY4LTq.js → useI18n-BnJYydPv.js} +3 -3
- package/dist/cdn/chunks/{useI18n-D8pY4LTq.js.map → useI18n-BnJYydPv.js.map} +1 -1
- package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js +33 -0
- package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js.map +1 -0
- package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js → useLogicTag-DtYe8HIq.js} +5 -5
- package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js.map → useLogicTag-DtYe8HIq.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js → useMergeTag-B8ULmsnp.js} +6 -6
- package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js.map → useMergeTag-B8ULmsnp.js.map} +1 -1
- package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js +78 -0
- package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js.map +1 -0
- package/dist/cdn/chunks/{useScrollToBlock-vjQ0fe-L.js → useScrollToBlock-Ct1AwLD-.js} +5 -5
- package/dist/cdn/chunks/useScrollToBlock-Ct1AwLD-.js.map +1 -0
- package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js → withCurrentFont-MK8ga9q9.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js.map → withCurrentFont-MK8ga9q9.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +2189 -1495
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-BZ8o0eet.js → check-XMnOOIEC.js} +1 -1
- package/dist/{chevron-down-DfAAfILv.js → chevron-down-DmamTEWQ.js} +1 -1
- package/dist/{chevron-right-Bk4mGdr7.js → chevron-right-BEFXOH27.js} +1 -1
- package/dist/{chevron-up-MhUf_azW.js → chevron-up-Dw7woXj8.js} +1 -1
- package/dist/{circle-alert-CShJwVFv.js → circle-alert-BTKC9vkq.js} +1 -1
- package/dist/{clock-CTfD6OCt.js → clock-BVT5u2uG.js} +1 -1
- package/dist/composables-CMIrGXJ1.js +4517 -0
- package/dist/{createCloudRuntime-DCgO4A1r.js → createCloudRuntime-DGV5a5Af.js} +54 -52
- package/dist/{createLucideIcon-CvhTA2KG.js → createLucideIcon-CgDE3xAR.js} +16 -16
- package/dist/{cdn/chunks/de-CeFJ6wbM.js → de-DaOUfYBX.js} +114 -2
- package/dist/{dist-ByCWA2Tv.js → dist-0alKVRc_.js} +101 -101
- package/dist/{dist-Cy8I5scI.js → dist-54VCNoC0.js} +2 -2
- package/dist/dist-6DU0me3E.js +4 -0
- package/dist/{dist-p3wymUDt.js → dist-B8dY8drK.js} +2 -2
- package/dist/{dist-Dd5MU2Ev.js → dist-B9a7iVye.js} +2 -2
- package/dist/{dist-V7W1UhVr.js → dist-BWflWcpW.js} +2 -2
- package/dist/{dist-D6fZec6r.js → dist-C3hu_C3w.js} +2 -2
- package/dist/{dist-CVy-7PHQ.js → dist-CX7skkvG.js} +48 -48
- package/dist/dist-CcOn7WCo.js +4 -0
- package/dist/dist-Cdkm20M6.js +2542 -0
- package/dist/{dist-BS5uKktL.js → dist-ChOb5XHW.js} +2 -2
- package/dist/{dist-BF5zEHop.js → dist-DZ3X-uB8.js} +2 -2
- package/dist/{dist-CWSG7Kj0.js → dist-D_XrUEET.js} +5 -5
- package/dist/{dist-txQLT2sF.js → dist-TAv500j6.js} +2 -2
- package/dist/{dist-D6cMdrfG.js → dist-fqSers8_.js} +55 -55
- package/dist/{editor-modal-zaZHcmlO.js → editor-modal-BeX6otLk.js} +953 -952
- package/dist/{cdn/chunks/en-D14i5nFh.js → en-C0pHHMiR.js} +114 -2
- package/dist/en-Do0SU6tR.js +1 -0
- package/dist/{cdn/chunks/es-zDacbMhs.js → es-CxyEKr6n.js} +114 -2
- package/dist/{extensions-fo_c-vqf.js → extensions-BJ184osp.js} +173 -173
- package/dist/{eye-7W4t5e0Q.js → eye-ByMgHeA_.js} +1 -1
- package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
- package/dist/{image-BDiRFzSd.js → image-Ch8tR35K.js} +1 -1
- package/dist/index.d.ts +182 -14
- package/dist/{info-Cxi3-Kh9.js → info-DzSD-Wpk.js} +1 -1
- package/dist/{cdn/chunks/ja-B7H3ID8O.js → ja-DfaIAoGI.js} +114 -2
- package/dist/keys-BCqskl51.js +9 -0
- package/dist/languageName-DEEOhDWI.js +10 -0
- package/dist/{link-ju_2Cmir.js → link-oDn9AR2w.js} +1 -1
- package/dist/{list-DYZJf0aZ.js → list-C5t07dp8.js} +1 -1
- package/dist/{loader-circle-BZRD0a4I.js → loader-circle-k6xvKgUB.js} +1 -1
- package/dist/{message-circle-DuEw4Zfx.js → message-circle-C23R6OJR.js} +1 -1
- package/dist/{cdn/chunks/nl-176ySmc5.js → nl-DkrB-VKZ.js} +114 -2
- package/dist/normalizeMergeTagMarkup-CUCo7B5X.js +288 -0
- package/dist/noticeTones-D7BPu-Le.js +14 -0
- package/dist/{package-CePMr2kK.js → package-C90eQ7NU.js} +1 -1
- package/dist/{pencil-D3aFCL7c.js → pencil-BK7GrQuA.js} +1 -1
- package/dist/plural-CyxrJXL1.js +15 -0
- package/dist/plus-Cr0Mis63.js +13 -0
- package/dist/{cdn/chunks/preRenderCustomBlocks-BcXIz7oJ.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -6
- package/dist/{cdn/chunks/pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -2
- package/dist/{refresh-cw-xnro7_Sk.js → refresh-cw-_ZLOIEvA.js} +2 -12
- package/dist/rotate-ccw-CB5wsHwv.js +13 -0
- package/dist/{runtime-dom.esm-bundler-BURR-bj5.js → runtime-dom.esm-bundler-DlHp8xgy.js} +154 -154
- package/dist/sanitizeHtml-2rjV0r-6.js +962 -0
- package/dist/{search-CDrstRBv.js → search-BmrQNox8.js} +1 -1
- package/dist/{send-DROkPOaX.js → send-blAsIBBg.js} +1 -1
- package/dist/{smartphone-Bx6u_tjn.js → smartphone-BPpWYrwV.js} +1 -1
- package/dist/socialIcons-TFiOkpoU.js +2705 -0
- package/dist/{sparkles-CdaTtvoz.js → sparkles-OqIxrNp-.js} +1 -1
- package/dist/{square-BbCROH_f.js → square-BP-V7iT-.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{cdn/chunks/styleConstants-B8xVRiwX.js → styleConstants-CgiNKdnc.js} +5 -7
- package/dist/templatical-editor.js +2438 -1752
- package/dist/{text-align-start-CGacJ9Vw.js → text-align-start-4mwX2o-F.js} +13 -13
- package/dist/{trash-DxCd7zIy.js → trash-B99WixTA.js} +1 -1
- package/dist/{triangle-alert-7_oaitpf.js → triangle-alert-CHMiDkHa.js} +1 -1
- package/dist/{upload-DuFEOi_0.js → upload-Cp8o-hrN.js} +1 -1
- package/dist/{useCloudI18n-DEMmUKuO.js → useCloudI18n-Dh2iydo1.js} +4 -4
- package/dist/useEditorRoot-DY3mgcHm.js +7 -0
- package/dist/{useI18n-BBrHTdu8.js → useI18n-CgtvtF4C.js} +4 -4
- package/dist/useLocalizedDisplay-DNNwDRxL.js +31 -0
- package/dist/{useLogicTag-ZPC39rfH.js → useLogicTag-BXXXQQmi.js} +4 -4
- package/dist/{useMergeTag-BQ4qqWpQ.js → useMergeTag-C9Okr87y.js} +5 -5
- package/dist/usePopoverPosition-VDQjyX_A.js +76 -0
- package/dist/{useScrollToBlock-BSyAV4pk.js → useScrollToBlock-B35ObCGK.js} +5 -5
- package/dist/{vue.runtime.esm-bundler-CnEeTfhs.js → vue.runtime.esm-bundler-BJXc_Mri.js} +1373 -1368
- package/dist/withCurrentFont-DJiQqZzL.js +18 -0
- package/dist/{x-BpfG7v9g.js → x-BIBStNMS.js} +1 -1
- package/package.json +21 -21
- package/dist/AiAltTextPopover-DawbUywc.js +0 -105
- package/dist/AiChatPanel-CupPhmsN.js +0 -548
- package/dist/BlockIssueBadge-BxpDy3u-.js +0 -33
- package/dist/BlockPreviewCanvas-B-4bmJ3t.js +0 -140
- package/dist/CollaborationNotices-CTw4JThq.js +0 -75
- package/dist/CommentsPanel-DwwFuh1h.js +0 -16
- package/dist/CommentsSidebar-9ZfiC2DO.js +0 -500
- package/dist/CountdownToolbar-BqoYzf_6.js +0 -197
- package/dist/IssuesPanel-4ykrf1ax.js +0 -359
- package/dist/MergeTagTextarea-CPFEjJZd.js +0 -69
- package/dist/ParagraphEditor-CWXfurGh.js +0 -796
- package/dist/TemplateSettings-CS0f1Ues.js +0 -236
- package/dist/TestEmailModal-DBD0X5nV.js +0 -209
- package/dist/TitleEditor-DSqtle77.js +0 -198
- package/dist/ToggleSwitch-JykPyD_8.js +0 -36
- package/dist/Toolbar-BZPFfKrf.js +0 -3145
- package/dist/VersionPreviewBanner-DECaBwLq.js +0 -37
- package/dist/WrapperBlock-BsJv_Fiw.js +0 -44
- package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js +0 -106
- package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js.map +0 -1
- package/dist/cdn/chunks/AiAltTextReview-BGLLSKLm.js.map +0 -1
- package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js +0 -474
- package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js.map +0 -1
- package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +0 -34
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +0 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-DGBh6mqe.js +0 -142
- package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js +0 -77
- package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-DoJnKLXI.js +0 -18
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js +0 -470
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js +0 -199
- package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-C7LfxaAY.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js +0 -1051
- package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js.map +0 -1
- package/dist/cdn/chunks/MediaEditModal-Cpcod6_U.js.map +0 -1
- package/dist/cdn/chunks/MergeTagModeToggle-BgKEVUtV.js.map +0 -1
- package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js +0 -71
- package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js +0 -631
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js +0 -208
- package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js +0 -209
- package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js +0 -198
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +0 -1
- package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js +0 -38
- package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-CdpsvNOR.js +0 -3061
- package/dist/cdn/chunks/Toolbar-CdpsvNOR.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js +0 -39
- package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js +0 -46
- package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js.map +0 -1
- package/dist/cdn/chunks/ca-CD-Kt1qz.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-Cth2JCEh.js.map +0 -1
- package/dist/cdn/chunks/de-CeFJ6wbM.js.map +0 -1
- package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +0 -1
- package/dist/cdn/chunks/en-D14i5nFh.js.map +0 -1
- package/dist/cdn/chunks/en-TIqv4ag3.js +0 -1
- package/dist/cdn/chunks/es-zDacbMhs.js.map +0 -1
- package/dist/cdn/chunks/fr-CSgYtjOd.js.map +0 -1
- package/dist/cdn/chunks/icons-okSPsLOa.js.map +0 -1
- package/dist/cdn/chunks/ja-B7H3ID8O.js.map +0 -1
- package/dist/cdn/chunks/keys-CUj6UA38.js +0 -11
- package/dist/cdn/chunks/keys-CUj6UA38.js.map +0 -1
- package/dist/cdn/chunks/nl-176ySmc5.js.map +0 -1
- package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js +0 -198
- package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-dDlTwX18.js.map +0 -1
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +0 -72
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-jsTDmkbb.js +0 -2008
- package/dist/cdn/chunks/socialIcons-jsTDmkbb.js.map +0 -1
- package/dist/cdn/chunks/src-C7bkofBL.js +0 -647
- package/dist/cdn/chunks/src-C7bkofBL.js.map +0 -1
- package/dist/cdn/chunks/src-DEd87i_U.js.map +0 -1
- package/dist/cdn/chunks/src-DwWrYnUj.js +0 -1404
- package/dist/cdn/chunks/src-DwWrYnUj.js.map +0 -1
- package/dist/cdn/chunks/styleConstants-B8xVRiwX.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +0 -2582
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +0 -9
- package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js +0 -70
- package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js.map +0 -1
- package/dist/cdn/chunks/useScrollToBlock-vjQ0fe-L.js.map +0 -1
- package/dist/dist-CKi_npZM.js +0 -1344
- package/dist/dist-DyFArF_G.js +0 -4
- package/dist/dist-pA3ooG6N.js +0 -4
- package/dist/en-Db76vJbY.js +0 -1
- package/dist/keys-BgRERHzu.js +0 -9
- package/dist/normalizeMergeTagMarkup-CELnOlgK.js +0 -196
- package/dist/sanitizeHtml-BzfzpYJY.js +0 -942
- package/dist/socialIcons-D7MGsg0d.js +0 -2075
- package/dist/useEditorCore-BSo2sSID.js +0 -4059
- package/dist/useEditorRoot-BMcoCLBx.js +0 -7
- package/dist/usePopoverPosition-DV1PxL66.js +0 -68
- package/dist/withCurrentFont-B22FXAF5.js +0 -18
|
@@ -0,0 +1,496 @@
|
|
|
1
|
+
import { C as e, F as t, G as n, H as r, K as i, L as a, O as o, _ as s, b as ee, ct as c, dt as l, g as u, h as d, j as te, m as f, mt as p, n as m, o as h, p as g, pt as ne, tt as _, u as v, x as y } from "./draggable-DepKdldn.js";
|
|
2
|
+
import { t as b } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
3
|
+
import { Bt as re, Ft as ie, G as x, I as ae, Lt as oe, Vt as se, at as S, f as C, j as w, nt as T, t as E } from "./icons-Da9GKjPx.js";
|
|
4
|
+
import { O as ce, ot as le, v as ue } from "./keys-CoQtCqNv.js";
|
|
5
|
+
import { t as de } from "./useI18n-BnJYydPv.js";
|
|
6
|
+
import { t as D } from "./languageName-DEEOhDWI.js";
|
|
7
|
+
import { u as O } from "./styleConstants-CgiNKdnc.js";
|
|
8
|
+
import { t as fe } from "./formatRelativeTime-BTD8Ktt-.js";
|
|
9
|
+
// src/components/CommentsSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var pe = ["aria-label"], me = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, he = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]" }, ge = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "tpl:ml-1 tpl:inline-flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[10px] tpl:font-semibold tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-on-primary)]"
|
|
13
|
+
}, _e = ["aria-label"], ve = { class: "tpl:flex tpl:flex-wrap tpl:gap-1 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2" }, ye = ["aria-pressed"], be = ["aria-pressed"], xe = ["aria-pressed"], Se = ["aria-pressed"], Ce = { class: "tpl:flex-1 tpl:overflow-y-auto" }, we = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "tpl:flex tpl:h-full tpl:items-center tpl:justify-center"
|
|
16
|
+
}, Te = {
|
|
17
|
+
key: 1,
|
|
18
|
+
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:px-6 tpl:text-center"
|
|
19
|
+
}, Ee = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, De = {
|
|
20
|
+
key: 2,
|
|
21
|
+
class: "tpl:flex tpl:flex-col tpl:gap-3 tpl:p-3"
|
|
22
|
+
}, Oe = { class: "tpl-comment-card tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-3" }, ke = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Ae = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-1.5" }, je = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Me = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, Ne = {
|
|
23
|
+
key: 1,
|
|
24
|
+
class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
|
|
25
|
+
}, Pe = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, Fe = ["title", "onClick"], Ie = ["title", "onClick"], Le = ["title", "onClick"], Re = {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1 tpl:text-[10px] tpl:text-[var(--tpl-primary)]"
|
|
28
|
+
}, ze = {
|
|
29
|
+
key: 0,
|
|
30
|
+
class: "tpl:mt-1 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-warning-light)] tpl:text-[var(--tpl-warning)]"
|
|
31
|
+
}, Be = ["onClick"], Ve = {
|
|
32
|
+
key: 2,
|
|
33
|
+
class: "tpl:mt-2"
|
|
34
|
+
}, He = ["onKeydown"], Ue = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, We = ["disabled", "onClick"], Ge = {
|
|
35
|
+
key: 3,
|
|
36
|
+
class: "tpl:mt-1.5 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
|
|
37
|
+
}, Ke = {
|
|
38
|
+
key: 4,
|
|
39
|
+
class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2 tpl:rounded-md tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
|
|
40
|
+
}, qe = { class: "tpl:flex-1" }, Je = ["onClick"], Ye = {
|
|
41
|
+
key: 5,
|
|
42
|
+
class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2"
|
|
43
|
+
}, Xe = ["title", "onClick"], Ze = ["onClick"], Qe = {
|
|
44
|
+
key: 0,
|
|
45
|
+
class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
|
|
46
|
+
}, $e = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, et = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-1.5" }, tt = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, nt = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, rt = {
|
|
47
|
+
key: 1,
|
|
48
|
+
class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
|
|
49
|
+
}, it = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, at = ["title", "onClick"], ot = ["title", "onClick"], st = {
|
|
50
|
+
key: 0,
|
|
51
|
+
class: "tpl:mt-1.5"
|
|
52
|
+
}, ct = ["onKeydown"], lt = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, ut = ["disabled", "onClick"], dt = {
|
|
53
|
+
key: 1,
|
|
54
|
+
class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
|
|
55
|
+
}, ft = {
|
|
56
|
+
key: 2,
|
|
57
|
+
class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2 tpl:rounded-md tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
|
|
58
|
+
}, pt = { class: "tpl:flex-1" }, mt = ["onClick"], ht = {
|
|
59
|
+
key: 0,
|
|
60
|
+
class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
|
|
61
|
+
}, gt = { 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)]" }, _t = ["placeholder", "onKeydown"], vt = ["disabled", "onClick"], yt = {
|
|
62
|
+
key: 0,
|
|
63
|
+
class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]"
|
|
64
|
+
}, bt = {
|
|
65
|
+
key: 0,
|
|
66
|
+
class: "tpl:flex tpl:min-h-[68px] tpl:items-center tpl:rounded-md tpl:px-3 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-warning-light)] tpl:text-[var(--tpl-warning)]"
|
|
67
|
+
}, xt = {
|
|
68
|
+
key: 1,
|
|
69
|
+
class: "tpl-comments-input-wrapper tpl-focus-ring-host tpl:flex tpl:min-h-[68px] tpl:items-end tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]"
|
|
70
|
+
}, St = ["placeholder", "disabled"], Ct = ["disabled"], k = /*#__PURE__*/ b(/* @__PURE__ */ e({
|
|
71
|
+
__name: "CommentsSidebar",
|
|
72
|
+
props: {
|
|
73
|
+
visible: { type: Boolean },
|
|
74
|
+
feature: {}
|
|
75
|
+
},
|
|
76
|
+
emits: ["close"],
|
|
77
|
+
setup(e, { expose: b, emit: k }) {
|
|
78
|
+
let A = e, wt = k, { t: j, format: M } = de(), N = le(ue, "CommentsSidebar"), P = g(() => A.feature.headless), F = _("unresolved"), I = o(ce, void 0), L = _(!1), Tt = g(() => N.activeLocale?.value ?? N.content.value.settings.locale);
|
|
79
|
+
function R(e) {
|
|
80
|
+
return e.locale ?? N.content.value.settings.locale;
|
|
81
|
+
}
|
|
82
|
+
let z = _(""), B = _(null), V = _(""), H = _(null), U = _(""), W = _(/* @__PURE__ */ new Set()), G = _(null), K = _(null), q = g(() => A.feature.filterBlockId.value);
|
|
83
|
+
r(q, (e) => {
|
|
84
|
+
e && (F.value = "block");
|
|
85
|
+
}, { immediate: !0 });
|
|
86
|
+
let Et = g(() => P.value.isLoading.value && P.value.comments.value.length === 0), Dt = g(() => {
|
|
87
|
+
let e = /* @__PURE__ */ new Set();
|
|
88
|
+
for (let t of N.content.value.blocks) if (e.add(t.id), t.type === "section") for (let n of t.children) for (let t of n) e.add(t.id);
|
|
89
|
+
return e;
|
|
90
|
+
});
|
|
91
|
+
function Ot(e) {
|
|
92
|
+
return e ? !Dt.value.has(e) : !1;
|
|
93
|
+
}
|
|
94
|
+
let kt = g(() => F.value !== "block" || !q.value ? !1 : A.feature.capability.isBlockSaved(q.value) === !1), J = g(() => {
|
|
95
|
+
let e = P.value.comments.value;
|
|
96
|
+
return F.value === "unresolved" ? e = e.filter((e) => !e.resolvedAt) : F.value === "block" && q.value && (e = e.filter((e) => e.blockId === q.value)), L.value && (e = e.filter((e) => [e, ...e.replies ?? []].some((e) => R(e) === Tt.value))), e;
|
|
97
|
+
});
|
|
98
|
+
r(() => N.state.selectedBlockId, (e) => {
|
|
99
|
+
F.value === "block" && e && (A.feature.filterBlockId.value = e);
|
|
100
|
+
});
|
|
101
|
+
function Y(e, t) {
|
|
102
|
+
F.value = e, A.feature.filterBlockId.value = e === "block" ? t ?? null : null;
|
|
103
|
+
}
|
|
104
|
+
function At(e) {
|
|
105
|
+
Y("block", e);
|
|
106
|
+
}
|
|
107
|
+
function jt(e) {
|
|
108
|
+
W.value.has(e) ? W.value.delete(e) : W.value.add(e);
|
|
109
|
+
}
|
|
110
|
+
function Mt(e) {
|
|
111
|
+
B.value = e, V.value = "", H.value = null, W.value.has(e) || W.value.add(e);
|
|
112
|
+
}
|
|
113
|
+
function Nt() {
|
|
114
|
+
B.value = null, V.value = "";
|
|
115
|
+
}
|
|
116
|
+
function X(e) {
|
|
117
|
+
H.value = e.id, U.value = e.body, B.value = null;
|
|
118
|
+
}
|
|
119
|
+
function Z() {
|
|
120
|
+
H.value = null, U.value = "";
|
|
121
|
+
}
|
|
122
|
+
function Pt(e) {
|
|
123
|
+
G.value = e;
|
|
124
|
+
}
|
|
125
|
+
function Ft() {
|
|
126
|
+
G.value = null;
|
|
127
|
+
}
|
|
128
|
+
async function It() {
|
|
129
|
+
let e = z.value.trim();
|
|
130
|
+
if (!e || !P.value.canCreate.value) return;
|
|
131
|
+
let t = F.value === "block" ? q.value : void 0;
|
|
132
|
+
try {
|
|
133
|
+
await P.value.create({
|
|
134
|
+
body: e,
|
|
135
|
+
blockId: t ?? void 0,
|
|
136
|
+
locale: N.activeLocale?.value ?? N.content.value.settings.locale
|
|
137
|
+
}), z.value = "";
|
|
138
|
+
} catch {}
|
|
139
|
+
}
|
|
140
|
+
async function Lt(e) {
|
|
141
|
+
let t = V.value.trim();
|
|
142
|
+
if (!t || !P.value.canCreate.value) return;
|
|
143
|
+
let n = P.value.find(e);
|
|
144
|
+
try {
|
|
145
|
+
await P.value.create({
|
|
146
|
+
body: t,
|
|
147
|
+
blockId: n?.blockId ?? void 0,
|
|
148
|
+
parentId: e,
|
|
149
|
+
locale: N.activeLocale?.value ?? N.content.value.settings.locale
|
|
150
|
+
}), B.value = null, V.value = "";
|
|
151
|
+
} catch {}
|
|
152
|
+
}
|
|
153
|
+
async function Q(e) {
|
|
154
|
+
let t = U.value.trim();
|
|
155
|
+
if (t) try {
|
|
156
|
+
await P.value.update(e, { body: t }), H.value = null, U.value = "";
|
|
157
|
+
} catch {}
|
|
158
|
+
}
|
|
159
|
+
async function Rt(e) {
|
|
160
|
+
try {
|
|
161
|
+
await P.value.remove(e);
|
|
162
|
+
} catch {}
|
|
163
|
+
G.value = null;
|
|
164
|
+
}
|
|
165
|
+
async function zt(e) {
|
|
166
|
+
try {
|
|
167
|
+
await P.value.setResolved(e.id, !e.resolvedAt);
|
|
168
|
+
} catch {}
|
|
169
|
+
}
|
|
170
|
+
function $(e) {
|
|
171
|
+
return P.value.canUpdate.value && P.value.isOwn(e);
|
|
172
|
+
}
|
|
173
|
+
function Bt(e) {
|
|
174
|
+
return P.value.canDelete.value && P.value.isOwn(e);
|
|
175
|
+
}
|
|
176
|
+
function Vt(e) {
|
|
177
|
+
return fe(e, j.time) ?? e;
|
|
178
|
+
}
|
|
179
|
+
function Ht(e) {
|
|
180
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), It());
|
|
181
|
+
}
|
|
182
|
+
function Ut(e, t) {
|
|
183
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Lt(t));
|
|
184
|
+
}
|
|
185
|
+
function Wt(e, t) {
|
|
186
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q(t)), e.key === "Escape" && Z();
|
|
187
|
+
}
|
|
188
|
+
function Gt() {
|
|
189
|
+
te(() => {
|
|
190
|
+
K.value?.focus();
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
return b({
|
|
194
|
+
filterByBlock: At,
|
|
195
|
+
focusNewComment: Gt
|
|
196
|
+
}), (r, o) => (t(), d(m, {
|
|
197
|
+
"enter-active-class": "tpl-comments-slide-enter-active",
|
|
198
|
+
"enter-from-class": "tpl:translate-x-full",
|
|
199
|
+
"enter-to-class": "tpl:translate-x-0",
|
|
200
|
+
"leave-active-class": "tpl-comments-slide-leave-active",
|
|
201
|
+
"leave-from-class": "tpl:translate-x-0",
|
|
202
|
+
"leave-to-class": "tpl:translate-x-full"
|
|
203
|
+
}, {
|
|
204
|
+
default: n(() => [e.visible ? (t(), s("div", {
|
|
205
|
+
key: 0,
|
|
206
|
+
role: "complementary",
|
|
207
|
+
"aria-label": c(j).comments.title,
|
|
208
|
+
"data-testid": "comments-sidebar",
|
|
209
|
+
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)]"
|
|
210
|
+
}, [
|
|
211
|
+
f("div", me, [f("div", he, [
|
|
212
|
+
y(c(T), {
|
|
213
|
+
size: 13,
|
|
214
|
+
"stroke-width": 2
|
|
215
|
+
}),
|
|
216
|
+
f("span", null, p(c(j).comments.title), 1),
|
|
217
|
+
e.feature.unresolvedCount.value > 0 ? (t(), s("span", ge, p(e.feature.unresolvedCount.value), 1)) : u("", !0)
|
|
218
|
+
]), f("button", {
|
|
219
|
+
type: "button",
|
|
220
|
+
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
|
|
221
|
+
"aria-label": c(j).comments.close,
|
|
222
|
+
onClick: o[0] ||= (e) => wt("close")
|
|
223
|
+
}, [y(c(E), {
|
|
224
|
+
size: 14,
|
|
225
|
+
"stroke-width": 2
|
|
226
|
+
})], 8, _e)]),
|
|
227
|
+
f("div", ve, [
|
|
228
|
+
f("button", {
|
|
229
|
+
type: "button",
|
|
230
|
+
class: l(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", F.value === "unresolved" ? "tpl-comment-filter--active" : ""]),
|
|
231
|
+
"aria-pressed": F.value === "unresolved",
|
|
232
|
+
"data-testid": "comments-filter-unresolved",
|
|
233
|
+
onClick: o[1] ||= (e) => Y("unresolved")
|
|
234
|
+
}, p(c(j).comments.filterUnresolved), 11, ye),
|
|
235
|
+
f("button", {
|
|
236
|
+
type: "button",
|
|
237
|
+
class: l(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", F.value === "all" ? "tpl-comment-filter--active" : ""]),
|
|
238
|
+
"aria-pressed": F.value === "all",
|
|
239
|
+
"data-testid": "comments-filter-all",
|
|
240
|
+
onClick: o[2] ||= (e) => Y("all")
|
|
241
|
+
}, p(c(j).comments.filterAll), 11, be),
|
|
242
|
+
c(N).state.selectedBlockId ? (t(), s("button", {
|
|
243
|
+
key: 0,
|
|
244
|
+
type: "button",
|
|
245
|
+
class: l(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", F.value === "block" ? "tpl-comment-filter--active" : ""]),
|
|
246
|
+
"aria-pressed": F.value === "block",
|
|
247
|
+
"data-testid": "comments-filter-block",
|
|
248
|
+
onClick: o[3] ||= (e) => Y("block", c(N).state.selectedBlockId ?? void 0)
|
|
249
|
+
}, p(c(j).comments.filterBlock), 11, xe)) : u("", !0),
|
|
250
|
+
c(I) ? (t(), s("button", {
|
|
251
|
+
key: 1,
|
|
252
|
+
type: "button",
|
|
253
|
+
"data-testid": "comments-filter-language",
|
|
254
|
+
class: l(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:focus-visible:outline-none tpl:focus-visible:shadow-[var(--tpl-ring)]", L.value ? "tpl-comment-filter--active" : ""]),
|
|
255
|
+
"aria-pressed": L.value,
|
|
256
|
+
onClick: o[4] ||= (e) => L.value = !L.value
|
|
257
|
+
}, p(c(j).comments.filterLanguage), 11, Se)) : u("", !0)
|
|
258
|
+
]),
|
|
259
|
+
f("div", Ce, [Et.value ? (t(), s("div", we, [y(c(S), {
|
|
260
|
+
class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
|
|
261
|
+
size: 24,
|
|
262
|
+
"stroke-width": 2
|
|
263
|
+
})])) : J.value.length === 0 ? (t(), s("div", Te, [y(c(T), {
|
|
264
|
+
size: 32,
|
|
265
|
+
"stroke-width": 1.5,
|
|
266
|
+
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
267
|
+
}), f("p", Ee, p(F.value === "all" ? c(j).comments.noCommentsHint : c(j).comments.noComments), 1)])) : (t(), s("div", De, [(t(!0), s(v, null, a(J.value, (e) => (t(), s("div", {
|
|
268
|
+
key: e.id,
|
|
269
|
+
class: "tpl-comment-thread",
|
|
270
|
+
"data-testid": "comment-thread"
|
|
271
|
+
}, [
|
|
272
|
+
f("div", Oe, [
|
|
273
|
+
f("div", ke, [f("div", Ae, [
|
|
274
|
+
f("span", je, p(P.value.isOwn(e) ? c(j).comments.ownedByYou : e.author.name), 1),
|
|
275
|
+
f("span", Me, p(Vt(e.createdAt)), 1),
|
|
276
|
+
c(I) ? (t(), s("span", {
|
|
277
|
+
key: 0,
|
|
278
|
+
"data-testid": "comment-locale-badge",
|
|
279
|
+
class: l(c(O))
|
|
280
|
+
}, p(c(D)(R(e))), 3)) : u("", !0),
|
|
281
|
+
e.updatedAt ? (t(), s("span", Ne, " (" + p(c(j).comments.edited) + ") ", 1)) : u("", !0)
|
|
282
|
+
]), f("div", Pe, [
|
|
283
|
+
P.value.canResolve.value ? (t(), s("button", {
|
|
284
|
+
key: 0,
|
|
285
|
+
"data-testid": "comment-resolve",
|
|
286
|
+
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
287
|
+
title: e.resolvedAt ? c(j).comments.unresolve : c(j).comments.resolve,
|
|
288
|
+
onClick: (t) => zt(e)
|
|
289
|
+
}, [y(c(ie), {
|
|
290
|
+
size: 13,
|
|
291
|
+
"stroke-width": 2,
|
|
292
|
+
class: "tpl-resolve-icon",
|
|
293
|
+
style: ne({ color: e.resolvedAt ? "var(--tpl-primary)" : void 0 })
|
|
294
|
+
}, null, 8, ["style"])], 8, Fe)) : u("", !0),
|
|
295
|
+
$(e) ? (t(), s("button", {
|
|
296
|
+
key: 1,
|
|
297
|
+
"data-testid": "comment-edit",
|
|
298
|
+
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
299
|
+
title: c(j).comments.edit,
|
|
300
|
+
onClick: (t) => X(e)
|
|
301
|
+
}, [y(c(x), {
|
|
302
|
+
size: 12,
|
|
303
|
+
"stroke-width": 2
|
|
304
|
+
})], 8, Ie)) : u("", !0),
|
|
305
|
+
Bt(e) ? (t(), s("button", {
|
|
306
|
+
key: 2,
|
|
307
|
+
"data-testid": "comment-delete",
|
|
308
|
+
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
309
|
+
title: c(j).comments.delete,
|
|
310
|
+
onClick: (t) => Pt(e.id)
|
|
311
|
+
}, [y(c(C), {
|
|
312
|
+
size: 12,
|
|
313
|
+
"stroke-width": 2
|
|
314
|
+
})], 8, Le)) : u("", !0)
|
|
315
|
+
])]),
|
|
316
|
+
y(m, { name: "tpl-resolve" }, {
|
|
317
|
+
default: n(() => [e.resolvedAt ? (t(), s("div", Re, [y(c(se), {
|
|
318
|
+
size: 10,
|
|
319
|
+
"stroke-width": 2.5
|
|
320
|
+
}), f("span", null, p(c(M)(c(j).comments.resolvedBy, { name: e.resolvedBy?.name ?? "" })), 1)])) : u("", !0)]),
|
|
321
|
+
_: 2
|
|
322
|
+
}, 1024),
|
|
323
|
+
e.blockId && Ot(e.blockId) ? (t(), s("span", ze, p(c(j).comments.missingBlock), 1)) : e.blockId ? (t(), s("button", {
|
|
324
|
+
key: 1,
|
|
325
|
+
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)]",
|
|
326
|
+
onClick: (t) => c(N).selectBlock(e.blockId ?? "")
|
|
327
|
+
}, p(c(j).comments.jumpToBlock), 9, Be)) : u("", !0),
|
|
328
|
+
H.value === e.id ? (t(), s("div", Ve, [i(f("textarea", {
|
|
329
|
+
"onUpdate:modelValue": o[5] ||= (e) => U.value = e,
|
|
330
|
+
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)]",
|
|
331
|
+
rows: "3",
|
|
332
|
+
onKeydown: (t) => Wt(t, e.id)
|
|
333
|
+
}, null, 40, He), [[h, U.value]]), f("div", Ue, [f("button", {
|
|
334
|
+
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)]",
|
|
335
|
+
disabled: !U.value.trim() || P.value.isSubmitting.value,
|
|
336
|
+
onClick: (t) => Q(e.id)
|
|
337
|
+
}, p(c(j).comments.save), 9, We), f("button", {
|
|
338
|
+
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)]",
|
|
339
|
+
onClick: o[6] ||= (e) => Z()
|
|
340
|
+
}, p(c(j).comments.cancel), 1)])])) : (t(), s("p", Ge, p(e.body), 1)),
|
|
341
|
+
G.value === e.id ? (t(), s("div", Ke, [
|
|
342
|
+
f("span", qe, p(c(j).comments.deleteConfirm), 1),
|
|
343
|
+
f("button", {
|
|
344
|
+
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)]",
|
|
345
|
+
"data-testid": "comment-delete-confirm",
|
|
346
|
+
onClick: (t) => Rt(e.id)
|
|
347
|
+
}, p(c(j).comments.delete), 9, Je),
|
|
348
|
+
f("button", {
|
|
349
|
+
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
350
|
+
onClick: o[7] ||= (e) => Ft()
|
|
351
|
+
}, p(c(j).comments.cancel), 1)
|
|
352
|
+
])) : u("", !0),
|
|
353
|
+
H.value !== e.id && G.value !== e.id ? (t(), s("div", Ye, [P.value.canCreate.value ? (t(), s("button", {
|
|
354
|
+
key: 0,
|
|
355
|
+
"data-testid": "comment-reply",
|
|
356
|
+
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
357
|
+
title: c(j).comments.reply,
|
|
358
|
+
onClick: (t) => Mt(e.id)
|
|
359
|
+
}, [y(c(ae), {
|
|
360
|
+
size: 13,
|
|
361
|
+
"stroke-width": 2,
|
|
362
|
+
class: "tpl:text-[var(--tpl-primary)]"
|
|
363
|
+
})], 8, Xe)) : u("", !0), (e.replies?.length ?? 0) > 0 ? (t(), s("button", {
|
|
364
|
+
key: 1,
|
|
365
|
+
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)]",
|
|
366
|
+
onClick: (t) => jt(e.id)
|
|
367
|
+
}, [W.value.has(e.id) ? (t(), d(c(oe), {
|
|
368
|
+
key: 0,
|
|
369
|
+
size: 11,
|
|
370
|
+
"stroke-width": 2
|
|
371
|
+
})) : (t(), d(c(re), {
|
|
372
|
+
key: 1,
|
|
373
|
+
size: 11,
|
|
374
|
+
"stroke-width": 2
|
|
375
|
+
})), ee(" " + p((e.replies?.length ?? 0) === 1 ? c(M)(c(j).comments.replyOne, { count: String(e.replies?.length ?? 0) }) : c(M)(c(j).comments.replyMany, { count: String(e.replies?.length ?? 0) })), 1)], 8, Ze)) : u("", !0)])) : u("", !0)
|
|
376
|
+
]),
|
|
377
|
+
y(m, { name: "tpl-replies" }, {
|
|
378
|
+
default: n(() => [W.value.has(e.id) && (e.replies?.length ?? 0) > 0 ? (t(), s("div", Qe, [(t(!0), s(v, null, a(e.replies, (n, r) => (t(), s("div", {
|
|
379
|
+
key: n.id,
|
|
380
|
+
class: l(["tpl-comment-reply-card tpl:relative tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-2.5", r < (e.replies?.length ?? 0) - 1 ? "tpl:mb-2" : ""])
|
|
381
|
+
}, [
|
|
382
|
+
f("div", $e, [f("div", et, [
|
|
383
|
+
f("span", tt, p(P.value.isOwn(n) ? c(j).comments.ownedByYou : n.author.name), 1),
|
|
384
|
+
f("span", nt, p(Vt(n.createdAt)), 1),
|
|
385
|
+
c(I) ? (t(), s("span", {
|
|
386
|
+
key: 0,
|
|
387
|
+
"data-testid": "comment-locale-badge",
|
|
388
|
+
class: l(c(O))
|
|
389
|
+
}, p(c(D)(R(n))), 3)) : u("", !0),
|
|
390
|
+
n.updatedAt ? (t(), s("span", rt, " (" + p(c(j).comments.edited) + ") ", 1)) : u("", !0)
|
|
391
|
+
]), f("div", it, [$(n) ? (t(), s("button", {
|
|
392
|
+
key: 0,
|
|
393
|
+
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
394
|
+
title: c(j).comments.edit,
|
|
395
|
+
onClick: (e) => X(n)
|
|
396
|
+
}, [y(c(x), {
|
|
397
|
+
size: 11,
|
|
398
|
+
"stroke-width": 2
|
|
399
|
+
})], 8, at)) : u("", !0), Bt(n) ? (t(), s("button", {
|
|
400
|
+
key: 1,
|
|
401
|
+
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
402
|
+
title: c(j).comments.delete,
|
|
403
|
+
onClick: (e) => Pt(n.id)
|
|
404
|
+
}, [y(c(C), {
|
|
405
|
+
size: 11,
|
|
406
|
+
"stroke-width": 2
|
|
407
|
+
})], 8, ot)) : u("", !0)])]),
|
|
408
|
+
H.value === n.id ? (t(), s("div", st, [i(f("textarea", {
|
|
409
|
+
"onUpdate:modelValue": o[8] ||= (e) => U.value = e,
|
|
410
|
+
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)]",
|
|
411
|
+
rows: "2",
|
|
412
|
+
onKeydown: (e) => Wt(e, n.id)
|
|
413
|
+
}, null, 40, ct), [[h, U.value]]), f("div", lt, [f("button", {
|
|
414
|
+
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)]",
|
|
415
|
+
disabled: !U.value.trim() || P.value.isSubmitting.value,
|
|
416
|
+
onClick: (e) => Q(n.id)
|
|
417
|
+
}, p(c(j).comments.save), 9, ut), f("button", {
|
|
418
|
+
class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
419
|
+
onClick: o[9] ||= (e) => Z()
|
|
420
|
+
}, p(c(j).comments.cancel), 1)])])) : (t(), s("p", dt, p(n.body), 1)),
|
|
421
|
+
G.value === n.id ? (t(), s("div", ft, [
|
|
422
|
+
f("span", pt, p(c(j).comments.deleteConfirm), 1),
|
|
423
|
+
f("button", {
|
|
424
|
+
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)]",
|
|
425
|
+
"data-testid": "comment-delete-confirm",
|
|
426
|
+
onClick: (e) => Rt(n.id)
|
|
427
|
+
}, p(c(j).comments.delete), 9, mt),
|
|
428
|
+
f("button", {
|
|
429
|
+
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
430
|
+
onClick: o[10] ||= (e) => Ft()
|
|
431
|
+
}, p(c(j).comments.cancel), 1)
|
|
432
|
+
])) : u("", !0)
|
|
433
|
+
], 2))), 128))])) : u("", !0)]),
|
|
434
|
+
_: 2
|
|
435
|
+
}, 1024),
|
|
436
|
+
y(m, { name: "tpl-replies" }, {
|
|
437
|
+
default: n(() => [B.value === e.id ? (t(), s("div", ht, [f("div", gt, [
|
|
438
|
+
i(f("textarea", {
|
|
439
|
+
"onUpdate:modelValue": o[11] ||= (e) => V.value = e,
|
|
440
|
+
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)]",
|
|
441
|
+
placeholder: c(j).comments.replyPlaceholder,
|
|
442
|
+
rows: "2",
|
|
443
|
+
onKeydown: (t) => Ut(t, e.id)
|
|
444
|
+
}, null, 40, _t), [[h, V.value]]),
|
|
445
|
+
f("button", {
|
|
446
|
+
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)]",
|
|
447
|
+
disabled: !V.value.trim() || P.value.isSubmitting.value,
|
|
448
|
+
onClick: (t) => Lt(e.id)
|
|
449
|
+
}, [y(c(w), {
|
|
450
|
+
size: 14,
|
|
451
|
+
"stroke-width": 2
|
|
452
|
+
})], 8, vt),
|
|
453
|
+
f("button", {
|
|
454
|
+
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)]",
|
|
455
|
+
onClick: o[12] ||= (e) => Nt()
|
|
456
|
+
}, [y(c(E), {
|
|
457
|
+
size: 14,
|
|
458
|
+
"stroke-width": 2
|
|
459
|
+
})])
|
|
460
|
+
])])) : u("", !0)]),
|
|
461
|
+
_: 2
|
|
462
|
+
}, 1024)
|
|
463
|
+
]))), 128))]))]),
|
|
464
|
+
P.value.canCreate.value ? (t(), s("div", yt, [kt.value ? (t(), s("div", bt, p(c(j).comments.saveTemplateFirst), 1)) : (t(), s("div", xt, [i(f("textarea", {
|
|
465
|
+
ref_key: "newCommentInput",
|
|
466
|
+
ref: K,
|
|
467
|
+
"onUpdate:modelValue": o[13] ||= (e) => z.value = e,
|
|
468
|
+
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)]",
|
|
469
|
+
"data-testid": "comments-input",
|
|
470
|
+
placeholder: c(j).comments.placeholder,
|
|
471
|
+
disabled: P.value.isSubmitting.value,
|
|
472
|
+
rows: "2",
|
|
473
|
+
onKeydown: Ht
|
|
474
|
+
}, null, 40, St), [[h, z.value]]), f("button", {
|
|
475
|
+
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)]",
|
|
476
|
+
"data-testid": "comments-send",
|
|
477
|
+
disabled: !z.value.trim() || P.value.isSubmitting.value,
|
|
478
|
+
onClick: It
|
|
479
|
+
}, [P.value.isSubmitting.value ? (t(), d(c(S), {
|
|
480
|
+
key: 0,
|
|
481
|
+
class: "tpl-spinner",
|
|
482
|
+
size: 16,
|
|
483
|
+
"stroke-width": 2
|
|
484
|
+
})) : (t(), d(c(w), {
|
|
485
|
+
key: 1,
|
|
486
|
+
size: 16,
|
|
487
|
+
"stroke-width": 2
|
|
488
|
+
}))], 8, Ct)]))])) : u("", !0)
|
|
489
|
+
], 8, pe)) : u("", !0)]),
|
|
490
|
+
_: 1
|
|
491
|
+
}));
|
|
492
|
+
}
|
|
493
|
+
}), [["__scopeId", "data-v-ebc3c2c6"]]);
|
|
494
|
+
export { k as default };
|
|
495
|
+
|
|
496
|
+
//# sourceMappingURL=CommentsSidebar-7Hfl3Hdj.js.map
|