@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,526 @@
|
|
|
1
|
+
import { B as e, Ft as t, M as n, Mt as r, O as i, P as a, Pt as o, U as s, W as c, _ as l, c as u, ct as d, d as f, et as p, f as m, g as ee, l as h, r as g, u as _, w as te, y as v } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
2
|
+
import { a as y, t as b } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
|
|
3
|
+
import { t as x } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
4
|
+
import { t as S } from "./createLucideIcon-CgDE3xAR.js";
|
|
5
|
+
import { t as ne } from "./check-XMnOOIEC.js";
|
|
6
|
+
import { t as re } from "./chevron-down-DmamTEWQ.js";
|
|
7
|
+
import { t as ie } from "./chevron-up-Dw7woXj8.js";
|
|
8
|
+
import { t as C } from "./loader-circle-k6xvKgUB.js";
|
|
9
|
+
import { t as w } from "./message-circle-C23R6OJR.js";
|
|
10
|
+
import { t as T } from "./pencil-BK7GrQuA.js";
|
|
11
|
+
import { t as E } from "./send-blAsIBBg.js";
|
|
12
|
+
import { t as D } from "./trash-B99WixTA.js";
|
|
13
|
+
import { t as O } from "./x-BIBStNMS.js";
|
|
14
|
+
import { O as ae, ot as oe, v as se } from "./keys-BCqskl51.js";
|
|
15
|
+
import { t as ce } from "./useI18n-CgtvtF4C.js";
|
|
16
|
+
import { t as le } from "./languageName-DEEOhDWI.js";
|
|
17
|
+
import { u as ue } from "./styleConstants-CgiNKdnc.js";
|
|
18
|
+
import { t as de } from "./formatRelativeTime-BTD8Ktt-.js";
|
|
19
|
+
var fe = S({
|
|
20
|
+
name: "circle-check",
|
|
21
|
+
size: 24,
|
|
22
|
+
node: [["circle", {
|
|
23
|
+
cx: "12",
|
|
24
|
+
cy: "12",
|
|
25
|
+
r: "10",
|
|
26
|
+
key: "1mglay"
|
|
27
|
+
}], ["path", {
|
|
28
|
+
d: "m16 9-5.5 5.5L8 12",
|
|
29
|
+
key: "xofnsj"
|
|
30
|
+
}]],
|
|
31
|
+
aliases: ["check-circle-2"]
|
|
32
|
+
}), pe = S({
|
|
33
|
+
name: "reply",
|
|
34
|
+
size: 24,
|
|
35
|
+
node: [["path", {
|
|
36
|
+
d: "M20 18v-2a4 4 0 0 0-4-4H4",
|
|
37
|
+
key: "5vmcpk"
|
|
38
|
+
}], ["path", {
|
|
39
|
+
d: "m9 17-5-5 5-5",
|
|
40
|
+
key: "nvlc11"
|
|
41
|
+
}]]
|
|
42
|
+
}), me = ["aria-label"], he = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, ge = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]" }, _e = {
|
|
43
|
+
key: 0,
|
|
44
|
+
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)]"
|
|
45
|
+
}, ve = ["aria-label"], ye = { class: "tpl:flex tpl:flex-wrap tpl:gap-1 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2" }, be = ["aria-pressed"], xe = ["aria-pressed"], Se = ["aria-pressed"], Ce = ["aria-pressed"], we = { class: "tpl:flex-1 tpl:overflow-y-auto" }, Te = {
|
|
46
|
+
key: 0,
|
|
47
|
+
class: "tpl:flex tpl:h-full tpl:items-center tpl:justify-center"
|
|
48
|
+
}, Ee = {
|
|
49
|
+
key: 1,
|
|
50
|
+
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:px-6 tpl:text-center"
|
|
51
|
+
}, De = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Oe = {
|
|
52
|
+
key: 2,
|
|
53
|
+
class: "tpl:flex tpl:flex-col tpl:gap-3 tpl:p-3"
|
|
54
|
+
}, ke = { class: "tpl-comment-card tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-3" }, Ae = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, je = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-1.5" }, Me = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Ne = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, Pe = {
|
|
55
|
+
key: 1,
|
|
56
|
+
class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
|
|
57
|
+
}, Fe = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, Ie = ["title", "onClick"], Le = ["title", "onClick"], Re = ["title", "onClick"], ze = {
|
|
58
|
+
key: 0,
|
|
59
|
+
class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1 tpl:text-[10px] tpl:text-[var(--tpl-primary)]"
|
|
60
|
+
}, Be = {
|
|
61
|
+
key: 0,
|
|
62
|
+
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)]"
|
|
63
|
+
}, Ve = ["onClick"], He = {
|
|
64
|
+
key: 2,
|
|
65
|
+
class: "tpl:mt-2"
|
|
66
|
+
}, Ue = ["onKeydown"], We = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, Ge = ["disabled", "onClick"], Ke = {
|
|
67
|
+
key: 3,
|
|
68
|
+
class: "tpl:mt-1.5 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
|
|
69
|
+
}, qe = {
|
|
70
|
+
key: 4,
|
|
71
|
+
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)]"
|
|
72
|
+
}, Je = { class: "tpl:flex-1" }, Ye = ["onClick"], Xe = {
|
|
73
|
+
key: 5,
|
|
74
|
+
class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2"
|
|
75
|
+
}, Ze = ["title", "onClick"], Qe = ["onClick"], $e = {
|
|
76
|
+
key: 0,
|
|
77
|
+
class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
|
|
78
|
+
}, et = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, tt = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-1.5" }, nt = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, rt = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, it = {
|
|
79
|
+
key: 1,
|
|
80
|
+
class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
|
|
81
|
+
}, at = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, ot = ["title", "onClick"], st = ["title", "onClick"], ct = {
|
|
82
|
+
key: 0,
|
|
83
|
+
class: "tpl:mt-1.5"
|
|
84
|
+
}, lt = ["onKeydown"], ut = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, dt = ["disabled", "onClick"], ft = {
|
|
85
|
+
key: 1,
|
|
86
|
+
class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
|
|
87
|
+
}, pt = {
|
|
88
|
+
key: 2,
|
|
89
|
+
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)]"
|
|
90
|
+
}, mt = { class: "tpl:flex-1" }, ht = ["onClick"], gt = {
|
|
91
|
+
key: 0,
|
|
92
|
+
class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
|
|
93
|
+
}, _t = { 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)]" }, vt = ["placeholder", "onKeydown"], yt = ["disabled", "onClick"], bt = {
|
|
94
|
+
key: 0,
|
|
95
|
+
class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]"
|
|
96
|
+
}, xt = {
|
|
97
|
+
key: 0,
|
|
98
|
+
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)]"
|
|
99
|
+
}, St = {
|
|
100
|
+
key: 1,
|
|
101
|
+
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)]"
|
|
102
|
+
}, Ct = ["placeholder", "disabled"], wt = ["disabled"], k = /*#__PURE__*/ x(/* @__PURE__ */ v({
|
|
103
|
+
__name: "CommentsSidebar",
|
|
104
|
+
props: {
|
|
105
|
+
visible: { type: Boolean },
|
|
106
|
+
feature: {}
|
|
107
|
+
},
|
|
108
|
+
emits: ["close"],
|
|
109
|
+
setup(v, { expose: x, emit: S }) {
|
|
110
|
+
let k = v, Tt = S, { t: A, format: j } = ce(), M = oe(se, "CommentsSidebar"), N = u(() => k.feature.headless), P = p("unresolved"), F = te(ae, void 0), I = p(!1), Et = u(() => M.activeLocale?.value ?? M.content.value.settings.locale);
|
|
111
|
+
function L(e) {
|
|
112
|
+
return e.locale ?? M.content.value.settings.locale;
|
|
113
|
+
}
|
|
114
|
+
let R = p(""), z = p(null), B = p(""), V = p(null), H = p(""), U = p(/* @__PURE__ */ new Set()), W = p(null), G = p(null), K = u(() => k.feature.filterBlockId.value);
|
|
115
|
+
e(K, (e) => {
|
|
116
|
+
e && (P.value = "block");
|
|
117
|
+
}, { immediate: !0 });
|
|
118
|
+
let Dt = u(() => N.value.isLoading.value && N.value.comments.value.length === 0), Ot = u(() => {
|
|
119
|
+
let e = /* @__PURE__ */ new Set();
|
|
120
|
+
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);
|
|
121
|
+
return e;
|
|
122
|
+
});
|
|
123
|
+
function kt(e) {
|
|
124
|
+
return e ? !Ot.value.has(e) : !1;
|
|
125
|
+
}
|
|
126
|
+
let At = u(() => P.value !== "block" || !K.value ? !1 : k.feature.capability.isBlockSaved(K.value) === !1), q = u(() => {
|
|
127
|
+
let e = N.value.comments.value;
|
|
128
|
+
return P.value === "unresolved" ? e = e.filter((e) => !e.resolvedAt) : P.value === "block" && K.value && (e = e.filter((e) => e.blockId === K.value)), I.value && (e = e.filter((e) => [e, ...e.replies ?? []].some((e) => L(e) === Et.value))), e;
|
|
129
|
+
});
|
|
130
|
+
e(() => M.state.selectedBlockId, (e) => {
|
|
131
|
+
P.value === "block" && e && (k.feature.filterBlockId.value = e);
|
|
132
|
+
});
|
|
133
|
+
function J(e, t) {
|
|
134
|
+
P.value = e, k.feature.filterBlockId.value = e === "block" ? t ?? null : null;
|
|
135
|
+
}
|
|
136
|
+
function jt(e) {
|
|
137
|
+
J("block", e);
|
|
138
|
+
}
|
|
139
|
+
function Mt(e) {
|
|
140
|
+
U.value.has(e) ? U.value.delete(e) : U.value.add(e);
|
|
141
|
+
}
|
|
142
|
+
function Nt(e) {
|
|
143
|
+
z.value = e, B.value = "", V.value = null, U.value.has(e) || U.value.add(e);
|
|
144
|
+
}
|
|
145
|
+
function Pt() {
|
|
146
|
+
z.value = null, B.value = "";
|
|
147
|
+
}
|
|
148
|
+
function Y(e) {
|
|
149
|
+
V.value = e.id, H.value = e.body, z.value = null;
|
|
150
|
+
}
|
|
151
|
+
function X() {
|
|
152
|
+
V.value = null, H.value = "";
|
|
153
|
+
}
|
|
154
|
+
function Ft(e) {
|
|
155
|
+
W.value = e;
|
|
156
|
+
}
|
|
157
|
+
function It() {
|
|
158
|
+
W.value = null;
|
|
159
|
+
}
|
|
160
|
+
async function Lt() {
|
|
161
|
+
let e = R.value.trim();
|
|
162
|
+
if (!e || !N.value.canCreate.value) return;
|
|
163
|
+
let t = P.value === "block" ? K.value : void 0;
|
|
164
|
+
try {
|
|
165
|
+
await N.value.create({
|
|
166
|
+
body: e,
|
|
167
|
+
blockId: t ?? void 0,
|
|
168
|
+
locale: M.activeLocale?.value ?? M.content.value.settings.locale
|
|
169
|
+
}), R.value = "";
|
|
170
|
+
} catch {}
|
|
171
|
+
}
|
|
172
|
+
async function Rt(e) {
|
|
173
|
+
let t = B.value.trim();
|
|
174
|
+
if (!t || !N.value.canCreate.value) return;
|
|
175
|
+
let n = N.value.find(e);
|
|
176
|
+
try {
|
|
177
|
+
await N.value.create({
|
|
178
|
+
body: t,
|
|
179
|
+
blockId: n?.blockId ?? void 0,
|
|
180
|
+
parentId: e,
|
|
181
|
+
locale: M.activeLocale?.value ?? M.content.value.settings.locale
|
|
182
|
+
}), z.value = null, B.value = "";
|
|
183
|
+
} catch {}
|
|
184
|
+
}
|
|
185
|
+
async function Z(e) {
|
|
186
|
+
let t = H.value.trim();
|
|
187
|
+
if (t) try {
|
|
188
|
+
await N.value.update(e, { body: t }), V.value = null, H.value = "";
|
|
189
|
+
} catch {}
|
|
190
|
+
}
|
|
191
|
+
async function zt(e) {
|
|
192
|
+
try {
|
|
193
|
+
await N.value.remove(e);
|
|
194
|
+
} catch {}
|
|
195
|
+
W.value = null;
|
|
196
|
+
}
|
|
197
|
+
async function Bt(e) {
|
|
198
|
+
try {
|
|
199
|
+
await N.value.setResolved(e.id, !e.resolvedAt);
|
|
200
|
+
} catch {}
|
|
201
|
+
}
|
|
202
|
+
function Q(e) {
|
|
203
|
+
return N.value.canUpdate.value && N.value.isOwn(e);
|
|
204
|
+
}
|
|
205
|
+
function Vt(e) {
|
|
206
|
+
return N.value.canDelete.value && N.value.isOwn(e);
|
|
207
|
+
}
|
|
208
|
+
function Ht(e) {
|
|
209
|
+
return de(e, A.time) ?? e;
|
|
210
|
+
}
|
|
211
|
+
function Ut(e) {
|
|
212
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Lt());
|
|
213
|
+
}
|
|
214
|
+
function Wt(e, t) {
|
|
215
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Rt(t));
|
|
216
|
+
}
|
|
217
|
+
function $(e, t) {
|
|
218
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Z(t)), e.key === "Escape" && X();
|
|
219
|
+
}
|
|
220
|
+
function Gt() {
|
|
221
|
+
i(() => {
|
|
222
|
+
G.value?.focus();
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
return x({
|
|
226
|
+
filterByBlock: jt,
|
|
227
|
+
focusNewComment: Gt
|
|
228
|
+
}), (e, i) => (n(), _(b, {
|
|
229
|
+
"enter-active-class": "tpl-comments-slide-enter-active",
|
|
230
|
+
"enter-from-class": "tpl:translate-x-full",
|
|
231
|
+
"enter-to-class": "tpl:translate-x-0",
|
|
232
|
+
"leave-active-class": "tpl-comments-slide-leave-active",
|
|
233
|
+
"leave-from-class": "tpl:translate-x-0",
|
|
234
|
+
"leave-to-class": "tpl:translate-x-full"
|
|
235
|
+
}, {
|
|
236
|
+
default: s(() => [v.visible ? (n(), m("div", {
|
|
237
|
+
key: 0,
|
|
238
|
+
role: "complementary",
|
|
239
|
+
"aria-label": d(A).comments.title,
|
|
240
|
+
"data-testid": "comments-sidebar",
|
|
241
|
+
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)]"
|
|
242
|
+
}, [
|
|
243
|
+
h("div", he, [h("div", ge, [
|
|
244
|
+
l(d(w), {
|
|
245
|
+
size: 13,
|
|
246
|
+
"stroke-width": 2
|
|
247
|
+
}),
|
|
248
|
+
h("span", null, t(d(A).comments.title), 1),
|
|
249
|
+
v.feature.unresolvedCount.value > 0 ? (n(), m("span", _e, t(v.feature.unresolvedCount.value), 1)) : f("", !0)
|
|
250
|
+
]), h("button", {
|
|
251
|
+
type: "button",
|
|
252
|
+
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
|
|
253
|
+
"aria-label": d(A).comments.close,
|
|
254
|
+
onClick: i[0] ||= (e) => Tt("close")
|
|
255
|
+
}, [l(d(O), {
|
|
256
|
+
size: 14,
|
|
257
|
+
"stroke-width": 2
|
|
258
|
+
})], 8, ve)]),
|
|
259
|
+
h("div", ye, [
|
|
260
|
+
h("button", {
|
|
261
|
+
type: "button",
|
|
262
|
+
class: r(["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" : ""]),
|
|
263
|
+
"aria-pressed": P.value === "unresolved",
|
|
264
|
+
"data-testid": "comments-filter-unresolved",
|
|
265
|
+
onClick: i[1] ||= (e) => J("unresolved")
|
|
266
|
+
}, t(d(A).comments.filterUnresolved), 11, be),
|
|
267
|
+
h("button", {
|
|
268
|
+
type: "button",
|
|
269
|
+
class: r(["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" : ""]),
|
|
270
|
+
"aria-pressed": P.value === "all",
|
|
271
|
+
"data-testid": "comments-filter-all",
|
|
272
|
+
onClick: i[2] ||= (e) => J("all")
|
|
273
|
+
}, t(d(A).comments.filterAll), 11, xe),
|
|
274
|
+
d(M).state.selectedBlockId ? (n(), m("button", {
|
|
275
|
+
key: 0,
|
|
276
|
+
type: "button",
|
|
277
|
+
class: r(["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" : ""]),
|
|
278
|
+
"aria-pressed": P.value === "block",
|
|
279
|
+
"data-testid": "comments-filter-block",
|
|
280
|
+
onClick: i[3] ||= (e) => J("block", d(M).state.selectedBlockId ?? void 0)
|
|
281
|
+
}, t(d(A).comments.filterBlock), 11, Se)) : f("", !0),
|
|
282
|
+
d(F) ? (n(), m("button", {
|
|
283
|
+
key: 1,
|
|
284
|
+
type: "button",
|
|
285
|
+
"data-testid": "comments-filter-language",
|
|
286
|
+
class: r(["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)]", I.value ? "tpl-comment-filter--active" : ""]),
|
|
287
|
+
"aria-pressed": I.value,
|
|
288
|
+
onClick: i[4] ||= (e) => I.value = !I.value
|
|
289
|
+
}, t(d(A).comments.filterLanguage), 11, Ce)) : f("", !0)
|
|
290
|
+
]),
|
|
291
|
+
h("div", we, [Dt.value ? (n(), m("div", Te, [l(d(C), {
|
|
292
|
+
class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
|
|
293
|
+
size: 24,
|
|
294
|
+
"stroke-width": 2
|
|
295
|
+
})])) : q.value.length === 0 ? (n(), m("div", Ee, [l(d(w), {
|
|
296
|
+
size: 32,
|
|
297
|
+
"stroke-width": 1.5,
|
|
298
|
+
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
299
|
+
}), h("p", De, t(P.value === "all" ? d(A).comments.noCommentsHint : d(A).comments.noComments), 1)])) : (n(), m("div", Oe, [(n(!0), m(g, null, a(q.value, (e) => (n(), m("div", {
|
|
300
|
+
key: e.id,
|
|
301
|
+
class: "tpl-comment-thread",
|
|
302
|
+
"data-testid": "comment-thread"
|
|
303
|
+
}, [
|
|
304
|
+
h("div", ke, [
|
|
305
|
+
h("div", Ae, [h("div", je, [
|
|
306
|
+
h("span", Me, t(N.value.isOwn(e) ? d(A).comments.ownedByYou : e.author.name), 1),
|
|
307
|
+
h("span", Ne, t(Ht(e.createdAt)), 1),
|
|
308
|
+
d(F) ? (n(), m("span", {
|
|
309
|
+
key: 0,
|
|
310
|
+
"data-testid": "comment-locale-badge",
|
|
311
|
+
class: r(d(ue))
|
|
312
|
+
}, t(d(le)(L(e))), 3)) : f("", !0),
|
|
313
|
+
e.updatedAt ? (n(), m("span", Pe, " (" + t(d(A).comments.edited) + ") ", 1)) : f("", !0)
|
|
314
|
+
]), h("div", Fe, [
|
|
315
|
+
N.value.canResolve.value ? (n(), m("button", {
|
|
316
|
+
key: 0,
|
|
317
|
+
"data-testid": "comment-resolve",
|
|
318
|
+
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
319
|
+
title: e.resolvedAt ? d(A).comments.unresolve : d(A).comments.resolve,
|
|
320
|
+
onClick: (t) => Bt(e)
|
|
321
|
+
}, [l(d(fe), {
|
|
322
|
+
size: 13,
|
|
323
|
+
"stroke-width": 2,
|
|
324
|
+
class: "tpl-resolve-icon",
|
|
325
|
+
style: o({ color: e.resolvedAt ? "var(--tpl-primary)" : void 0 })
|
|
326
|
+
}, null, 8, ["style"])], 8, Ie)) : f("", !0),
|
|
327
|
+
Q(e) ? (n(), m("button", {
|
|
328
|
+
key: 1,
|
|
329
|
+
"data-testid": "comment-edit",
|
|
330
|
+
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
331
|
+
title: d(A).comments.edit,
|
|
332
|
+
onClick: (t) => Y(e)
|
|
333
|
+
}, [l(d(T), {
|
|
334
|
+
size: 12,
|
|
335
|
+
"stroke-width": 2
|
|
336
|
+
})], 8, Le)) : f("", !0),
|
|
337
|
+
Vt(e) ? (n(), m("button", {
|
|
338
|
+
key: 2,
|
|
339
|
+
"data-testid": "comment-delete",
|
|
340
|
+
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
341
|
+
title: d(A).comments.delete,
|
|
342
|
+
onClick: (t) => Ft(e.id)
|
|
343
|
+
}, [l(d(D), {
|
|
344
|
+
size: 12,
|
|
345
|
+
"stroke-width": 2
|
|
346
|
+
})], 8, Re)) : f("", !0)
|
|
347
|
+
])]),
|
|
348
|
+
l(b, { name: "tpl-resolve" }, {
|
|
349
|
+
default: s(() => [e.resolvedAt ? (n(), m("div", ze, [l(d(ne), {
|
|
350
|
+
size: 10,
|
|
351
|
+
"stroke-width": 2.5
|
|
352
|
+
}), h("span", null, t(d(j)(d(A).comments.resolvedBy, { name: e.resolvedBy?.name ?? "" })), 1)])) : f("", !0)]),
|
|
353
|
+
_: 2
|
|
354
|
+
}, 1024),
|
|
355
|
+
e.blockId && kt(e.blockId) ? (n(), m("span", Be, t(d(A).comments.missingBlock), 1)) : e.blockId ? (n(), m("button", {
|
|
356
|
+
key: 1,
|
|
357
|
+
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)]",
|
|
358
|
+
onClick: (t) => d(M).selectBlock(e.blockId ?? "")
|
|
359
|
+
}, t(d(A).comments.jumpToBlock), 9, Ve)) : f("", !0),
|
|
360
|
+
V.value === e.id ? (n(), m("div", He, [c(h("textarea", {
|
|
361
|
+
"onUpdate:modelValue": i[5] ||= (e) => H.value = e,
|
|
362
|
+
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)]",
|
|
363
|
+
rows: "3",
|
|
364
|
+
onKeydown: (t) => $(t, e.id)
|
|
365
|
+
}, null, 40, Ue), [[y, H.value]]), h("div", We, [h("button", {
|
|
366
|
+
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)]",
|
|
367
|
+
disabled: !H.value.trim() || N.value.isSubmitting.value,
|
|
368
|
+
onClick: (t) => Z(e.id)
|
|
369
|
+
}, t(d(A).comments.save), 9, Ge), h("button", {
|
|
370
|
+
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)]",
|
|
371
|
+
onClick: i[6] ||= (e) => X()
|
|
372
|
+
}, t(d(A).comments.cancel), 1)])])) : (n(), m("p", Ke, t(e.body), 1)),
|
|
373
|
+
W.value === e.id ? (n(), m("div", qe, [
|
|
374
|
+
h("span", Je, t(d(A).comments.deleteConfirm), 1),
|
|
375
|
+
h("button", {
|
|
376
|
+
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)]",
|
|
377
|
+
"data-testid": "comment-delete-confirm",
|
|
378
|
+
onClick: (t) => zt(e.id)
|
|
379
|
+
}, t(d(A).comments.delete), 9, Ye),
|
|
380
|
+
h("button", {
|
|
381
|
+
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
382
|
+
onClick: i[7] ||= (e) => It()
|
|
383
|
+
}, t(d(A).comments.cancel), 1)
|
|
384
|
+
])) : f("", !0),
|
|
385
|
+
V.value !== e.id && W.value !== e.id ? (n(), m("div", Xe, [N.value.canCreate.value ? (n(), m("button", {
|
|
386
|
+
key: 0,
|
|
387
|
+
"data-testid": "comment-reply",
|
|
388
|
+
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
389
|
+
title: d(A).comments.reply,
|
|
390
|
+
onClick: (t) => Nt(e.id)
|
|
391
|
+
}, [l(d(pe), {
|
|
392
|
+
size: 13,
|
|
393
|
+
"stroke-width": 2,
|
|
394
|
+
class: "tpl:text-[var(--tpl-primary)]"
|
|
395
|
+
})], 8, Ze)) : f("", !0), (e.replies?.length ?? 0) > 0 ? (n(), m("button", {
|
|
396
|
+
key: 1,
|
|
397
|
+
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)]",
|
|
398
|
+
onClick: (t) => Mt(e.id)
|
|
399
|
+
}, [U.value.has(e.id) ? (n(), _(d(ie), {
|
|
400
|
+
key: 0,
|
|
401
|
+
size: 11,
|
|
402
|
+
"stroke-width": 2
|
|
403
|
+
})) : (n(), _(d(re), {
|
|
404
|
+
key: 1,
|
|
405
|
+
size: 11,
|
|
406
|
+
"stroke-width": 2
|
|
407
|
+
})), ee(" " + t((e.replies?.length ?? 0) === 1 ? d(j)(d(A).comments.replyOne, { count: String(e.replies?.length ?? 0) }) : d(j)(d(A).comments.replyMany, { count: String(e.replies?.length ?? 0) })), 1)], 8, Qe)) : f("", !0)])) : f("", !0)
|
|
408
|
+
]),
|
|
409
|
+
l(b, { name: "tpl-replies" }, {
|
|
410
|
+
default: s(() => [U.value.has(e.id) && (e.replies?.length ?? 0) > 0 ? (n(), m("div", $e, [(n(!0), m(g, null, a(e.replies, (a, o) => (n(), m("div", {
|
|
411
|
+
key: a.id,
|
|
412
|
+
class: r(["tpl-comment-reply-card tpl:relative tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-2.5", o < (e.replies?.length ?? 0) - 1 ? "tpl:mb-2" : ""])
|
|
413
|
+
}, [
|
|
414
|
+
h("div", et, [h("div", tt, [
|
|
415
|
+
h("span", nt, t(N.value.isOwn(a) ? d(A).comments.ownedByYou : a.author.name), 1),
|
|
416
|
+
h("span", rt, t(Ht(a.createdAt)), 1),
|
|
417
|
+
d(F) ? (n(), m("span", {
|
|
418
|
+
key: 0,
|
|
419
|
+
"data-testid": "comment-locale-badge",
|
|
420
|
+
class: r(d(ue))
|
|
421
|
+
}, t(d(le)(L(a))), 3)) : f("", !0),
|
|
422
|
+
a.updatedAt ? (n(), m("span", it, " (" + t(d(A).comments.edited) + ") ", 1)) : f("", !0)
|
|
423
|
+
]), h("div", at, [Q(a) ? (n(), m("button", {
|
|
424
|
+
key: 0,
|
|
425
|
+
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
426
|
+
title: d(A).comments.edit,
|
|
427
|
+
onClick: (e) => Y(a)
|
|
428
|
+
}, [l(d(T), {
|
|
429
|
+
size: 11,
|
|
430
|
+
"stroke-width": 2
|
|
431
|
+
})], 8, ot)) : f("", !0), Vt(a) ? (n(), m("button", {
|
|
432
|
+
key: 1,
|
|
433
|
+
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
434
|
+
title: d(A).comments.delete,
|
|
435
|
+
onClick: (e) => Ft(a.id)
|
|
436
|
+
}, [l(d(D), {
|
|
437
|
+
size: 11,
|
|
438
|
+
"stroke-width": 2
|
|
439
|
+
})], 8, st)) : f("", !0)])]),
|
|
440
|
+
V.value === a.id ? (n(), m("div", ct, [c(h("textarea", {
|
|
441
|
+
"onUpdate:modelValue": i[8] ||= (e) => H.value = e,
|
|
442
|
+
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)]",
|
|
443
|
+
rows: "2",
|
|
444
|
+
onKeydown: (e) => $(e, a.id)
|
|
445
|
+
}, null, 40, lt), [[y, H.value]]), h("div", ut, [h("button", {
|
|
446
|
+
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)]",
|
|
447
|
+
disabled: !H.value.trim() || N.value.isSubmitting.value,
|
|
448
|
+
onClick: (e) => Z(a.id)
|
|
449
|
+
}, t(d(A).comments.save), 9, dt), h("button", {
|
|
450
|
+
class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
451
|
+
onClick: i[9] ||= (e) => X()
|
|
452
|
+
}, t(d(A).comments.cancel), 1)])])) : (n(), m("p", ft, t(a.body), 1)),
|
|
453
|
+
W.value === a.id ? (n(), m("div", pt, [
|
|
454
|
+
h("span", mt, t(d(A).comments.deleteConfirm), 1),
|
|
455
|
+
h("button", {
|
|
456
|
+
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)]",
|
|
457
|
+
"data-testid": "comment-delete-confirm",
|
|
458
|
+
onClick: (e) => zt(a.id)
|
|
459
|
+
}, t(d(A).comments.delete), 9, ht),
|
|
460
|
+
h("button", {
|
|
461
|
+
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
462
|
+
onClick: i[10] ||= (e) => It()
|
|
463
|
+
}, t(d(A).comments.cancel), 1)
|
|
464
|
+
])) : f("", !0)
|
|
465
|
+
], 2))), 128))])) : f("", !0)]),
|
|
466
|
+
_: 2
|
|
467
|
+
}, 1024),
|
|
468
|
+
l(b, { name: "tpl-replies" }, {
|
|
469
|
+
default: s(() => [z.value === e.id ? (n(), m("div", gt, [h("div", _t, [
|
|
470
|
+
c(h("textarea", {
|
|
471
|
+
"onUpdate:modelValue": i[11] ||= (e) => B.value = e,
|
|
472
|
+
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)]",
|
|
473
|
+
placeholder: d(A).comments.replyPlaceholder,
|
|
474
|
+
rows: "2",
|
|
475
|
+
onKeydown: (t) => Wt(t, e.id)
|
|
476
|
+
}, null, 40, vt), [[y, B.value]]),
|
|
477
|
+
h("button", {
|
|
478
|
+
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)]",
|
|
479
|
+
disabled: !B.value.trim() || N.value.isSubmitting.value,
|
|
480
|
+
onClick: (t) => Rt(e.id)
|
|
481
|
+
}, [l(d(E), {
|
|
482
|
+
size: 14,
|
|
483
|
+
"stroke-width": 2
|
|
484
|
+
})], 8, yt),
|
|
485
|
+
h("button", {
|
|
486
|
+
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)]",
|
|
487
|
+
onClick: i[12] ||= (e) => Pt()
|
|
488
|
+
}, [l(d(O), {
|
|
489
|
+
size: 14,
|
|
490
|
+
"stroke-width": 2
|
|
491
|
+
})])
|
|
492
|
+
])])) : f("", !0)]),
|
|
493
|
+
_: 2
|
|
494
|
+
}, 1024)
|
|
495
|
+
]))), 128))]))]),
|
|
496
|
+
N.value.canCreate.value ? (n(), m("div", bt, [At.value ? (n(), m("div", xt, t(d(A).comments.saveTemplateFirst), 1)) : (n(), m("div", St, [c(h("textarea", {
|
|
497
|
+
ref_key: "newCommentInput",
|
|
498
|
+
ref: G,
|
|
499
|
+
"onUpdate:modelValue": i[13] ||= (e) => R.value = e,
|
|
500
|
+
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)]",
|
|
501
|
+
"data-testid": "comments-input",
|
|
502
|
+
placeholder: d(A).comments.placeholder,
|
|
503
|
+
disabled: N.value.isSubmitting.value,
|
|
504
|
+
rows: "2",
|
|
505
|
+
onKeydown: Ut
|
|
506
|
+
}, null, 40, Ct), [[y, R.value]]), h("button", {
|
|
507
|
+
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)]",
|
|
508
|
+
"data-testid": "comments-send",
|
|
509
|
+
disabled: !R.value.trim() || N.value.isSubmitting.value,
|
|
510
|
+
onClick: Lt
|
|
511
|
+
}, [N.value.isSubmitting.value ? (n(), _(d(C), {
|
|
512
|
+
key: 0,
|
|
513
|
+
class: "tpl-spinner",
|
|
514
|
+
size: 16,
|
|
515
|
+
"stroke-width": 2
|
|
516
|
+
})) : (n(), _(d(E), {
|
|
517
|
+
key: 1,
|
|
518
|
+
size: 16,
|
|
519
|
+
"stroke-width": 2
|
|
520
|
+
}))], 8, wt)]))])) : f("", !0)
|
|
521
|
+
], 8, me)) : f("", !0)]),
|
|
522
|
+
_: 1
|
|
523
|
+
}));
|
|
524
|
+
}
|
|
525
|
+
}), [["__scopeId", "data-v-ebc3c2c6"]]);
|
|
526
|
+
export { k as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Ft as e, M as t, P as n, Pt as r, c as i, ct as a, d as o, et as s, f as c, l, r as u, y as d } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
2
|
+
import { b as f, ot as p } from "./keys-BCqskl51.js";
|
|
3
|
+
import { t as m } from "./useI18n-CgtvtF4C.js";
|
|
4
|
+
import { g as h } from "./dist-CX7skkvG.js";
|
|
5
5
|
// src/components/blocks/CountdownBlock.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var g = {
|
|
7
7
|
key: 0,
|
|
@@ -16,8 +16,8 @@ var g = {
|
|
|
16
16
|
viewport: {}
|
|
17
17
|
},
|
|
18
18
|
setup(d) {
|
|
19
|
-
let y = d, { t: b } =
|
|
20
|
-
|
|
19
|
+
let y = d, { t: b } = m(), x = s(Date.now());
|
|
20
|
+
h(() => {
|
|
21
21
|
x.value = Date.now();
|
|
22
22
|
}, 1e3);
|
|
23
23
|
let S = i(() => {
|
|
@@ -53,7 +53,7 @@ var g = {
|
|
|
53
53
|
value: String(w.value.seconds).padStart(2, "0"),
|
|
54
54
|
label: y.block.labelSeconds
|
|
55
55
|
}), e;
|
|
56
|
-
}), E = p(
|
|
56
|
+
}), E = p(f, "CountdownBlock"), D = i(() => y.block.fontFamily ? E.resolveFontFamily(y.block.fontFamily) : "inherit"), O = i(() => ({
|
|
57
57
|
backgroundColor: y.block.backgroundColor,
|
|
58
58
|
fontFamily: D.value
|
|
59
59
|
})), k = i(() => ({
|
|
@@ -70,22 +70,22 @@ var g = {
|
|
|
70
70
|
color: y.block.digitColor,
|
|
71
71
|
fontFamily: D.value
|
|
72
72
|
}));
|
|
73
|
-
return (
|
|
73
|
+
return (i, s) => d.block.targetDate ? C.value && d.block.hideOnExpiry ? (t(), c("div", _, e(a(b).countdown.hidden), 1)) : C.value ? (t(), c("div", {
|
|
74
74
|
key: 2,
|
|
75
|
-
style:
|
|
75
|
+
style: r(O.value),
|
|
76
76
|
class: "tpl:py-4 tpl:text-center"
|
|
77
|
-
}, [
|
|
77
|
+
}, [l("span", { style: r({
|
|
78
78
|
fontSize: `${d.block.digitFontSize}px`,
|
|
79
79
|
color: d.block.digitColor
|
|
80
|
-
}) },
|
|
80
|
+
}) }, e(d.block.expiredMessage), 5)], 4)) : (t(), c("div", {
|
|
81
81
|
key: 3,
|
|
82
|
-
style:
|
|
82
|
+
style: r(O.value),
|
|
83
83
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:py-4"
|
|
84
|
-
}, [(
|
|
84
|
+
}, [(t(!0), c(u, null, n(T.value, (n, i) => (t(), c(u, { key: n.label }, [i > 0 ? (t(), c("span", {
|
|
85
85
|
key: 0,
|
|
86
|
-
style:
|
|
86
|
+
style: r(j.value),
|
|
87
87
|
class: "tpl:self-start"
|
|
88
|
-
},
|
|
88
|
+
}, e(d.block.separator), 5)) : o("", !0), l("div", v, [l("div", { style: r(k.value) }, e(n.value), 5), l("div", { style: r(A.value) }, e(n.label), 5)])], 64))), 128))], 4)) : (t(), c("div", g, e(a(b).countdown.setDate), 1));
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
export { y as default };
|