@8wave/ai-elements 0.126.0-beta.34 → 0.126.0-beta.36
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/{PkChatbotFilePreview-B4vbUkNp.js → PkChatbotFilePreview-Cw3va5vW.js} +2 -2
- package/dist/_chunks/{PkChatbotFilePreview-B4vbUkNp.js.map → PkChatbotFilePreview-Cw3va5vW.js.map} +1 -1
- package/dist/_chunks/{PkFilePreview-C6ZZablL.js → PkFilePreview-D4TgY0T9.js} +3 -3
- package/dist/_chunks/{PkFilePreview-C6ZZablL.js.map → PkFilePreview-D4TgY0T9.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-BzBHAt8l.js → PkFilePreviewDialog-8H1GeV91.js} +2 -2
- package/dist/_chunks/{PkFilePreviewDialog-BzBHAt8l.js.map → PkFilePreviewDialog-8H1GeV91.js.map} +1 -1
- package/dist/_chunks/{PkImageEditorDialog-Dm34WFmS.js → PkImageEditorDialog-BqHjVX97.js} +2 -2
- package/dist/_chunks/{PkImageEditorDialog-Dm34WFmS.js.map → PkImageEditorDialog-BqHjVX97.js.map} +1 -1
- package/dist/_chunks/{PkSelectionActions-CYqbMEjg.js → PkSelectionActions-BxUXWFNK.js} +2 -2
- package/dist/_chunks/{PkSelectionActions-CYqbMEjg.js.map → PkSelectionActions-BxUXWFNK.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-B8rZbprU.js → PkStreamingMarkdown-14rJ_FK2.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown-B8rZbprU.js.map → PkStreamingMarkdown-14rJ_FK2.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-C0emIVfS.js → PkToolChatFile-CSBzfuyE.js} +3 -3
- package/dist/_chunks/{PkToolChatFile-C0emIVfS.js.map → PkToolChatFile-CSBzfuyE.js.map} +1 -1
- package/dist/_chunks/{PkToolShareDocument-DYr0Rq4D.js → PkToolShareDocument-Kq7SFbw5.js} +2 -2
- package/dist/_chunks/{PkToolShareDocument-DYr0Rq4D.js.map → PkToolShareDocument-Kq7SFbw5.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-B_KIIjEn.js → PkToolShowArtifact-d5tKvM01.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-B_KIIjEn.js.map → PkToolShowArtifact-d5tKvM01.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-DiHb3fRQ.js → PkToolShowContactForm-Bni1QzXV.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-DiHb3fRQ.js.map → PkToolShowContactForm-Bni1QzXV.js.map} +1 -1
- package/dist/_chunks/{PkToolShowEmail-CClEA1rp.js → PkToolShowEmail-D6Mw24jB.js} +2 -2
- package/dist/_chunks/{PkToolShowEmail-CClEA1rp.js.map → PkToolShowEmail-D6Mw24jB.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-BmUAhIQy.js → PkToolShowForm-CFXtO0j4.js} +3 -3
- package/dist/_chunks/{PkToolShowForm-BmUAhIQy.js.map → PkToolShowForm-CFXtO0j4.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-CZ394fdT.js → PkToolShowImageGallery-Ci_Kg44s.js} +7 -2
- package/dist/_chunks/PkToolShowImageGallery-Ci_Kg44s.js.map +1 -0
- package/dist/_chunks/{PkToolShowLocation-DaFjO8MV.js → PkToolShowLocation-DV0puCbD.js} +136 -135
- package/dist/_chunks/PkToolShowLocation-DV0puCbD.js.map +1 -0
- package/dist/_chunks/{PkToolShowMessage-DIDp9JCf.js → PkToolShowMessage-Bq2dbSy1.js} +2 -2
- package/dist/_chunks/{PkToolShowMessage-DIDp9JCf.js.map → PkToolShowMessage-Bq2dbSy1.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-uNvUr2s9.js → PkToolShowProductList-BWWzkWWA.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-uNvUr2s9.js.map → PkToolShowProductList-BWWzkWWA.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-Dm0L4prK.js → PkToolShowSources-Dv7hbDyy.js} +8 -8
- package/dist/_chunks/{PkToolShowSources-Dm0L4prK.js.map → PkToolShowSources-Dv7hbDyy.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-Cj2mJrs5.js → PkToolShowWebPages-XxcYBQpr.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-Cj2mJrs5.js.map → PkToolShowWebPages-XxcYBQpr.js.map} +1 -1
- package/dist/_chunks/{utils-DPGBO-HU.js → utils-DE4cAz37.js} +43 -40
- package/dist/_chunks/utils-DE4cAz37.js.map +1 -0
- package/dist/ai-elements.es.js +1270 -1250
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.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/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-CXpftmWm.js → PkChatbot-CFJmT4nN.js} +7 -6
- package/dist-vue/_chunks/PkChatbot-CFJmT4nN.js.map +1 -0
- package/dist-vue/_chunks/PkChatbotAudioTranscript-DgmuXalb.js.map +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-vA2v4FES.js → PkChatbotEmptyState-CLfzcH_t.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-vA2v4FES.js.map → PkChatbotEmptyState-CLfzcH_t.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotFilePreview-aKJBtw04.js.map +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-CIIJ1bpF.js → PkChatbotInput-C9l_1I3d.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotInput-CIIJ1bpF.js.map → PkChatbotInput-C9l_1I3d.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotMessages-_-h-egX7.js +1072 -0
- package/dist-vue/_chunks/{PkChatbotMessages-15R8RxAq.js.map → PkChatbotMessages-_-h-egX7.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-BbNSav-U.js → PkChatbotStepPayload-fyrbP7yS.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-BbNSav-U.js.map → PkChatbotStepPayload-fyrbP7yS.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-B_4pmbLe.js → PkChatbotStepToolDetail-Drhc6X-x.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-B_4pmbLe.js.map → PkChatbotStepToolDetail-Drhc6X-x.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-h4E6DH_g.js → PkChatbotSteps-DZwV7UVr.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-h4E6DH_g.js.map → PkChatbotSteps-DZwV7UVr.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-CLQ0J9_f.js → PkChatbotViewChat-Bg-Op2Oe.js} +7 -6
- package/dist-vue/_chunks/{PkChatbotViewChat-CLQ0J9_f.js.map → PkChatbotViewChat-Bg-Op2Oe.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-DFBbypGg.js → PkChatbotViewConversations--smzyxqN.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotViewConversations-DFBbypGg.js.map → PkChatbotViewConversations--smzyxqN.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-B0AZvHTr.js → PkChatbotViewProfile-Cn7IQfnQ.js} +2 -1
- package/dist-vue/_chunks/PkChatbotViewProfile-Cn7IQfnQ.js.map +1 -0
- package/dist-vue/_chunks/{PkFilePreview-Cb-1YRPN.js → PkFilePreview-DydUI1G2.js} +54 -54
- package/dist-vue/_chunks/{PkFilePreview-Cb-1YRPN.js.map → PkFilePreview-DydUI1G2.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-Bd7kEoCB.js → PkFilePreviewDialog-BuG1whsJ.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-Bd7kEoCB.js.map → PkFilePreviewDialog-BuG1whsJ.js.map} +1 -1
- package/dist-vue/_chunks/{PkImageEditorDialog-Bj4sUHXM.js → PkImageEditorDialog-_-UkV0CO.js} +2 -2
- package/dist-vue/_chunks/{PkImageEditorDialog-Bj4sUHXM.js.map → PkImageEditorDialog-_-UkV0CO.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-BcUq4ThC.js → PkStreamingMarkdown-ha0V58V9.js} +2 -2
- package/dist-vue/_chunks/{PkStreamingMarkdown-BcUq4ThC.js.map → PkStreamingMarkdown-ha0V58V9.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolChatFile-BOexrlLt.js → PkToolChatFile-OusYITiO.js} +2 -2
- package/dist-vue/_chunks/{PkToolChatFile-BOexrlLt.js.map → PkToolChatFile-OusYITiO.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-C4gHB6lH.js → PkToolShowArtifact-x57Gri2a.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-C4gHB6lH.js.map → PkToolShowArtifact-x57Gri2a.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowChart-CsPXNAb9.js → PkToolShowChart-BSnYmoJJ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowChart-CsPXNAb9.js.map → PkToolShowChart-BSnYmoJJ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-2_HBPZaa.js → PkToolShowContactForm-D0lDC69x.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-2_HBPZaa.js.map → PkToolShowContactForm-D0lDC69x.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-cCbeL6MK.js → PkToolShowDiagram-BR4fE_be.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-cCbeL6MK.js.map → PkToolShowDiagram-BR4fE_be.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowEmail-BehvoNsz.js → PkToolShowEmail-idhNR5-l.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowEmail-BehvoNsz.js.map → PkToolShowEmail-idhNR5-l.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-DjB3fji5.js → PkToolShowForm-yh0YAXcg.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowForm-DjB3fji5.js.map → PkToolShowForm-yh0YAXcg.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-C22TCUKW.js → PkToolShowImageGallery-mmUY1Yfg.js} +8 -3
- package/dist-vue/_chunks/PkToolShowImageGallery-mmUY1Yfg.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowLocation-CqqtwH_R.js → PkToolShowLocation-CyaKgQUX.js} +3 -3
- package/dist-vue/_chunks/PkToolShowLocation-CyaKgQUX.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowMessage-Cca7K7GQ.js → PkToolShowMessage-B4gztWUk.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowMessage-Cca7K7GQ.js.map → PkToolShowMessage-B4gztWUk.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-BvtmiHBf.js → PkToolShowProductList-B-ya1TDt.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowProductList-BvtmiHBf.js.map → PkToolShowProductList-B-ya1TDt.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-uKO4MQgd.js → PkToolShowSources-DYkHkVdX.js} +8 -8
- package/dist-vue/_chunks/{PkToolShowSources-uKO4MQgd.js.map → PkToolShowSources-DYkHkVdX.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-DKj5N1vo.js → PkToolShowVideo-CRg2lAY8.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-DKj5N1vo.js.map → PkToolShowVideo-CRg2lAY8.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-BNZmbCSf.js → PkToolShowWebPages-C_pWag94.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowWebPages-BNZmbCSf.js.map → PkToolShowWebPages-C_pWag94.js.map} +1 -1
- package/dist-vue/_chunks/{utils-waie4Gfn.js → utils-Df5n2cDc.js} +66 -59
- package/dist-vue/_chunks/utils-Df5n2cDc.js.map +1 -0
- package/dist-vue/composables.js +5 -5
- package/dist-vue/index.js +3960 -3954
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +4 -0
- package/dist-vue/packages/components/src/chat/utils.d.ts +9 -1
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/PkToolShowImageGallery-CZ394fdT.js.map +0 -1
- package/dist/_chunks/PkToolShowLocation-DaFjO8MV.js.map +0 -1
- package/dist/_chunks/utils-DPGBO-HU.js.map +0 -1
- package/dist-vue/_chunks/PkChatbot-CXpftmWm.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-15R8RxAq.js +0 -1068
- package/dist-vue/_chunks/PkChatbotViewProfile-B0AZvHTr.js.map +0 -1
- package/dist-vue/_chunks/PkToolShowImageGallery-C22TCUKW.js.map +0 -1
- package/dist-vue/_chunks/PkToolShowLocation-CqqtwH_R.js.map +0 -1
- package/dist-vue/_chunks/utils-waie4Gfn.js.map +0 -1
package/dist-vue/locales.js
CHANGED
|
@@ -413,6 +413,7 @@ var e = {
|
|
|
413
413
|
subject: "Subject",
|
|
414
414
|
body: "Body",
|
|
415
415
|
gallery: "Gallery ({count} image) | Gallery ({count} images)",
|
|
416
|
+
galleryImage: "Image {index} of {count}",
|
|
416
417
|
location: "Location",
|
|
417
418
|
qrCode: "QR code",
|
|
418
419
|
sources: "Sources",
|
|
@@ -523,6 +524,7 @@ var e = {
|
|
|
523
524
|
voiceSlowAgentOnCall: "A large knowledge base or connected MCP servers can take an agent several seconds to answer, and on a call those seconds are silence: the two settings below are what keeps the caller company while it works. If your calls feel slow, the answer itself gets shorter with fewer steps, a smaller retrieval limit or a faster model.",
|
|
524
525
|
voiceFillerAfterSeconds: "Says it is working. Empty: 4 seconds.",
|
|
525
526
|
voiceFillerMessage: "Empty: a line in the voice language.",
|
|
527
|
+
textColorLowContrast: "On this color the chosen text reads at {ratio}:1, under the 4.5:1 text needs to be readable by everyone. Auto picks the readable one.",
|
|
526
528
|
glowTonesOne: "One light behind the message field.",
|
|
527
529
|
glowTonesTwo: "Two lights blending behind the message field.",
|
|
528
530
|
glowTonesAuto: "Two tones if the color is black, white or gray.",
|
|
@@ -1488,6 +1490,7 @@ var e = {
|
|
|
1488
1490
|
subject: "Oggetto",
|
|
1489
1491
|
body: "Testo",
|
|
1490
1492
|
gallery: "Galleria ({count} immagine) | Galleria ({count} immagini)",
|
|
1493
|
+
galleryImage: "Immagine {index} di {count}",
|
|
1491
1494
|
location: "Posizione",
|
|
1492
1495
|
qrCode: "Codice QR",
|
|
1493
1496
|
sources: "Fonti",
|
|
@@ -1598,6 +1601,7 @@ var e = {
|
|
|
1598
1601
|
voiceSlowAgentOnCall: "Una knowledge base grande o server MCP collegati possono far metterci diversi secondi all'agente, e in chiamata quei secondi sono silenzio: le due impostazioni qui sotto sono ciò che tiene compagnia a chi chiama mentre lavora. Se le chiamate sembrano lente, la risposta si accorcia anche con meno passi, un limite di retrieval più basso o un modello più rapido.",
|
|
1599
1602
|
voiceFillerAfterSeconds: "Dice che ci lavora. Vuoto: 4 secondi.",
|
|
1600
1603
|
voiceFillerMessage: "Vuoto: frase nella lingua della voce.",
|
|
1604
|
+
textColorLowContrast: "Su questo colore il testo scelto si legge a {ratio}:1, sotto il 4,5:1 che serve perché sia leggibile da tutti. Con Auto si usa quello leggibile.",
|
|
1601
1605
|
glowTonesOne: "Una luce sola dietro il campo del messaggio.",
|
|
1602
1606
|
glowTonesTwo: "Due luci che si mescolano dietro il campo.",
|
|
1603
1607
|
glowTonesAuto: "Due toni se il colore è nero, bianco o grigio.",
|
|
@@ -139,9 +139,17 @@ export declare function resolveGlowTints(host: HTMLElement, { mainColor, tones,
|
|
|
139
139
|
}): GlowTints | null;
|
|
140
140
|
/**
|
|
141
141
|
* Resolves the contrast color based on the user's `textColor` preference.
|
|
142
|
-
* Falls back to WCAG auto-detection via `getContrast` when set to `'auto'` or
|
|
142
|
+
* Falls back to WCAG auto-detection via `getContrast` when set to `'auto'` or
|
|
143
|
+
* `undefined`, which always reaches 4.58:1, the worst case being a luminance
|
|
144
|
+
* right at the threshold. An explicit preference stands even when it reads
|
|
145
|
+
* worse: the settings panel says so (`textContrastRatio`).
|
|
143
146
|
*/
|
|
144
147
|
export declare function resolveContrastColor(textColor: 'auto' | 'white' | 'black' | undefined, mainColor: string | undefined): 'black' | 'white';
|
|
148
|
+
/**
|
|
149
|
+
* The WCAG contrast ratio of white or black text on `mainColor`, or
|
|
150
|
+
* `undefined` for a color the function cannot read.
|
|
151
|
+
*/
|
|
152
|
+
export declare function textContrastRatio(textColor: 'white' | 'black', mainColor: string | undefined): number | undefined;
|
|
145
153
|
/**
|
|
146
154
|
* The style of a chat root (PkChatbot, the widget's shell): the agent's color
|
|
147
155
|
* as the brand. Volver derives every role of the brand (graphic, readable,
|