@8wave/ai-elements 0.118.0 → 0.119.0-beta.1

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 (79) hide show
  1. package/dist/_chunks/{PkStreamingMarkdown--CcBvs19.js → PkStreamingMarkdown-kpEBZA4d.js} +789 -780
  2. package/dist/_chunks/PkStreamingMarkdown-kpEBZA4d.js.map +1 -0
  3. package/dist/_chunks/{PkToolShowArtifact-BVGN7hV2.js → PkToolShowArtifact-B8TOTS6A.js} +2 -2
  4. package/dist/_chunks/{PkToolShowArtifact-BVGN7hV2.js.map → PkToolShowArtifact-B8TOTS6A.js.map} +1 -1
  5. package/dist/_chunks/{PkToolShowContactForm-Blrwqpl0.js → PkToolShowContactForm-B89p05XM.js} +2 -2
  6. package/dist/_chunks/{PkToolShowContactForm-Blrwqpl0.js.map → PkToolShowContactForm-B89p05XM.js.map} +1 -1
  7. package/dist/_chunks/{PkToolShowForm-BpGHaN6x.js → PkToolShowForm-DTKQtFij.js} +4 -4
  8. package/dist/_chunks/{PkToolShowForm-BpGHaN6x.js.map → PkToolShowForm-DTKQtFij.js.map} +1 -1
  9. package/dist/_chunks/{PkToolShowSources-8c9RvGV1.js → PkToolShowSources-CbwixpOb.js} +2 -2
  10. package/dist/_chunks/{PkToolShowSources-8c9RvGV1.js.map → PkToolShowSources-CbwixpOb.js.map} +1 -1
  11. package/dist/ai-elements.es.js +1888 -1863
  12. package/dist/ai-elements.es.js.map +1 -1
  13. package/dist-vue/PkChatbot.js +1 -1
  14. package/dist-vue/PkChatbotEmptyState.js +1 -1
  15. package/dist-vue/PkChatbotInput.js +1 -1
  16. package/dist-vue/PkChatbotMessages.js +1 -1
  17. package/dist-vue/PkChatbotStepPayload.js +1 -1
  18. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  19. package/dist-vue/PkChatbotSteps.js +1 -1
  20. package/dist-vue/PkChatbotViewChat.js +1 -1
  21. package/dist-vue/PkChatbotViewProfile.js +1 -1
  22. package/dist-vue/_chunks/PkAvatar-BTqu8tn9.js +44 -0
  23. package/dist-vue/_chunks/PkAvatar-BTqu8tn9.js.map +1 -0
  24. package/dist-vue/_chunks/PkChatbot-C_OzxC0s.js +276 -0
  25. package/dist-vue/_chunks/PkChatbot-C_OzxC0s.js.map +1 -0
  26. package/dist-vue/_chunks/{PkChatbotEmptyState-D2dhInfG.js → PkChatbotEmptyState-BEQCnqui.js} +3 -3
  27. package/dist-vue/_chunks/{PkChatbotEmptyState-D2dhInfG.js.map → PkChatbotEmptyState-BEQCnqui.js.map} +1 -1
  28. package/dist-vue/_chunks/{PkChatbotInput-CQdxFbBR.js → PkChatbotInput-KJxWrDIT.js} +2 -2
  29. package/dist-vue/_chunks/{PkChatbotInput-CQdxFbBR.js.map → PkChatbotInput-KJxWrDIT.js.map} +1 -1
  30. package/dist-vue/_chunks/{PkChatbotMessages-coscJcpy.js → PkChatbotMessages-Zhuxom46.js} +283 -283
  31. package/dist-vue/_chunks/{PkChatbotMessages-coscJcpy.js.map → PkChatbotMessages-Zhuxom46.js.map} +1 -1
  32. package/dist-vue/_chunks/{PkChatbotStepPayload-DnqFluQZ.js → PkChatbotStepPayload-Da4N5CKa.js} +2 -2
  33. package/dist-vue/_chunks/{PkChatbotStepPayload-DnqFluQZ.js.map → PkChatbotStepPayload-Da4N5CKa.js.map} +1 -1
  34. package/dist-vue/_chunks/{PkChatbotStepToolDetail-BMslY_BG.js → PkChatbotStepToolDetail-rrtImvq5.js} +3 -3
  35. package/dist-vue/_chunks/{PkChatbotStepToolDetail-BMslY_BG.js.map → PkChatbotStepToolDetail-rrtImvq5.js.map} +1 -1
  36. package/dist-vue/_chunks/{PkChatbotSteps-7FT6Ju6_.js → PkChatbotSteps-LEfOolAc.js} +38 -38
  37. package/dist-vue/_chunks/{PkChatbotSteps-7FT6Ju6_.js.map → PkChatbotSteps-LEfOolAc.js.map} +1 -1
  38. package/dist-vue/_chunks/{PkChatbotViewChat-Cko-Cw6c.js → PkChatbotViewChat-BJ0YHCvA.js} +7 -7
  39. package/dist-vue/_chunks/PkChatbotViewChat-BJ0YHCvA.js.map +1 -0
  40. package/dist-vue/_chunks/{PkChatbotViewProfile-B57VRVaO.js → PkChatbotViewProfile-CyzRxE3D.js} +2 -2
  41. package/dist-vue/_chunks/{PkChatbotViewProfile-B57VRVaO.js.map → PkChatbotViewProfile-CyzRxE3D.js.map} +1 -1
  42. package/dist-vue/_chunks/{PkStreamingMarkdown-BtyWXY2k.js → PkStreamingMarkdown-BWEvuFZm.js} +2 -2
  43. package/dist-vue/_chunks/{PkStreamingMarkdown-BtyWXY2k.js.map → PkStreamingMarkdown-BWEvuFZm.js.map} +1 -1
  44. package/dist-vue/_chunks/{PkToolShowArtifact-Ritx54_X.js → PkToolShowArtifact-tNEG6-r_.js} +2 -2
  45. package/dist-vue/_chunks/{PkToolShowArtifact-Ritx54_X.js.map → PkToolShowArtifact-tNEG6-r_.js.map} +1 -1
  46. package/dist-vue/_chunks/{PkToolShowContactForm-D30IsZGy.js → PkToolShowContactForm-DBC6f9gR.js} +2 -2
  47. package/dist-vue/_chunks/{PkToolShowContactForm-D30IsZGy.js.map → PkToolShowContactForm-DBC6f9gR.js.map} +1 -1
  48. package/dist-vue/_chunks/{PkToolShowDiagram-PEozSAqU.js → PkToolShowDiagram-Bbq0ETt1.js} +2 -2
  49. package/dist-vue/_chunks/{PkToolShowDiagram-PEozSAqU.js.map → PkToolShowDiagram-Bbq0ETt1.js.map} +1 -1
  50. package/dist-vue/_chunks/{PkToolShowForm-ZmdM9J9x.js → PkToolShowForm-BG-8aTHy.js} +5 -5
  51. package/dist-vue/_chunks/{PkToolShowForm-ZmdM9J9x.js.map → PkToolShowForm-BG-8aTHy.js.map} +1 -1
  52. package/dist-vue/_chunks/{PkToolShowImageGallery-Dkjf7Tw_.js → PkToolShowImageGallery-DXn-bxHv.js} +2 -2
  53. package/dist-vue/_chunks/{PkToolShowImageGallery-Dkjf7Tw_.js.map → PkToolShowImageGallery-DXn-bxHv.js.map} +1 -1
  54. package/dist-vue/_chunks/{PkToolShowProductList-CsHYM8vl.js → PkToolShowProductList-BZ_fDRCq.js} +2 -2
  55. package/dist-vue/_chunks/{PkToolShowProductList-CsHYM8vl.js.map → PkToolShowProductList-BZ_fDRCq.js.map} +1 -1
  56. package/dist-vue/_chunks/{PkToolShowSources-CKZkcPLA.js → PkToolShowSources-CUURb0PG.js} +2 -2
  57. package/dist-vue/_chunks/{PkToolShowSources-CKZkcPLA.js.map → PkToolShowSources-CUURb0PG.js.map} +1 -1
  58. package/dist-vue/_chunks/{PkToolShowVideo-CKm1fVQs.js → PkToolShowVideo-FNlPjswi.js} +2 -2
  59. package/dist-vue/_chunks/{PkToolShowVideo-CKm1fVQs.js.map → PkToolShowVideo-FNlPjswi.js.map} +1 -1
  60. package/dist-vue/_chunks/{PkToolShowWebPages-DLEC9cuh.js → PkToolShowWebPages-CWV79tsb.js} +2 -2
  61. package/dist-vue/_chunks/{PkToolShowWebPages-DLEC9cuh.js.map → PkToolShowWebPages-CWV79tsb.js.map} +1 -1
  62. package/dist-vue/_chunks/{utils-fxHiCnzf.js → utils-Dk2jFXR_.js} +40 -31
  63. package/dist-vue/_chunks/utils-Dk2jFXR_.js.map +1 -0
  64. package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +1 -4
  65. package/dist-vue/composables.js +132 -113
  66. package/dist-vue/composables.js.map +1 -1
  67. package/dist-vue/index.js +23 -23
  68. package/dist-vue/index.js.map +1 -1
  69. package/dist-vue/packages/components/src/chat/PkAvatar.d.ts +7 -0
  70. package/dist-vue/packages/components/src/chat/utils.d.ts +10 -0
  71. package/dist-vue/style.css +1 -1
  72. package/package.json +1 -1
  73. package/dist/_chunks/PkStreamingMarkdown--CcBvs19.js.map +0 -1
  74. package/dist-vue/_chunks/PkAvatar-ZgCsoO-p.js +0 -42
  75. package/dist-vue/_chunks/PkAvatar-ZgCsoO-p.js.map +0 -1
  76. package/dist-vue/_chunks/PkChatbot-Cm45hwYw.js +0 -275
  77. package/dist-vue/_chunks/PkChatbot-Cm45hwYw.js.map +0 -1
  78. package/dist-vue/_chunks/PkChatbotViewChat-Cko-Cw6c.js.map +0 -1
  79. package/dist-vue/_chunks/utils-fxHiCnzf.js.map +0 -1
