@inkeep/agents-ui 0.0.0-dev-20260506222442 → 0.0.0-dev-20260506225821
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/primitives/atoms/icons/built-in-icons.cjs +1 -1
- package/dist/primitives/atoms/icons/built-in-icons.d.ts +4 -1
- package/dist/primitives/atoms/icons/built-in-icons.js +94 -91
- package/dist/primitives/atoms/icons/collections/pi.cjs +1 -1
- package/dist/primitives/atoms/icons/collections/pi.d.ts +3 -0
- package/dist/primitives/atoms/icons/collections/pi.js +82 -37
- package/dist/primitives/atoms/icons/inkeep-default-icons.cjs +1 -1
- package/dist/primitives/atoms/icons/inkeep-default-icons.js +4 -1
- package/dist/primitives/components/embedded-chat/file-upload-input.cjs +1 -1
- package/dist/primitives/components/embedded-chat/file-upload-input.d.ts +0 -1
- package/dist/primitives/components/embedded-chat/file-upload-input.js +346 -207
- package/dist/primitives/components/embedded-chat.js +6 -1
- package/dist/primitives/components/tagline-logo-icon.js +50 -9
- package/dist/primitives/hooks/use-initial-conversation.js +4 -1
- package/dist/primitives/hooks/use-input-notification.js +9 -9
- package/dist/styled/components/embedded-chat/image-preview-modal.js +9 -2
- package/dist/styled/components/embedded-chat.js +14 -2
- package/dist/styled/components/embedded-search.js +7 -1
- package/dist/types/icons/built-in.d.ts +1 -1
- package/dist/types/icons/custom.d.ts +3 -0
- package/package.json +1 -1
|
@@ -127,7 +127,12 @@ const Lo = Q((t, e) => {
|
|
|
127
127
|
}), vt = i(U.Viewport, {
|
|
128
128
|
_id: "aiChatContentScrollArea__Viewport"
|
|
129
129
|
}), Uo = Q(({ children: t, ...e }, o) => {
|
|
130
|
-
const { messages: r, isStreaming: n } = F(), {
|
|
130
|
+
const { messages: r, isStreaming: n } = F(), {
|
|
131
|
+
aiChatSettings: { shouldAutoScroll: s = !0 }
|
|
132
|
+
} = p(), { containerRef: d, scrollToBottom: c, handleScroll: m, enableAutoScroll: l } = rt({
|
|
133
|
+
isStreaming: n,
|
|
134
|
+
enabled: s
|
|
135
|
+
}), u = X(o, d);
|
|
131
136
|
return W(() => {
|
|
132
137
|
r.length > 0 && (l(), c());
|
|
133
138
|
}, [r.length, c, l]), /* @__PURE__ */ a(
|
|
@@ -1,15 +1,56 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as r, jsx as C } from "react/jsx-runtime";
|
|
3
3
|
function t(l) {
|
|
4
|
-
return /* @__PURE__ */ r(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
return /* @__PURE__ */ r(
|
|
5
|
+
"svg",
|
|
6
|
+
{
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: "96",
|
|
9
|
+
height: "24",
|
|
10
|
+
viewBox: "0 0 96 24",
|
|
11
|
+
fill: "none",
|
|
12
|
+
...l,
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ C("title", { children: "Inkeep Logo" }),
|
|
15
|
+
/* @__PURE__ */ C("path", { d: "M0 0.367584H2.11421V17.5449H0V0.367584Z", fill: "currentColor" }),
|
|
16
|
+
/* @__PURE__ */ C(
|
|
17
|
+
"path",
|
|
18
|
+
{
|
|
19
|
+
d: "M5.10376 0.367608H7.21797V3.50535C8.1366 1.85621 10.9948 0.017334 14.1154 0.017334C15.2529 0.017334 16.3755 0.177881 17.2506 0.513534C18.1108 0.849218 18.8545 1.34542 19.4526 2.00213C20.0504 2.65888 20.5023 3.49077 20.8231 4.49776C21.1294 5.49016 21.2899 6.6431 21.2899 7.94198V17.5449H19.1753V8.17547C19.1753 7.12471 19.0588 6.21985 18.8254 5.44635C18.5921 4.67289 18.2422 4.03073 17.79 3.50535C17.3381 2.97994 16.7693 2.60052 16.0841 2.35241C15.4133 2.10432 14.6403 1.98754 13.7655 1.98754C12.7591 1.98754 11.855 2.1335 11.0532 2.43998C10.2511 2.74645 9.56586 3.16967 8.99713 3.72426C8.42839 4.27885 7.99102 4.93557 7.69923 5.67988C7.39292 6.42417 7.24734 7.27064 7.24734 8.19006V17.5595H5.13281V0.367608H5.10376Z",
|
|
20
|
+
fill: "currentColor"
|
|
21
|
+
}
|
|
22
|
+
),
|
|
23
|
+
/* @__PURE__ */ C(
|
|
24
|
+
"path",
|
|
25
|
+
{
|
|
26
|
+
d: "M39.7064 5.32961C40.1441 4.23505 40.7419 3.28645 41.5146 2.48374C42.2876 1.69566 43.2063 1.08271 44.2708 0.659492C45.3353 0.236239 46.5164 0.017334 47.7994 0.017334C49.0828 0.017334 50.2493 0.236239 51.3138 0.674081C52.3784 1.11189 53.297 1.72487 54.0697 2.49837C54.8573 3.28645 55.4551 4.22046 55.878 5.32961C56.3011 6.43879 56.5196 7.66468 56.5196 9.00736V9.67869H40.8584V7.81064H54.8718L54.42 8.99277C54.42 7.94198 54.2595 6.97876 53.9242 6.11769C53.5888 5.25666 53.1366 4.51234 52.5679 3.88481C51.9846 3.25724 51.2993 2.79022 50.4827 2.45457C49.6661 2.11891 48.7765 1.95837 47.8143 1.95837C46.8517 1.95837 45.9331 2.1335 45.1165 2.46916C44.2998 2.80484 43.6001 3.28645 43.0165 3.8994C42.4332 4.51234 41.9668 5.24204 41.6314 6.1031C41.2961 6.96417 41.1356 7.89818 41.1356 8.93438C41.1356 9.97058 41.3106 10.9338 41.646 11.7948C41.9813 12.6559 42.4626 13.3856 43.0604 13.9986C43.6582 14.6115 44.3728 15.0785 45.1894 15.4288C46.0061 15.7644 46.9102 15.9396 47.9017 15.9396C49.4472 15.9396 50.7596 15.5455 51.8535 14.772C52.9471 13.9986 53.7199 12.904 54.2011 11.5175L56.2572 12.218C55.6594 13.9694 54.624 15.3558 53.1805 16.3774C51.7222 17.399 49.9869 17.9098 47.9453 17.9098C46.6474 17.9098 45.4373 17.6909 44.3583 17.2677C43.2644 16.8444 42.3312 16.2315 41.544 15.4434C40.7564 14.6553 40.1441 13.7067 39.7064 12.6121C39.269 11.5175 39.0356 10.3062 39.0356 8.94897C39.0356 7.5917 39.2545 6.43879 39.6919 5.32961H39.7064Z",
|
|
27
|
+
fill: "currentColor"
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
/* @__PURE__ */ C(
|
|
31
|
+
"path",
|
|
32
|
+
{
|
|
33
|
+
d: "M58.9549 5.32961C59.3926 4.23505 59.9904 3.28645 60.7631 2.48374C61.5362 1.68107 62.4548 1.08271 63.5193 0.659492C64.5839 0.236239 65.7649 0.017334 67.048 0.017334C68.3313 0.017334 69.4979 0.236239 70.5624 0.674081C71.6269 1.11189 72.5456 1.72487 73.3186 2.49837C74.1059 3.28645 74.7037 4.22046 75.1265 5.32961C75.5497 6.43879 75.7682 7.66468 75.7682 9.00736V9.67869H60.1069V7.81064H74.1204L73.6685 8.99277C73.6685 7.94198 73.5081 6.97876 73.1727 6.11769C72.8373 5.25666 72.3851 4.51234 71.8019 3.88481C71.2186 3.25724 70.5333 2.79022 69.7167 2.45457C68.9001 2.11891 68.0105 1.95837 67.048 1.95837C66.0858 1.95837 65.1671 2.1335 64.3505 2.46916C63.5339 2.80484 62.8338 3.28645 62.2505 3.8994C61.6672 4.51234 61.2008 5.24204 60.8654 6.1031C60.5298 6.96417 60.3697 7.89818 60.3697 8.93438C60.3697 9.97058 60.5446 10.9338 60.88 11.7948C61.2153 12.6559 61.6966 13.3856 62.2944 13.9986C62.8922 14.6115 63.6068 15.0785 64.4234 15.4288C65.2401 15.7644 66.1442 15.9396 67.1358 15.9396C68.6812 15.9396 69.9937 15.5455 71.0872 14.772C72.1811 13.9986 72.9539 12.904 73.4351 11.5175L75.4912 12.218C74.8934 13.9694 73.8725 15.3558 72.4145 16.3774C70.9562 17.399 69.2209 17.9098 67.1793 17.9098C65.8814 17.9098 64.6713 17.6909 63.5923 17.2677C62.4984 16.8444 61.5652 16.2315 60.7925 15.4434C60.0049 14.6553 59.3926 13.7067 58.9549 12.6121C58.503 11.5175 58.2842 10.3062 58.2842 8.94897C58.2842 7.5917 58.503 6.43879 58.9404 5.32961H58.9549Z",
|
|
34
|
+
fill: "currentColor"
|
|
35
|
+
}
|
|
36
|
+
),
|
|
37
|
+
/* @__PURE__ */ C(
|
|
38
|
+
"path",
|
|
39
|
+
{
|
|
40
|
+
d: "M78.0583 0.367608H80.1729V4.24964C80.8875 2.97994 81.7622 2.0897 83.0311 1.25785C84.2851 0.440587 85.7725 0.017334 87.4932 0.017334C88.7181 0.017334 89.8117 0.22165 90.8178 0.644902C91.8094 1.06812 92.6551 1.65189 93.3552 2.4108C94.055 3.16967 94.5801 4.10371 94.9591 5.21286C95.3384 6.32201 95.5278 7.57711 95.5278 8.96356C95.5278 10.35 95.3384 11.6051 94.9591 12.6997C94.5801 13.8088 94.055 14.7429 93.3552 15.5018C92.6551 16.2753 91.8239 16.859 90.8323 17.2677C89.8553 17.6763 88.7472 17.8806 87.5222 17.8806C85.816 17.8806 84.3141 17.4574 83.0456 16.6255C81.7771 15.7936 80.8875 14.7429 80.1729 13.6483V23.9372H78.0583V0.367608ZM80.6832 11.824C81.0186 12.6851 81.4998 13.4294 82.1125 14.0423C82.7248 14.6553 83.4539 15.1223 84.3141 15.458C85.1747 15.7936 86.0933 15.9542 87.0703 15.9542C88.0474 15.9542 88.9076 15.7936 89.6952 15.4872C90.4825 15.1807 91.1532 14.7283 91.7074 14.1153C92.2616 13.5023 92.6699 12.7872 92.9759 11.9262C93.2822 11.0651 93.4281 10.1019 93.4281 9.00736C93.4281 7.9128 93.2677 6.90578 92.9614 6.03012C92.6551 5.16909 92.2177 4.42478 91.6784 3.81183C91.1387 3.19888 90.4679 2.74645 89.6658 2.42539C88.8786 2.11891 88.0035 1.95837 87.041 1.95837C86.0788 1.95837 85.1163 2.11891 84.2851 2.45457C83.4539 2.79022 82.7248 3.25724 82.1125 3.87019C81.4998 4.48317 81.0334 5.21286 80.6832 6.07392C80.3333 6.93499 80.1729 7.89818 80.1729 8.96356C80.1729 10.0289 80.3478 10.9338 80.6832 11.8094V11.824Z",
|
|
41
|
+
fill: "currentColor"
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
/* @__PURE__ */ C(
|
|
45
|
+
"path",
|
|
46
|
+
{
|
|
47
|
+
d: "M39.8383 0.017334H36.7467L25.9268 9.60571V0.017334H23.8853V17.5449H25.9268V12.291L25.9559 12.3202L29.6453 9.05112L37.7677 17.5449H40.684L31.1765 7.69386L39.8383 0.017334Z",
|
|
48
|
+
fill: "currentColor"
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
);
|
|
13
54
|
}
|
|
14
55
|
export {
|
|
15
56
|
t as default
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useState as l, useRef as f, useCallback as n, useEffect as s } from "react";
|
|
3
3
|
function m() {
|
|
4
|
-
const [u, e] = l(null), t = f(null), i = n(
|
|
5
|
-
(r,
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
[]
|
|
9
|
-
), c = n(() => {
|
|
4
|
+
const [u, e] = l(null), t = f(null), i = n((r, o = 5e3) => {
|
|
5
|
+
t.current && clearTimeout(t.current), e(r), t.current = setTimeout(() => e(null), o);
|
|
6
|
+
}, []), c = n(() => {
|
|
10
7
|
t.current && clearTimeout(t.current), e(null);
|
|
11
8
|
}, []);
|
|
12
|
-
return s(
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
return s(
|
|
10
|
+
() => () => {
|
|
11
|
+
t.current && clearTimeout(t.current);
|
|
12
|
+
},
|
|
13
|
+
[]
|
|
14
|
+
), { inputNotification: u, showInputNotification: i, clearInputNotification: c };
|
|
15
15
|
}
|
|
16
16
|
export {
|
|
17
17
|
m as useInputNotification
|
|
@@ -34,7 +34,10 @@ const P = i, b = ({
|
|
|
34
34
|
}) => /* @__PURE__ */ t(
|
|
35
35
|
n,
|
|
36
36
|
{
|
|
37
|
-
className: m(
|
|
37
|
+
className: m(
|
|
38
|
+
"max-w-[calc(100vw_-_theme(spacing.20))] max-h-[calc(100vh_-_theme(spacing.20))] object-contain rounded-lg",
|
|
39
|
+
e
|
|
40
|
+
),
|
|
38
41
|
...a
|
|
39
42
|
}
|
|
40
43
|
), I = ({
|
|
@@ -62,7 +65,11 @@ const P = i, b = ({
|
|
|
62
65
|
r,
|
|
63
66
|
{
|
|
64
67
|
"aria-label": "Close preview",
|
|
65
|
-
className: m(
|
|
68
|
+
className: m(
|
|
69
|
+
d({ slot: "close" }),
|
|
70
|
+
"fixed top-2 right-2 text-gray-700 dark:text-gray-50 hover:bg-white-alpha-100",
|
|
71
|
+
e
|
|
72
|
+
),
|
|
66
73
|
...a
|
|
67
74
|
}
|
|
68
75
|
);
|
|
@@ -778,7 +778,13 @@ const Wa = Xt, Qa = C(
|
|
|
778
778
|
{
|
|
779
779
|
className: d("inline-flex items-center", e),
|
|
780
780
|
...t,
|
|
781
|
-
children: /* @__PURE__ */ a(
|
|
781
|
+
children: /* @__PURE__ */ a(
|
|
782
|
+
ma,
|
|
783
|
+
{
|
|
784
|
+
className: "text-gray-500 dark:text-white-alpha-600 ml-1 mt-0.5 w-11 h-auto",
|
|
785
|
+
"aria-hidden": "true"
|
|
786
|
+
}
|
|
787
|
+
)
|
|
782
788
|
}
|
|
783
789
|
), u = d(
|
|
784
790
|
o({ size: "xs", variant: "outline" }),
|
|
@@ -913,7 +919,13 @@ const Wa = Xt, Qa = C(
|
|
|
913
919
|
}) => /* @__PURE__ */ a(le, { className: d("flex flex-col gap-8", e), ...t }), uo = ({
|
|
914
920
|
className: e,
|
|
915
921
|
...t
|
|
916
|
-
}) => /* @__PURE__ */ a(
|
|
922
|
+
}) => /* @__PURE__ */ a(
|
|
923
|
+
me,
|
|
924
|
+
{
|
|
925
|
+
className: d("flex flex-col gap-2", e),
|
|
926
|
+
...t
|
|
927
|
+
}
|
|
928
|
+
), go = ({
|
|
917
929
|
className: e,
|
|
918
930
|
...t
|
|
919
931
|
}) => /* @__PURE__ */ a(
|
|
@@ -605,7 +605,13 @@ const ke = (e) => /* @__PURE__ */ a(ie, { ...e }), Re = ({ className: e, ...t })
|
|
|
605
605
|
{
|
|
606
606
|
className: r("inline-flex items-center", e),
|
|
607
607
|
...t,
|
|
608
|
-
children: /* @__PURE__ */ a(
|
|
608
|
+
children: /* @__PURE__ */ a(
|
|
609
|
+
de,
|
|
610
|
+
{
|
|
611
|
+
className: "text-gray-500 dark:text-white-alpha-600 ml-1 mt-0.5 w-11 h-auto",
|
|
612
|
+
"aria-hidden": "true"
|
|
613
|
+
}
|
|
614
|
+
)
|
|
609
615
|
}
|
|
610
616
|
);
|
|
611
617
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type AvailableBuiltInIcons = 'FaBook' | 'FaGithub' | 'FaDatabase' | 'FaStackOverflow' | 'FaChrome' | 'FaPhone' | 'FaEnvelope' | 'FaPencil' | 'FaBlog' | 'FaSort' | 'FaPenSquare' | 'FaChevronRight' | 'FaChevronUp' | 'FaFilePdf' | 'FaDiscourse' | 'FaDiscord' | 'FaSlack' | 'IoDocumentTextSharp' | 'IoDocumentSharp' | 'IoSend' | 'IoInformationCircleOutline' | 'IoLinkOutline' | 'IoThumbsUpSharp' | 'IoThumbsDownSharp' | 'IoSearch' | 'IoCopyOutline' | 'IoCopy' | 'IoReturnDownBackOutline' | 'IoChevronForwardOutline' | 'IoReturnDownForward' | 'IoCloseOutline' | 'IoCheckmarkOutline' | 'IoBookOutline' | 'IoReaderOutline' | 'IoHelpBuoyOutline' | 'IoPeopleOutline' | 'IoDocumentTextOutline' | 'IoChatbubblesOutline' | 'FaRegFilePdf' | 'IoLogoDiscord' | 'IoLogoGithub' | 'IoTerminal' | 'FaBriefcase' | 'IoPlayCircleOutline' | 'IoPencilOutline' | 'IoCheckmarkDoneOutline' | 'IoHomeOutline' | 'IoMail' | 'IoOpenOutline' | 'FaTelegram' | 'FaTable' | 'FaMagnifyingGlass' | 'LuArrowLeft' | 'LuCircleCheck' | 'LuCommand' | 'LuCopy' | 'LuCheck' | 'LuCornerDownLeft' | 'LuGlobe' | 'LuHistory' | 'LuPanelLeft' | 'LuLink' | 'LuRepeat' | 'LuThumbsDown' | 'LuThumbsUp' | 'LuUsers' | 'LuUser' | 'LuArrowUpRight' | 'LuBookOpen' | 'LuChevronDown' | 'LuLoaderCircle' | 'FiEdit' | 'LuSparkles' | 'LuCornerDownRight' | 'LuCalendar' | 'LuHeadset' | 'LuSend' | 'LuPaperclip' | 'PiFileCsv' | 'PiFileText' | 'PiFileHtml' | 'PiFileMarkdown' | 'PiFileLog' | 'PiFileJson';
|
|
1
|
+
export type AvailableBuiltInIcons = 'FaBook' | 'FaGithub' | 'FaDatabase' | 'FaStackOverflow' | 'FaChrome' | 'FaPhone' | 'FaEnvelope' | 'FaPencil' | 'FaBlog' | 'FaSort' | 'FaPenSquare' | 'FaChevronRight' | 'FaChevronUp' | 'FaFilePdf' | 'FaDiscourse' | 'FaDiscord' | 'FaSlack' | 'IoDocumentTextSharp' | 'IoDocumentSharp' | 'IoSend' | 'IoInformationCircleOutline' | 'IoLinkOutline' | 'IoThumbsUpSharp' | 'IoThumbsDownSharp' | 'IoSearch' | 'IoCopyOutline' | 'IoCopy' | 'IoReturnDownBackOutline' | 'IoChevronForwardOutline' | 'IoReturnDownForward' | 'IoCloseOutline' | 'IoCheckmarkOutline' | 'IoBookOutline' | 'IoReaderOutline' | 'IoHelpBuoyOutline' | 'IoPeopleOutline' | 'IoDocumentTextOutline' | 'IoChatbubblesOutline' | 'FaRegFilePdf' | 'IoLogoDiscord' | 'IoLogoGithub' | 'IoTerminal' | 'FaBriefcase' | 'IoPlayCircleOutline' | 'IoPencilOutline' | 'IoCheckmarkDoneOutline' | 'IoHomeOutline' | 'IoMail' | 'IoOpenOutline' | 'FaTelegram' | 'FaTable' | 'FaMagnifyingGlass' | 'LuArrowLeft' | 'LuCircleCheck' | 'LuCommand' | 'LuCopy' | 'LuCheck' | 'LuCornerDownLeft' | 'LuGlobe' | 'LuHistory' | 'LuPanelLeft' | 'LuLink' | 'LuRepeat' | 'LuThumbsDown' | 'LuThumbsUp' | 'LuUsers' | 'LuUser' | 'LuArrowUpRight' | 'LuBookOpen' | 'LuChevronDown' | 'LuLoaderCircle' | 'FiEdit' | 'LuSparkles' | 'LuCornerDownRight' | 'LuCalendar' | 'LuHeadset' | 'LuSend' | 'LuPaperclip' | 'PiFileCsv' | 'PiFileText' | 'PiFileHtml' | 'PiFileMarkdown' | 'PiFileLog' | 'PiFileJson' | 'PiFile' | 'PiFileSql' | 'PiFilePy';
|