@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
@@ -0,0 +1,309 @@
1
+ "use client";
2
+ const a = {
3
+ icon: "icon",
4
+ // Only in styled
5
+ loadingIndicator__Text: "loadingIndicator__Text",
6
+ loadingIndicator__Dots: "loadingIndicator__Dots",
7
+ loadingIndicator__Dot: "loadingIndicator__Dot",
8
+ view_toggle: "view_toggle",
9
+ view_toggle_button: "view_toggle_button",
10
+ view_toggle_icon: "view_toggle_icon"
11
+ }, e = {
12
+ codeblockContainer: "codeblockContainer",
13
+ codeblockHeader: "codeblockHeader",
14
+ codeblockHeaderLanguage: "codeblockHeaderLanguage",
15
+ codeblockCopyButton: "codeblockCopyButton",
16
+ codeblockHighlighterWrapper: "codeblockHighlighterWrapper",
17
+ codeblockHighlighter: "codeblockHighlighter",
18
+ codeblockCode: "codeblockCode",
19
+ markdownH1: "markdownH1",
20
+ markdownH2: "markdownH2",
21
+ markdownP: "markdownP",
22
+ markdownLi: "markdownLi",
23
+ markdownUl: "markdownUl",
24
+ markdownOl: "markdownOl",
25
+ markdownLink: "markdownLink",
26
+ markdownSourceLink: "markdownSourceLink",
27
+ markdownTable: "markdownTable",
28
+ markdownTh: "markdownTh",
29
+ markdownTd: "markdownTd",
30
+ markdownCode: "markdownCode",
31
+ markdownInput: "markdownInput",
32
+ markdownSup: "markdownSup",
33
+ markdownImg: "markdownImg"
34
+ }, t = {
35
+ aiChatWrapper: "aiChatWrapper",
36
+ aiChatRoot: "aiChatRoot",
37
+ aiChatHeader: "aiChatHeader",
38
+ aiChatHeader__Toolbar: "aiChatHeader__Toolbar",
39
+ aiChatHeader__ToolbarHeader: "aiChatHeader__ToolbarHeader",
40
+ aiChatHeader__ToolbarHeaderWrapper: "aiChatHeader__ToolbarHeaderWrapper",
41
+ aiChatContent: "aiChatContent",
42
+ aiChatContentScrollArea: "aiChatContentScrollArea",
43
+ aiChatContentScrollArea__Viewport: "aiChatContentScrollArea__Viewport",
44
+ aiChatContentScrollArea__Scrollbar: "aiChatContentScrollArea__Scrollbar",
45
+ aiChatContentScrollArea__Thumb: "aiChatContentScrollArea__Thumb",
46
+ aiChatContentScrollArea__Corner: "aiChatContentScrollArea__Corner",
47
+ aiChatDisclaimer: "aiChatDisclaimer",
48
+ aiChatDisclaimerLabel: "aiChatDisclaimerLabel",
49
+ aiChatDisclaimerTrigger: "aiChatDisclaimerTrigger",
50
+ aiChatDisclaimerContent: "aiChatDisclaimerContent",
51
+ aiChatDisclaimerText: "aiChatDisclaimerText",
52
+ aiChatDisclaimerArrow: "aiChatDisclaimerArrow",
53
+ aiChatExampleQuestions: "aiChatExampleQuestions",
54
+ aiChatExampleQuestionsLabel: "aiChatExampleQuestionsLabel",
55
+ aiChatExampleQuestionsList: "aiChatExampleQuestionsList",
56
+ aiChatExampleQuestion: "aiChatExampleQuestion",
57
+ aiChatExampleQuestionButton: "aiChatExampleQuestionButton",
58
+ aiChatWorkflows: "aiChatWorkflows",
59
+ aiChatWorkflowsLabel: "aiChatWorkflowsLabel",
60
+ aiChatWorkflowsList: "aiChatWorkflowsList",
61
+ aiChatWorkflow: "aiChatWorkflow",
62
+ aiChatWorkflow__Icon: "aiChatWorkflow__Icon",
63
+ aiChatMessages: "aiChatMessages",
64
+ aiChatMessageWrapper: "aiChatMessageWrapper",
65
+ aiChatMessageHeader: "aiChatMessageHeader",
66
+ aiChatMessageLoading: "aiChatMessageLoading",
67
+ aiChatMessageAvatar: "aiChatMessageAvatar",
68
+ aiChatMessageAvatarFallback: "aiChatMessageAvatarFallback",
69
+ aiChatMessageAvatarImage: "aiChatMessageAvatarImage",
70
+ aiChatMessageAvatarContent: "aiChatMessageAvatarContent",
71
+ aiChatMessageName: "aiChatMessageName",
72
+ aiChatMessageContentWrapper: "aiChatMessageContentWrapper",
73
+ aiChatMessageContent: "aiChatMessageContent",
74
+ aiChatMessageAttachments: "aiChatMessageAttachments",
75
+ aiChatMessageAttachments__List: "aiChatMessageAttachments__List",
76
+ aiChatMessageAttachments__Item: "aiChatMessageAttachments__Item",
77
+ aiChatMessageAttachments__ItemIcon: "aiChatMessageAttachments__ItemIcon",
78
+ aiChatMessageAttachments__ItemTitle: "aiChatMessageAttachments__ItemTitle",
79
+ aiChatMessageAttachmentsPreview: "aiChatMessageAttachmentsPreview",
80
+ aiChatMessageAttachmentsPreview__Overlay: "aiChatMessageAttachmentsPreview__Overlay",
81
+ aiChatMessageAttachmentsPreview__Content: "aiChatMessageAttachmentsPreview__Content",
82
+ aiChatMessageAttachmentsPreview__Header: "aiChatMessageAttachmentsPreview__Header",
83
+ aiChatMessageAttachmentsPreview__Close: "aiChatMessageAttachmentsPreview__Close",
84
+ aiChatMessageAttachmentsPreview__Body: "aiChatMessageAttachmentsPreview__Body",
85
+ aiChatMessagePart: "aiChatMessagePart",
86
+ aiChatMessageToolbar: "aiChatMessageToolbar",
87
+ aiChatMessageAnnotationActions: "aiChatMessageAnnotationActions",
88
+ aiChatMessageAnnotationAction: "aiChatMessageAnnotationAction",
89
+ aiChatMessageAction: "aiChatMessageAction",
90
+ aiChatMessageSources: "aiChatMessageSources",
91
+ aiChatMessageSources__Header: "aiChatMessageSources__Header",
92
+ aiChatMessageSources__List: "aiChatMessageSources__List",
93
+ aiChatMessageSourceItem: "aiChatMessageSourceItem",
94
+ aiChatMessageSourceItem__Icon: "aiChatMessageSourceItem__Icon",
95
+ aiChatMessageSourceItem__Breadcrumbs: "aiChatMessageSourceItem__Breadcrumbs",
96
+ aiChatMessageSourceItem__Breadcrumb: "aiChatMessageSourceItem__Breadcrumb",
97
+ aiChatMessageSourceItem__BreadcrumbIcon: "aiChatMessageSourceItem__BreadcrumbIcon",
98
+ aiChatMessageSourceItem__Title: "aiChatMessageSourceItem__Title",
99
+ aiChatMessageSourceItem__Tag: "aiChatMessageSourceItem__Tag",
100
+ aiChatMessageSourceItem__Description: "aiChatMessageSourceItem__Description",
101
+ aiChatMessageSourceItem__DescriptionPart: "aiChatMessageSourceItem__DescriptionPart",
102
+ aiChatMessageSourceItem__Indicator: "aiChatMessageSourceItem__Indicator",
103
+ aiChatFooter: "aiChatFooter",
104
+ aiChatInput__Fieldset: "aiChatInput__Fieldset",
105
+ aiChatInput__Group: "aiChatInput__Group",
106
+ aiChatInput: "aiChatInput",
107
+ aiChatInput__SendButton: "aiChatInput__SendButton",
108
+ aiChatInput__SendButtonIcon: "aiChatInput__SendButtonIcon",
109
+ aiChatAttachmentsBar: "aiChatAttachmentsBar",
110
+ aiChatAttachmentsBar__List: "aiChatAttachmentsBar__List",
111
+ aiChatAttachmentsBar__Attachment: "aiChatAttachmentsBar__Attachment",
112
+ aiChatAttachmentsBar__AttachmentIcon: "aiChatAttachmentsBar__AttachmentIcon",
113
+ aiChatAttachmentsBar__AttachmentTitle: "aiChatAttachmentsBar__AttachmentTitle",
114
+ aiChatAttachmentsBar__AttachmentDelete: "aiChatAttachmentsBar__AttachmentDelete",
115
+ aiChatAttachmentsBar__Actions: "aiChatAttachmentsBar__Actions",
116
+ aiChatAttachmentsBar__InfoTip: "aiChatAttachmentsBar__InfoTip",
117
+ aiChatAttachmentsBar__InfoTipIcon: "aiChatAttachmentsBar__InfoTipIcon",
118
+ aiChatAttachmentsBar__InfoTipArrow: "aiChatAttachmentsBar__InfoTipArrow",
119
+ aiChatAttachmentsBar__InfoTipText: "aiChatAttachmentsBar__InfoTipText",
120
+ aiChatAttachmentsBar__Inputs: "aiChatAttachmentsBar__Inputs",
121
+ aiChatAttachmentsBar__Input: "aiChatAttachmentsBar__Input",
122
+ aiChatAttachmentsBar__InputIcon: "aiChatAttachmentsBar__InputIcon",
123
+ aiChatAttachmentsBar__Modal: "aiChatAttachmentsBar__Modal",
124
+ aiChatAttachmentsBar__ModalOverlay: "aiChatAttachmentsBar__ModalOverlay",
125
+ aiChatAttachmentsBar__ModalContent: "aiChatAttachmentsBar__ModalContent",
126
+ aiChatAttachmentsBar__ModalHeader: "aiChatAttachmentsBar__ModalHeader",
127
+ aiChatAttachmentsBar__ModalClose: "aiChatAttachmentsBar__ModalClose",
128
+ aiChatAttachmentsBar__ModalBody: "aiChatAttachmentsBar__ModalBody",
129
+ aiChatAttachmentsBar__ModalHeading: "aiChatAttachmentsBar__ModalHeading",
130
+ aiChatAttachmentsBar__ModalDescription: "aiChatAttachmentsBar__ModalDescription",
131
+ aiChatAttachmentsBar__ModalHelp: "aiChatAttachmentsBar__ModalHelp",
132
+ aiChatAttachmentsBar__Form: "aiChatAttachmentsBar__Form",
133
+ aiChatAttachmentsBar__FormTitle: "aiChatAttachmentsBar__FormTitle",
134
+ aiChatAttachmentsBar__FormTitleLabel: "aiChatAttachmentsBar__FormTitleLabel",
135
+ aiChatAttachmentsBar__FormTitleInput: "aiChatAttachmentsBar__FormTitleInput",
136
+ aiChatAttachmentsBar__FormTitleError: "aiChatAttachmentsBar__FormTitleError",
137
+ aiChatAttachmentsBar__FormContent: "aiChatAttachmentsBar__FormContent",
138
+ aiChatAttachmentsBar__FormContentLabel: "aiChatAttachmentsBar__FormContentLabel",
139
+ aiChatAttachmentsBar__FormContentInput: "aiChatAttachmentsBar__FormContentInput",
140
+ aiChatAttachmentsBar__FormContentError: "aiChatAttachmentsBar__FormContentError",
141
+ aiChatAttachmentsBar__FormSubmitButton: "aiChatAttachmentsBar__FormSubmitButton",
142
+ aiChatActionBar: "aiChatActionBar",
143
+ aiChat__ChatActions: "aiChat__ChatActions",
144
+ aiChat__ChatAction: "aiChat__ChatAction",
145
+ aiChat__ChatActionLabel: "aiChat__ChatActionLabel",
146
+ aiChat__ChatActionFeeback: "aiChat__ChatActionFeeback",
147
+ aiChatHelpActions: "aiChatHelpActions",
148
+ aiChatHelpAction: "aiChatHelpAction",
149
+ aiChatHelpActions__Trigger: "aiChatHelpActions__Trigger",
150
+ aiChatHelpActions__Menu: "aiChatHelpActions__Menu",
151
+ aiChatHelpActions__MenuArrow: "aiChatHelpActions__MenuArrow",
152
+ aiChatHelpActions__MenuItem: "aiChatHelpActions__MenuItem",
153
+ aiChatHelpActions_MenuItemIcon: "aiChatHelpActions_MenuItemIcon",
154
+ aiChatTagline__Container: "aiChatTagline__Container",
155
+ aiChatTagline__Text: "aiChatTagline__Text",
156
+ aiChatTagline__Logo: "aiChatTagline__Logo",
157
+ aiChatTagline__BrandName: "aiChatTagline__BrandName",
158
+ aiChatFeedbackModal: "aiChatFeedbackModal",
159
+ aiChatFeedbackModal__Overlay: "aiChatFeedbackModal__Overlay",
160
+ aiChatFeedbackModal__Content: "aiChatFeedbackModal__Content",
161
+ aiChatFeedbackModal__Header: "aiChatFeedbackModal__Header",
162
+ aiChatFeedbackModal__Close: "aiChatFeedbackModal__Close",
163
+ aiChatFeedbackModal__Body: "aiChatFeedbackModal__Body",
164
+ aiChatFeedbackForm: "aiChatFeedbackForm",
165
+ aiChatFeedbackItem: "aiChatFeedbackItem",
166
+ aiChatFeedbackItem__Checkbox: "aiChatFeedbackItem__Checkbox",
167
+ aiChatFeedbackItem__CheckboxIndicator: "aiChatFeedbackItem__CheckboxIndicator",
168
+ aiChatFeedbackItem__Label: "aiChatFeedbackItem__Label",
169
+ aiChatFeedbackItem__Description: "aiChatFeedbackItem__Description",
170
+ aiChatFeedbackForm__SubmitButton: "aiChatFeedbackForm__SubmitButton",
171
+ aiChatForm__Wrapper: "aiChatForm__Wrapper",
172
+ aiChatForm: "aiChatForm",
173
+ aiChatForm__Close: "aiChatForm__Close",
174
+ aiChatForm__Header: "aiChatForm__Header",
175
+ aiChatForm__Heading: "aiChatForm__Heading",
176
+ aiChatForm__Description: "aiChatForm__Description",
177
+ aiChatForm__Content: "aiChatForm__Content",
178
+ aiChatForm__Field: "aiChatForm__Field",
179
+ aiChatForm__FieldLabel: "aiChatForm__FieldLabel",
180
+ aiChatForm__FieldText: "aiChatForm__FieldText",
181
+ aiChatForm__FieldEmail: "aiChatForm__FieldEmail",
182
+ aiChatForm__FieldFile: "aiChatForm__FieldFile",
183
+ aiChatForm__FieldTextArea: "aiChatForm__FieldTextArea",
184
+ aiChatForm__FieldCheckbox: "aiChatForm__FieldCheckbox",
185
+ aiChatForm__FieldCheckboxIndicator: "aiChatForm__FieldCheckboxIndicator",
186
+ aiChatForm__FieldSelect: "aiChatForm__FieldSelect",
187
+ aiChatForm__FieldSelect__Trigger: "aiChatForm__FieldSelect__Trigger",
188
+ aiChatForm__FieldSelect__Value: "aiChatForm__FieldSelect__Value",
189
+ aiChatForm__FieldSelect__Icon: "aiChatForm__FieldSelect__Icon",
190
+ aiChatForm__FieldSelect__Content: "aiChatForm__FieldSelect__Content",
191
+ aiChatForm__FieldSelect__Viewport: "aiChatForm__FieldSelect__Viewport",
192
+ aiChatForm__FieldSelect__Item: "aiChatForm__FieldSelect__Item",
193
+ aiChatForm__FieldSelect__ItemIndicator: "aiChatForm__FieldSelect__ItemIndicator",
194
+ aiChatForm__FieldSelect__ItemText: "aiChatForm__FieldSelect__ItemText",
195
+ aiChatForm__FieldError: "aiChatForm__FieldError",
196
+ aiChatForm__Error: "aiChatForm__Error",
197
+ aiChatForm__Footer: "aiChatForm__Footer",
198
+ aiChatForm__Cancel: "aiChatForm__Cancel",
199
+ aiChatForm__Submit: "aiChatForm__Submit",
200
+ aiChatForm__Success: "aiChatForm__Success",
201
+ aiChatForm__SuccessHeading: "aiChatForm__SuccessHeading",
202
+ aiChatForm__SuccessMessage: "aiChatForm__SuccessMessage",
203
+ aiChatForm__SuccessButton: "aiChatForm__SuccessButton",
204
+ //
205
+ aiChatLink: "aiChatLink"
206
+ }, _ = {
207
+ aiSearchWrapper: "aiSearchWrapper",
208
+ aiSearchRoot: "aiSearchRoot",
209
+ aiSearchContent: "aiSearchContent",
210
+ aiSearchInputGroup: "aiSearchInputGroup",
211
+ aiSearchInputIcon: "aiSearchInputIcon",
212
+ aiSearchInput: "aiSearchInput",
213
+ aiSearchLoading: "aiSearchLoading",
214
+ aiAskAITrigger: "aiAskAITrigger",
215
+ aiAskAITrigger__Icon: "aiAskAITrigger__Icon",
216
+ aiAskAITrigger__Label: "aiAskAITrigger__Label",
217
+ aiAskAITrigger__Query: "aiAskAITrigger__Query",
218
+ aiAskAITrigger__Indicator: "aiAskAITrigger__Indicator",
219
+ aiAskAITrigger__IndicatorText: "aiAskAITrigger__IndicatorText",
220
+ aiSearchResults: "aiSearchResults",
221
+ aiSearchResults__Loading: "aiSearchResults__Loading",
222
+ aiSearchResults__Empty: "aiSearchResults__Empty",
223
+ aiSearchResults__TabList: "aiSearchResults__TabList",
224
+ aiSearchResults__Tab: "aiSearchResults__Tab",
225
+ aiSearchResults__Content: "aiSearchResults__Content",
226
+ aiSearchResults__ScrollArea: "aiSearchResults__ScrollArea",
227
+ aiSearchResults__ScrollAreaViewport: "aiSearchResults__ScrollAreaViewport",
228
+ aiSearchResults__List: "aiSearchResults__List",
229
+ aiSearchResults__Item: "aiSearchResults__Item",
230
+ aiSearchResults__ItemIcon: "aiSearchResults__ItemIcon",
231
+ aiSearchResults__ItemBreadcrumbs: "aiSearchResults__ItemBreadcrumbs",
232
+ aiSearchResults__ItemBreadcrumbIcon: "aiSearchResults__ItemBreadcrumbIcon",
233
+ aiSearchResults__ItemTitle: "aiSearchResults__ItemTitle",
234
+ aiSearchResults__ItemTag: "aiSearchResults__ItemTag",
235
+ aiSearchResults__ItemDescription: "aiSearchResults__ItemDescription",
236
+ aiSearchResults__ItemDescriptionPart: "aiSearchResults__ItemDescriptionPart",
237
+ aiSearchResults__ItemIndicator: "aiSearchResults__ItemIndicator",
238
+ aiSearchResults__ItemPreview: "aiSearchResults__ItemPreview",
239
+ aiSearchResults__ItemPreview__Header: "aiSearchResults__ItemPreview__Header",
240
+ aiSearchResults__ItemPreview__Heading: "aiSearchResults__ItemPreview__Heading",
241
+ aiSearchResults__ItemPreview__Title: "aiSearchResults__ItemPreview__Title",
242
+ aiSearchResults__ItemPreview__Title__LinkIcon: "aiSearchResults__ItemPreview__Title__LinkIcon",
243
+ aiSearchResults__ItemPreview__Breadcrumbs: "aiSearchResults__ItemPreview__Breadcrumbs",
244
+ aiSearchResults__ItemPreview__BreadcrumbIcon: "aiSearchResults__ItemPreview__BreadcrumbIcon",
245
+ aiSearchResults__ItemPreview__Body: "aiSearchResults__ItemPreview__Body",
246
+ aiSearchResults__ItemPreview__Outline: "aiSearchResults__ItemPreview__Outline",
247
+ aiSearchResults__ItemPreview__Outline__Title: "aiSearchResults__ItemPreview__Outline__Title",
248
+ aiSearchResults__ItemPreview__Outline__List: "aiSearchResults__ItemPreview__Outline__List",
249
+ aiSearchResults__ItemPreview__Outline__Item: "aiSearchResults__ItemPreview__Outline__Item",
250
+ aiSearchResults__ItemPreview__Outline__ItemIcon: "aiSearchResults__ItemPreview__Outline__ItemIcon",
251
+ aiSearchResults__ItemPreview__Outline__ItemText: "aiSearchResults__ItemPreview__Outline__ItemText",
252
+ aiSearchResults__ItemPreview__Outline__ItemLinkIcon: "aiSearchResults__ItemPreview__Outline__ItemLinkIcon",
253
+ aiSearchResults__ScrollAreaScrollbar: "aiSearchResults__ScrollAreaScrollbar",
254
+ aiSearchResults__ScrollAreaThumb: "aiSearchResults__ScrollAreaThumb",
255
+ aiSearchResults__ScrollAreaCorner: "aiSearchResults__ScrollAreaCorner",
256
+ aiSearchFooter: "aiSearchFooter",
257
+ aiSearchTagline__Container: "aiSearchTagline__Container",
258
+ aiSearchTagline__Text: "aiSearchTagline__Text",
259
+ aiSearchTagline__Logo: "aiSearchTagline__Logo",
260
+ aiSearchTagline__BrandName: "aiSearchTagline__BrandName"
261
+ }, i = {
262
+ modal: "modal",
263
+ modal__Overlay: "modal__Overlay",
264
+ modal__Content: "modal__Content",
265
+ modal__Close: "modal__Close"
266
+ }, r = {
267
+ chatButton__Text: "chatButton__Text",
268
+ chatButton__Button: "chatButton__Button",
269
+ chatButton__Container: "chatButton__Container",
270
+ chatButton__AvatarImage: "chatButton__AvatarImage",
271
+ chatButton__AvatarContent: "chatButton__AvatarContent"
272
+ }, o = {
273
+ searchBar__Container: "searchBar__Container",
274
+ searchBar__Button: "searchBar__Button",
275
+ searchBar__ContentWrapper: "searchBar__ContentWrapper",
276
+ searchBar__Text: "searchBar__Text",
277
+ searchBar__Icon: "searchBar__Icon",
278
+ searchBar__KbdWrapper: "searchBar__KbdWrapper",
279
+ searchBar__CmdIcon: "searchBar__CmdIcon",
280
+ searchBar__Ctrl: "searchBar__Ctrl",
281
+ searchBar__KbdShortcutKey: "searchBar__KbdShortcutKey"
282
+ }, h = {
283
+ sidebarChat__Root: "sidebarChat__Root",
284
+ sidebarChat__Resizer: "sidebarChat__Resizer",
285
+ sidebarChat__CloseButton: "sidebarChat__CloseButton",
286
+ sidebarChat__Header: "sidebarChat__Header"
287
+ }, s = {
288
+ //
289
+ //
290
+ ...e,
291
+ ...t,
292
+ ..._,
293
+ ...i,
294
+ ...r,
295
+ ...o,
296
+ ...a,
297
+ ...h
298
+ };
299
+ export {
300
+ o as SearchBarComponentIds,
301
+ h as SidebarChatComponentIds,
302
+ t as aiChatComponentIds,
303
+ _ as aiSearchComponentIds,
304
+ r as chatButtonComponentIds,
305
+ s as componentIDs,
306
+ e as markDownComponentIds,
307
+ a as miscellanousComponentIds,
308
+ i as modalComponentIds
309
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(t,n,{checkForDefaultPrevented:r=!0}={}){return function(e){if(t?.(e),r===!1||!e.defaultPrevented)return n?.(e)}}exports.composeEventHandlers=o;
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ function f(n, t, { checkForDefaultPrevented: r = !0 } = {}) {
3
+ return function(e) {
4
+ if (n?.(e), r === !1 || !e.defaultPrevented)
5
+ return t?.(e);
6
+ };
7
+ }
8
+ export {
9
+ f as composeEventHandlers
10
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const f=i(l);function r(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function s(...e){return t=>{let n=!1;const u=e.map(o=>{const c=r(o,t);return!n&&typeof c=="function"&&(n=!0),c});if(n)return()=>{for(let o=0;o<u.length;o++){const c=u[o];typeof c=="function"?c():r(e[o],null)}}}}function a(...e){return f.useCallback(s(...e),e)}exports.composeRefs=s;exports.useComposedRefs=a;
@@ -0,0 +1,30 @@
1
+ "use client";
2
+ import * as l from "react";
3
+ function i(n, o) {
4
+ if (typeof n == "function")
5
+ return n(o);
6
+ n != null && (n.current = o);
7
+ }
8
+ function f(...n) {
9
+ return (o) => {
10
+ let u = !1;
11
+ const c = n.map((t) => {
12
+ const e = i(t, o);
13
+ return !u && typeof e == "function" && (u = !0), e;
14
+ });
15
+ if (u)
16
+ return () => {
17
+ for (let t = 0; t < c.length; t++) {
18
+ const e = c[t];
19
+ typeof e == "function" ? e() : i(n[t], null);
20
+ }
21
+ };
22
+ };
23
+ }
24
+ function s(...n) {
25
+ return l.useCallback(f(...n), n);
26
+ }
27
+ export {
28
+ f as composeRefs,
29
+ s as useComposedRefs
30
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../theme/index.cjs"),t=require("../../theme/colors.cjs"),s={placeholder:"How do I get started?",aiAssistantName:void 0,shouldOpenLinksInNewTab:!0,disclaimerSettings:{isEnabled:!1,label:"Usage policy"},isShareButtonVisible:!1,isViewOnly:!1,exampleQuestionsLabel:"Example questions",exampleQuestions:[],isFirstExampleQuestionHighlighted:!0,isCopyChatButtonVisible:!1,getHelpOptions:[],workflowsHeader:"Workflows",workflows:[],toolbarButtonLabels:{clear:"Clear",share:"Share",getHelp:"Get help",stop:"Stop",copyChat:"Copy"},context:{}},a={shouldBypassCaptcha:!1,tags:[],userProperties:{},primaryBrandColor:t.DEFAULT_PRIMARY_BRAND_COLOR,theme:{varsClassName:"inkeep-widget-vars",...e.theme}},l={shouldOpenLinksInNewTab:!1,defaultQuery:"",debounceTimeMs:0,tabs:["All","Publications","PDFs","GitHub","Forums","Discord","Slack","StackOverflow"],placeholder:"Search for anything...",view:"single-pane"};exports.defaultInkeepAIChatSettings=s;exports.defaultInkeepBaseSettings=a;exports.defaultInkeepSearchSettings=l;
@@ -0,0 +1,50 @@
1
+ "use client";
2
+ import { theme as e } from "../../theme/index.js";
3
+ import { DEFAULT_PRIMARY_BRAND_COLOR as s } from "../../theme/colors.js";
4
+ const l = {
5
+ placeholder: "How do I get started?",
6
+ aiAssistantName: void 0,
7
+ shouldOpenLinksInNewTab: !0,
8
+ disclaimerSettings: {
9
+ isEnabled: !1,
10
+ label: "Usage policy"
11
+ },
12
+ isShareButtonVisible: !1,
13
+ isViewOnly: !1,
14
+ exampleQuestionsLabel: "Example questions",
15
+ exampleQuestions: [],
16
+ isFirstExampleQuestionHighlighted: !0,
17
+ isCopyChatButtonVisible: !1,
18
+ getHelpOptions: [],
19
+ workflowsHeader: "Workflows",
20
+ workflows: [],
21
+ toolbarButtonLabels: {
22
+ clear: "Clear",
23
+ share: "Share",
24
+ getHelp: "Get help",
25
+ stop: "Stop",
26
+ copyChat: "Copy"
27
+ },
28
+ context: {}
29
+ }, o = {
30
+ shouldBypassCaptcha: !1,
31
+ tags: [],
32
+ userProperties: {},
33
+ primaryBrandColor: s,
34
+ theme: {
35
+ varsClassName: "inkeep-widget-vars",
36
+ ...e
37
+ }
38
+ }, i = {
39
+ shouldOpenLinksInNewTab: !1,
40
+ defaultQuery: "",
41
+ debounceTimeMs: 0,
42
+ tabs: ["All", "Publications", "PDFs", "GitHub", "Forums", "Discord", "Slack", "StackOverflow"],
43
+ placeholder: "Search for anything...",
44
+ view: "single-pane"
45
+ };
46
+ export {
47
+ l as defaultInkeepAIChatSettings,
48
+ o as defaultInkeepBaseSettings,
49
+ i as defaultInkeepSearchSettings
50
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a={text:"",email:"",checkbox:!1,textarea:"",file:void 0,select:""};function l(u){return u?u?.reduce((t,e)=>("defaultValue"in e&&e.defaultValue?t[e.name]=e.defaultValue:e.inputType&&(t[e.name]=a[e.inputType]),t),{}):{}}exports.defaultInputValues=a;exports.getFormDefaultValues=l;
@@ -0,0 +1,17 @@
1
+ "use client";
2
+ const a = {
3
+ text: "",
4
+ email: "",
5
+ checkbox: !1,
6
+ textarea: "",
7
+ file: void 0,
8
+ // file inputs are always uncontrolled since their value can only be set by the user so it's ok to use undefined here
9
+ select: ""
10
+ };
11
+ function n(u) {
12
+ return u ? u?.reduce((t, e) => ("defaultValue" in e && e.defaultValue ? t[e.name] = e.defaultValue : e.inputType && (t[e.name] = a[e.inputType]), t), {}) : {};
13
+ }
14
+ export {
15
+ a as defaultInputValues,
16
+ n as getFormDefaultValues
17
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(e=21){const t=new Uint8Array(e);return crypto.getRandomValues(t),Array.from(t,n=>n.toString(36)).join("").slice(0,e)}const r=new Map;function u(e="id"){const n=(r.get(e)||0)+1;return r.set(e,n),`${e}${n}`}exports.generatePrefixedUniqueId=u;exports.generateUid=o;
@@ -0,0 +1,14 @@
1
+ "use client";
2
+ function o(n = 21) {
3
+ const e = new Uint8Array(n);
4
+ return crypto.getRandomValues(e), Array.from(e, (t) => t.toString(36)).join("").slice(0, n);
5
+ }
6
+ const r = /* @__PURE__ */ new Map();
7
+ function u(n = "id") {
8
+ const t = (r.get(n) || 0) + 1;
9
+ return r.set(n, t), `${n}${t}`;
10
+ }
11
+ export {
12
+ u as generatePrefixedUniqueId,
13
+ o as generateUid
14
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(e){return e?e.toLowerCase().replace(/(^\w+:|^)\/\//,"").replace(/^www\./,"").replace(/\/$/,"").startsWith("github.com"):!1}const n=e=>{let t="LuGlobe";return e.type==="documentation"&&e.contentType==="book"?t="IoBookOutline":e.type==="documentation"&&!e.contentType?t="LuBookOpen":e.type==="documentation"&&e.contentType==="pdf"?t="FaFilePdf":e.type==="github_issue"||i(e.url)?t="FaGithub":e.type==="documentation"&&e.contentType==="site"?t="LuGlobe":e.type==="discourse"?t="FaDiscourse":e.type==="discord"?t="FaDiscord":e.type==="slack_message"?t="FaSlack":e.type==="stackoverflow"&&(t="FaStackOverflow"),{builtIn:t}};exports.getIcon=n;
@@ -0,0 +1,11 @@
1
+ "use client";
2
+ function i(e) {
3
+ return e ? e.toLowerCase().replace(/(^\w+:|^)\/\//, "").replace(/^www\./, "").replace(/\/$/, "").startsWith("github.com") : !1;
4
+ }
5
+ const o = (e) => {
6
+ let t = "LuGlobe";
7
+ return e.type === "documentation" && e.contentType === "book" ? t = "IoBookOutline" : e.type === "documentation" && !e.contentType ? t = "LuBookOpen" : e.type === "documentation" && e.contentType === "pdf" ? t = "FaFilePdf" : e.type === "github_issue" || i(e.url) ? t = "FaGithub" : e.type === "documentation" && e.contentType === "site" ? t = "LuGlobe" : e.type === "discourse" ? t = "FaDiscourse" : e.type === "discord" ? t = "FaDiscord" : e.type === "slack_message" ? t = "FaSlack" : e.type === "stackoverflow" && (t = "FaStackOverflow"), { builtIn: t };
8
+ };
9
+ export {
10
+ o as getIcon
11
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=i=>{const s=/<em>(.*?)<\/em>/gs;let e;const h=[];let t=0;for(;(e=s.exec(i))!==null;){const[l,n]=e;e.index>t&&h.push(i.slice(t,e.index)),h.push({content:n,highlighted:!0}),t=e.index+l.length}return t<i.length&&h.push(i.slice(t)),h};exports.highlightEmphasis=c;
@@ -0,0 +1,15 @@
1
+ "use client";
2
+ const c = (n) => {
3
+ const t = /<em>(.*?)<\/em>/gs;
4
+ let e;
5
+ const s = [];
6
+ let h = 0;
7
+ for (; (e = t.exec(n)) !== null; ) {
8
+ const [i, l] = e;
9
+ e.index > h && s.push(n.slice(h, e.index)), s.push({ content: l, highlighted: !0 }), h = e.index + i.length;
10
+ }
11
+ return h < n.length && s.push(n.slice(h)), s;
12
+ };
13
+ export {
14
+ c as highlightEmphasis
15
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./misc.cjs"),r=(...n)=>n.map(e=>e?.trim?.()).filter(Boolean).join(" "),c=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,o=n=>{const e={};let i;for(;i=c.exec(n);)e[i[1]]=i[2];return e},l=(n,e)=>{if(s.isString(n)){if(s.isString(e))return`${n};${e}`;n=o(n)}else s.isString(e)&&(e=o(e));return Object.assign({},n??{},e??{})};function f(...n){let e={};for(let i of n){for(let t in e){if(t.startsWith("on")&&typeof e[t]=="function"&&typeof i[t]=="function"){e[t]=s.callAll(i[t],e[t]);continue}if(t==="className"||t==="class"){e[t]=r(e[t],i[t]);continue}if(t==="style"){e[t]=l(e[t],i[t]);continue}e[t]=i[t]!==void 0?i[t]:e[t]}for(let t in i)e[t]===void 0&&(e[t]=i[t])}return e}exports.mergeProps=f;
@@ -0,0 +1,41 @@
1
+ "use client";
2
+ import { callAll as r, isString as o } from "./misc.js";
3
+ const c = (...n) => n.map((e) => e?.trim?.()).filter(Boolean).join(" "), l = /((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g, s = (n) => {
4
+ const e = {};
5
+ let i;
6
+ for (; i = l.exec(n); )
7
+ e[i[1]] = i[2];
8
+ return e;
9
+ }, f = (n, e) => {
10
+ if (o(n)) {
11
+ if (o(e)) return `${n};${e}`;
12
+ n = s(n);
13
+ } else o(e) && (e = s(e));
14
+ return Object.assign({}, n ?? {}, e ?? {});
15
+ };
16
+ function p(...n) {
17
+ let e = {};
18
+ for (let i of n) {
19
+ for (let t in e) {
20
+ if (t.startsWith("on") && typeof e[t] == "function" && typeof i[t] == "function") {
21
+ e[t] = r(i[t], e[t]);
22
+ continue;
23
+ }
24
+ if (t === "className" || t === "class") {
25
+ e[t] = c(e[t], i[t]);
26
+ continue;
27
+ }
28
+ if (t === "style") {
29
+ e[t] = f(e[t], i[t]);
30
+ continue;
31
+ }
32
+ e[t] = i[t] !== void 0 ? i[t] : e[t];
33
+ }
34
+ for (let t in i)
35
+ e[t] === void 0 && (e[t] = i[t]);
36
+ }
37
+ return e;
38
+ }
39
+ export {
40
+ p as mergeProps
41
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=(...t)=>(...e)=>{for(const n of t)n?.(...e)},s=t=>typeof t=="string";function r(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z][a-z])/g,"$1-$2").replace(/__/g,"__").toLowerCase()}const c=t=>t?"":void 0;function i(t){const e=t.split(" "),n=e[0]??"",a=e.length>1?e[e.length-1]:"";return n&&a?`${n.charAt(0)}${a.charAt(0)}`:n.charAt(0)}function l(t,e){return typeof t=="function"?t(e):t}const g=t=>t.parts?.map(e=>e.type==="text"?e.text:e.type==="data-component"?JSON.stringify(e.data):null).join("")??"";exports.callAll=o;exports.dataAttr=c;exports.getInitials=i;exports.getMessageContent=g;exports.isString=s;exports.maybeRender=l;exports.toKebabCase=r;
@@ -0,0 +1,31 @@
1
+ "use client";
2
+ const a = (
3
+ // biome-ignore lint/suspicious/noExplicitAny: <explanation>
4
+ (...t) => (...e) => {
5
+ for (const n of t)
6
+ n?.(...e);
7
+ }
8
+ ), s = (t) => typeof t == "string";
9
+ function c(t) {
10
+ return t.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/([A-Z])([A-Z][a-z])/g, "$1-$2").replace(/__/g, "__").toLowerCase();
11
+ }
12
+ const r = (t) => t ? "" : void 0;
13
+ function i(t) {
14
+ const e = t.split(" "), n = e[0] ?? "", o = e.length > 1 ? e[e.length - 1] : "";
15
+ return n && o ? `${n.charAt(0)}${o.charAt(0)}` : n.charAt(0);
16
+ }
17
+ function l(t, e) {
18
+ return typeof t == "function" ? t(e) : t;
19
+ }
20
+ const f = (t) => t.parts?.map(
21
+ (e) => e.type === "text" ? e.text : e.type === "data-component" ? JSON.stringify(e.data) : null
22
+ ).join("") ?? "";
23
+ export {
24
+ a as callAll,
25
+ r as dataAttr,
26
+ i as getInitials,
27
+ f as getMessageContent,
28
+ s as isString,
29
+ l as maybeRender,
30
+ c as toKebabCase
31
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(t,o){const n={},i={...t};for(const e of o)e in t&&(n[e]=t[e],delete i[e]);return[n,i]}exports.splitProps=r;
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ function o(t, c) {
3
+ const n = {}, i = { ...t };
4
+ for (const e of c)
5
+ e in t && (n[e] = t[e], delete i[e]);
6
+ return [n, i];
7
+ }
8
+ export {
9
+ o as splitProps
10
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("../styled/components/chat-button.cjs"),x=require("../styled/components/shadow.cjs"),C=require("../primitives/providers/config-provider.cjs"),S=require("../primitives/providers/root-provider.cjs"),b=require("../primitives/atoms/error-boundary.cjs"),B=require("./modal.cjs"),q=require("./embedded-search-and-chat.cjs"),A=require("./embedded-search-and-chat.impl.cjs"),k=require("./embedded-chat.cjs"),y=require("./utils.cjs"),v=require("@radix-ui/react-use-controllable-state");function w(n){const{modalSettings:t,label:s,defaultView:o="chat",canToggleView:a=!0,avatar:i,...c}=n,m={...c,shouldShowAskAICard:a?n.shouldShowAskAICard:!1},{config:l,...u}=A.useWidgetImpl({...m,defaultView:o}),g=h=>{t?.isOpen===void 0&&(n.forceDefaultView&&!h&&u.setView(o??"search"),d(!!h))},[f=!1,d]=v.useControllableState({prop:t?.isOpen,defaultProp:!1,onChange:y.composeEventHandlers(t?.onOpenChange,g)}),I={...t,isOpen:f,onOpenChange:d},j=()=>a?e.jsx(q.InkeepEmbeddedSearchAndChatImpl,{...u}):e.jsx(k.InkeepEmbeddedChatImpl,{...c});return e.jsxs(e.Fragment,{children:[e.jsx(b.ErrorBoundary,{children:e.jsx(x.Shadow,{wrapperStyles:{display:"contents"},children:e.jsx(S.RootProvider,{config:l,componentType:C.WebWidgetInteractionType.ChatButton,children:e.jsx(p,{label:s,avatar:i,onOpenChange:d})})})}),e.jsx(B.InkeepModal,{...l,componentType:C.WebWidgetInteractionType.ChatButton,modalSettings:I,children:j()})]})}function p({label:n="Ask AI",avatar:t,onOpenChange:s}){const o=a=>{a.button!==2&&s?.(i=>!i)};return e.jsx(r.Container,{children:e.jsxs(r.ChatButton,{onClick:o,children:[e.jsx(r.ChatButtonText,{children:n}),e.jsx(r.ChatButtonAvatarContent,{children:e.jsx(r.ChatButtonAvatarImage,{avatar:t})})]})})}exports.ChatButtonImpl=p;exports.InkeepChatButton=w;