@templatical/editor 0.60.4 → 0.62.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/LICENSE +21 -109
- package/README.md +3 -3
- package/dist/{AiAltTextPopover-DSA1wiiW.js → AiAltTextPopover-C1Ike67q.js} +3 -4
- package/dist/{AiAltTextReview-B9-vfzCj.js → AiAltTextReview-BjT7_PoG.js} +2 -3
- package/dist/{AiChatPanel-CjUnhJGB.js → AiChatPanel-C82fJozf.js} +165 -166
- package/dist/{AiPanels-DwI9KjjI.js → AiPanels-sam_GMNs.js} +1 -1
- package/dist/{AiRewriteMenu-Bh1cIX8F.js → AiRewriteMenu-CpBcT6QL.js} +3 -4
- package/dist/{BlockIssueBadge-Bug5iqcK.js → BlockIssueBadge-D3OmWkCh.js} +2 -3
- package/dist/{BlockPreviewCanvas-C_N6f_FS.js → BlockPreviewCanvas-BHRmnq0w.js} +6 -6
- package/dist/{CollaborationNotices-BM35YG72.js → CollaborationNotices-Cmc7Ziuf.js} +1 -1
- package/dist/{CollaboratorBar-DMsEOndt.js → CollaboratorBar-DVtWefk1.js} +1 -1
- package/dist/{CommentsPanel-BSLk23YP.js → CommentsPanel-BSt22Zw9.js} +1 -1
- package/dist/{CommentsSidebar-L-DgP_kM.js → CommentsSidebar-C8qbxjyN.js} +177 -184
- package/dist/{CountdownBlock-AYPypmcX.js → CountdownBlock-bFAELCB6.js} +3 -4
- package/dist/{CountdownToolbar-B6erqTbz.js → CountdownToolbar-CJbPEVV5.js} +4 -4
- package/dist/{IssuesPanel-CeCvUfa7.js → IssuesPanel-CKYf6K84.js} +4 -5
- package/dist/{LanguageMenu-DsfCHdVi.js → LanguageMenu-BFOEQEPy.js} +124 -125
- package/dist/{LocaleNotices-BxR3xcLl.js → LocaleNotices-24UYFxo2.js} +12 -13
- package/dist/{LogicTagInsertButton-BzEZUTRZ.js → LogicTagInsertButton-DdaafrjI.js} +95 -96
- package/dist/{MergeTagInput-By2FSStk.js → MergeTagInput-BXM6-eF-.js} +1 -1
- package/dist/{MergeTagModeToggle-DtjOZhoD.js → MergeTagModeToggle-ooA_Ytfq.js} +2 -3
- package/dist/{MergeTagTextarea-q6eeDD2l.js → MergeTagTextarea-B86MPY89.js} +14 -15
- package/dist/{ParagraphEditor-25SNi_8O.js → ParagraphEditor-C15Glzy_.js} +78 -79
- package/dist/{RestoreVersionDialog-BXtCxJF1.js → RestoreVersionDialog-C13Bo4b0.js} +2 -2
- package/dist/{RichTextEditorContent-B1p7Ykq8.js → RichTextEditorContent-BNMBOkdy.js} +5 -6
- package/dist/{SaveBlockDialog-k1lxEBVW.js → SaveBlockDialog-lm_1-2w2.js} +23 -24
- package/dist/{SavedBlocksBrowserModal-CV-8mDPj.js → SavedBlocksBrowserModal-BjUZG5_S.js} +8 -9
- package/dist/{SavedBlocksPanels-9nZj1jG_.js → SavedBlocksPanels-Bj3LAXcL.js} +1 -1
- package/dist/{SavedBlocksPickBar-Dy6NN9tm.js → SavedBlocksPickBar-DOTr0Imx.js} +2 -2
- package/dist/{TemplateSettings-DWxdUdM5.js → TemplateSettings-Z-i-_xF5.js} +19 -20
- package/dist/{TestEmailModal-BAkkZTaZ.js → TestEmailModal-ClEnoNEB.js} +17 -18
- package/dist/{TestEmailPanel-ccT2E3em.js → TestEmailPanel-CVmrt-d9.js} +1 -1
- package/dist/{TitleEditor-B19dYnER.js → TitleEditor-BHZF5C6q.js} +8 -9
- package/dist/{Toolbar-DxlZq_36.js → Toolbar-bwAdFK4A.js} +217 -219
- package/dist/{TplModal-Bp2qPmQw.js → TplModal-QWmSO1nR.js} +4 -4
- package/dist/{VersionHistoryMenu-B3-xJ7GO.js → VersionHistoryMenu-qoOkZKal.js} +6 -7
- package/dist/{VersionHistoryPanels-wAVDmhnP.js → VersionHistoryPanels-D82hgc2v.js} +1 -1
- package/dist/{VersionPreviewBanner-DLAB4ZbS.js → VersionPreviewBanner-DEN9rl6y.js} +1 -1
- package/dist/{WrapperBlock-DHnD6Exl.js → WrapperBlock-32v93A9w.js} +4 -4
- package/dist/{blockTypeIcons-C691ZY1l.js → blockTypeIcons-C1S2wVx8.js} +4 -4
- package/dist/bundle-stats.json +8 -8
- package/dist/{ca-C8N05sCU.js → ca-BIseSbs-.js} +1 -2
- package/dist/cdn/chunks/{AiAltTextPopover-BLNN_Pnd.js → AiAltTextPopover-mDx_knAl.js} +4 -5
- package/dist/cdn/chunks/{AiAltTextPopover-BLNN_Pnd.js.map → AiAltTextPopover-mDx_knAl.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-Db8vSNpe.js → AiAltTextReview-Dmg8iVWD.js} +3 -4
- package/dist/cdn/chunks/{AiAltTextReview-Db8vSNpe.js.map → AiAltTextReview-Dmg8iVWD.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-DTYmFRwb.js → AiChatPanel-CEDr_x8G.js} +147 -148
- package/dist/cdn/chunks/AiChatPanel-CEDr_x8G.js.map +1 -0
- package/dist/cdn/chunks/{AiPanels-BW9ze-6O.js → AiPanels-qJgLTYPs.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-BW9ze-6O.js.map → AiPanels-qJgLTYPs.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-B9b92d0R.js → AiRewriteMenu-2a9WjizC.js} +4 -5
- package/dist/cdn/chunks/{AiRewriteMenu-B9b92d0R.js.map → AiRewriteMenu-2a9WjizC.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-fYeNnepj.js → BlockIssueBadge-D87CYoPw.js} +3 -4
- package/dist/cdn/chunks/{BlockIssueBadge-fYeNnepj.js.map → BlockIssueBadge-D87CYoPw.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-CLid1x0c.js → BlockPreviewCanvas-DDDKuWJz.js} +8 -8
- package/dist/cdn/chunks/{BlockPreviewCanvas-CLid1x0c.js.map → BlockPreviewCanvas-DDDKuWJz.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-COkmBmps.js → CollaborationNotices-DyzhN_Ns.js} +2 -2
- package/dist/cdn/chunks/{CollaborationNotices-COkmBmps.js.map → CollaborationNotices-DyzhN_Ns.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-BSzI8YIU.js → CollaboratorBar-bNFuQxxP.js} +2 -2
- package/dist/cdn/chunks/{CollaboratorBar-BSzI8YIU.js.map → CollaboratorBar-bNFuQxxP.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-BynxXJ-F.js → CommentsPanel-D-D2qsS6.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-BynxXJ-F.js.map → CommentsPanel-D-D2qsS6.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-C81N5Hwr.js → CommentsSidebar-CCVp8M2T.js} +163 -170
- package/dist/cdn/chunks/CommentsSidebar-CCVp8M2T.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock--hlKE2aj.js → CountdownBlock-5hUzymeP.js} +4 -5
- package/dist/cdn/chunks/{CountdownBlock--hlKE2aj.js.map → CountdownBlock-5hUzymeP.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-f1aqEba0.js → CountdownToolbar-DaGxwKfG.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-f1aqEba0.js.map → CountdownToolbar-DaGxwKfG.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DgxiS3hF.js → IssuesPanel-DQQo1B1z.js} +10 -11
- package/dist/cdn/chunks/IssuesPanel-DQQo1B1z.js.map +1 -0
- package/dist/cdn/chunks/{LanguageMenu-CJp7XdfG.js → LanguageMenu-2Er64H2b.js} +106 -107
- package/dist/cdn/chunks/LanguageMenu-2Er64H2b.js.map +1 -0
- package/dist/cdn/chunks/{LocaleNotices-D5vZzcUj.js → LocaleNotices-DSfOyyyf.js} +13 -14
- package/dist/cdn/chunks/LocaleNotices-DSfOyyyf.js.map +1 -0
- package/dist/cdn/chunks/{LogicTagInsertButton-DGg1Wvhp.js → LogicTagInsertButton-CumMM1rP.js} +7 -8
- package/dist/cdn/chunks/{LogicTagInsertButton-DGg1Wvhp.js.map → LogicTagInsertButton-CumMM1rP.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-BVfTwujW.js → MergeTagInput-Dm_QiG96.js} +2 -2
- package/dist/cdn/chunks/{MergeTagInput-BVfTwujW.js.map → MergeTagInput-Dm_QiG96.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BoI0C1Y6.js → MergeTagModeToggle-Bir7lkLe.js} +3 -4
- package/dist/cdn/chunks/{MergeTagModeToggle-BoI0C1Y6.js.map → MergeTagModeToggle-Bir7lkLe.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-DMXZgGUF.js → MergeTagTextarea-B_IFeWfZ.js} +15 -16
- package/dist/cdn/chunks/MergeTagTextarea-B_IFeWfZ.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-Ce7_Ix0K.js → ParagraphEditor-CWjMxuy0.js} +135 -136
- package/dist/cdn/chunks/{ParagraphEditor-Ce7_Ix0K.js.map → ParagraphEditor-CWjMxuy0.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-JmMLhN6G.js → RestoreVersionDialog-BsfulSK7.js} +3 -3
- package/dist/cdn/chunks/{RestoreVersionDialog-JmMLhN6G.js.map → RestoreVersionDialog-BsfulSK7.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-D3ihUF8v.js → RichTextEditorContent-CuvFVxEq.js} +6 -7
- package/dist/cdn/chunks/{RichTextEditorContent-D3ihUF8v.js.map → RichTextEditorContent-CuvFVxEq.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-B-2amBN5.js → SaveBlockDialog-8zxJlHw2.js} +25 -26
- package/dist/cdn/chunks/{SaveBlockDialog-B-2amBN5.js.map → SaveBlockDialog-8zxJlHw2.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BR6fQ222.js → SavedBlocksBrowserModal-DtaGW2H4.js} +9 -10
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BR6fQ222.js.map → SavedBlocksBrowserModal-DtaGW2H4.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-DVNNshfr.js → SavedBlocksPanels-CtDhdbiD.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-DVNNshfr.js.map → SavedBlocksPanels-CtDhdbiD.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BfxLHLQV.js → SavedBlocksPickBar-DovcCaoW.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPickBar-BfxLHLQV.js.map → SavedBlocksPickBar-DovcCaoW.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-TMFrRV2c.js → TemplateSettings-B8Ch5ps8.js} +20 -21
- package/dist/cdn/chunks/{TemplateSettings-TMFrRV2c.js.map → TemplateSettings-B8Ch5ps8.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-tTU35BKZ.js → TestEmailModal-D1EuQSgA.js} +16 -17
- package/dist/cdn/chunks/{TestEmailModal-tTU35BKZ.js.map → TestEmailModal-D1EuQSgA.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BNJBVwx0.js → TestEmailPanel-0iG-utN7.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-BNJBVwx0.js.map → TestEmailPanel-0iG-utN7.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BbscL_C1.js → TitleEditor-k2vSwKxN.js} +17 -18
- package/dist/cdn/chunks/{TitleEditor-BbscL_C1.js.map → TitleEditor-k2vSwKxN.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-BxzyS69X.js → Toolbar-BnTSuZQb.js} +307 -309
- package/dist/cdn/chunks/Toolbar-BnTSuZQb.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-Bzhc_l8y.js → TplModal-iRdN04Sa.js} +5 -5
- package/dist/cdn/chunks/{TplModal-Bzhc_l8y.js.map → TplModal-iRdN04Sa.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-DTDO48HI.js → VersionHistoryMenu-DlPr3twf.js} +7 -8
- package/dist/cdn/chunks/{VersionHistoryMenu-DTDO48HI.js.map → VersionHistoryMenu-DlPr3twf.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-Bbb1xUJs.js → VersionHistoryPanels-Bw5UHEvo.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-Bbb1xUJs.js.map → VersionHistoryPanels-Bw5UHEvo.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-C1H_fYAr.js → VersionPreviewBanner-anJgZOcw.js} +2 -2
- package/dist/cdn/chunks/VersionPreviewBanner-anJgZOcw.js.map +1 -0
- package/dist/cdn/chunks/{WrapperBlock-BboijK5T.js → WrapperBlock-CFjCtyvx.js} +5 -5
- package/dist/cdn/chunks/{WrapperBlock-BboijK5T.js.map → WrapperBlock-CFjCtyvx.js.map} +1 -1
- package/dist/cdn/chunks/{ca-C8N05sCU.js → ca-BIseSbs-.js} +2 -3
- package/dist/cdn/chunks/{ca-C8N05sCU.js.map → ca-BIseSbs-.js.map} +1 -1
- package/dist/cdn/chunks/{composables-C77dGo-I.js → composables-Nir0umYc.js} +551 -571
- package/dist/cdn/chunks/composables-Nir0umYc.js.map +1 -0
- package/dist/{da-Dno_4nGy.js → cdn/chunks/da-DN46iRXS.js} +3 -2
- package/dist/cdn/chunks/{da-Dno_4nGy.js.map → da-DN46iRXS.js.map} +1 -1
- package/dist/{de-DRR5JSkh.js → cdn/chunks/de-Dyk8PPCm.js} +3 -2
- package/dist/cdn/chunks/{de-DRR5JSkh.js.map → de-Dyk8PPCm.js.map} +1 -1
- package/dist/{en-DAcLbbpg.js → cdn/chunks/en-BzMbMmgz.js} +3 -2
- package/dist/cdn/chunks/{en-DAcLbbpg.js.map → en-BzMbMmgz.js.map} +1 -1
- package/dist/{es-BcEQLQxe.js → cdn/chunks/es-KSHEXYyf.js} +3 -2
- package/dist/cdn/chunks/{es-BcEQLQxe.js.map → es-KSHEXYyf.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-Bq9nXmBP.js → extensions-Br2hHeiR.js} +5 -5
- package/dist/cdn/chunks/{extensions-Bq9nXmBP.js.map → extensions-Br2hHeiR.js.map} +1 -1
- package/dist/{fr-CNQG7ESr.js → cdn/chunks/fr-DtKHfZyk.js} +3 -2
- package/dist/cdn/chunks/{fr-CNQG7ESr.js.map → fr-DtKHfZyk.js.map} +1 -1
- package/dist/{ja-CMxWxqSH.js → cdn/chunks/ja-DUSaDVPA.js} +3 -2
- package/dist/cdn/chunks/{ja-CMxWxqSH.js.map → ja-DUSaDVPA.js.map} +1 -1
- package/dist/{nl-BjyYZDkC.js → cdn/chunks/nl-DQbuxzD6.js} +3 -2
- package/dist/cdn/chunks/{nl-BjyYZDkC.js.map → nl-DQbuxzD6.js.map} +1 -1
- package/dist/{pt-BR-DC2A3C0v.js → cdn/chunks/pt-BR-CxpxBtvc.js} +3 -2
- package/dist/cdn/chunks/{pt-BR-DC2A3C0v.js.map → pt-BR-CxpxBtvc.js.map} +1 -1
- package/dist/cdn/chunks/rolldown-runtime-CGnMp29N.js +10 -0
- package/dist/cdn/chunks/{socialIcons-CSe4YJ52.js → socialIcons-CXQfKLUV.js} +156 -136
- package/dist/cdn/chunks/socialIcons-CXQfKLUV.js.map +1 -0
- package/dist/cdn/chunks/{src-1MSPRtI8.js → src-9e0wFfHH.js} +4 -2
- package/dist/cdn/chunks/src-9e0wFfHH.js.map +1 -0
- package/dist/cdn/chunks/src-A0kzK-pR.js.map +1 -1
- package/dist/cdn/chunks/{src-edESkGqO.js → src-C9jjLNMg.js} +2 -2
- package/dist/cdn/chunks/{src-edESkGqO.js.map → src-C9jjLNMg.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-DDhueoan.js → tiptap-DLW5XdqI.js} +2 -2
- package/dist/cdn/chunks/{tiptap-DDhueoan.js.map → tiptap-DLW5XdqI.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorRoot-D0Lp2x4_.js → useEditorRoot-BPVxLYFD.js} +2 -2
- package/dist/cdn/chunks/{useEditorRoot-D0Lp2x4_.js.map → useEditorRoot-BPVxLYFD.js.map} +1 -1
- package/dist/cdn/chunks/useI18n-DwP1ksBW.js +24 -0
- package/dist/cdn/chunks/useI18n-DwP1ksBW.js.map +1 -0
- package/dist/cdn/chunks/useLanguageName-CeuoO9WZ.js +41 -0
- package/dist/cdn/chunks/useLanguageName-CeuoO9WZ.js.map +1 -0
- package/dist/cdn/chunks/{useLogicTag-CKtQlJDa.js → useLogicTag-gphGbQfy.js} +3 -3
- package/dist/cdn/chunks/{useLogicTag-CKtQlJDa.js.map → useLogicTag-gphGbQfy.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-Dwy3U0PI.js → useMergeTag-QM-tkBc6.js} +3 -3
- package/dist/cdn/chunks/{useMergeTag-Dwy3U0PI.js.map → useMergeTag-QM-tkBc6.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-CBp9uwjV.js → usePopoverPosition-Cg8LR0W4.js} +2 -2
- package/dist/cdn/chunks/{usePopoverPosition-CBp9uwjV.js.map → usePopoverPosition-Cg8LR0W4.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-32EnuMwu.js → useScrollToBlock-CS7zo4oQ.js} +2 -2
- package/dist/cdn/chunks/{useScrollToBlock-32EnuMwu.js.map → useScrollToBlock-CS7zo4oQ.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +910 -1006
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{composables-Bu_OmyjT.js → composables-6SKZrQs-.js} +1335 -1355
- package/dist/{cdn/chunks/da-Dno_4nGy.js → da-DN46iRXS.js} +1 -4
- package/dist/{cdn/chunks/de-DRR5JSkh.js → de-Dyk8PPCm.js} +1 -4
- package/dist/{cdn/chunks/en-DAcLbbpg.js → en-BzMbMmgz.js} +1 -4
- package/dist/{cdn/chunks/es-BcEQLQxe.js → es-KSHEXYyf.js} +1 -4
- package/dist/{extensions-zHf8YFRw.js → extensions-D74nAP73.js} +3 -3
- package/dist/{cdn/chunks/fr-CNQG7ESr.js → fr-DtKHfZyk.js} +1 -4
- package/dist/index.d.ts +38 -406
- package/dist/{cdn/chunks/ja-CMxWxqSH.js → ja-DUSaDVPA.js} +1 -4
- package/dist/{cdn/chunks/nl-BjyYZDkC.js → nl-DQbuxzD6.js} +1 -4
- package/dist/{cdn/chunks/pt-BR-DC2A3C0v.js → pt-BR-CxpxBtvc.js} +1 -4
- package/dist/{socialIcons-mWE33bOn.js → socialIcons-K89pe-h2.js} +84 -64
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +1087 -1183
- package/dist/{useEditorRoot-DWfC2CVC.js → useEditorRoot-CQeutW_s.js} +1 -1
- package/dist/useI18n-B05qsAsl.js +22 -0
- package/dist/useLanguageName-CnpG7FD5.js +39 -0
- package/dist/{useLogicTag-K5CPoMTk.js → useLogicTag-DSa1si4o.js} +2 -2
- package/dist/{useMergeTag-tsU_Sw2x.js → useMergeTag-DwxbvRZI.js} +2 -2
- package/dist/{usePopoverPosition-DF0ZYH7g.js → usePopoverPosition-B8CXTr8v.js} +1 -1
- package/dist/{useScrollToBlock-eZXiGa8o.js → useScrollToBlock-ZZBBGFan.js} +1 -1
- package/package.json +12 -14
- package/dist/CloudHeaderExtras-DC_oNrxz.js +0 -22
- package/dist/CloudPanels-BS49EsuN.js +0 -167
- package/dist/cdn/chunks/AiChatPanel-DTYmFRwb.js.map +0 -1
- package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js +0 -24
- package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-D4dslsyk.js +0 -167
- package/dist/cdn/chunks/CloudPanels-D4dslsyk.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-C81N5Hwr.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-DgxiS3hF.js.map +0 -1
- package/dist/cdn/chunks/LanguageMenu-CJp7XdfG.js.map +0 -1
- package/dist/cdn/chunks/LocaleNotices-D5vZzcUj.js.map +0 -1
- package/dist/cdn/chunks/MergeTagTextarea-DMXZgGUF.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-BxzyS69X.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-C1H_fYAr.js.map +0 -1
- package/dist/cdn/chunks/composables-C77dGo-I.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-CUlw09ix.js +0 -1405
- package/dist/cdn/chunks/createCloudRuntime-CUlw09ix.js.map +0 -1
- package/dist/cdn/chunks/de-6M4JoHoD.js +0 -21
- package/dist/cdn/chunks/de-6M4JoHoD.js.map +0 -1
- package/dist/cdn/chunks/en-FzUuJ8HW.js +0 -21
- package/dist/cdn/chunks/en-FzUuJ8HW.js.map +0 -1
- package/dist/cdn/chunks/keys-ywH4jHJ2.js +0 -11
- package/dist/cdn/chunks/keys-ywH4jHJ2.js.map +0 -1
- package/dist/cdn/chunks/languageName-DEEOhDWI.js +0 -12
- package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +0 -1
- package/dist/cdn/chunks/logger-CqQTfJGx.js +0 -26
- package/dist/cdn/chunks/logger-CqQTfJGx.js.map +0 -1
- package/dist/cdn/chunks/preRenderCustomBlocks-BLVFtvl8.js +0 -22
- package/dist/cdn/chunks/preRenderCustomBlocks-BLVFtvl8.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-Bp92Fc6J.js +0 -21
- package/dist/cdn/chunks/pt-BR-Bp92Fc6J.js.map +0 -1
- package/dist/cdn/chunks/pusher-x9rNqzon.js +0 -2473
- package/dist/cdn/chunks/pusher-x9rNqzon.js.map +0 -1
- package/dist/cdn/chunks/rolldown-runtime-QGRDbDUS.js +0 -19
- package/dist/cdn/chunks/socialIcons-CSe4YJ52.js.map +0 -1
- package/dist/cdn/chunks/src-1MSPRtI8.js.map +0 -1
- package/dist/cdn/chunks/useCloudI18n-BTV9uu3c.js +0 -24
- package/dist/cdn/chunks/useCloudI18n-BTV9uu3c.js.map +0 -1
- package/dist/cdn/chunks/useI18n-DPg6rPbu.js +0 -18
- package/dist/cdn/chunks/useI18n-DPg6rPbu.js.map +0 -1
- package/dist/createCloudRuntime-CiEo0wkr.js +0 -1389
- package/dist/de-6M4JoHoD.js +0 -19
- package/dist/en-FzUuJ8HW.js +0 -19
- package/dist/keys-B4DimcgX.js +0 -9
- package/dist/languageName-DEEOhDWI.js +0 -10
- package/dist/logger-BOu7oEtk.js +0 -24
- package/dist/preRenderCustomBlocks-6CLw2rP6.js +0 -20
- package/dist/pt-BR-Bp92Fc6J.js +0 -19
- package/dist/useCloudI18n-BnuOL1YS.js +0 -22
- package/dist/useI18n-Cx9W7OWb.js +0 -16
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { C as e, F as t, G as n, H as r, K as i, L as a, O as o, R as s, _ as c, b as l, ct as u, dt as d, g as f, h as p, j as m, m as h, mt as g, o as
|
|
2
|
-
import { D as
|
|
1
|
+
import { C as e, F as t, G as n, H as r, K as i, L as a, O as o, R as s, _ as c, b as l, ct as u, dt as d, g as f, h as p, j as m, m as h, mt as g, o as ee, p as _, tt as v, u as y, x as b } from "./draggable-IRVFEZ-b.js";
|
|
2
|
+
import { D as x, Ft as te, K as ne, T as re, Tt as S, _t as C, at as ie, j as ae, t as w, tt as oe, u as T, z as se } from "./icons-DdVB-5WO.js";
|
|
3
3
|
import { _ as ce, g as le } from "./dist-BtWMy7UQ.js";
|
|
4
4
|
import { t as ue } from "./LoadingTrack-o-89hApJ.js";
|
|
5
|
-
import {
|
|
5
|
+
import { _ as de, ot as fe, t as pe } from "./useI18n-DwP1ksBW.js";
|
|
6
6
|
import { w as E } from "./styleConstants-Br6CIRoS.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as k } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
7
|
+
import { t as me } from "./useLanguageName-CeuoO9WZ.js";
|
|
8
|
+
import { n as D } from "./aiErrors-C3QEMB0x.js";
|
|
9
|
+
import { t as O } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
11
10
|
// src/components/ai/AiPanelShell.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
-
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 = {
|
|
13
12
|
key: 0,
|
|
14
13
|
"data-testid": "ai-panel-subtitle",
|
|
15
14
|
class: "tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
16
|
-
},
|
|
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" }, he = /* @__PURE__ */ e({
|
|
17
16
|
__name: "AiPanelShell",
|
|
18
17
|
props: {
|
|
19
18
|
title: {},
|
|
@@ -30,37 +29,37 @@ var A = ["aria-label", "data-testid"], j = { class: "tpl:flex tpl:items-start tp
|
|
|
30
29
|
"data-testid": e.testid,
|
|
31
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)]"
|
|
32
31
|
}, [
|
|
33
|
-
h("div",
|
|
32
|
+
h("div", A, [h("div", j, [h("div", M, [b(u(x), {
|
|
34
33
|
size: 13,
|
|
35
34
|
"stroke-width": 2,
|
|
36
35
|
"aria-hidden": "true"
|
|
37
|
-
}), h("span",
|
|
36
|
+
}), h("span", N, g(e.title), 1)]), e.subtitle ? (t(), c("p", P, g(e.subtitle), 1)) : f("", !0)]), h("div", F, [s(n.$slots, "actions"), h("button", {
|
|
38
37
|
type: "button",
|
|
39
38
|
"data-testid": "ai-panel-close",
|
|
40
39
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
|
|
41
40
|
"aria-label": e.closeLabel,
|
|
42
41
|
title: e.closeLabel,
|
|
43
42
|
onClick: i[0] ||= (e) => r("close")
|
|
44
|
-
}, [
|
|
43
|
+
}, [b(u(w), {
|
|
45
44
|
size: 14,
|
|
46
45
|
"stroke-width": 2,
|
|
47
46
|
"aria-hidden": "true"
|
|
48
|
-
})], 8,
|
|
49
|
-
h("div",
|
|
47
|
+
})], 8, I)])]),
|
|
48
|
+
h("div", L, [s(n.$slots, "default")]),
|
|
50
49
|
s(n.$slots, "footer")
|
|
51
|
-
], 8,
|
|
50
|
+
], 8, k));
|
|
52
51
|
}
|
|
53
|
-
}),
|
|
52
|
+
}), R = /* @__PURE__ */ new Set([
|
|
54
53
|
"image/png",
|
|
55
54
|
"image/jpeg",
|
|
56
55
|
"image/webp",
|
|
57
56
|
"image/gif",
|
|
58
57
|
"application/pdf"
|
|
59
58
|
]);
|
|
60
|
-
function
|
|
59
|
+
function ge(e, t) {
|
|
61
60
|
let n = [...e], r = [], i = e.reduce((e, t) => e + t.size, 0);
|
|
62
61
|
for (let e of t) {
|
|
63
|
-
let t = n.length >= 4 ? "tooMany" :
|
|
62
|
+
let t = n.length >= 4 ? "tooMany" : R.has(e.type) ? e.size > 5242880 ? "tooLarge" : i + e.size > 10485760 ? "totalTooLarge" : null : "wrongType";
|
|
64
63
|
t ? r.push({
|
|
65
64
|
name: e.name,
|
|
66
65
|
reason: t
|
|
@@ -72,28 +71,28 @@ function he(e, t) {
|
|
|
72
71
|
};
|
|
73
72
|
}
|
|
74
73
|
// src/components/ai/AiChatPanel.vue?vue&type=script&setup=true&lang.ts
|
|
75
|
-
var
|
|
74
|
+
var _e = [
|
|
76
75
|
"aria-label",
|
|
77
76
|
"title",
|
|
78
77
|
"disabled"
|
|
79
|
-
],
|
|
78
|
+
], ve = {
|
|
80
79
|
key: 0,
|
|
81
80
|
"data-testid": "ai-chat-drop-hint",
|
|
82
81
|
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"
|
|
83
|
-
},
|
|
82
|
+
}, ye = {
|
|
84
83
|
key: 0,
|
|
85
84
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
86
|
-
},
|
|
85
|
+
}, be = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, xe = {
|
|
87
86
|
key: 1,
|
|
88
87
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
89
|
-
},
|
|
88
|
+
}, Se = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ce = {
|
|
90
89
|
key: 2,
|
|
91
90
|
class: "tpl:flex tpl:flex-col tpl:gap-4"
|
|
92
|
-
},
|
|
91
|
+
}, we = {
|
|
93
92
|
key: 0,
|
|
94
93
|
"data-testid": "ai-chat-language",
|
|
95
94
|
class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
96
|
-
},
|
|
95
|
+
}, Te = {
|
|
97
96
|
key: 1,
|
|
98
97
|
"data-testid": "ai-chat-prompt",
|
|
99
98
|
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",
|
|
@@ -103,10 +102,10 @@ var ge = [
|
|
|
103
102
|
"max-width": "85%",
|
|
104
103
|
"box-shadow": "var(--tpl-shadow)"
|
|
105
104
|
}
|
|
106
|
-
},
|
|
105
|
+
}, Ee = {
|
|
107
106
|
key: 2,
|
|
108
107
|
class: "tpl:flex tpl:flex-col tpl:gap-2"
|
|
109
|
-
},
|
|
108
|
+
}, De = {
|
|
110
109
|
key: 1,
|
|
111
110
|
"data-testid": "ai-chat-reply",
|
|
112
111
|
class: "tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3.5 tpl:py-2.5 tpl:text-sm tpl:whitespace-pre-wrap",
|
|
@@ -116,40 +115,40 @@ var ge = [
|
|
|
116
115
|
color: "var(--tpl-text)",
|
|
117
116
|
"box-shadow": "var(--tpl-shadow)"
|
|
118
117
|
}
|
|
119
|
-
},
|
|
118
|
+
}, Oe = {
|
|
120
119
|
key: 2,
|
|
121
120
|
"data-testid": "ai-chat-applied",
|
|
122
121
|
class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
123
|
-
},
|
|
122
|
+
}, ke = ["disabled", "onClick"], Ae = {
|
|
124
123
|
key: 3,
|
|
125
124
|
role: "alert",
|
|
126
125
|
"data-testid": "ai-chat-item-error",
|
|
127
126
|
class: "tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
128
|
-
},
|
|
127
|
+
}, je = {
|
|
129
128
|
key: 1,
|
|
130
129
|
class: "tpl:absolute tpl:right-0 tpl:bottom-0 tpl:left-0 tpl:z-10 tpl:px-3 tpl:pb-3",
|
|
131
130
|
style: {
|
|
132
131
|
"background-color": "color-mix(in srgb, var(--tpl-bg) 50%, transparent)",
|
|
133
132
|
"backdrop-filter": "blur(2px)"
|
|
134
133
|
}
|
|
135
|
-
},
|
|
134
|
+
}, Me = { class: "tpl:flex tpl:flex-col tpl:gap-1.5" }, Ne = ["onClick"], Pe = { class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]" }, Fe = ["disabled"], Ie = {
|
|
136
135
|
key: 0,
|
|
137
136
|
class: "tpl:mb-2 tpl:flex tpl:flex-wrap tpl:gap-1"
|
|
138
|
-
},
|
|
137
|
+
}, z = { class: "tpl:truncate" }, Le = [
|
|
139
138
|
"aria-label",
|
|
140
139
|
"disabled",
|
|
141
140
|
"onClick"
|
|
142
|
-
],
|
|
141
|
+
], Re = {
|
|
143
142
|
key: 1,
|
|
144
143
|
class: "tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
145
|
-
},
|
|
144
|
+
}, ze = {
|
|
146
145
|
"aria-live": "polite",
|
|
147
146
|
class: "tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
148
|
-
},
|
|
147
|
+
}, Be = {
|
|
149
148
|
key: 1,
|
|
150
149
|
role: "status",
|
|
151
150
|
class: "tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
152
|
-
},
|
|
151
|
+
}, Ve = ["disabled"], He = {
|
|
153
152
|
key: 2,
|
|
154
153
|
role: "alert",
|
|
155
154
|
"data-testid": "ai-chat-error",
|
|
@@ -158,34 +157,34 @@ var ge = [
|
|
|
158
157
|
"background-color": "var(--tpl-danger-light)",
|
|
159
158
|
color: "var(--tpl-danger)"
|
|
160
159
|
}
|
|
161
|
-
},
|
|
160
|
+
}, Ue = { 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)]" }, We = {
|
|
162
161
|
key: 0,
|
|
163
162
|
"data-testid": "ai-active-language",
|
|
164
163
|
class: "tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
|
|
165
|
-
},
|
|
164
|
+
}, Ge = [
|
|
166
165
|
"placeholder",
|
|
167
166
|
"aria-label",
|
|
168
167
|
"disabled"
|
|
169
|
-
],
|
|
168
|
+
], Ke = { class: "tpl:flex tpl:items-center tpl:justify-between" }, qe = [
|
|
170
169
|
"aria-label",
|
|
171
170
|
"title",
|
|
172
171
|
"disabled"
|
|
173
|
-
],
|
|
172
|
+
], Je = ["aria-label", "title"], Ye = [
|
|
174
173
|
"aria-label",
|
|
175
174
|
"title",
|
|
176
175
|
"disabled"
|
|
177
|
-
],
|
|
176
|
+
], Xe = { class: "tpl:m-0 tpl:px-1 tpl:pt-2 tpl:text-center tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, B = /*#__PURE__*/ O(/* @__PURE__ */ e({
|
|
178
177
|
__name: "AiChatPanel",
|
|
179
178
|
props: { feature: {} },
|
|
180
179
|
emits: ["close"],
|
|
181
180
|
setup(e, { emit: s }) {
|
|
182
|
-
let
|
|
183
|
-
r(() =>
|
|
184
|
-
F.value = "", R.value = [],
|
|
181
|
+
let O = e, k = s, { t: A, format: j } = pe(), M = o(de, null), N = me(M), P = o(fe, void 0), F = v(""), I = v(null), L = v(null), R = v([]), B = v([]), V = v(0);
|
|
182
|
+
r(() => O.feature.templateSession.value, () => {
|
|
183
|
+
F.value = "", R.value = [], B.value = [], V.value = 0;
|
|
185
184
|
}, { flush: "sync" });
|
|
186
|
-
let H =
|
|
185
|
+
let H = _(() => O.feature.has("chatAttachments"));
|
|
187
186
|
function U(e) {
|
|
188
|
-
let t =
|
|
187
|
+
let t = ge(R.value, e);
|
|
189
188
|
R.value = t.accepted;
|
|
190
189
|
let n = {
|
|
191
190
|
tooMany: "attachTooMany",
|
|
@@ -193,107 +192,107 @@ var ge = [
|
|
|
193
192
|
totalTooLarge: "attachTotalTooLarge",
|
|
194
193
|
wrongType: "attachWrongType"
|
|
195
194
|
};
|
|
196
|
-
|
|
195
|
+
B.value = t.errors.map((e) => j(A.ai.chat[n[e.reason]], { name: e.name }));
|
|
197
196
|
}
|
|
198
|
-
function
|
|
197
|
+
function Ze(e) {
|
|
199
198
|
let t = e.target;
|
|
200
199
|
!Y.value && H.value && U(Array.from(t.files ?? [])), t.value = "";
|
|
201
200
|
}
|
|
202
|
-
function
|
|
203
|
-
Y.value || (R.value.splice(e, 1),
|
|
201
|
+
function Qe(e) {
|
|
202
|
+
Y.value || (R.value.splice(e, 1), B.value = []);
|
|
204
203
|
}
|
|
205
204
|
function W(e) {
|
|
206
205
|
return Array.from(e.dataTransfer?.types ?? []).includes("Files");
|
|
207
206
|
}
|
|
208
|
-
function
|
|
207
|
+
function $e(e) {
|
|
209
208
|
H.value && !Y.value && W(e) && (e.preventDefault(), V.value++);
|
|
210
209
|
}
|
|
211
|
-
function
|
|
210
|
+
function et(e) {
|
|
212
211
|
W(e) && (V.value = Math.max(0, V.value - 1));
|
|
213
212
|
}
|
|
214
|
-
function
|
|
213
|
+
function tt(e) {
|
|
215
214
|
H.value && W(e) && e.preventDefault();
|
|
216
215
|
}
|
|
217
|
-
function
|
|
216
|
+
function nt(e) {
|
|
218
217
|
V.value = 0, H.value && W(e) && (e.preventDefault(), Y.value || U(Array.from(e.dataTransfer?.files ?? [])));
|
|
219
218
|
}
|
|
220
|
-
r(() =>
|
|
221
|
-
H.value && e.length && (U(e), F.value.trim() || (F.value =
|
|
219
|
+
r(() => O.feature.importQueue.value, (e) => {
|
|
220
|
+
H.value && e.length && (U(e), F.value.trim() || (F.value = A.ai.import.prompt), O.feature.importQueue.value = [], m(() => I.value?.focus()));
|
|
222
221
|
}, { immediate: !0 });
|
|
223
|
-
let G =
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
222
|
+
let G = v(null), K = v(0), q = _(() => O.feature.isTemplateEmpty.value ? [
|
|
223
|
+
A.ai.starters.emptyWelcome,
|
|
224
|
+
A.ai.starters.emptyLaunch,
|
|
225
|
+
A.ai.starters.emptyNewsletter
|
|
227
226
|
] : [
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
]), J =
|
|
233
|
-
let e =
|
|
234
|
-
return e ?
|
|
235
|
-
}), { pause: Z, resume:
|
|
227
|
+
A.ai.starters.filledShorten,
|
|
228
|
+
A.ai.starters.filledFriendlier,
|
|
229
|
+
A.ai.starters.filledDates,
|
|
230
|
+
A.ai.starters.filledCta
|
|
231
|
+
]), J = _(() => O.feature.messages.value), Y = _(() => O.feature.isRunning.value), X = _(() => {
|
|
232
|
+
let e = O.feature.failure.value;
|
|
233
|
+
return e ? D(e.error, A.ai.errors, j, P, e.context) : "";
|
|
234
|
+
}), { pause: Z, resume: rt } = le(() => {
|
|
236
235
|
K.value < q.value.length ? K.value++ : Z();
|
|
237
|
-
}, 150, { immediate: !1 }), { start:
|
|
236
|
+
}, 150, { immediate: !1 }), { start: it } = ce(() => rt(), 100, { immediate: !1 });
|
|
238
237
|
r(() => q.value.length, (e) => {
|
|
239
|
-
Z(), K.value = 0, e > 0 &&
|
|
238
|
+
Z(), K.value = 0, e > 0 && it();
|
|
240
239
|
}, { immediate: !0 });
|
|
241
240
|
function Q() {
|
|
242
241
|
m(() => {
|
|
243
242
|
G.value && (G.value.scrollTop = G.value.scrollHeight);
|
|
244
243
|
});
|
|
245
244
|
}
|
|
246
|
-
r(() => J.value.length, Q), r(() => [
|
|
245
|
+
r(() => J.value.length, Q), r(() => [O.feature.failedPrompt.value, O.feature.failedAttachments.value], ([e, t]) => {
|
|
247
246
|
e && (F.value = e, R.value = [...t]);
|
|
248
247
|
}, { immediate: !0 });
|
|
249
248
|
async function $() {
|
|
250
249
|
let e = F.value.trim();
|
|
251
250
|
if (!e || Y.value) return;
|
|
252
251
|
let t = [...R.value];
|
|
253
|
-
F.value = "", R.value = [],
|
|
254
|
-
}
|
|
255
|
-
function it(e) {
|
|
256
|
-
return e.undone ? j.ai.chat.undone : e.operationCount === 1 ? j.ai.chat.appliedChange : M(j.ai.chat.appliedChanges, { count: e.operationCount });
|
|
252
|
+
F.value = "", R.value = [], B.value = [], Q(), await O.feature.send(e, t), Q();
|
|
257
253
|
}
|
|
258
254
|
function at(e) {
|
|
259
|
-
return e.
|
|
255
|
+
return e.undone ? A.ai.chat.undone : e.operationCount === 1 ? A.ai.chat.appliedChange : j(A.ai.chat.appliedChanges, { count: e.operationCount });
|
|
260
256
|
}
|
|
261
257
|
function ot(e) {
|
|
262
|
-
e.
|
|
258
|
+
return e.failure ? D(e.failure.error, A.ai.errors, j, P, e.failure.context) : "";
|
|
263
259
|
}
|
|
264
260
|
function st(e) {
|
|
265
|
-
|
|
261
|
+
e.undone ? O.feature.redoMessage(e.id) : O.feature.undoMessage(e.id);
|
|
266
262
|
}
|
|
267
263
|
function ct(e) {
|
|
264
|
+
Z(), F.value = e, $();
|
|
265
|
+
}
|
|
266
|
+
function lt(e) {
|
|
268
267
|
e.isComposing || e.keyCode === 229 || e.key === "Enter" && !e.shiftKey && (e.preventDefault(), $());
|
|
269
268
|
}
|
|
270
|
-
return (r, o) => (t(), p(
|
|
271
|
-
title: u(
|
|
272
|
-
subtitle: u(
|
|
269
|
+
return (r, o) => (t(), p(he, {
|
|
270
|
+
title: u(A).ai.chat.title,
|
|
271
|
+
subtitle: u(A).ai.chat.notice,
|
|
273
272
|
testid: "ai-panel-chat",
|
|
274
|
-
"close-label": u(
|
|
275
|
-
onClose: o[5] ||= (e) =>
|
|
276
|
-
onDragenter:
|
|
277
|
-
onDragleave:
|
|
278
|
-
onDragover:
|
|
279
|
-
onDrop:
|
|
273
|
+
"close-label": u(A).ai.chat.close,
|
|
274
|
+
onClose: o[5] ||= (e) => k("close"),
|
|
275
|
+
onDragenter: $e,
|
|
276
|
+
onDragleave: et,
|
|
277
|
+
onDragover: tt,
|
|
278
|
+
onDrop: nt
|
|
280
279
|
}, {
|
|
281
280
|
actions: n(() => [e.feature.canClear && J.value.length > 0 ? (t(), c("button", {
|
|
282
281
|
key: 0,
|
|
283
282
|
type: "button",
|
|
284
283
|
"data-testid": "ai-chat-new",
|
|
285
284
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)] tpl:disabled:opacity-40",
|
|
286
|
-
"aria-label": u(
|
|
287
|
-
title: u(
|
|
285
|
+
"aria-label": u(A).ai.chat.newChat,
|
|
286
|
+
title: u(A).ai.chat.newChat,
|
|
288
287
|
disabled: Y.value,
|
|
289
288
|
onClick: o[0] ||= (t) => e.feature.newChat()
|
|
290
|
-
}, [
|
|
289
|
+
}, [b(u(oe), {
|
|
291
290
|
size: 14,
|
|
292
291
|
"stroke-width": 2,
|
|
293
292
|
"aria-hidden": "true"
|
|
294
|
-
})], 8,
|
|
295
|
-
footer: n(() => [h("div",
|
|
296
|
-
H.value ? (t(), c(
|
|
293
|
+
})], 8, _e)) : f("", !0)]),
|
|
294
|
+
footer: n(() => [h("div", Pe, [
|
|
295
|
+
H.value ? (t(), c(y, { key: 0 }, [
|
|
297
296
|
h("input", {
|
|
298
297
|
ref_key: "fileInput",
|
|
299
298
|
ref: L,
|
|
@@ -303,161 +302,161 @@ var ge = [
|
|
|
303
302
|
accept: "image/png,image/jpeg,image/webp,image/gif,application/pdf",
|
|
304
303
|
hidden: "",
|
|
305
304
|
disabled: Y.value,
|
|
306
|
-
onChange:
|
|
307
|
-
}, null, 40,
|
|
308
|
-
R.value.length ? (t(), c("div",
|
|
305
|
+
onChange: Ze
|
|
306
|
+
}, null, 40, Fe),
|
|
307
|
+
R.value.length ? (t(), c("div", Ie, [(t(!0), c(y, null, a(R.value, (e, n) => (t(), c("span", {
|
|
309
308
|
key: n,
|
|
310
309
|
"data-testid": "ai-chat-attachment",
|
|
311
310
|
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)]"
|
|
312
311
|
}, [
|
|
313
|
-
e.type === "application/pdf" ? (t(), p(u(
|
|
312
|
+
e.type === "application/pdf" ? (t(), p(u(S), {
|
|
314
313
|
key: 0,
|
|
315
314
|
size: 12,
|
|
316
315
|
"aria-hidden": "true"
|
|
317
|
-
})) : (t(), p(u(
|
|
316
|
+
})) : (t(), p(u(C), {
|
|
318
317
|
key: 1,
|
|
319
318
|
size: 12,
|
|
320
319
|
"aria-hidden": "true"
|
|
321
320
|
})),
|
|
322
|
-
h("span",
|
|
321
|
+
h("span", z, g(e.name), 1),
|
|
323
322
|
h("button", {
|
|
324
323
|
type: "button",
|
|
325
|
-
"aria-label": u(
|
|
324
|
+
"aria-label": u(j)(u(A).ai.chat.removeAttachment, { name: e.name }),
|
|
326
325
|
disabled: Y.value,
|
|
327
326
|
class: "tpl:shrink-0 tpl:rounded tpl:p-0.5 tpl:disabled:opacity-40",
|
|
328
|
-
onClick: (e) =>
|
|
329
|
-
}, [
|
|
327
|
+
onClick: (e) => Qe(n)
|
|
328
|
+
}, [b(u(w), {
|
|
330
329
|
size: 12,
|
|
331
330
|
"aria-hidden": "true"
|
|
332
|
-
})], 8,
|
|
331
|
+
})], 8, Le)
|
|
333
332
|
]))), 128))])) : f("", !0),
|
|
334
|
-
R.value.length ? (t(), c("p",
|
|
335
|
-
h("div",
|
|
333
|
+
R.value.length ? (t(), c("p", Re, g(u(A).ai.import.placeholderNote), 1)) : f("", !0),
|
|
334
|
+
h("div", ze, [(t(!0), c(y, null, a(B.value, (e, n) => (t(), c("p", {
|
|
336
335
|
key: n,
|
|
337
336
|
class: "tpl:mb-2"
|
|
338
337
|
}, g(e), 1))), 128))])
|
|
339
338
|
], 64)) : f("", !0),
|
|
340
|
-
e.feature.keptYourVersion.value ? (t(), c("div",
|
|
339
|
+
e.feature.keptYourVersion.value ? (t(), c("div", Be, [h("p", null, g(u(A).ai.chat.keptYourVersion), 1), h("button", {
|
|
341
340
|
type: "button",
|
|
342
341
|
disabled: Y.value,
|
|
343
342
|
class: d(u(E)),
|
|
344
343
|
onClick: o[1] ||= (t) => e.feature.reloadTemplate()
|
|
345
|
-
}, g(u(
|
|
346
|
-
X.value ? (t(), c("div",
|
|
344
|
+
}, g(u(A).ai.chat.reload), 11, Ve)])) : f("", !0),
|
|
345
|
+
X.value ? (t(), c("div", He, [b(u(te), {
|
|
347
346
|
size: 14,
|
|
348
347
|
"stroke-width": 2,
|
|
349
348
|
class: "tpl:mt-0.5 tpl:shrink-0",
|
|
350
349
|
"aria-hidden": "true"
|
|
351
350
|
}), h("span", null, g(X.value), 1)])) : f("", !0),
|
|
352
|
-
h("div",
|
|
353
|
-
u(
|
|
351
|
+
h("div", Ue, [
|
|
352
|
+
u(M)?.activeLocale?.value ? (t(), c("p", We, g(u(j)(u(A).localization.aiActiveLanguage, { language: u(N)(u(M).activeLocale.value) })), 1)) : f("", !0),
|
|
354
353
|
i(h("textarea", {
|
|
355
354
|
ref_key: "composer",
|
|
356
355
|
ref: I,
|
|
357
356
|
"onUpdate:modelValue": o[2] ||= (e) => F.value = e,
|
|
358
357
|
"data-testid": "ai-chat-input",
|
|
359
358
|
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)]",
|
|
360
|
-
placeholder: u(
|
|
361
|
-
"aria-label": u(
|
|
359
|
+
placeholder: u(A).ai.chat.inputPlaceholder,
|
|
360
|
+
"aria-label": u(A).ai.chat.inputPlaceholder,
|
|
362
361
|
disabled: Y.value,
|
|
363
362
|
maxlength: "4000",
|
|
364
363
|
rows: "3",
|
|
365
|
-
onKeydown:
|
|
366
|
-
}, null, 40,
|
|
367
|
-
h("div",
|
|
364
|
+
onKeydown: lt
|
|
365
|
+
}, null, 40, Ge), [[ee, F.value]]),
|
|
366
|
+
h("div", Ke, [H.value ? (t(), c("button", {
|
|
368
367
|
key: 0,
|
|
369
368
|
type: "button",
|
|
370
|
-
"aria-label": u(
|
|
371
|
-
title: u(
|
|
369
|
+
"aria-label": u(A).ai.chat.attach,
|
|
370
|
+
title: u(A).ai.chat.attach,
|
|
372
371
|
disabled: Y.value,
|
|
373
372
|
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",
|
|
374
373
|
onClick: o[3] ||= (e) => L.value?.click()
|
|
375
|
-
}, [
|
|
374
|
+
}, [b(u(ne), {
|
|
376
375
|
size: 16,
|
|
377
376
|
"aria-hidden": "true"
|
|
378
|
-
})], 8,
|
|
377
|
+
})], 8, qe)) : f("", !0), Y.value ? (t(), c("button", {
|
|
379
378
|
key: 1,
|
|
380
379
|
type: "button",
|
|
381
380
|
"data-testid": "ai-chat-stop",
|
|
382
381
|
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)]",
|
|
383
|
-
"aria-label": u(
|
|
384
|
-
title: u(
|
|
382
|
+
"aria-label": u(A).ai.chat.stop,
|
|
383
|
+
title: u(A).ai.chat.stop,
|
|
385
384
|
onClick: o[4] ||= (t) => e.feature.stop()
|
|
386
|
-
}, [
|
|
385
|
+
}, [b(u(re), {
|
|
387
386
|
size: 16,
|
|
388
387
|
"stroke-width": 2,
|
|
389
388
|
"aria-hidden": "true"
|
|
390
|
-
})], 8,
|
|
389
|
+
})], 8, Je)) : (t(), c("button", {
|
|
391
390
|
key: 2,
|
|
392
391
|
type: "button",
|
|
393
392
|
"data-testid": "ai-chat-send",
|
|
394
393
|
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)]",
|
|
395
|
-
"aria-label": u(
|
|
396
|
-
title: u(
|
|
394
|
+
"aria-label": u(A).ai.chat.send,
|
|
395
|
+
title: u(A).ai.chat.send,
|
|
397
396
|
disabled: !F.value.trim(),
|
|
398
397
|
onClick: $
|
|
399
|
-
}, [
|
|
398
|
+
}, [b(u(ae), {
|
|
400
399
|
size: 16,
|
|
401
400
|
"stroke-width": 2,
|
|
402
401
|
"aria-hidden": "true"
|
|
403
|
-
})], 8,
|
|
402
|
+
})], 8, Ye))])
|
|
404
403
|
]),
|
|
405
|
-
h("p",
|
|
404
|
+
h("p", Xe, g(u(A).ai.chat.disclaimer), 1)
|
|
406
405
|
])]),
|
|
407
406
|
default: n(() => [
|
|
408
|
-
H.value && V.value > 0 && !Y.value ? (t(), c("div",
|
|
407
|
+
H.value && V.value > 0 && !Y.value ? (t(), c("div", ve, g(u(A).ai.chat.dropHint), 1)) : f("", !0),
|
|
409
408
|
h("div", {
|
|
410
409
|
ref_key: "messagesContainer",
|
|
411
410
|
ref: G,
|
|
412
411
|
class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4"
|
|
413
|
-
}, [e.feature.isLoadingHistory.value ? (t(), c("div",
|
|
412
|
+
}, [e.feature.isLoadingHistory.value ? (t(), c("div", ye, [b(u(ie), {
|
|
414
413
|
class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
|
|
415
414
|
size: 24,
|
|
416
415
|
"stroke-width": 2,
|
|
417
416
|
"aria-hidden": "true"
|
|
418
|
-
}), h("p",
|
|
417
|
+
}), h("p", be, g(u(A).ai.chat.loadingHistory), 1)])) : J.value.length === 0 ? (t(), c("div", xe, [b(u(x), {
|
|
419
418
|
size: 32,
|
|
420
419
|
"stroke-width": 1.5,
|
|
421
420
|
class: "tpl:text-[var(--tpl-text-dim)]",
|
|
422
421
|
"aria-hidden": "true"
|
|
423
|
-
}), h("p",
|
|
422
|
+
}), h("p", Se, g(u(A).ai.chat.placeholder), 1)])) : (t(), c("div", Ce, [(t(!0), c(y, null, a(J.value, (e) => (t(), c("div", {
|
|
424
423
|
key: e.id,
|
|
425
424
|
class: "tpl:flex tpl:flex-col tpl:gap-2"
|
|
426
|
-
}, [typeof e.locale == "string" ? (t(), c("span",
|
|
425
|
+
}, [typeof e.locale == "string" ? (t(), c("span", we, g(u(N)(e.locale)), 1)) : f("", !0), e.role === "user" ? (t(), c("div", Te, [l(g(e.text) + " ", 1), (t(!0), c(y, null, a(e.attachments, (e, n) => (t(), c("span", {
|
|
427
426
|
key: n,
|
|
428
427
|
"data-testid": "ai-chat-history-attachment",
|
|
429
428
|
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"
|
|
430
|
-
}, [e.kind === "pdf" ? (t(), p(u(
|
|
429
|
+
}, [e.kind === "pdf" ? (t(), p(u(S), {
|
|
431
430
|
key: 0,
|
|
432
431
|
size: 12,
|
|
433
432
|
"aria-hidden": "true"
|
|
434
|
-
})) : (t(), p(u(
|
|
433
|
+
})) : (t(), p(u(C), {
|
|
435
434
|
key: 1,
|
|
436
435
|
size: 12,
|
|
437
436
|
"aria-hidden": "true"
|
|
438
|
-
})), l(g(e.name), 1)]))), 128))])) : (t(), c("div",
|
|
439
|
-
e.text === "" && e.status === "streaming" ? (t(), p(ue, { key: 0 })) : e.text === "" ? f("", !0) : (t(), c("div",
|
|
440
|
-
e.operationCount > 0 ? (t(), c("div",
|
|
437
|
+
})), l(g(e.name), 1)]))), 128))])) : (t(), c("div", Ee, [
|
|
438
|
+
e.text === "" && e.status === "streaming" ? (t(), p(ue, { key: 0 })) : e.text === "" ? f("", !0) : (t(), c("div", De, g(e.text), 1)),
|
|
439
|
+
e.operationCount > 0 ? (t(), c("div", Oe, [h("span", null, g(at(e)), 1), (e.undone ? e.canRedo : e.canUndo) ? (t(), c("button", {
|
|
441
440
|
key: 0,
|
|
442
441
|
type: "button",
|
|
443
442
|
"data-testid": "ai-chat-undo",
|
|
444
443
|
class: d(u(E)),
|
|
445
444
|
disabled: Y.value,
|
|
446
|
-
onClick: (t) =>
|
|
445
|
+
onClick: (t) => st(e)
|
|
447
446
|
}, [e.undone ? (t(), p(u(se), {
|
|
448
447
|
key: 0,
|
|
449
448
|
size: 12,
|
|
450
449
|
"stroke-width": 2,
|
|
451
450
|
"aria-hidden": "true"
|
|
452
|
-
})) : (t(), p(u(
|
|
451
|
+
})) : (t(), p(u(T), {
|
|
453
452
|
key: 1,
|
|
454
453
|
size: 12,
|
|
455
454
|
"stroke-width": 2,
|
|
456
455
|
"aria-hidden": "true"
|
|
457
|
-
})), l(" " + g(e.undone ? u(
|
|
458
|
-
e.failure ? (t(), c("p",
|
|
456
|
+
})), l(" " + g(e.undone ? u(A).ai.chat.redo : u(A).ai.chat.undo), 1)], 10, ke)) : f("", !0)])) : f("", !0),
|
|
457
|
+
e.failure ? (t(), c("p", Ae, g(ot(e)), 1)) : f("", !0)
|
|
459
458
|
]))]))), 128))]))], 512),
|
|
460
|
-
J.value.length === 0 && q.value.length > 0 ? (t(), c("div",
|
|
459
|
+
J.value.length === 0 && q.value.length > 0 ? (t(), c("div", je, [h("div", Me, [(t(!0), c(y, null, a(q.value, (e, n) => (t(), c("button", {
|
|
461
460
|
key: n,
|
|
462
461
|
type: "button",
|
|
463
462
|
"data-testid": "ai-chat-starter",
|
|
@@ -468,8 +467,8 @@ var ge = [
|
|
|
468
467
|
"background-color": "var(--tpl-bg)",
|
|
469
468
|
"box-shadow": "var(--tpl-shadow)"
|
|
470
469
|
},
|
|
471
|
-
onClick: (t) =>
|
|
472
|
-
}, g(e), 11,
|
|
470
|
+
onClick: (t) => ct(e)
|
|
471
|
+
}, g(e), 11, Ne))), 128))])])) : f("", !0)
|
|
473
472
|
]),
|
|
474
473
|
_: 1
|
|
475
474
|
}, 8, [
|
|
@@ -478,7 +477,7 @@ var ge = [
|
|
|
478
477
|
"close-label"
|
|
479
478
|
]));
|
|
480
479
|
}
|
|
481
|
-
}), [["__scopeId", "data-v-
|
|
482
|
-
export {
|
|
480
|
+
}), [["__scopeId", "data-v-35cc75c0"]]);
|
|
481
|
+
export { B as default };
|
|
483
482
|
|
|
484
|
-
//# sourceMappingURL=AiChatPanel-
|
|
483
|
+
//# sourceMappingURL=AiChatPanel-CEDr_x8G.js.map
|