@8wave/ai-elements 0.110.0 → 0.111.0-beta.3

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 (74) hide show
  1. package/README.md +1 -0
  2. package/dist/_chunks/{PkToolRequestGeolocation-CEVpl50q.js → PkToolRequestGeolocation-OokLeTf1.js} +2 -2
  3. package/dist/_chunks/PkToolRequestGeolocation-OokLeTf1.js.map +1 -0
  4. package/dist/_chunks/{PkToolRequestOAuthConnection-CncDU-Kl.js → PkToolRequestOAuthConnection-CtqKG6Yb.js} +2 -2
  5. package/dist/_chunks/PkToolRequestOAuthConnection-CtqKG6Yb.js.map +1 -0
  6. package/dist/_chunks/{PkToolShowDiagram-Hy9qh68O.js → PkToolShowDiagram-BdmG9gm8.js} +2 -2
  7. package/dist/_chunks/{PkToolShowDiagram-Hy9qh68O.js.map → PkToolShowDiagram-BdmG9gm8.js.map} +1 -1
  8. package/dist/_chunks/{PkToolShowSources-B69JmwbZ.js → PkToolShowSources-Dot-W0Mj.js} +2 -2
  9. package/dist/_chunks/PkToolShowSources-Dot-W0Mj.js.map +1 -0
  10. package/dist/ai-elements.es.js +18 -47
  11. package/dist/ai-elements.es.js.map +1 -1
  12. package/dist-vue/PkChatbot.js +1 -1
  13. package/dist-vue/PkChatbotFilePreview.js +1 -1
  14. package/dist-vue/PkChatbotInput.js +1 -1
  15. package/dist-vue/PkChatbotMessages.js +1 -1
  16. package/dist-vue/PkChatbotSteps.js +1 -1
  17. package/dist-vue/PkChatbotViewChat.js +1 -1
  18. package/dist-vue/PkChatbotViewConversations.js +1 -1
  19. package/dist-vue/PkChatbotViewFiles.js +1 -1
  20. package/dist-vue/PkChatbotViewProfile.js +1 -1
  21. package/dist-vue/_chunks/{PkChatbot-o7k7d-fj.js → PkChatbot-BPKSPIeC.js} +6 -6
  22. package/dist-vue/_chunks/{PkChatbot-o7k7d-fj.js.map → PkChatbot-BPKSPIeC.js.map} +1 -1
  23. package/dist-vue/_chunks/{PkChatbotFilePreview-DO1wZPPj.js → PkChatbotFilePreview-CwiVQDF2.js} +3 -3
  24. package/dist-vue/_chunks/PkChatbotFilePreview-CwiVQDF2.js.map +1 -0
  25. package/dist-vue/_chunks/{PkChatbotInput-D8x52cVm.js → PkChatbotInput-JnHaRlfk.js} +3 -3
  26. package/dist-vue/_chunks/PkChatbotInput-JnHaRlfk.js.map +1 -0
  27. package/dist-vue/_chunks/{PkChatbotMessages-BFlU046I.js → PkChatbotMessages-DAlkoMkY.js} +9 -9
  28. package/dist-vue/_chunks/PkChatbotMessages-DAlkoMkY.js.map +1 -0
  29. package/dist-vue/_chunks/{PkChatbotSteps-DtV1beDc.js → PkChatbotSteps-rommD48p.js} +3 -3
  30. package/dist-vue/_chunks/PkChatbotSteps-rommD48p.js.map +1 -0
  31. package/dist-vue/_chunks/{PkChatbotViewChat-CNH_glPI.js → PkChatbotViewChat-CEqzF1G9.js} +5 -5
  32. package/dist-vue/_chunks/{PkChatbotViewChat-CNH_glPI.js.map → PkChatbotViewChat-CEqzF1G9.js.map} +1 -1
  33. package/dist-vue/_chunks/{PkChatbotViewConversations-BENvHLZt.js → PkChatbotViewConversations-C787v5ll.js} +2 -2
  34. package/dist-vue/_chunks/{PkChatbotViewConversations-BENvHLZt.js.map → PkChatbotViewConversations-C787v5ll.js.map} +1 -1
  35. package/dist-vue/_chunks/{PkChatbotViewFiles-qmLESi1V.js → PkChatbotViewFiles-CNFLt8YO.js} +2 -2
  36. package/dist-vue/_chunks/{PkChatbotViewFiles-qmLESi1V.js.map → PkChatbotViewFiles-CNFLt8YO.js.map} +1 -1
  37. package/dist-vue/_chunks/{PkChatbotViewProfile-DzfZnitQ.js → PkChatbotViewProfile-7p0ci3qm.js} +2 -2
  38. package/dist-vue/_chunks/{PkChatbotViewProfile-DzfZnitQ.js.map → PkChatbotViewProfile-7p0ci3qm.js.map} +1 -1
  39. package/dist-vue/_chunks/{PkSvgViewer-DPpE9fiz.js → PkSvgViewer-D-0M5bqg.js} +2 -2
  40. package/dist-vue/_chunks/{PkSvgViewer-DPpE9fiz.js.map → PkSvgViewer-D-0M5bqg.js.map} +1 -1
  41. package/dist-vue/_chunks/{PkToolRequestGeolocation-D1ZPmWiB.js → PkToolRequestGeolocation-Bxqz9oSo.js} +2 -2
  42. package/dist-vue/_chunks/PkToolRequestGeolocation-Bxqz9oSo.js.map +1 -0
  43. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-CoJyKEE6.js → PkToolRequestOAuthConnection-C6rXgb0s.js} +2 -2
  44. package/dist-vue/_chunks/PkToolRequestOAuthConnection-C6rXgb0s.js.map +1 -0
  45. package/dist-vue/_chunks/{PkToolShowDiagram-DuDp5EHd.js → PkToolShowDiagram-dwCVZ1up.js} +4 -4
  46. package/dist-vue/_chunks/PkToolShowDiagram-dwCVZ1up.js.map +1 -0
  47. package/dist-vue/_chunks/{PkToolShowImageGallery-V9U3LJfF.js → PkToolShowImageGallery-DudQzBx4.js} +2 -2
  48. package/dist-vue/_chunks/{PkToolShowImageGallery-V9U3LJfF.js.map → PkToolShowImageGallery-DudQzBx4.js.map} +1 -1
  49. package/dist-vue/_chunks/{PkToolShowSources-BvWOzVkQ.js → PkToolShowSources-7Q5Iogxi.js} +2 -2
  50. package/dist-vue/_chunks/PkToolShowSources-7Q5Iogxi.js.map +1 -0
  51. package/dist-vue/_chunks/{createChatbotApiClient-CJ_5_3IT.js → createChatbotApiClient-D9f69brW.js} +5 -2
  52. package/dist-vue/_chunks/createChatbotApiClient-D9f69brW.js.map +1 -0
  53. package/dist-vue/_chunks/{useChatbotStore-CiRAuq7v.js → useChatbotStore-9Cw_oR6J.js} +2 -2
  54. package/dist-vue/_chunks/{useChatbotStore-CiRAuq7v.js.map → useChatbotStore-9Cw_oR6J.js.map} +1 -1
  55. package/dist-vue/api.js +1 -1
  56. package/dist-vue/composables.js +2 -2
  57. package/dist-vue/index.js +28 -17
  58. package/dist-vue/index.js.map +1 -1
  59. package/dist-vue/packages/components/src/table/PkTableSortable.d.ts +8 -0
  60. package/dist-vue/packages/models/src/schema/Chat.d.ts +21 -0
  61. package/dist-vue/style.css +1 -1
  62. package/package.json +1 -1
  63. package/dist/_chunks/PkToolRequestGeolocation-CEVpl50q.js.map +0 -1
  64. package/dist/_chunks/PkToolRequestOAuthConnection-CncDU-Kl.js.map +0 -1
  65. package/dist/_chunks/PkToolShowSources-B69JmwbZ.js.map +0 -1
  66. package/dist-vue/_chunks/PkChatbotFilePreview-DO1wZPPj.js.map +0 -1
  67. package/dist-vue/_chunks/PkChatbotInput-D8x52cVm.js.map +0 -1
  68. package/dist-vue/_chunks/PkChatbotMessages-BFlU046I.js.map +0 -1
  69. package/dist-vue/_chunks/PkChatbotSteps-DtV1beDc.js.map +0 -1
  70. package/dist-vue/_chunks/PkToolRequestGeolocation-D1ZPmWiB.js.map +0 -1
  71. package/dist-vue/_chunks/PkToolRequestOAuthConnection-CoJyKEE6.js.map +0 -1
  72. package/dist-vue/_chunks/PkToolShowDiagram-DuDp5EHd.js.map +0 -1
  73. package/dist-vue/_chunks/PkToolShowSources-BvWOzVkQ.js.map +0 -1
  74. package/dist-vue/_chunks/createChatbotApiClient-CJ_5_3IT.js.map +0 -1
