@8wave/ai-elements 0.126.0-beta.40 → 0.126.0-beta.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{Agent-DZEyfr8D.js → Agent-DJ6TBi6l.js} +143 -138
- package/dist/_chunks/Agent-DJ6TBi6l.js.map +1 -0
- package/dist/_chunks/{PkFilePreview-BHqmp1EW.js → PkFilePreview-BrWWeK4E.js} +3 -3
- package/dist/_chunks/{PkFilePreview-BHqmp1EW.js.map → PkFilePreview-BrWWeK4E.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-BHAgVlKs.js → PkFilePreviewDialog-BRZH_LxY.js} +2 -2
- package/dist/_chunks/{PkFilePreviewDialog-BHAgVlKs.js.map → PkFilePreviewDialog-BRZH_LxY.js.map} +1 -1
- package/dist/_chunks/{PkImageEditorDialog-BDwL39Du.js → PkImageEditorDialog-D21ggZkD.js} +6 -5
- package/dist/_chunks/{PkImageEditorDialog-BDwL39Du.js.map → PkImageEditorDialog-D21ggZkD.js.map} +1 -1
- package/dist/_chunks/{PkSelectionActions-DLsZ8-gW.js → PkSelectionActions-BLfFobXb.js} +2 -2
- package/dist/_chunks/{PkSelectionActions-DLsZ8-gW.js.map → PkSelectionActions-BLfFobXb.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-14rJ_FK2.js → PkStreamingMarkdown-Bekhx_vG.js} +300 -213
- package/dist/_chunks/PkStreamingMarkdown-Bekhx_vG.js.map +1 -0
- package/dist/_chunks/{PkToolChatFile-62j1S0Pq.js → PkToolChatFile-BzN4fMaY.js} +3 -3
- package/dist/_chunks/{PkToolChatFile-62j1S0Pq.js.map → PkToolChatFile-BzN4fMaY.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-B9EM_K6O.js → PkToolRequestGeolocation-Dj5OxEMP.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-B9EM_K6O.js.map → PkToolRequestGeolocation-Dj5OxEMP.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-CfjfqCHX.js → PkToolRequestOAuthConnection-Cj_IYnrW.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-CfjfqCHX.js.map → PkToolRequestOAuthConnection-Cj_IYnrW.js.map} +1 -1
- package/dist/_chunks/PkToolShowArtifact-BkGtejtb.js +110 -0
- package/dist/_chunks/PkToolShowArtifact-BkGtejtb.js.map +1 -0
- package/dist/_chunks/{PkToolShowContactForm-BeJ5GR6t.js → PkToolShowContactForm-BXsvfCKR.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-BeJ5GR6t.js.map → PkToolShowContactForm-BXsvfCKR.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-B9VDoS_W.js → PkToolShowForm-DeG_AzO9.js} +4 -4
- package/dist/_chunks/{PkToolShowForm-B9VDoS_W.js.map → PkToolShowForm-DeG_AzO9.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-DFuc5IJ1.js → PkToolShowImageGallery-Dri9KUNg.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-DFuc5IJ1.js.map → PkToolShowImageGallery-Dri9KUNg.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-C2EJKYOV.js → PkToolShowProductList-C-XQdsus.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-C2EJKYOV.js.map → PkToolShowProductList-C-XQdsus.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-BL3DnfcN.js → PkToolShowSources-DMDML2kQ.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-BL3DnfcN.js.map → PkToolShowSources-DMDML2kQ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-DLgtjBJ1.js → PkToolShowSuggestedReply-BYoW-L6k.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-DLgtjBJ1.js.map → PkToolShowSuggestedReply-BYoW-L6k.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-DcWXDcOZ.js → PkToolShowVideo-C_1ziurv.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-DcWXDcOZ.js.map → PkToolShowVideo-C_1ziurv.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-CPqMC6qt.js → PkToolShowWebPages-yFdm0n0F.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-CPqMC6qt.js.map → PkToolShowWebPages-yFdm0n0F.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-DMt6O5iK.js → chatImagePolicy-Dqke0kDv.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-DMt6O5iK.js.map → chatImagePolicy-Dqke0kDv.js.map} +1 -1
- package/dist/_chunks/{markdown-nw5sXwU0.js → markdown-Z_eeOlvv.js} +16 -16
- package/dist/_chunks/{markdown-nw5sXwU0.js.map → markdown-Z_eeOlvv.js.map} +1 -1
- package/dist/_chunks/{utils-DE4cAz37.js → utils-C1JaUBI_.js} +2 -2
- package/dist/_chunks/{utils-DE4cAz37.js.map → utils-C1JaUBI_.js.map} +1 -1
- package/dist/ai-elements.es.js +3754 -3573
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotAuth.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotStepPayload.js +1 -1
- package/dist-vue/PkChatbotStepToolDetail.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{Agent-CBAd3F7k.js → Agent-DrnYCRFA.js} +2 -2
- package/dist-vue/_chunks/{Agent-CBAd3F7k.js.map → Agent-DrnYCRFA.js.map} +1 -1
- package/dist-vue/_chunks/{Document-B3w5H0R0.js → Document-CA7c3oZE.js} +11 -11
- package/dist-vue/_chunks/{Document-B3w5H0R0.js.map → Document-CA7c3oZE.js.map} +1 -1
- package/dist-vue/_chunks/{Media-0U2B_qCS.js → Media-BIlhY_h6.js} +31 -26
- package/dist-vue/_chunks/Media-BIlhY_h6.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbot-aCgj2DMu.js → PkChatbot-QjeNY0h6.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-aCgj2DMu.js.map → PkChatbot-QjeNY0h6.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotAuth-C5agN8ht.js → PkChatbotAuth-C8ZjLNFY.js} +8 -8
- package/dist-vue/_chunks/{PkChatbotAuth-C5agN8ht.js.map → PkChatbotAuth-C8ZjLNFY.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-CLfzcH_t.js → PkChatbotEmptyState-D6S0iYe3.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-CLfzcH_t.js.map → PkChatbotEmptyState-D6S0iYe3.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotInput-CunAf5Rq.js +708 -0
- package/dist-vue/_chunks/PkChatbotInput-CunAf5Rq.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotMessages-CG3UZYcP.js → PkChatbotMessages-CzPsgCAN.js} +351 -326
- package/dist-vue/_chunks/PkChatbotMessages-CzPsgCAN.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotStepPayload-fyrbP7yS.js → PkChatbotStepPayload-BQDpTDgn.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-fyrbP7yS.js.map → PkChatbotStepPayload-BQDpTDgn.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-Drhc6X-x.js → PkChatbotStepToolDetail-Dsf9t1B6.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-Drhc6X-x.js.map → PkChatbotStepToolDetail-Dsf9t1B6.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-DZwV7UVr.js → PkChatbotSteps-HACZ1RrB.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-DZwV7UVr.js.map → PkChatbotSteps-HACZ1RrB.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-IU3HJpxG.js → PkChatbotViewChat-BpDCX_72.js} +107 -107
- package/dist-vue/_chunks/PkChatbotViewChat-BpDCX_72.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-4zGrp7Fo.js → PkChatbotViewConversations-B0nUFwuu.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-4zGrp7Fo.js.map → PkChatbotViewConversations-B0nUFwuu.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-PHdrHZOf.js → PkChatbotViewFiles-gGshDAPk.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-PHdrHZOf.js.map → PkChatbotViewFiles-gGshDAPk.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-BrZ7oiUY.js → PkChatbotViewProfile-BuJtqq8F.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-BrZ7oiUY.js.map → PkChatbotViewProfile-BuJtqq8F.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-WqS-s3vk.js → PkFilePreview-0p50S8Km.js} +4 -4
- package/dist-vue/_chunks/{PkFilePreview-WqS-s3vk.js.map → PkFilePreview-0p50S8Km.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-BIaTAK05.js → PkFilePreviewDialog-B1N4xDEu.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-BIaTAK05.js.map → PkFilePreviewDialog-B1N4xDEu.js.map} +1 -1
- package/dist-vue/_chunks/{PkImageEditorDialog-_-UkV0CO.js → PkImageEditorDialog-B-jW5yE8.js} +6 -5
- package/dist-vue/_chunks/{PkImageEditorDialog-_-UkV0CO.js.map → PkImageEditorDialog-B-jW5yE8.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-ha0V58V9.js → PkStreamingMarkdown-WIueQOg3.js} +530 -445
- package/dist-vue/_chunks/PkStreamingMarkdown-WIueQOg3.js.map +1 -0
- package/dist-vue/_chunks/{PkToolChatFile-OusYITiO.js → PkToolChatFile-W6OJP7HH.js} +3 -3
- package/dist-vue/_chunks/{PkToolChatFile-OusYITiO.js.map → PkToolChatFile-W6OJP7HH.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-CyL_M1Rm.js → PkToolRequestGeolocation-BPZfJfR1.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-CyL_M1Rm.js.map → PkToolRequestGeolocation-BPZfJfR1.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DWkeVLpx.js → PkToolRequestOAuthConnection-BaMZkvU5.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DWkeVLpx.js.map → PkToolRequestOAuthConnection-BaMZkvU5.js.map} +1 -1
- package/dist-vue/_chunks/PkToolShowArtifact-CPBFsUrY.js +107 -0
- package/dist-vue/_chunks/PkToolShowArtifact-CPBFsUrY.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowChart-BSnYmoJJ.js → PkToolShowChart-BaUS47YU.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowChart-BSnYmoJJ.js.map → PkToolShowChart-BaUS47YU.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-DFufPNnQ.js → PkToolShowContactForm-6OQ-hjCt.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-DFufPNnQ.js.map → PkToolShowContactForm-6OQ-hjCt.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-BR4fE_be.js → PkToolShowDiagram-D6hPQVoe.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-BR4fE_be.js.map → PkToolShowDiagram-D6hPQVoe.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-yh0YAXcg.js → PkToolShowForm-CAadu_Pq.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-yh0YAXcg.js.map → PkToolShowForm-CAadu_Pq.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-mmUY1Yfg.js → PkToolShowImageGallery-BlTyCF8h.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-mmUY1Yfg.js.map → PkToolShowImageGallery-BlTyCF8h.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-B-ya1TDt.js → PkToolShowProductList-CZFkf9UD.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-B-ya1TDt.js.map → PkToolShowProductList-CZFkf9UD.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-DYkHkVdX.js → PkToolShowSources-Bci0Ab2u.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-DYkHkVdX.js.map → PkToolShowSources-Bci0Ab2u.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-wKgwHTRO.js → PkToolShowSuggestedReply-DCZbwFhR.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-wKgwHTRO.js.map → PkToolShowSuggestedReply-DCZbwFhR.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-CRg2lAY8.js → PkToolShowVideo-BnSYdoTJ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-CRg2lAY8.js.map → PkToolShowVideo-BnSYdoTJ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-C_pWag94.js → PkToolShowWebPages-CHrHuFZI.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-C_pWag94.js.map → PkToolShowWebPages-CHrHuFZI.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-DBKfGL6y.js → createChatbotApiClient-_gh3Y1rl.js} +3 -3
- package/dist-vue/_chunks/createChatbotApiClient-_gh3Y1rl.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-Hb5EjISl.js → useChatbotStore-CjFPM9Q5.js} +3 -3
- package/dist-vue/_chunks/{useChatbotStore-Hb5EjISl.js.map → useChatbotStore-CjFPM9Q5.js.map} +1 -1
- package/dist-vue/_chunks/{utils-Df5n2cDc.js → utils-BYvQMZLG.js} +2 -2
- package/dist-vue/_chunks/{utils-Df5n2cDc.js.map → utils-BYvQMZLG.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +40 -8
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +71 -71
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +10 -0
- package/dist-vue/packages/components/src/chat/PkChatbotInput.d.ts +2 -2
- package/dist-vue/packages/components/src/chat/PkImageEditorDialog.d.ts +5 -0
- package/dist-vue/packages/components/src/chat/PkStreamingMarkdown.d.ts +6 -0
- package/dist-vue/packages/components/src/chat/richCopy.d.ts +33 -0
- package/dist-vue/packages/components/src/chat/screenshot.d.ts +38 -0
- package/dist-vue/packages/models/src/schema/Chat.d.ts +1 -1
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/Agent-DZEyfr8D.js.map +0 -1
- package/dist/_chunks/PkStreamingMarkdown-14rJ_FK2.js.map +0 -1
- package/dist/_chunks/PkToolShowArtifact-I_QZS7Pf.js +0 -94
- package/dist/_chunks/PkToolShowArtifact-I_QZS7Pf.js.map +0 -1
- package/dist-vue/_chunks/Media-0U2B_qCS.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotInput-C9l_1I3d.js +0 -584
- package/dist-vue/_chunks/PkChatbotInput-C9l_1I3d.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-CG3UZYcP.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-IU3HJpxG.js.map +0 -1
- package/dist-vue/_chunks/PkStreamingMarkdown-ha0V58V9.js.map +0 -1
- package/dist-vue/_chunks/PkToolShowArtifact-x57Gri2a.js +0 -91
- package/dist-vue/_chunks/PkToolShowArtifact-x57Gri2a.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-DBKfGL6y.js.map +0 -1
package/dist-vue/locales.js
CHANGED
|
@@ -61,10 +61,12 @@ var e = {
|
|
|
61
61
|
open: "Open",
|
|
62
62
|
attachFile: "Attach a file",
|
|
63
63
|
takePhoto: "Take a photo",
|
|
64
|
+
attachScreenshot: "Attach a screenshot",
|
|
64
65
|
talk: "Talk",
|
|
65
66
|
stop: "Stop",
|
|
66
67
|
queueMessage: "Send when the answer ends",
|
|
67
68
|
regenerate: "Regenerate",
|
|
69
|
+
copyAnswer: "Copy the answer",
|
|
68
70
|
getMoreInfo: "More information",
|
|
69
71
|
editRevise: "Update revised answer",
|
|
70
72
|
createRevise: "Revise answer",
|
|
@@ -80,6 +82,7 @@ var e = {
|
|
|
80
82
|
apply: "Apply",
|
|
81
83
|
clear: "Clear",
|
|
82
84
|
send: "Send",
|
|
85
|
+
copyTable: "Copy table",
|
|
83
86
|
showLess: "Show less",
|
|
84
87
|
showMore: "View more {count}",
|
|
85
88
|
copyLink: "Copy link",
|
|
@@ -137,6 +140,7 @@ var e = {
|
|
|
137
140
|
feedbackSubmittedTitle: "Thank you!",
|
|
138
141
|
feedbackSubmittedMessage: "Your feedback has been submitted successfully.",
|
|
139
142
|
attachmentUploadFailed: "An attachment did not upload: retry it or remove it to send the message.",
|
|
143
|
+
screenshotFailed: "The screenshot could not be taken. Try again, or attach an image.",
|
|
140
144
|
fileLimitPerChat: "You have reached the limit of {max} files for this conversation.",
|
|
141
145
|
fileLimitPerMessage: "You can attach at most {max} files per message.",
|
|
142
146
|
backgroundAnswerReady: "The agent answered in “{title}”",
|
|
@@ -354,6 +358,7 @@ var e = {
|
|
|
354
358
|
or: "Or",
|
|
355
359
|
comment: "Comment",
|
|
356
360
|
file: "File",
|
|
361
|
+
screenshotFileName: "Screenshot",
|
|
357
362
|
automaticConfirmations: "Automatic",
|
|
358
363
|
message: "Message",
|
|
359
364
|
taskRun: "Scheduled task: {reason}",
|
|
@@ -1140,10 +1145,12 @@ var e = {
|
|
|
1140
1145
|
open: "Apri",
|
|
1141
1146
|
attachFile: "Allega un file",
|
|
1142
1147
|
takePhoto: "Scatta una foto",
|
|
1148
|
+
attachScreenshot: "Allega una schermata",
|
|
1143
1149
|
talk: "Parla",
|
|
1144
1150
|
stop: "Ferma",
|
|
1145
1151
|
queueMessage: "Invia a fine risposta",
|
|
1146
1152
|
regenerate: "Rigenera",
|
|
1153
|
+
copyAnswer: "Copia la risposta",
|
|
1147
1154
|
getMoreInfo: "Maggiori informazioni",
|
|
1148
1155
|
editRevise: "Modifica la risposta",
|
|
1149
1156
|
createRevise: "Correggi la risposta",
|
|
@@ -1159,6 +1166,7 @@ var e = {
|
|
|
1159
1166
|
apply: "Applica",
|
|
1160
1167
|
clear: "Pulisci",
|
|
1161
1168
|
send: "Invia",
|
|
1169
|
+
copyTable: "Copia tabella",
|
|
1162
1170
|
showLess: "Mostra di meno",
|
|
1163
1171
|
showMore: "Visualizza altre {count}",
|
|
1164
1172
|
copyLink: "Copia link",
|
|
@@ -1216,6 +1224,7 @@ var e = {
|
|
|
1216
1224
|
feedbackSubmittedTitle: "Grazie!",
|
|
1217
1225
|
feedbackSubmittedMessage: "Il tuo feedback è stato inviato con successo.",
|
|
1218
1226
|
attachmentUploadFailed: "Un allegato non è stato caricato: riprova o toglilo per inviare il messaggio.",
|
|
1227
|
+
screenshotFailed: "Non è stato possibile catturare la schermata. Riprova, oppure allega un'immagine.",
|
|
1219
1228
|
fileLimitPerChat: "Hai raggiunto il limite di {max} file per questa conversazione.",
|
|
1220
1229
|
fileLimitPerMessage: "Puoi allegare al massimo {max} file per messaggio.",
|
|
1221
1230
|
backgroundAnswerReady: "L'agente ha risposto in «{title}»",
|
|
@@ -1433,6 +1442,7 @@ var e = {
|
|
|
1433
1442
|
or: "Oppure",
|
|
1434
1443
|
comment: "Commento",
|
|
1435
1444
|
file: "File",
|
|
1445
|
+
screenshotFileName: "Schermata",
|
|
1436
1446
|
automaticConfirmations: "Automatico",
|
|
1437
1447
|
message: "Messaggio",
|
|
1438
1448
|
taskRun: "Attività programmata: {reason}",
|
|
@@ -63,11 +63,11 @@ type __VLS_ModelProps = {
|
|
|
63
63
|
'pendingAttachments'?: PendingAttachment[];
|
|
64
64
|
};
|
|
65
65
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
66
|
-
declare var __VLS_56: {},
|
|
66
|
+
declare var __VLS_56: {}, __VLS_110: {};
|
|
67
67
|
type __VLS_Slots = {} & {
|
|
68
68
|
prepend?: (props: typeof __VLS_56) => any;
|
|
69
69
|
} & {
|
|
70
|
-
'additional-actions'?: (props: typeof
|
|
70
|
+
'additional-actions'?: (props: typeof __VLS_110) => any;
|
|
71
71
|
};
|
|
72
72
|
declare const __VLS_base: DefineComponent<__VLS_PublicProps, {
|
|
73
73
|
/** Move the focus to the message field */
|
|
@@ -14,6 +14,11 @@ type __VLS_Props = {
|
|
|
14
14
|
file: File | Promise<File>;
|
|
15
15
|
/** The tool picked on opening, crop if none. */
|
|
16
16
|
initialTool?: EditorTool;
|
|
17
|
+
/**
|
|
18
|
+
* The image is in no message nor in the composer yet, such as a
|
|
19
|
+
* screenshot just taken: "Use" gives it back even unchanged.
|
|
20
|
+
*/
|
|
21
|
+
keepUnchanged?: boolean;
|
|
17
22
|
};
|
|
18
23
|
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
19
24
|
close: () => any;
|
|
@@ -11,6 +11,11 @@ type __VLS_Props = {
|
|
|
11
11
|
* that follows the bottom of a text too long to parse whole.
|
|
12
12
|
*/
|
|
13
13
|
tailLength?: number;
|
|
14
|
+
/**
|
|
15
|
+
* A "Copy table" button under each table, once the text is whole
|
|
16
|
+
* (`richCopy.ts`): the chat's `copy` message action.
|
|
17
|
+
*/
|
|
18
|
+
copyTables?: boolean;
|
|
14
19
|
};
|
|
15
20
|
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
21
|
isDark: boolean;
|
|
@@ -19,6 +24,7 @@ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, Compone
|
|
|
19
24
|
animation: StreamingAnimation;
|
|
20
25
|
animationDuration: string;
|
|
21
26
|
tailLength: number;
|
|
27
|
+
copyTables: boolean;
|
|
22
28
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
23
29
|
declare const _default: typeof __VLS_export;
|
|
24
30
|
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copy of an answer or a table that keeps its formatting where it is pasted:
|
|
3
|
+
* HTML for Outlook, Word and Excel, plain text for everything else.
|
|
4
|
+
*
|
|
5
|
+
* The HTML is built from what the chat drew, not from the markdown again: the
|
|
6
|
+
* links are already expanded from their short form there, and the formulas
|
|
7
|
+
* rendered. It is then cleaned of what only means something on our page
|
|
8
|
+
* (classes, roles, data attributes, buttons) and given inline styles, because
|
|
9
|
+
* a mail client or Word reads no stylesheet: a table without them pastes with
|
|
10
|
+
* no borders, and text without a font pastes in Times New Roman.
|
|
11
|
+
*
|
|
12
|
+
* Spec `chat-copy-paste-screenshot.md`.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* The HTML a destination keeps the formatting of, for the given drawn
|
|
16
|
+
* elements in order (the text blocks of an answer, or one table).
|
|
17
|
+
*/
|
|
18
|
+
export declare function toClipboardHtml(elements: Element[]): string;
|
|
19
|
+
/** A table as tab-separated rows: Excel and Sheets paste it into cells. */
|
|
20
|
+
export declare function tableToTsv(drawn: HTMLTableElement): string;
|
|
21
|
+
/**
|
|
22
|
+
* Writes both flavors to the clipboard. Called straight from the click, with
|
|
23
|
+
* nothing awaited before the write: Safari accepts the write only while the
|
|
24
|
+
* click is still the gesture. Where `ClipboardItem` is missing or the write
|
|
25
|
+
* is refused, falls back to the `copy` event, which carries both flavors as
|
|
26
|
+
* well and works outside a secure context.
|
|
27
|
+
*
|
|
28
|
+
* @returns whether anything reached the clipboard
|
|
29
|
+
*/
|
|
30
|
+
export declare function copyRich({ html, text, }: {
|
|
31
|
+
html: string;
|
|
32
|
+
text: string;
|
|
33
|
+
}): Promise<boolean>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One picture of a window or a screen the user picks, for the chat to attach
|
|
3
|
+
* (spec `chat-copy-paste-screenshot.md`). The sharing the browser opens to
|
|
4
|
+
* take it ends as soon as the frame is drawn: the browser's "sharing" bar
|
|
5
|
+
* comes and goes, and the frame stays in the page until the user sends it.
|
|
6
|
+
*/
|
|
7
|
+
export type ScreenshotResult = {
|
|
8
|
+
status: 'taken';
|
|
9
|
+
file: File;
|
|
10
|
+
} | {
|
|
11
|
+
status: 'cancelled' | 'failed';
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Whether this page can offer a screenshot: the API exists and the page's
|
|
15
|
+
* Permissions Policy does not forbid it (an embedding frame without
|
|
16
|
+
* `display-capture`). A phone or a tablet has no screen to share, but the
|
|
17
|
+
* caller judges that, from the pointer.
|
|
18
|
+
*/
|
|
19
|
+
export declare function canTakeScreenshot(): boolean;
|
|
20
|
+
/** The size a frame is sent at: within the limits above, never scaled up. */
|
|
21
|
+
export declare const screenshotSize: (width: number, height: number) => {
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* The types a screenshot is written in, by preference: JPEG, as legible as
|
|
27
|
+
* WebP at this size and encoded ten times faster, then WebP, then PNG.
|
|
28
|
+
*/
|
|
29
|
+
export declare const SCREENSHOT_TYPES: string[];
|
|
30
|
+
/**
|
|
31
|
+
* Asks the browser for a window or a screen and takes one picture of it.
|
|
32
|
+
* Call it from the click: `getDisplayMedia` needs the user's gesture, and is
|
|
33
|
+
* reached before any await.
|
|
34
|
+
*
|
|
35
|
+
* @param allowedTypes - the image types the agent accepts as uploads
|
|
36
|
+
* @param name - the file name without extension, such as "Screenshot"
|
|
37
|
+
*/
|
|
38
|
+
export declare function takeScreenshot(allowedTypes: readonly string[], name: string): Promise<ScreenshotResult>;
|
|
@@ -339,7 +339,7 @@ export declare enum ChatChannel {
|
|
|
339
339
|
Endpoint = "endpoint"
|
|
340
340
|
}
|
|
341
341
|
export declare const ChatChannelSchema: z.ZodEnum<typeof ChatChannel>;
|
|
342
|
-
export type ChatMessageActions = 'show-info' | 'revise' | 'regenerate' | 'upvote' | 'downvote' | 'feedback';
|
|
342
|
+
export type ChatMessageActions = 'show-info' | 'revise' | 'regenerate' | 'upvote' | 'downvote' | 'feedback' | 'copy';
|
|
343
343
|
export type Chat = z.infer<typeof ChatSchema>;
|
|
344
344
|
export type ChatsQuerystring = z.infer<typeof ChatsQuerystringSchema>;
|
|
345
345
|
export type UIChatMessageDeviceContext = DeviceContext;
|