package/dist-vue/index.js CHANGED
@@ -1,54 +1,54 @@
1
1
  import { t as e } from "./_chunks/rolldown-runtime-Dy4uBu1J.js";
2
- import { i as t, r as n, t as r } from "./_chunks/PkToolShowForm-ZmdM9J9x.js";
2
+ import { i as t, r as n, t as r } from "./_chunks/PkToolShowForm-BG-8aTHy.js";
3
3
  import { E as i, S as a, T as o, _ as s, f as c, m as l, o as u, r as d, s as f, u as p, v as m, w as h, x as g, y as _ } from "./_chunks/schemas-Bu1lick6.js";
4
- import { i as v, n as y, r as ee, t as b } from "./_chunks/PkChatbotMessages-coscJcpy.js";
4
+ import { i as v, n as y, r as ee, t as b } from "./_chunks/PkChatbotMessages-Zhuxom46.js";
5
5
  import { i as x, n as S, o as C, r as te } from "./_chunks/Media-C6RS-s98.js";
6
6
  import { B as ne, D as re, E as ie, F as ae, I as oe, L as se, O as ce, P as le, R as ue, T as de, V as fe, W as pe, _ as me, b as he, d as ge, g as _e, i as ve, k as ye, m as be, n as w, o as xe, p as Se, r as Ce, t as we, u as Te, v as Ee, w as De, y as Oe, z as ke } from "./_chunks/Agent-dGF8mkG9.js";
