@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.
Files changed (71) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +78 -77
  3. package/dist/primitives/atoms/dialog.cjs +1 -1
  4. package/dist/primitives/atoms/dialog.js +110 -106
  5. package/dist/primitives/atoms/file-upload.cjs +1 -0
  6. package/dist/primitives/atoms/file-upload.d.ts +35 -0
  7. package/dist/primitives/atoms/file-upload.js +45 -0
  8. package/dist/primitives/atoms/icons/built-in-icons.cjs +1 -1
  9. package/dist/primitives/atoms/icons/built-in-icons.d.ts +8 -1
  10. package/dist/primitives/atoms/icons/built-in-icons.js +86 -79
  11. package/dist/primitives/atoms/icons/collections/pi.cjs +1 -1
  12. package/dist/primitives/atoms/icons/collections/pi.d.ts +6 -0
  13. package/dist/primitives/atoms/icons/collections/pi.js +103 -13
  14. package/dist/primitives/atoms/icons/inkeep-default-icons.cjs +1 -1
  15. package/dist/primitives/atoms/icons/inkeep-default-icons.js +9 -1
  16. package/dist/primitives/components/embedded-chat/file-upload-input.cjs +1 -0
  17. package/dist/primitives/components/embedded-chat/file-upload-input.d.ts +68 -0
  18. package/dist/primitives/components/embedded-chat/file-upload-input.js +328 -0
  19. package/dist/primitives/components/embedded-chat/image-preview-modal.cjs +1 -0
  20. package/dist/primitives/components/embedded-chat/image-preview-modal.d.ts +15 -0
  21. package/dist/primitives/components/embedded-chat/image-preview-modal.js +71 -0
  22. package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +3 -3
  23. package/dist/primitives/components/embedded-chat/use-inkeep-chat.d.ts +6 -0
  24. package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +295 -250
  25. package/dist/primitives/components/embedded-chat.cjs +5 -5
  26. package/dist/primitives/components/embedded-chat.d.ts +6 -5
  27. package/dist/primitives/components/embedded-chat.js +934 -907
  28. package/dist/primitives/components/embedded-search.d.ts +1 -1
  29. package/dist/primitives/hooks/index.cjs +1 -1
  30. package/dist/primitives/hooks/index.js +15 -14
  31. package/dist/primitives/hooks/use-input-notification.cjs +1 -0
  32. package/dist/primitives/hooks/use-input-notification.d.ts +9 -0
  33. package/dist/primitives/hooks/use-input-notification.js +18 -0
  34. package/dist/primitives/hooks/use-scrolling-fades.cjs +1 -1
  35. package/dist/primitives/hooks/use-scrolling-fades.d.ts +1 -0
  36. package/dist/primitives/hooks/use-scrolling-fades.js +21 -5
  37. package/dist/primitives/index.cjs +1 -1
  38. package/dist/primitives/index.js +69 -68
  39. package/dist/primitives/providers/base-events-provider.cjs +1 -1
  40. package/dist/primitives/providers/base-events-provider.js +1 -1
  41. package/dist/primitives/providers/image-preview-provider.cjs +1 -0
  42. package/dist/primitives/providers/image-preview-provider.d.ts +15 -0
  43. package/dist/primitives/providers/image-preview-provider.js +23 -0
  44. package/dist/primitives/utils/component-ids.cjs +1 -1
  45. package/dist/primitives/utils/component-ids.d.ts +54 -0
  46. package/dist/primitives/utils/component-ids.js +37 -10
  47. package/dist/react/embedded-chat.cjs +1 -1
  48. package/dist/react/embedded-chat.js +305 -260
  49. package/dist/react/index.cjs +1 -1
  50. package/dist/react/index.js +78 -77
  51. package/dist/styled/components/chat-history.cjs +1 -1
  52. package/dist/styled/components/chat-history.d.ts +1 -1
  53. package/dist/styled/components/chat-history.js +31 -29
  54. package/dist/styled/components/embedded-chat/file-upload-input.cjs +1 -0
  55. package/dist/styled/components/embedded-chat/file-upload-input.d.ts +20 -0
  56. package/dist/styled/components/embedded-chat/file-upload-input.js +300 -0
  57. package/dist/styled/components/embedded-chat/image-preview-modal.cjs +1 -0
  58. package/dist/styled/components/embedded-chat/image-preview-modal.d.ts +11 -0
  59. package/dist/styled/components/embedded-chat/image-preview-modal.js +77 -0
  60. package/dist/styled/components/embedded-chat.cjs +1 -1
  61. package/dist/styled/components/embedded-chat.d.ts +2 -0
  62. package/dist/styled/components/embedded-chat.js +479 -449
  63. package/dist/styled/components/message.cjs +1 -1
  64. package/dist/styled/components/message.js +89 -88
  65. package/dist/styled/index.cjs +1 -1
  66. package/dist/styled/index.js +77 -76
  67. package/dist/styled/inkeep.css.cjs +253 -7
  68. package/dist/styled/inkeep.css.js +253 -7
  69. package/dist/types/icons/built-in.d.ts +1 -1
  70. package/dist/types/icons/custom.d.ts +8 -0
  71. package/package.json +7 -6
