@inkeep/agents-ui 0.1.0 → 0.14.8

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 (335) hide show
  1. package/LICENSE +64 -0
  2. package/README.md +1 -67
  3. package/dist/_virtual/index.cjs +1 -0
  4. package/dist/_virtual/index.js +4 -0
  5. package/dist/_virtual/use-sync-external-store-shim.development.cjs +1 -0
  6. package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
  7. package/dist/_virtual/use-sync-external-store-shim.production.cjs +1 -0
  8. package/dist/_virtual/use-sync-external-store-shim.production.js +5 -0
  9. package/dist/color-mode/index.cjs +1 -0
  10. package/dist/color-mode/index.js +170 -0
  11. package/dist/index.cjs +1 -0
  12. package/dist/index.d.cts +5093 -0
  13. package/dist/index.d.ts +5093 -0
  14. package/dist/index.js +213 -0
  15. package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +9 -0
  16. package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +68 -0
  17. package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +9 -0
  18. package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +56 -0
  19. package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/shim/index.cjs +1 -0
  20. package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/shim/index.js +8 -0
  21. package/dist/primitives/atoms/avatars/ai.cjs +1 -0
  22. package/dist/primitives/atoms/avatars/ai.js +99 -0
  23. package/dist/primitives/atoms/avatars/user.cjs +1 -0
  24. package/dist/primitives/atoms/avatars/user.js +27 -0
  25. package/dist/primitives/atoms/cmdk/command-score.cjs +1 -0
  26. package/dist/primitives/atoms/cmdk/command-score.js +46 -0
  27. package/dist/primitives/atoms/cmdk/index.cjs +1 -0
  28. package/dist/primitives/atoms/cmdk/index.js +521 -0
  29. package/dist/primitives/atoms/codeblock/index.cjs +1 -0
  30. package/dist/primitives/atoms/codeblock/index.js +40 -0
  31. package/dist/primitives/atoms/custom-styles.cjs +1 -0
  32. package/dist/primitives/atoms/custom-styles.js +57 -0
  33. package/dist/primitives/atoms/dialog.cjs +1 -0
  34. package/dist/primitives/atoms/dialog.js +226 -0
  35. package/dist/primitives/atoms/error-boundary.cjs +1 -0
  36. package/dist/primitives/atoms/error-boundary.js +9 -0
  37. package/dist/primitives/atoms/icons/built-in-icon-renderer.cjs +1 -0
  38. package/dist/primitives/atoms/icons/built-in-icon-renderer.js +51 -0
  39. package/dist/primitives/atoms/icons/built-in-icons.cjs +1 -0
  40. package/dist/primitives/atoms/icons/built-in-icons.js +86 -0
  41. package/dist/primitives/atoms/icons/checkbox-icon.cjs +1 -0
  42. package/dist/primitives/atoms/icons/checkbox-icon.js +24 -0
  43. package/dist/primitives/atoms/icons/collections/bi.cjs +1 -0
  44. package/dist/primitives/atoms/icons/collections/bi.js +49 -0
  45. package/dist/primitives/atoms/icons/collections/fi.cjs +1 -0
  46. package/dist/primitives/atoms/icons/collections/fi.js +29 -0
  47. package/dist/primitives/atoms/icons/collections/gr.cjs +1 -0
  48. package/dist/primitives/atoms/icons/collections/gr.js +21 -0
  49. package/dist/primitives/atoms/icons/collections/io5.cjs +1 -0
  50. package/dist/primitives/atoms/icons/collections/io5.js +806 -0
  51. package/dist/primitives/atoms/icons/collections/pi.cjs +1 -0
  52. package/dist/primitives/atoms/icons/collections/pi.js +49 -0
  53. package/dist/primitives/atoms/icons/custom-icon.cjs +1 -0
  54. package/dist/primitives/atoms/icons/custom-icon.js +19 -0
  55. package/dist/primitives/atoms/icons/generate-icon.cjs +1 -0
  56. package/dist/primitives/atoms/icons/generate-icon.js +56 -0
  57. package/dist/primitives/atoms/icons/index.cjs +1 -0
  58. package/dist/primitives/atoms/icons/index.js +6 -0
  59. package/dist/primitives/atoms/icons/inkeep-default-icons.cjs +1 -0
  60. package/dist/primitives/atoms/icons/inkeep-default-icons.js +24 -0
  61. package/dist/primitives/atoms/link.cjs +1 -0
  62. package/dist/primitives/atoms/link.js +35 -0
  63. package/dist/primitives/atoms/markdown/components.cjs +1 -0
  64. package/dist/primitives/atoms/markdown/components.js +73 -0
  65. package/dist/primitives/atoms/markdown/index.cjs +1 -0
  66. package/dist/primitives/atoms/markdown/index.js +115 -0
  67. package/dist/primitives/atoms/markdown/rehype-inline-code-property.cjs +1 -0
  68. package/dist/primitives/atoms/markdown/rehype-inline-code-property.js +12 -0
  69. package/dist/primitives/atoms/portal-with-theme.cjs +1 -0
  70. package/dist/primitives/atoms/portal-with-theme.js +12 -0
  71. package/dist/primitives/atoms/portal.cjs +1 -0
  72. package/dist/primitives/atoms/portal.js +19 -0
  73. package/dist/primitives/atoms/select.cjs +1 -0
  74. package/dist/primitives/atoms/select.js +785 -0
  75. package/dist/primitives/atoms/shadow/context.cjs +1 -0
  76. package/dist/primitives/atoms/shadow/context.js +54 -0
  77. package/dist/primitives/atoms/shadow/create.cjs +1 -0
  78. package/dist/primitives/atoms/shadow/create.js +56 -0
  79. package/dist/primitives/atoms/shadow/root.cjs +1 -0
  80. package/dist/primitives/atoms/shadow/root.js +22 -0
  81. package/dist/primitives/atoms/shadow/use-ensured-forwarded-ref.cjs +1 -0
  82. package/dist/primitives/atoms/shadow/use-ensured-forwarded-ref.js +11 -0
  83. package/dist/primitives/atoms/shadow/utils.cjs +1 -0
  84. package/dist/primitives/atoms/shadow/utils.js +16 -0
  85. package/dist/primitives/components/chat-button.cjs +1 -0
  86. package/dist/primitives/components/chat-button.js +46 -0
  87. package/dist/primitives/components/embedded-chat/chat-provider.cjs +1 -0
  88. package/dist/primitives/components/embedded-chat/chat-provider.js +20 -0
  89. package/dist/primitives/components/embedded-chat/use-chat-action.cjs +1 -0
  90. package/dist/primitives/components/embedded-chat/use-chat-action.js +38 -0
  91. package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +3 -0
  92. package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +160 -0
  93. package/dist/primitives/components/embedded-chat/use-stream-processor.cjs +1 -0
  94. package/dist/primitives/components/embedded-chat/use-stream-processor.js +82 -0
  95. package/dist/primitives/components/embedded-chat.cjs +11 -0
  96. package/dist/primitives/components/embedded-chat.js +1898 -0
  97. package/dist/primitives/components/embedded-search/search-provider.cjs +1 -0
  98. package/dist/primitives/components/embedded-search/search-provider.js +26 -0
  99. package/dist/primitives/components/embedded-search/transform-results.cjs +1 -0
  100. package/dist/primitives/components/embedded-search/transform-results.js +47 -0
  101. package/dist/primitives/components/embedded-search/url-query.cjs +1 -0
  102. package/dist/primitives/components/embedded-search/url-query.js +12 -0
  103. package/dist/primitives/components/embedded-search/use-inkeep-search.cjs +1 -0
  104. package/dist/primitives/components/embedded-search/use-inkeep-search.js +35 -0
  105. package/dist/primitives/components/embedded-search/use-search-filter.cjs +1 -0
  106. package/dist/primitives/components/embedded-search/use-search-filter.js +77 -0
  107. package/dist/primitives/components/embedded-search.cjs +1 -0
  108. package/dist/primitives/components/embedded-search.js +628 -0
  109. package/dist/primitives/components/factory.cjs +1 -0
  110. package/dist/primitives/components/factory.js +39 -0
  111. package/dist/primitives/components/index.cjs +1 -0
  112. package/dist/primitives/components/index.js +27 -0
  113. package/dist/primitives/components/modal/modal-provider.cjs +1 -0
  114. package/dist/primitives/components/modal/modal-provider.js +8 -0
  115. package/dist/primitives/components/modal/use-inkeep-modal.cjs +1 -0
  116. package/dist/primitives/components/modal/use-inkeep-modal.js +45 -0
  117. package/dist/primitives/components/modal/widget-auto-focus.cjs +1 -0
  118. package/dist/primitives/components/modal/widget-auto-focus.js +16 -0
  119. package/dist/primitives/components/modal.cjs +1 -0
  120. package/dist/primitives/components/modal.js +40 -0
  121. package/dist/primitives/components/presence.cjs +1 -0
  122. package/dist/primitives/components/presence.js +26 -0
  123. package/dist/primitives/components/searchbar.cjs +1 -0
  124. package/dist/primitives/components/searchbar.js +54 -0
  125. package/dist/primitives/components/sidebar-chat/index.cjs +1 -0
  126. package/dist/primitives/components/sidebar-chat/index.js +86 -0
  127. package/dist/primitives/components/sidebar-chat/use-sidebar-chat-resizer.cjs +1 -0
  128. package/dist/primitives/components/sidebar-chat/use-sidebar-chat-resizer.js +34 -0
  129. package/dist/primitives/components/tagline-logo-icon.cjs +1 -0
  130. package/dist/primitives/components/tagline-logo-icon.js +26 -0
  131. package/dist/primitives/components/use-component-trigger.cjs +1 -0
  132. package/dist/primitives/components/use-component-trigger.js +16 -0
  133. package/dist/primitives/constants/search.cjs +1 -0
  134. package/dist/primitives/constants/search.js +5 -0
  135. package/dist/primitives/hooks/index.cjs +1 -0
  136. package/dist/primitives/hooks/index.js +24 -0
  137. package/dist/primitives/hooks/use-boolean.cjs +1 -0
  138. package/dist/primitives/hooks/use-boolean.js +17 -0
  139. package/dist/primitives/hooks/use-component-classnames.cjs +1 -0
  140. package/dist/primitives/hooks/use-component-classnames.js +14 -0
  141. package/dist/primitives/hooks/use-container-size.cjs +1 -0
  142. package/dist/primitives/hooks/use-container-size.js +18 -0
  143. package/dist/primitives/hooks/use-copy-to-clipboard.cjs +1 -0
  144. package/dist/primitives/hooks/use-copy-to-clipboard.js +24 -0
  145. package/dist/primitives/hooks/use-debounce.cjs +1 -0
  146. package/dist/primitives/hooks/use-debounce.js +16 -0
  147. package/dist/primitives/hooks/use-instant-update.cjs +1 -0
  148. package/dist/primitives/hooks/use-instant-update.js +16 -0
  149. package/dist/primitives/hooks/use-is-mounted.cjs +1 -0
  150. package/dist/primitives/hooks/use-is-mounted.js +11 -0
  151. package/dist/primitives/hooks/use-media-query.cjs +1 -0
  152. package/dist/primitives/hooks/use-media-query.js +14 -0
  153. package/dist/primitives/hooks/use-resize-observer.cjs +1 -0
  154. package/dist/primitives/hooks/use-resize-observer.js +32 -0
  155. package/dist/primitives/hooks/use-scroll-to-bottom.cjs +1 -0
  156. package/dist/primitives/hooks/use-scroll-to-bottom.js +52 -0
  157. package/dist/primitives/hooks/use-scrolling-fades.cjs +1 -0
  158. package/dist/primitives/hooks/use-scrolling-fades.js +18 -0
  159. package/dist/primitives/hooks/use-settle-action.cjs +1 -0
  160. package/dist/primitives/hooks/use-settle-action.js +11 -0
  161. package/dist/primitives/index.cjs +1 -0
  162. package/dist/primitives/index.js +155 -0
  163. package/dist/primitives/providers/attachment-item-provider.cjs +1 -0
  164. package/dist/primitives/providers/attachment-item-provider.js +13 -0
  165. package/dist/primitives/providers/attachments-bar-provider.cjs +1 -0
  166. package/dist/primitives/providers/attachments-bar-provider.js +57 -0
  167. package/dist/primitives/providers/base-events-provider.cjs +1 -0
  168. package/dist/primitives/providers/base-events-provider.js +37 -0
  169. package/dist/primitives/providers/chat-form-provider.cjs +1 -0
  170. package/dist/primitives/providers/chat-form-provider.js +109 -0
  171. package/dist/primitives/providers/config-provider.cjs +1 -0
  172. package/dist/primitives/providers/config-provider.js +38 -0
  173. package/dist/primitives/providers/feedback-item-provider.cjs +1 -0
  174. package/dist/primitives/providers/feedback-item-provider.js +16 -0
  175. package/dist/primitives/providers/feedback-provider.cjs +1 -0
  176. package/dist/primitives/providers/feedback-provider.js +83 -0
  177. package/dist/primitives/providers/form-field-provider.cjs +1 -0
  178. package/dist/primitives/providers/form-field-provider.js +17 -0
  179. package/dist/primitives/providers/help-menu-provider.cjs +1 -0
  180. package/dist/primitives/providers/help-menu-provider.js +19 -0
  181. package/dist/primitives/providers/hover-popover-provider.cjs +1 -0
  182. package/dist/primitives/providers/hover-popover-provider.js +13 -0
  183. package/dist/primitives/providers/index.cjs +1 -0
  184. package/dist/primitives/providers/index.js +57 -0
  185. package/dist/primitives/providers/markdown-provider.cjs +1 -0
  186. package/dist/primitives/providers/markdown-provider.js +8 -0
  187. package/dist/primitives/providers/message-attachments-provider.cjs +1 -0
  188. package/dist/primitives/providers/message-attachments-provider.js +27 -0
  189. package/dist/primitives/providers/message-provider.cjs +1 -0
  190. package/dist/primitives/providers/message-provider.js +14 -0
  191. package/dist/primitives/providers/root-provider.cjs +1 -0
  192. package/dist/primitives/providers/root-provider.js +21 -0
  193. package/dist/primitives/providers/search-events-provider.cjs +1 -0
  194. package/dist/primitives/providers/search-events-provider.js +17 -0
  195. package/dist/primitives/providers/sidebar-chat-provider.cjs +1 -0
  196. package/dist/primitives/providers/sidebar-chat-provider.js +41 -0
  197. package/dist/primitives/providers/source-item-provider.cjs +1 -0
  198. package/dist/primitives/providers/source-item-provider.js +13 -0
  199. package/dist/primitives/providers/theme-provider.cjs +3 -0
  200. package/dist/primitives/providers/theme-provider.js +79 -0
  201. package/dist/primitives/providers/widget-provider.cjs +1 -0
  202. package/dist/primitives/providers/widget-provider.js +8 -0
  203. package/dist/primitives/utils/component-ids.cjs +1 -0
  204. package/dist/primitives/utils/component-ids.js +309 -0
  205. package/dist/primitives/utils/compose-event-handlers.cjs +1 -0
  206. package/dist/primitives/utils/compose-event-handlers.js +10 -0
  207. package/dist/primitives/utils/compose-refs.cjs +1 -0
  208. package/dist/primitives/utils/compose-refs.js +30 -0
  209. package/dist/primitives/utils/default-settings.cjs +1 -0
  210. package/dist/primitives/utils/default-settings.js +50 -0
  211. package/dist/primitives/utils/form.cjs +1 -0
  212. package/dist/primitives/utils/form.js +17 -0
  213. package/dist/primitives/utils/generate-uid.cjs +1 -0
  214. package/dist/primitives/utils/generate-uid.js +14 -0
  215. package/dist/primitives/utils/get-source-icon.cjs +1 -0
  216. package/dist/primitives/utils/get-source-icon.js +11 -0
  217. package/dist/primitives/utils/highlight-emphasis.cjs +1 -0
  218. package/dist/primitives/utils/highlight-emphasis.js +15 -0
  219. package/dist/primitives/utils/merge-props.cjs +1 -0
  220. package/dist/primitives/utils/merge-props.js +41 -0
  221. package/dist/primitives/utils/misc.cjs +1 -0
  222. package/dist/primitives/utils/misc.js +31 -0
  223. package/dist/primitives/utils/split-props.cjs +1 -0
  224. package/dist/primitives/utils/split-props.js +10 -0
  225. package/dist/react/chat-button.cjs +1 -0
  226. package/dist/react/chat-button.js +60 -0
  227. package/dist/react/embedded-chat.cjs +1 -0
  228. package/dist/react/embedded-chat.js +380 -0
  229. package/dist/react/embedded-search-and-chat.cjs +1 -0
  230. package/dist/react/embedded-search-and-chat.impl.cjs +1 -0
  231. package/dist/react/embedded-search-and-chat.impl.js +43 -0
  232. package/dist/react/embedded-search-and-chat.js +66 -0
  233. package/dist/react/embedded-search.cjs +1 -0
  234. package/dist/react/embedded-search.js +181 -0
  235. package/dist/react/index.cjs +1 -0
  236. package/dist/react/index.js +213 -0
  237. package/dist/react/modal.chat.cjs +1 -0
  238. package/dist/react/modal.chat.js +21 -0
  239. package/dist/react/modal.cjs +1 -0
  240. package/dist/react/modal.js +27 -0
  241. package/dist/react/modal.search-and-chat.cjs +1 -0
  242. package/dist/react/modal.search-and-chat.js +27 -0
  243. package/dist/react/modal.search.cjs +1 -0
  244. package/dist/react/modal.search.js +21 -0
  245. package/dist/react/searchbar.cjs +1 -0
  246. package/dist/react/searchbar.js +68 -0
  247. package/dist/react/sidebar-chat.cjs +1 -0
  248. package/dist/react/sidebar-chat.js +49 -0
  249. package/dist/react/utils.cjs +1 -0
  250. package/dist/react/utils.js +20 -0
  251. package/dist/react/widget-toggle.cjs +1 -0
  252. package/dist/react/widget-toggle.js +65 -0
  253. package/dist/styled/components/chat-button.cjs +1 -0
  254. package/dist/styled/components/chat-button.js +56 -0
  255. package/dist/styled/components/data-summary-group.cjs +1 -0
  256. package/dist/styled/components/data-summary-group.js +76 -0
  257. package/dist/styled/components/embedded-chat.cjs +1 -0
  258. package/dist/styled/components/embedded-chat.js +1816 -0
  259. package/dist/styled/components/embedded-search/results-loading.cjs +1 -0
  260. package/dist/styled/components/embedded-search/results-loading.js +39 -0
  261. package/dist/styled/components/embedded-search.cjs +1 -0
  262. package/dist/styled/components/embedded-search.js +680 -0
  263. package/dist/styled/components/index.cjs +1 -0
  264. package/dist/styled/components/index.js +24 -0
  265. package/dist/styled/components/loading-indicator.cjs +1 -0
  266. package/dist/styled/components/loading-indicator.js +36 -0
  267. package/dist/styled/components/message.cjs +1 -0
  268. package/dist/styled/components/message.js +140 -0
  269. package/dist/styled/components/modal.cjs +1 -0
  270. package/dist/styled/components/modal.js +46 -0
  271. package/dist/styled/components/searchbar.cjs +1 -0
  272. package/dist/styled/components/searchbar.js +81 -0
  273. package/dist/styled/components/shadow.cjs +1 -0
  274. package/dist/styled/components/shadow.js +8 -0
  275. package/dist/styled/components/sidebar-chat.cjs +1 -0
  276. package/dist/styled/components/sidebar-chat.js +90 -0
  277. package/dist/styled/components/ui/markdown-styles.cjs +1 -0
  278. package/dist/styled/components/ui/markdown-styles.js +38 -0
  279. package/dist/styled/components/ui/recipes/ai-chat-page-wrapper.cjs +1 -0
  280. package/dist/styled/components/ui/recipes/ai-chat-page-wrapper.js +32 -0
  281. package/dist/styled/components/ui/recipes/attachment.cjs +1 -0
  282. package/dist/styled/components/ui/recipes/attachment.js +28 -0
  283. package/dist/styled/components/ui/recipes/button.cjs +1 -0
  284. package/dist/styled/components/ui/recipes/button.js +81 -0
  285. package/dist/styled/components/ui/recipes/checkbox.cjs +1 -0
  286. package/dist/styled/components/ui/recipes/checkbox.js +23 -0
  287. package/dist/styled/components/ui/recipes/citation.cjs +1 -0
  288. package/dist/styled/components/ui/recipes/citation.js +75 -0
  289. package/dist/styled/components/ui/recipes/icon.cjs +1 -0
  290. package/dist/styled/components/ui/recipes/icon.js +6 -0
  291. package/dist/styled/components/ui/recipes/index.cjs +1 -0
  292. package/dist/styled/components/ui/recipes/index.js +37 -0
  293. package/dist/styled/components/ui/recipes/input.cjs +1 -0
  294. package/dist/styled/components/ui/recipes/input.js +34 -0
  295. package/dist/styled/components/ui/recipes/link.cjs +1 -0
  296. package/dist/styled/components/ui/recipes/link.js +13 -0
  297. package/dist/styled/components/ui/recipes/markdown.cjs +1 -0
  298. package/dist/styled/components/ui/recipes/markdown.js +103 -0
  299. package/dist/styled/components/ui/recipes/modal.cjs +1 -0
  300. package/dist/styled/components/ui/recipes/modal.js +59 -0
  301. package/dist/styled/components/ui/recipes/popover.cjs +1 -0
  302. package/dist/styled/components/ui/recipes/popover.js +20 -0
  303. package/dist/styled/components/ui/recipes/scrollable.cjs +1 -0
  304. package/dist/styled/components/ui/recipes/scrollable.js +15 -0
  305. package/dist/styled/components/ui/recipes/select.cjs +1 -0
  306. package/dist/styled/components/ui/recipes/select.js +38 -0
  307. package/dist/styled/components/ui/recipes/skeleton.cjs +1 -0
  308. package/dist/styled/components/ui/recipes/skeleton.js +16 -0
  309. package/dist/styled/components/ui/recipes/widget-toggle.cjs +1 -0
  310. package/dist/styled/components/ui/recipes/widget-toggle.js +35 -0
  311. package/dist/styled/index.cjs +1 -0
  312. package/dist/styled/index.js +177 -0
  313. package/dist/styled/inkeep.css.cjs +4049 -0
  314. package/dist/styled/inkeep.css.js +4053 -0
  315. package/dist/styled/utils.cjs +1 -0
  316. package/dist/styled/utils.js +11 -0
  317. package/dist/theme/color-utils.cjs +1 -0
  318. package/dist/theme/color-utils.js +21 -0
  319. package/dist/theme/colors.cjs +1 -0
  320. package/dist/theme/colors.js +143 -0
  321. package/dist/theme/index.cjs +1 -0
  322. package/dist/theme/index.js +58 -0
  323. package/dist/theme/utils/create-css-variables.cjs +1 -0
  324. package/dist/theme/utils/create-css-variables.js +24 -0
  325. package/dist/theme/utils/generate-theme-variables.cjs +1 -0
  326. package/dist/theme/utils/generate-theme-variables.js +34 -0
  327. package/dist/types/message.cjs +1 -0
  328. package/dist/types/message.js +5 -0
  329. package/dist/types/types.d.cts +1754 -0
  330. package/dist/types/types.d.ts +1754 -0
  331. package/package.json +132 -39
  332. package/LICENSE.md +0 -51
  333. package/dist/assets/index-3anqgmEs.js +0 -49
  334. package/dist/assets/index-CF_BRP1w.css +0 -1
  335. package/dist/index.html +0 -14
