@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.
Files changed (61) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +167 -161
  3. package/dist/primitives/atoms/icons/built-in-icons.cjs +1 -1
  4. package/dist/primitives/atoms/icons/built-in-icons.d.ts +4 -1
  5. package/dist/primitives/atoms/icons/built-in-icons.js +94 -91
  6. package/dist/primitives/atoms/icons/collections/pi.cjs +1 -1
  7. package/dist/primitives/atoms/icons/collections/pi.d.ts +3 -0
  8. package/dist/primitives/atoms/icons/collections/pi.js +82 -37
  9. package/dist/primitives/atoms/icons/inkeep-default-icons.cjs +1 -1
  10. package/dist/primitives/atoms/icons/inkeep-default-icons.js +4 -1
  11. package/dist/primitives/components/embedded-chat/file-upload-input.cjs +1 -1
  12. package/dist/primitives/components/embedded-chat/file-upload-input.d.ts +0 -1
  13. package/dist/primitives/components/embedded-chat/file-upload-input.js +346 -207
  14. package/dist/primitives/components/embedded-chat/use-chat-action.cjs +1 -1
  15. package/dist/primitives/components/embedded-chat/use-chat-action.js +16 -14
  16. package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +2 -2
  17. package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +257 -256
  18. package/dist/primitives/components/embedded-chat.cjs +3 -3
  19. package/dist/primitives/components/embedded-chat.d.ts +1 -1
  20. package/dist/primitives/components/embedded-chat.js +102 -94
  21. package/dist/primitives/components/tagline-logo-icon.js +50 -9
  22. package/dist/primitives/hooks/use-events-api.cjs +1 -0
  23. package/dist/primitives/hooks/use-events-api.d.ts +31 -0
  24. package/dist/primitives/hooks/use-events-api.js +44 -0
  25. package/dist/primitives/hooks/use-feedback-api.cjs +1 -1
  26. package/dist/primitives/hooks/use-feedback-api.d.ts +3 -1
  27. package/dist/primitives/hooks/use-feedback-api.js +22 -21
  28. package/dist/primitives/hooks/use-initial-conversation.js +4 -1
  29. package/dist/primitives/hooks/use-input-notification.js +9 -9
  30. package/dist/primitives/index.cjs +1 -1
  31. package/dist/primitives/index.js +150 -144
  32. package/dist/primitives/providers/base-events-provider.cjs +1 -1
  33. package/dist/primitives/providers/base-events-provider.d.ts +2 -0
  34. package/dist/primitives/providers/base-events-provider.js +6 -5
  35. package/dist/primitives/providers/chat-auth-provider.cjs +1 -0
  36. package/dist/primitives/providers/chat-auth-provider.d.ts +27 -0
  37. package/dist/primitives/providers/chat-auth-provider.js +46 -0
  38. package/dist/primitives/providers/chat-base-events-provider.cjs +1 -0
  39. package/dist/primitives/providers/chat-base-events-provider.d.ts +12 -0
  40. package/dist/primitives/providers/chat-base-events-provider.js +74 -0
  41. package/dist/primitives/providers/feedback-provider.cjs +1 -1
  42. package/dist/primitives/providers/feedback-provider.js +37 -30
  43. package/dist/primitives/providers/index.cjs +1 -1
  44. package/dist/primitives/providers/index.d.ts +2 -0
  45. package/dist/primitives/providers/index.js +57 -51
  46. package/dist/react/embedded-chat.cjs +1 -1
  47. package/dist/react/embedded-chat.js +101 -99
  48. package/dist/react/index.cjs +1 -1
  49. package/dist/react/index.js +167 -161
  50. package/dist/styled/components/embedded-chat/image-preview-modal.js +9 -2
  51. package/dist/styled/components/embedded-chat.js +14 -2
  52. package/dist/styled/components/embedded-search.js +7 -1
  53. package/dist/styled/components/message.cjs +1 -1
  54. package/dist/styled/components/message.js +74 -71
  55. package/dist/styled/index.cjs +1 -1
  56. package/dist/styled/index.js +155 -149
  57. package/dist/types/config/ai.d.ts +5 -0
  58. package/dist/types/events.d.ts +11 -0
  59. package/dist/types/icons/built-in.d.ts +1 -1
  60. package/dist/types/icons/custom.d.ts +3 -0
  61. package/package.json +2 -2
