@templatical/editor 0.52.0 → 0.52.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiAltTextPopover-Cm11CsKH.js → AiAltTextPopover-DawbUywc.js} +13 -13
- package/dist/{AiAltTextReview-DE8t8Rud.js → AiAltTextReview-9ySsXOTU.js} +22 -22
- package/dist/{AiChatPanel-7ftS7d40.js → AiChatPanel-CupPhmsN.js} +137 -137
- package/dist/{AiPanels-CxGp6klr.js → AiPanels-DqT4PgQ0.js} +4 -4
- package/dist/{AiRewriteMenu-DNI-5CUj.js → AiRewriteMenu-28agTycW.js} +62 -62
- package/dist/BlockIssueBadge-BxpDy3u-.js +33 -0
- package/dist/{BlockPreviewCanvas-Df9iz7sK.js → BlockPreviewCanvas-B-4bmJ3t.js} +23 -23
- package/dist/{CloudHeaderExtras-CsgyNNV1.js → CloudHeaderExtras-QI82yF54.js} +3 -3
- package/dist/{CloudPanels-BDV4XQ_l.js → CloudPanels-BKJaLkUN.js} +50 -50
- package/dist/{CollaborationNotices-JQ3vQoqO.js → CollaborationNotices-CTw4JThq.js} +11 -11
- package/dist/{CollaboratorBar-EeqqWcX6.js → CollaboratorBar-CXQqN3VP.js} +15 -15
- package/dist/{CommentsPanel-BuftXc0U.js → CommentsPanel-DwwFuh1h.js} +2 -2
- package/dist/CommentsSidebar-9ZfiC2DO.js +500 -0
- package/dist/{CountdownBlock-BT3ZTH1F.js → CountdownBlock-CU2yTWtF.js} +20 -20
- package/dist/{CountdownToolbar-CrL4WKy9.js → CountdownToolbar-BqoYzf_6.js} +53 -53
- package/dist/IssuesPanel-4ykrf1ax.js +359 -0
- package/dist/{LoadingTrack-DZA5AoP9.js → LoadingTrack-DM4g6j7b.js} +1 -1
- package/dist/{LogicTagInsertButton-CSD9cfJB.js → LogicTagInsertButton-CfscnwCn.js} +234 -234
- package/dist/{MediaEditModal-DQl5w44r.js → MediaEditModal-Dy08GEwE.js} +446 -446
- package/dist/{MediaPanels-BFWYuJot.js → MediaPanels-BgEp7iCp.js} +2 -2
- package/dist/{MergeTagInput-DE7kWwXx.js → MergeTagInput-B9dtUthD.js} +11 -11
- package/dist/{MergeTagModeToggle-DvD0ne7N.js → MergeTagModeToggle-DxujhYJ4.js} +30 -30
- package/dist/{MergeTagTextarea-DVPQkiYY.js → MergeTagTextarea-CPFEjJZd.js} +11 -11
- package/dist/{ParagraphEditor-D-nqs82g.js → ParagraphEditor-CWXfurGh.js} +201 -201
- package/dist/{RestoreVersionDialog-DqUPsLB9.js → RestoreVersionDialog-C4s_JYCx.js} +14 -14
- package/dist/{RichTextEditorContent-Xq9D0Zs3.js → RichTextEditorContent-o6HmE8GR.js} +40 -39
- package/dist/{SaveBlockDialog-DAPv70p4.js → SaveBlockDialog-CWLrly6l.js} +56 -56
- package/dist/SavedBlocksBrowserModal-CE8n4EBS.js +359 -0
- package/dist/{SavedBlocksPanels-ChbL9v9x.js → SavedBlocksPanels-BE1N9rNZ.js} +6 -6
- package/dist/{SavedBlocksPickBar-hRaiLNdu.js → SavedBlocksPickBar-Dwl94xhP.js} +12 -12
- package/dist/{TemplateSettings-D0XcH32O.js → TemplateSettings-CS0f1Ues.js} +74 -74
- package/dist/{TestEmailModal-Cb5t0yB2.js → TestEmailModal-DBD0X5nV.js} +52 -52
- package/dist/{TestEmailPanel-COJQa2A9.js → TestEmailPanel-DaFjP9QK.js} +2 -2
- package/dist/{TitleEditor-BYk_9SpQ.js → TitleEditor-DSqtle77.js} +75 -75
- package/dist/{ToggleSwitch-poGWbduy.js → ToggleSwitch-JykPyD_8.js} +4 -4
- package/dist/{Toolbar-Dku_pZni.js → Toolbar-BZPFfKrf.js} +913 -913
- package/dist/{TplModal-9IndEYk5.js → TplModal-DLMssVlt.js} +15 -15
- package/dist/{VersionHistoryMenu-BG5qayvg.js → VersionHistoryMenu-BkbYUs0Q.js} +35 -35
- package/dist/{VersionHistoryPanels-hPg7Q5-f.js → VersionHistoryPanels-DP7HaYWv.js} +4 -4
- package/dist/{VersionPreviewBanner-CSs7zum_.js → VersionPreviewBanner-DECaBwLq.js} +9 -9
- package/dist/{WrapperBlock-DwjK_IdJ.js → WrapperBlock-BsJv_Fiw.js} +16 -16
- package/dist/{blockTypeIcons-yt7SLzub.js → blockTypeIcons-BHjlPnPf.js} +23 -22
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiAltTextPopover-DjMoJCgU.js → AiAltTextPopover-SEEjkd-I.js} +21 -21
- package/dist/cdn/chunks/{AiAltTextPopover-DjMoJCgU.js.map → AiAltTextPopover-SEEjkd-I.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js → AiAltTextReview-BGLLSKLm.js} +41 -41
- package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js.map → AiAltTextReview-BGLLSKLm.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-DXeZgc7D.js → AiChatPanel-DKDAaBNi.js} +127 -127
- package/dist/cdn/chunks/{AiChatPanel-DXeZgc7D.js.map → AiChatPanel-DKDAaBNi.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js → AiPanels-0wBarZSH.js} +3 -3
- package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js.map → AiPanels-0wBarZSH.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js → AiRewriteMenu-qf-cfEpy.js} +43 -43
- package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js.map → AiRewriteMenu-qf-cfEpy.js.map} +1 -1
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +34 -0
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +1 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js → BlockPreviewCanvas-DGBh6mqe.js} +20 -20
- package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js.map → BlockPreviewCanvas-DGBh6mqe.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js → CloudHeaderExtras-BMNK_F9p.js} +3 -3
- package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js.map → CloudHeaderExtras-BMNK_F9p.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js → CloudPanels-JMWIoVWh.js} +32 -32
- package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js.map → CloudPanels-JMWIoVWh.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-Hf8r08Sw.js → CollaborationNotices-Bsf1rGW9.js} +12 -12
- package/dist/cdn/chunks/{CollaborationNotices-Hf8r08Sw.js.map → CollaborationNotices-Bsf1rGW9.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js → CollaboratorBar-CXByAoUz.js} +14 -14
- package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js.map → CollaboratorBar-CXByAoUz.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js → CommentsPanel-DoJnKLXI.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js.map → CommentsPanel-DoJnKLXI.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-Dj8sDiLN.js → CommentsSidebar-CUtgvdBC.js} +100 -99
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js → CountdownBlock-BqRw147R.js} +18 -18
- package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js.map → CountdownBlock-BqRw147R.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CguFJdqn.js → CountdownToolbar-xobieKoU.js} +26 -26
- package/dist/cdn/chunks/{CountdownToolbar-CguFJdqn.js.map → CountdownToolbar-xobieKoU.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js → IssuesPanel-C7LfxaAY.js} +75 -75
- package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js.map → IssuesPanel-C7LfxaAY.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js → LoadingTrack-CZuLTazv.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js.map → LoadingTrack-CZuLTazv.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js → LogicTagInsertButton-BIi05UQu.js} +250 -250
- package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js.map → LogicTagInsertButton-BIi05UQu.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js → MediaEditModal-Cpcod6_U.js} +148 -148
- package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js.map → MediaEditModal-Cpcod6_U.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js → MediaPanels-BIdcW_1f.js} +3 -3
- package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js.map → MediaPanels-BIdcW_1f.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js → MergeTagInput-BvWg8o5E.js} +32 -32
- package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js.map → MergeTagInput-BvWg8o5E.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js → MergeTagModeToggle-BgKEVUtV.js} +27 -27
- package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js.map → MergeTagModeToggle-BgKEVUtV.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-Zo0mYWbf.js → MergeTagTextarea-tBz8McZf.js} +32 -32
- package/dist/cdn/chunks/{MergeTagTextarea-Zo0mYWbf.js.map → MergeTagTextarea-tBz8McZf.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DsPLVAgm.js → ParagraphEditor-B3Rj_cWF.js} +191 -191
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js → RestoreVersionDialog-CjOdD2xj.js} +19 -19
- package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js.map → RestoreVersionDialog-CjOdD2xj.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js → RichTextEditorContent-DNjR_sNN.js} +29 -29
- package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js.map → RichTextEditorContent-DNjR_sNN.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js → SaveBlockDialog-CUhpawq0.js} +75 -75
- package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js.map → SaveBlockDialog-CUhpawq0.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js +356 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-B9XCjDfm.js.map → SavedBlocksBrowserModal-BPYcRoGa.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js → SavedBlocksPanels-C6--Bc81.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js.map → SavedBlocksPanels-C6--Bc81.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js → SavedBlocksPickBar-DUavxpbU.js} +14 -14
- package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js.map → SavedBlocksPickBar-DUavxpbU.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-jWpmuWDR.js → TemplateSettings-CKtI-dof.js} +69 -69
- package/dist/cdn/chunks/{TemplateSettings-jWpmuWDR.js.map → TemplateSettings-CKtI-dof.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js → TestEmailModal-CDQTgESD.js} +65 -65
- package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js.map → TestEmailModal-CDQTgESD.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js → TestEmailPanel-CcUpEpAn.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js.map → TestEmailPanel-CcUpEpAn.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-R2lQw6WA.js → TitleEditor-Cob7RLyK.js} +70 -70
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +1 -0
- package/dist/cdn/chunks/{ToggleSwitch-BDMugNES.js → ToggleSwitch-J7Vwhvha.js} +5 -5
- package/dist/cdn/chunks/{ToggleSwitch-BDMugNES.js.map → ToggleSwitch-J7Vwhvha.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-CnvfW72e.js → Toolbar-CdpsvNOR.js} +893 -893
- package/dist/cdn/chunks/{Toolbar-CnvfW72e.js.map → Toolbar-CdpsvNOR.js.map} +1 -1
- package/dist/cdn/chunks/TplModal-CFPDgbwQ.js +51 -0
- package/dist/cdn/chunks/{TplModal-BDyeS69p.js.map → TplModal-CFPDgbwQ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js → VersionHistoryMenu-BYlLRvRJ.js} +32 -32
- package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js.map → VersionHistoryMenu-BYlLRvRJ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js → VersionHistoryPanels-C6SOVoiT.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js.map → VersionHistoryPanels-C6SOVoiT.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-CZ--HOoa.js → VersionPreviewBanner-Dvg0ZfAW.js} +10 -10
- package/dist/cdn/chunks/{VersionPreviewBanner-CZ--HOoa.js.map → VersionPreviewBanner-Dvg0ZfAW.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-D3obNGab.js → WrapperBlock-C7Md56IT.js} +13 -13
- package/dist/cdn/chunks/{WrapperBlock-D3obNGab.js.map → WrapperBlock-C7Md56IT.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js +21 -0
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js → createCloudRuntime-Cth2JCEh.js} +36 -36
- package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js.map → createCloudRuntime-Cth2JCEh.js.map} +1 -1
- package/dist/cdn/chunks/{dist-C2epoAwW.js → dist-8ym3y-pH.js} +43 -43
- package/dist/cdn/chunks/{dist-C2epoAwW.js.map → dist-8ym3y-pH.js.map} +1 -1
- package/dist/{dist-BA-jTQgw.js → cdn/chunks/dist-BMzNabtD.js} +106 -107
- package/dist/cdn/chunks/{dist-CONcGNwy.js.map → dist-BMzNabtD.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-B8hTTYFO.js → draggable-Du8AUMFT.js} +639 -636
- package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js → editor-modal-CyCe560f.js} +891 -891
- package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js.map → editor-modal-CyCe560f.js.map} +1 -1
- package/dist/cdn/chunks/en-TIqv4ag3.js +1 -0
- package/dist/cdn/chunks/{extensions-ClDhn88e.js → extensions-CFF2KWy-.js} +55 -55
- package/dist/cdn/chunks/{extensions-ClDhn88e.js.map → extensions-CFF2KWy-.js.map} +1 -1
- package/dist/cdn/chunks/{icons-HCBP93Ch.js → icons-okSPsLOa.js} +99 -97
- package/dist/cdn/chunks/icons-okSPsLOa.js.map +1 -0
- package/dist/cdn/chunks/{keys-BF9gazbd.js → keys-CUj6UA38.js} +2 -2
- package/dist/cdn/chunks/{keys-BF9gazbd.js.map → keys-CUj6UA38.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-DkLBNrft.js → liquid.browser-rubac0VA.js} +782 -746
- package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DpHCSESZ.js → normalizeMergeTagMarkup-C_KlfSW4.js} +2 -2
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DpHCSESZ.js.map → normalizeMergeTagMarkup-C_KlfSW4.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js → preRenderCustomBlocks-BcXIz7oJ.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js.map → preRenderCustomBlocks-BcXIz7oJ.js.map} +1 -1
- package/dist/cdn/chunks/{sanitizeHtml-B2h15u0_.js → sanitizeHtml-CN85EDrO.js} +2 -2
- package/dist/cdn/chunks/{sanitizeHtml-B2h15u0_.js.map → sanitizeHtml-CN85EDrO.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-rJoqO1TJ.js → socialIcons-jsTDmkbb.js} +480 -480
- package/dist/cdn/chunks/{socialIcons-rJoqO1TJ.js.map → socialIcons-jsTDmkbb.js.map} +1 -1
- package/dist/cdn/chunks/{src-CUH_EI7k.js → src-C7bkofBL.js} +6 -6
- package/dist/cdn/chunks/{src-CUH_EI7k.js.map → src-C7bkofBL.js.map} +1 -1
- package/dist/cdn/chunks/{src-BKpAis_q.js → src-DEd87i_U.js} +2 -2
- package/dist/cdn/chunks/{src-BKpAis_q.js.map → src-DEd87i_U.js.map} +1 -1
- package/dist/cdn/chunks/{src-C9DTvn1H.js → src-DwWrYnUj.js} +3 -22
- package/dist/cdn/chunks/src-DwWrYnUj.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-ChSZybTi.js → tiptap-CbiTlECY.js} +45 -45
- package/dist/cdn/chunks/{tiptap-ChSZybTi.js.map → tiptap-CbiTlECY.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js → useCloudI18n-DY8_-ETE.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js.map → useCloudI18n-DY8_-ETE.js.map} +1 -1
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +2582 -0
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-BT3c9CXj.js.map → useEditorRoot-vjZJwKrV.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-11iqzC6m.js → useI18n-D8pY4LTq.js} +3 -3
- package/dist/cdn/chunks/{useI18n-11iqzC6m.js.map → useI18n-D8pY4LTq.js.map} +1 -1
- package/dist/{useLogicTag-DFDYJeMN.js → cdn/chunks/useLogicTag-DBJDtpKA.js} +5 -3
- package/dist/cdn/chunks/{useLogicTag-vy5KGg5D.js.map → useLogicTag-DBJDtpKA.js.map} +1 -1
- package/dist/{useMergeTag-B46vACAG.js → cdn/chunks/useMergeTag-B-aG--s1.js} +7 -5
- package/dist/cdn/chunks/{useMergeTag-BFBBjnwh.js.map → useMergeTag-B-aG--s1.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-AnVIwiVv.js → usePopoverPosition-DSMtmu2W.js} +4 -4
- package/dist/cdn/chunks/{usePopoverPosition-AnVIwiVv.js.map → usePopoverPosition-DSMtmu2W.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js → useScrollToBlock-vjQ0fe-L.js} +3 -3
- package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js.map → useScrollToBlock-vjQ0fe-L.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js → withCurrentFont-hZTvYBHO.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js.map → withCurrentFont-hZTvYBHO.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1422 -1422
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-N3x4z_rH.js → check-BZ8o0eet.js} +1 -1
- package/dist/{chevron-down-gXu9qNwO.js → chevron-down-DfAAfILv.js} +1 -1
- package/dist/{chevron-right-rL0ayGk5.js → chevron-right-Bk4mGdr7.js} +1 -1
- package/dist/{chevron-up-0ugh8HnW.js → chevron-up-MhUf_azW.js} +1 -1
- package/dist/{circle-alert-B9Ls75B5.js → circle-alert-CShJwVFv.js} +1 -1
- package/dist/{clock-BqHBaCLm.js → clock-CTfD6OCt.js} +1 -1
- package/dist/{createCloudRuntime-B5VIdnwz.js → createCloudRuntime-DCgO4A1r.js} +24 -24
- package/dist/{createLucideIcon-BV7Gwz_Z.js → createLucideIcon-CvhTA2KG.js} +6 -6
- package/dist/{cdn/chunks/dist-CONcGNwy.js → dist-ByCWA2Tv.js} +100 -99
- package/dist/{dist-CzrLYq2s.js → dist-CKi_npZM.js} +2 -21
- package/dist/{dist-CEdyyDn7.js → dist-CVy-7PHQ.js} +54 -54
- package/dist/{dist-DDN7yR-w.js → dist-D6cMdrfG.js} +129 -129
- package/dist/{editor-modal-Du9VI9q4.js → editor-modal-zaZHcmlO.js} +812 -812
- package/dist/en-Db76vJbY.js +1 -0
- package/dist/{extensions-FRYhx7qa.js → extensions-fo_c-vqf.js} +32 -32
- package/dist/{eye-BKj9Tfnc.js → eye-7W4t5e0Q.js} +1 -1
- package/dist/{image-DNdvdTla.js → image-BDiRFzSd.js} +1 -1
- package/dist/{info-Bx-kBkbH.js → info-Cxi3-Kh9.js} +1 -1
- package/dist/{keys-DBjrQkYH.js → keys-BgRERHzu.js} +1 -1
- package/dist/{link-D8-rYdIQ.js → link-ju_2Cmir.js} +1 -1
- package/dist/{liquid.browser-D1RxawkY.js → liquid.browser-DUXEekoN.js} +781 -745
- package/dist/{list-BneisA27.js → list-DYZJf0aZ.js} +1 -1
- package/dist/{loader-circle-DBEXphyx.js → loader-circle-BZRD0a4I.js} +1 -1
- package/dist/{message-circle-Bg4xInCM.js → message-circle-DuEw4Zfx.js} +1 -1
- package/dist/{normalizeMergeTagMarkup-IH8COHzd.js → normalizeMergeTagMarkup-CELnOlgK.js} +1 -1
- package/dist/{package-B40Vkfsp.js → package-CePMr2kK.js} +1 -1
- package/dist/{pencil-CYdAHTds.js → pencil-D3aFCL7c.js} +1 -1
- package/dist/{preRenderCustomBlocks-AbZArwkR.js → preRenderCustomBlocks--_xc0XK3.js} +1 -1
- package/dist/{refresh-cw-Bb1FWrU0.js → refresh-cw-xnro7_Sk.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-CLGymEyk.js → runtime-dom.esm-bundler-BURR-bj5.js} +118 -118
- package/dist/{sanitizeHtml-CnOA1efV.js → sanitizeHtml-BzfzpYJY.js} +1 -1
- package/dist/{search-BZEo08gi.js → search-CDrstRBv.js} +1 -1
- package/dist/{send-DHtrnXQs.js → send-DROkPOaX.js} +1 -1
- package/dist/{smartphone-dlN3vpA3.js → smartphone-Bx6u_tjn.js} +1 -1
- package/dist/{socialIcons-B_d52_eS.js → socialIcons-D7MGsg0d.js} +366 -366
- package/dist/{sparkles-NOttoDnJ.js → sparkles-CdaTtvoz.js} +1 -1
- package/dist/{square-B1CJgdt2.js → square-BbCROH_f.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +1096 -1096
- package/dist/{text-align-start-zpoXmb-Z.js → text-align-start-CGacJ9Vw.js} +1 -1
- package/dist/{trash-CGbk4Sgt.js → trash-DxCd7zIy.js} +1 -1
- package/dist/{triangle-alert-CKLMyGVp.js → triangle-alert-7_oaitpf.js} +1 -1
- package/dist/{upload-DQoackAn.js → upload-DuFEOi_0.js} +1 -1
- package/dist/{useCloudI18n-DcLtxOQZ.js → useCloudI18n-DEMmUKuO.js} +2 -2
- package/dist/{useEditorCore-DG9UvWUm.js → useEditorCore-BSo2sSID.js} +1518 -1470
- package/dist/useEditorRoot-BMcoCLBx.js +7 -0
- package/dist/{useI18n-CeTm777E.js → useI18n-BBrHTdu8.js} +2 -2
- package/dist/{cdn/chunks/useLogicTag-vy5KGg5D.js → useLogicTag-ZPC39rfH.js} +3 -5
- package/dist/{cdn/chunks/useMergeTag-BFBBjnwh.js → useMergeTag-BQ4qqWpQ.js} +5 -7
- package/dist/{usePopoverPosition-C42kD7zt.js → usePopoverPosition-DV1PxL66.js} +3 -3
- package/dist/{useScrollToBlock-C-NzvjeO.js → useScrollToBlock-BSyAV4pk.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-CrlI8j5R.js → vue.runtime.esm-bundler-CnEeTfhs.js} +993 -990
- package/dist/{withCurrentFont-v_a4Oso8.js → withCurrentFont-B22FXAF5.js} +1 -1
- package/dist/{x-zcrnmcmU.js → x-BpfG7v9g.js} +1 -1
- package/package.json +10 -10
- package/dist/BlockIssueBadge-6Ri2FfX-.js +0 -33
- package/dist/CommentsSidebar-Co3x4uH0.js +0 -499
- package/dist/IssuesPanel-BHFQ3wrP.js +0 -359
- package/dist/SavedBlocksBrowserModal-SRtN5h9q.js +0 -359
- package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js +0 -34
- package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-Dj8sDiLN.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-DsPLVAgm.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-B9XCjDfm.js +0 -356
- package/dist/cdn/chunks/TitleEditor-R2lQw6WA.js.map +0 -1
- package/dist/cdn/chunks/TplModal-BDyeS69p.js +0 -51
- package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js +0 -21
- package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js.map +0 -1
- package/dist/cdn/chunks/draggable-B8hTTYFO.js.map +0 -1
- package/dist/cdn/chunks/en-CKAXAo3Z.js +0 -1
- package/dist/cdn/chunks/icons-HCBP93Ch.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-DkLBNrft.js.map +0 -1
- package/dist/cdn/chunks/src-C9DTvn1H.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CjaEV_01.js +0 -2534
- package/dist/cdn/chunks/useEditorCore-CjaEV_01.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-BT3c9CXj.js +0 -9
- package/dist/en-CyEE7FPY.js +0 -1
- package/dist/useEditorRoot-BKr6nNkC.js +0 -7
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as
|
|
3
|
-
import { X as
|
|
4
|
-
import { t as
|
|
5
|
-
import { D as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { n as
|
|
9
|
-
import { S as
|
|
1
|
+
import { A as e, C as t, D as n, G as r, I as i, L as a, P as o, V as s, W as c, _ as l, b as u, et as d, ft as f, g as p, h as m, m as h, o as ee, p as g, st as _, u as v, ut as y, x as b } from "./draggable-Du8AUMFT.js";
|
|
2
|
+
import { _ as te, g as ne } from "./dist-8ym3y-pH.js";
|
|
3
|
+
import { X as x } from "./keys-CUj6UA38.js";
|
|
4
|
+
import { t as re } from "./useI18n-D8pY4LTq.js";
|
|
5
|
+
import { D as S, Ft as ie, K as ae, T as oe, Tt as C, _t as w, at as se, j as ce, l as le, t as T, tt as ue, z as de } from "./icons-okSPsLOa.js";
|
|
6
|
+
import { t as fe } from "./LoadingTrack-CZuLTazv.js";
|
|
7
|
+
import { t as E } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
8
|
+
import { n as D } from "./aiErrors-C3QEMB0x.js";
|
|
9
|
+
import { S as O } from "./styleConstants-B8xVRiwX.js";
|
|
10
10
|
// src/components/ai/AiPanelShell.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
-
var
|
|
11
|
+
var k = ["aria-label", "data-testid"], A = { 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" }, j = { class: "tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5" }, M = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, N = { "data-testid": "ai-panel-title" }, P = {
|
|
12
12
|
key: 0,
|
|
13
13
|
"data-testid": "ai-panel-subtitle",
|
|
14
14
|
class: "tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
15
|
-
},
|
|
15
|
+
}, F = { class: "tpl:flex tpl:items-center tpl:gap-1" }, I = ["aria-label", "title"], L = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col" }, pe = /* @__PURE__ */ t({
|
|
16
16
|
__name: "AiPanelShell",
|
|
17
17
|
props: {
|
|
18
18
|
title: {},
|
|
@@ -29,25 +29,25 @@ var O = ["aria-label", "data-testid"], k = { class: "tpl:flex tpl:items-start tp
|
|
|
29
29
|
"data-testid": e.testid,
|
|
30
30
|
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)]"
|
|
31
31
|
}, [
|
|
32
|
-
h("div",
|
|
32
|
+
h("div", A, [h("div", j, [h("div", M, [b(_(S), {
|
|
33
33
|
size: 13,
|
|
34
34
|
"stroke-width": 2,
|
|
35
35
|
"aria-hidden": "true"
|
|
36
|
-
}), h("span",
|
|
36
|
+
}), h("span", N, f(e.title), 1)]), e.subtitle ? (o(), l("p", P, f(e.subtitle), 1)) : p("", !0)]), h("div", F, [a(t.$slots, "actions"), h("button", {
|
|
37
37
|
type: "button",
|
|
38
38
|
"data-testid": "ai-panel-close",
|
|
39
39
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
|
|
40
40
|
"aria-label": e.closeLabel,
|
|
41
41
|
title: e.closeLabel,
|
|
42
42
|
onClick: r[0] ||= (e) => n("close")
|
|
43
|
-
}, [
|
|
43
|
+
}, [b(_(T), {
|
|
44
44
|
size: 14,
|
|
45
45
|
"stroke-width": 2,
|
|
46
46
|
"aria-hidden": "true"
|
|
47
|
-
})], 8,
|
|
48
|
-
h("div",
|
|
47
|
+
})], 8, I)])]),
|
|
48
|
+
h("div", L, [a(t.$slots, "default")]),
|
|
49
49
|
a(t.$slots, "footer")
|
|
50
|
-
], 8,
|
|
50
|
+
], 8, k));
|
|
51
51
|
}
|
|
52
52
|
}), R = /* @__PURE__ */ new Set([
|
|
53
53
|
"image/png",
|
|
@@ -130,14 +130,14 @@ var B = [
|
|
|
130
130
|
}, 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 = {
|
|
131
131
|
key: 0,
|
|
132
132
|
class: "tpl:mb-2 tpl:flex tpl:flex-wrap tpl:gap-1"
|
|
133
|
-
},
|
|
133
|
+
}, V = { class: "tpl:truncate" }, Me = [
|
|
134
134
|
"aria-label",
|
|
135
135
|
"disabled",
|
|
136
136
|
"onClick"
|
|
137
|
-
],
|
|
137
|
+
], Ne = {
|
|
138
138
|
key: 1,
|
|
139
139
|
class: "tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
140
|
-
},
|
|
140
|
+
}, Pe = {
|
|
141
141
|
"aria-live": "polite",
|
|
142
142
|
class: "tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
143
143
|
}, Fe = {
|
|
@@ -165,33 +165,33 @@ var B = [
|
|
|
165
165
|
"aria-label",
|
|
166
166
|
"title",
|
|
167
167
|
"disabled"
|
|
168
|
-
], We = { class: "tpl:m-0 tpl:px-1 tpl:pt-2 tpl:text-center tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, H = /*#__PURE__*/
|
|
168
|
+
], We = { 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__ */ t({
|
|
169
169
|
__name: "AiChatPanel",
|
|
170
170
|
props: { feature: {} },
|
|
171
171
|
emits: ["close"],
|
|
172
|
-
setup(
|
|
173
|
-
let
|
|
174
|
-
|
|
175
|
-
|
|
172
|
+
setup(t, { emit: a }) {
|
|
173
|
+
let E = t, k = a, { t: A, format: j } = re(), M = n(x, void 0), N = d(""), P = d(null), F = d(null), I = d([]), L = d([]), R = d(0);
|
|
174
|
+
s(() => E.feature.templateSession.value, () => {
|
|
175
|
+
N.value = "", I.value = [], L.value = [], R.value = 0;
|
|
176
176
|
}, { flush: "sync" });
|
|
177
|
-
let H =
|
|
177
|
+
let H = g(() => E.feature.has("chatAttachments"));
|
|
178
178
|
function U(e) {
|
|
179
|
-
let t = z(
|
|
180
|
-
|
|
179
|
+
let t = z(I.value, e);
|
|
180
|
+
I.value = t.accepted;
|
|
181
181
|
let n = {
|
|
182
182
|
tooMany: "attachTooMany",
|
|
183
183
|
tooLarge: "attachTooLarge",
|
|
184
184
|
totalTooLarge: "attachTotalTooLarge",
|
|
185
185
|
wrongType: "attachWrongType"
|
|
186
186
|
};
|
|
187
|
-
|
|
187
|
+
L.value = t.errors.map((e) => j(A.ai.chat[n[e.reason]], { name: e.name }));
|
|
188
188
|
}
|
|
189
189
|
function Ge(e) {
|
|
190
190
|
let t = e.target;
|
|
191
191
|
!Y.value && H.value && U(Array.from(t.files ?? [])), t.value = "";
|
|
192
192
|
}
|
|
193
193
|
function Ke(e) {
|
|
194
|
-
Y.value || (
|
|
194
|
+
Y.value || (I.value.splice(e, 1), L.value = []);
|
|
195
195
|
}
|
|
196
196
|
function W(e) {
|
|
197
197
|
return Array.from(e.dataTransfer?.types ?? []).includes("Files");
|
|
@@ -208,89 +208,89 @@ var B = [
|
|
|
208
208
|
function Xe(e) {
|
|
209
209
|
R.value = 0, H.value && W(e) && (e.preventDefault(), Y.value || U(Array.from(e.dataTransfer?.files ?? [])));
|
|
210
210
|
}
|
|
211
|
-
|
|
212
|
-
H.value &&
|
|
211
|
+
s(() => E.feature.importQueue.value, (t) => {
|
|
212
|
+
H.value && t.length && (U(t), N.value.trim() || (N.value = A.ai.import.prompt), E.feature.importQueue.value = [], e(() => P.value?.focus()));
|
|
213
213
|
}, { immediate: !0 });
|
|
214
|
-
let G =
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
214
|
+
let G = d(null), K = d(0), q = g(() => E.feature.isTemplateEmpty.value ? [
|
|
215
|
+
A.ai.starters.emptyWelcome,
|
|
216
|
+
A.ai.starters.emptyLaunch,
|
|
217
|
+
A.ai.starters.emptyNewsletter
|
|
218
218
|
] : [
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
]), J =
|
|
224
|
-
let e =
|
|
225
|
-
return e ?
|
|
226
|
-
}), { pause: Z, resume: Ze } =
|
|
219
|
+
A.ai.starters.filledShorten,
|
|
220
|
+
A.ai.starters.filledFriendlier,
|
|
221
|
+
A.ai.starters.filledDates,
|
|
222
|
+
A.ai.starters.filledCta
|
|
223
|
+
]), J = g(() => E.feature.messages.value), Y = g(() => E.feature.isRunning.value), X = g(() => {
|
|
224
|
+
let e = E.feature.failure.value;
|
|
225
|
+
return e ? D(e.error, A.ai.errors, j, M, e.context) : "";
|
|
226
|
+
}), { pause: Z, resume: Ze } = ne(() => {
|
|
227
227
|
K.value < q.value.length ? K.value++ : Z();
|
|
228
|
-
}, 150, { immediate: !1 }), { start: Qe } =
|
|
229
|
-
|
|
228
|
+
}, 150, { immediate: !1 }), { start: Qe } = te(() => Ze(), 100, { immediate: !1 });
|
|
229
|
+
s(() => q.value.length, (e) => {
|
|
230
230
|
Z(), K.value = 0, e > 0 && Qe();
|
|
231
231
|
}, { immediate: !0 });
|
|
232
232
|
function Q() {
|
|
233
|
-
|
|
233
|
+
e(() => {
|
|
234
234
|
G.value && (G.value.scrollTop = G.value.scrollHeight);
|
|
235
235
|
});
|
|
236
236
|
}
|
|
237
|
-
|
|
238
|
-
e && (
|
|
237
|
+
s(() => J.value.length, Q), s(() => [E.feature.failedPrompt.value, E.feature.failedAttachments.value], ([e, t]) => {
|
|
238
|
+
e && (N.value = e, I.value = [...t]);
|
|
239
239
|
}, { immediate: !0 });
|
|
240
240
|
async function $() {
|
|
241
|
-
let e =
|
|
241
|
+
let e = N.value.trim();
|
|
242
242
|
if (!e || Y.value) return;
|
|
243
|
-
let t = [...
|
|
244
|
-
|
|
243
|
+
let t = [...I.value];
|
|
244
|
+
N.value = "", I.value = [], L.value = [], Q(), await E.feature.send(e, t), Q();
|
|
245
245
|
}
|
|
246
246
|
function $e(e) {
|
|
247
|
-
return e.undone ?
|
|
247
|
+
return e.undone ? A.ai.chat.undone : e.operationCount === 1 ? A.ai.chat.appliedChange : j(A.ai.chat.appliedChanges, { count: e.operationCount });
|
|
248
248
|
}
|
|
249
249
|
function et(e) {
|
|
250
|
-
return e.failure ?
|
|
250
|
+
return e.failure ? D(e.failure.error, A.ai.errors, j, M, e.failure.context) : "";
|
|
251
251
|
}
|
|
252
252
|
function tt(e) {
|
|
253
|
-
e.undone ?
|
|
253
|
+
e.undone ? E.feature.redoMessage(e.id) : E.feature.undoMessage(e.id);
|
|
254
254
|
}
|
|
255
255
|
function nt(e) {
|
|
256
|
-
Z(),
|
|
256
|
+
Z(), N.value = e, $();
|
|
257
257
|
}
|
|
258
258
|
function rt(e) {
|
|
259
259
|
e.isComposing || e.keyCode === 229 || e.key === "Enter" && !e.shiftKey && (e.preventDefault(), $());
|
|
260
260
|
}
|
|
261
|
-
return (e,
|
|
261
|
+
return (e, n) => (o(), l("div", {
|
|
262
262
|
class: "tpl:contents",
|
|
263
263
|
"data-testid": "ai-chat-dropzone",
|
|
264
264
|
onDragenter: qe,
|
|
265
265
|
onDragleave: Je,
|
|
266
266
|
onDragover: Ye,
|
|
267
267
|
onDrop: Xe
|
|
268
|
-
}, [
|
|
269
|
-
title:
|
|
270
|
-
subtitle:
|
|
268
|
+
}, [b(pe, {
|
|
269
|
+
title: _(A).ai.chat.title,
|
|
270
|
+
subtitle: _(A).ai.chat.notice,
|
|
271
271
|
testid: "ai-panel-chat",
|
|
272
|
-
"close-label":
|
|
273
|
-
onClose:
|
|
272
|
+
"close-label": _(A).ai.chat.close,
|
|
273
|
+
onClose: n[5] ||= (e) => k("close")
|
|
274
274
|
}, {
|
|
275
|
-
actions:
|
|
275
|
+
actions: c(() => [t.feature.canClear && J.value.length > 0 ? (o(), l("button", {
|
|
276
276
|
key: 0,
|
|
277
277
|
type: "button",
|
|
278
278
|
"data-testid": "ai-chat-new",
|
|
279
279
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)] tpl:disabled:opacity-40",
|
|
280
|
-
"aria-label":
|
|
281
|
-
title:
|
|
280
|
+
"aria-label": _(A).ai.chat.newChat,
|
|
281
|
+
title: _(A).ai.chat.newChat,
|
|
282
282
|
disabled: Y.value,
|
|
283
|
-
onClick:
|
|
284
|
-
}, [
|
|
283
|
+
onClick: n[0] ||= (e) => t.feature.newChat()
|
|
284
|
+
}, [b(_(ue), {
|
|
285
285
|
size: 14,
|
|
286
286
|
"stroke-width": 2,
|
|
287
287
|
"aria-hidden": "true"
|
|
288
|
-
})], 8, B)) :
|
|
289
|
-
footer:
|
|
288
|
+
})], 8, B)) : p("", !0)]),
|
|
289
|
+
footer: c(() => [h("div", ke, [
|
|
290
290
|
H.value ? (o(), l(v, { key: 0 }, [
|
|
291
291
|
h("input", {
|
|
292
292
|
ref_key: "fileInput",
|
|
293
|
-
ref:
|
|
293
|
+
ref: F,
|
|
294
294
|
"data-testid": "ai-chat-files",
|
|
295
295
|
type: "file",
|
|
296
296
|
multiple: "",
|
|
@@ -299,82 +299,82 @@ var B = [
|
|
|
299
299
|
disabled: Y.value,
|
|
300
300
|
onChange: Ge
|
|
301
301
|
}, null, 40, Ae),
|
|
302
|
-
|
|
302
|
+
I.value.length ? (o(), l("div", je, [(o(!0), l(v, null, i(I.value, (e, t) => (o(), l("span", {
|
|
303
303
|
key: t,
|
|
304
304
|
"data-testid": "ai-chat-attachment",
|
|
305
305
|
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)]"
|
|
306
306
|
}, [
|
|
307
|
-
e.type === "application/pdf" ? (o(),
|
|
307
|
+
e.type === "application/pdf" ? (o(), m(_(C), {
|
|
308
308
|
key: 0,
|
|
309
309
|
size: 12,
|
|
310
310
|
"aria-hidden": "true"
|
|
311
|
-
})) : (o(),
|
|
311
|
+
})) : (o(), m(_(w), {
|
|
312
312
|
key: 1,
|
|
313
313
|
size: 12,
|
|
314
314
|
"aria-hidden": "true"
|
|
315
315
|
})),
|
|
316
|
-
h("span",
|
|
316
|
+
h("span", V, f(e.name), 1),
|
|
317
317
|
h("button", {
|
|
318
318
|
type: "button",
|
|
319
|
-
"aria-label":
|
|
319
|
+
"aria-label": _(j)(_(A).ai.chat.removeAttachment, { name: e.name }),
|
|
320
320
|
disabled: Y.value,
|
|
321
321
|
class: "tpl:shrink-0 tpl:rounded tpl:p-0.5 tpl:disabled:opacity-40",
|
|
322
322
|
onClick: (e) => Ke(t)
|
|
323
|
-
}, [
|
|
323
|
+
}, [b(_(T), {
|
|
324
324
|
size: 12,
|
|
325
325
|
"aria-hidden": "true"
|
|
326
|
-
})], 8,
|
|
327
|
-
]))), 128))])) :
|
|
328
|
-
|
|
329
|
-
h("div",
|
|
326
|
+
})], 8, Me)
|
|
327
|
+
]))), 128))])) : p("", !0),
|
|
328
|
+
I.value.length ? (o(), l("p", Ne, f(_(A).ai.import.placeholderNote), 1)) : p("", !0),
|
|
329
|
+
h("div", Pe, [(o(!0), l(v, null, i(L.value, (e, t) => (o(), l("p", {
|
|
330
330
|
key: t,
|
|
331
331
|
class: "tpl:mb-2"
|
|
332
|
-
},
|
|
333
|
-
], 64)) :
|
|
334
|
-
|
|
332
|
+
}, f(e), 1))), 128))])
|
|
333
|
+
], 64)) : p("", !0),
|
|
334
|
+
t.feature.keptYourVersion.value ? (o(), l("div", Fe, [h("p", null, f(_(A).ai.chat.keptYourVersion), 1), h("button", {
|
|
335
335
|
type: "button",
|
|
336
336
|
disabled: Y.value,
|
|
337
|
-
class:
|
|
338
|
-
onClick:
|
|
339
|
-
},
|
|
340
|
-
X.value ? (o(), l("div", Le, [
|
|
337
|
+
class: y(_(O)),
|
|
338
|
+
onClick: n[1] ||= (e) => t.feature.reloadTemplate()
|
|
339
|
+
}, f(_(A).ai.chat.reload), 11, Ie)])) : p("", !0),
|
|
340
|
+
X.value ? (o(), l("div", Le, [b(_(ie), {
|
|
341
341
|
size: 14,
|
|
342
342
|
"stroke-width": 2,
|
|
343
343
|
class: "tpl:mt-0.5 tpl:shrink-0",
|
|
344
344
|
"aria-hidden": "true"
|
|
345
|
-
}), h("span", null,
|
|
346
|
-
h("div", Re, [
|
|
345
|
+
}), h("span", null, f(X.value), 1)])) : p("", !0),
|
|
346
|
+
h("div", Re, [r(h("textarea", {
|
|
347
347
|
ref_key: "composer",
|
|
348
|
-
ref:
|
|
349
|
-
"onUpdate:modelValue":
|
|
348
|
+
ref: P,
|
|
349
|
+
"onUpdate:modelValue": n[2] ||= (e) => N.value = e,
|
|
350
350
|
"data-testid": "ai-chat-input",
|
|
351
351
|
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)]",
|
|
352
|
-
placeholder:
|
|
353
|
-
"aria-label":
|
|
352
|
+
placeholder: _(A).ai.chat.inputPlaceholder,
|
|
353
|
+
"aria-label": _(A).ai.chat.inputPlaceholder,
|
|
354
354
|
disabled: Y.value,
|
|
355
355
|
maxlength: "4000",
|
|
356
356
|
rows: "3",
|
|
357
357
|
onKeydown: rt
|
|
358
|
-
}, null, 40, ze), [[
|
|
358
|
+
}, null, 40, ze), [[ee, N.value]]), h("div", Be, [H.value ? (o(), l("button", {
|
|
359
359
|
key: 0,
|
|
360
360
|
type: "button",
|
|
361
|
-
"aria-label":
|
|
362
|
-
title:
|
|
361
|
+
"aria-label": _(A).ai.chat.attach,
|
|
362
|
+
title: _(A).ai.chat.attach,
|
|
363
363
|
disabled: Y.value,
|
|
364
364
|
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",
|
|
365
|
-
onClick:
|
|
366
|
-
}, [
|
|
365
|
+
onClick: n[3] ||= (e) => F.value?.click()
|
|
366
|
+
}, [b(_(ae), {
|
|
367
367
|
size: 16,
|
|
368
368
|
"aria-hidden": "true"
|
|
369
|
-
})], 8, Ve)) :
|
|
369
|
+
})], 8, Ve)) : p("", !0), Y.value ? (o(), l("button", {
|
|
370
370
|
key: 1,
|
|
371
371
|
type: "button",
|
|
372
372
|
"data-testid": "ai-chat-stop",
|
|
373
373
|
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)]",
|
|
374
|
-
"aria-label":
|
|
375
|
-
title:
|
|
376
|
-
onClick:
|
|
377
|
-
}, [
|
|
374
|
+
"aria-label": _(A).ai.chat.stop,
|
|
375
|
+
title: _(A).ai.chat.stop,
|
|
376
|
+
onClick: n[4] ||= (e) => t.feature.stop()
|
|
377
|
+
}, [b(_(oe), {
|
|
378
378
|
size: 16,
|
|
379
379
|
"stroke-width": 2,
|
|
380
380
|
"aria-hidden": "true"
|
|
@@ -383,75 +383,75 @@ var B = [
|
|
|
383
383
|
type: "button",
|
|
384
384
|
"data-testid": "ai-chat-send",
|
|
385
385
|
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)]",
|
|
386
|
-
"aria-label":
|
|
387
|
-
title:
|
|
388
|
-
disabled: !
|
|
386
|
+
"aria-label": _(A).ai.chat.send,
|
|
387
|
+
title: _(A).ai.chat.send,
|
|
388
|
+
disabled: !N.value.trim(),
|
|
389
389
|
onClick: $
|
|
390
|
-
}, [
|
|
390
|
+
}, [b(_(ce), {
|
|
391
391
|
size: 16,
|
|
392
392
|
"stroke-width": 2,
|
|
393
393
|
"aria-hidden": "true"
|
|
394
394
|
})], 8, Ue))])]),
|
|
395
|
-
h("p", We,
|
|
395
|
+
h("p", We, f(_(A).ai.chat.disclaimer), 1)
|
|
396
396
|
])]),
|
|
397
|
-
default:
|
|
398
|
-
H.value && R.value > 0 && !Y.value ? (o(), l("div", me,
|
|
397
|
+
default: c(() => [
|
|
398
|
+
H.value && R.value > 0 && !Y.value ? (o(), l("div", me, f(_(A).ai.chat.dropHint), 1)) : p("", !0),
|
|
399
399
|
h("div", {
|
|
400
400
|
ref_key: "messagesContainer",
|
|
401
401
|
ref: G,
|
|
402
402
|
class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4"
|
|
403
|
-
}, [
|
|
403
|
+
}, [t.feature.isLoadingHistory.value ? (o(), l("div", he, [b(_(se), {
|
|
404
404
|
class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
|
|
405
405
|
size: 24,
|
|
406
406
|
"stroke-width": 2,
|
|
407
407
|
"aria-hidden": "true"
|
|
408
|
-
}), h("p", ge,
|
|
408
|
+
}), h("p", ge, f(_(A).ai.chat.loadingHistory), 1)])) : J.value.length === 0 ? (o(), l("div", _e, [b(_(S), {
|
|
409
409
|
size: 32,
|
|
410
410
|
"stroke-width": 1.5,
|
|
411
411
|
class: "tpl:text-[var(--tpl-text-dim)]",
|
|
412
412
|
"aria-hidden": "true"
|
|
413
|
-
}), h("p", ve,
|
|
413
|
+
}), h("p", ve, f(_(A).ai.chat.placeholder), 1)])) : (o(), l("div", ye, [(o(!0), l(v, null, i(J.value, (e) => (o(), l("div", {
|
|
414
414
|
key: e.id,
|
|
415
415
|
class: "tpl:flex tpl:flex-col tpl:gap-2"
|
|
416
|
-
}, [e.role === "user" ? (o(), l("div", be, [u(
|
|
416
|
+
}, [e.role === "user" ? (o(), l("div", be, [u(f(e.text) + " ", 1), (o(!0), l(v, null, i(e.attachments, (e, t) => (o(), l("span", {
|
|
417
417
|
key: t,
|
|
418
418
|
"data-testid": "ai-chat-history-attachment",
|
|
419
419
|
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"
|
|
420
|
-
}, [e.kind === "pdf" ? (o(),
|
|
420
|
+
}, [e.kind === "pdf" ? (o(), m(_(C), {
|
|
421
421
|
key: 0,
|
|
422
422
|
size: 12,
|
|
423
423
|
"aria-hidden": "true"
|
|
424
|
-
})) : (o(),
|
|
424
|
+
})) : (o(), m(_(w), {
|
|
425
425
|
key: 1,
|
|
426
426
|
size: 12,
|
|
427
427
|
"aria-hidden": "true"
|
|
428
|
-
})), u(
|
|
429
|
-
e.text === "" && e.status === "streaming" ? (o(),
|
|
430
|
-
e.operationCount > 0 ? (o(), l("div", Ce, [h("span", null,
|
|
428
|
+
})), u(f(e.name), 1)]))), 128))])) : (o(), l("div", xe, [
|
|
429
|
+
e.text === "" && e.status === "streaming" ? (o(), m(fe, { key: 0 })) : e.text === "" ? p("", !0) : (o(), l("div", Se, f(e.text), 1)),
|
|
430
|
+
e.operationCount > 0 ? (o(), l("div", Ce, [h("span", null, f($e(e)), 1), (e.undone ? e.canRedo : e.canUndo) ? (o(), l("button", {
|
|
431
431
|
key: 0,
|
|
432
432
|
type: "button",
|
|
433
433
|
"data-testid": "ai-chat-undo",
|
|
434
|
-
class:
|
|
434
|
+
class: y(_(O)),
|
|
435
435
|
disabled: Y.value,
|
|
436
436
|
onClick: (t) => tt(e)
|
|
437
|
-
}, [e.undone ? (o(),
|
|
437
|
+
}, [e.undone ? (o(), m(_(de), {
|
|
438
438
|
key: 0,
|
|
439
439
|
size: 12,
|
|
440
440
|
"stroke-width": 2,
|
|
441
441
|
"aria-hidden": "true"
|
|
442
|
-
})) : (o(),
|
|
442
|
+
})) : (o(), m(_(le), {
|
|
443
443
|
key: 1,
|
|
444
444
|
size: 12,
|
|
445
445
|
"stroke-width": 2,
|
|
446
446
|
"aria-hidden": "true"
|
|
447
|
-
})), u(" " +
|
|
448
|
-
e.failure ? (o(), l("p", Te,
|
|
447
|
+
})), u(" " + f(e.undone ? _(A).ai.chat.redo : _(A).ai.chat.undo), 1)], 10, we)) : p("", !0)])) : p("", !0),
|
|
448
|
+
e.failure ? (o(), l("p", Te, f(et(e)), 1)) : p("", !0)
|
|
449
449
|
]))]))), 128))]))], 512),
|
|
450
450
|
J.value.length === 0 && q.value.length > 0 ? (o(), l("div", Ee, [h("div", De, [(o(!0), l(v, null, i(q.value, (e, t) => (o(), l("button", {
|
|
451
451
|
key: t,
|
|
452
452
|
type: "button",
|
|
453
453
|
"data-testid": "ai-chat-starter",
|
|
454
|
-
class:
|
|
454
|
+
class: y(["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", q.value.length - 1 - t < K.value ? "tpl:translate-y-0 tpl:opacity-100" : "tpl:pointer-events-none tpl:-translate-y-2 tpl:opacity-0"]),
|
|
455
455
|
style: {
|
|
456
456
|
"border-color": "var(--tpl-border)",
|
|
457
457
|
color: "var(--tpl-primary)",
|
|
@@ -459,7 +459,7 @@ var B = [
|
|
|
459
459
|
"box-shadow": "var(--tpl-shadow)"
|
|
460
460
|
},
|
|
461
461
|
onClick: (t) => nt(e)
|
|
462
|
-
},
|
|
462
|
+
}, f(e), 11, Oe))), 128))])])) : p("", !0)
|
|
463
463
|
]),
|
|
464
464
|
_: 1
|
|
465
465
|
}, 8, [
|
|
@@ -471,4 +471,4 @@ var B = [
|
|
|
471
471
|
}), [["__scopeId", "data-v-e0f79f23"]]);
|
|
472
472
|
export { H as default };
|
|
473
473
|
|
|
474
|
-
//# sourceMappingURL=AiChatPanel-
|
|
474
|
+
//# sourceMappingURL=AiChatPanel-DKDAaBNi.js.map
|