package/dist-vue/api.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/createChatbotApiClient-CJ_5_3IT.js";
1
+ import { t as e } from "./_chunks/createChatbotApiClient-D9f69brW.js";
2
2
  export { e as createChatbotApiClient };
@@ -1,5 +1,5 @@
1
- import { t as e } from "./_chunks/createChatbotApiClient-CJ_5_3IT.js";
2
- import { n as t } from "./_chunks/useChatbotStore-CiRAuq7v.js";
1
+ import { t as e } from "./_chunks/createChatbotApiClient-D9f69brW.js";
2
+ import { n as t } from "./_chunks/useChatbotStore-9Cw_oR6J.js";
3
3
  import { t as n } from "./_chunks/src-DT8FLE4_.js";
4
4
  import { t as r } from "./_chunks/useLocalizedString-PfaKjIQY.js";
5
5
  import { y as i } from "./_chunks/utils-Coqik0XI.js";
package/dist-vue/index.js CHANGED
@@ -4,18 +4,18 @@ import { C as i, S as a, _ as o, a as s, b as c, d as l, g as u, l as d, n as f,
4
4
  import { i as _, r as v } from "./_chunks/Media-_HfFLHGD.js";
5
5
  import { C as y, P as b, S as x, T as S, _ as C, b as w, d as ee, g as te, h as ne, i as re, j as ie, m as ae, n as T, o as oe, p as se, r as ce, t as le, v as ue, w as de, x as fe } from "./_chunks/Agent-C8BsTAxk.js";
6
6
  import { r as pe, t as me } from "./_chunks/Document-CaUfI_SZ.js";
7
- import { n as he } from "./_chunks/createChatbotApiClient-CJ_5_3IT.js";
7
+ import { n as he } from "./_chunks/createChatbotApiClient-D9f69brW.js";
8
8
  import { t as ge } from "./_chunks/PkChatbotAuth-C2adgBav.js";
9
9
  import { t as _e } from "./_chunks/PkChatbotError-CBP2mf-n.js";
10
10
  import { t as ve } from "./_chunks/PkStreamingMarkdown-D8_LwZMR.js";
11
- import { a as ye, i as be, n as xe, r as Se } from "./_chunks/useChatbotStore-CiRAuq7v.js";
11
+ import { a as ye, i as be, n as xe, r as Se } from "./_chunks/useChatbotStore-9Cw_oR6J.js";
12
12
  import "./_chunks/src-DT8FLE4_.js";
13
13
  import { c as Ce, i as we, s as Te } from "./_chunks/message-RohfrdWS.js";
14
- import { i as Ee, n as De, r as Oe, t as ke } from "./_chunks/PkChatbotMessages-BFlU046I.js";
14
+ import { i as Ee, n as De, r as Oe, t as ke } from "./_chunks/PkChatbotMessages-DAlkoMkY.js";
15
15
  import { t as Ae } from "./_chunks/useSafeLocalStorage-Ce3S1Ayn.js";
16
16
  import { t as je } from "./_chunks/useDialogConfirm-KWz0ohCQ.js";
17
- import { n as Me, r as Ne, t as Pe } from "./_chunks/PkChatbotViewConversations-BENvHLZt.js";
18
- import { i as Fe, n as Ie, r as Le, t as Re } from "./_chunks/PkChatbotViewChat-CNH_glPI.js";
17
+ import { n as Me, r as Ne, t as Pe } from "./_chunks/PkChatbotViewConversations-C787v5ll.js";
18
+ import { i as Fe, n as Ie, r as Le, t as Re } from "./_chunks/PkChatbotViewChat-CEqzF1G9.js";
19
19
  import { t as ze } from "./_chunks/useImageFallback-5vQIO0pC.js";
20
20
  import { t as Be } from "./_chunks/useLocalizedString-PfaKjIQY.js";
21
21
  import { n as Ve, t as He } from "./_chunks/PkRelativeTime--1cIphlA.js";
@@ -24,20 +24,20 @@ import { $ as Ge, A as Ke, B as qe, C as Je, Ct as Ye, D as Xe, E as Ze, F as Qe
24
24
  import { n as Xt, t as Zt } from "./_chunks/dist-D6ZVcs1F.js";
25
25
  import { n as Qt, r as $t } from "./_chunks/dist-Csm5xBQw.js";
26
26
  import { t as en } from "./_chunks/PkLazyImg-CDxX9xnq.js";
27
- import { n as tn, r as nn, t as rn } from "./_chunks/PkChatbotFilePreview-DO1wZPPj.js";
28
- import { t as an } from "./_chunks/PkSvgViewer-DPpE9fiz.js";
27
+ import { n as tn, r as nn, t as rn } from "./_chunks/PkChatbotFilePreview-CwiVQDF2.js";
28
+ import { t as an } from "./_chunks/PkSvgViewer-D-0M5bqg.js";
29
29
  import { t as on } from "./_chunks/PkUrl-xUBKVJCv.js";
30
30
  import { t as sn } from "./_chunks/PkAvatar-paEJByEA.js";
31
31
  import { t as cn } from "./_chunks/PkChatbotFeedbackForm-DO1QIgmo.js";
32
32
  import { h as ln, s as un } from "./_chunks/utils-Coqik0XI.js";
33
- import { n as dn, t as fn } from "./_chunks/PkChatbotSteps-DtV1beDc.js";
33
+ import { n as dn, t as fn } from "./_chunks/PkChatbotSteps-rommD48p.js";
34
34
  import { t as pn } from "./_chunks/PkChatbotStepPayload-BH6piqOi.js";
35
35
  import { t as mn } from "./_chunks/PkChatbotStepToolDetail-BJ7xUvgi.js";
36
- import { n as hn, t as gn } from "./_chunks/PkChatbotInput-D8x52cVm.js";
36
+ import { n as hn, t as gn } from "./_chunks/PkChatbotInput-JnHaRlfk.js";
37
37
  import { t as _n } from "./_chunks/PkChatbotEmptyState-BvaeBxhx.js";
38
- import { t as vn } from "./_chunks/PkChatbotViewProfile-DzfZnitQ.js";
39
- import { t as yn } from "./_chunks/PkChatbot-o7k7d-fj.js";
40
- import { i as bn, r as xn, t as Sn } from "./_chunks/PkToolShowSources-BvWOzVkQ.js";
38
+ import { t as vn } from "./_chunks/PkChatbotViewProfile-7p0ci3qm.js";
39
+ import { t as yn } from "./_chunks/PkChatbot-BPKSPIeC.js";
40
+ import { i as bn, r as xn, t as Sn } from "./_chunks/PkToolShowSources-7Q5Iogxi.js";
41
41
  import { t as Cn } from "./_chunks/PkToolShowEmail-CavhsPvi.js";
42
42
  import { t as wn } from "./_chunks/PkToolShowMessage-DQojxDiV.js";
43
43
  import { t as Tn } from "./_chunks/PkToolShowWebPages-Bzkkn9GV.js";
@@ -47,7 +47,7 @@ import { t as On } from "./_chunks/PkToolShowCalendarEvent-BsBdsbV0.js";
47
47
  import { t as kn } from "./_chunks/PkToolShowComparison-DMSjIpCR.js";
48
48
  import { t as An } from "./_chunks/PkToolShowLocation-Bv6sLN5P.js";
49
49
  import { t as jn } from "./_chunks/PkToolShowQrCode-DEAvfLFu.js";
50
- import { t as Mn } from "./_chunks/PkToolShowImageGallery-V9U3LJfF.js";
50
+ import { t as Mn } from "./_chunks/PkToolShowImageGallery-DudQzBx4.js";
51
51
  import { t as Nn } from "./_chunks/PkToolShowSuggestedReply-DQFOVonE.js";
52
52
  import { VvAccordion as Pn, VvAccordionGroup as Fn, VvAlert as In, VvAlertGroup as Ln, VvBadge as Rn, VvButton as zn, VvButtonGroup as Bn, VvCheckbox as Vn, VvCombobox as Hn, VvDialog as Un, VvDropdown as Wn, VvDropdownAction as Gn, VvIcon as Kn, VvInputFile as qn, VvInputRange as Jn, VvInputText as Yn, VvTab as Xn, VvTooltip as Zn } from "@volverjs/ui-vue/components";
53
53
  import { Fragment as k, Teleport as Qn, Transition as $n, TransitionGroup as er, cloneVNode as tr, computed as A, createApp as nr, createBlock as j, createCommentVNode as M, createElementBlock as N, createElementVNode as P, createSlots as rr, createStaticVNode as ir, createTextVNode as F, createVNode as I, defineComponent as L, guardReactiveProps as ar, h as or, inject as R, isRef as sr, isVNode as cr, mergeModels as lr, mergeProps as ur, nextTick as dr, normalizeClass as fr, normalizeProps as pr, normalizeStyle as mr, onBeforeUnmount as hr, onMounted as gr, onUnmounted as _r, openBlock as z, provide as vr, reactive as yr, readonly as br, ref as B, renderList as xr, renderSlot as V, resolveComponent as Sr, resolveDynamicComponent as Cr, shallowRef as wr, toDisplayString as H, toRef as Tr, toRefs as Er, unref as U, useId as Dr, useModel as W, useSlots as Or, vModelSelect as kr, vModelText as Ar, watch as G, withCtx as K, withDirectives as jr, withKeys as Mr, withModifiers as Nr } from "vue";
@@ -19927,7 +19927,7 @@ var uC = { class: "flex items-center gap-xs min-w-0" }, dC = { class: "truncate"
19927
19927
  P("span", { class: fr(["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": !U(Ce)(e) && !U(we)(e) }]) }, [
19928
19928
  P("div", NT, [P("span", PT, [P("strong", FT, H(a + 1), 1), P("span", IT, "/" + H(n.value.length), 1)]), (U(Ce)(e) || U(Te)(e)) && U(ln)(e.state) ? (z(), j(u, {
19929
19929
  key: 0,
19930
- name: "line-md:loading-loop",
19930
+ name: "loading-loop",
19931
19931
  class: "w-12 h-12 ml-4"
19932
19932
  })) : (z(), j(u, {
19933
19933
  key: 1,
@@ -20198,7 +20198,7 @@ var uC = { class: "flex items-center gap-xs min-w-0" }, dC = { class: "truncate"
20198
20198
  content: o.value.error.message
20199
20199
  }, null, 8, ["title", "content"])) : M("", !0),
20200
20200
  u.value && !f.value ? (z(), N("div", pE, [P("div", mE, [I(g, {
20201
- name: "line-md:loading-loop",
20201
+ name: "loading-loop",
20202
20202
  class: "w-16 h-16"
20203
20203
  }), P("span", hE, H(U(n)("label.processing")), 1)]), r[2] ||= P("div", { class: "vv-skeleton flex flex-col gap-8" }, [P("div", { class: "vv-skeleton__item h-12 rounded" }), P("div", { class: "vv-skeleton__item h-12 rounded w-192" })], -1)])) : M("", !0),
20204
20204
  f.value ? (z(), N("div", gE, [P("div", _E, [
@@ -20209,7 +20209,7 @@ var uC = { class: "flex items-center gap-xs min-w-0" }, dC = { class: "truncate"
20209
20209
  P("span", vE, H(U(n)("label.answer")), 1),
20210
20210
  P("div", yE, [u.value ? (z(), j(g, {
20211
20211
  key: 0,
20212
- name: "line-md:loading-loop",
20212
+ name: "loading-loop",
20213
20213
  class: "w-14 h-14"
20214
20214
  })) : M("", !0), f.value.parts.length > 0 ? (z(), j(m, {
20215
20215
  key: 1,
@@ -20538,6 +20538,14 @@ var aD = { class: "pk-table-sortable" }, oD = { key: 0 }, sD = {
20538
20538
  rowClickable: {
20539
20539
  type: Boolean,
20540
20540
  default: !1
20541
+ },
20542
+ rowHover: {
20543
+ type: Boolean,
20544
+ default: !0
20545
+ },
20546
+ rowClass: {
20547
+ type: Function,
20548
+ default: void 0
20541
20549
  }
20542
20550
  },
20543
20551
  emits: [
@@ -20611,7 +20619,10 @@ var aD = { class: "pk-table-sortable" }, oD = { key: 0 }, sD = {
20611
20619
  wrapperClass: i
20612
20620
  }), () => [P("div", { class: fr(["vv-skeleton", i]) }, [...r[2] ||= [P("div", { class: "vv-skeleton__item" }, null, -1)]], 2)])]))), 128))]))), 128))], void 0, 0) : e.isError ? e.isError ? (z(), N("tr", fD, [P("td", { colspan: e.columns.length }, [V(t.$slots, "error", {}, () => [I(JE)])], 8, pD)])) : M("", !0) : (z(), N(k, { key: 1 }, [e.data?.length ? (z(!0), N(k, { key: 0 }, xr(e.data, (r, i) => (z(), N("tr", {
20613
20621
  key: i,
20614
- class: fr({ "pk-table-sortable__row--clickable": e.rowClickable }),
20622
+ class: fr([{
20623
+ "pk-table-sortable__row--clickable": e.rowClickable,
20624
+ "pk-table-sortable__row--hoverable": e.rowHover
20625
+ }, e.rowClass?.(r, i)]),
20615
20626
  onClick: (e) => g(r, i, e)
20616
20627
  }, [(z(!0), N(k, null, xr(d.value, ({ name: e, field: a, wrapperClass: o, render: s, ...c }) => (z(), N("td", {
20617
20628
  key: e,