@eloquentai/chat-sdk 0.18.1-dev → 0.19.1-dev
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.
@@ -4,7 +4,7 @@ export declare const conversationResponseApiSchema: z.ZodObject<{
|
|
4
4
|
message_number: z.ZodNumber;
|
5
5
|
agent_id: z.ZodString;
|
6
6
|
user_id: z.ZodString;
|
7
|
-
|
7
|
+
chat_id: z.ZodString;
|
8
8
|
created_at: z.ZodString;
|
9
9
|
data: z.ZodObject<{
|
10
10
|
type: z.ZodString;
|
@@ -25,7 +25,7 @@ export declare const conversationResponseApiSchema: z.ZodObject<{
|
|
25
25
|
message_number: number;
|
26
26
|
agent_id: string;
|
27
27
|
user_id: string;
|
28
|
-
|
28
|
+
chat_id: string;
|
29
29
|
created_at: string;
|
30
30
|
}, {
|
31
31
|
data: {
|
@@ -36,7 +36,7 @@ export declare const conversationResponseApiSchema: z.ZodObject<{
|
|
36
36
|
message_number: number;
|
37
37
|
agent_id: string;
|
38
38
|
user_id: string;
|
39
|
-
|
39
|
+
chat_id: string;
|
40
40
|
created_at: string;
|
41
41
|
}>;
|
42
42
|
export type ConversationResponseApi = z.infer<typeof conversationResponseApiSchema>;
|
package/dist/index.mjs
CHANGED
@@ -15,7 +15,7 @@ import { z as se } from "zod";
|
|
15
15
|
import ld from "react-dom/client";
|
16
16
|
try {
|
17
17
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
|
18
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
18
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "6200d94e-1d4e-426a-a8f5-54fbdd38afbc", e._sentryDebugIdIdentifier = "sentry-dbid-6200d94e-1d4e-426a-a8f5-54fbdd38afbc");
|
19
19
|
} catch {
|
20
20
|
}
|
21
21
|
const U = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, st = "9.30.0", $ = globalThis;
|
@@ -10610,7 +10610,7 @@ function $_(e) {
|
|
10610
10610
|
}
|
10611
10611
|
{
|
10612
10612
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
10613
|
-
e.SENTRY_RELEASE = { id: "
|
10613
|
+
e.SENTRY_RELEASE = { id: "f817f3ed2be120c6749d0f07d3618e8549f961f1" };
|
10614
10614
|
}
|
10615
10615
|
const H_ = "development";
|
10616
10616
|
$_({
|
@@ -11620,39 +11620,45 @@ function cl({
|
|
11620
11620
|
] }, "chat-interface-sekelton");
|
11621
11621
|
}
|
11622
11622
|
function gw(e) {
|
11623
|
-
const
|
11624
|
-
isOpen:
|
11625
|
-
isMobile:
|
11626
|
-
|
11623
|
+
const t = { cleanChatButton: !0, ...e }, {
|
11624
|
+
isOpen: n = !1,
|
11625
|
+
isMobile: r,
|
11626
|
+
onCleanChat: o,
|
11627
|
+
onClose: s,
|
11628
|
+
theme: i
|
11629
|
+
} = t, c = Qo(n, 10), [a, u] = z(!1), l = al({
|
11630
|
+
isOpen: c,
|
11631
|
+
isMobile: r
|
11632
|
+
}), d = () => a ? /* @__PURE__ */ D(Ns, { className: l, children: [
|
11627
11633
|
/* @__PURE__ */ m(
|
11628
11634
|
mw,
|
11629
11635
|
{
|
11630
|
-
onCleanChat: () =>
|
11631
|
-
onClose: () =>
|
11636
|
+
onCleanChat: () => o?.(),
|
11637
|
+
onClose: () => s?.()
|
11632
11638
|
}
|
11633
11639
|
),
|
11634
11640
|
/* @__PURE__ */ m(aw, {}),
|
11635
11641
|
/* @__PURE__ */ m(fw, {})
|
11636
11642
|
] }) : /* @__PURE__ */ D(xt, { children: [
|
11637
|
-
/* @__PURE__ */ m(cl, { isOpen:
|
11638
|
-
!
|
11643
|
+
/* @__PURE__ */ m(cl, { isOpen: n, isMobile: r }),
|
11644
|
+
!a && /* @__PURE__ */ m(
|
11639
11645
|
nl,
|
11640
11646
|
{
|
11641
11647
|
className: "hidden invisible",
|
11642
|
-
onLoaded: () =>
|
11648
|
+
onLoaded: () => u(!0)
|
11643
11649
|
}
|
11644
11650
|
)
|
11645
11651
|
] });
|
11646
|
-
return /* @__PURE__ */ m(V_, { ...
|
11652
|
+
return /* @__PURE__ */ m(V_, { ...i, children: /* @__PURE__ */ m(ow, { ...t, children: /* @__PURE__ */ m(
|
11647
11653
|
"main",
|
11648
11654
|
{
|
11649
11655
|
className: A(
|
11650
11656
|
"eloquent-chat w-full h-full flex flex-col justify-end items-end",
|
11651
11657
|
{
|
11652
|
-
dark:
|
11658
|
+
dark: i?.mode === "dark"
|
11653
11659
|
}
|
11654
11660
|
),
|
11655
|
-
children:
|
11661
|
+
children: d()
|
11656
11662
|
}
|
11657
11663
|
) }) });
|
11658
11664
|
}
|
@@ -14905,7 +14911,7 @@ const L0 = se.object({
|
|
14905
14911
|
message_number: se.number(),
|
14906
14912
|
agent_id: se.string(),
|
14907
14913
|
user_id: se.string(),
|
14908
|
-
|
14914
|
+
chat_id: se.string(),
|
14909
14915
|
created_at: se.string(),
|
14910
14916
|
data: se.object({
|
14911
14917
|
type: se.string(),
|
@@ -15045,7 +15051,7 @@ function U0({
|
|
15045
15051
|
text: b.content,
|
15046
15052
|
userId: n || t,
|
15047
15053
|
deviceId: r
|
15048
|
-
})).
|
15054
|
+
})).chat_id, a({ id: x }));
|
15049
15055
|
} catch (x) {
|
15050
15056
|
throw clearTimeout(h.current), h.current = null, i(
|
15051
15057
|
(E) => E.filter((_) => Array.isArray(_) ? !0 : !_.isThinking)
|