package/LICENSE ADDED
@@ -0,0 +1,64 @@
1
+ Inkeep, Inc. Customer License (IICL) v1.1
2
+
3
+ This license agreement ("Agreement") is a legal agreement between you (either an individual or a
4
+ single entity) and Inkeep, Inc. ("Inkeep") for the npm React component package `widgets` (the
5
+ "Software"). By installing, copying, or otherwise using the Software, you agree to be bound by the
6
+ terms of this Agreement.
7
+
8
+ 1. Grant of License
9
+ Subject to the terms of this Agreement, Inkeep grants you a non-exclusive, non-transferable, limited license to install, copy, and use the Software solely for the purpose of serving Inkeep's search and chat services to your own end-users or employees. This license is applicable only as an Inkeep customer, and must be in accordance with Inkeep's search and chat service (the "Service"). You are not permitted to use the Software to act as a reseller, distributor, or vendor to provide Inkeep's search and chat services to third-party customers or use the Software with other search and chat services. The Software may only be used to serve your own end-users or employees.
10
+
11
+ 2. Modification and Extension
12
+ As an Inkeep customer, you are granted the right to modify and extend the Software for your internal business purposes, provided that such modifications and extensions are used solely in conjunction with the Service.
13
+
14
+ 3. Restrictions
15
+ a) You may not reverse engineer, decompile, or disassemble the Software.
16
+ b) You may not distribute or make the Software available to any third parties.
17
+ c) You may not sublicense, rent, lease, or lend the Software.
18
+ d) You may not use the Software or any modifications or extensions thereof with any search and chat services other than the Service.
19
+ e) You may not use the Software if you are not an Inkeep customer.
20
+
21
+ 4. Termination
22
+ This Agreement will terminate automatically if you fail to comply with any of the terms and conditions of this Agreement or if you cease to be an Inkeep customer. Upon termination, you must destroy all copies of the Software, including any modifications or extensions.
23
+
24
+ 5. Copyright The Software is protected by copyright laws and international copyright treaties, as
25
+ well as other intellectual property laws and treaties. All title, copyright, and other
26
+ intellectual property rights in and to the Software are owned by Inkeep or its licensors.
27
+
28
+ 6. No Warranties Inkeep expressly disclaims any warranty for the Software. The Software is provided
29
+ "as is" without any express or implied warranty of any kind, including but not limited to any
30
+ warranties of merchantability, non-infringement, or fitness for a particular purpose.
31
+
32
+ 7. Limitation of Liability In no event shall Inkeep or its licensors be liable for any damages
33
+ whatsoever (including, without limitation, damages for loss of business profits, business
34
+ interruption, loss of business information, or any other pecuniary loss) arising out of the use
35
+ of or inability to use the Software, even if Inkeep has been advised of the possibility of such
36
+ damages.
37
+
38
+ 8. Governing Law This Agreement shall be governed by and construed in accordance with the laws of
39
+ the jurisdiction in which Inkeep is incorporated, excluding its conflict of laws provisions.
40
+
41
+ 9. Entire Agreement This Agreement constitutes the entire agreement between you and Inkeep with
42
+ respect to the Software and supersedes all prior or contemporaneous understandings regarding the
43
+ same, whether written or oral.
44
+
45
+ 10. Additional Provisions With regard to the Software, you may only use the Software in production
46
+ if you (and any entity that you represent) are in compliance with Inkeep's terms of service,
47
+ available at <https://inkeep.com/terms-of-service/> (the "Enterprise Terms"). You are free to
48
+ modify the Software and publish patches to the Software, provided that such modifications and
49
+ patches are used solely in conjunction with the Service. You agree that Inkeep and/or its
50
+ licensors (as applicable) retain all right, title, and interest in and to all such modifications
51
+ and/or patches. You may copy and modify the Software for development and testing purposes,
52
+ without requiring a subscription. You agree that Inkeep and/or its licensors (as applicable)
53
+ retain all right, title, and interest in and to all such modifications. You are not granted any
54
+ other rights beyond what is expressly stated herein. Subject to the foregoing, it is forbidden
55
+ to copy, merge, publish, distribute, sublicense, and/or sell the Software.
56
+
57
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
58
+ NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
59
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
60
+ OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
61
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
62
+
63
+ For all third-party components incorporated into the Software, those components are licensed under
64
+ the original license provided by the owner of the applicable component.
package/README.md CHANGED
@@ -1,67 +1 @@
1
- # @inkeep/agents-ui
2
-
3
- React-based UI components for the Inkeep Agent Framework chat interface.
4
-
5
- ## Installation
6
-
7
- ```bash
8
- npm install @inkeep/agents-ui
9
- ```
10
-
11
- ## Overview
12
-
13
- This package provides a customizable chat widget UI for interacting with agents built using the Inkeep Agent Framework. It includes:
14
-
15
- - Chat interface components
16
- - Message rendering with markdown support
17
- - Streaming response handling
18
- - Tool call visualization
19
- - Responsive design with Tailwind CSS
20
-
21
- ## Usage
22
-
23
- ```typescript
24
- import { ChatWidget } from '@inkeep/agents-ui';
25
-
26
- // Basic usage
27
- <ChatWidget
28
- apiUrl="https://your-api-endpoint.com"
29
- agentId="your-agent-id"
30
- />
31
- ```
32
-
33
- ## Development
34
-
35
- ```bash
36
- # Install dependencies
37
- pnpm install
38
-
39
- # Start development server
40
- pnpm dev
41
-
42
- # Build for production
43
- pnpm build
44
-
45
- # Preview production build
46
- pnpm preview
47
- ```
48
-
49
- ## Dependencies
50
-
51
- - React 19+
52
- - Vite for bundling
53
- - TypeScript for type safety
54
- - Tailwind CSS for styling
55
- - Lucide React for icons
56
-
57
- ## License
58
-
59
- See LICENSE.md for details.
60
-
61
- ## Contributing
62
-
63
- Please refer to the main repository's contribution guidelines.
64
-
65
- ## Support
66
-
67
- For issues and questions, please open an issue in the main [inkeep/agents repository](https://github.com/inkeep/agents/issues).
1
+ # @inkeep
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
@@ -0,0 +1,4 @@
1
+ var e = { exports: {} };
2
+ export {
3
+ e as __module
4
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1,5 @@
1
+ "use client";
2
+ var e = {};
3
+ export {
4
+ e as __exports
5
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1,5 @@
1
+ "use client";
2
+ var e = {};
3
+ export {
4
+ e as __exports
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("react/jsx-runtime"),n=require("react"),L=["light","dark"],P="(prefers-color-scheme: dark)",T=typeof window>"u",D=n.createContext(void 0),_={setColorMode:e=>{},colorModes:[]},I=()=>n.useContext(D)??_;function q(e,l){const t=I();return(t.forcedColorMode??t.resolvedColorMode)==="dark"?l:e}const z=e=>(n.useContext(D),x.jsx(N,{...e})),J=()=>{},Q={setColorMode:J,colorModes:["dark"],colorMode:"dark",forcedColorMode:"dark",resolvedColorMode:"dark",systemColorMode:"dark"},F=({children:e})=>x.jsx(D.Provider,{value:Q,children:x.jsx("div",{"data-theme":"dark",children:e})}),G=["light","dark"],N=({forcedColorMode:e,disableTransitionOnChange:l=!1,enableSystem:t=!1,enableColorScheme:y=!0,storageKey:m="inkeep-colorMode",colorModes:r=G,defaultColorMode:o=t?"system":"light",attribute:M="data-theme",value:$,children:S,nonce:j,shadowHostId:p,rootId:h})=>{const[i,a]=n.useState(()=>A(m,o)),[w,d]=n.useState(()=>A(m)),u=$?Object.values($):r,g=n.useCallback(s=>{let c=s;if(!c)return;s==="system"&&t&&(c=B());const C=$?$[c]:c,O=l?W():null,R=p&&h&&document.getElementById(p)?.shadowRoot,E=R?R.getElementById(h)??document.documentElement:document.documentElement;if(M==="class"?(E.classList.remove(...u),C&&E.classList.add(C)):C?E.setAttribute(M,C):E.removeAttribute(M),y){const V=L.includes(o)?o:null,b=L.includes(c)?c:V;E.style.colorScheme=b}O?.()},[]),f=n.useCallback(s=>{a(s);try{localStorage.setItem(m,s)}catch{}},[e]),v=n.useCallback(s=>{const c=B(s);d(c),i==="system"&&t&&!e&&g("system")},[i,e]);n.useEffect(()=>{const s=window.matchMedia(P);return s.addListener(v),v(s),()=>s.removeListener(v)},[v]),n.useEffect(()=>{const s=c=>{if(c.key!==m)return;const C=c.newValue||o;f(C)};return window.addEventListener("storage",s),()=>window.removeEventListener("storage",s)},[f]),n.useEffect(()=>{g(e??i)},[e,i]);const k=n.useMemo(()=>({colorMode:i,setColorMode:f,forcedColorMode:e,resolvedColorMode:i==="system"?w:i,colorModes:t?[...r,"system"]:r,systemColorMode:t?w:void 0}),[i,f,e,w,t,r]);return x.jsxs(D.Provider,{value:k,children:[x.jsx(U,{forcedColorMode:e,disableTransitionOnChange:l,enableSystem:t,enableColorScheme:y,storageKey:m,colorModes:r,defaultColorMode:o,attribute:M,value:$,children:S,attrs:u,nonce:j,shadowHostId:p,rootId:h}),S]})},U=n.memo(({forcedColorMode:e,storageKey:l,attribute:t,enableSystem:y,enableColorScheme:m,defaultColorMode:r,value:o,attrs:M,nonce:$,shadowHostId:S,rootId:j})=>{const p=r==="system",h=(()=>{const d=S&&j?`document.getElementById('${S}').shadowRoot.getElementById('${j}')`:"document.documentElement";if(t==="class"){const u=`c.remove(${M.map(g=>`'${g}'`).join(",")})`;return`var d=${d},c=d.classList;${u};`}return`var d=${d},n='${t}',s='setAttribute';`})(),i=m?(L.includes(r)?r:null)?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${r}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",a=(d,u=!1,g=!0)=>{const f=o?o[d]:d,v=u?`${d}|| ''`:`'${f}'`;let k="";return m&&g&&!u&&L.includes(d)&&(k+=`d.style.colorScheme = '${d}';`),t==="class"?u||f?k+=`c.add(${v})`:k+="null":f&&(k+=`d[s](n,${v})`),k},w=e?`!function(){${h}${a(e)}}()`:y?`!function(){try{${h}var e=localStorage.getItem('${l}');if('system'===e||(!e&&${p})){var t='${P}',m=window.matchMedia(t);if(m.media!==t||m.matches){${a("dark")}}else{${a("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${a(o?"x[e]":"e",!0)}}${p?"":`else{${a(r,!1,!1)}}`}${i}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${l}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${a(o?"x[e]":"e",!0)}}else{${a(r,!1,!1)};}${i}}catch(t){}}();`;return x.jsx("script",{nonce:$,dangerouslySetInnerHTML:{__html:w}})},()=>!0),A=(e,l)=>{if(T)return;let t;try{t=localStorage.getItem(e)||void 0}catch{}return t||l},W=()=>{const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},B=e=>(e||(e=window.matchMedia(P)),e.matches?"dark":"light");exports.ColorMode=N;exports.ColorModeProvider=z;exports.DarkModeProvider=F;exports.useColorMode=I;exports.useColorModeValue=q;
@@ -0,0 +1,170 @@
1
+ import { jsx as x, jsxs as J } from "react/jsx-runtime";
2
+ import { useContext as O, createContext as T, useState as N, useCallback as A, useEffect as j, useMemo as Q, memo as q } from "react";
3
+ const L = ["light", "dark"], B = "(prefers-color-scheme: dark)", F = typeof window > "u", D = T(void 0), G = {
4
+ setColorMode: (e) => {
5
+ },
6
+ colorModes: []
7
+ }, U = () => O(D) ?? G;
8
+ function te(e, d) {
9
+ const t = U();
10
+ return (t.forcedColorMode ?? t.resolvedColorMode) === "dark" ? d : e;
11
+ }
12
+ const oe = (e) => (O(D), /* @__PURE__ */ x(Z, { ...e })), W = () => {
13
+ }, X = {
14
+ setColorMode: W,
15
+ colorModes: ["dark"],
16
+ colorMode: "dark",
17
+ forcedColorMode: "dark",
18
+ resolvedColorMode: "dark",
19
+ systemColorMode: "dark"
20
+ }, se = ({ children: e }) => /* @__PURE__ */ x(D.Provider, { value: X, children: /* @__PURE__ */ x("div", { "data-theme": "dark", children: e }) }), Y = ["light", "dark"], Z = ({
21
+ forcedColorMode: e,
22
+ disableTransitionOnChange: d = !1,
23
+ enableSystem: t = !1,
24
+ enableColorScheme: v = !0,
25
+ storageKey: a = "inkeep-colorMode",
26
+ colorModes: n = Y,
27
+ defaultColorMode: o = t ? "system" : "light",
28
+ attribute: k = "data-theme",
29
+ value: f,
30
+ children: w,
31
+ nonce: E,
32
+ shadowHostId: y,
33
+ rootId: $
34
+ }) => {
35
+ const [c, l] = N(() => P(a, o)), [C, i] = N(() => P(a)), m = f ? Object.values(f) : n, g = A((s) => {
36
+ let r = s;
37
+ if (!r) return;
38
+ s === "system" && t && (r = R());
39
+ const M = f ? f[r] : r, V = d ? H() : null, I = y && $ && document.getElementById(y)?.shadowRoot, S = I ? I.getElementById($) ?? document.documentElement : document.documentElement;
40
+ if (k === "class" ? (S.classList.remove(...m), M && S.classList.add(M)) : M ? S.setAttribute(k, M) : S.removeAttribute(k), v) {
41
+ const _ = L.includes(o) ? o : null, z = L.includes(r) ? r : _;
42
+ S.style.colorScheme = z;
43
+ }
44
+ V?.();
45
+ }, []), u = A(
46
+ (s) => {
47
+ l(s);
48
+ try {
49
+ localStorage.setItem(a, s);
50
+ } catch {
51
+ }
52
+ },
53
+ [e]
54
+ ), h = A(
55
+ (s) => {
56
+ const r = R(s);
57
+ i(r), c === "system" && t && !e && g("system");
58
+ },
59
+ [c, e]
60
+ );
61
+ j(() => {
62
+ const s = window.matchMedia(B);
63
+ return s.addListener(h), h(s), () => s.removeListener(h);
64
+ }, [h]), j(() => {
65
+ const s = (r) => {
66
+ if (r.key !== a)
67
+ return;
68
+ const M = r.newValue || o;
69
+ u(M);
70
+ };
71
+ return window.addEventListener("storage", s), () => window.removeEventListener("storage", s);
72
+ }, [u]), j(() => {
73
+ g(e ?? c);
74
+ }, [e, c]);
75
+ const p = Q(
76
+ () => ({
77
+ colorMode: c,
78
+ setColorMode: u,
79
+ forcedColorMode: e,
80
+ resolvedColorMode: c === "system" ? C : c,
81
+ colorModes: t ? [...n, "system"] : n,
82
+ systemColorMode: t ? C : void 0
83
+ }),
84
+ [c, u, e, C, t, n]
85
+ );
86
+ return /* @__PURE__ */ J(D.Provider, { value: p, children: [
87
+ /* @__PURE__ */ x(
88
+ b,
89
+ {
90
+ forcedColorMode: e,
91
+ disableTransitionOnChange: d,
92
+ enableSystem: t,
93
+ enableColorScheme: v,
94
+ storageKey: a,
95
+ colorModes: n,
96
+ defaultColorMode: o,
97
+ attribute: k,
98
+ value: f,
99
+ children: w,
100
+ attrs: m,
101
+ nonce: E,
102
+ shadowHostId: y,
103
+ rootId: $
104
+ }
105
+ ),
106
+ w
107
+ ] });
108
+ }, b = q(
109
+ ({
110
+ forcedColorMode: e,
111
+ storageKey: d,
112
+ attribute: t,
113
+ enableSystem: v,
114
+ enableColorScheme: a,
115
+ defaultColorMode: n,
116
+ value: o,
117
+ attrs: k,
118
+ nonce: f,
119
+ shadowHostId: w,
120
+ rootId: E
121
+ }) => {
122
+ const y = n === "system", $ = (() => {
123
+ const i = w && E ? `document.getElementById('${w}').shadowRoot.getElementById('${E}')` : "document.documentElement";
124
+ if (t === "class") {
125
+ const m = `c.remove(${k.map((g) => `'${g}'`).join(",")})`;
126
+ return `var d=${i},c=d.classList;${m};`;
127
+ }
128
+ return `var d=${i},n='${t}',s='setAttribute';`;
129
+ })(), c = a ? (L.includes(n) ? n : null) ? `if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${n}'` : "if(e==='light'||e==='dark')d.style.colorScheme=e" : "", l = (i, m = !1, g = !0) => {
130
+ const u = o ? o[i] : i, h = m ? `${i}|| ''` : `'${u}'`;
131
+ let p = "";
132
+ return a && g && !m && L.includes(i) && (p += `d.style.colorScheme = '${i}';`), t === "class" ? m || u ? p += `c.add(${h})` : p += "null" : u && (p += `d[s](n,${h})`), p;
133
+ }, C = e ? `!function(){${$}${l(e)}}()` : v ? `!function(){try{${$}var e=localStorage.getItem('${d}');if('system'===e||(!e&&${y})){var t='${B}',m=window.matchMedia(t);if(m.media!==t||m.matches){${l(
134
+ "dark"
135
+ )}}else{${l("light")}}}else if(e){${o ? `var x=${JSON.stringify(o)};` : ""}${l(o ? "x[e]" : "e", !0)}}${y ? "" : `else{${l(n, !1, !1)}}`}${c}}catch(e){}}()` : `!function(){try{${$}var e=localStorage.getItem('${d}');if(e){${o ? `var x=${JSON.stringify(o)};` : ""}${l(o ? "x[e]" : "e", !0)}}else{${l(
136
+ n,
137
+ !1,
138
+ !1
139
+ )};}${c}}catch(t){}}();`;
140
+ return /* @__PURE__ */ x("script", { nonce: f, dangerouslySetInnerHTML: { __html: C } });
141
+ },
142
+ // Never re-render this component
143
+ () => !0
144
+ ), P = (e, d) => {
145
+ if (F) return;
146
+ let t;
147
+ try {
148
+ t = localStorage.getItem(e) || void 0;
149
+ } catch {
150
+ }
151
+ return t || d;
152
+ }, H = () => {
153
+ const e = document.createElement("style");
154
+ return e.appendChild(
155
+ document.createTextNode(
156
+ "*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}"
157
+ )
158
+ ), document.head.appendChild(e), () => {
159
+ window.getComputedStyle(document.body), setTimeout(() => {
160
+ document.head.removeChild(e);
161
+ }, 1);
162
+ };
163
+ }, R = (e) => (e || (e = window.matchMedia(B)), e.matches ? "dark" : "light");
164
+ export {
165
+ Z as ColorMode,
166
+ oe as ColorModeProvider,
167
+ se as DarkModeProvider,
168
+ U as useColorMode,
169
+ te as useColorModeValue
170
+ };
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./react/embedded-chat.cjs"),f=require("./react/sidebar-chat.cjs"),C=require("./react/embedded-search-and-chat.cjs"),d=require("./react/embedded-search.cjs"),R=require("./react/modal.chat.cjs"),T=require("./react/modal.search-and-chat.cjs"),$=require("./react/modal.search.cjs"),l=require("./react/modal.cjs"),p=require("./react/chat-button.cjs"),I=require("./react/searchbar.cjs"),W=require("./styled/components/embedded-chat.cjs"),D=require("./styled/components/sidebar-chat.cjs"),x=require("./styled/components/embedded-search.cjs"),O=require("./styled/components/modal.cjs"),z=require("./styled/components/chat-button.cjs"),H=require("./styled/components/searchbar.cjs"),L=require("./styled/components/shadow.cjs"),j=require("./styled/components/loading-indicator.cjs"),G=require("./styled/components/ui/recipes/widget-toggle.cjs"),Q=require("./styled/components/message.cjs"),U=require("./styled/components/data-summary-group.cjs"),S=require("./primitives/providers/attachment-item-provider.cjs"),P=require("./primitives/providers/attachments-bar-provider.cjs"),v=require("./primitives/providers/base-events-provider.cjs"),i=require("./primitives/providers/chat-form-provider.cjs"),m=require("./primitives/providers/config-provider.cjs"),b=require("./primitives/providers/feedback-item-provider.cjs"),q=require("./primitives/providers/feedback-provider.cjs"),k=require("./primitives/providers/form-field-provider.cjs"),u=require("./primitives/providers/help-menu-provider.cjs"),g=require("./primitives/providers/markdown-provider.cjs"),M=require("./primitives/providers/message-attachments-provider.cjs"),c=require("./primitives/providers/message-provider.cjs"),_=require("./primitives/providers/root-provider.cjs"),B=require("./primitives/providers/source-item-provider.cjs"),K=require("./primitives/providers/theme-provider.cjs"),E=require("./primitives/providers/widget-provider.cjs"),n=require("./primitives/providers/sidebar-chat-provider.cjs"),F=require("./primitives/components/factory.cjs"),N=require("./primitives/components/embedded-chat.cjs"),V=require("./primitives/components/sidebar-chat/index.cjs"),A=require("./primitives/components/embedded-chat/chat-provider.cjs"),J=require("./primitives/components/embedded-search.cjs"),h=require("./primitives/components/embedded-search/search-provider.cjs"),X=require("./primitives/components/modal.cjs"),y=require("./primitives/components/modal/modal-provider.cjs"),Y=require("./primitives/components/chat-button.cjs"),Z=require("./primitives/components/searchbar.cjs"),ee=require("./primitives/hooks/use-boolean.cjs"),re=require("./primitives/hooks/use-component-classnames.cjs"),oe=require("./primitives/hooks/use-container-size.cjs"),te=require("./primitives/hooks/use-copy-to-clipboard.cjs"),ae=require("./primitives/hooks/use-instant-update.cjs"),de=require("./primitives/hooks/use-is-mounted.cjs"),ne=require("./primitives/hooks/use-media-query.cjs"),se=require("./primitives/hooks/use-resize-observer.cjs"),ie=require("./primitives/hooks/use-scrolling-fades.cjs"),me=require("./primitives/hooks/use-settle-action.cjs"),ue=require("./primitives/hooks/use-scroll-to-bottom.cjs"),o=require("./primitives/utils/misc.cjs"),r=require("./primitives/utils/component-ids.cjs"),w=require("./primitives/utils/compose-refs.cjs"),ce=require("./primitives/utils/merge-props.cjs"),he=require("./primitives/atoms/portal.cjs"),Ce=require("./primitives/atoms/icons/custom-icon.cjs"),le=require("./primitives/atoms/icons/built-in-icon-renderer.cjs"),pe=require("./primitives/atoms/portal-with-theme.cjs"),e=require("./primitives/atoms/cmdk/index.cjs"),Ie=require("./primitives/atoms/error-boundary.cjs"),t=require("./color-mode/index.cjs"),s=require("./primitives/atoms/shadow/context.cjs");exports.InkeepEmbeddedChat=a.InkeepEmbeddedChat;exports.InkeepEmbeddedChatImpl=a.InkeepEmbeddedChatImpl;exports.InkeepEmbeddedChatImplContent=a.InkeepEmbeddedChatImplContent;exports.InkeepEmbeddedChatProvider=a.InkeepEmbeddedChatProvider;exports.InkeepSidebarChat=f.InkeepSidebarChat;exports.InkeepEmbeddedSearchAndChat=C.InkeepEmbeddedSearchAndChat;exports.InkeepEmbeddedSearchAndChatImpl=C.InkeepEmbeddedSearchAndChatImpl;exports.InkeepEmbeddedSearch=d.InkeepEmbeddedSearch;exports.InkeepEmbeddedSearchImpl=d.InkeepEmbeddedSearchImpl;exports.InkeepEmbeddedSearchImplContent=d.InkeepEmbeddedSearchImplContent;exports.InkeepEmbeddedSearchProvider=d.InkeepEmbeddedSearchProvider;exports.InkeepModalChat=R.InkeepModalChat;exports.InkeepModalSearchAndChat=T.InkeepModalSearchAndChat;exports.InkeepModalSearch=$.InkeepModalSearch;exports.InkeepModal=l.InkeepModal;exports.ModalContent=l.ModalContent;exports.ChatButtonImpl=p.ChatButtonImpl;exports.InkeepChatButton=p.InkeepChatButton;exports.InkeepSearchBar=I.InkeepSearchBar;exports.SearchBarImpl=I.SearchBarImpl;exports.EmbeddedChat=W;exports.SidebarChat=D;exports.EmbeddedSearch=x;exports.Modal=O;exports.ChatButton=z;exports.SearchBar=H;exports.Shadow=L.Shadow;exports.LoadingIndicator=j.LoadingIndicator;exports.widgetToggle=G.widgetToggle;exports.EmbeddedChatMessagePart=Q.EmbeddedChatMessagePart;exports.DataSummaryGroup=U.DataSummaryGroup;exports.AttachmentItemProvider=S.AttachmentItemProvider;exports.useAttachmentItem=S.useAttachmentItem;exports.AttachmentsBarProvider=P.AttachmentsBarProvider;exports.useAttachmentsBar=P.useAttachmentsBar;exports.BaseEventsProvider=v.BaseEventsProvider;exports.useBaseEvents=v.useBaseEvents;exports.ChatFormProvider=i.ChatFormProvider;exports.useChatForm=i.useChatForm;exports.useChatFormState=i.useChatFormState;exports.InkeepConfigProvider=m.InkeepConfigProvider;exports.WebWidgetInteractionType=m.WebWidgetInteractionType;exports.useInkeepConfig=m.useInkeepConfig;exports.FeedbackItemProvider=b.FeedbackItemProvider;exports.useFeedbackItem=b.useFeedbackItem;exports.FeedbackProvider=q.FeedbackProvider;exports.useMessageFeedback=q.useMessageFeedback;exports.FormFieldProvider=k.FormFieldProvider;exports.useFormField=k.useFormField;exports.HelpMenuProvider=u.HelpMenuProvider;exports.useHelpMenu=u.useHelpMenu;exports.useHelpMenuState=u.useHelpMenuState;exports.ChatMarkdownProvider=g.ChatMarkdownProvider;exports.useChatMarkdown=g.useChatMarkdown;exports.MessageAttachmentsProvider=M.MessageAttachmentsProvider;exports.useMessageAttachments=M.useMessageAttachments;exports.MessageProvider=c.MessageProvider;exports.useMessage=c.useMessage;exports.useOptionalMessage=c.useOptionalMessage;exports.RootProvider=_.RootProvider;exports.SourceItemProvider=B.SourceItemProvider;exports.useSourceItem=B.useSourceItem;exports.ThemeProvider=K.ThemeProvider;exports.WidgetProvider=E.WidgetProvider;exports.useWidget=E.useWidget;exports.SidebarChatProvider=n.SidebarChatProvider;exports.useInkeepSidebarChat=n.useInkeepSidebarChat;exports.useOptionalSidebarChat=n.useOptionalSidebarChat;exports.useSidebarChat=n.useSidebarChat;exports.ikp=F.ikp;exports.jsxFactory=F.jsxFactory;exports.EmbeddedChatPrimitive=N;exports.SidebarChatPrimitive=V;exports.ChatProvider=A.ChatProvider;exports.useChat=A.useChat;exports.EmbeddedSearchPrimitive=J;exports.SearchProvider=h.SearchProvider;exports.SearchProviderImpl=h.SearchProviderImpl;exports.useSearch=h.useSearch;exports.ModalPrimitive=X;exports.ModalProvider=y.ModalProvider;exports.useModal=y.useModal;exports.ChatButtonPrimitive=Y;exports.SearchBarPrimitive=Z;exports.useBoolean=ee.useBoolean;exports.useComponentClassNames=re.useComponentClassNames;exports.useContainerSize=oe.useContainerSize;exports.useCopyToClipboard=te.useCopyToClipboard;exports.useInstantUpdate=ae.useInstantUpdate;exports.useIsMounted=de.useIsMounted;exports.useMediaQuery=ne.useMediaQuery;exports.useResizeObserver=se.useResizeObserver;exports.useScrollingFades=ie.useScrollingFades;exports.useSettleAction=me.useSettleAction;exports.useScrollToBottom=ue.useScrollToBottom;exports.callAll=o.callAll;exports.dataAttr=o.dataAttr;exports.getInitials=o.getInitials;exports.getMessageContent=o.getMessageContent;exports.isString=o.isString;exports.maybeRender=o.maybeRender;exports.toKebabCase=o.toKebabCase;exports.SearchBarComponentIds=r.SearchBarComponentIds;exports.SidebarChatComponentIds=r.SidebarChatComponentIds;exports.aiChatComponentIds=r.aiChatComponentIds;exports.aiSearchComponentIds=r.aiSearchComponentIds;exports.chatButtonComponentIds=r.chatButtonComponentIds;exports.componentIDs=r.componentIDs;exports.markDownComponentIds=r.markDownComponentIds;exports.miscellanousComponentIds=r.miscellanousComponentIds;exports.modalComponentIds=r.modalComponentIds;exports.composeRefs=w.composeRefs;exports.useComposedRefs=w.useComposedRefs;exports.mergeProps=ce.mergeProps;exports.Portal=he.Portal;exports.CustomIcon=Ce.CustomIcon;exports.BuiltInIconRenderer=le.BuiltInIconRenderer;exports.PortalWithTheme=pe.PortalWithTheme;exports.Command=e.Command;exports.CommandDialog=e.CommandDialog;exports.CommandEmpty=e.CommandEmpty;exports.CommandInput=e.CommandInput;exports.CommandItem=e.CommandItem;exports.CommandList=e.CommandList;exports.CommandLoading=e.CommandLoading;exports.CommandRoot=e.CommandRoot;exports.CommandSeparator=e.CommandSeparator;exports.defaultFilter=e.defaultFilter;exports.useCommandState=e.useCommandState;exports.useCommandStore=e.useCommandStore;exports.ErrorBoundary=Ie.ErrorBoundary;exports.ColorMode=t.ColorMode;exports.ColorModeProvider=t.ColorModeProvider;exports.DarkModeProvider=t.DarkModeProvider;exports.useColorMode=t.useColorMode;exports.useColorModeValue=t.useColorModeValue;exports.InkeepShadow=s.InkeepShadow;exports.InkeepShadowProvider=s.InkeepShadowProvider;exports.ShadowContext=s.ShadowContext;exports.useShadow=s.useShadow;