@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,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { BackButton as d, BackButtonIcon as h, ChatHistoryPrimitiveEmptyState as l, ChatHistoryPrimitiveFooter as c, ChatHistoryPrimitiveHeader as y, ChatHistoryPrimitiveItem as m, ChatHistoryPrimitiveItemDate as f, ChatHistoryPrimitiveItemTitle as u, ChatHistoryPrimitiveList as p, ChatHistoryPrimitiveLoadingState as g, ChatHistoryPrimitiveNewConversationButton as b, ChatHistoryPrimitiveRoot as x, ChatHistoryPrimitiveTitle as k } from "../../primitives/components/chat-history/index.js";
|
|
4
4
|
import { cn as o } from "../utils.js";
|
|
5
5
|
import { button as s } from "./ui/recipes/button.js";
|
|
6
6
|
function N(t) {
|
|
7
|
-
const e = Date.now() - t.getTime(), r = Math.floor(e / (1e3 * 60)), i = Math.floor(e / (1e3 * 60 * 60)),
|
|
8
|
-
return r < 1 ? "Just now" : r < 60 ? `${r}m ago` : i < 24 ? `${i}h ago` :
|
|
7
|
+
const e = Date.now() - t.getTime(), r = Math.floor(e / (1e3 * 60)), i = Math.floor(e / (1e3 * 60 * 60)), n = Math.floor(e / (1e3 * 60 * 60 * 24));
|
|
8
|
+
return r < 1 ? "Just now" : r < 60 ? `${r}m ago` : i < 24 ? `${i}h ago` : n < 7 ? t.toLocaleDateString("en-US", { weekday: "short" }) : t.toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
|
|
9
9
|
}
|
|
10
10
|
const E = ({
|
|
11
11
|
className: t,
|
|
12
12
|
...e
|
|
13
13
|
}) => /* @__PURE__ */ a(
|
|
14
|
-
|
|
14
|
+
x,
|
|
15
15
|
{
|
|
16
16
|
className: o(
|
|
17
17
|
"flex flex-col flex-1 min-h-0 w-full rounded-[inherit] font-body",
|
|
@@ -28,11 +28,11 @@ const E = ({
|
|
|
28
28
|
),
|
|
29
29
|
...e
|
|
30
30
|
}
|
|
31
|
-
),
|
|
31
|
+
), B = ({
|
|
32
32
|
className: t,
|
|
33
33
|
...e
|
|
34
34
|
}) => /* @__PURE__ */ a(
|
|
35
|
-
|
|
35
|
+
y,
|
|
36
36
|
{
|
|
37
37
|
className: o(
|
|
38
38
|
"flex items-center justify-between shrink-0",
|
|
@@ -42,14 +42,14 @@ const E = ({
|
|
|
42
42
|
),
|
|
43
43
|
...e
|
|
44
44
|
}
|
|
45
|
-
),
|
|
45
|
+
), P = ({
|
|
46
46
|
className: t,
|
|
47
47
|
...e
|
|
48
|
-
}) => /* @__PURE__ */ a(
|
|
48
|
+
}) => /* @__PURE__ */ a(h, { className: o("text-sm", t), ...e }), I = ({
|
|
49
49
|
className: t,
|
|
50
50
|
...e
|
|
51
51
|
}) => /* @__PURE__ */ a(
|
|
52
|
-
|
|
52
|
+
d,
|
|
53
53
|
{
|
|
54
54
|
className: o(
|
|
55
55
|
s({ size: "xs", variant: "ghost" }),
|
|
@@ -59,12 +59,12 @@ const E = ({
|
|
|
59
59
|
),
|
|
60
60
|
...e
|
|
61
61
|
}
|
|
62
|
-
),
|
|
62
|
+
), S = ({
|
|
63
63
|
className: t,
|
|
64
64
|
children: e,
|
|
65
65
|
...r
|
|
66
66
|
}) => /* @__PURE__ */ a(
|
|
67
|
-
|
|
67
|
+
k,
|
|
68
68
|
{
|
|
69
69
|
className: o(
|
|
70
70
|
"pl-2 text-sm font-normal text-gray-600 dark:text-white-alpha-600",
|
|
@@ -78,7 +78,7 @@ const E = ({
|
|
|
78
78
|
className: t,
|
|
79
79
|
...e
|
|
80
80
|
}) => /* @__PURE__ */ a(
|
|
81
|
-
|
|
81
|
+
p,
|
|
82
82
|
{
|
|
83
83
|
className: o(
|
|
84
84
|
"flex-1 min-h-0 overflow-y-auto [scrollbar-width:thin] px-2 py-3 space-y-0.5",
|
|
@@ -90,7 +90,7 @@ const E = ({
|
|
|
90
90
|
className: t,
|
|
91
91
|
...e
|
|
92
92
|
}) => /* @__PURE__ */ a(
|
|
93
|
-
|
|
93
|
+
m,
|
|
94
94
|
{
|
|
95
95
|
className: o(
|
|
96
96
|
"flex flex-col gap-0.5 w-full text-left px-3 py-2 rounded-lg",
|
|
@@ -120,7 +120,7 @@ const E = ({
|
|
|
120
120
|
className: t,
|
|
121
121
|
...e
|
|
122
122
|
}) => /* @__PURE__ */ a(
|
|
123
|
-
|
|
123
|
+
f,
|
|
124
124
|
{
|
|
125
125
|
className: o("text-xs text-gray-500 dark:text-white-alpha-500", t),
|
|
126
126
|
...e
|
|
@@ -130,7 +130,7 @@ const E = ({
|
|
|
130
130
|
children: e,
|
|
131
131
|
...r
|
|
132
132
|
}) => /* @__PURE__ */ a(
|
|
133
|
-
|
|
133
|
+
l,
|
|
134
134
|
{
|
|
135
135
|
className: o(
|
|
136
136
|
"flex flex-col items-center justify-center flex-1 py-2 h-full",
|
|
@@ -144,7 +144,7 @@ const E = ({
|
|
|
144
144
|
className: t,
|
|
145
145
|
...e
|
|
146
146
|
}) => /* @__PURE__ */ a(
|
|
147
|
-
|
|
147
|
+
g,
|
|
148
148
|
{
|
|
149
149
|
className: o("flex flex-col px-3 py-2 gap-3", t),
|
|
150
150
|
...e,
|
|
@@ -160,7 +160,7 @@ const E = ({
|
|
|
160
160
|
className: t,
|
|
161
161
|
...e
|
|
162
162
|
}) => /* @__PURE__ */ a(
|
|
163
|
-
|
|
163
|
+
c,
|
|
164
164
|
{
|
|
165
165
|
className: o(
|
|
166
166
|
"shrink-0 px-5 py-4 relative",
|
|
@@ -174,7 +174,7 @@ const E = ({
|
|
|
174
174
|
children: e,
|
|
175
175
|
...r
|
|
176
176
|
}) => /* @__PURE__ */ a(
|
|
177
|
-
|
|
177
|
+
b,
|
|
178
178
|
{
|
|
179
179
|
className: o(s({ variant: "primaryFilled" }), "w-full shrink-0", t),
|
|
180
180
|
...r,
|
|
@@ -182,11 +182,11 @@ const E = ({
|
|
|
182
182
|
}
|
|
183
183
|
);
|
|
184
184
|
export {
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
I as EmbeddedChatHistoryBackButton,
|
|
186
|
+
P as EmbeddedChatHistoryBackButtonIcon,
|
|
187
187
|
j as EmbeddedChatHistoryEmptyState,
|
|
188
188
|
_ as EmbeddedChatHistoryFooter,
|
|
189
|
-
|
|
189
|
+
B as EmbeddedChatHistoryHeader,
|
|
190
190
|
L as EmbeddedChatHistoryItem,
|
|
191
191
|
T as EmbeddedChatHistoryItemDate,
|
|
192
192
|
M as EmbeddedChatHistoryItemTitle,
|
|
@@ -194,6 +194,6 @@ export {
|
|
|
194
194
|
F as EmbeddedChatHistoryLoadingState,
|
|
195
195
|
z as EmbeddedChatHistoryNewConversationButton,
|
|
196
196
|
E as EmbeddedChatHistoryRoot,
|
|
197
|
-
|
|
197
|
+
S as EmbeddedChatHistoryTitle,
|
|
198
198
|
N as formatSessionDate
|
|
199
199
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),s=require("../../../primitives/hooks/use-scrolling-fades.cjs"),o=require("../ui/recipes/button.cjs"),d=require("../ui/recipes/icon.cjs"),a=require("../../utils.cjs"),r=require("../../../primitives/components/embedded-chat/file-upload-input.cjs"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),s=require("lucide-react"),l=require("../../../primitives/hooks/use-scrolling-fades.cjs"),o=require("../ui/recipes/button.cjs"),d=require("../ui/recipes/icon.cjs"),a=require("../../utils.cjs"),r=require("../../../primitives/components/embedded-chat/file-upload-input.cjs"),c=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveDropZone,{className:a.cn("absolute inset-0 z-10 rounded-lg","flex items-center justify-center","border-2 border-dashed border-inkeep-expanded-primary-500 dark:border-inkeep-expanded-primary-400","bg-gray-50 dark:bg-gray-dark-900","pointer-events-none","text-sm text-gray-500 dark:text-gray-dark-300","opacity-0 transition-opacity","group-data-[drag-over]/fieldset:opacity-100",e),...t}),m=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveFileUploadButton,{className:a.cn(o.button({}),"group","bg-transparent relative size-8 min-w-[unset] rounded-lg transition-all ease-linear","text-gray-500 dark:text-gray-dark-200","hover:bg-gray-200 hover:text-gray-700 dark:hover:bg-white-alpha-100 dark:hover:text-gray-dark-50","active:bg-gray-200 dark:active:bg-white-alpha-100","disabled:cursor-not-allowed hover:disabled:[background:none]",e),...t,children:i.jsx(r.EmbeddedChatPrimitiveFileUploadButtonIcon,{className:a.cn(d.icon(),"text-inherit")})}),b=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveFileInput,{className:a.cn("hidden",e),...t}),g=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveInputNotification,{className:a.cn("flex items-start justify-between gap-3","rounded-lg px-4 py-3 mx-5","bg-white dark:bg-gray-dark-800","border border-gray-200 dark:border-gray-dark-700","absolute bottom-full left-0 right-0 mx-5 mb-1.5","shadow-md dark:shadow-none","animate-notification-in",e),...t}),h=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveInputNotificationContent,{className:a.cn("flex flex-col gap-0.5 w-full",e),...t}),p=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveInputNotificationHeader,{className:a.cn("flex items-center gap-2 justify-between w-full",e),...t}),u=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveInputNotificationTitle,{className:a.cn("text-sm font-medium text-gray-900 dark:text-white-alpha-950 flex items-center gap-1.5",e),...t,children:i.jsx(s.TriangleAlert,{className:"size-3.5 shrink-0 text-amber-500 dark:text-amber-400"})}),f=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveInputNotificationMessage,{className:a.cn("text-sm text-gray-600 dark:text-white-alpha-600",e),...t}),x=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveInputNotificationClose,{className:a.cn(o.button({variant:"ghost",size:"xs"}),"px-1",e),...t,children:i.jsx(r.EmbeddedChatPrimitiveFileRemoveIcon,{className:a.cn(d.icon())})}),v=({className:e,...t})=>{const n=l.useScrollingFadesHorizontal();return i.jsx("div",{ref:n,className:a.cn("relative","[--scroll-fade-color:var(--ikp-color-gray-50)] dark:[--scroll-fade-color:var(--ikp-color-gray-dark-900)]",'befter:content-[""] befter:absolute befter:inset-y-0 befter:w-10 befter:pointer-events-none befter:z-10',"befter:transition-opacity befter:duration-300 befter:ease-in-out","before:left-0 before:bg-[linear-gradient(to_right,var(--scroll-fade-color),transparent)]","after:right-0 after:bg-[linear-gradient(to_left,var(--scroll-fade-color),transparent)]","has-[[data-scroll-left]]:before:opacity-0","has-[[data-scroll-right]]:after:opacity-0"),children:i.jsx(r.EmbeddedChatPrimitiveFileList,{className:a.cn("flex max-w-full overflow-x-auto gap-2 pt-0.5 pb-1.5 [scrollbar-width:none]",e),...t})})},C=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveFileItem,{className:a.cn("group/chip","relative flex items-center gap-1.5","max-w-[200px] rounded-lg","border border-gray-300 dark:border-gray-dark-600","[--chip-bg:theme(colors.gray.200)] dark:[--chip-bg:theme(colors.gray-dark.700)]","bg-[--chip-bg]","px-1 h-7",e),...t}),y=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveFilePreviewTrigger,{className:a.cn("flex items-center gap-1.5 min-w-0 flex-1","bg-transparent border-0 p-0 text-left cursor-pointer","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:rounded dark:focus-visible:ring-white-alpha-900",e),...t}),E=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveFileContent,{className:a.cn("flex items-center gap-1.5 min-w-0 flex-1",e),...t}),k=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveFileThumbnail,{className:a.cn("size-5 shrink-0 rounded object-cover border border-gray-300 dark:border-gray-dark-600","group-data-[loading]/chip:animate-pulse group-data-[loading]/chip:bg-gray-200 dark:group-data-[loading]/chip:bg-gray-dark-600",e),...t}),N=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveFileTypeIcon,{className:a.cn("size-5 shrink-0 text-gray-600 dark:text-gray-dark-100",e),...t}),F=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveFileName,{className:a.cn("min-w-0 flex-1 truncate text-xs","text-gray-900 dark:text-gray-dark-50",e),...t}),j=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveFileRemove,{className:a.cn("absolute top-0 right-0 rounded-r-lg","flex h-full px-1 items-center justify-center","bg-[--chip-bg]","text-gray-800 dark:text-gray-dark-100","opacity-0 transition-opacity","group-hover/chip:opacity-100","[@media(hover:none)]:opacity-100","focus:outline-none","focus-visible:ring","focus-visible:ring-2","focus-visible:opacity-100","focus-visible:ring-gray-500","dark:focus-visible:ring-white-alpha-900","focus-visible:rounded","before:bg-gradient-to-l before:absolute before:-left-1 before:from-[--chip-bg] before:h-full before:w-1 before:pointer-events-none",e),...t,children:i.jsx(r.EmbeddedChatPrimitiveFileRemoveIcon,{className:a.cn(d.icon(),"size-2.5 text-inherit")})}),w=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveMessageFiles,{className:a.cn("flex flex-wrap gap-2 mt-2 justify-end",e),...t}),I=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveMessageFile,{className:a.cn("relative flex items-center gap-1.5","max-w-[200px] rounded-lg","border","bg-gray-100 dark:bg-white-alpha-100","px-1 h-7","focus-visible:ring-gray-500 dark:focus-visible:ring-white-alpha-900 focus-visible:ring-2 focus:outline-none",e),...t});exports.EmbeddedChatDropZone=c;exports.EmbeddedChatFileContent=E;exports.EmbeddedChatFileInput=b;exports.EmbeddedChatFileItem=C;exports.EmbeddedChatFileList=v;exports.EmbeddedChatFileName=F;exports.EmbeddedChatFilePreviewTrigger=y;exports.EmbeddedChatFileRemove=j;exports.EmbeddedChatFileThumbnail=k;exports.EmbeddedChatFileTypeIcon=N;exports.EmbeddedChatFileUploadButton=m;exports.EmbeddedChatInputNotification=g;exports.EmbeddedChatInputNotificationClose=x;exports.EmbeddedChatInputNotificationContent=h;exports.EmbeddedChatInputNotificationHeader=p;exports.EmbeddedChatInputNotificationMessage=f;exports.EmbeddedChatInputNotificationTitle=u;exports.EmbeddedChatMessageFile=I;exports.EmbeddedChatMessageFiles=w;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { TriangleAlert as s } from "lucide-react";
|
|
4
|
+
import { useScrollingFadesHorizontal as l } from "../../../primitives/hooks/use-scrolling-fades.js";
|
|
4
5
|
import { button as d } from "../ui/recipes/button.js";
|
|
5
6
|
import { icon as r } from "../ui/recipes/icon.js";
|
|
6
7
|
import { cn as i } from "../../utils.js";
|
|
7
|
-
import { EmbeddedChatPrimitiveDropZone as
|
|
8
|
-
const
|
|
8
|
+
import { EmbeddedChatPrimitiveDropZone as m, EmbeddedChatPrimitiveFileContent as c, EmbeddedChatPrimitiveFileInput as b, EmbeddedChatPrimitiveFileItem as g, EmbeddedChatPrimitiveFileList as p, EmbeddedChatPrimitiveFileName as h, EmbeddedChatPrimitiveFilePreviewTrigger as f, EmbeddedChatPrimitiveFileRemove as u, EmbeddedChatPrimitiveFileRemoveIcon as o, EmbeddedChatPrimitiveFileThumbnail as v, EmbeddedChatPrimitiveFileTypeIcon as x, EmbeddedChatPrimitiveFileUploadButton as y, EmbeddedChatPrimitiveFileUploadButtonIcon as k, EmbeddedChatPrimitiveInputNotification as C, EmbeddedChatPrimitiveInputNotificationClose as E, EmbeddedChatPrimitiveInputNotificationContent as N, EmbeddedChatPrimitiveInputNotificationHeader as w, EmbeddedChatPrimitiveInputNotificationMessage as F, EmbeddedChatPrimitiveInputNotificationTitle as P, EmbeddedChatPrimitiveMessageFile as I, EmbeddedChatPrimitiveMessageFiles as z } from "../../../primitives/components/embedded-chat/file-upload-input.js";
|
|
9
|
+
const D = ({
|
|
9
10
|
className: e,
|
|
10
11
|
...t
|
|
11
12
|
}) => /* @__PURE__ */ a(
|
|
12
|
-
|
|
13
|
+
m,
|
|
13
14
|
{
|
|
14
15
|
className: i(
|
|
15
16
|
"absolute inset-0 z-10 rounded-lg",
|
|
@@ -24,11 +25,11 @@ const H = ({
|
|
|
24
25
|
),
|
|
25
26
|
...t
|
|
26
27
|
}
|
|
27
|
-
),
|
|
28
|
+
), L = ({
|
|
28
29
|
className: e,
|
|
29
30
|
...t
|
|
30
31
|
}) => /* @__PURE__ */ a(
|
|
31
|
-
|
|
32
|
+
y,
|
|
32
33
|
{
|
|
33
34
|
className: i(
|
|
34
35
|
d({}),
|
|
@@ -41,21 +42,16 @@ const H = ({
|
|
|
41
42
|
e
|
|
42
43
|
),
|
|
43
44
|
...t,
|
|
44
|
-
children: /* @__PURE__ */ a(
|
|
45
|
-
m,
|
|
46
|
-
{
|
|
47
|
-
className: i(r(), "text-inherit")
|
|
48
|
-
}
|
|
49
|
-
)
|
|
45
|
+
children: /* @__PURE__ */ a(k, { className: i(r(), "text-inherit") })
|
|
50
46
|
}
|
|
51
|
-
),
|
|
47
|
+
), Z = ({
|
|
52
48
|
className: e,
|
|
53
49
|
...t
|
|
54
|
-
}) => /* @__PURE__ */ a(b, { className: i("hidden", e), ...t }),
|
|
50
|
+
}) => /* @__PURE__ */ a(b, { className: i("hidden", e), ...t }), _ = ({
|
|
55
51
|
className: e,
|
|
56
52
|
...t
|
|
57
53
|
}) => /* @__PURE__ */ a(
|
|
58
|
-
|
|
54
|
+
C,
|
|
59
55
|
{
|
|
60
56
|
className: i(
|
|
61
57
|
"flex items-start justify-between gap-3",
|
|
@@ -69,61 +65,61 @@ const H = ({
|
|
|
69
65
|
),
|
|
70
66
|
...t
|
|
71
67
|
}
|
|
72
|
-
),
|
|
68
|
+
), A = ({
|
|
73
69
|
className: e,
|
|
74
70
|
...t
|
|
75
71
|
}) => /* @__PURE__ */ a(
|
|
76
|
-
|
|
72
|
+
N,
|
|
77
73
|
{
|
|
78
74
|
className: i("flex flex-col gap-0.5 w-full", e),
|
|
79
75
|
...t
|
|
80
76
|
}
|
|
81
|
-
),
|
|
77
|
+
), S = ({
|
|
82
78
|
className: e,
|
|
83
79
|
...t
|
|
84
80
|
}) => /* @__PURE__ */ a(
|
|
85
|
-
|
|
81
|
+
w,
|
|
86
82
|
{
|
|
87
83
|
className: i("flex items-center gap-2 justify-between w-full", e),
|
|
88
84
|
...t
|
|
89
85
|
}
|
|
90
|
-
),
|
|
86
|
+
), q = ({
|
|
91
87
|
className: e,
|
|
92
88
|
...t
|
|
93
89
|
}) => /* @__PURE__ */ a(
|
|
94
|
-
|
|
90
|
+
P,
|
|
95
91
|
{
|
|
96
|
-
className: i(
|
|
97
|
-
|
|
92
|
+
className: i(
|
|
93
|
+
"text-sm font-medium text-gray-900 dark:text-white-alpha-950 flex items-center gap-1.5",
|
|
94
|
+
e
|
|
95
|
+
),
|
|
96
|
+
...t,
|
|
97
|
+
children: /* @__PURE__ */ a(s, { className: "size-3.5 shrink-0 text-amber-500 dark:text-amber-400" })
|
|
98
98
|
}
|
|
99
|
-
),
|
|
99
|
+
), G = ({
|
|
100
100
|
className: e,
|
|
101
101
|
...t
|
|
102
102
|
}) => /* @__PURE__ */ a(
|
|
103
|
-
|
|
103
|
+
F,
|
|
104
104
|
{
|
|
105
105
|
className: i("text-sm text-gray-600 dark:text-white-alpha-600", e),
|
|
106
106
|
...t
|
|
107
107
|
}
|
|
108
|
-
),
|
|
108
|
+
), J = ({
|
|
109
109
|
className: e,
|
|
110
110
|
...t
|
|
111
111
|
}) => /* @__PURE__ */ a(
|
|
112
|
-
|
|
112
|
+
E,
|
|
113
113
|
{
|
|
114
|
-
className: i(
|
|
115
|
-
d({ variant: "ghost", size: "xs" }),
|
|
116
|
-
"px-1",
|
|
117
|
-
e
|
|
118
|
-
),
|
|
114
|
+
className: i(d({ variant: "ghost", size: "xs" }), "px-1", e),
|
|
119
115
|
...t,
|
|
120
116
|
children: /* @__PURE__ */ a(o, { className: i(r()) })
|
|
121
117
|
}
|
|
122
|
-
),
|
|
118
|
+
), K = ({
|
|
123
119
|
className: e,
|
|
124
120
|
...t
|
|
125
121
|
}) => {
|
|
126
|
-
const n =
|
|
122
|
+
const n = l();
|
|
127
123
|
return /* @__PURE__ */ a(
|
|
128
124
|
"div",
|
|
129
125
|
{
|
|
@@ -139,19 +135,22 @@ const H = ({
|
|
|
139
135
|
"has-[[data-scroll-right]]:after:opacity-0"
|
|
140
136
|
),
|
|
141
137
|
children: /* @__PURE__ */ a(
|
|
142
|
-
|
|
138
|
+
p,
|
|
143
139
|
{
|
|
144
|
-
className: i(
|
|
140
|
+
className: i(
|
|
141
|
+
"flex max-w-full overflow-x-auto gap-2 pt-0.5 pb-1.5 [scrollbar-width:none]",
|
|
142
|
+
e
|
|
143
|
+
),
|
|
145
144
|
...t
|
|
146
145
|
}
|
|
147
146
|
)
|
|
148
147
|
}
|
|
149
148
|
);
|
|
150
|
-
},
|
|
149
|
+
}, O = ({
|
|
151
150
|
className: e,
|
|
152
151
|
...t
|
|
153
152
|
}) => /* @__PURE__ */ a(
|
|
154
|
-
|
|
153
|
+
g,
|
|
155
154
|
{
|
|
156
155
|
className: i(
|
|
157
156
|
"group/chip",
|
|
@@ -165,11 +164,11 @@ const H = ({
|
|
|
165
164
|
),
|
|
166
165
|
...t
|
|
167
166
|
}
|
|
168
|
-
),
|
|
167
|
+
), Q = ({
|
|
169
168
|
className: e,
|
|
170
169
|
...t
|
|
171
170
|
}) => /* @__PURE__ */ a(
|
|
172
|
-
|
|
171
|
+
f,
|
|
173
172
|
{
|
|
174
173
|
className: i(
|
|
175
174
|
"flex items-center gap-1.5 min-w-0 flex-1",
|
|
@@ -179,20 +178,20 @@ const H = ({
|
|
|
179
178
|
),
|
|
180
179
|
...t
|
|
181
180
|
}
|
|
182
|
-
),
|
|
181
|
+
), V = ({
|
|
183
182
|
className: e,
|
|
184
183
|
...t
|
|
185
184
|
}) => /* @__PURE__ */ a(
|
|
186
|
-
|
|
185
|
+
c,
|
|
187
186
|
{
|
|
188
187
|
className: i("flex items-center gap-1.5 min-w-0 flex-1", e),
|
|
189
188
|
...t
|
|
190
189
|
}
|
|
191
|
-
),
|
|
190
|
+
), W = ({
|
|
192
191
|
className: e,
|
|
193
192
|
...t
|
|
194
193
|
}) => /* @__PURE__ */ a(
|
|
195
|
-
|
|
194
|
+
v,
|
|
196
195
|
{
|
|
197
196
|
className: i(
|
|
198
197
|
"size-5 shrink-0 rounded object-cover border border-gray-300 dark:border-gray-dark-600",
|
|
@@ -201,20 +200,20 @@ const H = ({
|
|
|
201
200
|
),
|
|
202
201
|
...t
|
|
203
202
|
}
|
|
204
|
-
),
|
|
203
|
+
), X = ({
|
|
205
204
|
className: e,
|
|
206
205
|
...t
|
|
207
206
|
}) => /* @__PURE__ */ a(
|
|
208
|
-
|
|
207
|
+
x,
|
|
209
208
|
{
|
|
210
209
|
className: i("size-5 shrink-0 text-gray-600 dark:text-gray-dark-100", e),
|
|
211
210
|
...t
|
|
212
211
|
}
|
|
213
|
-
),
|
|
212
|
+
), Y = ({
|
|
214
213
|
className: e,
|
|
215
214
|
...t
|
|
216
215
|
}) => /* @__PURE__ */ a(
|
|
217
|
-
|
|
216
|
+
h,
|
|
218
217
|
{
|
|
219
218
|
className: i(
|
|
220
219
|
"min-w-0 flex-1 truncate text-xs",
|
|
@@ -223,11 +222,11 @@ const H = ({
|
|
|
223
222
|
),
|
|
224
223
|
...t
|
|
225
224
|
}
|
|
226
|
-
),
|
|
225
|
+
), $ = ({
|
|
227
226
|
className: e,
|
|
228
227
|
...t
|
|
229
228
|
}) => /* @__PURE__ */ a(
|
|
230
|
-
|
|
229
|
+
u,
|
|
231
230
|
{
|
|
232
231
|
className: i(
|
|
233
232
|
"absolute top-0 right-0 rounded-r-lg",
|
|
@@ -250,16 +249,16 @@ const H = ({
|
|
|
250
249
|
...t,
|
|
251
250
|
children: /* @__PURE__ */ a(o, { className: i(r(), "size-2.5 text-inherit") })
|
|
252
251
|
}
|
|
253
|
-
),
|
|
252
|
+
), ee = ({
|
|
254
253
|
className: e,
|
|
255
254
|
...t
|
|
256
255
|
}) => /* @__PURE__ */ a(
|
|
257
|
-
|
|
256
|
+
z,
|
|
258
257
|
{
|
|
259
258
|
className: i("flex flex-wrap gap-2 mt-2 justify-end", e),
|
|
260
259
|
...t
|
|
261
260
|
}
|
|
262
|
-
),
|
|
261
|
+
), te = ({
|
|
263
262
|
className: e,
|
|
264
263
|
...t
|
|
265
264
|
}) => /* @__PURE__ */ a(
|
|
@@ -278,23 +277,23 @@ const H = ({
|
|
|
278
277
|
}
|
|
279
278
|
);
|
|
280
279
|
export {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
280
|
+
D as EmbeddedChatDropZone,
|
|
281
|
+
V as EmbeddedChatFileContent,
|
|
282
|
+
Z as EmbeddedChatFileInput,
|
|
283
|
+
O as EmbeddedChatFileItem,
|
|
284
|
+
K as EmbeddedChatFileList,
|
|
285
|
+
Y as EmbeddedChatFileName,
|
|
286
|
+
Q as EmbeddedChatFilePreviewTrigger,
|
|
287
|
+
$ as EmbeddedChatFileRemove,
|
|
288
|
+
W as EmbeddedChatFileThumbnail,
|
|
289
|
+
X as EmbeddedChatFileTypeIcon,
|
|
290
|
+
L as EmbeddedChatFileUploadButton,
|
|
291
|
+
_ as EmbeddedChatInputNotification,
|
|
292
|
+
J as EmbeddedChatInputNotificationClose,
|
|
293
|
+
A as EmbeddedChatInputNotificationContent,
|
|
294
|
+
S as EmbeddedChatInputNotificationHeader,
|
|
295
|
+
G as EmbeddedChatInputNotificationMessage,
|
|
296
|
+
q as EmbeddedChatInputNotificationTitle,
|
|
297
|
+
te as EmbeddedChatMessageFile,
|
|
298
|
+
ee as EmbeddedChatMessageFiles
|
|
300
299
|
};
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import { modal as d } from "../ui/recipes/modal.js";
|
|
4
4
|
import { cn as m } from "../../utils.js";
|
|
5
|
-
import { EmbeddedChatPrimitiveImagePreviewModal as i,
|
|
5
|
+
import { EmbeddedChatPrimitiveImagePreviewModal as i, EmbeddedChatPrimitiveImagePreviewModalClose as r, EmbeddedChatPrimitiveImagePreviewModalContent as o, EmbeddedChatPrimitiveImagePreviewModalFileName as l, EmbeddedChatPrimitiveImagePreviewModalFooter as s, EmbeddedChatPrimitiveImagePreviewModalImage as n, EmbeddedChatPrimitiveImagePreviewModalOverlay as c } from "../../../primitives/components/embedded-chat/image-preview-modal.js";
|
|
6
6
|
const P = i, b = ({
|
|
7
7
|
className: e,
|
|
8
8
|
...a
|
|
9
9
|
}) => /* @__PURE__ */ t(
|
|
10
|
-
|
|
10
|
+
c,
|
|
11
11
|
{
|
|
12
12
|
className: m(d({ slot: "overlay" }), e),
|
|
13
13
|
...a
|
|
@@ -32,7 +32,7 @@ const P = i, b = ({
|
|
|
32
32
|
className: e,
|
|
33
33
|
...a
|
|
34
34
|
}) => /* @__PURE__ */ t(
|
|
35
|
-
|
|
35
|
+
n,
|
|
36
36
|
{
|
|
37
37
|
className: m("max-w-[calc(100vw_-_theme(spacing.20))] max-h-[calc(100vh_-_theme(spacing.20))] object-contain rounded-lg", e),
|
|
38
38
|
...a
|
|
@@ -50,7 +50,7 @@ const P = i, b = ({
|
|
|
50
50
|
className: e,
|
|
51
51
|
...a
|
|
52
52
|
}) => /* @__PURE__ */ t(
|
|
53
|
-
|
|
53
|
+
l,
|
|
54
54
|
{
|
|
55
55
|
className: m("text-sm text-center text-gray-800 dark:text-white truncate min-w-0", e),
|
|
56
56
|
...a
|
|
@@ -59,7 +59,7 @@ const P = i, b = ({
|
|
|
59
59
|
className: e,
|
|
60
60
|
...a
|
|
61
61
|
}) => /* @__PURE__ */ t(
|
|
62
|
-
|
|
62
|
+
r,
|
|
63
63
|
{
|
|
64
64
|
"aria-label": "Close preview",
|
|
65
65
|
className: m(d({ slot: "close" }), "fixed top-2 right-2 text-gray-700 dark:text-gray-50 hover:bg-white-alpha-100", e),
|