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