7
7
  import { c as Ae, d as je, l as Me, r as Ne, s as Pe, t as Fe, u as Ie } from "./_chunks/Document-B-oyVh7v.js";
8
8
  import { a as Le, i as Re, n as ze } from "./_chunks/createChatbotApiClient-DSLxswr4.js";
9
9
  import { t as Be } from "./_chunks/PkChatbotAuth-BMLLTSwK.js";
10
- import { n as Ve, t as He } from "./_chunks/PkStreamingMarkdown-BtyWXY2k.js";
10
+ import { n as Ve, t as He } from "./_chunks/PkStreamingMarkdown-BWEvuFZm.js";
11
11
  import { a as Ue, i as We, n as Ge, r as Ke } from "./_chunks/useChatbotStore-rtl-oKqU.js";
12
12
  import "./_chunks/src-DCfvejyT.js";
13
13
  import { a as qe, c as Je, l as Ye } from "./_chunks/message-BOiF6Bt5.js";
14
14
  import { t as Xe } from "./_chunks/useSafeLocalStorage-OwzVTZud.js";
15
15
  import { t as Ze } from "./_chunks/useDialogConfirm-BxhvsnRr.js";
16
16
  import { n as Qe, r as $e, t as et } from "./_chunks/PkChatbotViewConversations-DHeFtAfN.js";