@@ -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 v } from "./components/loading-indicator.js";
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 E } from "../primitives/providers/base-events-provider.js";
15
- import { ChatFormProvider as R, useChatForm as $, useChatFormState as T } from "../primitives/providers/chat-form-provider.js";
16
- import { ChatHistoryProvider as W, useChatHistory as A } from "../primitives/providers/chat-history-provider.js";
17
- import { InkeepConfigProvider as L, WebWidgetInteractionType as j, useInkeepConfig as G } from "../primitives/providers/config-provider.js";
18
- import { FeedbackProvider as N, useMessageFeedback as Q } from "../primitives/providers/feedback-provider.js";
19
- import { FormFieldProvider as q, useFormField as J } from "../primitives/providers/form-field-provider.js";
20
- import { HelpMenuProvider as X, useHelpMenu as Y, useHelpMenuState as Z } from "../primitives/providers/help-menu-provider.js";
21
- import { ChatMarkdownProvider as ee, useChatMarkdown as oe } from "../primitives/providers/markdown-provider.js";
22
- import { MessageProvider as te, useMessage as ae, useOptionalMessage as me } from "../primitives/providers/message-provider.js";
23
- import { RootProvider as ie } from "../primitives/providers/root-provider.js";
24
- import { SourceItemProvider as de, useSourceItem as ne } from "../primitives/providers/source-item-provider.js";
25
- import { ThemeProvider as fe } from "../primitives/providers/theme-provider.js";
26
- import { WidgetProvider as xe, useWidget as he } from "../primitives/providers/widget-provider.js";
27
- import { SidebarChatProvider as be, useInkeepSidebarChat as Se, useOptionalSidebarChat as ce, useSidebarChat as Pe } from "../primitives/providers/sidebar-chat-provider.js";
28
- import { ChatBubbleProvider as Ie, useChatBubble as ge, useInkeepChatBubble as Be, useOptionalChatBubble as Me } from "../primitives/providers/chat-bubble-provider.js";
29
- import { ikp as ke, jsxFactory as Fe } from "../primitives/components/factory.js";
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 we, useChat as Ee } from "../primitives/components/embedded-chat/chat-provider.js";
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 Re, SearchProviderImpl as $e, useSearch as Te } from "../primitives/components/embedded-search/search-provider.js";
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 We, useModal as Ae } from "../primitives/components/modal/modal-provider.js";
37
- import * as f from "../primitives/components/chat-button.js";
38
- import * as C from "../primitives/components/searchbar.js";
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 Le } from "../primitives/hooks/use-boolean.js";
43
- import { useComponentClassNames as Ge } from "../primitives/hooks/use-component-classnames.js";
44
- import { useContainerSize as Ne } from "../primitives/hooks/use-container-size.js";
45
- import { useInkeepOpenState as Ue } from "../primitives/hooks/use-inkeep-open-state.js";
46
- import { useCopyToClipboard as Je } from "../primitives/hooks/use-copy-to-clipboard.js";
47
- import { useInstantUpdate as Xe } from "../primitives/hooks/use-instant-update.js";
48
- import { useIsMounted as Ze } from "../primitives/hooks/use-is-mounted.js";
49
- import { useMediaQuery as eo } from "../primitives/hooks/use-media-query.js";
50
- import { useResizeObserver as ro } from "../primitives/hooks/use-resize-observer.js";
51
- import { useScrollingFades as ao, useScrollingFadesHorizontal as mo } from "../primitives/hooks/use-scrolling-fades.js";
52
- import { useSettleAction as io } from "../primitives/hooks/use-settle-action.js";
53
- import { useSimpleScroll as no } from "../primitives/hooks/use-simple-scroll.js";
54
- import { callAll as fo, dataAttr as Co, getInitials as xo, getMessageContent as ho, isCitationArtifact as lo, isString as bo, maybeRender as So, toKebabCase as co } from "../primitives/utils/misc.js";
55
- import { ChatBubbleComponentIds as vo, DataSummaryComponentIds as Io, SearchBarComponentIds as go, SidebarChatComponentIds as Bo, aiChatComponentIds as Mo, aiChatHistoryComponentIds as yo, aiSearchComponentIds as ko, chatButtonComponentIds as Fo, componentIDs as Ho, markDownComponentIds as wo, miscellanousComponentIds as Eo, modalComponentIds as Do } from "../primitives/utils/component-ids.js";
56
- import { composeRefs as $o, useComposedRefs as To } from "../primitives/utils/compose-refs.js";
57
- import { mergeProps as Wo } from "../primitives/utils/merge-props.js";
58
- import { Portal as zo } from "../primitives/atoms/portal.js";
59
- import { CustomIcon as jo } from "../primitives/atoms/icons/custom-icon.js";
60
- import { BuiltInIconRenderer as Ko } from "../primitives/atoms/icons/built-in-icon-renderer.js";
61
- import { PortalWithTheme as Qo } from "../primitives/atoms/portal-with-theme.js";
62
- import { Command as qo, CommandDialog as Jo, CommandEmpty as Vo, CommandInput as Xo, CommandItem as Yo, CommandList as Zo, CommandLoading as _o, CommandRoot as er, CommandSeparator as or, defaultFilter as rr, useCommandState as tr, useCommandStore as ar } from "../primitives/atoms/cmdk/index.js";
63
- import { ErrorBoundary as sr } from "../primitives/atoms/error-boundary.js";
64
- import { InkeepShadow as pr, InkeepShadowProvider as dr, ShadowContext as nr, useShadow as ur } from "../primitives/atoms/shadow/context.js";
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
- Ko as BuiltInIconRenderer,
70
+ Vo as BuiltInIconRenderer,
71
+ $ as ChatAuthProvider,
72
+ O as ChatBaseEventsProvider,
68
73
  t as ChatBubble,
