@8wave/ai-elements 0.98.0-beta.2 → 0.98.0-beta.4

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 (23) hide show
  1. package/dist/ai-elements.es.js +391 -355
  2. package/dist/ai-elements.es.js.map +1 -1
  3. package/dist-vue/PkChatbot.js +1 -1
  4. package/dist-vue/PkChatbotViewChat.js +1 -1
  5. package/dist-vue/PkChatbotViewConversations.js +1 -1
  6. package/dist-vue/PkChatbotViewFiles.js +1 -1
  7. package/dist-vue/PkChatbotViewProfile.js +1 -1
  8. package/dist-vue/_chunks/{PkChatbot-CneS8fVC.js → PkChatbot-CxpAotKB.js} +6 -6
  9. package/dist-vue/_chunks/{PkChatbot-CneS8fVC.js.map → PkChatbot-CxpAotKB.js.map} +1 -1
  10. package/dist-vue/_chunks/{PkChatbotViewChat-C7Xv2Oer.js → PkChatbotViewChat-QzWSymIg.js} +2 -2
  11. package/dist-vue/_chunks/{PkChatbotViewChat-C7Xv2Oer.js.map → PkChatbotViewChat-QzWSymIg.js.map} +1 -1
  12. package/dist-vue/_chunks/{PkChatbotViewConversations-YbHHc8oD.js → PkChatbotViewConversations-O-wm_nu1.js} +2 -2
  13. package/dist-vue/_chunks/{PkChatbotViewConversations-YbHHc8oD.js.map → PkChatbotViewConversations-O-wm_nu1.js.map} +1 -1
  14. package/dist-vue/_chunks/{PkChatbotViewFiles-BPE0g2Jk.js → PkChatbotViewFiles-RHMwvWUS.js} +2 -2
  15. package/dist-vue/_chunks/{PkChatbotViewFiles-BPE0g2Jk.js.map → PkChatbotViewFiles-RHMwvWUS.js.map} +1 -1
  16. package/dist-vue/_chunks/{PkChatbotViewProfile-B_gWPgVY.js → PkChatbotViewProfile-Bka6CUAa.js} +2 -2
  17. package/dist-vue/_chunks/{PkChatbotViewProfile-B_gWPgVY.js.map → PkChatbotViewProfile-Bka6CUAa.js.map} +1 -1
  18. package/dist-vue/_chunks/{useChatbotStore-Cfx-qlC4.js → useChatbotStore-DeHwEN8W.js} +528 -511
  19. package/dist-vue/_chunks/{useChatbotStore-Cfx-qlC4.js.map → useChatbotStore-DeHwEN8W.js.map} +1 -1
  20. package/dist-vue/composables.js +1 -1
  21. package/dist-vue/index.js +12 -11
  22. package/dist-vue/index.js.map +1 -1
  23. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_chunks/createChatbotApiClient-Bf5DbqVH.js";
2
- import { t } from "./_chunks/useChatbotStore-Cfx-qlC4.js";
2
+ import { t } from "./_chunks/useChatbotStore-DeHwEN8W.js";
3
3
  import { t as n } from "./_chunks/src-8QXYVWIx.js";
4
4
  import { t as r } from "./_chunks/useLocalizedString-PfaKjIQY.js";
5
5
  import { d as i } from "./_chunks/utils-BMa8jwJS.js";