17
- import { i as tt, n as nt, r as rt, t as it } from "./_chunks/PkChatbotViewChat-Cko-Cw6c.js";
17
+ import { i as tt, n as nt, r as rt, t as it } from "./_chunks/PkChatbotViewChat-BJ0YHCvA.js";
18
18
  import { t as at } from "./_chunks/PkChatbotError-CRGbK09-.js";
19
19
  import { t as ot } from "./_chunks/useImageFallback-5vQIO0pC.js";
20
20
  import { t as st } from "./_chunks/useLocalizedString-PfaKjIQY.js";
21
21
  import { n as ct, t as lt } from "./_chunks/PkRelativeTime--1cIphlA.js";
22
- import { r as ut, t as dt } from "./_chunks/PkToolShowArtifact-Ritx54_X.js";
22
+ import { r as ut, t as dt } from "./_chunks/PkToolShowArtifact-tNEG6-r_.js";
23
23
  import { $ as ft, A as pt, B as mt, C as ht, Ct as gt, D as _t, E as vt, F as yt, G as bt, H as xt, I as St, J as Ct, K as wt, L as Tt, M as Et, N as T, Q as Dt, S as Ot, St as kt, T as At, Tt as jt, U as Mt, V as Nt, W as Pt, X as Ft, _t as It, a as Lt, at as Rt, b as zt, bt as Bt, c as Vt, ct as Ht, d as Ut, dt as Wt, et as Gt, f as Kt, gt as qt, h as Jt, it as Yt, j as Xt, k as Zt, l as E, lt as D, mt as Qt, nt as $t, o as en, ot as tn, pt as nn, q as rn, rt as an, st as on, tt as sn, u as cn, ut as ln, vt as un, w as dn, wt as fn, x as pn, xt as mn, y as hn, yt as gn, z as _n } from "./_chunks/dist-DLs-FvuY.js";
24
24
  import { n as vn, t as yn } from "./_chunks/dist-BNG63goF.js";
25
25
  import { n as bn, r as xn } from "./_chunks/dist-DPNJlSyW.js";
26
- import { d as Sn, y as Cn } from "./_chunks/utils-fxHiCnzf.js";
26
+ import { b as Sn, f as Cn } from "./_chunks/utils-Dk2jFXR_.js";
27
27
  import { t as wn } from "./_chunks/PkLazyImg-X5BMNU_R.js";
28
28
  import { n as Tn, r as En, t as Dn } from "./_chunks/PkChatbotFilePreview-DIP8KLkS.js";
29
29
  import { t as On } from "./_chunks/PkSvgViewer-Ts3gQ1hB.js";
30
30
  import { t as kn } from "./_chunks/PkUrl-CN1kkZiH.js";
