@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
|
@@ -1,548 +0,0 @@
|
|
|
1
|
-
import { $ as e, C as t, D as n, H as r, N as i, Nt as a, P as o, U as ee, _ as s, c, d as l, f as u, g as d, j as f, jt as p, l as m, r as h, st as g, u as _, y as v, z as y } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
2
|
-
import { a as te } from "./runtime-dom.esm-bundler-BURR-bj5.js";
|
|
3
|
-
import { _ as ne, g as b } from "./dist-CVy-7PHQ.js";
|
|
4
|
-
import { X as x } from "./keys-BgRERHzu.js";
|
|
5
|
-
import { t as re } from "./useI18n-BBrHTdu8.js";
|
|
6
|
-
import { t as S } from "./createLucideIcon-CvhTA2KG.js";
|
|
7
|
-
import { t as ie } from "./circle-alert-CShJwVFv.js";
|
|
8
|
-
import { t as C } from "./image-BDiRFzSd.js";
|
|
9
|
-
import { t as ae } from "./loader-circle-BZRD0a4I.js";
|
|
10
|
-
import { t as oe } from "./send-DROkPOaX.js";
|
|
11
|
-
import { t as w } from "./sparkles-CdaTtvoz.js";
|
|
12
|
-
import { t as se } from "./square-BbCROH_f.js";
|
|
13
|
-
import { t as T } from "./x-BpfG7v9g.js";
|
|
14
|
-
import { t as ce } from "./LoadingTrack-DM4g6j7b.js";
|
|
15
|
-
import { t as E } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
16
|
-
import { n as D } from "./aiErrors-C3QEMB0x.js";
|
|
17
|
-
import { S as O } from "./styleConstants-B8xVRiwX.js";
|
|
18
|
-
var k = S({
|
|
19
|
-
name: "file-text",
|
|
20
|
-
size: 24,
|
|
21
|
-
node: [
|
|
22
|
-
["path", {
|
|
23
|
-
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
24
|
-
key: "1oefj6"
|
|
25
|
-
}],
|
|
26
|
-
["path", {
|
|
27
|
-
d: "M14 2v5a1 1 0 0 0 1 1h5",
|
|
28
|
-
key: "wfsgrz"
|
|
29
|
-
}],
|
|
30
|
-
["path", {
|
|
31
|
-
d: "M10 9H8",
|
|
32
|
-
key: "b1mrlr"
|
|
33
|
-
}],
|
|
34
|
-
["path", {
|
|
35
|
-
d: "M16 13H8",
|
|
36
|
-
key: "t4e002"
|
|
37
|
-
}],
|
|
38
|
-
["path", {
|
|
39
|
-
d: "M16 17H8",
|
|
40
|
-
key: "z1uh3a"
|
|
41
|
-
}]
|
|
42
|
-
]
|
|
43
|
-
}), le = S({
|
|
44
|
-
name: "message-square-plus",
|
|
45
|
-
size: 24,
|
|
46
|
-
node: [
|
|
47
|
-
["path", {
|
|
48
|
-
d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",
|
|
49
|
-
key: "18887p"
|
|
50
|
-
}],
|
|
51
|
-
["path", {
|
|
52
|
-
d: "M12 8v6",
|
|
53
|
-
key: "1ib9pf"
|
|
54
|
-
}],
|
|
55
|
-
["path", {
|
|
56
|
-
d: "M9 11h6",
|
|
57
|
-
key: "1fldmi"
|
|
58
|
-
}]
|
|
59
|
-
]
|
|
60
|
-
}), ue = S({
|
|
61
|
-
name: "paperclip",
|
|
62
|
-
size: 24,
|
|
63
|
-
node: [["path", {
|
|
64
|
-
d: "m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",
|
|
65
|
-
key: "1miecu"
|
|
66
|
-
}]]
|
|
67
|
-
}), de = S({
|
|
68
|
-
name: "redo-2",
|
|
69
|
-
size: 24,
|
|
70
|
-
node: [["path", {
|
|
71
|
-
d: "m15 14 5-5-5-5",
|
|
72
|
-
key: "12vg1m"
|
|
73
|
-
}], ["path", {
|
|
74
|
-
d: "M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",
|
|
75
|
-
key: "6uklza"
|
|
76
|
-
}]]
|
|
77
|
-
}), fe = S({
|
|
78
|
-
name: "undo-2",
|
|
79
|
-
size: 24,
|
|
80
|
-
node: [["path", {
|
|
81
|
-
d: "M9 14 4 9l5-5",
|
|
82
|
-
key: "102s5s"
|
|
83
|
-
}], ["path", {
|
|
84
|
-
d: "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",
|
|
85
|
-
key: "f3b9sd"
|
|
86
|
-
}]]
|
|
87
|
-
}), A = ["aria-label", "data-testid"], j = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, M = { class: "tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5" }, N = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, P = { "data-testid": "ai-panel-title" }, F = {
|
|
88
|
-
key: 0,
|
|
89
|
-
"data-testid": "ai-panel-subtitle",
|
|
90
|
-
class: "tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
91
|
-
}, I = { class: "tpl:flex tpl:items-center tpl:gap-1" }, L = ["aria-label", "title"], R = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col" }, z = /* @__PURE__ */ v({
|
|
92
|
-
__name: "AiPanelShell",
|
|
93
|
-
props: {
|
|
94
|
-
title: {},
|
|
95
|
-
subtitle: {},
|
|
96
|
-
testid: {},
|
|
97
|
-
closeLabel: {}
|
|
98
|
-
},
|
|
99
|
-
emits: ["close"],
|
|
100
|
-
setup(e, { emit: t }) {
|
|
101
|
-
let n = t;
|
|
102
|
-
return (t, r) => (f(), u("div", {
|
|
103
|
-
role: "complementary",
|
|
104
|
-
"aria-label": e.title,
|
|
105
|
-
"data-testid": e.testid,
|
|
106
|
-
class: "tpl-ai-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)]"
|
|
107
|
-
}, [
|
|
108
|
-
m("div", j, [m("div", M, [m("div", N, [s(g(w), {
|
|
109
|
-
size: 13,
|
|
110
|
-
"stroke-width": 2,
|
|
111
|
-
"aria-hidden": "true"
|
|
112
|
-
}), m("span", P, a(e.title), 1)]), e.subtitle ? (f(), u("p", F, a(e.subtitle), 1)) : l("", !0)]), m("div", I, [o(t.$slots, "actions"), m("button", {
|
|
113
|
-
type: "button",
|
|
114
|
-
"data-testid": "ai-panel-close",
|
|
115
|
-
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
|
|
116
|
-
"aria-label": e.closeLabel,
|
|
117
|
-
title: e.closeLabel,
|
|
118
|
-
onClick: r[0] ||= (e) => n("close")
|
|
119
|
-
}, [s(g(T), {
|
|
120
|
-
size: 14,
|
|
121
|
-
"stroke-width": 2,
|
|
122
|
-
"aria-hidden": "true"
|
|
123
|
-
})], 8, L)])]),
|
|
124
|
-
m("div", R, [o(t.$slots, "default")]),
|
|
125
|
-
o(t.$slots, "footer")
|
|
126
|
-
], 8, A));
|
|
127
|
-
}
|
|
128
|
-
}), B = /* @__PURE__ */ new Set([
|
|
129
|
-
"image/png",
|
|
130
|
-
"image/jpeg",
|
|
131
|
-
"image/webp",
|
|
132
|
-
"image/gif",
|
|
133
|
-
"application/pdf"
|
|
134
|
-
]);
|
|
135
|
-
function V(e, t) {
|
|
136
|
-
let n = [...e], r = [], i = e.reduce((e, t) => e + t.size, 0);
|
|
137
|
-
for (let e of t) {
|
|
138
|
-
let t = n.length >= 4 ? "tooMany" : B.has(e.type) ? e.size > 5242880 ? "tooLarge" : i + e.size > 10485760 ? "totalTooLarge" : null : "wrongType";
|
|
139
|
-
t ? r.push({
|
|
140
|
-
name: e.name,
|
|
141
|
-
reason: t
|
|
142
|
-
}) : (n.push(e), i += e.size);
|
|
143
|
-
}
|
|
144
|
-
return {
|
|
145
|
-
accepted: n,
|
|
146
|
-
errors: r
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
// src/components/ai/AiChatPanel.vue?vue&type=script&setup=true&lang.ts
|
|
150
|
-
var pe = [
|
|
151
|
-
"aria-label",
|
|
152
|
-
"title",
|
|
153
|
-
"disabled"
|
|
154
|
-
], me = {
|
|
155
|
-
key: 0,
|
|
156
|
-
"data-testid": "ai-chat-drop-hint",
|
|
157
|
-
class: "tpl:absolute tpl:inset-0 tpl:z-20 tpl:flex tpl:items-center tpl:justify-center tpl:border-2 tpl:border-dashed tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-4 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-primary)] tpl:pointer-events-none"
|
|
158
|
-
}, he = {
|
|
159
|
-
key: 0,
|
|
160
|
-
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
161
|
-
}, ge = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, _e = {
|
|
162
|
-
key: 1,
|
|
163
|
-
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
164
|
-
}, ve = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ye = {
|
|
165
|
-
key: 2,
|
|
166
|
-
class: "tpl:flex tpl:flex-col tpl:gap-4"
|
|
167
|
-
}, be = {
|
|
168
|
-
key: 0,
|
|
169
|
-
"data-testid": "ai-chat-prompt",
|
|
170
|
-
class: "tpl:self-end tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3.5 tpl:py-2.5 tpl:text-sm tpl:whitespace-pre-wrap",
|
|
171
|
-
style: {
|
|
172
|
-
"background-color": "var(--tpl-primary-light)",
|
|
173
|
-
color: "var(--tpl-text)",
|
|
174
|
-
"max-width": "85%",
|
|
175
|
-
"box-shadow": "var(--tpl-shadow)"
|
|
176
|
-
}
|
|
177
|
-
}, xe = {
|
|
178
|
-
key: 1,
|
|
179
|
-
class: "tpl:flex tpl:flex-col tpl:gap-2"
|
|
180
|
-
}, Se = {
|
|
181
|
-
key: 1,
|
|
182
|
-
"data-testid": "ai-chat-reply",
|
|
183
|
-
class: "tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3.5 tpl:py-2.5 tpl:text-sm tpl:whitespace-pre-wrap",
|
|
184
|
-
style: {
|
|
185
|
-
"max-width": "85%",
|
|
186
|
-
"background-color": "var(--tpl-bg)",
|
|
187
|
-
color: "var(--tpl-text)",
|
|
188
|
-
"box-shadow": "var(--tpl-shadow)"
|
|
189
|
-
}
|
|
190
|
-
}, Ce = {
|
|
191
|
-
key: 2,
|
|
192
|
-
"data-testid": "ai-chat-applied",
|
|
193
|
-
class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
194
|
-
}, we = ["disabled", "onClick"], Te = {
|
|
195
|
-
key: 3,
|
|
196
|
-
role: "alert",
|
|
197
|
-
"data-testid": "ai-chat-item-error",
|
|
198
|
-
class: "tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
199
|
-
}, Ee = {
|
|
200
|
-
key: 1,
|
|
201
|
-
class: "tpl:absolute tpl:right-0 tpl:bottom-0 tpl:left-0 tpl:z-10 tpl:px-3 tpl:pb-3",
|
|
202
|
-
style: {
|
|
203
|
-
"background-color": "color-mix(in srgb, var(--tpl-bg) 50%, transparent)",
|
|
204
|
-
"backdrop-filter": "blur(2px)"
|
|
205
|
-
}
|
|
206
|
-
}, De = { class: "tpl:flex tpl:flex-col tpl:gap-1.5" }, Oe = ["onClick"], ke = { class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]" }, Ae = ["disabled"], je = {
|
|
207
|
-
key: 0,
|
|
208
|
-
class: "tpl:mb-2 tpl:flex tpl:flex-wrap tpl:gap-1"
|
|
209
|
-
}, Me = { class: "tpl:truncate" }, Ne = [
|
|
210
|
-
"aria-label",
|
|
211
|
-
"disabled",
|
|
212
|
-
"onClick"
|
|
213
|
-
], Pe = {
|
|
214
|
-
key: 1,
|
|
215
|
-
class: "tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
216
|
-
}, Fe = {
|
|
217
|
-
"aria-live": "polite",
|
|
218
|
-
class: "tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
219
|
-
}, Ie = {
|
|
220
|
-
key: 1,
|
|
221
|
-
role: "status",
|
|
222
|
-
class: "tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
223
|
-
}, Le = ["disabled"], Re = {
|
|
224
|
-
key: 2,
|
|
225
|
-
role: "alert",
|
|
226
|
-
"data-testid": "ai-chat-error",
|
|
227
|
-
class: "tpl:mx-3 tpl:mb-2 tpl:flex tpl:items-start tpl:gap-2 tpl:rounded-lg tpl:px-3 tpl:py-2 tpl:text-xs",
|
|
228
|
-
style: {
|
|
229
|
-
"background-color": "var(--tpl-danger-light)",
|
|
230
|
-
color: "var(--tpl-danger)"
|
|
231
|
-
}
|
|
232
|
-
}, ze = { class: "tpl-ai-input-wrapper tpl-focus-ring-host tpl:flex tpl:flex-col 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)]" }, Be = [
|
|
233
|
-
"placeholder",
|
|
234
|
-
"aria-label",
|
|
235
|
-
"disabled"
|
|
236
|
-
], Ve = { class: "tpl:flex tpl:items-center tpl:justify-between" }, He = [
|
|
237
|
-
"aria-label",
|
|
238
|
-
"title",
|
|
239
|
-
"disabled"
|
|
240
|
-
], Ue = ["aria-label", "title"], We = [
|
|
241
|
-
"aria-label",
|
|
242
|
-
"title",
|
|
243
|
-
"disabled"
|
|
244
|
-
], Ge = { class: "tpl:m-0 tpl:px-1 tpl:pt-2 tpl:text-center tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, H = /*#__PURE__*/ E(/* @__PURE__ */ v({
|
|
245
|
-
__name: "AiChatPanel",
|
|
246
|
-
props: { feature: {} },
|
|
247
|
-
emits: ["close"],
|
|
248
|
-
setup(o, { emit: v }) {
|
|
249
|
-
let S = o, E = v, { t: A, format: j } = re(), M = t(x, void 0), N = e(""), P = e(null), F = e(null), I = e([]), L = e([]), R = e(0);
|
|
250
|
-
y(() => S.feature.templateSession.value, () => {
|
|
251
|
-
N.value = "", I.value = [], L.value = [], R.value = 0;
|
|
252
|
-
}, { flush: "sync" });
|
|
253
|
-
let B = c(() => S.feature.has("chatAttachments"));
|
|
254
|
-
function H(e) {
|
|
255
|
-
let t = V(I.value, e);
|
|
256
|
-
I.value = t.accepted;
|
|
257
|
-
let n = {
|
|
258
|
-
tooMany: "attachTooMany",
|
|
259
|
-
tooLarge: "attachTooLarge",
|
|
260
|
-
totalTooLarge: "attachTotalTooLarge",
|
|
261
|
-
wrongType: "attachWrongType"
|
|
262
|
-
};
|
|
263
|
-
L.value = t.errors.map((e) => j(A.ai.chat[n[e.reason]], { name: e.name }));
|
|
264
|
-
}
|
|
265
|
-
function Ke(e) {
|
|
266
|
-
let t = e.target;
|
|
267
|
-
!J.value && B.value && H(Array.from(t.files ?? [])), t.value = "";
|
|
268
|
-
}
|
|
269
|
-
function qe(e) {
|
|
270
|
-
J.value || (I.value.splice(e, 1), L.value = []);
|
|
271
|
-
}
|
|
272
|
-
function U(e) {
|
|
273
|
-
return Array.from(e.dataTransfer?.types ?? []).includes("Files");
|
|
274
|
-
}
|
|
275
|
-
function Je(e) {
|
|
276
|
-
B.value && !J.value && U(e) && (e.preventDefault(), R.value++);
|
|
277
|
-
}
|
|
278
|
-
function Ye(e) {
|
|
279
|
-
U(e) && (R.value = Math.max(0, R.value - 1));
|
|
280
|
-
}
|
|
281
|
-
function Xe(e) {
|
|
282
|
-
B.value && U(e) && e.preventDefault();
|
|
283
|
-
}
|
|
284
|
-
function Ze(e) {
|
|
285
|
-
R.value = 0, B.value && U(e) && (e.preventDefault(), J.value || H(Array.from(e.dataTransfer?.files ?? [])));
|
|
286
|
-
}
|
|
287
|
-
y(() => S.feature.importQueue.value, (e) => {
|
|
288
|
-
B.value && e.length && (H(e), N.value.trim() || (N.value = A.ai.import.prompt), S.feature.importQueue.value = [], n(() => P.value?.focus()));
|
|
289
|
-
}, { immediate: !0 });
|
|
290
|
-
let W = e(null), G = e(0), K = c(() => S.feature.isTemplateEmpty.value ? [
|
|
291
|
-
A.ai.starters.emptyWelcome,
|
|
292
|
-
A.ai.starters.emptyLaunch,
|
|
293
|
-
A.ai.starters.emptyNewsletter
|
|
294
|
-
] : [
|
|
295
|
-
A.ai.starters.filledShorten,
|
|
296
|
-
A.ai.starters.filledFriendlier,
|
|
297
|
-
A.ai.starters.filledDates,
|
|
298
|
-
A.ai.starters.filledCta
|
|
299
|
-
]), q = c(() => S.feature.messages.value), J = c(() => S.feature.isRunning.value), Y = c(() => {
|
|
300
|
-
let e = S.feature.failure.value;
|
|
301
|
-
return e ? D(e.error, A.ai.errors, j, M, e.context) : "";
|
|
302
|
-
}), { pause: X, resume: Z } = b(() => {
|
|
303
|
-
G.value < K.value.length ? G.value++ : X();
|
|
304
|
-
}, 150, { immediate: !1 }), { start: Qe } = ne(() => Z(), 100, { immediate: !1 });
|
|
305
|
-
y(() => K.value.length, (e) => {
|
|
306
|
-
X(), G.value = 0, e > 0 && Qe();
|
|
307
|
-
}, { immediate: !0 });
|
|
308
|
-
function Q() {
|
|
309
|
-
n(() => {
|
|
310
|
-
W.value && (W.value.scrollTop = W.value.scrollHeight);
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
|
-
y(() => q.value.length, Q), y(() => [S.feature.failedPrompt.value, S.feature.failedAttachments.value], ([e, t]) => {
|
|
314
|
-
e && (N.value = e, I.value = [...t]);
|
|
315
|
-
}, { immediate: !0 });
|
|
316
|
-
async function $() {
|
|
317
|
-
let e = N.value.trim();
|
|
318
|
-
if (!e || J.value) return;
|
|
319
|
-
let t = [...I.value];
|
|
320
|
-
N.value = "", I.value = [], L.value = [], Q(), await S.feature.send(e, t), Q();
|
|
321
|
-
}
|
|
322
|
-
function $e(e) {
|
|
323
|
-
return e.undone ? A.ai.chat.undone : e.operationCount === 1 ? A.ai.chat.appliedChange : j(A.ai.chat.appliedChanges, { count: e.operationCount });
|
|
324
|
-
}
|
|
325
|
-
function et(e) {
|
|
326
|
-
return e.failure ? D(e.failure.error, A.ai.errors, j, M, e.failure.context) : "";
|
|
327
|
-
}
|
|
328
|
-
function tt(e) {
|
|
329
|
-
e.undone ? S.feature.redoMessage(e.id) : S.feature.undoMessage(e.id);
|
|
330
|
-
}
|
|
331
|
-
function nt(e) {
|
|
332
|
-
X(), N.value = e, $();
|
|
333
|
-
}
|
|
334
|
-
function rt(e) {
|
|
335
|
-
e.isComposing || e.keyCode === 229 || e.key === "Enter" && !e.shiftKey && (e.preventDefault(), $());
|
|
336
|
-
}
|
|
337
|
-
return (e, t) => (f(), u("div", {
|
|
338
|
-
class: "tpl:contents",
|
|
339
|
-
"data-testid": "ai-chat-dropzone",
|
|
340
|
-
onDragenter: Je,
|
|
341
|
-
onDragleave: Ye,
|
|
342
|
-
onDragover: Xe,
|
|
343
|
-
onDrop: Ze
|
|
344
|
-
}, [s(z, {
|
|
345
|
-
title: g(A).ai.chat.title,
|
|
346
|
-
subtitle: g(A).ai.chat.notice,
|
|
347
|
-
testid: "ai-panel-chat",
|
|
348
|
-
"close-label": g(A).ai.chat.close,
|
|
349
|
-
onClose: t[5] ||= (e) => E("close")
|
|
350
|
-
}, {
|
|
351
|
-
actions: r(() => [o.feature.canClear && q.value.length > 0 ? (f(), u("button", {
|
|
352
|
-
key: 0,
|
|
353
|
-
type: "button",
|
|
354
|
-
"data-testid": "ai-chat-new",
|
|
355
|
-
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)] tpl:disabled:opacity-40",
|
|
356
|
-
"aria-label": g(A).ai.chat.newChat,
|
|
357
|
-
title: g(A).ai.chat.newChat,
|
|
358
|
-
disabled: J.value,
|
|
359
|
-
onClick: t[0] ||= (e) => o.feature.newChat()
|
|
360
|
-
}, [s(g(le), {
|
|
361
|
-
size: 14,
|
|
362
|
-
"stroke-width": 2,
|
|
363
|
-
"aria-hidden": "true"
|
|
364
|
-
})], 8, pe)) : l("", !0)]),
|
|
365
|
-
footer: r(() => [m("div", ke, [
|
|
366
|
-
B.value ? (f(), u(h, { key: 0 }, [
|
|
367
|
-
m("input", {
|
|
368
|
-
ref_key: "fileInput",
|
|
369
|
-
ref: F,
|
|
370
|
-
"data-testid": "ai-chat-files",
|
|
371
|
-
type: "file",
|
|
372
|
-
multiple: "",
|
|
373
|
-
accept: "image/png,image/jpeg,image/webp,image/gif,application/pdf",
|
|
374
|
-
hidden: "",
|
|
375
|
-
disabled: J.value,
|
|
376
|
-
onChange: Ke
|
|
377
|
-
}, null, 40, Ae),
|
|
378
|
-
I.value.length ? (f(), u("div", je, [(f(!0), u(h, null, i(I.value, (e, t) => (f(), u("span", {
|
|
379
|
-
key: t,
|
|
380
|
-
"data-testid": "ai-chat-attachment",
|
|
381
|
-
class: "tpl:flex tpl:max-w-full tpl:items-center tpl:gap-1 tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text)]"
|
|
382
|
-
}, [
|
|
383
|
-
e.type === "application/pdf" ? (f(), _(g(k), {
|
|
384
|
-
key: 0,
|
|
385
|
-
size: 12,
|
|
386
|
-
"aria-hidden": "true"
|
|
387
|
-
})) : (f(), _(g(C), {
|
|
388
|
-
key: 1,
|
|
389
|
-
size: 12,
|
|
390
|
-
"aria-hidden": "true"
|
|
391
|
-
})),
|
|
392
|
-
m("span", Me, a(e.name), 1),
|
|
393
|
-
m("button", {
|
|
394
|
-
type: "button",
|
|
395
|
-
"aria-label": g(j)(g(A).ai.chat.removeAttachment, { name: e.name }),
|
|
396
|
-
disabled: J.value,
|
|
397
|
-
class: "tpl:shrink-0 tpl:rounded tpl:p-0.5 tpl:disabled:opacity-40",
|
|
398
|
-
onClick: (e) => qe(t)
|
|
399
|
-
}, [s(g(T), {
|
|
400
|
-
size: 12,
|
|
401
|
-
"aria-hidden": "true"
|
|
402
|
-
})], 8, Ne)
|
|
403
|
-
]))), 128))])) : l("", !0),
|
|
404
|
-
I.value.length ? (f(), u("p", Pe, a(g(A).ai.import.placeholderNote), 1)) : l("", !0),
|
|
405
|
-
m("div", Fe, [(f(!0), u(h, null, i(L.value, (e, t) => (f(), u("p", {
|
|
406
|
-
key: t,
|
|
407
|
-
class: "tpl:mb-2"
|
|
408
|
-
}, a(e), 1))), 128))])
|
|
409
|
-
], 64)) : l("", !0),
|
|
410
|
-
o.feature.keptYourVersion.value ? (f(), u("div", Ie, [m("p", null, a(g(A).ai.chat.keptYourVersion), 1), m("button", {
|
|
411
|
-
type: "button",
|
|
412
|
-
disabled: J.value,
|
|
413
|
-
class: p(g(O)),
|
|
414
|
-
onClick: t[1] ||= (e) => o.feature.reloadTemplate()
|
|
415
|
-
}, a(g(A).ai.chat.reload), 11, Le)])) : l("", !0),
|
|
416
|
-
Y.value ? (f(), u("div", Re, [s(g(ie), {
|
|
417
|
-
size: 14,
|
|
418
|
-
"stroke-width": 2,
|
|
419
|
-
class: "tpl:mt-0.5 tpl:shrink-0",
|
|
420
|
-
"aria-hidden": "true"
|
|
421
|
-
}), m("span", null, a(Y.value), 1)])) : l("", !0),
|
|
422
|
-
m("div", ze, [ee(m("textarea", {
|
|
423
|
-
ref_key: "composer",
|
|
424
|
-
ref: P,
|
|
425
|
-
"onUpdate:modelValue": t[2] ||= (e) => N.value = e,
|
|
426
|
-
"data-testid": "ai-chat-input",
|
|
427
|
-
class: "tpl:max-h-32 tpl:min-h-[44px] tpl:w-full tpl:resize-none tpl:border-none tpl:bg-transparent tpl:font-sans tpl:text-sm tpl:outline-none tpl:text-[var(--tpl-text)]",
|
|
428
|
-
placeholder: g(A).ai.chat.inputPlaceholder,
|
|
429
|
-
"aria-label": g(A).ai.chat.inputPlaceholder,
|
|
430
|
-
disabled: J.value,
|
|
431
|
-
maxlength: "4000",
|
|
432
|
-
rows: "3",
|
|
433
|
-
onKeydown: rt
|
|
434
|
-
}, null, 40, Be), [[te, N.value]]), m("div", Ve, [B.value ? (f(), u("button", {
|
|
435
|
-
key: 0,
|
|
436
|
-
type: "button",
|
|
437
|
-
"aria-label": g(A).ai.chat.attach,
|
|
438
|
-
title: g(A).ai.chat.attach,
|
|
439
|
-
disabled: J.value,
|
|
440
|
-
class: "tpl:-ml-1.5 tpl:shrink-0 tpl:rounded-md tpl:p-1.5 tpl:text-[var(--tpl-text-muted)] tpl:disabled:opacity-40",
|
|
441
|
-
onClick: t[3] ||= (e) => F.value?.click()
|
|
442
|
-
}, [s(g(ue), {
|
|
443
|
-
size: 16,
|
|
444
|
-
"aria-hidden": "true"
|
|
445
|
-
})], 8, He)) : l("", !0), J.value ? (f(), u("button", {
|
|
446
|
-
key: 1,
|
|
447
|
-
type: "button",
|
|
448
|
-
"data-testid": "ai-chat-stop",
|
|
449
|
-
class: "tpl-ai-send-btn tpl:ml-auto tpl:-mr-1.5 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-primary)]",
|
|
450
|
-
"aria-label": g(A).ai.chat.stop,
|
|
451
|
-
title: g(A).ai.chat.stop,
|
|
452
|
-
onClick: t[4] ||= (e) => o.feature.stop()
|
|
453
|
-
}, [s(g(se), {
|
|
454
|
-
size: 16,
|
|
455
|
-
"stroke-width": 2,
|
|
456
|
-
"aria-hidden": "true"
|
|
457
|
-
})], 8, Ue)) : (f(), u("button", {
|
|
458
|
-
key: 2,
|
|
459
|
-
type: "button",
|
|
460
|
-
"data-testid": "ai-chat-send",
|
|
461
|
-
class: "tpl-ai-send-btn tpl:ml-auto tpl:-mr-1.5 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)]",
|
|
462
|
-
"aria-label": g(A).ai.chat.send,
|
|
463
|
-
title: g(A).ai.chat.send,
|
|
464
|
-
disabled: !N.value.trim(),
|
|
465
|
-
onClick: $
|
|
466
|
-
}, [s(g(oe), {
|
|
467
|
-
size: 16,
|
|
468
|
-
"stroke-width": 2,
|
|
469
|
-
"aria-hidden": "true"
|
|
470
|
-
})], 8, We))])]),
|
|
471
|
-
m("p", Ge, a(g(A).ai.chat.disclaimer), 1)
|
|
472
|
-
])]),
|
|
473
|
-
default: r(() => [
|
|
474
|
-
B.value && R.value > 0 && !J.value ? (f(), u("div", me, a(g(A).ai.chat.dropHint), 1)) : l("", !0),
|
|
475
|
-
m("div", {
|
|
476
|
-
ref_key: "messagesContainer",
|
|
477
|
-
ref: W,
|
|
478
|
-
class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4"
|
|
479
|
-
}, [o.feature.isLoadingHistory.value ? (f(), u("div", he, [s(g(ae), {
|
|
480
|
-
class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
|
|
481
|
-
size: 24,
|
|
482
|
-
"stroke-width": 2,
|
|
483
|
-
"aria-hidden": "true"
|
|
484
|
-
}), m("p", ge, a(g(A).ai.chat.loadingHistory), 1)])) : q.value.length === 0 ? (f(), u("div", _e, [s(g(w), {
|
|
485
|
-
size: 32,
|
|
486
|
-
"stroke-width": 1.5,
|
|
487
|
-
class: "tpl:text-[var(--tpl-text-dim)]",
|
|
488
|
-
"aria-hidden": "true"
|
|
489
|
-
}), m("p", ve, a(g(A).ai.chat.placeholder), 1)])) : (f(), u("div", ye, [(f(!0), u(h, null, i(q.value, (e) => (f(), u("div", {
|
|
490
|
-
key: e.id,
|
|
491
|
-
class: "tpl:flex tpl:flex-col tpl:gap-2"
|
|
492
|
-
}, [e.role === "user" ? (f(), u("div", be, [d(a(e.text) + " ", 1), (f(!0), u(h, null, i(e.attachments, (e, t) => (f(), u("span", {
|
|
493
|
-
key: t,
|
|
494
|
-
"data-testid": "ai-chat-history-attachment",
|
|
495
|
-
class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:px-2 tpl:py-1 tpl:text-xs"
|
|
496
|
-
}, [e.kind === "pdf" ? (f(), _(g(k), {
|
|
497
|
-
key: 0,
|
|
498
|
-
size: 12,
|
|
499
|
-
"aria-hidden": "true"
|
|
500
|
-
})) : (f(), _(g(C), {
|
|
501
|
-
key: 1,
|
|
502
|
-
size: 12,
|
|
503
|
-
"aria-hidden": "true"
|
|
504
|
-
})), d(a(e.name), 1)]))), 128))])) : (f(), u("div", xe, [
|
|
505
|
-
e.text === "" && e.status === "streaming" ? (f(), _(ce, { key: 0 })) : e.text === "" ? l("", !0) : (f(), u("div", Se, a(e.text), 1)),
|
|
506
|
-
e.operationCount > 0 ? (f(), u("div", Ce, [m("span", null, a($e(e)), 1), (e.undone ? e.canRedo : e.canUndo) ? (f(), u("button", {
|
|
507
|
-
key: 0,
|
|
508
|
-
type: "button",
|
|
509
|
-
"data-testid": "ai-chat-undo",
|
|
510
|
-
class: p(g(O)),
|
|
511
|
-
disabled: J.value,
|
|
512
|
-
onClick: (t) => tt(e)
|
|
513
|
-
}, [e.undone ? (f(), _(g(de), {
|
|
514
|
-
key: 0,
|
|
515
|
-
size: 12,
|
|
516
|
-
"stroke-width": 2,
|
|
517
|
-
"aria-hidden": "true"
|
|
518
|
-
})) : (f(), _(g(fe), {
|
|
519
|
-
key: 1,
|
|
520
|
-
size: 12,
|
|
521
|
-
"stroke-width": 2,
|
|
522
|
-
"aria-hidden": "true"
|
|
523
|
-
})), d(" " + a(e.undone ? g(A).ai.chat.redo : g(A).ai.chat.undo), 1)], 10, we)) : l("", !0)])) : l("", !0),
|
|
524
|
-
e.failure ? (f(), u("p", Te, a(et(e)), 1)) : l("", !0)
|
|
525
|
-
]))]))), 128))]))], 512),
|
|
526
|
-
q.value.length === 0 && K.value.length > 0 ? (f(), u("div", Ee, [m("div", De, [(f(!0), u(h, null, i(K.value, (e, t) => (f(), u("button", {
|
|
527
|
-
key: t,
|
|
528
|
-
type: "button",
|
|
529
|
-
"data-testid": "ai-chat-starter",
|
|
530
|
-
class: p(["tpl-starter-btn tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-2 tpl:text-left tpl:text-xs tpl:leading-snug tpl:transition-all tpl:duration-300 tpl:ease-out", K.value.length - 1 - t < G.value ? "tpl:translate-y-0 tpl:opacity-100" : "tpl:pointer-events-none tpl:-translate-y-2 tpl:opacity-0"]),
|
|
531
|
-
style: {
|
|
532
|
-
"border-color": "var(--tpl-border)",
|
|
533
|
-
color: "var(--tpl-primary)",
|
|
534
|
-
"background-color": "var(--tpl-bg)",
|
|
535
|
-
"box-shadow": "var(--tpl-shadow)"
|
|
536
|
-
},
|
|
537
|
-
onClick: (t) => nt(e)
|
|
538
|
-
}, a(e), 11, Oe))), 128))])])) : l("", !0)
|
|
539
|
-
]),
|
|
540
|
-
_: 1
|
|
541
|
-
}, 8, [
|
|
542
|
-
"title",
|
|
543
|
-
"subtitle",
|
|
544
|
-
"close-label"
|
|
545
|
-
])], 32));
|
|
546
|
-
}
|
|
547
|
-
}), [["__scopeId", "data-v-e0f79f23"]]);
|
|
548
|
-
export { H as default };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { C as e, c as t, d as n, f as r, j as i, jt as a, st as o, u as s, y as c } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
2
|
-
import { K as l } from "./keys-BgRERHzu.js";
|
|
3
|
-
import { t as u } from "./useI18n-BBrHTdu8.js";
|
|
4
|
-
import { t as d } from "./circle-alert-CShJwVFv.js";
|
|
5
|
-
import { t as f } from "./triangle-alert-7_oaitpf.js";
|
|
6
|
-
// src/components/canvas/BlockIssueBadge.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var p = ["title", "aria-label"], m = /* @__PURE__ */ c({
|
|
8
|
-
__name: "BlockIssueBadge",
|
|
9
|
-
props: { blockId: {} },
|
|
10
|
-
setup(c) {
|
|
11
|
-
let m = c, { t: h } = u(), g = e(l, null), _ = t(() => (g?.issues.value ?? []).filter((e) => e.blockId === m.blockId)), v = t(() => _.value.some((e) => e.severity === "error") ? "error" : _.value.some((e) => e.severity === "warning") ? "warning" : null), y = t(() => v.value === "error" ? h.issues.badgeError : h.issues.badgeWarning);
|
|
12
|
-
return (e, t) => v.value ? (i(), r("span", {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: a(["tpl-block-issue-badge tpl:flex tpl:size-5 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)] tpl:ring-1 tpl:ring-[var(--tpl-border)]", v.value === "error" ? "tpl:text-[var(--tpl-danger)]" : "tpl:text-[var(--tpl-warning)]"]),
|
|
15
|
-
title: y.value,
|
|
16
|
-
"aria-label": y.value,
|
|
17
|
-
role: "img"
|
|
18
|
-
}, [v.value === "error" ? (i(), s(o(d), {
|
|
19
|
-
key: 0,
|
|
20
|
-
size: 14,
|
|
21
|
-
"stroke-width": 2.25,
|
|
22
|
-
fill: "currentColor",
|
|
23
|
-
stroke: "var(--tpl-bg)"
|
|
24
|
-
})) : (i(), s(o(f), {
|
|
25
|
-
key: 1,
|
|
26
|
-
size: 14,
|
|
27
|
-
"stroke-width": 2.25,
|
|
28
|
-
fill: "currentColor",
|
|
29
|
-
stroke: "var(--tpl-bg)"
|
|
30
|
-
}))], 10, p)) : n("", !0);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
export { m as default };
|