@inkeep/agents-ui 0.15.30 → 0.16.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.
- package/dist/color-mode/index.js +4 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +74 -73
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.3.0-canary-87ae75b3-20260128/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +9 -0
- package/dist/node_modules/.pnpm/{use-sync-external-store@1.5.0_react@19.0.0 → use-sync-external-store@1.6.0_react@19.3.0-canary-87ae75b3-20260128}/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +2 -2
- package/dist/primitives/atoms/cmdk/index.cjs +1 -1
- package/dist/primitives/atoms/cmdk/index.js +14 -2
- package/dist/primitives/atoms/combobox.d.ts +104 -0
- package/dist/primitives/atoms/markdown/index.cjs +1 -1
- package/dist/primitives/atoms/markdown/index.js +41 -39
- package/dist/primitives/atoms/portal.js +3 -3
- package/dist/primitives/atoms/select.cjs +1 -1
- package/dist/primitives/atoms/select.js +2 -2
- package/dist/primitives/atoms/shadow/context.js +4 -4
- package/dist/primitives/components/embedded-chat/chat-error-helpers.cjs +3 -0
- package/dist/primitives/components/embedded-chat/chat-error-helpers.d.ts +26 -0
- package/dist/primitives/components/embedded-chat/chat-error-helpers.js +32 -0
- package/dist/primitives/components/embedded-chat/file-upload-input.cjs +1 -1
- package/dist/primitives/components/embedded-chat/file-upload-input.d.ts +1 -1
- package/dist/primitives/components/embedded-chat/file-upload-input.js +119 -116
- package/dist/primitives/components/embedded-chat/image-preview-modal.js +3 -3
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +2 -4
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.d.ts +1 -2
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +305 -278
- package/dist/primitives/components/embedded-chat/use-stream-processor.cjs +1 -1
- package/dist/primitives/components/embedded-chat/use-stream-processor.js +1 -1
- package/dist/primitives/components/embedded-chat.cjs +3 -3
- package/dist/primitives/components/embedded-chat.d.ts +1 -2
- package/dist/primitives/components/embedded-chat.js +697 -701
- package/dist/primitives/components/embedded-search/search-provider.js +3 -3
- package/dist/primitives/components/embedded-search.cjs +1 -1
- package/dist/primitives/components/embedded-search.d.ts +1 -1
- package/dist/primitives/components/embedded-search.js +3 -3
- package/dist/primitives/components/modal/modal-provider.js +2 -2
- package/dist/primitives/components/modal.js +3 -3
- package/dist/primitives/components/sidebar-chat/index.js +1 -1
- package/dist/primitives/hooks/use-simple-scroll.cjs +1 -1
- package/dist/primitives/hooks/use-simple-scroll.d.ts +7 -0
- package/dist/primitives/hooks/use-simple-scroll.js +33 -30
- package/dist/primitives/index.cjs +1 -1
- package/dist/primitives/index.js +55 -54
- package/dist/primitives/providers/base-events-provider.cjs +1 -1
- package/dist/primitives/providers/base-events-provider.js +22 -22
- package/dist/primitives/providers/chat-bubble-provider.js +1 -1
- package/dist/primitives/providers/chat-form-provider.d.ts +1 -1
- package/dist/primitives/providers/chat-form-provider.js +4 -4
- package/dist/primitives/providers/chat-history-provider.js +3 -3
- package/dist/primitives/providers/config-provider.js +3 -3
- package/dist/primitives/providers/feedback-provider.js +3 -3
- package/dist/primitives/providers/form-field-provider.js +3 -3
- package/dist/primitives/providers/help-menu-provider.js +4 -4
- package/dist/primitives/providers/hover-popover-provider.js +3 -3
- package/dist/primitives/providers/image-preview-provider.js +5 -5
- package/dist/primitives/providers/markdown-provider.js +2 -2
- package/dist/primitives/providers/message-provider.js +1 -1
- package/dist/primitives/providers/sidebar-chat-provider.js +3 -3
- package/dist/primitives/providers/source-item-provider.js +3 -3
- package/dist/primitives/providers/widget-provider.js +2 -2
- package/dist/primitives/utils/default-settings.cjs +1 -1
- package/dist/primitives/utils/default-settings.d.ts +1 -0
- package/dist/primitives/utils/default-settings.js +6 -5
- package/dist/primitives/utils/misc.cjs +5 -1
- package/dist/primitives/utils/misc.d.ts +2 -1
- package/dist/primitives/utils/misc.js +47 -22
- package/dist/react/chat-button.js +1 -1
- package/dist/react/embedded-chat.cjs +1 -1
- package/dist/react/embedded-chat.js +6 -6
- package/dist/react/embedded-search.cjs +1 -1
- package/dist/react/embedded-search.js +18 -18
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.js +74 -73
- package/dist/styled/components/chat-bubble.js +4 -4
- package/dist/styled/components/chat-button.cjs +1 -1
- package/dist/styled/components/chat-button.js +9 -9
- package/dist/styled/components/chat-history.cjs +1 -1
- package/dist/styled/components/chat-history.js +22 -22
- package/dist/styled/components/embedded-chat/file-upload-input.cjs +1 -1
- package/dist/styled/components/embedded-chat/file-upload-input.js +71 -72
- package/dist/styled/components/embedded-chat/image-preview-modal.js +5 -5
- package/dist/styled/components/embedded-chat.cjs +1 -1
- package/dist/styled/components/embedded-chat.js +198 -198
- package/dist/styled/components/embedded-search.cjs +1 -1
- package/dist/styled/components/embedded-search.js +65 -65
- package/dist/styled/components/loading-indicator.cjs +1 -1
- package/dist/styled/components/loading-indicator.js +1 -1
- package/dist/styled/components/message.cjs +1 -1
- package/dist/styled/components/message.js +106 -108
- package/dist/styled/components/modal.js +3 -3
- package/dist/styled/components/searchbar.js +8 -8
- package/dist/styled/components/sidebar-chat.cjs +1 -1
- package/dist/styled/components/sidebar-chat.js +5 -5
- package/dist/styled/index.cjs +1 -1
- package/dist/styled/index.js +60 -59
- package/dist/styled/inkeep.css.cjs +13 -3
- package/dist/styled/inkeep.css.js +13 -3
- package/dist/theme/utils/generate-theme-variables.js +6 -6
- package/dist/types/config/ai.d.ts +7 -0
- package/package.json +1 -1
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +0 -9
- /package/dist/node_modules/.pnpm/{use-sync-external-store@1.5.0_react@19.0.0 → use-sync-external-store@1.6.0_react@19.3.0-canary-87ae75b3-20260128}/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +0 -0
- /package/dist/node_modules/.pnpm/{use-sync-external-store@1.5.0_react@19.0.0 → use-sync-external-store@1.6.0_react@19.3.0-canary-87ae75b3-20260128}/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -0
- /package/dist/node_modules/.pnpm/{use-sync-external-store@1.5.0_react@19.0.0 → use-sync-external-store@1.6.0_react@19.3.0-canary-87ae75b3-20260128}/node_modules/use-sync-external-store/shim/index.cjs +0 -0
- /package/dist/node_modules/.pnpm/{use-sync-external-store@1.5.0_react@19.0.0 → use-sync-external-store@1.6.0_react@19.3.0-canary-87ae75b3-20260128}/node_modules/use-sync-external-store/shim/index.js +0 -0
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { useBaseEvents as
|
|
4
|
-
import { useInkeepConfig as
|
|
5
|
-
import { useMessage as
|
|
6
|
-
import { EmbeddedChatPrimitiveMarkdown as
|
|
7
|
-
import { useChat as
|
|
8
|
-
import {
|
|
2
|
+
import { jsxs as o, jsx as e, Fragment as le } from "react/jsx-runtime";
|
|
3
|
+
import { useBaseEvents as de } from "../../primitives/providers/base-events-provider.js";
|
|
4
|
+
import { useInkeepConfig as pe } from "../../primitives/providers/config-provider.js";
|
|
5
|
+
import { useMessage as ce } from "../../primitives/providers/message-provider.js";
|
|
6
|
+
import { EmbeddedChatPrimitiveMarkdown as me, PrimitiveMessagePart as S } from "../../primitives/components/embedded-chat.js";
|
|
7
|
+
import { useChat as ue } from "../../primitives/components/embedded-chat/chat-provider.js";
|
|
8
|
+
import { isCitationArtifact as he } from "../../primitives/utils/misc.js";
|
|
9
|
+
import { merge as xe } from "merge-anything";
|
|
9
10
|
import { cn as y } from "../utils.js";
|
|
10
|
-
import { markdownStyles as
|
|
11
|
-
import { useStreamProcessor as
|
|
12
|
-
import { DataSummaryGroup as
|
|
13
|
-
import { useState as L,
|
|
14
|
-
import { DynamicComponent as
|
|
15
|
-
import { Hammer as
|
|
16
|
-
import { button as
|
|
17
|
-
const
|
|
11
|
+
import { markdownStyles as fe } from "./ui/markdown-styles.js";
|
|
12
|
+
import { useStreamProcessor as ge } from "../../primitives/components/embedded-chat/use-stream-processor.js";
|
|
13
|
+
import { DataSummaryGroup as ye } from "./data-summary-group.js";
|
|
14
|
+
import { useState as L, useEffect as M, useRef as A, useMemo as E, useCallback as P } from "react";
|
|
15
|
+
import { DynamicComponent as R, MessageLoading as be } from "./embedded-chat.js";
|
|
16
|
+
import { Hammer as we, ChevronDown as G, Check as K, X as ke, XCircle as Ne, TriangleAlert as ve, CheckCircle as W, Clock as Ce, Loader2 as De, Circle as Se, Library as Te, ComponentIcon as Ae } from "lucide-react";
|
|
17
|
+
import { button as X } from "./ui/recipes/button.js";
|
|
18
|
+
const Ee = {
|
|
18
19
|
"input-streaming": "Pending",
|
|
19
20
|
"input-available": "Running",
|
|
20
21
|
"approval-requested": "Awaiting Approval",
|
|
@@ -23,16 +24,16 @@ const Te = {
|
|
|
23
24
|
"output-error": "Error",
|
|
24
25
|
"output-denied": "Denied"
|
|
25
26
|
};
|
|
26
|
-
function
|
|
27
|
+
function Pe(t) {
|
|
27
28
|
if (!t || typeof t != "object") return !1;
|
|
28
29
|
const a = t;
|
|
29
30
|
return typeof a.type == "string" && a.type.startsWith("tool-");
|
|
30
31
|
}
|
|
31
|
-
const
|
|
32
|
+
const Le = (t) => {
|
|
32
33
|
if (!t || typeof t != "object" || !("status" in t)) return;
|
|
33
34
|
const a = t.status;
|
|
34
35
|
return typeof a == "string" ? a : void 0;
|
|
35
|
-
},
|
|
36
|
+
}, je = () => /* @__PURE__ */ e("div", { className: "flex space-x-1", children: [0, 1, 2].map((t) => /* @__PURE__ */ e(
|
|
36
37
|
"span",
|
|
37
38
|
{
|
|
38
39
|
className: "animate-bounce-dot opacity-30",
|
|
@@ -42,7 +43,7 @@ const Ee = (t) => {
|
|
|
42
43
|
children: "."
|
|
43
44
|
},
|
|
44
45
|
t
|
|
45
|
-
)) }),
|
|
46
|
+
)) }), H = ({ name: t, Icon: a, props: i, componentType: s }) => /* @__PURE__ */ o("div", { className: "border rounded-lg bg-gray-50 dark:bg-gray-dark-800 mb-3", children: [
|
|
46
47
|
/* @__PURE__ */ o("div", { className: "flex justify-between px-4 py-2 text-xs", children: [
|
|
47
48
|
/* @__PURE__ */ o("div", { className: "font-medium flex items-center gap-2", children: [
|
|
48
49
|
/* @__PURE__ */ e(a, { className: "w-3 h-3 text-gray-600 dark:text-white-alpha-600" }),
|
|
@@ -50,8 +51,8 @@ const Ee = (t) => {
|
|
|
50
51
|
] }),
|
|
51
52
|
/* @__PURE__ */ e("div", { className: "flex items-center px-1.5 py-0.5 rounded-md text-2xs uppercase tracking-wider bg-gray-200 dark:bg-white-alpha-200 font-medium text-gray-700 dark:text-white-alpha-700 font-mono", children: s })
|
|
52
53
|
] }),
|
|
53
|
-
/* @__PURE__ */ e("
|
|
54
|
-
] }),
|
|
54
|
+
/* @__PURE__ */ e("div", { className: "px-4 py-2", children: /* @__PURE__ */ e(Y, { value: i }) })
|
|
55
|
+
] }), Ie = ({ name: t, props: a }) => /* @__PURE__ */ e(H, { name: t, Icon: Ae, props: a, componentType: "component" }), _e = ({ name: t, props: a }) => /* @__PURE__ */ e(H, { name: t, Icon: Te, props: a, componentType: "artifact" }), $e = ({
|
|
55
56
|
tool: t,
|
|
56
57
|
componentDef: a,
|
|
57
58
|
renderText: i,
|
|
@@ -62,21 +63,21 @@ const Ee = (t) => {
|
|
|
62
63
|
sendMessage: d,
|
|
63
64
|
conversationId: f
|
|
64
65
|
}) => {
|
|
65
|
-
const l =
|
|
66
|
+
const l = A(d);
|
|
66
67
|
l.current = d;
|
|
67
|
-
const m =
|
|
68
|
+
const m = A(c);
|
|
68
69
|
m.current = c;
|
|
69
|
-
const p =
|
|
70
|
+
const p = A(n);
|
|
70
71
|
p.current = n;
|
|
71
|
-
const h =
|
|
72
|
-
async (
|
|
73
|
-
s && (p.current({ partCount: u }), m.current({ id: s, approved:
|
|
72
|
+
const h = P(
|
|
73
|
+
async (j = !0) => {
|
|
74
|
+
s && (p.current({ partCount: u }), m.current({ id: s, approved: j }), await l.current(void 0, { body: { conversationId: f } }));
|
|
74
75
|
},
|
|
75
76
|
[s, u, f]
|
|
76
|
-
), v =
|
|
77
|
-
return /* @__PURE__ */ e(a ?
|
|
77
|
+
), v = E(() => ({ tool: t, approve: h, renderMarkdown: i }), [t]);
|
|
78
|
+
return /* @__PURE__ */ e(a ? R : Me, { name: t.type, props: v, componentDef: a });
|
|
78
79
|
};
|
|
79
|
-
function
|
|
80
|
+
function J(t) {
|
|
80
81
|
return t === null ? /* @__PURE__ */ e("span", { className: "text-gray-500 dark:text-white-alpha-500 font-mono font-medium text-1xs", children: "null" }) : t === void 0 ? /* @__PURE__ */ e("span", { className: "text-gray-400 dark:text-white-alpha-400 italic text-xs font-medium", children: "undefined" }) : typeof t == "boolean" ? /* @__PURE__ */ e(
|
|
81
82
|
"span",
|
|
82
83
|
{
|
|
@@ -88,7 +89,7 @@ function H(t) {
|
|
|
88
89
|
}
|
|
89
90
|
) : typeof t == "number" ? /* @__PURE__ */ e("span", { className: "tabular-nums font-medium text-inkeep-expanded-primary-600 dark:text-inkeep-expanded-primary-200", children: t.toLocaleString() }) : typeof t == "string" ? /* @__PURE__ */ e("span", { className: "text-gray-800 dark:text-white-alpha-800 break-words", children: t }) : /* @__PURE__ */ e("span", { children: String(t) });
|
|
90
91
|
}
|
|
91
|
-
const
|
|
92
|
+
const Q = ({
|
|
92
93
|
name: t,
|
|
93
94
|
value: a,
|
|
94
95
|
isArrayIndex: i,
|
|
@@ -107,7 +108,7 @@ const J = ({
|
|
|
107
108
|
children: i ? "—" : t
|
|
108
109
|
}
|
|
109
110
|
),
|
|
110
|
-
/* @__PURE__ */ e("span", { children:
|
|
111
|
+
/* @__PURE__ */ e("span", { className: "min-w-0", children: J(a) })
|
|
111
112
|
] });
|
|
112
113
|
const l = d ? a.map((p, h) => [String(h), p]) : Object.entries(a);
|
|
113
114
|
return l.length === 0 ? /* @__PURE__ */ o("div", { className: "flex items-baseline gap-2 py-1 text-xs", children: [
|
|
@@ -124,7 +125,7 @@ const J = ({
|
|
|
124
125
|
className: "flex items-center gap-1.5 py-1 text-xs hover:bg-gray-50 dark:hover:bg-white-alpha-50 -mx-1.5 px-1.5 rounded transition-colors w-full text-left",
|
|
125
126
|
children: [
|
|
126
127
|
/* @__PURE__ */ e(
|
|
127
|
-
|
|
128
|
+
G,
|
|
128
129
|
{
|
|
129
130
|
className: y(
|
|
130
131
|
"h-3.5 w-3.5 text-gray-400 dark:text-white-alpha-400 shrink-0 transition-transform",
|
|
@@ -137,16 +138,16 @@ const J = ({
|
|
|
137
138
|
]
|
|
138
139
|
}
|
|
139
140
|
),
|
|
140
|
-
u && /* @__PURE__ */ e("div", { className: "border-l-2 border-gray-200 dark:border-white-alpha-200 ml-1.5 pl-3", children: l.map(([p, h]) => /* @__PURE__ */ e(
|
|
141
|
+
u && /* @__PURE__ */ e("div", { className: "border-l-2 border-gray-200 dark:border-white-alpha-200 ml-1.5 pl-3", children: l.map(([p, h]) => /* @__PURE__ */ e(Q, { name: p, value: h, isArrayIndex: d, depth: s + 1 }, p)) })
|
|
141
142
|
] });
|
|
142
|
-
},
|
|
143
|
+
}, Y = ({ value: t }) => {
|
|
143
144
|
if (t == null || typeof t != "object")
|
|
144
|
-
return /* @__PURE__ */ e("span", { className: "text-xs", children:
|
|
145
|
+
return /* @__PURE__ */ e("span", { className: "text-xs", children: J(t) });
|
|
145
146
|
const a = Array.isArray(t) ? t.map((i, s) => [String(s), i]) : Object.entries(t);
|
|
146
|
-
return a.length === 0 ? /* @__PURE__ */ e("div", { className: "text-xs text-gray-400 dark:text-white-alpha-400 italic", children: "No arguments" }) : /* @__PURE__ */ e("div", { className: "space-y-1", children: a.map(([i, s]) => /* @__PURE__ */ e(
|
|
147
|
-
},
|
|
148
|
-
const { tool: a, approve: i } = t, s = a.type, u = s.startsWith("tool-") ? s.slice(5) : s, n = a.state, c = a.approval?.id, d = !!c, f = n === "approval-requested", l =
|
|
149
|
-
return
|
|
147
|
+
return a.length === 0 ? /* @__PURE__ */ e("div", { className: "text-xs text-gray-400 dark:text-white-alpha-400 italic", children: "No arguments" }) : /* @__PURE__ */ e("div", { className: "space-y-1", children: a.map(([i, s]) => /* @__PURE__ */ e(Q, { name: i, value: s, isArrayIndex: Array.isArray(t) }, i)) });
|
|
148
|
+
}, Me = ({ props: t }) => {
|
|
149
|
+
const { tool: a, approve: i } = t, s = a.type, u = s.startsWith("tool-") ? s.slice(5) : s, n = a.state, c = a.approval?.id, d = !!c, f = n === "approval-requested", l = Le(a.output), [m, p] = L(d), h = n ? Ee[n] ?? n : "tool";
|
|
150
|
+
return M(() => {
|
|
150
151
|
f && p(!0);
|
|
151
152
|
}, [f]), /* @__PURE__ */ o("div", { className: "border rounded-lg mb-3 overflow-hidden", children: [
|
|
152
153
|
/* @__PURE__ */ o(
|
|
@@ -159,7 +160,7 @@ const J = ({
|
|
|
159
160
|
"data-expanded": m,
|
|
160
161
|
children: [
|
|
161
162
|
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ o("div", { className: "font-medium flex items-center gap-2", children: [
|
|
162
|
-
/* @__PURE__ */ e(
|
|
163
|
+
/* @__PURE__ */ e(we, { className: "w-3 h-3 text-gray-600 dark:text-white-alpha-600" }),
|
|
163
164
|
/* @__PURE__ */ e("span", { children: u })
|
|
164
165
|
] }) }),
|
|
165
166
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-2", children: [
|
|
@@ -167,15 +168,15 @@ const J = ({
|
|
|
167
168
|
(() => {
|
|
168
169
|
switch (n) {
|
|
169
170
|
case "input-streaming":
|
|
170
|
-
return /* @__PURE__ */ e(
|
|
171
|
+
return /* @__PURE__ */ e(Se, { className: "w-3 h-3" });
|
|
171
172
|
case "input-available":
|
|
172
|
-
return /* @__PURE__ */ e(
|
|
173
|
+
return /* @__PURE__ */ e(De, { className: "w-3 h-3 animate-spin" });
|
|
173
174
|
case "approval-requested":
|
|
174
175
|
return /* @__PURE__ */ e(Ce, { className: "w-3 h-3" });
|
|
175
176
|
case "approval-responded":
|
|
176
|
-
return /* @__PURE__ */ e(
|
|
177
|
+
return /* @__PURE__ */ e(W, { className: "w-3 h-3" });
|
|
177
178
|
case "output-available":
|
|
178
|
-
return /* @__PURE__ */ e(
|
|
179
|
+
return /* @__PURE__ */ e(W, { className: "w-3 h-3" });
|
|
179
180
|
case "output-error":
|
|
180
181
|
return /* @__PURE__ */ e(ve, { className: "w-3 h-3" });
|
|
181
182
|
case "output-denied":
|
|
@@ -186,7 +187,7 @@ const J = ({
|
|
|
186
187
|
})(),
|
|
187
188
|
h
|
|
188
189
|
] }),
|
|
189
|
-
/* @__PURE__ */ e(
|
|
190
|
+
/* @__PURE__ */ e(G, { className: "w-3.5 h-3.5 text-gray-500 dark:text-white-alpha-500 transition-all duration-200 transform rotate-0 group-data-[expanded=true]:rotate-180" })
|
|
190
191
|
] })
|
|
191
192
|
]
|
|
192
193
|
}
|
|
@@ -219,7 +220,7 @@ const J = ({
|
|
|
219
220
|
"[scrollbar-width:thin] px-4",
|
|
220
221
|
"data-[expanded=true]:max-h-48 data-[expanded=true]:overflow-y-auto"
|
|
221
222
|
),
|
|
222
|
-
children: a.input != null && /* @__PURE__ */ e("div", { className: "text-xs py-2", children: /* @__PURE__ */ e(
|
|
223
|
+
children: a.input != null && /* @__PURE__ */ e("div", { className: "text-xs py-2", children: /* @__PURE__ */ e(Y, { value: a.input }) })
|
|
223
224
|
}
|
|
224
225
|
)
|
|
225
226
|
}
|
|
@@ -230,7 +231,7 @@ const J = ({
|
|
|
230
231
|
{
|
|
231
232
|
type: "button",
|
|
232
233
|
className: y(
|
|
233
|
-
|
|
234
|
+
X({ size: "xs", variant: "outline" }),
|
|
234
235
|
"px-2 py-1 rounded-md text-xs text-gray-700 dark:text-white-alpha-700"
|
|
235
236
|
),
|
|
236
237
|
onClick: () => i(!1),
|
|
@@ -242,61 +243,56 @@ const J = ({
|
|
|
242
243
|
{
|
|
243
244
|
type: "button",
|
|
244
245
|
className: y(
|
|
245
|
-
|
|
246
|
+
X({ size: "xs", variant: "primaryFilled" }),
|
|
246
247
|
"px-2 py-1 rounded-md text-xs gap-1"
|
|
247
248
|
),
|
|
248
249
|
onClick: () => i(!0),
|
|
249
250
|
children: [
|
|
250
|
-
/* @__PURE__ */ e(
|
|
251
|
+
/* @__PURE__ */ e(K, { className: "w-3 h-3" }),
|
|
251
252
|
"Approve"
|
|
252
253
|
]
|
|
253
254
|
}
|
|
254
255
|
)
|
|
255
256
|
] }),
|
|
256
257
|
n === "output-available" && l && a.output != null && /* @__PURE__ */ o("div", { className: "flex justify-end items-center gap-1 whitespace-pre-wrap text-xs text-gray-700 dark:text-white-alpha-700 capitalize pb-3 px-4", children: [
|
|
257
|
-
l === "approved" && /* @__PURE__ */ e(
|
|
258
|
+
l === "approved" && /* @__PURE__ */ e(K, { className: "w-3 h-3" }),
|
|
258
259
|
l
|
|
259
260
|
] }),
|
|
260
261
|
n === "output-denied" && /* @__PURE__ */ o("div", { className: "flex justify-end items-center gap-1 whitespace-pre-wrap text-xs text-gray-700 dark:text-white-alpha-700 capitalize pb-3 px-4", children: [
|
|
261
|
-
/* @__PURE__ */ e(
|
|
262
|
+
/* @__PURE__ */ e(ke, { className: "w-3 h-3" }),
|
|
262
263
|
h
|
|
263
264
|
] })
|
|
264
265
|
]
|
|
265
266
|
}
|
|
266
267
|
)
|
|
267
268
|
] });
|
|
268
|
-
},
|
|
269
|
+
}, Ze = ({
|
|
269
270
|
className: t,
|
|
270
271
|
componentStyles: a,
|
|
271
272
|
children: i,
|
|
272
273
|
isLast: s,
|
|
273
274
|
...u
|
|
274
275
|
}) => {
|
|
275
|
-
const { message: n } =
|
|
276
|
-
aiChatSettings: { components: v, artifacts:
|
|
277
|
-
} =
|
|
278
|
-
|
|
276
|
+
const { message: n } = ce(), { logEvent: c } = de(), { conversationId: d, isStreaming: f, isLoading: l, setError: m, addToolApprovalResponse: p, sendMessage: h } = ue(), {
|
|
277
|
+
aiChatSettings: { components: v, artifacts: O, headers: j }
|
|
278
|
+
} = pe(), Z = j?.["x-emit-operations"] === "true", z = n.role === "user", I = (f || l) && s && n.role === "assistant", { processedParts: ee, summaryTimings: te, shouldShowInitialLoading: ae, shouldShowStreamDelayLoading: re } = ge(n.parts, I, m), [C, q] = L(null), [ne, _] = L(!1), g = A(null);
|
|
279
|
+
M(() => {
|
|
279
280
|
if (!C) {
|
|
280
|
-
|
|
281
|
+
_(!1), g.current && (clearTimeout(g.current), g.current = null);
|
|
281
282
|
return;
|
|
282
283
|
}
|
|
283
|
-
return
|
|
284
|
-
|
|
284
|
+
return _(!1), g.current && clearTimeout(g.current), g.current = window.setTimeout(() => {
|
|
285
|
+
_(!0);
|
|
285
286
|
}, 1e3), () => {
|
|
286
287
|
g.current && (clearTimeout(g.current), g.current = null);
|
|
287
288
|
};
|
|
288
|
-
}, [C]),
|
|
289
|
-
C && (!s || n.parts.length > C.partCount) &&
|
|
290
|
-
}, [C, s, n.parts.length]);
|
|
291
|
-
const
|
|
292
|
-
() =>
|
|
293
|
-
(r) => r.type === "data-artifact" && r.data?.type?.toLowerCase() === "citation"
|
|
294
|
-
),
|
|
295
|
-
[n.parts]
|
|
296
|
-
), U = A(
|
|
297
|
-
() => ue(he, a ?? {}),
|
|
289
|
+
}, [C]), M(() => {
|
|
290
|
+
C && (!s || n.parts.length > C.partCount || !I) && q(null);
|
|
291
|
+
}, [C, s, n.parts.length, I]);
|
|
292
|
+
const U = E(() => n.parts.filter(he), [n.parts]), V = E(
|
|
293
|
+
() => xe(fe, a ?? {}),
|
|
298
294
|
[a]
|
|
299
|
-
),
|
|
295
|
+
), B = P(
|
|
300
296
|
(r, x) => {
|
|
301
297
|
c({
|
|
302
298
|
eventName: "assistant_message_inline_link_opened",
|
|
@@ -307,7 +303,7 @@ const J = ({
|
|
|
307
303
|
});
|
|
308
304
|
},
|
|
309
305
|
[c]
|
|
310
|
-
),
|
|
306
|
+
), F = P(
|
|
311
307
|
(r, x) => {
|
|
312
308
|
c({
|
|
313
309
|
eventName: "assistant_code_block_copied",
|
|
@@ -319,79 +315,81 @@ const J = ({
|
|
|
319
315
|
});
|
|
320
316
|
},
|
|
321
317
|
[c, d]
|
|
322
|
-
),
|
|
318
|
+
), $ = P(
|
|
323
319
|
(r) => /* @__PURE__ */ e(
|
|
324
|
-
|
|
320
|
+
me,
|
|
325
321
|
{
|
|
326
322
|
text: r,
|
|
327
|
-
componentStyles:
|
|
328
|
-
onLinkClick:
|
|
329
|
-
onCodeCopy:
|
|
330
|
-
artifacts:
|
|
323
|
+
componentStyles: V,
|
|
324
|
+
onLinkClick: B,
|
|
325
|
+
onCodeCopy: F,
|
|
326
|
+
artifacts: U
|
|
331
327
|
}
|
|
332
328
|
),
|
|
333
|
-
[
|
|
334
|
-
),
|
|
329
|
+
[V, B, F, U]
|
|
330
|
+
), se = E(
|
|
335
331
|
() => y(
|
|
336
332
|
"data-[role=user]:whitespace-pre-wrap mb-3 data-[role=user]:mb-0 [&[data-role=user]>p]:mb-0 max-w-full",
|
|
337
333
|
t
|
|
338
334
|
),
|
|
339
335
|
[t]
|
|
340
|
-
),
|
|
336
|
+
), oe = !z || n.parts.some(
|
|
341
337
|
(r) => r.type === "text" && r.text?.trim()
|
|
342
338
|
);
|
|
343
|
-
return /* @__PURE__ */ o(
|
|
344
|
-
!
|
|
345
|
-
|
|
339
|
+
return /* @__PURE__ */ o(le, { children: [
|
|
340
|
+
!oe && /* @__PURE__ */ e("span", { className: "text-gray-500 dark:text-white-alpha-500", children: "No message content" }),
|
|
341
|
+
ee.map((r, x) => {
|
|
346
342
|
const k = {
|
|
347
343
|
"data-role": n.role,
|
|
348
344
|
"data-type": r?.type === "data-component" ? r.data.type : r?.type,
|
|
349
345
|
...u,
|
|
350
|
-
className:
|
|
346
|
+
className: se
|
|
351
347
|
};
|
|
352
348
|
switch (r?.type) {
|
|
353
349
|
case "text":
|
|
354
|
-
return /* @__PURE__ */ e(
|
|
350
|
+
return /* @__PURE__ */ e(S, { ...k, children: z ? r.text : $(r.text || "") }, x);
|
|
355
351
|
case "data-component": {
|
|
356
|
-
const { type:
|
|
357
|
-
switch (
|
|
352
|
+
const { type: w } = r.data;
|
|
353
|
+
switch (w) {
|
|
358
354
|
case "text":
|
|
359
|
-
return /* @__PURE__ */ e("div", { ...k, children:
|
|
355
|
+
return /* @__PURE__ */ e("div", { ...k, children: $(r.data.text || "") }, x);
|
|
360
356
|
default: {
|
|
361
|
-
const N = r.data, { name:
|
|
362
|
-
return /* @__PURE__ */ e(
|
|
357
|
+
const N = r.data, { name: b, props: T } = N, D = v?.[b];
|
|
358
|
+
return /* @__PURE__ */ e(S, { ...k, children: /* @__PURE__ */ e(D ? R : Ie, { name: b, props: T, componentDef: D }) }, `${b}-${x}`);
|
|
363
359
|
}
|
|
364
360
|
}
|
|
365
361
|
}
|
|
366
362
|
case "data-artifact": {
|
|
367
|
-
const
|
|
368
|
-
|
|
363
|
+
const w = r.data, { name: N, type: b, artifactSummary: T } = w;
|
|
364
|
+
if (b === "citation" && !T?.url) return null;
|
|
365
|
+
const D = O?.[b];
|
|
366
|
+
return /* @__PURE__ */ e(S, { ...k, children: /* @__PURE__ */ e(D ? R : _e, { name: b, props: T, componentDef: D }) }, `${N}-${x}`);
|
|
369
367
|
}
|
|
370
368
|
case "summary-group": {
|
|
371
|
-
const
|
|
369
|
+
const w = te.get(r.groupKey) || {
|
|
372
370
|
isCompleted: !1
|
|
373
371
|
};
|
|
374
|
-
return /* @__PURE__ */ e(
|
|
375
|
-
|
|
372
|
+
return /* @__PURE__ */ e(S, { ...k, children: /* @__PURE__ */ e(
|
|
373
|
+
ye,
|
|
376
374
|
{
|
|
377
375
|
summaries: r.summaries || [],
|
|
378
|
-
isCompleted:
|
|
376
|
+
isCompleted: w.isCompleted
|
|
379
377
|
}
|
|
380
378
|
) }, `${r.groupKey}-${x}`);
|
|
381
379
|
}
|
|
382
380
|
default: {
|
|
383
|
-
if (!
|
|
381
|
+
if (!Pe(r))
|
|
384
382
|
return null;
|
|
385
|
-
const
|
|
386
|
-
return
|
|
387
|
-
|
|
383
|
+
const w = r, N = r.approval?.id;
|
|
384
|
+
return Z || N ? /* @__PURE__ */ e(S, { ...k, children: /* @__PURE__ */ e(
|
|
385
|
+
$e,
|
|
388
386
|
{
|
|
389
|
-
tool:
|
|
387
|
+
tool: w,
|
|
390
388
|
componentDef: v?.IkpTool,
|
|
391
|
-
renderText:
|
|
389
|
+
renderText: $,
|
|
392
390
|
approvalId: N,
|
|
393
391
|
messagePartsLength: n.parts.length,
|
|
394
|
-
setApprovalDelayPending:
|
|
392
|
+
setApprovalDelayPending: q,
|
|
395
393
|
addToolApprovalResponse: p,
|
|
396
394
|
sendMessage: h,
|
|
397
395
|
conversationId: d
|
|
@@ -400,11 +398,11 @@ const J = ({
|
|
|
400
398
|
}
|
|
401
399
|
}
|
|
402
400
|
}),
|
|
403
|
-
|
|
404
|
-
(
|
|
401
|
+
ae && /* @__PURE__ */ e(be, {}),
|
|
402
|
+
(re || ne) && /* @__PURE__ */ e(je, {})
|
|
405
403
|
] });
|
|
406
404
|
};
|
|
407
405
|
export {
|
|
408
|
-
|
|
409
|
-
|
|
406
|
+
Me as DefaultToolComponent,
|
|
407
|
+
Ze as EmbeddedChatMessagePart
|
|
410
408
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
-
import { Modal as l,
|
|
3
|
+
import { Modal as l, Close as i, Content as n, Overlay as r } from "../../primitives/components/modal.js";
|
|
4
4
|
import { cn as e } from "../utils.js";
|
|
5
5
|
import { button as m } from "./ui/recipes/button.js";
|
|
6
6
|
import { modal as s } from "./ui/recipes/modal.js";
|
|
7
7
|
const M = l, C = ({
|
|
8
8
|
className: t,
|
|
9
9
|
...a
|
|
10
|
-
}) => /* @__PURE__ */ o(
|
|
10
|
+
}) => /* @__PURE__ */ o(r, { className: e(s({ slot: "overlay" }), t), ...a }), h = ({
|
|
11
11
|
className: t,
|
|
12
12
|
...a
|
|
13
13
|
}) => /* @__PURE__ */ o(
|
|
@@ -26,7 +26,7 @@ const M = l, C = ({
|
|
|
26
26
|
className: t,
|
|
27
27
|
...a
|
|
28
28
|
}) => /* @__PURE__ */ o(
|
|
29
|
-
|
|
29
|
+
i,
|
|
30
30
|
{
|
|
31
31
|
className: e(
|
|
32
32
|
s({ slot: "close" }),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { cn as t } from "../utils.js";
|
|
4
|
-
import {
|
|
4
|
+
import { SearchBarButton as c, SearchBarContainer as i, SearchBarContentWrapper as o, SearchBarIcon as n, SearchBarKbdModifier as h, SearchBarKbdShortcutKey as s, SearchBarKbdWrapper as m, SearchBarText as l } from "../../primitives/components/searchbar.js";
|
|
5
5
|
const p = ({
|
|
6
6
|
className: r,
|
|
7
7
|
...a
|
|
8
8
|
}) => /* @__PURE__ */ e(
|
|
9
|
-
|
|
9
|
+
i,
|
|
10
10
|
{
|
|
11
11
|
className: t("md:min-w-[min(320px,100%)] w-full h-full min-h-9", r),
|
|
12
12
|
...a
|
|
@@ -15,7 +15,7 @@ const p = ({
|
|
|
15
15
|
className: r,
|
|
16
16
|
...a
|
|
17
17
|
}) => /* @__PURE__ */ e(
|
|
18
|
-
|
|
18
|
+
c,
|
|
19
19
|
{
|
|
20
20
|
className: t(
|
|
21
21
|
"rounded-md border px-3 min-w-0 min-h-9 flex items-center justify-between gap-2 h-full w-full hover:border-gray-300 dark:hover:border-white-alpha-300 transition-colors",
|
|
@@ -36,7 +36,7 @@ const p = ({
|
|
|
36
36
|
className: r,
|
|
37
37
|
...a
|
|
38
38
|
}) => /* @__PURE__ */ e(
|
|
39
|
-
|
|
39
|
+
l,
|
|
40
40
|
{
|
|
41
41
|
className: t("text-md text-gray-500 dark:text-white-alpha-600", r),
|
|
42
42
|
...a
|
|
@@ -45,7 +45,7 @@ const p = ({
|
|
|
45
45
|
className: r,
|
|
46
46
|
...a
|
|
47
47
|
}) => /* @__PURE__ */ e(
|
|
48
|
-
|
|
48
|
+
n,
|
|
49
49
|
{
|
|
50
50
|
className: t("text-gray-500 dark:text-white-alpha-600 text-xl", r),
|
|
51
51
|
...a
|
|
@@ -54,7 +54,7 @@ const p = ({
|
|
|
54
54
|
className: r,
|
|
55
55
|
...a
|
|
56
56
|
}) => /* @__PURE__ */ e(
|
|
57
|
-
|
|
57
|
+
m,
|
|
58
58
|
{
|
|
59
59
|
className: t(
|
|
60
60
|
"text-sm text-gray-400 dark:text-white-alpha-500 font-bold flex items-center gap-0.5",
|
|
@@ -65,10 +65,10 @@ const p = ({
|
|
|
65
65
|
), w = ({
|
|
66
66
|
className: r,
|
|
67
67
|
...a
|
|
68
|
-
}) => /* @__PURE__ */ e(
|
|
68
|
+
}) => /* @__PURE__ */ e(h, { className: t("", r), ...a }), v = ({
|
|
69
69
|
className: r,
|
|
70
70
|
...a
|
|
71
|
-
}) => /* @__PURE__ */ e(
|
|
71
|
+
}) => /* @__PURE__ */ e(s, { className: t("", r), ...a });
|
|
72
72
|
export {
|
|
73
73
|
x as SearchBarButton,
|
|
74
74
|
p as SearchBarContainer,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),r=require("../../primitives/components/sidebar-chat/index.cjs"),i=require("../utils.cjs"),o=require("./ui/recipes/button.cjs"),s=require("./ui/recipes/scrollable.cjs"),n=({className:t,...e})=>a.jsx(r.
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),r=require("../../primitives/components/sidebar-chat/index.cjs"),i=require("../utils.cjs"),o=require("./ui/recipes/button.cjs"),s=require("./ui/recipes/scrollable.cjs"),n=({className:t,...e})=>a.jsx(r.Root,{...e,className:i.cn("w-[--width] h-full relative bg-white dark:bg-gray-dark-950","data-[position=left]:pr-1 data-[position=left]:border-r data-[position=left]:mr-1","data-[position=right]:pl-1 data-[position=right]:border-l data-[position=right]:ml-1","data-[state=open]:data-[position=left]:animate-sidebar-in-left","data-[state=open]:data-[position=right]:animate-sidebar-in-right","data-[state=closed]:data-[position=left]:animate-sidebar-out-left","data-[state=closed]:data-[position=right]:animate-sidebar-out-right",t)}),l=({className:t,...e})=>a.jsx(r.Resizer,{className:i.cn("px-1 bg-transparent opacity-0 hover:opacity-100","cursor-ew-resize","absolute top-0 bottom-0 z-[1]",'[[data-position="left"]>&]:-right-1','[[data-position="right"]>&]:-left-1','after:content-[""] after:absolute after:top-0 after:bottom-0 after:w-0.5 after:bg-inkeep-primary-medium dark:after:bg-inkeep-primary-light [[data-position="right"]>&]:after:right-1 [[data-position="left"]>&]:after:left-1',"data-[state=closed]:opacity-0 data-[state=closed]:pointer-events-none","data-[state=open]:pointer-events-auto","transition-opacity duration-200",t),...e}),d=({className:t,...e})=>a.jsx(r.Header,{className:i.cn(s.scrollable({section:"header"}),"w-full flex flex-row items-center px-3 py-3","bg-white dark:bg-gray-dark-950","after:absolute","after:left-0","after:top-full","after:h-3","after:w-full","after:text-white","after:dark:text-gray-dark-950","after:bg-[linear-gradient(currentColor,_transparent)]","after:z-start",t),...e}),p=({className:t,...e})=>a.jsx(r.CloseButton,{className:i.cn(o.button({variant:"ghost",size:"xs"}),"relative inset-[unset] w-6 ml-auto text-lg text-gray-500 dark:text-white-alpha-500 px-0",t),...e});exports.CloseButton=p;exports.Header=d;exports.Resizer=l;exports.Root=n;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { CloseButton as i, Header as o, Resizer as s, Root as n } from "../../primitives/components/sidebar-chat/index.js";
|
|
4
4
|
import { cn as r } from "../utils.js";
|
|
5
5
|
import { button as d } from "./ui/recipes/button.js";
|
|
6
6
|
import { scrollable as l } from "./ui/recipes/scrollable.js";
|
|
@@ -8,7 +8,7 @@ const g = ({
|
|
|
8
8
|
className: t,
|
|
9
9
|
...a
|
|
10
10
|
}) => /* @__PURE__ */ e(
|
|
11
|
-
|
|
11
|
+
n,
|
|
12
12
|
{
|
|
13
13
|
...a,
|
|
14
14
|
className: r(
|
|
@@ -28,7 +28,7 @@ const g = ({
|
|
|
28
28
|
className: t,
|
|
29
29
|
...a
|
|
30
30
|
}) => /* @__PURE__ */ e(
|
|
31
|
-
|
|
31
|
+
s,
|
|
32
32
|
{
|
|
33
33
|
className: r(
|
|
34
34
|
"px-1 bg-transparent opacity-0 hover:opacity-100",
|
|
@@ -49,7 +49,7 @@ const g = ({
|
|
|
49
49
|
className: t,
|
|
50
50
|
...a
|
|
51
51
|
}) => /* @__PURE__ */ e(
|
|
52
|
-
|
|
52
|
+
o,
|
|
53
53
|
{
|
|
54
54
|
className: r(
|
|
55
55
|
l({ section: "header" }),
|
|
@@ -72,7 +72,7 @@ const g = ({
|
|
|
72
72
|
className: t,
|
|
73
73
|
...a
|
|
74
74
|
}) => /* @__PURE__ */ e(
|
|
75
|
-
|
|
75
|
+
i,
|
|
76
76
|
{
|
|
77
77
|
className: r(
|
|
78
78
|
d({ variant: "ghost", size: "xs" }),
|
package/dist/styled/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./components/embedded-chat.cjs"),M=require("./components/chat-history.cjs"),k=require("./components/sidebar-chat.cjs"),F=require("./components/chat-bubble.cjs"),w=require("./components/embedded-search.cjs"),f=require("./components/modal.cjs"),H=require("./components/chat-button.cjs"),R=require("./components/searchbar.cjs"),T=require("./components/shadow.cjs"),E=require("./components/loading-indicator.cjs"),D=require("./components/ui/recipes/widget-toggle.cjs"),c=require("./components/message.cjs"),O=require("./components/data-summary-group.cjs"),C=require("../primitives/providers/base-events-provider.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./components/embedded-chat.cjs"),M=require("./components/chat-history.cjs"),k=require("./components/sidebar-chat.cjs"),F=require("./components/chat-bubble.cjs"),w=require("./components/embedded-search.cjs"),f=require("./components/modal.cjs"),H=require("./components/chat-button.cjs"),R=require("./components/searchbar.cjs"),T=require("./components/shadow.cjs"),E=require("./components/loading-indicator.cjs"),D=require("./components/ui/recipes/widget-toggle.cjs"),c=require("./components/message.cjs"),O=require("./components/data-summary-group.cjs"),C=require("../primitives/providers/base-events-provider.cjs"),i=require("../primitives/providers/chat-form-provider.cjs"),l=require("../primitives/providers/chat-history-provider.cjs"),n=require("../primitives/providers/config-provider.cjs"),h=require("../primitives/providers/feedback-provider.cjs"),p=require("../primitives/providers/form-field-provider.cjs"),d=require("../primitives/providers/help-menu-provider.cjs"),S=require("../primitives/providers/markdown-provider.cjs"),u=require("../primitives/providers/message-provider.cjs"),W=require("../primitives/providers/root-provider.cjs"),b=require("../primitives/providers/source-item-provider.cjs"),x=require("../primitives/providers/theme-provider.cjs"),P=require("../primitives/providers/widget-provider.cjs"),t=require("../primitives/providers/sidebar-chat-provider.cjs"),a=require("../primitives/providers/chat-bubble-provider.cjs"),v=require("../primitives/components/factory.cjs"),A=require("../primitives/components/embedded-chat.cjs"),z=require("../primitives/components/sidebar-chat/index.cjs"),I=require("../primitives/components/embedded-chat/chat-provider.cjs"),$=require("../primitives/components/embedded-search.cjs"),m=require("../primitives/components/embedded-search/search-provider.cjs"),L=require("../primitives/components/modal.cjs"),q=require("../primitives/components/modal/modal-provider.cjs"),j=require("../primitives/components/chat-button.cjs"),G=require("../primitives/components/searchbar.cjs"),Q=require("../primitives/components/chat-bubble/index.cjs"),U=require("../primitives/components/data-summaries.cjs"),K=require("../primitives/components/chat-history/index.cjs"),N=require("../primitives/hooks/use-boolean.cjs"),J=require("../primitives/hooks/use-component-classnames.cjs"),V=require("../primitives/hooks/use-container-size.cjs"),X=require("../primitives/hooks/use-inkeep-open-state.cjs"),Y=require("../primitives/hooks/use-copy-to-clipboard.cjs"),Z=require("../primitives/hooks/use-instant-update.cjs"),_=require("../primitives/hooks/use-is-mounted.cjs"),ee=require("../primitives/hooks/use-media-query.cjs"),re=require("../primitives/hooks/use-resize-observer.cjs"),g=require("../primitives/hooks/use-scrolling-fades.cjs"),oe=require("../primitives/hooks/use-settle-action.cjs"),te=require("../primitives/hooks/use-simple-scroll.cjs"),o=require("../primitives/utils/misc.cjs"),e=require("../primitives/utils/component-ids.cjs"),y=require("../primitives/utils/compose-refs.cjs"),ae=require("../primitives/utils/merge-props.cjs"),se=require("../primitives/atoms/portal.cjs"),ie=require("../primitives/atoms/icons/custom-icon.cjs"),ne=require("../primitives/atoms/icons/built-in-icon-renderer.cjs"),de=require("../primitives/atoms/portal-with-theme.cjs"),r=require("../primitives/atoms/cmdk/index.cjs"),ue=require("../primitives/atoms/error-boundary.cjs"),s=require("../primitives/atoms/shadow/context.cjs");exports.EmbeddedChat=B;exports.ChatHistory=M;exports.SidebarChat=k;exports.ChatBubble=F;exports.EmbeddedSearch=w;exports.Modal=f;exports.ChatButton=H;exports.SearchBar=R;exports.Shadow=T.Shadow;exports.LoadingIndicator=E.LoadingIndicator;exports.widgetToggle=D.widgetToggle;exports.DefaultToolComponent=c.DefaultToolComponent;exports.EmbeddedChatMessagePart=c.EmbeddedChatMessagePart;exports.DataSummaryGroup=O.DataSummaryGroup;exports.BaseEventsProvider=C.BaseEventsProvider;exports.useBaseEvents=C.useBaseEvents;exports.ChatFormProvider=i.ChatFormProvider;exports.useChatForm=i.useChatForm;exports.useChatFormState=i.useChatFormState;exports.ChatHistoryProvider=l.ChatHistoryProvider;exports.useChatHistory=l.useChatHistory;exports.InkeepConfigProvider=n.InkeepConfigProvider;exports.WebWidgetInteractionType=n.WebWidgetInteractionType;exports.useInkeepConfig=n.useInkeepConfig;exports.FeedbackProvider=h.FeedbackProvider;exports.useMessageFeedback=h.useMessageFeedback;exports.FormFieldProvider=p.FormFieldProvider;exports.useFormField=p.useFormField;exports.HelpMenuProvider=d.HelpMenuProvider;exports.useHelpMenu=d.useHelpMenu;exports.useHelpMenuState=d.useHelpMenuState;exports.ChatMarkdownProvider=S.ChatMarkdownProvider;exports.useChatMarkdown=S.useChatMarkdown;exports.MessageProvider=u.MessageProvider;exports.useMessage=u.useMessage;exports.useOptionalMessage=u.useOptionalMessage;exports.RootProvider=W.RootProvider;exports.SourceItemProvider=b.SourceItemProvider;exports.useSourceItem=b.useSourceItem;exports.ThemeProvider=x.ThemeProvider;exports.WidgetProvider=P.WidgetProvider;exports.useWidget=P.useWidget;exports.SidebarChatProvider=t.SidebarChatProvider;exports.useInkeepSidebarChat=t.useInkeepSidebarChat;exports.useOptionalSidebarChat=t.useOptionalSidebarChat;exports.useSidebarChat=t.useSidebarChat;exports.ChatBubbleProvider=a.ChatBubbleProvider;exports.useChatBubble=a.useChatBubble;exports.useInkeepChatBubble=a.useInkeepChatBubble;exports.useOptionalChatBubble=a.useOptionalChatBubble;exports.ikp=v.ikp;exports.jsxFactory=v.jsxFactory;exports.EmbeddedChatPrimitive=A;exports.SidebarChatPrimitive=z;exports.ChatProvider=I.ChatProvider;exports.useChat=I.useChat;exports.EmbeddedSearchPrimitive=$;exports.SearchProvider=m.SearchProvider;exports.SearchProviderImpl=m.SearchProviderImpl;exports.useSearch=m.useSearch;exports.ModalPrimitive=L;exports.ModalProvider=q.ModalProvider;exports.useModal=q.useModal;exports.ChatButtonPrimitive=j;exports.SearchBarPrimitive=G;exports.ChatBubblePrimitive=Q;exports.DataSummaryPrimitive=U;exports.ChatHistoryPrimitive=K;exports.useBoolean=N.useBoolean;exports.useComponentClassNames=J.useComponentClassNames;exports.useContainerSize=V.useContainerSize;exports.useInkeepOpenState=X.useInkeepOpenState;exports.useCopyToClipboard=Y.useCopyToClipboard;exports.useInstantUpdate=Z.useInstantUpdate;exports.useIsMounted=_.useIsMounted;exports.useMediaQuery=ee.useMediaQuery;exports.useResizeObserver=re.useResizeObserver;exports.useScrollingFades=g.useScrollingFades;exports.useScrollingFadesHorizontal=g.useScrollingFadesHorizontal;exports.useSettleAction=oe.useSettleAction;exports.useSimpleScroll=te.useSimpleScroll;exports.callAll=o.callAll;exports.dataAttr=o.dataAttr;exports.getInitials=o.getInitials;exports.getMessageContent=o.getMessageContent;exports.isCitationArtifact=o.isCitationArtifact;exports.isString=o.isString;exports.maybeRender=o.maybeRender;exports.toKebabCase=o.toKebabCase;exports.ChatBubbleComponentIds=e.ChatBubbleComponentIds;exports.DataSummaryComponentIds=e.DataSummaryComponentIds;exports.SearchBarComponentIds=e.SearchBarComponentIds;exports.SidebarChatComponentIds=e.SidebarChatComponentIds;exports.aiChatComponentIds=e.aiChatComponentIds;exports.aiChatHistoryComponentIds=e.aiChatHistoryComponentIds;exports.aiSearchComponentIds=e.aiSearchComponentIds;exports.chatButtonComponentIds=e.chatButtonComponentIds;exports.componentIDs=e.componentIDs;exports.markDownComponentIds=e.markDownComponentIds;exports.miscellanousComponentIds=e.miscellanousComponentIds;exports.modalComponentIds=e.modalComponentIds;exports.composeRefs=y.composeRefs;exports.useComposedRefs=y.useComposedRefs;exports.mergeProps=ae.mergeProps;exports.Portal=se.Portal;exports.CustomIcon=ie.CustomIcon;exports.BuiltInIconRenderer=ne.BuiltInIconRenderer;exports.PortalWithTheme=de.PortalWithTheme;exports.Command=r.Command;exports.CommandDialog=r.CommandDialog;exports.CommandEmpty=r.CommandEmpty;exports.CommandInput=r.CommandInput;exports.CommandItem=r.CommandItem;exports.CommandList=r.CommandList;exports.CommandLoading=r.CommandLoading;exports.CommandRoot=r.CommandRoot;exports.CommandSeparator=r.CommandSeparator;exports.defaultFilter=r.defaultFilter;exports.useCommandState=r.useCommandState;exports.useCommandStore=r.useCommandStore;exports.ErrorBoundary=ue.ErrorBoundary;exports.InkeepShadow=s.InkeepShadow;exports.InkeepShadowProvider=s.InkeepShadowProvider;exports.ShadowContext=s.ShadowContext;exports.useShadow=s.useShadow;
|