31
- import { t as An } from "./_chunks/PkAvatar-ZgCsoO-p.js";
31
+ import { t as An } from "./_chunks/PkAvatar-BTqu8tn9.js";
32
32
  import { t as jn } from "./_chunks/PkChatbotFeedbackForm-CMFXjoKR.js";
33
- import { n as Mn, t as Nn } from "./_chunks/PkChatbotSteps-7FT6Ju6_.js";
34
- import { t as Pn } from "./_chunks/PkChatbotStepPayload-DnqFluQZ.js";
35
- import { t as Fn } from "./_chunks/PkChatbotStepToolDetail-BMslY_BG.js";
36
- import { n as In, t as Ln } from "./_chunks/PkChatbotInput-CQdxFbBR.js";
37
- import { t as Rn } from "./_chunks/PkChatbotEmptyState-D2dhInfG.js";
38
- import { t as zn } from "./_chunks/PkChatbotViewProfile-B57VRVaO.js";
39
- import { t as Bn } from "./_chunks/PkChatbot-Cm45hwYw.js";
40
- import { i as Vn, r as Hn, t as Un } from "./_chunks/PkToolShowSources-CKZkcPLA.js";
33
+ import { n as Mn, t as Nn } from "./_chunks/PkChatbotSteps-LEfOolAc.js";
34
+ import { t as Pn } from "./_chunks/PkChatbotStepPayload-Da4N5CKa.js";
35
+ import { t as Fn } from "./_chunks/PkChatbotStepToolDetail-rrtImvq5.js";
36
+ import { n as In, t as Ln } from "./_chunks/PkChatbotInput-KJxWrDIT.js";
37
+ import { t as Rn } from "./_chunks/PkChatbotEmptyState-BEQCnqui.js";
38
+ import { t as zn } from "./_chunks/PkChatbotViewProfile-CyzRxE3D.js";
39
+ import { t as Bn } from "./_chunks/PkChatbot-C_OzxC0s.js";
40
+ import { i as Vn, r as Hn, t as Un } from "./_chunks/PkToolShowSources-CUURb0PG.js";
41
41
  import { t as Wn } from "./_chunks/mcpOAuthReport-BeZDTl87.js";
42
42
  import { t as Gn } from "./_chunks/PkToolShowEmail-C591LR5N.js";
43
43
  import { t as Kn } from "./_chunks/PkToolShowMessage-CbXERPHI.js";
44
- import { t as qn } from "./_chunks/PkToolShowWebPages-DLEC9cuh.js";
45
- import { t as Jn } from "./_chunks/PkToolShowProductList-CsHYM8vl.js";
46
- import { t as Yn } from "./_chunks/PkToolShowContactForm-D30IsZGy.js";
44
+ import { t as qn } from "./_chunks/PkToolShowWebPages-CWV79tsb.js";
45
+ import { t as Jn } from "./_chunks/PkToolShowProductList-BZ_fDRCq.js";
46
+ import { t as Yn } from "./_chunks/PkToolShowContactForm-DBC6f9gR.js";
47
47
  import { t as Xn } from "./_chunks/PkToolShowCalendarEvent-Dv_rss26.js";
48
48
  import { t as Zn } from "./_chunks/PkToolShowComparison-DQs3E6-k.js";
49
49
  import { t as Qn } from "./_chunks/PkToolShowLocation-Dyz6h_0n.js";
50
50
  import { t as $n } from "./_chunks/PkToolShowQrCode-DEAvfLFu.js";
51
- import { t as er } from "./_chunks/PkToolShowImageGallery-Dkjf7Tw_.js";
51
+ import { t as er } from "./_chunks/PkToolShowImageGallery-DXn-bxHv.js";
52
52
  import { t as tr } from "./_chunks/PkToolShowSuggestedReply-DjutyiEi.js";
53
53
  import { VvAccordion as nr, VvAccordionGroup as rr, VvAlert as ir, VvAlertGroup as ar, VvBadge as or, VvButton as sr, VvButtonGroup as cr, VvCheckbox as lr, VvCombobox as ur, VvDialog as dr, VvDropdown as fr, VvDropdownAction as pr, VvIcon as mr, VvInputFile as hr, VvInputRange as gr, VvInputText as _r, VvTab as vr, VvTooltip as yr } from "@volverjs/ui-vue/components";
