@inkeep/agents-ui 0.0.0-dev-20260331222651 → 0.0.0-dev-20260402200940
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/index.cjs +1 -1
- package/dist/index.js +78 -77
- package/dist/primitives/atoms/dialog.cjs +1 -1
- package/dist/primitives/atoms/dialog.js +110 -106
- package/dist/primitives/atoms/file-upload.cjs +1 -0
- package/dist/primitives/atoms/file-upload.d.ts +35 -0
- package/dist/primitives/atoms/file-upload.js +45 -0
- package/dist/primitives/atoms/icons/built-in-icons.cjs +1 -1
- package/dist/primitives/atoms/icons/built-in-icons.d.ts +8 -1
- package/dist/primitives/atoms/icons/built-in-icons.js +86 -79
- package/dist/primitives/atoms/icons/collections/pi.cjs +1 -1
- package/dist/primitives/atoms/icons/collections/pi.d.ts +6 -0
- package/dist/primitives/atoms/icons/collections/pi.js +103 -13
- package/dist/primitives/atoms/icons/inkeep-default-icons.cjs +1 -1
- package/dist/primitives/atoms/icons/inkeep-default-icons.js +9 -1
- package/dist/primitives/components/embedded-chat/file-upload-input.cjs +1 -0
- package/dist/primitives/components/embedded-chat/file-upload-input.d.ts +68 -0
- package/dist/primitives/components/embedded-chat/file-upload-input.js +328 -0
- package/dist/primitives/components/embedded-chat/image-preview-modal.cjs +1 -0
- package/dist/primitives/components/embedded-chat/image-preview-modal.d.ts +15 -0
- package/dist/primitives/components/embedded-chat/image-preview-modal.js +71 -0
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +3 -3
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.d.ts +6 -0
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +295 -250
- package/dist/primitives/components/embedded-chat.cjs +5 -5
- package/dist/primitives/components/embedded-chat.d.ts +6 -5
- package/dist/primitives/components/embedded-chat.js +934 -907
- package/dist/primitives/components/embedded-search.d.ts +1 -1
- package/dist/primitives/hooks/index.cjs +1 -1
- package/dist/primitives/hooks/index.js +15 -14
- package/dist/primitives/hooks/use-input-notification.cjs +1 -0
- package/dist/primitives/hooks/use-input-notification.d.ts +9 -0
- package/dist/primitives/hooks/use-input-notification.js +18 -0
- package/dist/primitives/hooks/use-scrolling-fades.cjs +1 -1
- package/dist/primitives/hooks/use-scrolling-fades.d.ts +1 -0
- package/dist/primitives/hooks/use-scrolling-fades.js +21 -5
- package/dist/primitives/index.cjs +1 -1
- package/dist/primitives/index.js +69 -68
- package/dist/primitives/providers/base-events-provider.cjs +1 -1
- package/dist/primitives/providers/base-events-provider.js +1 -1
- package/dist/primitives/providers/image-preview-provider.cjs +1 -0
- package/dist/primitives/providers/image-preview-provider.d.ts +15 -0
- package/dist/primitives/providers/image-preview-provider.js +23 -0
- package/dist/primitives/utils/component-ids.cjs +1 -1
- package/dist/primitives/utils/component-ids.d.ts +54 -0
- package/dist/primitives/utils/component-ids.js +37 -10
- package/dist/react/embedded-chat.cjs +1 -1
- package/dist/react/embedded-chat.js +305 -260
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.js +78 -77
- package/dist/styled/components/chat-history.cjs +1 -1
- package/dist/styled/components/chat-history.d.ts +1 -1
- package/dist/styled/components/chat-history.js +31 -29
- package/dist/styled/components/embedded-chat/file-upload-input.cjs +1 -0
- package/dist/styled/components/embedded-chat/file-upload-input.d.ts +20 -0
- package/dist/styled/components/embedded-chat/file-upload-input.js +300 -0
- package/dist/styled/components/embedded-chat/image-preview-modal.cjs +1 -0
- package/dist/styled/components/embedded-chat/image-preview-modal.d.ts +11 -0
- package/dist/styled/components/embedded-chat/image-preview-modal.js +77 -0
- package/dist/styled/components/embedded-chat.cjs +1 -1
- package/dist/styled/components/embedded-chat.d.ts +2 -0
- package/dist/styled/components/embedded-chat.js +479 -449
- package/dist/styled/components/message.cjs +1 -1
- package/dist/styled/components/message.js +89 -88
- package/dist/styled/index.cjs +1 -1
- package/dist/styled/index.js +77 -76
- package/dist/styled/inkeep.css.cjs +253 -7
- package/dist/styled/inkeep.css.js +253 -7
- package/dist/types/icons/built-in.d.ts +1 -1
- package/dist/types/icons/custom.d.ts +8 -0
- package/package.json +7 -6
package/dist/styled/index.js
CHANGED
|
@@ -11,28 +11,28 @@ import { LoadingIndicator as v } from "./components/loading-indicator.js";
|
|
|
11
11
|
import { widgetToggle as g } from "./components/ui/recipes/widget-toggle.js";
|
|
12
12
|
import { EmbeddedChatMessagePart as M } from "./components/message.js";
|
|
13
13
|
import { DataSummaryGroup as k } from "./components/data-summary-group.js";
|
|
14
|
-
import { AttachmentItemProvider as
|
|
15
|
-
import { AttachmentsBarProvider as
|
|
14
|
+
import { AttachmentItemProvider as H, useAttachmentItem as w } from "../primitives/providers/attachment-item-provider.js";
|
|
15
|
+
import { AttachmentsBarProvider as E, useAttachmentsBar as R } from "../primitives/providers/attachments-bar-provider.js";
|
|
16
16
|
import { BaseEventsProvider as D, useBaseEvents as O } from "../primitives/providers/base-events-provider.js";
|
|
17
|
-
import { ChatFormProvider as W, useChatForm as
|
|
17
|
+
import { ChatFormProvider as W, useChatForm as z, useChatFormState as L } from "../primitives/providers/chat-form-provider.js";
|
|
18
18
|
import { ChatHistoryProvider as G, useChatHistory as K } from "../primitives/providers/chat-history-provider.js";
|
|
19
19
|
import { InkeepConfigProvider as Q, WebWidgetInteractionType as U, useInkeepConfig as q } from "../primitives/providers/config-provider.js";
|
|
20
20
|
import { FeedbackItemProvider as V, useFeedbackItem as X } from "../primitives/providers/feedback-item-provider.js";
|
|
21
21
|
import { FeedbackProvider as Z, useMessageFeedback as _ } from "../primitives/providers/feedback-provider.js";
|
|
22
22
|
import { FormFieldProvider as oe, useFormField as re } from "../primitives/providers/form-field-provider.js";
|
|
23
23
|
import { HelpMenuProvider as ae, useHelpMenu as me, useHelpMenuState as se } from "../primitives/providers/help-menu-provider.js";
|
|
24
|
-
import { ChatMarkdownProvider as
|
|
24
|
+
import { ChatMarkdownProvider as ie, useChatMarkdown as de } from "../primitives/providers/markdown-provider.js";
|
|
25
25
|
import { MessageAttachmentsProvider as ue, useMessageAttachments as fe } from "../primitives/providers/message-attachments-provider.js";
|
|
26
26
|
import { MessageProvider as Ce, useMessage as he, useOptionalMessage as le } from "../primitives/providers/message-provider.js";
|
|
27
27
|
import { RootProvider as ce } from "../primitives/providers/root-provider.js";
|
|
28
28
|
import { SourceItemProvider as Pe, useSourceItem as ve } from "../primitives/providers/source-item-provider.js";
|
|
29
29
|
import { ThemeProvider as ge } from "../primitives/providers/theme-provider.js";
|
|
30
30
|
import { WidgetProvider as Me, useWidget as ye } from "../primitives/providers/widget-provider.js";
|
|
31
|
-
import { SidebarChatProvider as Fe, useInkeepSidebarChat as
|
|
31
|
+
import { SidebarChatProvider as Fe, useInkeepSidebarChat as He, useOptionalSidebarChat as we, useSidebarChat as Ae } from "../primitives/providers/sidebar-chat-provider.js";
|
|
32
32
|
import { ChatBubbleProvider as Re, useChatBubble as $e, useInkeepChatBubble as De, useOptionalChatBubble as Oe } from "../primitives/providers/chat-bubble-provider.js";
|
|
33
|
-
import { ikp as We, jsxFactory as
|
|
34
|
-
import * as
|
|
35
|
-
import * as
|
|
33
|
+
import { ikp as We, jsxFactory as ze } from "../primitives/components/factory.js";
|
|
34
|
+
import * as i from "../primitives/components/embedded-chat.js";
|
|
35
|
+
import * as d from "../primitives/components/sidebar-chat/index.js";
|
|
36
36
|
import { ChatProvider as je, useChat as Ge } from "../primitives/components/embedded-chat/chat-provider.js";
|
|
37
37
|
import * as n from "../primitives/components/embedded-search.js";
|
|
38
38
|
import { SearchProvider as Ne, SearchProviderImpl as Qe, useSearch as Ue } from "../primitives/components/embedded-search/search-provider.js";
|
|
@@ -52,25 +52,25 @@ import { useInstantUpdate as po } from "../primitives/hooks/use-instant-update.j
|
|
|
52
52
|
import { useIsMounted as no } from "../primitives/hooks/use-is-mounted.js";
|
|
53
53
|
import { useMediaQuery as fo } from "../primitives/hooks/use-media-query.js";
|
|
54
54
|
import { useResizeObserver as Co } from "../primitives/hooks/use-resize-observer.js";
|
|
55
|
-
import { useScrollingFades as lo } from "../primitives/hooks/use-scrolling-fades.js";
|
|
56
|
-
import { useSettleAction as
|
|
57
|
-
import { useSimpleScroll as
|
|
58
|
-
import { callAll as
|
|
59
|
-
import { ChatBubbleComponentIds as Ao, DataSummaryComponentIds as Eo, SearchBarComponentIds as
|
|
60
|
-
import { composeRefs as
|
|
61
|
-
import { mergeProps as
|
|
62
|
-
import { Portal as
|
|
63
|
-
import { CustomIcon as
|
|
64
|
-
import { BuiltInIconRenderer as
|
|
65
|
-
import { PortalWithTheme as
|
|
66
|
-
import { Command as
|
|
67
|
-
import { ErrorBoundary as
|
|
68
|
-
import { InkeepShadow as
|
|
55
|
+
import { useScrollingFades as lo, useScrollingFadesHorizontal as bo } from "../primitives/hooks/use-scrolling-fades.js";
|
|
56
|
+
import { useSettleAction as So } from "../primitives/hooks/use-settle-action.js";
|
|
57
|
+
import { useSimpleScroll as vo } from "../primitives/hooks/use-simple-scroll.js";
|
|
58
|
+
import { callAll as go, dataAttr as Bo, getInitials as Mo, getMessageContent as yo, isString as ko, maybeRender as Fo, toKebabCase as Ho } from "../primitives/utils/misc.js";
|
|
59
|
+
import { ChatBubbleComponentIds as Ao, DataSummaryComponentIds as Eo, SearchBarComponentIds as Ro, SidebarChatComponentIds as $o, aiChatComponentIds as Do, aiChatHistoryComponentIds as Oo, aiSearchComponentIds as To, chatButtonComponentIds as Wo, componentIDs as zo, markDownComponentIds as Lo, miscellanousComponentIds as jo, modalComponentIds as Go } from "../primitives/utils/component-ids.js";
|
|
60
|
+
import { composeRefs as No, useComposedRefs as Qo } from "../primitives/utils/compose-refs.js";
|
|
61
|
+
import { mergeProps as qo } from "../primitives/utils/merge-props.js";
|
|
62
|
+
import { Portal as Vo } from "../primitives/atoms/portal.js";
|
|
63
|
+
import { CustomIcon as Yo } from "../primitives/atoms/icons/custom-icon.js";
|
|
64
|
+
import { BuiltInIconRenderer as _o } from "../primitives/atoms/icons/built-in-icon-renderer.js";
|
|
65
|
+
import { PortalWithTheme as or } from "../primitives/atoms/portal-with-theme.js";
|
|
66
|
+
import { Command as tr, CommandDialog as ar, CommandEmpty as mr, CommandInput as sr, CommandItem as pr, CommandList as ir, CommandLoading as dr, CommandRoot as nr, CommandSeparator as ur, defaultFilter as fr, useCommandState as xr, useCommandStore as Cr } from "../primitives/atoms/cmdk/index.js";
|
|
67
|
+
import { ErrorBoundary as lr } from "../primitives/atoms/error-boundary.js";
|
|
68
|
+
import { InkeepShadow as cr, InkeepShadowProvider as Sr, ShadowContext as Pr, useShadow as vr } from "../primitives/atoms/shadow/context.js";
|
|
69
69
|
export {
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
H as AttachmentItemProvider,
|
|
71
|
+
E as AttachmentsBarProvider,
|
|
72
72
|
D as BaseEventsProvider,
|
|
73
|
-
|
|
73
|
+
_o as BuiltInIconRenderer,
|
|
74
74
|
t as ChatBubble,
|
|
75
75
|
Ao as ChatBubbleComponentIds,
|
|
76
76
|
C as ChatBubblePrimitive,
|
|
@@ -81,92 +81,92 @@ export {
|
|
|
81
81
|
o as ChatHistory,
|
|
82
82
|
l as ChatHistoryPrimitive,
|
|
83
83
|
G as ChatHistoryProvider,
|
|
84
|
-
|
|
84
|
+
ie as ChatMarkdownProvider,
|
|
85
85
|
je as ChatProvider,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
86
|
+
tr as Command,
|
|
87
|
+
ar as CommandDialog,
|
|
88
|
+
mr as CommandEmpty,
|
|
89
|
+
sr as CommandInput,
|
|
90
|
+
pr as CommandItem,
|
|
91
|
+
ir as CommandList,
|
|
92
92
|
dr as CommandLoading,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
nr as CommandRoot,
|
|
94
|
+
ur as CommandSeparator,
|
|
95
|
+
Yo as CustomIcon,
|
|
96
96
|
Eo as DataSummaryComponentIds,
|
|
97
97
|
k as DataSummaryGroup,
|
|
98
98
|
h as DataSummaryPrimitive,
|
|
99
99
|
e as EmbeddedChat,
|
|
100
100
|
M as EmbeddedChatMessagePart,
|
|
101
|
-
|
|
101
|
+
i as EmbeddedChatPrimitive,
|
|
102
102
|
a as EmbeddedSearch,
|
|
103
103
|
n as EmbeddedSearchPrimitive,
|
|
104
|
-
|
|
104
|
+
lr as ErrorBoundary,
|
|
105
105
|
V as FeedbackItemProvider,
|
|
106
106
|
Z as FeedbackProvider,
|
|
107
107
|
oe as FormFieldProvider,
|
|
108
108
|
ae as HelpMenuProvider,
|
|
109
109
|
Q as InkeepConfigProvider,
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
cr as InkeepShadow,
|
|
111
|
+
Sr as InkeepShadowProvider,
|
|
112
112
|
v as LoadingIndicator,
|
|
113
113
|
ue as MessageAttachmentsProvider,
|
|
114
114
|
Ce as MessageProvider,
|
|
115
115
|
m as Modal,
|
|
116
116
|
u as ModalPrimitive,
|
|
117
117
|
Je as ModalProvider,
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
Vo as Portal,
|
|
119
|
+
or as PortalWithTheme,
|
|
120
120
|
ce as RootProvider,
|
|
121
121
|
p as SearchBar,
|
|
122
|
-
|
|
122
|
+
Ro as SearchBarComponentIds,
|
|
123
123
|
x as SearchBarPrimitive,
|
|
124
124
|
Ne as SearchProvider,
|
|
125
125
|
Qe as SearchProviderImpl,
|
|
126
126
|
S as Shadow,
|
|
127
|
-
|
|
127
|
+
Pr as ShadowContext,
|
|
128
128
|
r as SidebarChat,
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
$o as SidebarChatComponentIds,
|
|
130
|
+
d as SidebarChatPrimitive,
|
|
131
131
|
Fe as SidebarChatProvider,
|
|
132
132
|
Pe as SourceItemProvider,
|
|
133
133
|
ge as ThemeProvider,
|
|
134
134
|
U as WebWidgetInteractionType,
|
|
135
135
|
Me as WidgetProvider,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
136
|
+
Do as aiChatComponentIds,
|
|
137
|
+
Oo as aiChatHistoryComponentIds,
|
|
138
|
+
To as aiSearchComponentIds,
|
|
139
|
+
go as callAll,
|
|
140
|
+
Wo as chatButtonComponentIds,
|
|
141
|
+
zo as componentIDs,
|
|
142
|
+
No as composeRefs,
|
|
143
|
+
Bo as dataAttr,
|
|
144
|
+
fr as defaultFilter,
|
|
145
|
+
Mo as getInitials,
|
|
146
|
+
yo as getMessageContent,
|
|
147
147
|
We as ikp,
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
ko as isString,
|
|
149
|
+
ze as jsxFactory,
|
|
150
150
|
Lo as markDownComponentIds,
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
151
|
+
Fo as maybeRender,
|
|
152
|
+
qo as mergeProps,
|
|
153
|
+
jo as miscellanousComponentIds,
|
|
154
|
+
Go as modalComponentIds,
|
|
155
|
+
Ho as toKebabCase,
|
|
156
|
+
w as useAttachmentItem,
|
|
157
157
|
R as useAttachmentsBar,
|
|
158
158
|
O as useBaseEvents,
|
|
159
159
|
Ye as useBoolean,
|
|
160
160
|
Ge as useChat,
|
|
161
161
|
$e as useChatBubble,
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
z as useChatForm,
|
|
163
|
+
L as useChatFormState,
|
|
164
164
|
K as useChatHistory,
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
165
|
+
de as useChatMarkdown,
|
|
166
|
+
xr as useCommandState,
|
|
167
|
+
Cr as useCommandStore,
|
|
168
168
|
_e as useComponentClassNames,
|
|
169
|
-
|
|
169
|
+
Qo as useComposedRefs,
|
|
170
170
|
oo as useContainerSize,
|
|
171
171
|
mo as useCopyToClipboard,
|
|
172
172
|
X as useFeedbackItem,
|
|
@@ -176,7 +176,7 @@ export {
|
|
|
176
176
|
De as useInkeepChatBubble,
|
|
177
177
|
q as useInkeepConfig,
|
|
178
178
|
to as useInkeepOpenState,
|
|
179
|
-
|
|
179
|
+
He as useInkeepSidebarChat,
|
|
180
180
|
po as useInstantUpdate,
|
|
181
181
|
no as useIsMounted,
|
|
182
182
|
fo as useMediaQuery,
|
|
@@ -186,14 +186,15 @@ export {
|
|
|
186
186
|
Ve as useModal,
|
|
187
187
|
Oe as useOptionalChatBubble,
|
|
188
188
|
le as useOptionalMessage,
|
|
189
|
-
|
|
189
|
+
we as useOptionalSidebarChat,
|
|
190
190
|
Co as useResizeObserver,
|
|
191
191
|
lo as useScrollingFades,
|
|
192
|
+
bo as useScrollingFadesHorizontal,
|
|
192
193
|
Ue as useSearch,
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
194
|
+
So as useSettleAction,
|
|
195
|
+
vr as useShadow,
|
|
196
|
+
Ae as useSidebarChat,
|
|
197
|
+
vo as useSimpleScroll,
|
|
197
198
|
ve as useSourceItem,
|
|
198
199
|
ye as useWidget,
|
|
199
200
|
g as widgetToggle
|