@templatical/editor 0.52.1 → 0.53.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-DdhtfsmO.js +561 -0
- package/dist/{AiPanels-DqT4PgQ0.js → AiPanels-HBx7xoJR.js} +6 -6
- package/dist/{AiRewriteMenu-28agTycW.js → AiRewriteMenu-DPzSekZt.js} +76 -105
- package/dist/BlockIssueBadge-eIXZJ9M3.js +33 -0
- package/dist/BlockPreviewCanvas-DO-2TP_6.js +140 -0
- package/dist/{CloudHeaderExtras-QI82yF54.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
- package/dist/{CloudPanels-BKJaLkUN.js → CloudPanels-i2kZdrdP.js} +53 -53
- package/dist/CollaborationNotices-DANsjl7c.js +65 -0
- package/dist/{CollaboratorBar-CXQqN3VP.js → CollaboratorBar-CbbAA0m1.js} +24 -24
- package/dist/CommentsPanel-CYW3LWis.js +16 -0
- package/dist/CommentsSidebar-CcF4ISMi.js +526 -0
- package/dist/{CountdownBlock-CU2yTWtF.js → CountdownBlock-BMezkFbJ.js} +15 -15
- package/dist/CountdownToolbar-D3Lv74kU.js +258 -0
- package/dist/IssuesPanel-BMAG9042.js +371 -0
- package/dist/LanguageMenu-FlP_Jbup.js +403 -0
- package/dist/{LoadingTrack-DM4g6j7b.js → LoadingTrack-BG8cg9xi.js} +2 -2
- package/dist/LocaleNotices-DAnVszWu.js +46 -0
- package/dist/LogicTagInsertButton-BjYs-UQX.js +1096 -0
- package/dist/{MediaEditModal-Dy08GEwE.js → MediaEditModal-LnG-cF_S.js} +451 -451
- package/dist/{MediaPanels-BgEp7iCp.js → MediaPanels-C2r5fiFo.js} +4 -4
- package/dist/{MergeTagInput-B9dtUthD.js → MergeTagInput-BsnogCeY.js} +30 -30
- package/dist/{MergeTagModeToggle-DxujhYJ4.js → MergeTagModeToggle-DiufIQ-_.js} +49 -49
- package/dist/MergeTagTextarea-BweI-Xsi.js +126 -0
- package/dist/ParagraphEditor-qgBp5yIB.js +825 -0
- package/dist/{RestoreVersionDialog-C4s_JYCx.js → RestoreVersionDialog-DdYUrFiK.js} +23 -23
- package/dist/{RichTextEditorContent-o6HmE8GR.js → RichTextEditorContent-C5MAzx3E.js} +47 -47
- package/dist/{SaveBlockDialog-CWLrly6l.js → SaveBlockDialog-eK6fjtTy.js} +86 -86
- package/dist/{cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js → SavedBlocksBrowserModal-D2QHd2Yp.js} +135 -132
- package/dist/{SavedBlocksPanels-BE1N9rNZ.js → SavedBlocksPanels-Cl61f4Mf.js} +9 -9
- package/dist/{SavedBlocksPickBar-Dwl94xhP.js → SavedBlocksPickBar-CXP2dkeB.js} +15 -15
- package/dist/TemplateSettings-BKJrdZcH.js +294 -0
- package/dist/TestEmailModal-DQotJg6g.js +212 -0
- package/dist/{TestEmailPanel-DaFjP9QK.js → TestEmailPanel-CwiTzJsh.js} +4 -4
- package/dist/TitleEditor-CzSvsPAn.js +202 -0
- package/dist/ToggleSwitch-R3wCCYE6.js +43 -0
- package/dist/Toolbar-Cd75ci5W.js +3711 -0
- package/dist/{TplModal-DLMssVlt.js → TplModal-ZoXu40T9.js} +17 -17
- package/dist/{VersionHistoryMenu-BkbYUs0Q.js → VersionHistoryMenu-BvhN-Ofk.js} +39 -39
- package/dist/{VersionHistoryPanels-DP7HaYWv.js → VersionHistoryPanels-DPWMnYbd.js} +5 -5
- package/dist/VersionPreviewBanner-CuJnasxH.js +37 -0
- package/dist/WrapperBlock-D4fPwO0t.js +44 -0
- package/dist/{blockTypeIcons-BHjlPnPf.js → blockTypeIcons-BXMxu86H.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-ByZ0FEqI.js +107 -0
- package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js.map +1 -0
- package/dist/cdn/chunks/{AiAltTextReview-BGLLSKLm.js → AiAltTextReview-Dtm3A2cD.js} +70 -68
- package/dist/cdn/chunks/AiAltTextReview-Dtm3A2cD.js.map +1 -0
- package/dist/cdn/chunks/AiChatPanel-DciEt27y.js +487 -0
- package/dist/cdn/chunks/AiChatPanel-DciEt27y.js.map +1 -0
- package/dist/cdn/chunks/{AiPanels-0wBarZSH.js → AiPanels-BV5D1itk.js} +11 -11
- package/dist/cdn/chunks/{AiPanels-0wBarZSH.js.map → AiPanels-BV5D1itk.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-qf-cfEpy.js → AiRewriteMenu-D3jkh6Xb.js} +79 -79
- package/dist/cdn/chunks/AiRewriteMenu-D3jkh6Xb.js.map +1 -0
- package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js +34 -0
- package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js.map +1 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-RQFilqXC.js +142 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-DGBh6mqe.js.map → BlockPreviewCanvas-RQFilqXC.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-BSJ-Z5Hw.js} +45 -45
- package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js.map → CloudPanels-BSJ-Z5Hw.js.map} +1 -1
- package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js +67 -0
- package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js → CollaboratorBar-Bc9914Az.js} +17 -17
- package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js.map → CollaboratorBar-Bc9914Az.js.map} +1 -1
- package/dist/cdn/chunks/CommentsPanel-DbR9phAk.js +18 -0
- package/dist/cdn/chunks/{CommentsPanel-DoJnKLXI.js.map → CommentsPanel-DbR9phAk.js.map} +1 -1
- package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js +496 -0
- package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.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-DxwYBw-d.js +260 -0
- package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-C7LfxaAY.js → IssuesPanel-CUmI4HMm.js} +133 -121
- package/dist/cdn/chunks/IssuesPanel-CUmI4HMm.js.map +1 -0
- package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js +359 -0
- package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.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-BfoH6gST.js +47 -0
- package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js.map +1 -0
- package/dist/{LogicTagInsertButton-CfscnwCn.js → cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js} +422 -449
- package/dist/cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js.map +1 -0
- package/dist/cdn/chunks/{MediaEditModal-Cpcod6_U.js → MediaEditModal-DDCIwr9U.js} +421 -421
- package/dist/cdn/chunks/MediaEditModal-DDCIwr9U.js.map +1 -0
- package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js → MediaPanels-Dz79oy8P.js} +5 -5
- package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js.map → MediaPanels-Dz79oy8P.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js → MergeTagInput-CIWy-cXf.js} +28 -28
- package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js.map → MergeTagInput-CIWy-cXf.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BgKEVUtV.js → MergeTagModeToggle-BrP5GR-x.js} +52 -52
- package/dist/cdn/chunks/MergeTagModeToggle-BrP5GR-x.js.map +1 -0
- package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js +128 -0
- package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js.map +1 -0
- package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js +660 -0
- package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js → RestoreVersionDialog-Crj1DBqC.js} +22 -22
- package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js.map → RestoreVersionDialog-Crj1DBqC.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js → RichTextEditorContent-rCCqFlwJ.js} +44 -44
- package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js.map → RichTextEditorContent-rCCqFlwJ.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js → SaveBlockDialog-C34RW1aM.js} +77 -77
- package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js.map → SaveBlockDialog-C34RW1aM.js.map} +1 -1
- package/dist/{SavedBlocksBrowserModal-CE8n4EBS.js → cdn/chunks/SavedBlocksBrowserModal-CJnwWPT-.js} +103 -106
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BPYcRoGa.js.map → SavedBlocksBrowserModal-CJnwWPT-.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js → SavedBlocksPanels-CA2PqXIH.js} +9 -9
- package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js.map → SavedBlocksPanels-CA2PqXIH.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js → SavedBlocksPickBar-Dj3ortee.js} +16 -16
- package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js.map → SavedBlocksPickBar-Dj3ortee.js.map} +1 -1
- package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js +266 -0
- package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js.map +1 -0
- package/dist/cdn/chunks/TestEmailModal-BXeCtTjU.js +212 -0
- package/dist/cdn/chunks/TestEmailModal-BXeCtTjU.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js → TestEmailPanel-CpZcpB9D.js} +5 -5
- package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js.map → TestEmailPanel-CpZcpB9D.js.map} +1 -1
- package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js +202 -0
- package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.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-BJKpJ2Mg.js +3626 -0
- package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js → TplModal-DDDUDMYC.js} +20 -20
- package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js.map → TplModal-DDDUDMYC.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js → VersionHistoryMenu-DSElv3Sv.js} +33 -33
- package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js.map → VersionHistoryMenu-DSElv3Sv.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js → VersionHistoryPanels-H2nuik1l.js} +6 -6
- package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js.map → VersionHistoryPanels-H2nuik1l.js.map} +1 -1
- package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js +39 -0
- package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js.map +1 -0
- package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js +46 -0
- package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js → blockTypeIcons-DMgLcuI8.js} +5 -5
- package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js.map → blockTypeIcons-DMgLcuI8.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-D0UYam2P.js +3039 -0
- package/dist/cdn/chunks/composables-D0UYam2P.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-Cth2JCEh.js → createCloudRuntime-BdsclY8_.js} +75 -73
- package/dist/cdn/chunks/createCloudRuntime-BdsclY8_.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-CPbgthOv.js} +781 -781
- package/dist/cdn/chunks/{editor-modal-CyCe560f.js.map → editor-modal-CPbgthOv.js.map} +1 -1
- package/dist/{en-D14i5nFh.js → cdn/chunks/en-C0pHHMiR.js} +116 -0
- package/dist/cdn/chunks/en-C0pHHMiR.js.map +1 -0
- package/dist/cdn/chunks/en-IYVryJRl.js +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-Uh9vuFfK.js} +59 -59
- package/dist/cdn/chunks/{extensions-CFF2KWy-.js.map → extensions-Uh9vuFfK.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-CSSMtbGK.js} +150 -109
- package/dist/cdn/chunks/icons-CSSMtbGK.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-oGhwVscw.js +290 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.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/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js → preRenderCustomBlocks-C8k7tw98.js} +5 -5
- package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js.map → preRenderCustomBlocks-C8k7tw98.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-DYklmvgX.js +61 -0
- package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js.map +1 -0
- package/dist/cdn/chunks/socialIcons-BAiuHyJs.js +2638 -0
- package/dist/cdn/chunks/socialIcons-BAiuHyJs.js.map +1 -0
- package/dist/cdn/chunks/src-CACM3o--.js +2606 -0
- package/dist/cdn/chunks/src-CACM3o--.js.map +1 -0
- package/dist/cdn/chunks/{src-C7bkofBL.js → src-Ddpm4HsS.js} +222 -256
- package/dist/cdn/chunks/src-Ddpm4HsS.js.map +1 -0
- package/dist/cdn/chunks/{src-DEd87i_U.js → src-DheBmnvF.js} +635 -478
- package/dist/cdn/chunks/src-DheBmnvF.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-yXbRKNrs.js +33 -0
- package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js.map +1 -0
- package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js → useLogicTag-B7RpqVFQ.js} +5 -5
- package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js.map → useLogicTag-B7RpqVFQ.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js → useMergeTag-C-32ETjj.js} +6 -6
- package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js.map → useMergeTag-C-32ETjj.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-D33ZXoWp.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js.map → withCurrentFont-D33ZXoWp.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +2190 -1496
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-BZ8o0eet.js → check-ChQ0l8EQ.js} +1 -1
- package/dist/{chevron-down-DfAAfILv.js → chevron-down-Bh6cp6PI.js} +1 -1
- package/dist/{chevron-right-Bk4mGdr7.js → chevron-right-LUgdqdoW.js} +1 -1
- package/dist/{chevron-up-MhUf_azW.js → chevron-up-XsDeJxQN.js} +1 -1
- package/dist/{circle-alert-CShJwVFv.js → circle-alert-lODfDsrj.js} +1 -1
- package/dist/{clock-CTfD6OCt.js → clock-DrqFEZkT.js} +1 -1
- package/dist/composables-BOP3ERRP.js +4517 -0
- package/dist/{createCloudRuntime-DCgO4A1r.js → createCloudRuntime-DGV5a5Af.js} +54 -52
- package/dist/{createLucideIcon-CvhTA2KG.js → createLucideIcon-Dw5e5gVE.js} +11 -11
- 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-B_2EAOjN.js} +953 -952
- package/dist/{cdn/chunks/en-D14i5nFh.js → en-C0pHHMiR.js} +114 -2
- package/dist/en-DTtwco2Q.js +1 -0
- package/dist/{cdn/chunks/es-zDacbMhs.js → es-CxyEKr6n.js} +114 -2
- package/dist/{extensions-fo_c-vqf.js → extensions-DOLZkLzV.js} +173 -173
- package/dist/{eye-7W4t5e0Q.js → eye-DChfk0gi.js} +1 -1
- package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
- package/dist/{image-BDiRFzSd.js → image--Hj2by1G.js} +1 -1
- package/dist/index.d.ts +182 -14
- package/dist/{info-Cxi3-Kh9.js → info-BbXgy82f.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-C2_8yJno.js} +1 -1
- package/dist/{list-DYZJf0aZ.js → list-DLGs2n0V.js} +1 -1
- package/dist/{loader-circle-BZRD0a4I.js → loader-circle-BbDItE_O.js} +1 -1
- package/dist/{message-circle-DuEw4Zfx.js → message-circle-NAModq0p.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-BuzsfRyH.js} +1 -1
- package/dist/{pencil-D3aFCL7c.js → pencil-BTUUECH4.js} +1 -1
- package/dist/plural-CyxrJXL1.js +15 -0
- package/dist/plus-Dm7DN65T.js +13 -0
- package/dist/{preRenderCustomBlocks--_xc0XK3.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -4
- package/dist/{cdn/chunks/pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -2
- package/dist/{refresh-cw-xnro7_Sk.js → refresh-cw-xMURqGWi.js} +2 -12
- package/dist/rotate-ccw-DqVcEIn5.js +13 -0
- package/dist/{runtime-dom.esm-bundler-BURR-bj5.js → runtime-dom.esm-bundler-DlHp8xgy.js} +154 -154
- package/dist/sanitizeHtml-mKgNUdME.js +962 -0
- package/dist/{search-CDrstRBv.js → search-Cfr3W44N.js} +1 -1
- package/dist/{send-DROkPOaX.js → send-CH1SrvyB.js} +1 -1
- package/dist/{smartphone-Bx6u_tjn.js → smartphone-pAkvzjdI.js} +1 -1
- package/dist/socialIcons-Dqr4DJOz.js +2705 -0
- package/dist/{sparkles-CdaTtvoz.js → sparkles-CRO0cCnp.js} +1 -1
- package/dist/{square-BbCROH_f.js → square-CaQWMntx.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-BQ39AaRK.js} +1 -1
- package/dist/{trash-DxCd7zIy.js → trash-BL5gEFHN.js} +1 -1
- package/dist/{triangle-alert-7_oaitpf.js → triangle-alert-BYbKu7zZ.js} +1 -1
- package/dist/{upload-DuFEOi_0.js → upload-BhmL4Vqx.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-C0Kapxdh.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-B7NZYzhx.js} +1 -1
- package/package.json +20 -20
- 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.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
|
@@ -1,500 +0,0 @@
|
|
|
1
|
-
import { $ as e, D as t, H as n, Mt as r, N as i, Nt as a, U as o, _ as s, c, d as l, f as u, g as ee, j as d, jt as f, l as p, r as m, st as h, u as g, y as _, z as v } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
2
|
-
import { a as y, t as b } from "./runtime-dom.esm-bundler-BURR-bj5.js";
|
|
3
|
-
import { $ as te, g as ne } from "./keys-BgRERHzu.js";
|
|
4
|
-
import { t as re } from "./useI18n-BBrHTdu8.js";
|
|
5
|
-
import { t as x } from "./createLucideIcon-CvhTA2KG.js";
|
|
6
|
-
import { t as ie } from "./check-BZ8o0eet.js";
|
|
7
|
-
import { t as ae } from "./chevron-down-DfAAfILv.js";
|
|
8
|
-
import { t as oe } from "./chevron-up-MhUf_azW.js";
|
|
9
|
-
import { t as S } from "./loader-circle-BZRD0a4I.js";
|
|
10
|
-
import { t as C } from "./message-circle-DuEw4Zfx.js";
|
|
11
|
-
import { t as w } from "./pencil-D3aFCL7c.js";
|
|
12
|
-
import { t as T } from "./send-DROkPOaX.js";
|
|
13
|
-
import { t as E } from "./trash-DxCd7zIy.js";
|
|
14
|
-
import { t as D } from "./x-BpfG7v9g.js";
|
|
15
|
-
import { t as O } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
16
|
-
import { t as se } from "./formatRelativeTime-BTD8Ktt-.js";
|
|
17
|
-
var ce = x({
|
|
18
|
-
name: "circle-check",
|
|
19
|
-
size: 24,
|
|
20
|
-
node: [["circle", {
|
|
21
|
-
cx: "12",
|
|
22
|
-
cy: "12",
|
|
23
|
-
r: "10",
|
|
24
|
-
key: "1mglay"
|
|
25
|
-
}], ["path", {
|
|
26
|
-
d: "m16 9-5.5 5.5L8 12",
|
|
27
|
-
key: "xofnsj"
|
|
28
|
-
}]],
|
|
29
|
-
aliases: ["check-circle-2"]
|
|
30
|
-
}), le = x({
|
|
31
|
-
name: "reply",
|
|
32
|
-
size: 24,
|
|
33
|
-
node: [["path", {
|
|
34
|
-
d: "M20 18v-2a4 4 0 0 0-4-4H4",
|
|
35
|
-
key: "5vmcpk"
|
|
36
|
-
}], ["path", {
|
|
37
|
-
d: "m9 17-5-5 5-5",
|
|
38
|
-
key: "nvlc11"
|
|
39
|
-
}]]
|
|
40
|
-
}), ue = ["aria-label"], de = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, fe = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]" }, pe = {
|
|
41
|
-
key: 0,
|
|
42
|
-
class: "tpl:ml-1 tpl:inline-flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[10px] tpl:font-semibold tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-on-primary)]"
|
|
43
|
-
}, me = ["aria-label"], he = { class: "tpl:flex tpl:gap-1 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2" }, ge = ["aria-pressed"], _e = ["aria-pressed"], ve = ["aria-pressed"], ye = { class: "tpl:flex-1 tpl:overflow-y-auto" }, be = {
|
|
44
|
-
key: 0,
|
|
45
|
-
class: "tpl:flex tpl:h-full tpl:items-center tpl:justify-center"
|
|
46
|
-
}, xe = {
|
|
47
|
-
key: 1,
|
|
48
|
-
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:px-6 tpl:text-center"
|
|
49
|
-
}, Se = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ce = {
|
|
50
|
-
key: 2,
|
|
51
|
-
class: "tpl:flex tpl:flex-col tpl:gap-3 tpl:p-3"
|
|
52
|
-
}, we = { class: "tpl-comment-card tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-3" }, Te = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Ee = { class: "tpl:flex tpl:items-center tpl:gap-1.5" }, De = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Oe = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, ke = {
|
|
53
|
-
key: 0,
|
|
54
|
-
class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
|
|
55
|
-
}, Ae = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, je = ["title", "onClick"], Me = ["title", "onClick"], Ne = ["title", "onClick"], Pe = {
|
|
56
|
-
key: 0,
|
|
57
|
-
class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1 tpl:text-[10px] tpl:text-[var(--tpl-primary)]"
|
|
58
|
-
}, Fe = {
|
|
59
|
-
key: 0,
|
|
60
|
-
class: "tpl:mt-1 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-warning-light)] tpl:text-[var(--tpl-warning)]"
|
|
61
|
-
}, Ie = ["onClick"], Le = {
|
|
62
|
-
key: 2,
|
|
63
|
-
class: "tpl:mt-2"
|
|
64
|
-
}, Re = ["onKeydown"], ze = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, Be = ["disabled", "onClick"], Ve = {
|
|
65
|
-
key: 3,
|
|
66
|
-
class: "tpl:mt-1.5 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
|
|
67
|
-
}, He = {
|
|
68
|
-
key: 4,
|
|
69
|
-
class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2 tpl:rounded-md tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
|
|
70
|
-
}, Ue = { class: "tpl:flex-1" }, We = ["onClick"], Ge = {
|
|
71
|
-
key: 5,
|
|
72
|
-
class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2"
|
|
73
|
-
}, Ke = ["title", "onClick"], qe = ["onClick"], Je = {
|
|
74
|
-
key: 0,
|
|
75
|
-
class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
|
|
76
|
-
}, Ye = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Xe = { class: "tpl:flex tpl:items-center tpl:gap-1.5" }, Ze = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Qe = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, $e = {
|
|
77
|
-
key: 0,
|
|
78
|
-
class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
|
|
79
|
-
}, et = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, tt = ["title", "onClick"], nt = ["title", "onClick"], rt = {
|
|
80
|
-
key: 0,
|
|
81
|
-
class: "tpl:mt-1.5"
|
|
82
|
-
}, it = ["onKeydown"], at = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, ot = ["disabled", "onClick"], st = {
|
|
83
|
-
key: 1,
|
|
84
|
-
class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
|
|
85
|
-
}, ct = {
|
|
86
|
-
key: 2,
|
|
87
|
-
class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2 tpl:rounded-md tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
|
|
88
|
-
}, lt = { class: "tpl:flex-1" }, ut = ["onClick"], dt = {
|
|
89
|
-
key: 0,
|
|
90
|
-
class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
|
|
91
|
-
}, ft = { class: "tpl-comments-input-wrapper tpl-focus-ring-host tpl:flex tpl:items-end tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, pt = ["placeholder", "onKeydown"], mt = ["disabled", "onClick"], ht = {
|
|
92
|
-
key: 0,
|
|
93
|
-
class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]"
|
|
94
|
-
}, gt = {
|
|
95
|
-
key: 0,
|
|
96
|
-
class: "tpl:flex tpl:min-h-[68px] tpl:items-center tpl:rounded-md tpl:px-3 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-warning-light)] tpl:text-[var(--tpl-warning)]"
|
|
97
|
-
}, _t = {
|
|
98
|
-
key: 1,
|
|
99
|
-
class: "tpl-comments-input-wrapper tpl-focus-ring-host tpl:flex tpl:min-h-[68px] tpl:items-end tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]"
|
|
100
|
-
}, vt = ["placeholder", "disabled"], yt = ["disabled"], k = /*#__PURE__*/ O(/* @__PURE__ */ _({
|
|
101
|
-
__name: "CommentsSidebar",
|
|
102
|
-
props: {
|
|
103
|
-
visible: { type: Boolean },
|
|
104
|
-
feature: {}
|
|
105
|
-
},
|
|
106
|
-
emits: ["close"],
|
|
107
|
-
setup(_, { expose: x, emit: O }) {
|
|
108
|
-
let k = _, bt = O, { t: A, format: j } = re(), M = te(ne, "CommentsSidebar"), N = c(() => k.feature.headless), P = e("unresolved"), F = e(""), I = e(null), L = e(""), R = e(null), z = e(""), B = e(/* @__PURE__ */ new Set()), V = e(null), H = e(null), U = c(() => k.feature.filterBlockId.value);
|
|
109
|
-
v(U, (e) => {
|
|
110
|
-
e && (P.value = "block");
|
|
111
|
-
}, { immediate: !0 });
|
|
112
|
-
let xt = c(() => N.value.isLoading.value && N.value.comments.value.length === 0), St = c(() => {
|
|
113
|
-
let e = /* @__PURE__ */ new Set();
|
|
114
|
-
for (let t of M.content.value.blocks) if (e.add(t.id), t.type === "section") for (let n of t.children) for (let t of n) e.add(t.id);
|
|
115
|
-
return e;
|
|
116
|
-
});
|
|
117
|
-
function Ct(e) {
|
|
118
|
-
return e ? !St.value.has(e) : !1;
|
|
119
|
-
}
|
|
120
|
-
let wt = c(() => P.value !== "block" || !U.value ? !1 : k.feature.capability.isBlockSaved(U.value) === !1), W = c(() => {
|
|
121
|
-
let e = N.value.comments.value;
|
|
122
|
-
return P.value === "unresolved" ? e = e.filter((e) => !e.resolvedAt) : P.value === "block" && U.value && (e = e.filter((e) => e.blockId === U.value)), e;
|
|
123
|
-
});
|
|
124
|
-
v(() => M.state.selectedBlockId, (e) => {
|
|
125
|
-
P.value === "block" && e && (k.feature.filterBlockId.value = e);
|
|
126
|
-
});
|
|
127
|
-
function G(e, t) {
|
|
128
|
-
P.value = e, k.feature.filterBlockId.value = e === "block" ? t ?? null : null;
|
|
129
|
-
}
|
|
130
|
-
function Tt(e) {
|
|
131
|
-
G("block", e);
|
|
132
|
-
}
|
|
133
|
-
function Et(e) {
|
|
134
|
-
B.value.has(e) ? B.value.delete(e) : B.value.add(e);
|
|
135
|
-
}
|
|
136
|
-
function Dt(e) {
|
|
137
|
-
I.value = e, L.value = "", R.value = null, B.value.has(e) || B.value.add(e);
|
|
138
|
-
}
|
|
139
|
-
function Ot() {
|
|
140
|
-
I.value = null, L.value = "";
|
|
141
|
-
}
|
|
142
|
-
function K(e) {
|
|
143
|
-
R.value = e.id, z.value = e.body, I.value = null;
|
|
144
|
-
}
|
|
145
|
-
function q() {
|
|
146
|
-
R.value = null, z.value = "";
|
|
147
|
-
}
|
|
148
|
-
function J(e) {
|
|
149
|
-
V.value = e;
|
|
150
|
-
}
|
|
151
|
-
function Y() {
|
|
152
|
-
V.value = null;
|
|
153
|
-
}
|
|
154
|
-
async function X() {
|
|
155
|
-
let e = F.value.trim();
|
|
156
|
-
if (!e || !N.value.canCreate.value) return;
|
|
157
|
-
let t = P.value === "block" ? U.value : void 0;
|
|
158
|
-
try {
|
|
159
|
-
await N.value.create({
|
|
160
|
-
body: e,
|
|
161
|
-
blockId: t ?? void 0
|
|
162
|
-
}), F.value = "";
|
|
163
|
-
} catch {}
|
|
164
|
-
}
|
|
165
|
-
async function Z(e) {
|
|
166
|
-
let t = L.value.trim();
|
|
167
|
-
if (!t || !N.value.canCreate.value) return;
|
|
168
|
-
let n = N.value.find(e);
|
|
169
|
-
try {
|
|
170
|
-
await N.value.create({
|
|
171
|
-
body: t,
|
|
172
|
-
blockId: n?.blockId ?? void 0,
|
|
173
|
-
parentId: e
|
|
174
|
-
}), I.value = null, L.value = "";
|
|
175
|
-
} catch {}
|
|
176
|
-
}
|
|
177
|
-
async function Q(e) {
|
|
178
|
-
let t = z.value.trim();
|
|
179
|
-
if (t) try {
|
|
180
|
-
await N.value.update(e, { body: t }), R.value = null, z.value = "";
|
|
181
|
-
} catch {}
|
|
182
|
-
}
|
|
183
|
-
async function kt(e) {
|
|
184
|
-
try {
|
|
185
|
-
await N.value.remove(e);
|
|
186
|
-
} catch {}
|
|
187
|
-
V.value = null;
|
|
188
|
-
}
|
|
189
|
-
async function At(e) {
|
|
190
|
-
try {
|
|
191
|
-
await N.value.setResolved(e.id, !e.resolvedAt);
|
|
192
|
-
} catch {}
|
|
193
|
-
}
|
|
194
|
-
function jt(e) {
|
|
195
|
-
return N.value.canUpdate.value && N.value.isOwn(e);
|
|
196
|
-
}
|
|
197
|
-
function Mt(e) {
|
|
198
|
-
return N.value.canDelete.value && N.value.isOwn(e);
|
|
199
|
-
}
|
|
200
|
-
function Nt(e) {
|
|
201
|
-
return se(e, A.time) ?? e;
|
|
202
|
-
}
|
|
203
|
-
function Pt(e) {
|
|
204
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), X());
|
|
205
|
-
}
|
|
206
|
-
function Ft(e, t) {
|
|
207
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Z(t));
|
|
208
|
-
}
|
|
209
|
-
function $(e, t) {
|
|
210
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q(t)), e.key === "Escape" && q();
|
|
211
|
-
}
|
|
212
|
-
function It() {
|
|
213
|
-
t(() => {
|
|
214
|
-
H.value?.focus();
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
return x({
|
|
218
|
-
filterByBlock: Tt,
|
|
219
|
-
focusNewComment: It
|
|
220
|
-
}), (e, t) => (d(), g(b, {
|
|
221
|
-
"enter-active-class": "tpl-comments-slide-enter-active",
|
|
222
|
-
"enter-from-class": "tpl:translate-x-full",
|
|
223
|
-
"enter-to-class": "tpl:translate-x-0",
|
|
224
|
-
"leave-active-class": "tpl-comments-slide-leave-active",
|
|
225
|
-
"leave-from-class": "tpl:translate-x-0",
|
|
226
|
-
"leave-to-class": "tpl:translate-x-full"
|
|
227
|
-
}, {
|
|
228
|
-
default: n(() => [_.visible ? (d(), u("div", {
|
|
229
|
-
key: 0,
|
|
230
|
-
role: "complementary",
|
|
231
|
-
"aria-label": h(A).comments.title,
|
|
232
|
-
"data-testid": "comments-sidebar",
|
|
233
|
-
class: "tpl-comments-sidebar tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
|
|
234
|
-
}, [
|
|
235
|
-
p("div", de, [p("div", fe, [
|
|
236
|
-
s(h(C), {
|
|
237
|
-
size: 13,
|
|
238
|
-
"stroke-width": 2
|
|
239
|
-
}),
|
|
240
|
-
p("span", null, a(h(A).comments.title), 1),
|
|
241
|
-
_.feature.unresolvedCount.value > 0 ? (d(), u("span", pe, a(_.feature.unresolvedCount.value), 1)) : l("", !0)
|
|
242
|
-
]), p("button", {
|
|
243
|
-
type: "button",
|
|
244
|
-
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
|
|
245
|
-
"aria-label": h(A).comments.close,
|
|
246
|
-
onClick: t[0] ||= (e) => bt("close")
|
|
247
|
-
}, [s(h(D), {
|
|
248
|
-
size: 14,
|
|
249
|
-
"stroke-width": 2
|
|
250
|
-
})], 8, me)]),
|
|
251
|
-
p("div", he, [
|
|
252
|
-
p("button", {
|
|
253
|
-
type: "button",
|
|
254
|
-
class: f(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", P.value === "unresolved" ? "tpl-comment-filter--active" : ""]),
|
|
255
|
-
"aria-pressed": P.value === "unresolved",
|
|
256
|
-
"data-testid": "comments-filter-unresolved",
|
|
257
|
-
onClick: t[1] ||= (e) => G("unresolved")
|
|
258
|
-
}, a(h(A).comments.filterUnresolved), 11, ge),
|
|
259
|
-
p("button", {
|
|
260
|
-
type: "button",
|
|
261
|
-
class: f(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", P.value === "all" ? "tpl-comment-filter--active" : ""]),
|
|
262
|
-
"aria-pressed": P.value === "all",
|
|
263
|
-
"data-testid": "comments-filter-all",
|
|
264
|
-
onClick: t[2] ||= (e) => G("all")
|
|
265
|
-
}, a(h(A).comments.filterAll), 11, _e),
|
|
266
|
-
h(M).state.selectedBlockId ? (d(), u("button", {
|
|
267
|
-
key: 0,
|
|
268
|
-
type: "button",
|
|
269
|
-
class: f(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", P.value === "block" ? "tpl-comment-filter--active" : ""]),
|
|
270
|
-
"aria-pressed": P.value === "block",
|
|
271
|
-
"data-testid": "comments-filter-block",
|
|
272
|
-
onClick: t[3] ||= (e) => G("block", h(M).state.selectedBlockId ?? void 0)
|
|
273
|
-
}, a(h(A).comments.filterBlock), 11, ve)) : l("", !0)
|
|
274
|
-
]),
|
|
275
|
-
p("div", ye, [xt.value ? (d(), u("div", be, [s(h(S), {
|
|
276
|
-
class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
|
|
277
|
-
size: 24,
|
|
278
|
-
"stroke-width": 2
|
|
279
|
-
})])) : W.value.length === 0 ? (d(), u("div", xe, [s(h(C), {
|
|
280
|
-
size: 32,
|
|
281
|
-
"stroke-width": 1.5,
|
|
282
|
-
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
283
|
-
}), p("p", Se, a(P.value === "all" ? h(A).comments.noCommentsHint : h(A).comments.noComments), 1)])) : (d(), u("div", Ce, [(d(!0), u(m, null, i(W.value, (e) => (d(), u("div", {
|
|
284
|
-
key: e.id,
|
|
285
|
-
class: "tpl-comment-thread",
|
|
286
|
-
"data-testid": "comment-thread"
|
|
287
|
-
}, [
|
|
288
|
-
p("div", we, [
|
|
289
|
-
p("div", Te, [p("div", Ee, [
|
|
290
|
-
p("span", De, a(N.value.isOwn(e) ? h(A).comments.ownedByYou : e.author.name), 1),
|
|
291
|
-
p("span", Oe, a(Nt(e.createdAt)), 1),
|
|
292
|
-
e.updatedAt ? (d(), u("span", ke, " (" + a(h(A).comments.edited) + ") ", 1)) : l("", !0)
|
|
293
|
-
]), p("div", Ae, [
|
|
294
|
-
N.value.canResolve.value ? (d(), u("button", {
|
|
295
|
-
key: 0,
|
|
296
|
-
"data-testid": "comment-resolve",
|
|
297
|
-
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
298
|
-
title: e.resolvedAt ? h(A).comments.unresolve : h(A).comments.resolve,
|
|
299
|
-
onClick: (t) => At(e)
|
|
300
|
-
}, [s(h(ce), {
|
|
301
|
-
size: 13,
|
|
302
|
-
"stroke-width": 2,
|
|
303
|
-
class: "tpl-resolve-icon",
|
|
304
|
-
style: r({ color: e.resolvedAt ? "var(--tpl-primary)" : void 0 })
|
|
305
|
-
}, null, 8, ["style"])], 8, je)) : l("", !0),
|
|
306
|
-
jt(e) ? (d(), u("button", {
|
|
307
|
-
key: 1,
|
|
308
|
-
"data-testid": "comment-edit",
|
|
309
|
-
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
310
|
-
title: h(A).comments.edit,
|
|
311
|
-
onClick: (t) => K(e)
|
|
312
|
-
}, [s(h(w), {
|
|
313
|
-
size: 12,
|
|
314
|
-
"stroke-width": 2
|
|
315
|
-
})], 8, Me)) : l("", !0),
|
|
316
|
-
Mt(e) ? (d(), u("button", {
|
|
317
|
-
key: 2,
|
|
318
|
-
"data-testid": "comment-delete",
|
|
319
|
-
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
320
|
-
title: h(A).comments.delete,
|
|
321
|
-
onClick: (t) => J(e.id)
|
|
322
|
-
}, [s(h(E), {
|
|
323
|
-
size: 12,
|
|
324
|
-
"stroke-width": 2
|
|
325
|
-
})], 8, Ne)) : l("", !0)
|
|
326
|
-
])]),
|
|
327
|
-
s(b, { name: "tpl-resolve" }, {
|
|
328
|
-
default: n(() => [e.resolvedAt ? (d(), u("div", Pe, [s(h(ie), {
|
|
329
|
-
size: 10,
|
|
330
|
-
"stroke-width": 2.5
|
|
331
|
-
}), p("span", null, a(h(j)(h(A).comments.resolvedBy, { name: e.resolvedBy?.name ?? "" })), 1)])) : l("", !0)]),
|
|
332
|
-
_: 2
|
|
333
|
-
}, 1024),
|
|
334
|
-
e.blockId && Ct(e.blockId) ? (d(), u("span", Fe, a(h(A).comments.missingBlock), 1)) : e.blockId ? (d(), u("button", {
|
|
335
|
-
key: 1,
|
|
336
|
-
class: "tpl:mt-1 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:transition-colors tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]",
|
|
337
|
-
onClick: (t) => h(M).selectBlock(e.blockId ?? "")
|
|
338
|
-
}, a(h(A).comments.jumpToBlock), 9, Ie)) : l("", !0),
|
|
339
|
-
R.value === e.id ? (d(), u("div", Le, [o(p("textarea", {
|
|
340
|
-
"onUpdate:modelValue": t[4] ||= (e) => z.value = e,
|
|
341
|
-
class: "tpl:w-full tpl:resize-none tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:font-sans tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]",
|
|
342
|
-
rows: "3",
|
|
343
|
-
onKeydown: (t) => $(t, e.id)
|
|
344
|
-
}, null, 40, Re), [[y, z.value]]), p("div", ze, [p("button", {
|
|
345
|
-
class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-on-primary)]",
|
|
346
|
-
disabled: !z.value.trim() || N.value.isSubmitting.value,
|
|
347
|
-
onClick: (t) => Q(e.id)
|
|
348
|
-
}, a(h(A).comments.save), 9, Be), p("button", {
|
|
349
|
-
class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
|
|
350
|
-
onClick: t[5] ||= (e) => q()
|
|
351
|
-
}, a(h(A).comments.cancel), 1)])])) : (d(), u("p", Ve, a(e.body), 1)),
|
|
352
|
-
V.value === e.id ? (d(), u("div", He, [
|
|
353
|
-
p("span", Ue, a(h(A).comments.deleteConfirm), 1),
|
|
354
|
-
p("button", {
|
|
355
|
-
class: "tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-danger)] tpl:text-[var(--tpl-bg)]",
|
|
356
|
-
"data-testid": "comment-delete-confirm",
|
|
357
|
-
onClick: (t) => kt(e.id)
|
|
358
|
-
}, a(h(A).comments.delete), 9, We),
|
|
359
|
-
p("button", {
|
|
360
|
-
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
361
|
-
onClick: t[6] ||= (e) => Y()
|
|
362
|
-
}, a(h(A).comments.cancel), 1)
|
|
363
|
-
])) : l("", !0),
|
|
364
|
-
R.value !== e.id && V.value !== e.id ? (d(), u("div", Ge, [N.value.canCreate.value ? (d(), u("button", {
|
|
365
|
-
key: 0,
|
|
366
|
-
"data-testid": "comment-reply",
|
|
367
|
-
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
368
|
-
title: h(A).comments.reply,
|
|
369
|
-
onClick: (t) => Dt(e.id)
|
|
370
|
-
}, [s(h(le), {
|
|
371
|
-
size: 13,
|
|
372
|
-
"stroke-width": 2,
|
|
373
|
-
class: "tpl:text-[var(--tpl-primary)]"
|
|
374
|
-
})], 8, Ke)) : l("", !0), (e.replies?.length ?? 0) > 0 ? (d(), u("button", {
|
|
375
|
-
key: 1,
|
|
376
|
-
class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
|
|
377
|
-
onClick: (t) => Et(e.id)
|
|
378
|
-
}, [B.value.has(e.id) ? (d(), g(h(oe), {
|
|
379
|
-
key: 0,
|
|
380
|
-
size: 11,
|
|
381
|
-
"stroke-width": 2
|
|
382
|
-
})) : (d(), g(h(ae), {
|
|
383
|
-
key: 1,
|
|
384
|
-
size: 11,
|
|
385
|
-
"stroke-width": 2
|
|
386
|
-
})), ee(" " + a((e.replies?.length ?? 0) === 1 ? h(j)(h(A).comments.replyOne, { count: String(e.replies?.length ?? 0) }) : h(j)(h(A).comments.replyMany, { count: String(e.replies?.length ?? 0) })), 1)], 8, qe)) : l("", !0)])) : l("", !0)
|
|
387
|
-
]),
|
|
388
|
-
s(b, { name: "tpl-replies" }, {
|
|
389
|
-
default: n(() => [B.value.has(e.id) && (e.replies?.length ?? 0) > 0 ? (d(), u("div", Je, [(d(!0), u(m, null, i(e.replies, (n, r) => (d(), u("div", {
|
|
390
|
-
key: n.id,
|
|
391
|
-
class: f(["tpl-comment-reply-card tpl:relative tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-2.5", r < (e.replies?.length ?? 0) - 1 ? "tpl:mb-2" : ""])
|
|
392
|
-
}, [
|
|
393
|
-
p("div", Ye, [p("div", Xe, [
|
|
394
|
-
p("span", Ze, a(N.value.isOwn(n) ? h(A).comments.ownedByYou : n.author.name), 1),
|
|
395
|
-
p("span", Qe, a(Nt(n.createdAt)), 1),
|
|
396
|
-
n.updatedAt ? (d(), u("span", $e, " (" + a(h(A).comments.edited) + ") ", 1)) : l("", !0)
|
|
397
|
-
]), p("div", et, [jt(n) ? (d(), u("button", {
|
|
398
|
-
key: 0,
|
|
399
|
-
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
400
|
-
title: h(A).comments.edit,
|
|
401
|
-
onClick: (e) => K(n)
|
|
402
|
-
}, [s(h(w), {
|
|
403
|
-
size: 11,
|
|
404
|
-
"stroke-width": 2
|
|
405
|
-
})], 8, tt)) : l("", !0), Mt(n) ? (d(), u("button", {
|
|
406
|
-
key: 1,
|
|
407
|
-
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
408
|
-
title: h(A).comments.delete,
|
|
409
|
-
onClick: (e) => J(n.id)
|
|
410
|
-
}, [s(h(E), {
|
|
411
|
-
size: 11,
|
|
412
|
-
"stroke-width": 2
|
|
413
|
-
})], 8, nt)) : l("", !0)])]),
|
|
414
|
-
R.value === n.id ? (d(), u("div", rt, [o(p("textarea", {
|
|
415
|
-
"onUpdate:modelValue": t[7] ||= (e) => z.value = e,
|
|
416
|
-
class: "tpl:w-full tpl:resize-none tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:font-sans tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]",
|
|
417
|
-
rows: "2",
|
|
418
|
-
onKeydown: (e) => $(e, n.id)
|
|
419
|
-
}, null, 40, it), [[y, z.value]]), p("div", at, [p("button", {
|
|
420
|
-
class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-on-primary)]",
|
|
421
|
-
disabled: !z.value.trim() || N.value.isSubmitting.value,
|
|
422
|
-
onClick: (e) => Q(n.id)
|
|
423
|
-
}, a(h(A).comments.save), 9, ot), p("button", {
|
|
424
|
-
class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
425
|
-
onClick: t[8] ||= (e) => q()
|
|
426
|
-
}, a(h(A).comments.cancel), 1)])])) : (d(), u("p", st, a(n.body), 1)),
|
|
427
|
-
V.value === n.id ? (d(), u("div", ct, [
|
|
428
|
-
p("span", lt, a(h(A).comments.deleteConfirm), 1),
|
|
429
|
-
p("button", {
|
|
430
|
-
class: "tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-danger)] tpl:text-[var(--tpl-bg)]",
|
|
431
|
-
"data-testid": "comment-delete-confirm",
|
|
432
|
-
onClick: (e) => kt(n.id)
|
|
433
|
-
}, a(h(A).comments.delete), 9, ut),
|
|
434
|
-
p("button", {
|
|
435
|
-
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
436
|
-
onClick: t[9] ||= (e) => Y()
|
|
437
|
-
}, a(h(A).comments.cancel), 1)
|
|
438
|
-
])) : l("", !0)
|
|
439
|
-
], 2))), 128))])) : l("", !0)]),
|
|
440
|
-
_: 2
|
|
441
|
-
}, 1024),
|
|
442
|
-
s(b, { name: "tpl-replies" }, {
|
|
443
|
-
default: n(() => [I.value === e.id ? (d(), u("div", dt, [p("div", ft, [
|
|
444
|
-
o(p("textarea", {
|
|
445
|
-
"onUpdate:modelValue": t[10] ||= (e) => L.value = e,
|
|
446
|
-
class: "tpl:max-h-24 tpl:flex-1 tpl:resize-none tpl:border-none tpl:bg-transparent tpl:font-sans tpl:text-xs tpl:outline-none tpl:text-[var(--tpl-text)]",
|
|
447
|
-
placeholder: h(A).comments.replyPlaceholder,
|
|
448
|
-
rows: "2",
|
|
449
|
-
onKeydown: (t) => Ft(t, e.id)
|
|
450
|
-
}, null, 40, pt), [[y, L.value]]),
|
|
451
|
-
p("button", {
|
|
452
|
-
class: "tpl-comments-send-btn tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
|
|
453
|
-
disabled: !L.value.trim() || N.value.isSubmitting.value,
|
|
454
|
-
onClick: (t) => Z(e.id)
|
|
455
|
-
}, [s(h(T), {
|
|
456
|
-
size: 14,
|
|
457
|
-
"stroke-width": 2
|
|
458
|
-
})], 8, mt),
|
|
459
|
-
p("button", {
|
|
460
|
-
class: "tpl-comments-send-btn tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:text-[var(--tpl-text-muted)]",
|
|
461
|
-
onClick: t[11] ||= (e) => Ot()
|
|
462
|
-
}, [s(h(D), {
|
|
463
|
-
size: 14,
|
|
464
|
-
"stroke-width": 2
|
|
465
|
-
})])
|
|
466
|
-
])])) : l("", !0)]),
|
|
467
|
-
_: 2
|
|
468
|
-
}, 1024)
|
|
469
|
-
]))), 128))]))]),
|
|
470
|
-
N.value.canCreate.value ? (d(), u("div", ht, [wt.value ? (d(), u("div", gt, a(h(A).comments.saveTemplateFirst), 1)) : (d(), u("div", _t, [o(p("textarea", {
|
|
471
|
-
ref_key: "newCommentInput",
|
|
472
|
-
ref: H,
|
|
473
|
-
"onUpdate:modelValue": t[12] ||= (e) => F.value = e,
|
|
474
|
-
class: "tpl:max-h-24 tpl:min-h-[48px] tpl:flex-1 tpl:resize-none tpl:border-none tpl:bg-transparent tpl:font-sans tpl:text-xs tpl:outline-none tpl:text-[var(--tpl-text)]",
|
|
475
|
-
"data-testid": "comments-input",
|
|
476
|
-
placeholder: h(A).comments.placeholder,
|
|
477
|
-
disabled: N.value.isSubmitting.value,
|
|
478
|
-
rows: "2",
|
|
479
|
-
onKeydown: Pt
|
|
480
|
-
}, null, 40, vt), [[y, F.value]]), p("button", {
|
|
481
|
-
class: "tpl-comments-send-btn tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
|
|
482
|
-
"data-testid": "comments-send",
|
|
483
|
-
disabled: !F.value.trim() || N.value.isSubmitting.value,
|
|
484
|
-
onClick: X
|
|
485
|
-
}, [N.value.isSubmitting.value ? (d(), g(h(S), {
|
|
486
|
-
key: 0,
|
|
487
|
-
class: "tpl-spinner",
|
|
488
|
-
size: 16,
|
|
489
|
-
"stroke-width": 2
|
|
490
|
-
})) : (d(), g(h(T), {
|
|
491
|
-
key: 1,
|
|
492
|
-
size: 16,
|
|
493
|
-
"stroke-width": 2
|
|
494
|
-
}))], 8, yt)]))])) : l("", !0)
|
|
495
|
-
], 8, ue)) : l("", !0)]),
|
|
496
|
-
_: 1
|
|
497
|
-
}));
|
|
498
|
-
}
|
|
499
|
-
}), [["__scopeId", "data-v-7efe6a5c"]]);
|
|
500
|
-
export { k as default };
|