69
- vo as ChatBubbleComponentIds,
74
+ ko as ChatBubbleComponentIds,
70
75
  x as ChatBubblePrimitive,
71
- Ie as ChatBubbleProvider,
76
+ Fe as ChatBubbleProvider,
72
77
  s as ChatButton,
73
- f as ChatButtonPrimitive,
74
- R as ChatFormProvider,
78
+ C as ChatButtonPrimitive,
79
+ z as ChatFormProvider,
75
80
  o as ChatHistory,
76
81
  l as ChatHistoryPrimitive,
77
- W as ChatHistoryProvider,
78
- ee as ChatMarkdownProvider,
79
- we as ChatProvider,
80
- qo as Command,
81
- Jo as CommandDialog,
82
- Vo as CommandEmpty,
83
- Xo as CommandInput,
84
- Yo as CommandItem,
85
- Zo as CommandList,
86
- _o as CommandLoading,
87
- er as CommandRoot,
88
- or as CommandSeparator,
89
- jo as CustomIcon,
90
- Io as DataSummaryComponentIds,
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
- sr as ErrorBoundary,
100
- N as FeedbackProvider,
101
- q as FormFieldProvider,
102
- X as HelpMenuProvider,
103
- L as InkeepConfigProvider,
104
- pr as InkeepShadow,
105
- dr as InkeepShadowProvider,
106
- v as LoadingIndicator,
107
- te as MessageProvider,
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
- We as ModalProvider,
111
- zo as Portal,
112
- Qo as PortalWithTheme,
113
- ie as RootProvider,
115
+ Ke as ModalProvider,
116
+ Qo as Portal,
117
+ Yo as PortalWithTheme,
118
+ fe as RootProvider,
114
119
  i as SearchBar,
