@inkeep/agents-ui 0.16.1 → 0.16.3
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 +167 -161
- 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/use-chat-action.cjs +1 -1
- package/dist/primitives/components/embedded-chat/use-chat-action.js +16 -14
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +2 -2
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +257 -256
- package/dist/primitives/components/embedded-chat.cjs +3 -3
- package/dist/primitives/components/embedded-chat.d.ts +1 -1
- package/dist/primitives/components/embedded-chat.js +102 -94
- package/dist/primitives/components/tagline-logo-icon.js +50 -9
- package/dist/primitives/hooks/use-events-api.cjs +1 -0
- package/dist/primitives/hooks/use-events-api.d.ts +31 -0
- package/dist/primitives/hooks/use-events-api.js +44 -0
- package/dist/primitives/hooks/use-feedback-api.cjs +1 -1
- package/dist/primitives/hooks/use-feedback-api.d.ts +3 -1
- package/dist/primitives/hooks/use-feedback-api.js +22 -21
- package/dist/primitives/hooks/use-initial-conversation.js +4 -1
- package/dist/primitives/hooks/use-input-notification.js +9 -9
- package/dist/primitives/index.cjs +1 -1
- package/dist/primitives/index.js +150 -144
- package/dist/primitives/providers/base-events-provider.cjs +1 -1
- package/dist/primitives/providers/base-events-provider.d.ts +2 -0
- package/dist/primitives/providers/base-events-provider.js +6 -5
- package/dist/primitives/providers/chat-auth-provider.cjs +1 -0
- package/dist/primitives/providers/chat-auth-provider.d.ts +27 -0
- package/dist/primitives/providers/chat-auth-provider.js +46 -0
- package/dist/primitives/providers/chat-base-events-provider.cjs +1 -0
- package/dist/primitives/providers/chat-base-events-provider.d.ts +12 -0
- package/dist/primitives/providers/chat-base-events-provider.js +74 -0
- package/dist/primitives/providers/feedback-provider.cjs +1 -1
- package/dist/primitives/providers/feedback-provider.js +37 -30
- package/dist/primitives/providers/index.cjs +1 -1
- package/dist/primitives/providers/index.d.ts +2 -0
- package/dist/primitives/providers/index.js +57 -51
- package/dist/react/embedded-chat.cjs +1 -1
- package/dist/react/embedded-chat.js +101 -99
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.js +167 -161
- 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/styled/components/message.cjs +1 -1
- package/dist/styled/components/message.js +74 -71
- package/dist/styled/index.cjs +1 -1
- package/dist/styled/index.js +155 -149
- package/dist/types/config/ai.d.ts +5 -0
- package/dist/types/events.d.ts +11 -0
- package/dist/types/icons/built-in.d.ts +1 -1
- package/dist/types/icons/custom.d.ts +3 -0
- package/package.json +2 -2
package/dist/styled/index.js
CHANGED
|
@@ -7,87 +7,92 @@ import * as m from "./components/modal.js";
|
|
|
7
7
|
import * as s from "./components/chat-button.js";
|
|
8
8
|
import * as i from "./components/searchbar.js";
|
|
9
9
|
import { Shadow as c } from "./components/shadow.js";
|
|
10
|
-
import { LoadingIndicator as
|
|
10
|
+
import { LoadingIndicator as P } from "./components/loading-indicator.js";
|
|
11
11
|
import { widgetToggle as g } from "./components/ui/recipes/widget-toggle.js";
|
|
12
12
|
import { DefaultToolComponent as M, EmbeddedChatMessagePart as y } from "./components/message.js";
|
|
13
13
|
import { DataSummaryGroup as F } from "./components/data-summary-group.js";
|
|
14
|
-
import { BaseEventsProvider as w, useBaseEvents as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
14
|
+
import { BaseEventsContext as H, BaseEventsProvider as w, useBaseEvents as D } from "../primitives/providers/base-events-provider.js";
|
|
15
|
+
import { ChatAuthProvider as $, useChatAuth as A } from "../primitives/providers/chat-auth-provider.js";
|
|
16
|
+
import { ChatBaseEventsProvider as O } from "../primitives/providers/chat-base-events-provider.js";
|
|
17
|
+
import { ChatFormProvider as z, useChatForm as L, useChatFormState as j } from "../primitives/providers/chat-form-provider.js";
|
|
18
|
+
import { ChatHistoryProvider as K, useChatHistory as N } from "../primitives/providers/chat-history-provider.js";
|
|
19
|
+
import { InkeepConfigProvider as U, WebWidgetInteractionType as q, useInkeepConfig as J } from "../primitives/providers/config-provider.js";
|
|
20
|
+
import { FeedbackProvider as X, useMessageFeedback as Y } from "../primitives/providers/feedback-provider.js";
|
|
21
|
+
import { FormFieldProvider as _, useFormField as ee } from "../primitives/providers/form-field-provider.js";
|
|
22
|
+
import { HelpMenuProvider as re, useHelpMenu as te, useHelpMenuState as ae } from "../primitives/providers/help-menu-provider.js";
|
|
23
|
+
import { ChatMarkdownProvider as se, useChatMarkdown as ie } from "../primitives/providers/markdown-provider.js";
|
|
24
|
+
import { MessageProvider as de, useMessage as ne, useOptionalMessage as ue } from "../primitives/providers/message-provider.js";
|
|
25
|
+
import { RootProvider as fe } from "../primitives/providers/root-provider.js";
|
|
26
|
+
import { SourceItemProvider as he, useSourceItem as le } from "../primitives/providers/source-item-provider.js";
|
|
27
|
+
import { ThemeProvider as Se } from "../primitives/providers/theme-provider.js";
|
|
28
|
+
import { WidgetProvider as ve, useWidget as Pe } from "../primitives/providers/widget-provider.js";
|
|
29
|
+
import { SidebarChatProvider as ge, useInkeepSidebarChat as Be, useOptionalSidebarChat as Me, useSidebarChat as ye } from "../primitives/providers/sidebar-chat-provider.js";
|
|
30
|
+
import { ChatBubbleProvider as Fe, useChatBubble as Ee, useInkeepChatBubble as He, useOptionalChatBubble as we } from "../primitives/providers/chat-bubble-provider.js";
|
|
31
|
+
import { ikp as Re, jsxFactory as $e } from "../primitives/components/factory.js";
|
|
30
32
|
import * as p from "../primitives/components/embedded-chat.js";
|
|
31
33
|
import * as d from "../primitives/components/sidebar-chat/index.js";
|
|
32
|
-
import { ChatProvider as
|
|
34
|
+
import { ChatProvider as Te, useChat as Oe } from "../primitives/components/embedded-chat/chat-provider.js";
|
|
33
35
|
import * as n from "../primitives/components/embedded-search.js";
|
|
34
|
-
import { SearchProvider as
|
|
36
|
+
import { SearchProvider as ze, SearchProviderImpl as Le, useSearch as je } from "../primitives/components/embedded-search/search-provider.js";
|
|
35
37
|
import * as u from "../primitives/components/modal.js";
|
|
36
|
-
import { ModalProvider as
|
|
37
|
-
import * as
|
|
38
|
-
import * as
|
|
38
|
+
import { ModalProvider as Ke, useModal as Ne } from "../primitives/components/modal/modal-provider.js";
|
|
39
|
+
import * as C from "../primitives/components/chat-button.js";
|
|
40
|
+
import * as f from "../primitives/components/searchbar.js";
|
|
39
41
|
import * as x from "../primitives/components/chat-bubble/index.js";
|
|
40
42
|
import * as h from "../primitives/components/data-summaries.js";
|
|
41
43
|
import * as l from "../primitives/components/chat-history/index.js";
|
|
42
|
-
import { useBoolean as
|
|
43
|
-
import { useComponentClassNames as
|
|
44
|
-
import { useContainerSize as
|
|
45
|
-
import { useInkeepOpenState as
|
|
46
|
-
import { useCopyToClipboard as
|
|
47
|
-
import { useInstantUpdate as
|
|
48
|
-
import { useIsMounted as
|
|
49
|
-
import { useMediaQuery as
|
|
50
|
-
import { useResizeObserver as
|
|
51
|
-
import { useScrollingFades as
|
|
52
|
-
import { useSettleAction as
|
|
53
|
-
import { useSimpleScroll as
|
|
54
|
-
import { callAll as
|
|
55
|
-
import { ChatBubbleComponentIds as
|
|
56
|
-
import { composeRefs as
|
|
57
|
-
import { mergeProps as
|
|
58
|
-
import { Portal as
|
|
59
|
-
import { CustomIcon as
|
|
60
|
-
import { BuiltInIconRenderer as
|
|
61
|
-
import { PortalWithTheme as
|
|
62
|
-
import { Command as
|
|
63
|
-
import { ErrorBoundary as
|
|
64
|
-
import { InkeepShadow as
|
|
44
|
+
import { useBoolean as Ue } from "../primitives/hooks/use-boolean.js";
|
|
45
|
+
import { useComponentClassNames as Je } from "../primitives/hooks/use-component-classnames.js";
|
|
46
|
+
import { useContainerSize as Xe } from "../primitives/hooks/use-container-size.js";
|
|
47
|
+
import { useInkeepOpenState as Ze } from "../primitives/hooks/use-inkeep-open-state.js";
|
|
48
|
+
import { useCopyToClipboard as eo } from "../primitives/hooks/use-copy-to-clipboard.js";
|
|
49
|
+
import { useInstantUpdate as ro } from "../primitives/hooks/use-instant-update.js";
|
|
50
|
+
import { useIsMounted as ao } from "../primitives/hooks/use-is-mounted.js";
|
|
51
|
+
import { useMediaQuery as so } from "../primitives/hooks/use-media-query.js";
|
|
52
|
+
import { useResizeObserver as po } from "../primitives/hooks/use-resize-observer.js";
|
|
53
|
+
import { useScrollingFades as uo, useScrollingFadesHorizontal as Co } from "../primitives/hooks/use-scrolling-fades.js";
|
|
54
|
+
import { useSettleAction as xo } from "../primitives/hooks/use-settle-action.js";
|
|
55
|
+
import { useSimpleScroll as lo } from "../primitives/hooks/use-simple-scroll.js";
|
|
56
|
+
import { callAll as So, dataAttr as co, getInitials as vo, getMessageContent as Po, isCitationArtifact as Io, isString as go, maybeRender as Bo, toKebabCase as Mo } from "../primitives/utils/misc.js";
|
|
57
|
+
import { ChatBubbleComponentIds as ko, DataSummaryComponentIds as Fo, SearchBarComponentIds as Eo, SidebarChatComponentIds as Ho, aiChatComponentIds as wo, aiChatHistoryComponentIds as Do, aiSearchComponentIds as Ro, chatButtonComponentIds as $o, componentIDs as Ao, markDownComponentIds as To, miscellanousComponentIds as Oo, modalComponentIds as Wo } from "../primitives/utils/component-ids.js";
|
|
58
|
+
import { composeRefs as Lo, useComposedRefs as jo } from "../primitives/utils/compose-refs.js";
|
|
59
|
+
import { mergeProps as Ko } from "../primitives/utils/merge-props.js";
|
|
60
|
+
import { Portal as Qo } from "../primitives/atoms/portal.js";
|
|
61
|
+
import { CustomIcon as qo } from "../primitives/atoms/icons/custom-icon.js";
|
|
62
|
+
import { BuiltInIconRenderer as Vo } from "../primitives/atoms/icons/built-in-icon-renderer.js";
|
|
63
|
+
import { PortalWithTheme as Yo } from "../primitives/atoms/portal-with-theme.js";
|
|
64
|
+
import { Command as _o, CommandDialog as er, CommandEmpty as or, CommandInput as rr, CommandItem as tr, CommandList as ar, CommandLoading as mr, CommandRoot as sr, CommandSeparator as ir, defaultFilter as pr, useCommandState as dr, useCommandStore as nr } from "../primitives/atoms/cmdk/index.js";
|
|
65
|
+
import { ErrorBoundary as Cr } from "../primitives/atoms/error-boundary.js";
|
|
66
|
+
import { InkeepShadow as xr, InkeepShadowProvider as hr, ShadowContext as lr, useShadow as br } from "../primitives/atoms/shadow/context.js";
|
|
65
67
|
export {
|
|
68
|
+
H as BaseEventsContext,
|
|
66
69
|
w as BaseEventsProvider,
|
|
67
|
-
|
|
70
|
+
Vo as BuiltInIconRenderer,
|
|
71
|
+
$ as ChatAuthProvider,
|
|
72
|
+
O as ChatBaseEventsProvider,
|
|
68
73
|
t as ChatBubble,
|
|
69
|
-
|
|
74
|
+
ko as ChatBubbleComponentIds,
|
|
70
75
|
x as ChatBubblePrimitive,
|
|
71
|
-
|
|
76
|
+
Fe as ChatBubbleProvider,
|
|
72
77
|
s as ChatButton,
|
|
73
|
-
|
|
74
|
-
|
|
78
|
+
C as ChatButtonPrimitive,
|
|
79
|
+
z as ChatFormProvider,
|
|
75
80
|
o as ChatHistory,
|
|
76
81
|
l as ChatHistoryPrimitive,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
82
|
+
K as ChatHistoryProvider,
|
|
83
|
+
se as ChatMarkdownProvider,
|
|
84
|
+
Te as ChatProvider,
|
|
85
|
+
_o as Command,
|
|
86
|
+
er as CommandDialog,
|
|
87
|
+
or as CommandEmpty,
|
|
88
|
+
rr as CommandInput,
|
|
89
|
+
tr as CommandItem,
|
|
90
|
+
ar as CommandList,
|
|
91
|
+
mr as CommandLoading,
|
|
92
|
+
sr as CommandRoot,
|
|
93
|
+
ir as CommandSeparator,
|
|
94
|
+
qo as CustomIcon,
|
|
95
|
+
Fo as DataSummaryComponentIds,
|
|
91
96
|
F as DataSummaryGroup,
|
|
92
97
|
h as DataSummaryPrimitive,
|
|
93
98
|
M as DefaultToolComponent,
|
|
@@ -96,96 +101,97 @@ export {
|
|
|
96
101
|
p as EmbeddedChatPrimitive,
|
|
97
102
|
a as EmbeddedSearch,
|
|
98
103
|
n as EmbeddedSearchPrimitive,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
Cr as ErrorBoundary,
|
|
105
|
+
X as FeedbackProvider,
|
|
106
|
+
_ as FormFieldProvider,
|
|
107
|
+
re as HelpMenuProvider,
|
|
108
|
+
U as InkeepConfigProvider,
|
|
109
|
+
xr as InkeepShadow,
|
|
110
|
+
hr as InkeepShadowProvider,
|
|
111
|
+
P as LoadingIndicator,
|
|
112
|
+
de as MessageProvider,
|
|
108
113
|
m as Modal,
|
|
109
114
|
u as ModalPrimitive,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
115
|
+
Ke as ModalProvider,
|
|
116
|
+
Qo as Portal,
|
|
117
|
+
Yo as PortalWithTheme,
|
|
118
|
+
fe as RootProvider,
|
|
114
119
|
i as SearchBar,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
120
|
+
Eo as SearchBarComponentIds,
|
|
121
|
+
f as SearchBarPrimitive,
|
|
122
|
+
ze as SearchProvider,
|
|
123
|
+
Le as SearchProviderImpl,
|
|
119
124
|
c as Shadow,
|
|
120
|
-
|
|
125
|
+
lr as ShadowContext,
|
|
121
126
|
r as SidebarChat,
|
|
122
|
-
|
|
127
|
+
Ho as SidebarChatComponentIds,
|
|
123
128
|
d as SidebarChatPrimitive,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
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
|
-
|
|
188
|
-
|
|
189
|
-
|
|
129
|
+
ge as SidebarChatProvider,
|
|
130
|
+
he as SourceItemProvider,
|
|
131
|
+
Se as ThemeProvider,
|
|
132
|
+
q as WebWidgetInteractionType,
|
|
133
|
+
ve as WidgetProvider,
|
|
134
|
+
wo as aiChatComponentIds,
|
|
135
|
+
Do as aiChatHistoryComponentIds,
|
|
136
|
+
Ro as aiSearchComponentIds,
|
|
137
|
+
So as callAll,
|
|
138
|
+
$o as chatButtonComponentIds,
|
|
139
|
+
Ao as componentIDs,
|
|
140
|
+
Lo as composeRefs,
|
|
141
|
+
co as dataAttr,
|
|
142
|
+
pr as defaultFilter,
|
|
143
|
+
vo as getInitials,
|
|
144
|
+
Po as getMessageContent,
|
|
145
|
+
Re as ikp,
|
|
146
|
+
Io as isCitationArtifact,
|
|
147
|
+
go as isString,
|
|
148
|
+
$e as jsxFactory,
|
|
149
|
+
To as markDownComponentIds,
|
|
150
|
+
Bo as maybeRender,
|
|
151
|
+
Ko as mergeProps,
|
|
152
|
+
Oo as miscellanousComponentIds,
|
|
153
|
+
Wo as modalComponentIds,
|
|
154
|
+
Mo as toKebabCase,
|
|
155
|
+
D as useBaseEvents,
|
|
156
|
+
Ue as useBoolean,
|
|
157
|
+
Oe as useChat,
|
|
158
|
+
A as useChatAuth,
|
|
159
|
+
Ee as useChatBubble,
|
|
160
|
+
L as useChatForm,
|
|
161
|
+
j as useChatFormState,
|
|
162
|
+
N as useChatHistory,
|
|
163
|
+
ie as useChatMarkdown,
|
|
164
|
+
dr as useCommandState,
|
|
165
|
+
nr as useCommandStore,
|
|
166
|
+
Je as useComponentClassNames,
|
|
167
|
+
jo as useComposedRefs,
|
|
168
|
+
Xe as useContainerSize,
|
|
169
|
+
eo as useCopyToClipboard,
|
|
170
|
+
ee as useFormField,
|
|
171
|
+
te as useHelpMenu,
|
|
172
|
+
ae as useHelpMenuState,
|
|
173
|
+
He as useInkeepChatBubble,
|
|
174
|
+
J as useInkeepConfig,
|
|
175
|
+
Ze as useInkeepOpenState,
|
|
176
|
+
Be as useInkeepSidebarChat,
|
|
177
|
+
ro as useInstantUpdate,
|
|
178
|
+
ao as useIsMounted,
|
|
179
|
+
so as useMediaQuery,
|
|
180
|
+
ne as useMessage,
|
|
181
|
+
Y as useMessageFeedback,
|
|
182
|
+
Ne as useModal,
|
|
183
|
+
we as useOptionalChatBubble,
|
|
184
|
+
ue as useOptionalMessage,
|
|
185
|
+
Me as useOptionalSidebarChat,
|
|
186
|
+
po as useResizeObserver,
|
|
187
|
+
uo as useScrollingFades,
|
|
188
|
+
Co as useScrollingFadesHorizontal,
|
|
189
|
+
je as useSearch,
|
|
190
|
+
xo as useSettleAction,
|
|
191
|
+
br as useShadow,
|
|
192
|
+
ye as useSidebarChat,
|
|
193
|
+
lo as useSimpleScroll,
|
|
194
|
+
le as useSourceItem,
|
|
195
|
+
Pe as useWidget,
|
|
190
196
|
g as widgetToggle
|
|
191
197
|
};
|
|
@@ -17,6 +17,11 @@ export interface InkeepAIChatSettings {
|
|
|
17
17
|
* @default https://api.agents.inkeep.com
|
|
18
18
|
*/
|
|
19
19
|
baseUrl?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Base API URL for analytics events (POST /run/v1/events).
|
|
22
|
+
* Defaults to `baseUrl` when not set.
|
|
23
|
+
*/
|
|
24
|
+
analyticsApiBaseUrl?: string;
|
|
20
25
|
/**
|
|
21
26
|
* @deprecated Use `appId` instead
|
|
22
27
|
* API key for requests.
|
package/dist/types/events.d.ts
CHANGED
|
@@ -36,12 +36,14 @@ export interface AssistantMessageReceivedEvent {
|
|
|
36
36
|
eventName: 'assistant_message_received';
|
|
37
37
|
properties: {
|
|
38
38
|
conversationId?: string;
|
|
39
|
+
messageId?: string;
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
42
|
export interface AssistantAnswerDisplayedEvent {
|
|
42
43
|
eventName: 'assistant_answer_displayed';
|
|
43
44
|
properties: {
|
|
44
45
|
conversationId?: string;
|
|
46
|
+
messageId?: string;
|
|
45
47
|
};
|
|
46
48
|
}
|
|
47
49
|
export interface UserMessageSubmittedEvent {
|
|
@@ -57,6 +59,7 @@ export interface UserEscalationIndicatedEvent {
|
|
|
57
59
|
getHelpOption?: GetHelpOption;
|
|
58
60
|
getHelpOptionName?: string;
|
|
59
61
|
conversationId?: string;
|
|
62
|
+
messageId?: string;
|
|
60
63
|
};
|
|
61
64
|
}
|
|
62
65
|
export interface SharedChatLoadedEvent {
|
|
@@ -67,6 +70,7 @@ export interface SharedChatLoadedEvent {
|
|
|
67
70
|
}
|
|
68
71
|
interface FeedbackProperties {
|
|
69
72
|
conversationId?: string;
|
|
73
|
+
messageId?: string;
|
|
70
74
|
details?: string | null;
|
|
71
75
|
}
|
|
72
76
|
export interface AssistantNegativeFeedbackSubmittedEvent {
|
|
@@ -82,6 +86,7 @@ export interface GetHelpOptionClickedEvent {
|
|
|
82
86
|
properties: {
|
|
83
87
|
getHelpOption: GetHelpOption;
|
|
84
88
|
conversationId?: string;
|
|
89
|
+
messageId?: string;
|
|
85
90
|
};
|
|
86
91
|
}
|
|
87
92
|
export interface ChatClearButtonClickedEvent {
|
|
@@ -110,12 +115,14 @@ export interface AssistantMessageCopiedEvent {
|
|
|
110
115
|
eventName: 'assistant_message_copied';
|
|
111
116
|
properties: {
|
|
112
117
|
conversationId: string;
|
|
118
|
+
messageId?: string;
|
|
113
119
|
};
|
|
114
120
|
}
|
|
115
121
|
export interface AssistantCodeBlockCopiedEvent {
|
|
116
122
|
eventName: 'assistant_code_block_copied';
|
|
117
123
|
properties: {
|
|
118
124
|
conversationId: string;
|
|
125
|
+
messageId?: string;
|
|
119
126
|
language: string;
|
|
120
127
|
code: string;
|
|
121
128
|
};
|
|
@@ -124,12 +131,15 @@ export interface AssistantSourceItemClickedEvent {
|
|
|
124
131
|
eventName: 'assistant_source_item_clicked';
|
|
125
132
|
properties: {
|
|
126
133
|
conversationId: string;
|
|
134
|
+
messageId?: string;
|
|
127
135
|
link: TransformedSource;
|
|
128
136
|
};
|
|
129
137
|
}
|
|
130
138
|
export interface AssistantMessageLinkOpenedEvent {
|
|
131
139
|
eventName: 'assistant_message_inline_link_opened';
|
|
132
140
|
properties: {
|
|
141
|
+
conversationId: string;
|
|
142
|
+
messageId?: string;
|
|
133
143
|
title?: string;
|
|
134
144
|
url?: string;
|
|
135
145
|
};
|
|
@@ -138,6 +148,7 @@ export interface ChatErrorEvent {
|
|
|
138
148
|
eventName: 'chat_error';
|
|
139
149
|
properties: {
|
|
140
150
|
conversationId: string;
|
|
151
|
+
messageId?: string;
|
|
141
152
|
error?: string;
|
|
142
153
|
};
|
|
143
154
|
}
|
|
@@ -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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-ui",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"repository": {
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"build": "pnpm css:gen && pnpm ui:gen",
|
|
134
134
|
"watch": "vite build --watch",
|
|
135
135
|
"dev": "pnpm storybook",
|
|
136
|
-
"lint": "biome lint ./src",
|
|
136
|
+
"lint": "biome lint --error-on-warnings ./src",
|
|
137
137
|
"typecheck": "tsc",
|
|
138
138
|
"storybook": "storybook dev -p 6006",
|
|
139
139
|
"test": "echo 'test'"
|