package/dist-vue/index.js CHANGED
@@ -7,14 +7,14 @@ import { a as h, c as g, d as _, f as v, i as y, l as b, n as x, o as ee, r as S
7
7
  import { r as w, t as ne } from "./_chunks/Document-B8gv0e2O.js";
8
8
  import { t as re } from "./_chunks/PkChatbotAuth-C_L2xWuD.js";
9
9
  import { t as ie } from "./_chunks/PkChatbotError-B2iob9cQ.js";
10
- import { i as ae, n as oe, r as se, t as ce } from "./_chunks/useChatbotStore-Cfx-qlC4.js";
10
+ import { i as ae, n as oe, r as se, t as ce } from "./_chunks/useChatbotStore-DeHwEN8W.js";
11
11
  import "./_chunks/src-8QXYVWIx.js";
12
12
  import { c as le, i as ue, s as de } from "./_chunks/message-RohfrdWS.js";
13
13
  import { n as fe, r as pe, t as me } from "./_chunks/text-CeT0hpJK.js";
14
14
  import { t as he } from "./_chunks/useSafeLocalStorage-BGbMO01p.js";
15
15
  import { t as ge } from "./_chunks/useDialogConfirm-DaoekZdk.js";
16
- import { n as _e, r as ve, t as ye } from "./_chunks/PkChatbotViewConversations-YbHHc8oD.js";
17
- import { n as be, t as xe } from "./_chunks/PkChatbotViewChat-C7Xv2Oer.js";
16
+ import { n as _e, r as ve, t as ye } from "./_chunks/PkChatbotViewConversations-O-wm_nu1.js";
17
+ import { n as be, t as xe } from "./_chunks/PkChatbotViewChat-QzWSymIg.js";
18
18
  import { t as Se } from "./_chunks/useLocalizedString-PfaKjIQY.js";
19
19
  import { n as Ce, t as we } from "./_chunks/PkRelativeTime-C9zd1ffO.js";
20
20
  import { r as Te, t as Ee } from "./_chunks/PkToolShowArtifact-CTBwt4DN.js";
@@ -34,8 +34,8 @@ import { c as At, r as jt } from "./_chunks/utils-BMa8jwJS.js";
34
34
  import { t as Mt } from "./_chunks/PkChatbotStepToolDetail-ldThv0t5.js";
35
35
  import { t as Nt } from "./_chunks/PkChatbotInput-DTazYlPd.js";
36
36
  import { t as Pt } from "./_chunks/PkChatbotEmptyState-BGOC6vxr.js";
37
- import { t as Ft } from "./_chunks/PkChatbotViewProfile-B_gWPgVY.js";
38
- import { t as It } from "./_chunks/PkChatbot-CneS8fVC.js";
37
+ import { t as Ft } from "./_chunks/PkChatbotViewProfile-Bka6CUAa.js";
38
+ import { t as It } from "./_chunks/PkChatbot-CxpAotKB.js";
39
39
  import { i as Lt, r as Rt, t as zt } from "./_chunks/PkToolShowSources-rGZz65c2.js";
40
40
  import { t as Bt } from "./_chunks/PkToolShowEmail-C591LR5N.js";
41
41
  import { t as Vt } from "./_chunks/PkToolShowMessage-CbXERPHI.js";
@@ -13879,23 +13879,24 @@ var Lv = { class: "pk-editor-markdown" }, Rv = {
13879
13879
  o.value = [e];
13880
13880
  return;
13881
13881
  }
13882
- o.value.push(e), i.force && (o.value = JSON.parse(JSON.stringify(o.value)));
13882
+ let t = i.force ? JSON.parse(JSON.stringify([...o.value, e])) : [...o.value, e];
13883
+ o.value = t;
13883
13884
  };
13884
13885
  K(o, (e) => {
13885
13886
  (e == null || e.length === 0) && !i.allowEmpty && s();
13886
13887
  }, { immediate: !0 });
13887
13888
  let { openDialogConfirm: c } = ge(), l = async (e) => {
13888
- i.confirm && !await c() || o.value.splice(e, 1);
13889
+ i.confirm && !await c() || (o.value = o.value.filter((t, n) => n !== e));
13889
13890
  }, u = async () => {
13890
13891
  i.confirm && !await c() || a("update:modelValue", []);
13891
13892
  }, d = (e) => {
13892
13893
  if (e === 0) return;
13893
- let t = o.value[e];
13894
- o.value.splice(e, 1), o.value.splice(e - 1, 0, t);
13894
+ let t = [...o.value], [n] = t.splice(e, 1);
13895
+ t.splice(e - 1, 0, n), o.value = t;
13895
13896
  }, f = (e) => {
13896
13897
  if (e === o.value.length - 1) return;
13897
- let t = o.value[e];
13898
- o.value.splice(e, 1), o.value.splice(e + 1, 0, t);
13898
+ let t = [...o.value], [n] = t.splice(e, 1);
13899
+ t.splice(e + 1, 0, n), o.value = t;
13899
13900
  };
13900
13901
  return t({
13901
13902
  addItem: s,