115
- go as SearchBarComponentIds,
116
- C as SearchBarPrimitive,
117
- Re as SearchProvider,
118
- $e as SearchProviderImpl,
120
+ Eo as SearchBarComponentIds,
121
+ f as SearchBarPrimitive,
122
+ ze as SearchProvider,
123
+ Le as SearchProviderImpl,
119
124
  c as Shadow,
120
- nr as ShadowContext,
125
+ lr as ShadowContext,
121
126
  r as SidebarChat,
122
- Bo as SidebarChatComponentIds,
127
+ Ho as SidebarChatComponentIds,
123
128
  d as SidebarChatPrimitive,
124
- be as SidebarChatProvider,
125
- de as SourceItemProvider,
126
- fe as ThemeProvider,
127
- j as WebWidgetInteractionType,
128
- xe as WidgetProvider,
129
- Mo as aiChatComponentIds,
130
- yo as aiChatHistoryComponentIds,
131
- ko as aiSearchComponentIds,
132
- fo as callAll,
133
- Fo as chatButtonComponentIds,
134
- Ho as componentIDs,
135
- $o as composeRefs,
136
- Co as dataAttr,
137
- rr as defaultFilter,
138
- xo as getInitials,
139
- ho as getMessageContent,
140
- ke as ikp,
141
- lo as isCitationArtifact,
142
- bo as isString,
143
- Fe as jsxFactory,
144
- wo as markDownComponentIds,
145
- So as maybeRender,
146
- Wo as mergeProps,
147
- Eo as miscellanousComponentIds,
148
- Do as modalComponentIds,
149
- co as toKebabCase,
150
- E as useBaseEvents,
151
- Le as useBoolean,
152
- Ee as useChat,
153
- ge as useChatBubble,
154
- $ as useChatForm,
155
- T as useChatFormState,
156
- A as useChatHistory,
157
- oe as useChatMarkdown,
158
- tr as useCommandState,
159
- ar as useCommandStore,
160
- Ge as useComponentClassNames,
161
- To as useComposedRefs,
162
- Ne as useContainerSize,
163
- Je as useCopyToClipboard,
164
- J as useFormField,
165
- Y as useHelpMenu,
166
- Z as useHelpMenuState,
167
- Be as useInkeepChatBubble,
168
- G as useInkeepConfig,
169
- Ue as useInkeepOpenState,
170
- Se as useInkeepSidebarChat,
171
- Xe as useInstantUpdate,
172
- Ze as useIsMounted,
173
- eo as useMediaQuery,
174
- ae as useMessage,
175
- Q as useMessageFeedback,
176
- Ae as useModal,
177
- Me as useOptionalChatBubble,
178
- me as useOptionalMessage,
179
- ce as useOptionalSidebarChat,
180
- ro as useResizeObserver,
181
- ao as useScrollingFades,
182
- mo as useScrollingFadesHorizontal,
183
- Te as useSearch,
184
- io as useSettleAction,
185
- ur as useShadow,
186
- Pe as useSidebarChat,
187
- no as useSimpleScroll,
188
- ne as useSourceItem,
189
- he as useWidget,
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.
@@ -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';
@@ -35,6 +35,9 @@ export interface CustomIcons {
35
35
  fileCsv: string;
36
36
  fileLog: string;
37
37
  fileJson: string;
38
+ file: string;
39
+ fileSql: string;
40
+ filePy: string;
38
41
  }
39
42
  export type CustomIconMap = {
40
43
  [K in keyof CustomIcons]?: InkeepCustomIcon;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-ui",
3
- "version": "0.16.1",
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'"