54
54
  import { Fragment as O, Teleport as br, Transition as xr, TransitionGroup as Sr, cloneVNode as Cr, computed as k, createApp as wr, createBlock as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createSlots as Tr, createStaticVNode as Er, createTextVNode as P, createVNode as F, defineComponent as I, guardReactiveProps as Dr, h as Or, inject as L, isRef as kr, isVNode as Ar, mergeModels as jr, mergeProps as Mr, nextTick as Nr, normalizeClass as Pr, normalizeProps as Fr, normalizeStyle as Ir, onBeforeUnmount as Lr, onMounted as Rr, onUnmounted as zr, openBlock as R, provide as Br, reactive as Vr, readonly as Hr, ref as z, renderList as Ur, renderSlot as B, resolveComponent as Wr, resolveDynamicComponent as Gr, shallowRef as Kr, toDisplayString as V, toRef as qr, toRefs as Jr, unref as H, useId as Yr, useModel as U, useSlots as Xr, vModelSelect as Zr, vModelText as Qr, watch as W, withCtx as G, withDirectives as $r, withKeys as ei, withModifiers as ti } from "vue";
@@ -740,7 +740,7 @@ var Ta = Ca, Ea = { class: "flex items-center gap-4 mb-4" }, Da = { class: "font
740
740
  }
741
741
  });
742
742
  //#endregion
743
- //#region virtual:intlify-i18n-1
743
+ //#region virtual:intlify-i18n-2
744
744
  function Ia(e) {
745
745
  let t = e;
746
746
  t.__i18n = t.__i18n || [], t.__i18n.push({
@@ -847,7 +847,7 @@ var La = Fa, Ra = { class: "flex items-center gap-4 mb-4" }, za = { class: "font
847
847
  }
848
848
  });
849
849
  //#endregion
850
- //#region virtual:intlify-i18n-2
850
+ //#region virtual:intlify-i18n-1
851
851
  function Ga(e) {
852
852
  let t = e;
853
853
  t.__i18n = t.__i18n || [], t.__i18n.push({
@@ -20798,13 +20798,13 @@ var mw = { class: "flex items-center gap-xs min-w-0" }, hw = { class: "truncate"
20798
20798
  F(cD, { message: e.message }, null, 8, ["message"]),
20799
20799
  N("ol", nO, [(R(!0), M(O, null, Ur(n.value, (e, a) => (R(), M("li", { key: a }, [
20800
20800
  N("span", { class: Pr(["text-12 text-word-2 leading-none flex items-center gap-12 bg-surface-1 rounded-t border-t border-x border-surface-3 p-8", { "border-b rounded-b": !H(Ye)(e) && !H(qe)(e) }]) }, [
20801
- N("div", rO, [N("span", iO, [N("strong", aO, V(a + 1), 1), N("span", oO, "/" + V(n.value.length), 1)]), (H(Ye)(e) || H(Je)(e)) && H(Cn)(e.state) ? (R(), A(u, {
20801
+ N("div", rO, [N("span", iO, [N("strong", aO, V(a + 1), 1), N("span", oO, "/" + V(n.value.length), 1)]), (H(Ye)(e) || H(Je)(e)) && H(Sn)(e.state) ? (R(), A(u, {
20802
20802
  key: 0,
20803
20803
  name: "loading-loop",
20804
20804
  class: "w-12 h-12 ml-4"
20805
20805
  })) : (R(), A(u, {
20806
20806
  key: 1,
20807
- name: H(Sn)(e) || "ri:question-line",
20807
+ name: H(Cn)(e) || "ri:question-line",
20808
20808
  class: "w-12 h-12 ml-4"
20809
20809
  }, null, 8, ["name"]))]),
20810
20810
  N("code", sO, V(H(v)(e.type)), 1),