@inkeep/agents-ui 0.15.0 → 0.15.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/index.cjs +1 -1
- package/dist/index.js +185 -182
- package/dist/primitives/components/data-summaries.cjs +1 -0
- package/dist/primitives/components/data-summaries.d.ts +14 -0
- package/dist/primitives/components/data-summaries.js +38 -0
- package/dist/primitives/components/index.cjs +1 -1
- package/dist/primitives/components/index.d.ts +1 -0
- package/dist/primitives/components/index.js +19 -17
- package/dist/primitives/index.cjs +1 -1
- package/dist/primitives/index.js +145 -142
- package/dist/primitives/providers/base-events-provider.cjs +1 -1
- package/dist/primitives/providers/base-events-provider.js +1 -1
- package/dist/primitives/utils/component-ids.cjs +1 -1
- package/dist/primitives/utils/component-ids.d.ts +24 -0
- package/dist/primitives/utils/component-ids.js +21 -7
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.js +185 -182
- package/dist/styled/components/data-summary-group.cjs +1 -1
- package/dist/styled/components/data-summary-group.js +62 -62
- package/dist/styled/index.cjs +1 -1
- package/dist/styled/index.js +149 -146
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { InkeepEmbeddedChat as
|
|
2
|
-
import { InkeepSidebarChat as
|
|
3
|
-
import { InkeepEmbeddedSearchAndChat as
|
|
4
|
-
import { InkeepEmbeddedSearch as
|
|
5
|
-
import { InkeepModalChat as
|
|
1
|
+
import { InkeepEmbeddedChat as I, InkeepEmbeddedChatImpl as b, InkeepEmbeddedChatImplContent as S, InkeepEmbeddedChatProvider as c } from "./embedded-chat.js";
|
|
2
|
+
import { InkeepSidebarChat as v } from "./sidebar-chat.js";
|
|
3
|
+
import { InkeepEmbeddedSearchAndChat as M, InkeepEmbeddedSearchAndChatImpl as B } from "./embedded-search-and-chat.js";
|
|
4
|
+
import { InkeepEmbeddedSearch as E, InkeepEmbeddedSearchImpl as F, InkeepEmbeddedSearchImplContent as A, InkeepEmbeddedSearchProvider as y } from "./embedded-search.js";
|
|
5
|
+
import { InkeepModalChat as D } from "./modal.chat.js";
|
|
6
6
|
import { InkeepModalSearchAndChat as $ } from "./modal.search-and-chat.js";
|
|
7
|
-
import { InkeepModalSearch as
|
|
8
|
-
import { InkeepModal as
|
|
9
|
-
import { ChatButtonImpl as
|
|
10
|
-
import { InkeepSearchBar as
|
|
7
|
+
import { InkeepModalSearch as T } from "./modal.search.js";
|
|
8
|
+
import { InkeepModal as H, ModalContent as L } from "./modal.js";
|
|
9
|
+
import { ChatButtonImpl as j, InkeepChatButton as G } from "./chat-button.js";
|
|
10
|
+
import { InkeepSearchBar as N, SearchBarImpl as Q } from "./searchbar.js";
|
|
11
11
|
import * as e from "../styled/components/embedded-chat.js";
|
|
12
12
|
import * as o from "../styled/components/sidebar-chat.js";
|
|
13
13
|
import * as r from "../styled/components/chat-bubble.js";
|
|
@@ -15,211 +15,214 @@ import * as t from "../styled/components/embedded-search.js";
|
|
|
15
15
|
import * as a from "../styled/components/modal.js";
|
|
16
16
|
import * as m from "../styled/components/chat-button.js";
|
|
17
17
|
import * as d from "../styled/components/searchbar.js";
|
|
18
|
-
import { Shadow as
|
|
19
|
-
import { LoadingIndicator as
|
|
20
|
-
import { widgetToggle as
|
|
21
|
-
import { EmbeddedChatMessagePart as
|
|
22
|
-
import { DataSummaryGroup as
|
|
23
|
-
import { AttachmentItemProvider as
|
|
24
|
-
import { AttachmentsBarProvider as
|
|
25
|
-
import { BaseEventsProvider as
|
|
26
|
-
import { ChatFormProvider as
|
|
27
|
-
import { InkeepConfigProvider as
|
|
28
|
-
import { FeedbackItemProvider as ce, useFeedbackItem as
|
|
29
|
-
import { FeedbackProvider as
|
|
30
|
-
import { FormFieldProvider as
|
|
31
|
-
import { HelpMenuProvider as
|
|
18
|
+
import { Shadow as V } from "../styled/components/shadow.js";
|
|
19
|
+
import { LoadingIndicator as J } from "../styled/components/loading-indicator.js";
|
|
20
|
+
import { widgetToggle as Y } from "../styled/components/ui/recipes/widget-toggle.js";
|
|
21
|
+
import { EmbeddedChatMessagePart as _ } from "../styled/components/message.js";
|
|
22
|
+
import { DataSummaryGroup as oe } from "../styled/components/data-summary-group.js";
|
|
23
|
+
import { AttachmentItemProvider as te, useAttachmentItem as ae } from "../primitives/providers/attachment-item-provider.js";
|
|
24
|
+
import { AttachmentsBarProvider as de, useAttachmentsBar as pe } from "../primitives/providers/attachments-bar-provider.js";
|
|
25
|
+
import { BaseEventsProvider as ne, useBaseEvents as ie } from "../primitives/providers/base-events-provider.js";
|
|
26
|
+
import { ChatFormProvider as fe, useChatForm as Ce, useChatFormState as xe } from "../primitives/providers/chat-form-provider.js";
|
|
27
|
+
import { InkeepConfigProvider as le, WebWidgetInteractionType as Ie, useInkeepConfig as be } from "../primitives/providers/config-provider.js";
|
|
28
|
+
import { FeedbackItemProvider as ce, useFeedbackItem as Pe } from "../primitives/providers/feedback-item-provider.js";
|
|
29
|
+
import { FeedbackProvider as ke, useMessageFeedback as Me } from "../primitives/providers/feedback-provider.js";
|
|
30
|
+
import { FormFieldProvider as ge, useFormField as Ee } from "../primitives/providers/form-field-provider.js";
|
|
31
|
+
import { HelpMenuProvider as Ae, useHelpMenu as ye, useHelpMenuState as we } from "../primitives/providers/help-menu-provider.js";
|
|
32
32
|
import { ChatMarkdownProvider as Re, useChatMarkdown as $e } from "../primitives/providers/markdown-provider.js";
|
|
33
|
-
import { MessageAttachmentsProvider as
|
|
34
|
-
import { MessageProvider as
|
|
35
|
-
import { RootProvider as
|
|
36
|
-
import { SourceItemProvider as
|
|
37
|
-
import { ThemeProvider as
|
|
38
|
-
import { WidgetProvider as
|
|
39
|
-
import { SidebarChatProvider as
|
|
40
|
-
import { ChatBubbleProvider as
|
|
41
|
-
import { ikp as
|
|
33
|
+
import { MessageAttachmentsProvider as Te, useMessageAttachments as We } from "../primitives/providers/message-attachments-provider.js";
|
|
34
|
+
import { MessageProvider as Le, useMessage as ze, useOptionalMessage as je } from "../primitives/providers/message-provider.js";
|
|
35
|
+
import { RootProvider as Ke } from "../primitives/providers/root-provider.js";
|
|
36
|
+
import { SourceItemProvider as Qe, useSourceItem as Ue } from "../primitives/providers/source-item-provider.js";
|
|
37
|
+
import { ThemeProvider as qe } from "../primitives/providers/theme-provider.js";
|
|
38
|
+
import { WidgetProvider as Xe, useWidget as Ye } from "../primitives/providers/widget-provider.js";
|
|
39
|
+
import { SidebarChatProvider as _e, useInkeepSidebarChat as eo, useOptionalSidebarChat as oo, useSidebarChat as ro } from "../primitives/providers/sidebar-chat-provider.js";
|
|
40
|
+
import { ChatBubbleProvider as ao, useChatBubble as mo, useInkeepChatBubble as po, useOptionalChatBubble as so } from "../primitives/providers/chat-bubble-provider.js";
|
|
41
|
+
import { ikp as io, jsxFactory as ho } from "../primitives/components/factory.js";
|
|
42
42
|
import * as p from "../primitives/components/embedded-chat.js";
|
|
43
43
|
import * as s from "../primitives/components/sidebar-chat/index.js";
|
|
44
|
-
import { ChatProvider as
|
|
44
|
+
import { ChatProvider as Co, useChat as xo } from "../primitives/components/embedded-chat/chat-provider.js";
|
|
45
45
|
import * as n from "../primitives/components/embedded-search.js";
|
|
46
|
-
import { SearchProvider as
|
|
46
|
+
import { SearchProvider as lo, SearchProviderImpl as Io, useSearch as bo } from "../primitives/components/embedded-search/search-provider.js";
|
|
47
47
|
import * as i from "../primitives/components/modal.js";
|
|
48
|
-
import { ModalProvider as co, useModal as
|
|
48
|
+
import { ModalProvider as co, useModal as Po } from "../primitives/components/modal/modal-provider.js";
|
|
49
49
|
import * as h from "../primitives/components/chat-button.js";
|
|
50
50
|
import * as f from "../primitives/components/searchbar.js";
|
|
51
51
|
import * as C from "../primitives/components/chat-bubble/index.js";
|
|
52
|
-
import
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
52
|
+
import * as x from "../primitives/components/data-summaries.js";
|
|
53
|
+
import { useBoolean as ko } from "../primitives/hooks/use-boolean.js";
|
|
54
|
+
import { useComponentClassNames as Bo } from "../primitives/hooks/use-component-classnames.js";
|
|
55
|
+
import { useContainerSize as Eo } from "../primitives/hooks/use-container-size.js";
|
|
56
|
+
import { useInkeepOpenState as Ao } from "../primitives/hooks/use-inkeep-open-state.js";
|
|
56
57
|
import { useCopyToClipboard as wo } from "../primitives/hooks/use-copy-to-clipboard.js";
|
|
57
58
|
import { useInstantUpdate as Ro } from "../primitives/hooks/use-instant-update.js";
|
|
58
|
-
import { useIsMounted as
|
|
59
|
-
import { useMediaQuery as
|
|
60
|
-
import { useResizeObserver as
|
|
61
|
-
import { useScrollingFades as
|
|
62
|
-
import { useSettleAction as
|
|
63
|
-
import { useSimpleScroll as
|
|
64
|
-
import { callAll as
|
|
65
|
-
import { ChatBubbleComponentIds as
|
|
66
|
-
import { composeRefs as
|
|
67
|
-
import { mergeProps as
|
|
68
|
-
import { Portal as
|
|
69
|
-
import { CustomIcon as
|
|
70
|
-
import { BuiltInIconRenderer as
|
|
71
|
-
import { PortalWithTheme as
|
|
72
|
-
import { Command as
|
|
73
|
-
import { ErrorBoundary as
|
|
74
|
-
import { ColorMode as
|
|
75
|
-
import { InkeepShadow as
|
|
59
|
+
import { useIsMounted as Oo } from "../primitives/hooks/use-is-mounted.js";
|
|
60
|
+
import { useMediaQuery as Wo } from "../primitives/hooks/use-media-query.js";
|
|
61
|
+
import { useResizeObserver as Lo } from "../primitives/hooks/use-resize-observer.js";
|
|
62
|
+
import { useScrollingFades as jo } from "../primitives/hooks/use-scrolling-fades.js";
|
|
63
|
+
import { useSettleAction as Ko } from "../primitives/hooks/use-settle-action.js";
|
|
64
|
+
import { useSimpleScroll as Qo } from "../primitives/hooks/use-simple-scroll.js";
|
|
65
|
+
import { callAll as Vo, dataAttr as qo, getInitials as Jo, getMessageContent as Xo, isString as Yo, maybeRender as Zo, toKebabCase as _o } from "../primitives/utils/misc.js";
|
|
66
|
+
import { ChatBubbleComponentIds as or, DataSummaryComponentIds as rr, SearchBarComponentIds as tr, SidebarChatComponentIds as ar, aiChatComponentIds as mr, aiSearchComponentIds as dr, chatButtonComponentIds as pr, componentIDs as sr, markDownComponentIds as nr, miscellanousComponentIds as ir, modalComponentIds as hr } from "../primitives/utils/component-ids.js";
|
|
67
|
+
import { composeRefs as Cr, useComposedRefs as xr } from "../primitives/utils/compose-refs.js";
|
|
68
|
+
import { mergeProps as lr } from "../primitives/utils/merge-props.js";
|
|
69
|
+
import { Portal as br } from "../primitives/atoms/portal.js";
|
|
70
|
+
import { CustomIcon as cr } from "../primitives/atoms/icons/custom-icon.js";
|
|
71
|
+
import { BuiltInIconRenderer as vr } from "../primitives/atoms/icons/built-in-icon-renderer.js";
|
|
72
|
+
import { PortalWithTheme as Mr } from "../primitives/atoms/portal-with-theme.js";
|
|
73
|
+
import { Command as gr, CommandDialog as Er, CommandEmpty as Fr, CommandInput as Ar, CommandItem as yr, CommandList as wr, CommandLoading as Dr, CommandRoot as Rr, CommandSeparator as $r, defaultFilter as Or, useCommandState as Tr, useCommandStore as Wr } from "../primitives/atoms/cmdk/index.js";
|
|
74
|
+
import { ErrorBoundary as Lr } from "../primitives/atoms/error-boundary.js";
|
|
75
|
+
import { ColorMode as jr, ColorModeProvider as Gr, DarkModeProvider as Kr, useColorMode as Nr, useColorModeValue as Qr } from "../color-mode/index.js";
|
|
76
|
+
import { InkeepShadow as Vr, InkeepShadowProvider as qr, ShadowContext as Jr, useShadow as Xr } from "../primitives/atoms/shadow/context.js";
|
|
76
77
|
export {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
te as AttachmentItemProvider,
|
|
79
|
+
de as AttachmentsBarProvider,
|
|
80
|
+
ne as BaseEventsProvider,
|
|
81
|
+
vr as BuiltInIconRenderer,
|
|
81
82
|
r as ChatBubble,
|
|
82
|
-
|
|
83
|
+
or as ChatBubbleComponentIds,
|
|
83
84
|
C as ChatBubblePrimitive,
|
|
84
|
-
|
|
85
|
+
ao as ChatBubbleProvider,
|
|
85
86
|
m as ChatButton,
|
|
86
|
-
|
|
87
|
+
j as ChatButtonImpl,
|
|
87
88
|
h as ChatButtonPrimitive,
|
|
88
|
-
|
|
89
|
+
fe as ChatFormProvider,
|
|
89
90
|
Re as ChatMarkdownProvider,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
91
|
+
Co as ChatProvider,
|
|
92
|
+
jr as ColorMode,
|
|
93
|
+
Gr as ColorModeProvider,
|
|
94
|
+
gr as Command,
|
|
95
|
+
Er as CommandDialog,
|
|
96
|
+
Fr as CommandEmpty,
|
|
97
|
+
Ar as CommandInput,
|
|
98
|
+
yr as CommandItem,
|
|
99
|
+
wr as CommandList,
|
|
100
|
+
Dr as CommandLoading,
|
|
101
|
+
Rr as CommandRoot,
|
|
102
|
+
$r as CommandSeparator,
|
|
103
|
+
cr as CustomIcon,
|
|
104
|
+
Kr as DarkModeProvider,
|
|
105
|
+
rr as DataSummaryComponentIds,
|
|
106
|
+
oe as DataSummaryGroup,
|
|
107
|
+
x as DataSummaryPrimitive,
|
|
105
108
|
e as EmbeddedChat,
|
|
106
|
-
|
|
109
|
+
_ as EmbeddedChatMessagePart,
|
|
107
110
|
p as EmbeddedChatPrimitive,
|
|
108
111
|
t as EmbeddedSearch,
|
|
109
112
|
n as EmbeddedSearchPrimitive,
|
|
110
|
-
|
|
113
|
+
Lr as ErrorBoundary,
|
|
111
114
|
ce as FeedbackItemProvider,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
115
|
+
ke as FeedbackProvider,
|
|
116
|
+
ge as FormFieldProvider,
|
|
117
|
+
Ae as HelpMenuProvider,
|
|
118
|
+
G as InkeepChatButton,
|
|
119
|
+
le as InkeepConfigProvider,
|
|
120
|
+
I as InkeepEmbeddedChat,
|
|
121
|
+
b as InkeepEmbeddedChatImpl,
|
|
122
|
+
S as InkeepEmbeddedChatImplContent,
|
|
120
123
|
c as InkeepEmbeddedChatProvider,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
124
|
+
E as InkeepEmbeddedSearch,
|
|
125
|
+
M as InkeepEmbeddedSearchAndChat,
|
|
126
|
+
B as InkeepEmbeddedSearchAndChatImpl,
|
|
127
|
+
F as InkeepEmbeddedSearchImpl,
|
|
128
|
+
A as InkeepEmbeddedSearchImplContent,
|
|
129
|
+
y as InkeepEmbeddedSearchProvider,
|
|
130
|
+
H as InkeepModal,
|
|
131
|
+
D as InkeepModalChat,
|
|
132
|
+
T as InkeepModalSearch,
|
|
130
133
|
$ as InkeepModalSearchAndChat,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
N as InkeepSearchBar,
|
|
135
|
+
Vr as InkeepShadow,
|
|
136
|
+
qr as InkeepShadowProvider,
|
|
137
|
+
v as InkeepSidebarChat,
|
|
138
|
+
J as LoadingIndicator,
|
|
139
|
+
Te as MessageAttachmentsProvider,
|
|
140
|
+
Le as MessageProvider,
|
|
138
141
|
a as Modal,
|
|
139
|
-
|
|
142
|
+
L as ModalContent,
|
|
140
143
|
i as ModalPrimitive,
|
|
141
144
|
co as ModalProvider,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
+
br as Portal,
|
|
146
|
+
Mr as PortalWithTheme,
|
|
147
|
+
Ke as RootProvider,
|
|
145
148
|
d as SearchBar,
|
|
146
|
-
|
|
147
|
-
|
|
149
|
+
tr as SearchBarComponentIds,
|
|
150
|
+
Q as SearchBarImpl,
|
|
148
151
|
f as SearchBarPrimitive,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
152
|
+
lo as SearchProvider,
|
|
153
|
+
Io as SearchProviderImpl,
|
|
154
|
+
V as Shadow,
|
|
155
|
+
Jr as ShadowContext,
|
|
153
156
|
o as SidebarChat,
|
|
154
|
-
|
|
157
|
+
ar as SidebarChatComponentIds,
|
|
155
158
|
s as SidebarChatPrimitive,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
159
|
+
_e as SidebarChatProvider,
|
|
160
|
+
Qe as SourceItemProvider,
|
|
161
|
+
qe as ThemeProvider,
|
|
162
|
+
Ie as WebWidgetInteractionType,
|
|
163
|
+
Xe as WidgetProvider,
|
|
164
|
+
mr as aiChatComponentIds,
|
|
165
|
+
dr as aiSearchComponentIds,
|
|
166
|
+
Vo as callAll,
|
|
167
|
+
pr as chatButtonComponentIds,
|
|
168
|
+
sr as componentIDs,
|
|
169
|
+
Cr as composeRefs,
|
|
170
|
+
qo as dataAttr,
|
|
171
|
+
Or as defaultFilter,
|
|
172
|
+
Jo as getInitials,
|
|
173
|
+
Xo as getMessageContent,
|
|
174
|
+
io as ikp,
|
|
175
|
+
Yo as isString,
|
|
176
|
+
ho as jsxFactory,
|
|
177
|
+
nr as markDownComponentIds,
|
|
178
|
+
Zo as maybeRender,
|
|
179
|
+
lr as mergeProps,
|
|
180
|
+
ir as miscellanousComponentIds,
|
|
181
|
+
hr as modalComponentIds,
|
|
182
|
+
_o as toKebabCase,
|
|
183
|
+
ae as useAttachmentItem,
|
|
184
|
+
pe as useAttachmentsBar,
|
|
185
|
+
ie as useBaseEvents,
|
|
186
|
+
ko as useBoolean,
|
|
187
|
+
xo as useChat,
|
|
188
|
+
mo as useChatBubble,
|
|
189
|
+
Ce as useChatForm,
|
|
190
|
+
xe as useChatFormState,
|
|
188
191
|
$e as useChatMarkdown,
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
192
|
+
Nr as useColorMode,
|
|
193
|
+
Qr as useColorModeValue,
|
|
194
|
+
Tr as useCommandState,
|
|
195
|
+
Wr as useCommandStore,
|
|
196
|
+
Bo as useComponentClassNames,
|
|
197
|
+
xr as useComposedRefs,
|
|
198
|
+
Eo as useContainerSize,
|
|
196
199
|
wo as useCopyToClipboard,
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
+
Pe as useFeedbackItem,
|
|
201
|
+
Ee as useFormField,
|
|
202
|
+
ye as useHelpMenu,
|
|
200
203
|
we as useHelpMenuState,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
204
|
+
po as useInkeepChatBubble,
|
|
205
|
+
be as useInkeepConfig,
|
|
206
|
+
Ao as useInkeepOpenState,
|
|
207
|
+
eo as useInkeepSidebarChat,
|
|
205
208
|
Ro as useInstantUpdate,
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
209
|
+
Oo as useIsMounted,
|
|
210
|
+
Wo as useMediaQuery,
|
|
211
|
+
ze as useMessage,
|
|
212
|
+
We as useMessageAttachments,
|
|
213
|
+
Me as useMessageFeedback,
|
|
214
|
+
Po as useModal,
|
|
215
|
+
so as useOptionalChatBubble,
|
|
216
|
+
je as useOptionalMessage,
|
|
217
|
+
oo as useOptionalSidebarChat,
|
|
218
|
+
Lo as useResizeObserver,
|
|
219
|
+
jo as useScrollingFades,
|
|
220
|
+
bo as useSearch,
|
|
221
|
+
Ko as useSettleAction,
|
|
222
|
+
Xr as useShadow,
|
|
223
|
+
ro as useSidebarChat,
|
|
224
|
+
Qo as useSimpleScroll,
|
|
225
|
+
Ue as useSourceItem,
|
|
226
|
+
Ye as useWidget,
|
|
227
|
+
Y as widgetToggle
|
|
225
228
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),a=require("lucide-react"),r=require("../../primitives/components/data-summaries.cjs"),m=t=>{const{type:l,label:s}=t;return s||l.replace(/_/g," ").replace(/\b\w/g,i=>i.toUpperCase())},d={agent_generate:e.jsx(a.RefreshCw,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),agent_reasoning:e.jsx(a.Brain,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),tool_call:e.jsx(a.Hammer,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),tool_result:e.jsx(a.Hammer,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),transfer:e.jsx(a.ArrowRight,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),delegation_sent:e.jsx(a.Forward,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),delegation_returned:e.jsx(a.CheckCheck,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),artifact_saved:e.jsx(a.Download,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),error:e.jsx(a.TriangleAlert,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),agent_initializing:e.jsx(a.CircleDot,{className:"w-3 h-3 animate-spin"}),completion:e.jsx(a.CheckCheck,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),default:e.jsx(a.Dot,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"})},h={retrieve:e.jsx(a.Search,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),action:e.jsx(a.CheckCheck,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),...d},p=n.memo(({summary:t,showConnector:l})=>{const s=n.useMemo(()=>t.details?JSON.stringify(t.details,null,2):null,[t.details]),i=n.useMemo(()=>m(t),[t]),c=n.useMemo(()=>h[t.type]||h.default,[t.type]);return e.jsxs(r.DataSummaryItem,{className:"flex items-start gap-2 text-xs relative",children:[l&&e.jsx(r.DataSummaryConnector,{className:"absolute left-1.5 top-4 bottom-0 w-px bg-gray-200 dark:bg-white-alpha-200 -mb-3"}),e.jsx(r.DataSummaryIconContainer,{className:"flex items-center justify-center w-3 h-3 relative z-10 mt-0.5",children:c}),e.jsxs(r.DataSummaryContent,{className:"flex-1",children:[e.jsx(r.DataSummaryLabel,{className:"text-gray-700 dark:text-white-alpha-600",children:i}),s&&e.jsx(r.DataSummaryDetails,{className:"mt-2 text-xs whitespace-pre-wrap font-mono bg-gray-50 dark:bg-gray-dark-900 p-2 rounded-md px-3 py-2",children:s})]})]})}),u=n.memo(({summaries:t,isCompleted:l})=>{const[s,i]=n.useState(!l);n.useEffect(()=>{let o;return l?o=setTimeout(()=>{i(!1)},1e3):i(!0),()=>{o&&clearTimeout(o)}},[l]);const c=n.useCallback(()=>{i(!s)},[s]);return e.jsxs(r.DataSummaryGroup,{className:"flex flex-col items-start mb-2.5 mt-2.5 first:mt-1 relative",children:[e.jsx(r.DataSummaryToggle,{type:"button",onClick:c,"data-expanded":s,className:"inline-flex items-center group gap-2 text-xs text-gray-500 dark:text-white-alpha-600 hover:text-gray-700 dark:hover:text-white-alpha-700 transition-colors cursor-pointer",children:l?e.jsxs(e.Fragment,{children:[e.jsx(a.Check,{className:"check-icon w-3 h-3 text-gray-500 dark:text-white-alpha-500 transition-all duration-200 absolute opacity-100 group-hover:opacity-0 group-data-[expanded=true]:opacity-0"}),e.jsx(a.ChevronRight,{className:"chevron-icon w-3 h-3 text-gray-500 dark:text-white-alpha-500 transition-all duration-200 transform opacity-0 rotate-0 group-hover:opacity-100 group-data-[expanded=true]:opacity-100 group-data-[expanded=true]:rotate-90"}),e.jsx(r.DataSummaryToggleText,{className:"font-medium",children:"Completed"})]}):e.jsxs(e.Fragment,{children:[e.jsx(a.LoaderCircle,{className:"w-3 h-3 animate-spin"}),e.jsx(r.DataSummaryToggleText,{className:"font-medium",children:"Thinking..."})]})}),e.jsx(r.DataSummaryCollapsible,{"data-expanded":s,className:"overflow-hidden transition-all duration-300 ease-in-out data-[expanded=true]:opacity-100 data-[expanded=false]:max-h-0 data-[expanded=false]:opacity-0 max-w-full",children:e.jsx(r.DataSummaryList,{className:"pb-2 mt-1.5 space-y-3 relative",children:t.map((o,x)=>e.jsx(p,{summary:o,showConnector:t.length>1&&x<t.length-1},`op-${o.type}-${x}`))})})]})});exports.DataSummaryGroup=u;
|
|
@@ -1,89 +1,89 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as s, jsx as
|
|
3
|
-
import { memo as
|
|
4
|
-
import { Check as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
2
|
+
import { jsxs as s, jsx as a, Fragment as h } from "react/jsx-runtime";
|
|
3
|
+
import { memo as g, useState as u, useEffect as y, useCallback as w, useMemo as n } from "react";
|
|
4
|
+
import { Check as f, ChevronRight as N, LoaderCircle as D, CheckCheck as m, Search as S, Dot as k, CircleDot as v, TriangleAlert as b, Download as C, Forward as P, ArrowRight as _, Hammer as d, Brain as T, RefreshCw as I } from "lucide-react";
|
|
5
|
+
import { DataSummaryGroup as A, DataSummaryToggle as L, DataSummaryToggleText as p, DataSummaryCollapsible as E, DataSummaryList as M, DataSummaryItem as O, DataSummaryConnector as R, DataSummaryIconContainer as j, DataSummaryContent as G, DataSummaryLabel as z, DataSummaryDetails as F } from "../../primitives/components/data-summaries.js";
|
|
6
|
+
const U = (t) => {
|
|
7
|
+
const { type: r, label: e } = t;
|
|
8
|
+
return e || r.replace(/_/g, " ").replace(/\b\w/g, (i) => i.toUpperCase());
|
|
9
|
+
}, $ = {
|
|
10
|
+
agent_generate: /* @__PURE__ */ a(I, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
|
|
11
|
+
agent_reasoning: /* @__PURE__ */ a(T, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
|
|
12
|
+
tool_call: /* @__PURE__ */ a(d, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
|
|
13
|
+
tool_result: /* @__PURE__ */ a(d, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
|
|
14
|
+
transfer: /* @__PURE__ */ a(_, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
|
|
15
|
+
delegation_sent: /* @__PURE__ */ a(P, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
|
|
16
|
+
delegation_returned: /* @__PURE__ */ a(m, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
|
|
17
|
+
artifact_saved: /* @__PURE__ */ a(C, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
|
|
18
|
+
error: /* @__PURE__ */ a(b, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
|
|
19
|
+
agent_initializing: /* @__PURE__ */ a(v, { className: "w-3 h-3 animate-spin" }),
|
|
20
|
+
completion: /* @__PURE__ */ a(m, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
|
|
21
|
+
default: /* @__PURE__ */ a(k, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" })
|
|
21
22
|
}, x = {
|
|
22
|
-
retrieve: /* @__PURE__ */
|
|
23
|
-
action: /* @__PURE__ */
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
const
|
|
23
|
+
retrieve: /* @__PURE__ */ a(S, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
|
|
24
|
+
action: /* @__PURE__ */ a(m, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
|
|
25
|
+
...$
|
|
26
|
+
}, B = g(({ summary: t, showConnector: r }) => {
|
|
27
|
+
const e = n(() => t.details ? JSON.stringify(t.details, null, 2) : null, [t.details]), i = n(() => U(t), [t]), o = n(
|
|
27
28
|
() => x[t.type] || x.default,
|
|
28
29
|
[t.type]
|
|
29
30
|
);
|
|
30
|
-
return /* @__PURE__ */ s(
|
|
31
|
-
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */ s(
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
|
|
31
|
+
return /* @__PURE__ */ s(O, { className: "flex items-start gap-2 text-xs relative", children: [
|
|
32
|
+
r && /* @__PURE__ */ a(R, { className: "absolute left-1.5 top-4 bottom-0 w-px bg-gray-200 dark:bg-white-alpha-200 -mb-3" }),
|
|
33
|
+
/* @__PURE__ */ a(j, { className: "flex items-center justify-center w-3 h-3 relative z-10 mt-0.5", children: o }),
|
|
34
|
+
/* @__PURE__ */ s(G, { className: "flex-1", children: [
|
|
35
|
+
/* @__PURE__ */ a(z, { className: "text-gray-700 dark:text-white-alpha-600", children: i }),
|
|
36
|
+
e && /* @__PURE__ */ a(F, { className: "mt-2 text-xs whitespace-pre-wrap font-mono bg-gray-50 dark:bg-gray-dark-900 p-2 rounded-md px-3 py-2", children: e })
|
|
36
37
|
] })
|
|
37
|
-
] }
|
|
38
|
-
}),
|
|
39
|
-
const [
|
|
40
|
-
|
|
41
|
-
let
|
|
42
|
-
return r ?
|
|
43
|
-
|
|
44
|
-
}, 1e3) :
|
|
45
|
-
|
|
38
|
+
] });
|
|
39
|
+
}), K = g(({ summaries: t, isCompleted: r }) => {
|
|
40
|
+
const [e, i] = u(!r);
|
|
41
|
+
y(() => {
|
|
42
|
+
let l;
|
|
43
|
+
return r ? l = setTimeout(() => {
|
|
44
|
+
i(!1);
|
|
45
|
+
}, 1e3) : i(!0), () => {
|
|
46
|
+
l && clearTimeout(l);
|
|
46
47
|
};
|
|
47
48
|
}, [r]);
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
}, [
|
|
51
|
-
return /* @__PURE__ */ s(
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
|
|
49
|
+
const o = w(() => {
|
|
50
|
+
i(!e);
|
|
51
|
+
}, [e]);
|
|
52
|
+
return /* @__PURE__ */ s(A, { className: "flex flex-col items-start mb-2.5 mt-2.5 first:mt-1 relative", children: [
|
|
53
|
+
/* @__PURE__ */ a(
|
|
54
|
+
L,
|
|
54
55
|
{
|
|
55
56
|
type: "button",
|
|
56
|
-
onClick:
|
|
57
|
-
"data-expanded":
|
|
57
|
+
onClick: o,
|
|
58
|
+
"data-expanded": e,
|
|
58
59
|
className: "inline-flex items-center group gap-2 text-xs text-gray-500 dark:text-white-alpha-600 hover:text-gray-700 dark:hover:text-white-alpha-700 transition-colors cursor-pointer",
|
|
59
60
|
children: r ? /* @__PURE__ */ s(h, { children: [
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ a(f, { className: "check-icon w-3 h-3 text-gray-500 dark:text-white-alpha-500 transition-all duration-200 absolute opacity-100 group-hover:opacity-0 group-data-[expanded=true]:opacity-0" }),
|
|
62
|
+
/* @__PURE__ */ a(N, { className: "chevron-icon w-3 h-3 text-gray-500 dark:text-white-alpha-500 transition-all duration-200 transform opacity-0 rotate-0 group-hover:opacity-100 group-data-[expanded=true]:opacity-100 group-data-[expanded=true]:rotate-90" }),
|
|
63
|
+
/* @__PURE__ */ a(p, { className: "font-medium", children: "Completed" })
|
|
63
64
|
] }) : /* @__PURE__ */ s(h, { children: [
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ a(D, { className: "w-3 h-3 animate-spin" }),
|
|
66
|
+
/* @__PURE__ */ a(p, { className: "font-medium", children: "Thinking..." })
|
|
66
67
|
] })
|
|
67
68
|
}
|
|
68
69
|
),
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
-
|
|
70
|
+
/* @__PURE__ */ a(
|
|
71
|
+
E,
|
|
71
72
|
{
|
|
72
|
-
"data-expanded":
|
|
73
|
+
"data-expanded": e,
|
|
73
74
|
className: "overflow-hidden transition-all duration-300 ease-in-out data-[expanded=true]:opacity-100 data-[expanded=false]:max-h-0 data-[expanded=false]:opacity-0 max-w-full",
|
|
74
|
-
children: /* @__PURE__ */
|
|
75
|
-
|
|
75
|
+
children: /* @__PURE__ */ a(M, { className: "pb-2 mt-1.5 space-y-3 relative", children: t.map((l, c) => /* @__PURE__ */ a(
|
|
76
|
+
B,
|
|
76
77
|
{
|
|
77
|
-
summary:
|
|
78
|
-
|
|
79
|
-
showConnector: t.length > 1 && o < t.length - 1
|
|
78
|
+
summary: l,
|
|
79
|
+
showConnector: t.length > 1 && c < t.length - 1
|
|
80
80
|
},
|
|
81
|
-
`op-${
|
|
81
|
+
`op-${l.type}-${c}`
|
|
82
82
|
)) })
|
|
83
83
|
}
|
|
84
84
|
)
|
|
85
85
|
] });
|
|
86
86
|
});
|
|
87
87
|
export {
|
|
88
|
-
|
|
88
|
+
K as DataSummaryGroup
|
|
89
89
|
};
|