@8wave/ai-elements 0.126.0-beta.34 → 0.126.0-beta.35

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.
Files changed (126) hide show
  1. package/dist/_chunks/{PkChatbotFilePreview-B4vbUkNp.js → PkChatbotFilePreview-Cw3va5vW.js} +2 -2
  2. package/dist/_chunks/{PkChatbotFilePreview-B4vbUkNp.js.map → PkChatbotFilePreview-Cw3va5vW.js.map} +1 -1
  3. package/dist/_chunks/{PkFilePreview-C6ZZablL.js → PkFilePreview-D4TgY0T9.js} +3 -3
  4. package/dist/_chunks/{PkFilePreview-C6ZZablL.js.map → PkFilePreview-D4TgY0T9.js.map} +1 -1
  5. package/dist/_chunks/{PkFilePreviewDialog-BzBHAt8l.js → PkFilePreviewDialog-8H1GeV91.js} +2 -2
  6. package/dist/_chunks/{PkFilePreviewDialog-BzBHAt8l.js.map → PkFilePreviewDialog-8H1GeV91.js.map} +1 -1
  7. package/dist/_chunks/{PkImageEditorDialog-Dm34WFmS.js → PkImageEditorDialog-BqHjVX97.js} +2 -2
  8. package/dist/_chunks/{PkImageEditorDialog-Dm34WFmS.js.map → PkImageEditorDialog-BqHjVX97.js.map} +1 -1
  9. package/dist/_chunks/{PkSelectionActions-CYqbMEjg.js → PkSelectionActions-BxUXWFNK.js} +2 -2
  10. package/dist/_chunks/{PkSelectionActions-CYqbMEjg.js.map → PkSelectionActions-BxUXWFNK.js.map} +1 -1
  11. package/dist/_chunks/{PkStreamingMarkdown-B8rZbprU.js → PkStreamingMarkdown-14rJ_FK2.js} +3 -3
  12. package/dist/_chunks/{PkStreamingMarkdown-B8rZbprU.js.map → PkStreamingMarkdown-14rJ_FK2.js.map} +1 -1
  13. package/dist/_chunks/{PkToolChatFile-C0emIVfS.js → PkToolChatFile-CSBzfuyE.js} +3 -3
  14. package/dist/_chunks/{PkToolChatFile-C0emIVfS.js.map → PkToolChatFile-CSBzfuyE.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShareDocument-DYr0Rq4D.js → PkToolShareDocument-Kq7SFbw5.js} +2 -2
  16. package/dist/_chunks/{PkToolShareDocument-DYr0Rq4D.js.map → PkToolShareDocument-Kq7SFbw5.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowArtifact-B_KIIjEn.js → PkToolShowArtifact-d5tKvM01.js} +2 -2
  18. package/dist/_chunks/{PkToolShowArtifact-B_KIIjEn.js.map → PkToolShowArtifact-d5tKvM01.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowContactForm-DiHb3fRQ.js → PkToolShowContactForm-Bni1QzXV.js} +2 -2
  20. package/dist/_chunks/{PkToolShowContactForm-DiHb3fRQ.js.map → PkToolShowContactForm-Bni1QzXV.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShowEmail-CClEA1rp.js → PkToolShowEmail-D6Mw24jB.js} +2 -2
  22. package/dist/_chunks/{PkToolShowEmail-CClEA1rp.js.map → PkToolShowEmail-D6Mw24jB.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowForm-BmUAhIQy.js → PkToolShowForm-CFXtO0j4.js} +3 -3
  24. package/dist/_chunks/{PkToolShowForm-BmUAhIQy.js.map → PkToolShowForm-CFXtO0j4.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowImageGallery-CZ394fdT.js → PkToolShowImageGallery-Ci_Kg44s.js} +7 -2
  26. package/dist/_chunks/PkToolShowImageGallery-Ci_Kg44s.js.map +1 -0
  27. package/dist/_chunks/{PkToolShowLocation-DaFjO8MV.js → PkToolShowLocation-DV0puCbD.js} +136 -135
  28. package/dist/_chunks/PkToolShowLocation-DV0puCbD.js.map +1 -0
  29. package/dist/_chunks/{PkToolShowMessage-DIDp9JCf.js → PkToolShowMessage-Bq2dbSy1.js} +2 -2
  30. package/dist/_chunks/{PkToolShowMessage-DIDp9JCf.js.map → PkToolShowMessage-Bq2dbSy1.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowProductList-uNvUr2s9.js → PkToolShowProductList-BWWzkWWA.js} +2 -2
  32. package/dist/_chunks/{PkToolShowProductList-uNvUr2s9.js.map → PkToolShowProductList-BWWzkWWA.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowSources-Dm0L4prK.js → PkToolShowSources-Dv7hbDyy.js} +8 -8
  34. package/dist/_chunks/{PkToolShowSources-Dm0L4prK.js.map → PkToolShowSources-Dv7hbDyy.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowWebPages-Cj2mJrs5.js → PkToolShowWebPages-XxcYBQpr.js} +2 -2
  36. package/dist/_chunks/{PkToolShowWebPages-Cj2mJrs5.js.map → PkToolShowWebPages-XxcYBQpr.js.map} +1 -1
  37. package/dist/_chunks/{utils-DPGBO-HU.js → utils-DE4cAz37.js} +43 -40
  38. package/dist/_chunks/utils-DE4cAz37.js.map +1 -0
  39. package/dist/ai-elements.es.js +1270 -1250
  40. package/dist/ai-elements.es.js.map +1 -1
  41. package/dist-vue/PkChatbot.js +1 -1
  42. package/dist-vue/PkChatbotEmptyState.js +1 -1
  43. package/dist-vue/PkChatbotInput.js +1 -1
  44. package/dist-vue/PkChatbotMessages.js +1 -1
  45. package/dist-vue/PkChatbotStepPayload.js +1 -1
  46. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  47. package/dist-vue/PkChatbotSteps.js +1 -1
  48. package/dist-vue/PkChatbotViewChat.js +1 -1
  49. package/dist-vue/PkChatbotViewConversations.js +1 -1
  50. package/dist-vue/PkChatbotViewProfile.js +1 -1
  51. package/dist-vue/_chunks/{PkChatbot-CXpftmWm.js → PkChatbot-CFJmT4nN.js} +7 -6
  52. package/dist-vue/_chunks/PkChatbot-CFJmT4nN.js.map +1 -0
  53. package/dist-vue/_chunks/PkChatbotAudioTranscript-DgmuXalb.js.map +1 -1
  54. package/dist-vue/_chunks/{PkChatbotEmptyState-vA2v4FES.js → PkChatbotEmptyState-CLfzcH_t.js} +2 -2
  55. package/dist-vue/_chunks/{PkChatbotEmptyState-vA2v4FES.js.map → PkChatbotEmptyState-CLfzcH_t.js.map} +1 -1
  56. package/dist-vue/_chunks/PkChatbotFilePreview-aKJBtw04.js.map +1 -1
  57. package/dist-vue/_chunks/{PkChatbotInput-CIIJ1bpF.js → PkChatbotInput-C9l_1I3d.js} +4 -4
  58. package/dist-vue/_chunks/{PkChatbotInput-CIIJ1bpF.js.map → PkChatbotInput-C9l_1I3d.js.map} +1 -1
  59. package/dist-vue/_chunks/PkChatbotMessages-_-h-egX7.js +1072 -0
  60. package/dist-vue/_chunks/{PkChatbotMessages-15R8RxAq.js.map → PkChatbotMessages-_-h-egX7.js.map} +1 -1
  61. package/dist-vue/_chunks/{PkChatbotStepPayload-BbNSav-U.js → PkChatbotStepPayload-fyrbP7yS.js} +2 -2
  62. package/dist-vue/_chunks/{PkChatbotStepPayload-BbNSav-U.js.map → PkChatbotStepPayload-fyrbP7yS.js.map} +1 -1
  63. package/dist-vue/_chunks/{PkChatbotStepToolDetail-B_4pmbLe.js → PkChatbotStepToolDetail-Drhc6X-x.js} +3 -3
  64. package/dist-vue/_chunks/{PkChatbotStepToolDetail-B_4pmbLe.js.map → PkChatbotStepToolDetail-Drhc6X-x.js.map} +1 -1
  65. package/dist-vue/_chunks/{PkChatbotSteps-h4E6DH_g.js → PkChatbotSteps-DZwV7UVr.js} +5 -5
  66. package/dist-vue/_chunks/{PkChatbotSteps-h4E6DH_g.js.map → PkChatbotSteps-DZwV7UVr.js.map} +1 -1
  67. package/dist-vue/_chunks/{PkChatbotViewChat-CLQ0J9_f.js → PkChatbotViewChat-Bg-Op2Oe.js} +7 -6
  68. package/dist-vue/_chunks/{PkChatbotViewChat-CLQ0J9_f.js.map → PkChatbotViewChat-Bg-Op2Oe.js.map} +1 -1
  69. package/dist-vue/_chunks/{PkChatbotViewConversations-DFBbypGg.js → PkChatbotViewConversations--smzyxqN.js} +4 -4
  70. package/dist-vue/_chunks/{PkChatbotViewConversations-DFBbypGg.js.map → PkChatbotViewConversations--smzyxqN.js.map} +1 -1
  71. package/dist-vue/_chunks/{PkChatbotViewProfile-B0AZvHTr.js → PkChatbotViewProfile-Cn7IQfnQ.js} +2 -1
  72. package/dist-vue/_chunks/PkChatbotViewProfile-Cn7IQfnQ.js.map +1 -0
  73. package/dist-vue/_chunks/{PkFilePreview-Cb-1YRPN.js → PkFilePreview-DydUI1G2.js} +54 -54
  74. package/dist-vue/_chunks/{PkFilePreview-Cb-1YRPN.js.map → PkFilePreview-DydUI1G2.js.map} +1 -1
  75. package/dist-vue/_chunks/{PkFilePreviewDialog-Bd7kEoCB.js → PkFilePreviewDialog-BuG1whsJ.js} +2 -2
  76. package/dist-vue/_chunks/{PkFilePreviewDialog-Bd7kEoCB.js.map → PkFilePreviewDialog-BuG1whsJ.js.map} +1 -1
  77. package/dist-vue/_chunks/{PkImageEditorDialog-Bj4sUHXM.js → PkImageEditorDialog-_-UkV0CO.js} +2 -2
  78. package/dist-vue/_chunks/{PkImageEditorDialog-Bj4sUHXM.js.map → PkImageEditorDialog-_-UkV0CO.js.map} +1 -1
  79. package/dist-vue/_chunks/{PkStreamingMarkdown-BcUq4ThC.js → PkStreamingMarkdown-ha0V58V9.js} +2 -2
  80. package/dist-vue/_chunks/{PkStreamingMarkdown-BcUq4ThC.js.map → PkStreamingMarkdown-ha0V58V9.js.map} +1 -1
  81. package/dist-vue/_chunks/{PkToolChatFile-BOexrlLt.js → PkToolChatFile-OusYITiO.js} +2 -2
  82. package/dist-vue/_chunks/{PkToolChatFile-BOexrlLt.js.map → PkToolChatFile-OusYITiO.js.map} +1 -1
  83. package/dist-vue/_chunks/{PkToolShowArtifact-C4gHB6lH.js → PkToolShowArtifact-x57Gri2a.js} +2 -2
  84. package/dist-vue/_chunks/{PkToolShowArtifact-C4gHB6lH.js.map → PkToolShowArtifact-x57Gri2a.js.map} +1 -1
  85. package/dist-vue/_chunks/{PkToolShowChart-CsPXNAb9.js → PkToolShowChart-BSnYmoJJ.js} +2 -2
  86. package/dist-vue/_chunks/{PkToolShowChart-CsPXNAb9.js.map → PkToolShowChart-BSnYmoJJ.js.map} +1 -1
  87. package/dist-vue/_chunks/{PkToolShowContactForm-2_HBPZaa.js → PkToolShowContactForm-D0lDC69x.js} +2 -2
  88. package/dist-vue/_chunks/{PkToolShowContactForm-2_HBPZaa.js.map → PkToolShowContactForm-D0lDC69x.js.map} +1 -1
  89. package/dist-vue/_chunks/{PkToolShowDiagram-cCbeL6MK.js → PkToolShowDiagram-BR4fE_be.js} +2 -2
  90. package/dist-vue/_chunks/{PkToolShowDiagram-cCbeL6MK.js.map → PkToolShowDiagram-BR4fE_be.js.map} +1 -1
  91. package/dist-vue/_chunks/{PkToolShowEmail-BehvoNsz.js → PkToolShowEmail-idhNR5-l.js} +2 -2
  92. package/dist-vue/_chunks/{PkToolShowEmail-BehvoNsz.js.map → PkToolShowEmail-idhNR5-l.js.map} +1 -1
  93. package/dist-vue/_chunks/{PkToolShowForm-DjB3fji5.js → PkToolShowForm-yh0YAXcg.js} +3 -3
  94. package/dist-vue/_chunks/{PkToolShowForm-DjB3fji5.js.map → PkToolShowForm-yh0YAXcg.js.map} +1 -1
  95. package/dist-vue/_chunks/{PkToolShowImageGallery-C22TCUKW.js → PkToolShowImageGallery-mmUY1Yfg.js} +8 -3
  96. package/dist-vue/_chunks/PkToolShowImageGallery-mmUY1Yfg.js.map +1 -0
  97. package/dist-vue/_chunks/{PkToolShowLocation-CqqtwH_R.js → PkToolShowLocation-CyaKgQUX.js} +3 -3
  98. package/dist-vue/_chunks/PkToolShowLocation-CyaKgQUX.js.map +1 -0
  99. package/dist-vue/_chunks/{PkToolShowMessage-Cca7K7GQ.js → PkToolShowMessage-B4gztWUk.js} +2 -2
  100. package/dist-vue/_chunks/{PkToolShowMessage-Cca7K7GQ.js.map → PkToolShowMessage-B4gztWUk.js.map} +1 -1
  101. package/dist-vue/_chunks/{PkToolShowProductList-BvtmiHBf.js → PkToolShowProductList-B-ya1TDt.js} +3 -3
  102. package/dist-vue/_chunks/{PkToolShowProductList-BvtmiHBf.js.map → PkToolShowProductList-B-ya1TDt.js.map} +1 -1
  103. package/dist-vue/_chunks/{PkToolShowSources-uKO4MQgd.js → PkToolShowSources-DYkHkVdX.js} +8 -8
  104. package/dist-vue/_chunks/{PkToolShowSources-uKO4MQgd.js.map → PkToolShowSources-DYkHkVdX.js.map} +1 -1
  105. package/dist-vue/_chunks/{PkToolShowVideo-DKj5N1vo.js → PkToolShowVideo-CRg2lAY8.js} +2 -2
  106. package/dist-vue/_chunks/{PkToolShowVideo-DKj5N1vo.js.map → PkToolShowVideo-CRg2lAY8.js.map} +1 -1
  107. package/dist-vue/_chunks/{PkToolShowWebPages-BNZmbCSf.js → PkToolShowWebPages-C_pWag94.js} +3 -3
  108. package/dist-vue/_chunks/{PkToolShowWebPages-BNZmbCSf.js.map → PkToolShowWebPages-C_pWag94.js.map} +1 -1
  109. package/dist-vue/_chunks/{utils-waie4Gfn.js → utils-Df5n2cDc.js} +66 -59
  110. package/dist-vue/_chunks/utils-Df5n2cDc.js.map +1 -0
  111. package/dist-vue/composables.js +5 -5
  112. package/dist-vue/index.js +3960 -3954
  113. package/dist-vue/index.js.map +1 -1
  114. package/dist-vue/locales.js +4 -0
  115. package/dist-vue/packages/components/src/chat/utils.d.ts +9 -1
  116. package/dist-vue/style.css +1 -1
  117. package/package.json +1 -1
  118. package/dist/_chunks/PkToolShowImageGallery-CZ394fdT.js.map +0 -1
  119. package/dist/_chunks/PkToolShowLocation-DaFjO8MV.js.map +0 -1
  120. package/dist/_chunks/utils-DPGBO-HU.js.map +0 -1
  121. package/dist-vue/_chunks/PkChatbot-CXpftmWm.js.map +0 -1
  122. package/dist-vue/_chunks/PkChatbotMessages-15R8RxAq.js +0 -1068
  123. package/dist-vue/_chunks/PkChatbotViewProfile-B0AZvHTr.js.map +0 -1
  124. package/dist-vue/_chunks/PkToolShowImageGallery-C22TCUKW.js.map +0 -1
  125. package/dist-vue/_chunks/PkToolShowLocation-CqqtwH_R.js.map +0 -1
  126. package/dist-vue/_chunks/utils-waie4Gfn.js.map +0 -1
@@ -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 `undefined`.
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,