@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
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Y as e, nt as t, w as n } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
|
|
2
|
+
// src/keys.ts
|
|
3
|
+
var r = Symbol("translations"), i = Symbol("localeChipOpeners"), a = Symbol("localization"), o = Symbol("ancestorHiddenLocales"), ee = Symbol("editor"), s = Symbol("aiFeature"), c = Symbol("translationFeature"), l = Symbol("activeLocaleCoverage"), u = Symbol("localizedContent"), d = Symbol("localeActions"), f = Symbol("history"), p = Symbol("blockActions"), m = Symbol("conditionPreview"), h = Symbol("appliesConditionFilter"), g = Symbol("fontsManager"), _ = Symbol("themeStyles"), v = Symbol("tplUiTheme"), y = Symbol("tplUiLocale"), b = Symbol("blockDefaults"), x = Symbol("blockRegistry"), S = Symbol("customBlockDefinitions"), C = Symbol("paletteBlocks"), w = Symbol("htmlBlockPreview"), T = Symbol("layout"), E = Symbol("sectionWrapper"), D = Symbol("colors"), O = Symbol("templateSettingsFields"), k = Symbol("customBlockStylesheets"), A = Symbol("mergeTags"), j = t([]), M = Symbol("mergeTagSyntax"), N = Symbol("onRequestMergeTag"), P = Symbol("mergeTagAutocomplete"), te = Symbol("mergeTagShowRawValue"), F = Symbol("mergeTagSampleMode"), I = Symbol("useMergeTagSamples"), L = Symbol("showsResolvedPreview"), R = Symbol("readOnlySurface"), z = Symbol("resolvePreview"), B = Symbol("registerDialogPreviewRefresh"), V = Symbol("previewResolution"), H = Symbol("mergeTagPicker"), U = Symbol("mergeTagRequesting"), W = Symbol("logicTagRequesting"), G = Symbol("logicTags"), K = Symbol("logicPairs"), q = Symbol("logicPicker"), J = Symbol("onRequestLogic"), Y = Symbol("onRequestMedia"), X = Symbol("canDropMedia"), Z = Symbol("imageUrlResolver"), Q = Symbol("displayConditions"), ne = Symbol("allowCustomConditions"), re = Symbol("onRequestDisplayCondition"), ie = Symbol("capabilities"), ae = Symbol("keyboardReorder"), oe = Symbol("templateLint"), $ = Symbol("sizeCheck"), se = Symbol("editorRoot"), ce = Symbol("popoverRoot"), le = Symbol("savedBlocks");
|
|
4
|
+
function ue(e, t) {
|
|
5
|
+
let r = n(e, null);
|
|
6
|
+
if (r == null) throw Error(`${t} requires a provider for ${e.description ?? "unknown key"}. Ensure it renders inside the editor, below Editor.vue.`);
|
|
7
|
+
return r;
|
|
8
|
+
}
|
|
9
|
+
// src/composables/useI18n.ts
|
|
10
|
+
function de(t) {
|
|
11
|
+
let i = t ?? n(r, null);
|
|
12
|
+
if (!i) throw Error("useI18n() requires a translations provider. Ensure the component renders inside the editor, below Editor.vue.");
|
|
13
|
+
let a = e(i) ? i.value : i;
|
|
14
|
+
function o(e, t) {
|
|
15
|
+
return e.replace(/\{(\w+)\}/g, (e, n) => n in t ? String(t[n]) : `{${n}}`);
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
t: a,
|
|
19
|
+
format: o
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export { L as $, G as A, j as B, ae as C, a as D, i as E, H as F, C as G, J as H, U as I, R as J, ce as K, F as L, W as M, A as N, u as O, P, E as Q, te as R, Z as S, d as T, Y as U, re as V, N as W, z as X, B as Y, le as Z, ee as _, o as a, c as at, f as b, b as c, I as ct, ie as d, $ as et, D as f, Q as g, k as h, ne as i, r as it, q as j, K as k, x as l, ue as lt, S as m, l as n, O as nt, h as o, y as ot, m as p, V as q, s as r, _ as rt, p as s, v as st, de as t, oe as tt, X as u, se as v, T as w, w as x, g as y, M as z };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { w as e } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
|
|
2
|
+
import { D as t, _ as n } from "./useI18n-B05qsAsl.js";
|
|
3
|
+
// src/utils/languageName.ts
|
|
4
|
+
function r(e, t) {
|
|
5
|
+
let n = t?.labels;
|
|
6
|
+
if (n && Object.hasOwn(n, e)) {
|
|
7
|
+
let t = n[e];
|
|
8
|
+
if (typeof t == "string" && t.trim()) return t;
|
|
9
|
+
}
|
|
10
|
+
try {
|
|
11
|
+
let n = new Intl.Locale(e), r = t?.siblings?.some((e) => {
|
|
12
|
+
try {
|
|
13
|
+
let t = new Intl.Locale(e);
|
|
14
|
+
return t.toString() !== n.toString() && t.language === n.language;
|
|
15
|
+
} catch {
|
|
16
|
+
return !1;
|
|
17
|
+
}
|
|
18
|
+
}), i = new Intl.DisplayNames([e], { type: "language" }).of(r ? e : n.language);
|
|
19
|
+
return i === void 0 ? e : i.charAt(0).toLocaleUpperCase(e) + i.slice(1);
|
|
20
|
+
} catch {
|
|
21
|
+
return e;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
// src/composables/useLanguageName.ts
|
|
25
|
+
function i(i) {
|
|
26
|
+
let a = e(t, void 0), o = i === void 0 ? e(n, null) : i;
|
|
27
|
+
return (e) => {
|
|
28
|
+
let t = o?.content.value.settings, n = [
|
|
29
|
+
...a?.locales ?? [],
|
|
30
|
+
t?.locale,
|
|
31
|
+
...t?.locales ?? []
|
|
32
|
+
].filter((e) => !!e);
|
|
33
|
+
return r(e, {
|
|
34
|
+
siblings: [...new Set(n)],
|
|
35
|
+
labels: a?.languageNames
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export { i as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { v as e } from "./dist-DX_IQgcU.js";
|
|
2
2
|
import { et as t, w as n } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
|
|
3
|
-
import { A as r,
|
|
3
|
+
import { A as r, H as i, M as a, j as o, k as s, z as c } from "./useI18n-B05qsAsl.js";
|
|
4
4
|
// src/composables/useLogicTag.ts
|
|
5
5
|
function l() {
|
|
6
|
-
let l = n(
|
|
6
|
+
let l = n(r, []), u = n(s, []), d = n(c, e.liquid), f = n(i, null), p = n(o, null), m = n(a, null) ?? t(!1), h = !!f || l.length > 0 || u.length > 0, g = l.length > 0 || u.length > 0;
|
|
7
7
|
async function _() {
|
|
8
8
|
if (f) {
|
|
9
9
|
m.value = !0;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Tt as e, ht as t, v as n } from "./dist-DX_IQgcU.js";
|
|
2
2
|
import { c as r, et as i, w as a } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
|
|
3
|
-
import { B as o, F as s,
|
|
3
|
+
import { B as o, F as s, I as c, N as l, P as u, R as d, W as f, it as p, z as m } from "./useI18n-B05qsAsl.js";
|
|
4
4
|
// src/composables/useMergeTag.ts
|
|
5
5
|
function h() {
|
|
6
|
-
let h = a(
|
|
6
|
+
let h = a(l, o), g = a(m, n.liquid), _ = a(f, null), v = a(u, !0), y = a(s, null), b = a(d, !0), x = a(p, null)?.mergeTag.unknownLabel ?? "Merge tag", S = a(c, null) ?? i(!1);
|
|
7
7
|
function C(t) {
|
|
8
8
|
return e(t, g);
|
|
9
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as e, et as t, w as n } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
|
|
2
|
-
import {
|
|
2
|
+
import { D as r, K as i, _ as a } from "./useI18n-B05qsAsl.js";
|
|
3
3
|
// src/composables/useLocaleEditable.ts
|
|
4
4
|
function o() {
|
|
5
5
|
let t = n(a, null), i = n(r, void 0);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { O as e } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
|
|
2
2
|
import { t } from "./createLucideIcon-BKeRiObH.js";
|
|
3
|
-
import { t as n } from "./useEditorRoot-
|
|
3
|
+
import { t as n } from "./useEditorRoot-CQeutW_s.js";
|
|
4
4
|
var r = t({
|
|
5
5
|
name: "list-checks",
|
|
6
6
|
size: 24,
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@templatical/editor",
|
|
3
3
|
"description": "Vue 3 visual drag-and-drop email editor powered by Templatical",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.62.0",
|
|
5
5
|
"bugs": "https://github.com/templatical/sdk/issues",
|
|
6
6
|
"devDependencies": {
|
|
7
7
|
"@lucide/vue": "^1.73.0",
|
|
8
|
-
"@templatical/core": "0.
|
|
9
|
-
"@templatical/media-library": "0.
|
|
10
|
-
"@templatical/types": "0.
|
|
8
|
+
"@templatical/core": "0.62.0",
|
|
9
|
+
"@templatical/media-library": "0.62.0",
|
|
10
|
+
"@templatical/types": "0.62.0",
|
|
11
11
|
"@tiptap/core": "^3.34.0",
|
|
12
12
|
"@tiptap/extension-color": "^3.34.0",
|
|
13
13
|
"@tiptap/extension-font-family": "^3.34.0",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"@tiptap/suggestion": "^3.34.0",
|
|
23
23
|
"@tiptap/vue-3": "^3.34.0",
|
|
24
24
|
"@vitejs/plugin-vue": "^6.0.11",
|
|
25
|
-
"@vue/test-utils": "^2.
|
|
25
|
+
"@vue/test-utils": "^2.6.0",
|
|
26
26
|
"@vueuse/core": "^15.0.0",
|
|
27
27
|
"dompurify": "^3.4.18",
|
|
28
|
-
"es-module-lexer": "^3.0.
|
|
28
|
+
"es-module-lexer": "^3.0.5",
|
|
29
29
|
"happy-dom": "^21.0.4",
|
|
30
30
|
"jsdom": "31.0.1",
|
|
31
31
|
"liquidjs": "^10.30.1",
|
|
@@ -56,21 +56,22 @@
|
|
|
56
56
|
"email-builder",
|
|
57
57
|
"email-editor",
|
|
58
58
|
"email-template",
|
|
59
|
+
"mit",
|
|
59
60
|
"mjml",
|
|
61
|
+
"open-source",
|
|
60
62
|
"templatical",
|
|
61
63
|
"tiptap",
|
|
62
64
|
"vue",
|
|
63
65
|
"wysiwyg"
|
|
64
66
|
],
|
|
65
|
-
"license": "
|
|
67
|
+
"license": "MIT",
|
|
66
68
|
"module": "./dist/templatical-editor.js",
|
|
67
69
|
"optionalDependencies": {
|
|
68
|
-
"@templatical/quality": "0.
|
|
70
|
+
"@templatical/quality": "0.62.0"
|
|
69
71
|
},
|
|
70
72
|
"peerDependencies": {
|
|
71
|
-
"@templatical/quality": "0.
|
|
72
|
-
"@templatical/renderer": "0.
|
|
73
|
-
"pusher-js": "^8.6.0"
|
|
73
|
+
"@templatical/quality": "0.62.0",
|
|
74
|
+
"@templatical/renderer": "0.62.0"
|
|
74
75
|
},
|
|
75
76
|
"peerDependenciesMeta": {
|
|
76
77
|
"@templatical/quality": {
|
|
@@ -78,9 +79,6 @@
|
|
|
78
79
|
},
|
|
79
80
|
"@templatical/renderer": {
|
|
80
81
|
"optional": true
|
|
81
|
-
},
|
|
82
|
-
"pusher-js": {
|
|
83
|
-
"optional": true
|
|
84
82
|
}
|
|
85
83
|
},
|
|
86
84
|
"publishConfig": {
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Ft as e, M as t, ct as n, d as r, f as i, r as a, y as o } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
|
|
2
|
-
import { t as s } from "./useCloudI18n-BnuOL1YS.js";
|
|
3
|
-
// src/cloud/components/CloudHeaderExtras.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var c = {
|
|
5
|
-
key: 0,
|
|
6
|
-
"data-testid": "cloud-template-usage",
|
|
7
|
-
class: "tpl:text-xs tpl:opacity-60 tpl:text-[var(--tpl-text-muted)]"
|
|
8
|
-
}, l = /* @__PURE__ */ o({
|
|
9
|
-
__name: "CloudHeaderExtras",
|
|
10
|
-
props: {
|
|
11
|
-
part: {},
|
|
12
|
-
cloud: {}
|
|
13
|
-
},
|
|
14
|
-
setup(o) {
|
|
15
|
-
let { t: l, format: u } = s();
|
|
16
|
-
return (s, d) => o.part === "left" ? (t(), i(a, { key: 0 }, [o.cloud.featureFlags.templateLimit.value === null ? r("", !0) : (t(), i("span", c, e(n(u)(n(l).header.templatesUsed, {
|
|
17
|
-
used: o.cloud.featureFlags.templateCount.value,
|
|
18
|
-
max: o.cloud.featureFlags.templateLimit.value
|
|
19
|
-
})), 1))], 64)) : r("", !0);
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
export { l as default };
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { Ft as e, M as t, Mt as n, P as r, U as i, _ as a, ct as o, d as s, f as c, h as l, l as u, r as d, u as f, y as p } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
|
|
2
|
-
import { t as m } from "./runtime-dom.esm-bundler-nN-jsqr1.js";
|
|
3
|
-
import { t as h } from "./circle-exclamation-point-BCx1tR91.js";
|
|
4
|
-
import { C as g, b as _, f as v } from "./styleConstants-Br6CIRoS.js";
|
|
5
|
-
import { t as y } from "./useCloudI18n-BnuOL1YS.js";
|
|
6
|
-
import { t as b } from "./triangle-exclamation-point-Bi7ZKTZU.js";
|
|
7
|
-
import { t as x } from "./TplModal-Bp2qPmQw.js";
|
|
8
|
-
// src/cloud/components/CloudErrorOverlay.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var S = {
|
|
10
|
-
key: 0,
|
|
11
|
-
role: "alert",
|
|
12
|
-
class: "tpl-error tpl:absolute tpl:inset-0 tpl:z-[100] tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-6 tpl:px-8 tpl:bg-[var(--tpl-bg)]"
|
|
13
|
-
}, C = { class: "tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-danger-light)]" }, w = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:text-center" }, T = { class: "tpl:text-lg tpl:font-semibold tpl:text-[var(--tpl-text)]" }, E = { class: "tpl:max-w-md tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, D = /* @__PURE__ */ p({
|
|
14
|
-
__name: "CloudErrorOverlay",
|
|
15
|
-
props: {
|
|
16
|
-
error: {},
|
|
17
|
-
visible: { type: Boolean }
|
|
18
|
-
},
|
|
19
|
-
emits: ["retry"],
|
|
20
|
-
setup(r, { emit: i }) {
|
|
21
|
-
let l = i, { t: d } = y();
|
|
22
|
-
function f(e) {
|
|
23
|
-
return "isUnauthorized" in e && e.isUnauthorized ? d.error.authFailed : "isNotFound" in e && e.isNotFound ? d.error.templateNotFound : d.error.defaultMessage;
|
|
24
|
-
}
|
|
25
|
-
function p(e) {
|
|
26
|
-
return "isNotFound" in e && !!e.isNotFound;
|
|
27
|
-
}
|
|
28
|
-
return (i, m) => r.visible && r.error ? (t(), c("div", S, [
|
|
29
|
-
u("div", C, [a(o(h), {
|
|
30
|
-
size: 32,
|
|
31
|
-
"stroke-width": 1.5,
|
|
32
|
-
class: "tpl:text-[var(--tpl-danger)]"
|
|
33
|
-
})]),
|
|
34
|
-
u("div", w, [u("h2", T, e(o(d).error.title), 1), u("p", E, e(f(r.error)), 1)]),
|
|
35
|
-
p(r.error) ? s("", !0) : (t(), c("button", {
|
|
36
|
-
key: 0,
|
|
37
|
-
type: "button",
|
|
38
|
-
class: n(o(_)),
|
|
39
|
-
onClick: m[0] ||= (e) => l("retry")
|
|
40
|
-
}, e(o(d).error.retry), 3))
|
|
41
|
-
])) : s("", !0);
|
|
42
|
-
}
|
|
43
|
-
}), O = ["aria-label"], k = { class: "tpl:flex tpl:flex-1 tpl:overflow-hidden" }, A = { class: "tpl:flex tpl:w-12 tpl:shrink-0 tpl:flex-col tpl:items-center tpl:gap-4 tpl:py-5 tpl:border-r tpl:border-[var(--tpl-border)]" }, j = /* @__PURE__ */ p({
|
|
44
|
-
__name: "CloudLoadingOverlay",
|
|
45
|
-
props: { visible: { type: Boolean } },
|
|
46
|
-
setup(e) {
|
|
47
|
-
let { t: n } = y();
|
|
48
|
-
return (i, a) => e.visible ? (t(), c("div", {
|
|
49
|
-
key: 0,
|
|
50
|
-
role: "status",
|
|
51
|
-
"aria-live": "polite",
|
|
52
|
-
"aria-busy": "true",
|
|
53
|
-
"aria-label": o(n).loading.initializing,
|
|
54
|
-
class: "tpl-loading tpl:absolute tpl:inset-0 tpl:z-[100] tpl:flex tpl:flex-col tpl:bg-[var(--tpl-bg)]"
|
|
55
|
-
}, [a[1] ||= l("<div class=\"tpl:flex tpl:h-14 tpl:shrink-0 tpl:items-center tpl:justify-between tpl:px-4 tpl:border-b tpl:border-[var(--tpl-border)]\"><div class=\"tpl-shimmer tpl:h-5 tpl:w-28 tpl:rounded-[var(--tpl-radius-sm)]\"></div><div class=\"tpl:flex tpl:gap-3\"><div class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"></div><div class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"></div></div></div>", 1), u("div", k, [u("div", A, [(t(), c(d, null, r(5, (e) => u("div", {
|
|
56
|
-
key: e,
|
|
57
|
-
class: "tpl-shimmer tpl:size-7 tpl:rounded-[var(--tpl-radius-sm)]"
|
|
58
|
-
})), 64))]), a[0] ||= l("<div class=\"tpl:flex tpl:flex-1 tpl:items-start tpl:justify-center tpl:overflow-auto tpl:p-8 tpl:bg-[var(--tpl-canvas-bg)]\"><div class=\"tpl:w-full tpl:max-w-[600px] tpl:rounded-[var(--tpl-radius)] tpl:p-6 tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)]\"><div class=\"tpl:space-y-2 tpl:py-4\"><div class=\"tpl-shimmer tpl:h-3 tpl:w-3/4 tpl:rounded\"></div><div class=\"tpl-shimmer tpl:h-3 tpl:w-full tpl:rounded\"></div><div class=\"tpl-shimmer tpl:h-3 tpl:w-5/6 tpl:rounded\"></div></div><div class=\"tpl:py-4\"><div class=\"tpl-shimmer tpl:h-44 tpl:w-full tpl:rounded-[var(--tpl-radius-sm)]\"></div></div><div class=\"tpl:space-y-2 tpl:py-4\"><div class=\"tpl-shimmer tpl:h-3 tpl:w-full tpl:rounded\"></div><div class=\"tpl-shimmer tpl:h-3 tpl:w-2/3 tpl:rounded\"></div></div><div class=\"tpl:flex tpl:justify-center tpl:py-4\"><div class=\"tpl-shimmer tpl:h-10 tpl:w-36 tpl:rounded-[var(--tpl-radius-sm)]\"></div></div><div class=\"tpl:space-y-2 tpl:py-4\"><div class=\"tpl-shimmer tpl:mx-auto tpl:h-2.5 tpl:w-1/2 tpl:rounded\"></div><div class=\"tpl-shimmer tpl:mx-auto tpl:h-2.5 tpl:w-1/3 tpl:rounded\"></div></div></div></div><div class=\"tpl:flex tpl:w-[320px] tpl:shrink-0 tpl:flex-col tpl:gap-4 tpl:p-4 tpl:border-l tpl:border-[var(--tpl-border)]\"><div class=\"tpl-shimmer tpl:h-8 tpl:rounded-[var(--tpl-radius-sm)]\"></div><div class=\"tpl-shimmer tpl:h-32 tpl:rounded-[var(--tpl-radius)]\"></div><div class=\"tpl-shimmer tpl:h-32 tpl:rounded-[var(--tpl-radius)]\"></div></div>", 2)])], 8, O)) : s("", !0);
|
|
59
|
-
}
|
|
60
|
-
}), M = {
|
|
61
|
-
role: "alertdialog",
|
|
62
|
-
"aria-modal": "true",
|
|
63
|
-
"aria-labelledby": "tpl-save-gate-title",
|
|
64
|
-
"aria-describedby": "tpl-save-gate-body",
|
|
65
|
-
"data-testid": "cloud-save-gate-dialog",
|
|
66
|
-
class: "tpl:flex tpl:max-h-[80%] tpl:w-full tpl:max-w-md tpl:flex-col tpl:gap-4 tpl:overflow-y-auto tpl:rounded-[var(--tpl-radius-lg)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-5 tpl:shadow-[var(--tpl-shadow-lg)]"
|
|
67
|
-
}, N = { class: "tpl:flex tpl:items-center tpl:gap-2" }, P = {
|
|
68
|
-
id: "tpl-save-gate-title",
|
|
69
|
-
class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
70
|
-
}, F = {
|
|
71
|
-
id: "tpl-save-gate-body",
|
|
72
|
-
class: "tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
73
|
-
}, I = { class: "tpl:m-0 tpl:flex tpl:max-h-64 tpl:list-none tpl:flex-col tpl:gap-1.5 tpl:overflow-y-auto tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-2" }, L = { class: "tpl:text-xs tpl:text-[var(--tpl-text)]" }, R = { class: "tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, z = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, B = /* @__PURE__ */ p({
|
|
74
|
-
__name: "CloudSaveGateModal",
|
|
75
|
-
props: {
|
|
76
|
-
open: { type: Boolean },
|
|
77
|
-
issues: {}
|
|
78
|
-
},
|
|
79
|
-
emits: ["cancel", "confirm"],
|
|
80
|
-
setup(s, { emit: l }) {
|
|
81
|
-
let p = l, { t: m } = y();
|
|
82
|
-
return (l, h) => (t(), f(x, {
|
|
83
|
-
visible: s.open,
|
|
84
|
-
onClose: h[2] ||= (e) => p("cancel")
|
|
85
|
-
}, {
|
|
86
|
-
default: i(() => [u("div", M, [
|
|
87
|
-
u("header", N, [a(o(b), {
|
|
88
|
-
size: 18,
|
|
89
|
-
"stroke-width": 2,
|
|
90
|
-
class: "tpl:text-[var(--tpl-warning)]"
|
|
91
|
-
}), u("h2", P, e(o(m).saveGate.title), 1)]),
|
|
92
|
-
u("p", F, e(o(m).saveGate.body), 1),
|
|
93
|
-
u("ul", I, [(t(!0), c(d, null, r(s.issues, (n) => (t(), c("li", {
|
|
94
|
-
key: `${n.ruleId}-${n.blockId ?? "template"}`,
|
|
95
|
-
class: "tpl:flex tpl:flex-col tpl:gap-0.5 tpl:rounded tpl:px-2 tpl:py-1.5"
|
|
96
|
-
}, [u("span", L, e(n.message), 1), u("span", R, e(n.ruleId), 1)]))), 128))]),
|
|
97
|
-
u("footer", z, [u("button", {
|
|
98
|
-
type: "button",
|
|
99
|
-
"data-testid": "cloud-save-gate-cancel",
|
|
100
|
-
class: n(o(g)),
|
|
101
|
-
onClick: h[0] ||= (e) => p("cancel")
|
|
102
|
-
}, e(o(m).saveGate.cancel), 3), u("button", {
|
|
103
|
-
type: "button",
|
|
104
|
-
"data-testid": "cloud-save-gate-confirm",
|
|
105
|
-
class: n(o(v)),
|
|
106
|
-
onClick: h[1] ||= (e) => p("confirm")
|
|
107
|
-
}, e(o(m).saveGate.confirm), 3)])
|
|
108
|
-
])]),
|
|
109
|
-
_: 1
|
|
110
|
-
}, 8, ["visible"]));
|
|
111
|
-
}
|
|
112
|
-
}), V = /* @__PURE__ */ p({
|
|
113
|
-
__name: "CloudPanels",
|
|
114
|
-
props: {
|
|
115
|
-
editor: {},
|
|
116
|
-
core: {},
|
|
117
|
-
runtime: {},
|
|
118
|
-
cloud: {},
|
|
119
|
-
ready: {}
|
|
120
|
-
},
|
|
121
|
-
setup(e) {
|
|
122
|
-
return (n, r) => (t(), c(d, null, [
|
|
123
|
-
a(m, {
|
|
124
|
-
"enter-active-class": "tpl:transition-opacity tpl:duration-200",
|
|
125
|
-
"enter-from-class": "tpl:opacity-100",
|
|
126
|
-
"enter-to-class": "tpl:opacity-100",
|
|
127
|
-
"leave-active-class": "tpl:transition-opacity tpl:duration-300",
|
|
128
|
-
"leave-from-class": "tpl:opacity-100",
|
|
129
|
-
"leave-to-class": "tpl:opacity-0"
|
|
130
|
-
}, {
|
|
131
|
-
default: i(() => [a(j, { visible: e.editor.state.isLoading }, null, 8, ["visible"])]),
|
|
132
|
-
_: 1
|
|
133
|
-
}),
|
|
134
|
-
a(m, {
|
|
135
|
-
"enter-active-class": "tpl:transition-opacity tpl:duration-200",
|
|
136
|
-
"enter-from-class": "tpl:opacity-0",
|
|
137
|
-
"enter-to-class": "tpl:opacity-100",
|
|
138
|
-
"leave-active-class": "tpl:transition-opacity tpl:duration-300",
|
|
139
|
-
"leave-from-class": "tpl:opacity-100",
|
|
140
|
-
"leave-to-class": "tpl:opacity-0"
|
|
141
|
-
}, {
|
|
142
|
-
default: i(() => [a(D, {
|
|
143
|
-
error: e.ready.sessionError.value,
|
|
144
|
-
visible: !!e.ready.sessionError.value,
|
|
145
|
-
onRetry: e.ready.retry
|
|
146
|
-
}, null, 8, [
|
|
147
|
-
"error",
|
|
148
|
-
"visible",
|
|
149
|
-
"onRetry"
|
|
150
|
-
])]),
|
|
151
|
-
_: 1
|
|
152
|
-
}),
|
|
153
|
-
a(B, {
|
|
154
|
-
open: e.ready.saveGate.modalOpen.value,
|
|
155
|
-
issues: e.ready.saveGate.blockingIssues.value,
|
|
156
|
-
onCancel: e.ready.saveGate.cancel,
|
|
157
|
-
onConfirm: e.ready.saveGate.confirmAndSave
|
|
158
|
-
}, null, 8, [
|
|
159
|
-
"open",
|
|
160
|
-
"issues",
|
|
161
|
-
"onCancel",
|
|
162
|
-
"onConfirm"
|
|
163
|
-
])
|
|
164
|
-
], 64));
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
export { V as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AiChatPanel-DTYmFRwb.js","names":["_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_9","_openBlock","_createElementBlock","_createElementVNode","_createVNode","_unref","_toDisplayString","_renderSlot","_openBlock","_createBlock","AiPanelShell","_unref","_withCtx","_createElementBlock","_createVNode","_createElementVNode","_Fragment","_renderList","_toDisplayString","_normalizeClass","CircleAlert","_withDirectives","_vModelText","_createTextVNode","LoadingTrack","defineComponent","openBlock","withCtx","watch","withDirectives","renderList","inject","renderSlot","createElementBlock","createTextVNode","unref","normalizeClass","createCommentVNode","createBlock","nextTick","createBaseVNode","toDisplayString","vModelText","computed","ref","Fragment","Sparkles","CircleExclamationPoint","Paperclip","Square","FileText","Image","LoaderCircle","Send","X","MessageSquarePlus","Undo2","Redo2","useTimeoutFn","useIntervalFn","LoadingTrack_default","useI18n","secondaryBtnCompactClass","UI_LOCALE_KEY","EDITOR_KEY","languageName","aiErrorMessage","_plugin_vue_export_helper_default","_hoisted_1$1","_hoisted_2$1","_hoisted_3$1","_hoisted_4$1","_hoisted_5$1","_hoisted_6$1","_hoisted_7$1","_hoisted_8$1","_hoisted_9$1","AiPanelShell_default","__emit","emit","__props","createVNode","_ctx","_cache","TYPES","validateChatAttachments","accepted","existing","errors","total","sum","file","added","reason","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","\"color\"","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","_hoisted_34","_hoisted_35","AiChatPanel_default","props","editor","uiLocale","promptInput","composer","fileInput","attachments","attachmentErrors","dragDepth","canAttach","attach","result","files","keys","format","t","error","picked","input","event","isBusy","removeAttachment","index","isFileDrag","dragEnter","dragLeave","dragOver","drop","messagesContainer","visibleStarterCount","starters","messages","failureText","failure","pauseReveal","resumeReveal","startReveal","count","scrollToBottom","prompt","send","appliedLabel","item","itemFailure","toggleUndo","chooseStarter","starter","onKeydown","$event","attachment"],"sources":["../../../src/components/ai/AiPanelShell.vue","../../../src/utils/aiAttachments.ts","../../../src/components/ai/AiChatPanel.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { Sparkles, X } from \"@lucide/vue\";\n\ndefineProps<{\n title: string;\n subtitle?: string;\n /** `ai-panel-chat`. */\n testid: string;\n closeLabel: string;\n}>();\n\nconst emit = defineEmits<{ (e: \"close\"): void }>();\n</script>\n\n<template>\n <div\n role=\"complementary\"\n :aria-label=\"title\"\n :data-testid=\"testid\"\n 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)]\"\n >\n <!-- The header names the panel an AI feature (EU AI Act Art. 50). -->\n <div\n 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\"\n >\n <div class=\"tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5\">\n <div\n class=\"tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]\"\n >\n <Sparkles :size=\"13\" :stroke-width=\"2\" aria-hidden=\"true\" />\n <span data-testid=\"ai-panel-title\">{{ title }}</span>\n </div>\n <p\n v-if=\"subtitle\"\n data-testid=\"ai-panel-subtitle\"\n class=\"tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ subtitle }}\n </p>\n </div>\n <div class=\"tpl:flex tpl:items-center tpl:gap-1\">\n <slot name=\"actions\" />\n <button\n type=\"button\"\n data-testid=\"ai-panel-close\"\n class=\"tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]\"\n :aria-label=\"closeLabel\"\n :title=\"closeLabel\"\n @click=\"emit('close')\"\n >\n <X :size=\"14\" :stroke-width=\"2\" aria-hidden=\"true\" />\n </button>\n </div>\n </div>\n <div class=\"tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col\">\n <slot />\n </div>\n <slot name=\"footer\" />\n </div>\n</template>\n","/** Chat file limits, matching the AI wire. */\nexport const AI_ATTACHMENTS_MAX = 4;\nexport const AI_ATTACHMENT_MAX_BYTES = 5 * 1024 * 1024;\nexport const AI_ATTACHMENTS_TOTAL_MAX_BYTES = 10 * 1024 * 1024;\nconst TYPES = new Set([\n \"image/png\",\n \"image/jpeg\",\n \"image/webp\",\n \"image/gif\",\n \"application/pdf\",\n]);\nexport function validateChatAttachments(\n existing: File[],\n added: File[],\n): {\n accepted: File[];\n errors: {\n name: string;\n reason: \"tooMany\" | \"tooLarge\" | \"totalTooLarge\" | \"wrongType\";\n }[];\n} {\n const accepted = [...existing];\n const errors: ReturnType<typeof validateChatAttachments>[\"errors\"] = [];\n let total = existing.reduce((sum, file) => sum + file.size, 0);\n for (const file of added) {\n const reason =\n accepted.length >= AI_ATTACHMENTS_MAX\n ? \"tooMany\"\n : !TYPES.has(file.type)\n ? \"wrongType\"\n : file.size > AI_ATTACHMENT_MAX_BYTES\n ? \"tooLarge\"\n : total + file.size > AI_ATTACHMENTS_TOTAL_MAX_BYTES\n ? \"totalTooLarge\"\n : null;\n if (reason) errors.push({ name: file.name, reason });\n else {\n accepted.push(file);\n total += file.size;\n }\n }\n return { accepted, errors };\n}\n","<script setup lang=\"ts\">\nimport {\n CircleAlert,\n FileText,\n Image,\n Paperclip,\n X,\n LoaderCircle,\n MessageSquarePlus,\n Redo2,\n Send,\n Sparkles,\n Square,\n Undo2,\n} from \"@lucide/vue\";\nimport { computed, inject, nextTick, ref, watch } from \"vue\";\nimport { useIntervalFn, useTimeoutFn } from \"@vueuse/core\";\nimport LoadingTrack from \"../LoadingTrack.vue\";\nimport AiPanelShell from \"./AiPanelShell.vue\";\nimport type {\n AiChatItem,\n UseAiFeatureReturn,\n} from \"../../composables/useAiFeature\";\nimport { useI18n } from \"../../composables/useI18n\";\nimport { secondaryBtnCompactClass } from \"../../constants/styleConstants\";\nimport { EDITOR_KEY, UI_LOCALE_KEY } from \"../../keys\";\nimport { validateChatAttachments } from \"../../utils/aiAttachments\";\nimport { languageName } from \"../../utils/languageName\";\nimport { aiErrorMessage } from \"../../utils/aiErrors\";\n\n// The template's root is the shell itself, with nothing beside it (not even a\n// comment, which makes a dev build's root a fragment): `AiPanels` slides this\n// component's root element, and a wrapper with no box of its own\n// (`display: contents`) leaves the slide nothing to move. The drag listeners\n// fall through to the shell.\nconst props = defineProps<{ feature: UseAiFeatureReturn }>();\nconst emit = defineEmits<{ (e: \"close\"): void }>();\n\nconst { t, format } = useI18n();\nconst editor = inject(EDITOR_KEY, null);\nconst uiLocale = inject(UI_LOCALE_KEY, undefined);\n\nconst promptInput = ref(\"\");\nconst composer = ref<HTMLTextAreaElement | null>(null);\nconst fileInput = ref<HTMLInputElement | null>(null);\nconst attachments = ref<File[]>([]);\nconst attachmentErrors = ref<string[]>([]);\nconst dragDepth = ref(0);\nwatch(\n () => props.feature.templateSession.value,\n () => {\n promptInput.value = \"\";\n attachments.value = [];\n attachmentErrors.value = [];\n dragDepth.value = 0;\n },\n { flush: \"sync\" },\n);\nconst canAttach = computed(() => props.feature.has(\"chatAttachments\"));\nfunction attach(files: File[]): void {\n const result = validateChatAttachments(attachments.value, files);\n attachments.value = result.accepted;\n const keys = {\n tooMany: \"attachTooMany\",\n tooLarge: \"attachTooLarge\",\n totalTooLarge: \"attachTotalTooLarge\",\n wrongType: \"attachWrongType\",\n } as const;\n attachmentErrors.value = result.errors.map((error) =>\n format(t.ai.chat[keys[error.reason]], { name: error.name }),\n );\n}\nfunction picked(event: Event): void {\n const input = event.target as HTMLInputElement;\n if (!isBusy.value && canAttach.value) attach(Array.from(input.files ?? []));\n input.value = \"\";\n}\nfunction removeAttachment(index: number): void {\n if (isBusy.value) return;\n attachments.value.splice(index, 1);\n attachmentErrors.value = [];\n}\nfunction isFileDrag(event: DragEvent): boolean {\n return Array.from(event.dataTransfer?.types ?? []).includes(\"Files\");\n}\nfunction dragEnter(event: DragEvent): void {\n if (!canAttach.value || isBusy.value || !isFileDrag(event)) return;\n event.preventDefault();\n dragDepth.value++;\n}\nfunction dragLeave(event: DragEvent): void {\n if (!isFileDrag(event)) return;\n dragDepth.value = Math.max(0, dragDepth.value - 1);\n}\nfunction dragOver(event: DragEvent): void {\n if (canAttach.value && isFileDrag(event)) event.preventDefault();\n}\nfunction drop(event: DragEvent): void {\n dragDepth.value = 0;\n if (!canAttach.value || !isFileDrag(event)) return;\n event.preventDefault();\n if (!isBusy.value) attach(Array.from(event.dataTransfer?.files ?? []));\n}\nwatch(\n () => props.feature.importQueue.value,\n (files) => {\n if (!canAttach.value || !files.length) return;\n attach(files);\n if (!promptInput.value.trim()) promptInput.value = t.ai.import.prompt;\n props.feature.importQueue.value = [];\n void nextTick(() => composer.value?.focus());\n },\n { immediate: true },\n);\nconst messagesContainer = ref<HTMLElement | null>(null);\nconst visibleStarterCount = ref(0);\n\nconst starters = computed(() =>\n props.feature.isTemplateEmpty.value\n ? [\n t.ai.starters.emptyWelcome,\n t.ai.starters.emptyLaunch,\n t.ai.starters.emptyNewsletter,\n ]\n : [\n t.ai.starters.filledShorten,\n t.ai.starters.filledFriendlier,\n t.ai.starters.filledDates,\n t.ai.starters.filledCta,\n ],\n);\nconst messages = computed(() => props.feature.messages.value);\nconst isBusy = computed(() => props.feature.isRunning.value);\nconst failureText = computed(() => {\n const failure = props.feature.failure.value;\n return failure\n ? aiErrorMessage(\n failure.error,\n t.ai.errors,\n format,\n uiLocale,\n failure.context,\n )\n : \"\";\n});\n\nconst { pause: pauseReveal, resume: resumeReveal } = useIntervalFn(\n () => {\n if (visibleStarterCount.value < starters.value.length) {\n visibleStarterCount.value++;\n } else {\n pauseReveal();\n }\n },\n 150,\n { immediate: false },\n);\nconst { start: startReveal } = useTimeoutFn(() => resumeReveal(), 100, {\n immediate: false,\n});\n\nwatch(\n () => starters.value.length,\n (count) => {\n pauseReveal();\n visibleStarterCount.value = 0;\n if (count > 0) startReveal();\n },\n { immediate: true },\n);\n\nfunction scrollToBottom(): void {\n void nextTick(() => {\n if (messagesContainer.value) {\n messagesContainer.value.scrollTop = messagesContainer.value.scrollHeight;\n }\n });\n}\n\nwatch(() => messages.value.length, scrollToBottom);\n\n// A failed turn gives its prompt back (D15).\nwatch(\n () =>\n [\n props.feature.failedPrompt.value,\n props.feature.failedAttachments.value,\n ] as const,\n ([prompt, files]) => {\n if (prompt) {\n promptInput.value = prompt;\n attachments.value = [...files];\n }\n },\n { immediate: true },\n);\n\nasync function send(): Promise<void> {\n const prompt = promptInput.value.trim();\n if (!prompt || isBusy.value) return;\n const files = [...attachments.value];\n promptInput.value = \"\";\n attachments.value = [];\n attachmentErrors.value = [];\n scrollToBottom();\n await props.feature.send(prompt, files);\n scrollToBottom();\n}\n\nfunction appliedLabel(item: AiChatItem): string {\n if (item.undone) return t.ai.chat.undone;\n return item.operationCount === 1\n ? t.ai.chat.appliedChange\n : format(t.ai.chat.appliedChanges, { count: item.operationCount });\n}\n\nfunction itemFailure(item: AiChatItem): string {\n return item.failure\n ? aiErrorMessage(\n item.failure.error,\n t.ai.errors,\n format,\n uiLocale,\n item.failure.context,\n )\n : \"\";\n}\n\nfunction toggleUndo(item: AiChatItem): void {\n if (item.undone) void props.feature.redoMessage(item.id);\n else void props.feature.undoMessage(item.id);\n}\n\nfunction chooseStarter(starter: string): void {\n pauseReveal();\n promptInput.value = starter;\n void send();\n}\n\nfunction onKeydown(event: KeyboardEvent): void {\n if (event.isComposing || event.keyCode === 229) return;\n if (event.key === \"Enter\" && !event.shiftKey) {\n event.preventDefault();\n void send();\n }\n}\n</script>\n\n<template>\n <AiPanelShell\n :title=\"t.ai.chat.title\"\n :subtitle=\"t.ai.chat.notice\"\n testid=\"ai-panel-chat\"\n :close-label=\"t.ai.chat.close\"\n @close=\"emit('close')\"\n @dragenter=\"dragEnter\"\n @dragleave=\"dragLeave\"\n @dragover=\"dragOver\"\n @drop=\"drop\"\n >\n <template #actions>\n <button\n v-if=\"feature.canClear && messages.length > 0\"\n type=\"button\"\n data-testid=\"ai-chat-new\"\n class=\"tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)] tpl:disabled:opacity-40\"\n :aria-label=\"t.ai.chat.newChat\"\n :title=\"t.ai.chat.newChat\"\n :disabled=\"isBusy\"\n @click=\"feature.newChat()\"\n >\n <MessageSquarePlus :size=\"14\" :stroke-width=\"2\" aria-hidden=\"true\" />\n </button>\n </template>\n\n <div\n v-if=\"canAttach && dragDepth > 0 && !isBusy\"\n data-testid=\"ai-chat-drop-hint\"\n 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\"\n >\n {{ t.ai.chat.dropHint }}\n </div>\n <div ref=\"messagesContainer\" class=\"tpl:flex-1 tpl:overflow-y-auto tpl:p-4\">\n <div\n v-if=\"feature.isLoadingHistory.value\"\n class=\"tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center\"\n >\n <LoaderCircle\n class=\"tpl-spinner tpl:text-[var(--tpl-text-muted)]\"\n :size=\"24\"\n :stroke-width=\"2\"\n aria-hidden=\"true\"\n />\n <p class=\"tpl:text-sm tpl:text-[var(--tpl-text-muted)]\">\n {{ t.ai.chat.loadingHistory }}\n </p>\n </div>\n\n <div\n v-else-if=\"messages.length === 0\"\n class=\"tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center\"\n >\n <Sparkles\n :size=\"32\"\n :stroke-width=\"1.5\"\n class=\"tpl:text-[var(--tpl-text-dim)]\"\n aria-hidden=\"true\"\n />\n <p\n class=\"tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ t.ai.chat.placeholder }}\n </p>\n </div>\n\n <!-- Text is interpolated, never `v-html`. -->\n <div v-else class=\"tpl:flex tpl:flex-col tpl:gap-4\">\n <div\n v-for=\"item in messages\"\n :key=\"item.id\"\n class=\"tpl:flex tpl:flex-col tpl:gap-2\"\n >\n <span\n v-if=\"typeof item.locale === 'string'\"\n data-testid=\"ai-chat-language\"\n class=\"tpl:text-xs tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ languageName(item.locale) }}\n </span>\n <div\n v-if=\"item.role === 'user'\"\n data-testid=\"ai-chat-prompt\"\n 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\"\n style=\"\n background-color: var(--tpl-primary-light);\n color: var(--tpl-text);\n max-width: 85%;\n box-shadow: var(--tpl-shadow);\n \"\n >\n {{ item.text }}\n <span\n v-for=\"(attachment, index) in item.attachments\"\n :key=\"index\"\n data-testid=\"ai-chat-history-attachment\"\n 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\"\n >\n <FileText\n v-if=\"attachment.kind === 'pdf'\"\n :size=\"12\"\n aria-hidden=\"true\"\n /><Image v-else :size=\"12\" aria-hidden=\"true\" />{{\n attachment.name\n }}\n </span>\n </div>\n\n <div v-else class=\"tpl:flex tpl:flex-col tpl:gap-2\">\n <LoadingTrack\n v-if=\"item.text === '' && item.status === 'streaming'\"\n />\n <div\n v-else-if=\"item.text !== ''\"\n data-testid=\"ai-chat-reply\"\n class=\"tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3.5 tpl:py-2.5 tpl:text-sm tpl:whitespace-pre-wrap\"\n style=\"\n max-width: 85%;\n background-color: var(--tpl-bg);\n color: var(--tpl-text);\n box-shadow: var(--tpl-shadow);\n \"\n >\n {{ item.text }}\n </div>\n <div\n v-if=\"item.operationCount > 0\"\n data-testid=\"ai-chat-applied\"\n class=\"tpl:flex tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]\"\n >\n <span>{{ appliedLabel(item) }}</span>\n <button\n v-if=\"item.undone ? item.canRedo : item.canUndo\"\n type=\"button\"\n data-testid=\"ai-chat-undo\"\n :class=\"secondaryBtnCompactClass\"\n :disabled=\"isBusy\"\n @click=\"toggleUndo(item)\"\n >\n <Redo2\n v-if=\"item.undone\"\n :size=\"12\"\n :stroke-width=\"2\"\n aria-hidden=\"true\"\n />\n <Undo2 v-else :size=\"12\" :stroke-width=\"2\" aria-hidden=\"true\" />\n {{ item.undone ? t.ai.chat.redo : t.ai.chat.undo }}\n </button>\n </div>\n <p\n v-if=\"item.failure\"\n role=\"alert\"\n data-testid=\"ai-chat-item-error\"\n class=\"tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-danger)]\"\n >\n {{ itemFailure(item) }}\n </p>\n </div>\n </div>\n </div>\n </div>\n\n <!-- Starter prompts, over the empty state (D21). -->\n <div\n v-if=\"messages.length === 0 && starters.length > 0\"\n class=\"tpl:absolute tpl:right-0 tpl:bottom-0 tpl:left-0 tpl:z-10 tpl:px-3 tpl:pb-3\"\n style=\"\n background-color: color-mix(in srgb, var(--tpl-bg) 50%, transparent);\n backdrop-filter: blur(2px);\n \"\n >\n <div class=\"tpl:flex tpl:flex-col tpl:gap-1.5\">\n <button\n v-for=\"(starter, index) in starters\"\n :key=\"index\"\n type=\"button\"\n data-testid=\"ai-chat-starter\"\n class=\"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\"\n :class=\"\n starters.length - 1 - index < visibleStarterCount\n ? 'tpl:translate-y-0 tpl:opacity-100'\n : 'tpl:pointer-events-none tpl:-translate-y-2 tpl:opacity-0'\n \"\n style=\"\n border-color: var(--tpl-border);\n color: var(--tpl-primary);\n background-color: var(--tpl-bg);\n box-shadow: var(--tpl-shadow);\n \"\n @click=\"chooseStarter(starter)\"\n >\n {{ starter }}\n </button>\n </div>\n </div>\n\n <template #footer>\n <div class=\"tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]\">\n <template v-if=\"canAttach\">\n <input\n ref=\"fileInput\"\n data-testid=\"ai-chat-files\"\n type=\"file\"\n multiple\n accept=\"image/png,image/jpeg,image/webp,image/gif,application/pdf\"\n hidden\n :disabled=\"isBusy\"\n @change=\"picked\"\n />\n <div\n v-if=\"attachments.length\"\n class=\"tpl:mb-2 tpl:flex tpl:flex-wrap tpl:gap-1\"\n >\n <span\n v-for=\"(file, index) in attachments\"\n :key=\"index\"\n data-testid=\"ai-chat-attachment\"\n 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)]\"\n >\n <FileText\n v-if=\"file.type === 'application/pdf'\"\n :size=\"12\"\n aria-hidden=\"true\"\n /><Image v-else :size=\"12\" aria-hidden=\"true\" />\n <span class=\"tpl:truncate\">{{ file.name }}</span>\n <button\n type=\"button\"\n :aria-label=\"\n format(t.ai.chat.removeAttachment, { name: file.name })\n \"\n :disabled=\"isBusy\"\n class=\"tpl:shrink-0 tpl:rounded tpl:p-0.5 tpl:disabled:opacity-40\"\n @click=\"removeAttachment(index)\"\n >\n <X :size=\"12\" aria-hidden=\"true\" />\n </button>\n </span>\n </div>\n <p\n v-if=\"attachments.length\"\n class=\"tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ t.ai.import.placeholderNote }}\n </p>\n <div\n aria-live=\"polite\"\n class=\"tpl:text-xs tpl:text-[var(--tpl-danger)]\"\n >\n <p\n v-for=\"(error, index) in attachmentErrors\"\n :key=\"index\"\n class=\"tpl:mb-2\"\n >\n {{ error }}\n </p>\n </div>\n </template>\n <div\n v-if=\"feature.keptYourVersion.value\"\n role=\"status\"\n class=\"tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]\"\n >\n <p>{{ t.ai.chat.keptYourVersion }}</p>\n <button\n type=\"button\"\n :disabled=\"isBusy\"\n :class=\"secondaryBtnCompactClass\"\n @click=\"feature.reloadTemplate()\"\n >\n {{ t.ai.chat.reload }}\n </button>\n </div>\n <div\n v-if=\"failureText\"\n role=\"alert\"\n data-testid=\"ai-chat-error\"\n class=\"tpl:mx-3 tpl:mb-2 tpl:flex tpl:items-start tpl:gap-2 tpl:rounded-lg tpl:px-3 tpl:py-2 tpl:text-xs\"\n style=\"\n background-color: var(--tpl-danger-light);\n color: var(--tpl-danger);\n \"\n >\n <CircleAlert\n :size=\"14\"\n :stroke-width=\"2\"\n class=\"tpl:mt-0.5 tpl:shrink-0\"\n aria-hidden=\"true\"\n />\n <span>{{ failureText }}</span>\n </div>\n <div\n 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)]\"\n >\n <p\n v-if=\"editor?.activeLocale?.value\"\n data-testid=\"ai-active-language\"\n class=\"tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]\"\n >\n {{\n format(t.localization.aiActiveLanguage, {\n language: languageName(editor.activeLocale.value),\n })\n }}\n </p>\n <textarea\n ref=\"composer\"\n v-model=\"promptInput\"\n data-testid=\"ai-chat-input\"\n 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)]\"\n :placeholder=\"t.ai.chat.inputPlaceholder\"\n :aria-label=\"t.ai.chat.inputPlaceholder\"\n :disabled=\"isBusy\"\n maxlength=\"4000\"\n rows=\"3\"\n @keydown=\"onKeydown\"\n />\n <div class=\"tpl:flex tpl:items-center tpl:justify-between\">\n <button\n v-if=\"canAttach\"\n type=\"button\"\n :aria-label=\"t.ai.chat.attach\"\n :title=\"t.ai.chat.attach\"\n :disabled=\"isBusy\"\n 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\"\n @click=\"fileInput?.click()\"\n >\n <Paperclip :size=\"16\" aria-hidden=\"true\" />\n </button>\n <button\n v-if=\"isBusy\"\n type=\"button\"\n data-testid=\"ai-chat-stop\"\n 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)]\"\n :aria-label=\"t.ai.chat.stop\"\n :title=\"t.ai.chat.stop\"\n @click=\"feature.stop()\"\n >\n <Square :size=\"16\" :stroke-width=\"2\" aria-hidden=\"true\" />\n </button>\n <button\n v-else\n type=\"button\"\n data-testid=\"ai-chat-send\"\n 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)]\"\n :aria-label=\"t.ai.chat.send\"\n :title=\"t.ai.chat.send\"\n :disabled=\"!promptInput.trim()\"\n @click=\"send\"\n >\n <Send :size=\"16\" :stroke-width=\"2\" aria-hidden=\"true\" />\n </button>\n </div>\n </div>\n <p\n class=\"tpl:m-0 tpl:px-1 tpl:pt-2 tpl:text-center tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]\"\n >\n {{ t.ai.chat.disclaimer }}\n </p>\n </div>\n </template>\n </AiPanelShell>\n</template>\n\n<style scoped>\n.tpl-ai-input-wrapper:focus-within {\n border-color: var(--tpl-primary);\n box-shadow: var(--tpl-ring);\n}\n\n.tpl-ai-send-btn:not(:disabled):hover {\n transform: scale(1.05);\n}\n\n.tpl-starter-btn:hover {\n border-color: var(--tpl-primary) !important;\n background-color: var(--tpl-primary-light) !important;\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;EAWA,IAAMqF,IAAOD;E,kBAIX7E,EAAA,GAAAC,EA2CM,OAAA;GA1CJ,MAAK;GACJ,cAAY8E,EAAA;GACZ,eAAaA,EAAA;GACd,OAAM;;GAGN7E,EA+BM,OA/BNT,GA+BM,CA5BJS,EAcM,OAdNR,GAcM,CAbJQ,EAKM,OALNP,GAKM,CAFJQ,EAA4DC,EAAAyC,CAAA,GAAA;IAAjD,MAAM;IAAK,gBAAc;IAAG,eAAY;G,IACnD3C,EAAqD,QAArDN,GAAqDS,EAAf0E,EAAA,KAAK,GAAA,CAAA,C,IAGrCA,EAAA,YADR/E,EAAA,GAAAC,EAMI,KANJJ,GAMIQ,EADC0E,EAAA,QAAQ,GAAA,CAAA,K,aAGf7E,EAYM,OAZNJ,GAYM,CAXJQ,EAAuB2E,EAAA,QAAA,SAAA,GACvB/E,EASS,UAAA;IARP,MAAK;IACL,eAAY;IACZ,OAAM;IACL,cAAY6E,EAAA;IACZ,OAAOA,EAAA;IACP,SAAK,AAAAG,EAAA,QAAA,MAAEJ,EAAI,OAAA;G,IAEZ3E,EAAqDC,EAAAiD,CAAA,GAAA;IAAjD,MAAM;IAAK,gBAAc;IAAG,eAAY;;GAIlDnD,EAEM,OAFNH,GAEM,CADJO,EAAQ2E,EAAA,QAAA,SAAA,C;GAEV3E,EAAsB2E,EAAA,QAAA,QAAA;;;A,ICrDpBE,oBAAQ,IAAI,IAAI;CACpB;CACA;CACA;CACA;CACA;AACF,CAAC;AACD,SAAgBC,GACd,GACA,GAOA;CACA,IAAMC,IAAW,CAAC,GAAGC,CAAQ,GACvBC,IAA+D,CAAC,GAClEC,IAAQF,EAAS,QAAQ,GAAK,MAASG,IAAMC,EAAK,MAAM,CAAC;CAC7D,KAAK,IA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+J,CAAO,GAAA,IAAAlE,EAAA,E"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { C as e, F as t, _ as n, ct as r, g as i, mt as a, u as o } from "./draggable-IRVFEZ-b.js";
|
|
2
|
-
import { t as s } from "./useCloudI18n-BTV9uu3c.js";
|
|
3
|
-
// src/cloud/components/CloudHeaderExtras.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var c = {
|
|
5
|
-
key: 0,
|
|
6
|
-
"data-testid": "cloud-template-usage",
|
|
7
|
-
class: "tpl:text-xs tpl:opacity-60 tpl:text-[var(--tpl-text-muted)]"
|
|
8
|
-
}, l = /* @__PURE__ */ e({
|
|
9
|
-
__name: "CloudHeaderExtras",
|
|
10
|
-
props: {
|
|
11
|
-
part: {},
|
|
12
|
-
cloud: {}
|
|
13
|
-
},
|
|
14
|
-
setup(e) {
|
|
15
|
-
let { t: l, format: u } = s();
|
|
16
|
-
return (s, d) => e.part === "left" ? (t(), n(o, { key: 0 }, [e.cloud.featureFlags.templateLimit.value === null ? i("", !0) : (t(), n("span", c, a(r(u)(r(l).header.templatesUsed, {
|
|
17
|
-
used: e.cloud.featureFlags.templateCount.value,
|
|
18
|
-
max: e.cloud.featureFlags.templateLimit.value
|
|
19
|
-
})), 1))], 64)) : i("", !0);
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
export { l as default };
|
|
23
|
-
|
|
24
|
-
//# sourceMappingURL=CloudHeaderExtras-Cd-ePldd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CloudHeaderExtras-Cd-ePldd.js","names":["_openBlock","_createElementBlock","_Fragment","_toDisplayString","_unref","defineComponent","openBlock","createElementBlock","unref","createCommentVNode","toDisplayString","Fragment","useCloudI18nStrict","_hoisted_1","CloudHeaderExtras_default","cloudT","cloudFormat","__props"],"sources":["../../../src/cloud/components/CloudHeaderExtras.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useCloudI18nStrict } from \"../../composables/useCloudI18n\";\nimport type { CloudAttachment } from \"../runtime\";\n\n/**\n * The Cloud-only header control, filled into `EditorHeader`'s `left-extras`\n * slot. `Editor.vue` still mounts the `right` part, which renders nothing until\n * Cloud's next right-hand control (S7 and S8 on the `cloud` branch).\n *\n * This control lives in a lazy chunk, so a Cloud session pays one round-trip\n * for it and an OSS session pays none.\n *\n * There is no `center` part. The header's centre track must hold a constant\n * width, so only the anchored columns take conditional controls — see\n * `EditorHeader.vue`'s centre comment.\n *\n * The plan-usage readout lives here rather than in the shared header because\n * it renders a **cloud-chunk** string; OSS translators never see it. Comments\n * and the collaborator bar are deliberately not here: both are shared and\n * provider-backed, so their controls and strings belong to the shared header\n * and the OSS chunk.\n */\ndefineProps<{\n part: \"left\" | \"right\";\n cloud: CloudAttachment;\n}>();\n\nconst { t: cloudT, format: cloudFormat } = useCloudI18nStrict();\n</script>\n\n<template>\n <!-- Left: the plan's template usage. -->\n <template v-if=\"part === 'left'\">\n <!-- A plan *limit*, not a templates concern, which is why it sits here and\n its string stays in the cloud chunk. -->\n <span\n v-if=\"cloud.featureFlags.templateLimit.value !== null\"\n data-testid=\"cloud-template-usage\"\n class=\"tpl:text-xs tpl:opacity-60 tpl:text-[var(--tpl-text-muted)]\"\n >\n {{\n cloudFormat(cloudT.header.templatesUsed, {\n used: cloud.featureFlags.templateCount.value,\n max: cloud.featureFlags.templateLimit.value,\n })\n }}\n </span>\n </template>\n</template>\n"],"mappings":";;;;;;;;;;;;;;EA2BA,IAAM,EAAE,GAAGe,GAAQ,QAAQC,MAAgBJ,EAAmB;E,iBAK5CK,EAAA,SAAI,UAApBjB,EAAA,GAAAC,EAeWC,GAAA,EAAA,KAAA,EAAA,GAAA,CAXDe,EAAA,MAAM,aAAa,cAAc,UAAK,O,aAD9CjB,EAAA,GAAAC,EAWO,QAXPY,GAWOV,EALHC,EAAAY,CAAA,CAAW,CAACZ,EAAAW,CAAA,CAAM,CAAC,OAAO,eAAa;GAAoB,MAAAE,EAAA,MAAM,aAAa,cAAc;GAAsB,KAAAA,EAAA,MAAM,aAAa,cAAc"}
|