@@ -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 w, useAttachmentItem as A } from "../primitives/providers/attachment-item-provider.js";
15
- import { AttachmentsBarProvider as H, useAttachmentsBar as R } from "../primitives/providers/attachments-bar-provider.js";
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 L, useChatFormState as z } from "../primitives/providers/chat-form-provider.js";
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 de, useChatMarkdown as ie } from "../primitives/providers/markdown-provider.js";
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 we, useOptionalSidebarChat as Ae, useSidebarChat as Ee } from "../primitives/providers/sidebar-chat-provider.js";
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 Le } from "../primitives/components/factory.js";
34
- import * as d from "../primitives/components/embedded-chat.js";
35
- import * as i from "../primitives/components/sidebar-chat/index.js";
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 co } from "../primitives/hooks/use-settle-action.js";
57
- import { useSimpleScroll as Po } from "../primitives/hooks/use-simple-scroll.js";
58
- import { callAll as Io, dataAttr as go, getInitials as Bo, getMessageContent as Mo, isString as yo, maybeRender as ko, toKebabCase as Fo } from "../primitives/utils/misc.js";
59
- import { ChatBubbleComponentIds as Ao, DataSummaryComponentIds as Eo, SearchBarComponentIds as Ho, SidebarChatComponentIds as Ro, aiChatComponentIds as $o, aiChatHistoryComponentIds as Do, aiSearchComponentIds as Oo, chatButtonComponentIds as To, componentIDs as Wo, markDownComponentIds as Lo, miscellanousComponentIds as zo, modalComponentIds as jo } from "../primitives/utils/component-ids.js";
60
- import { composeRefs as Ko, useComposedRefs as No } from "../primitives/utils/compose-refs.js";
61
- import { mergeProps as Uo } from "../primitives/utils/merge-props.js";
62
- import { Portal as Jo } from "../primitives/atoms/portal.js";
63
- import { CustomIcon as Xo } from "../primitives/atoms/icons/custom-icon.js";
64
- import { BuiltInIconRenderer as Zo } from "../primitives/atoms/icons/built-in-icon-renderer.js";
65
- import { PortalWithTheme as er } from "../primitives/atoms/portal-with-theme.js";
66
- import { Command as rr, CommandDialog as tr, CommandEmpty as ar, CommandInput as mr, CommandItem as sr, CommandList as pr, CommandLoading as dr, CommandRoot as ir, CommandSeparator as nr, defaultFilter as ur, useCommandState as fr, useCommandStore as xr } from "../primitives/atoms/cmdk/index.js";
67
- import { ErrorBoundary as hr } from "../primitives/atoms/error-boundary.js";
68
- import { InkeepShadow as br, InkeepShadowProvider as cr, ShadowContext as Sr, useShadow as Pr } from "../primitives/atoms/shadow/context.js";
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
- w as AttachmentItemProvider,
71
- H as AttachmentsBarProvider,
70
+ H as AttachmentItemProvider,
71
+ E as AttachmentsBarProvider,
72
72
  D as BaseEventsProvider,
73
- Zo as BuiltInIconRenderer,
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
- de as ChatMarkdownProvider,
84
+ ie as ChatMarkdownProvider,
85
85
  je as ChatProvider,
86
- rr as Command,
87
- tr as CommandDialog,
88
- ar as CommandEmpty,
89
- mr as CommandInput,
90
- sr as CommandItem,
91
- pr as CommandList,
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
- ir as CommandRoot,
94
- nr as CommandSeparator,
95
- Xo as CustomIcon,
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
- d as EmbeddedChatPrimitive,
101
+ i as EmbeddedChatPrimitive,
102
102
  a as EmbeddedSearch,
103
103
  n as EmbeddedSearchPrimitive,
104
- hr as ErrorBoundary,
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
- br as InkeepShadow,
111
- cr as InkeepShadowProvider,
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
- Jo as Portal,
119
- er as PortalWithTheme,
118
+ Vo as Portal,
119
+ or as PortalWithTheme,
120
120
  ce as RootProvider,
121
121
  p as SearchBar,
122
- Ho as SearchBarComponentIds,
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
- Sr as ShadowContext,
127
+ Pr as ShadowContext,
128
128
  r as SidebarChat,
129
- Ro as SidebarChatComponentIds,
130
- i as SidebarChatPrimitive,
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
- $o as aiChatComponentIds,
137
- Do as aiChatHistoryComponentIds,
138
- Oo as aiSearchComponentIds,
139
- Io as callAll,
140
- To as chatButtonComponentIds,
141
- Wo as componentIDs,
142
- Ko as composeRefs,
143
- go as dataAttr,
144
- ur as defaultFilter,
145
- Bo as getInitials,
146
- Mo as getMessageContent,
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
- yo as isString,
149
- Le as jsxFactory,
148
+ ko as isString,
149
+ ze as jsxFactory,
150
150
  Lo as markDownComponentIds,
151
- ko as maybeRender,
152
- Uo as mergeProps,
153
- zo as miscellanousComponentIds,
154
- jo as modalComponentIds,
155
- Fo as toKebabCase,
156
- A as useAttachmentItem,
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
- L as useChatForm,
163
- z as useChatFormState,
162
+ z as useChatForm,
163
+ L as useChatFormState,
164
164
  K as useChatHistory,
165
- ie as useChatMarkdown,
166
- fr as useCommandState,
167
- xr as useCommandStore,
165
+ de as useChatMarkdown,
166
+ xr as useCommandState,
167
+ Cr as useCommandStore,
168
168
  _e as useComponentClassNames,
169
- No as useComposedRefs,
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
- we as useInkeepSidebarChat,
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
- Ae as useOptionalSidebarChat,
189
+ we as useOptionalSidebarChat,
190
190
  Co as useResizeObserver,
191
191
  lo as useScrollingFades,
192
+ bo as useScrollingFadesHorizontal,
192
193
  Ue as useSearch,
193
- co as useSettleAction,
194
- Pr as useShadow,
195
- Ee as useSidebarChat,
196
- Po as useSimpleScroll,
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