@neo4j-ndl/react 4.1.9 → 4.2.0

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 (487) hide show
  1. package/lib/cjs/ai/code-preview/CodePreview.js +91 -0
  2. package/lib/cjs/ai/code-preview/CodePreview.js.map +1 -0
  3. package/lib/cjs/ai/code-preview/index.js +26 -0
  4. package/lib/cjs/ai/code-preview/index.js.map +1 -0
  5. package/lib/cjs/ai/code-preview/stories/code-preview-languages.story.js +37 -0
  6. package/lib/cjs/ai/code-preview/stories/code-preview-languages.story.js.map +1 -0
  7. package/lib/cjs/ai/code-preview/stories/code-preview-loading.story.js +31 -0
  8. package/lib/cjs/ai/code-preview/stories/code-preview-loading.story.js.map +1 -0
  9. package/lib/cjs/ai/code-preview/stories/code-preview-read.story.js +36 -0
  10. package/lib/cjs/ai/code-preview/stories/code-preview-read.story.js.map +1 -0
  11. package/lib/cjs/ai/code-preview/stories/code-preview-write.story.js +36 -0
  12. package/lib/cjs/ai/code-preview/stories/code-preview-write.story.js.map +1 -0
  13. package/lib/cjs/ai/code-preview/stories/code-preview.stories.js +88 -0
  14. package/lib/cjs/ai/code-preview/stories/code-preview.stories.js.map +1 -0
  15. package/lib/cjs/ai/code-preview/stories/index.js +44 -0
  16. package/lib/cjs/ai/code-preview/stories/index.js.map +1 -0
  17. package/lib/cjs/ai/file-tag/FileTag.js +58 -0
  18. package/lib/cjs/ai/file-tag/FileTag.js.map +1 -0
  19. package/lib/cjs/ai/file-tag/index.js +38 -0
  20. package/lib/cjs/ai/file-tag/index.js.map +1 -0
  21. package/lib/cjs/ai/file-tag/stories/file-tag-chat.story.js +31 -0
  22. package/lib/cjs/ai/file-tag/stories/file-tag-chat.story.js.map +1 -0
  23. package/lib/cjs/ai/file-tag/stories/file-tag-loading.story.js +33 -0
  24. package/lib/cjs/ai/file-tag/stories/file-tag-loading.story.js.map +1 -0
  25. package/lib/cjs/ai/file-tag/stories/file-tag-prompt.story.js +33 -0
  26. package/lib/cjs/ai/file-tag/stories/file-tag-prompt.story.js.map +1 -0
  27. package/lib/cjs/ai/file-tag/stories/file-tag.stories.js +76 -0
  28. package/lib/cjs/ai/file-tag/stories/file-tag.stories.js.map +1 -0
  29. package/lib/cjs/ai/file-tag/stories/index.js +40 -0
  30. package/lib/cjs/ai/file-tag/stories/index.js.map +1 -0
  31. package/lib/cjs/ai/image-tag/ImageTag.js +58 -0
  32. package/lib/cjs/ai/image-tag/ImageTag.js.map +1 -0
  33. package/lib/cjs/ai/image-tag/index.js +38 -0
  34. package/lib/cjs/ai/image-tag/index.js.map +1 -0
  35. package/lib/cjs/ai/image-tag/stories/image-tag-chat.story.js +30 -0
  36. package/lib/cjs/ai/image-tag/stories/image-tag-chat.story.js.map +1 -0
  37. package/lib/cjs/ai/image-tag/stories/image-tag-loading.story.js +32 -0
  38. package/lib/cjs/ai/image-tag/stories/image-tag-loading.story.js.map +1 -0
  39. package/lib/cjs/ai/image-tag/stories/image-tag-prompt.story.js +32 -0
  40. package/lib/cjs/ai/image-tag/stories/image-tag-prompt.story.js.map +1 -0
  41. package/lib/cjs/ai/image-tag/stories/image-tag.stories.js +76 -0
  42. package/lib/cjs/ai/image-tag/stories/image-tag.stories.js.map +1 -0
  43. package/lib/cjs/ai/image-tag/stories/index.js +40 -0
  44. package/lib/cjs/ai/image-tag/stories/index.js.map +1 -0
  45. package/lib/cjs/ai/index.js +23 -1
  46. package/lib/cjs/ai/index.js.map +1 -1
  47. package/lib/cjs/ai/more-files/MoreFiles.js +55 -0
  48. package/lib/cjs/ai/more-files/MoreFiles.js.map +1 -0
  49. package/lib/cjs/ai/more-files/index.js +38 -0
  50. package/lib/cjs/ai/more-files/index.js.map +1 -0
  51. package/lib/cjs/ai/more-files/stories/index.js +32 -0
  52. package/lib/cjs/ai/more-files/stories/index.js.map +1 -0
  53. package/lib/cjs/ai/more-files/stories/more-files.stories.js +50 -0
  54. package/lib/cjs/ai/more-files/stories/more-files.stories.js.map +1 -0
  55. package/lib/cjs/ai/more-files/stories/more-files.story.js +35 -0
  56. package/lib/cjs/ai/more-files/stories/more-files.story.js.map +1 -0
  57. package/lib/cjs/ai/presence/Presence.js +5 -1
  58. package/lib/cjs/ai/presence/Presence.js.map +1 -1
  59. package/lib/cjs/ai/prompt/Prompt.js +163 -0
  60. package/lib/cjs/ai/prompt/Prompt.js.map +1 -0
  61. package/lib/cjs/ai/prompt/index.js +38 -0
  62. package/lib/cjs/ai/prompt/index.js.map +1 -0
  63. package/lib/cjs/ai/prompt/stories/index.js +36 -0
  64. package/lib/cjs/ai/prompt/stories/index.js.map +1 -0
  65. package/lib/cjs/ai/prompt/stories/prompt-advanced.story.js +56 -0
  66. package/lib/cjs/ai/prompt/stories/prompt-advanced.story.js.map +1 -0
  67. package/lib/cjs/ai/prompt/stories/prompt-default.story.js +40 -0
  68. package/lib/cjs/ai/prompt/stories/prompt-default.story.js.map +1 -0
  69. package/lib/cjs/ai/prompt/stories/prompt.stories.js +63 -0
  70. package/lib/cjs/ai/prompt/stories/prompt.stories.js.map +1 -0
  71. package/lib/cjs/ai/reasoning/Reasoning.js +77 -0
  72. package/lib/cjs/ai/reasoning/Reasoning.js.map +1 -0
  73. package/lib/cjs/ai/reasoning/index.js +38 -0
  74. package/lib/cjs/ai/reasoning/index.js.map +1 -0
  75. package/lib/cjs/ai/reasoning/stories/index.js +32 -0
  76. package/lib/cjs/ai/reasoning/stories/index.js.map +1 -0
  77. package/lib/cjs/ai/reasoning/stories/reasoning-full.story.js +34 -0
  78. package/lib/cjs/ai/reasoning/stories/reasoning-full.story.js.map +1 -0
  79. package/lib/cjs/ai/reasoning/stories/reasoning.stories.js +50 -0
  80. package/lib/cjs/ai/reasoning/stories/reasoning.stories.js.map +1 -0
  81. package/lib/cjs/ai/response/Response.js +185 -0
  82. package/lib/cjs/ai/response/Response.js.map +1 -0
  83. package/lib/cjs/ai/response/index.js +26 -0
  84. package/lib/cjs/ai/response/index.js.map +1 -0
  85. package/lib/cjs/ai/response/stories/index.js +56 -0
  86. package/lib/cjs/ai/response/stories/index.js.map +1 -0
  87. package/lib/cjs/ai/response/stories/response-all-components.story.js +229 -0
  88. package/lib/cjs/ai/response/stories/response-all-components.story.js.map +1 -0
  89. package/lib/cjs/ai/response/stories/response-code-examples.story.js +248 -0
  90. package/lib/cjs/ai/response/stories/response-code-examples.story.js.map +1 -0
  91. package/lib/cjs/ai/response/stories/response-default.story.js +50 -0
  92. package/lib/cjs/ai/response/stories/response-default.story.js.map +1 -0
  93. package/lib/cjs/ai/response/stories/response-full-example.story.js +162 -0
  94. package/lib/cjs/ai/response/stories/response-full-example.story.js.map +1 -0
  95. package/lib/cjs/ai/response/stories/response-headings.story.js +120 -0
  96. package/lib/cjs/ai/response/stories/response-headings.story.js.map +1 -0
  97. package/lib/cjs/ai/response/stories/response-lists.story.js +170 -0
  98. package/lib/cjs/ai/response/stories/response-lists.story.js.map +1 -0
  99. package/lib/cjs/ai/response/stories/response-streaming.story.js +65 -0
  100. package/lib/cjs/ai/response/stories/response-streaming.story.js.map +1 -0
  101. package/lib/cjs/ai/response/stories/response.stories.js +132 -0
  102. package/lib/cjs/ai/response/stories/response.stories.js.map +1 -0
  103. package/lib/cjs/ai/suggestion/Suggestion.js +58 -0
  104. package/lib/cjs/ai/suggestion/Suggestion.js.map +1 -0
  105. package/lib/cjs/ai/suggestion/index.js +38 -0
  106. package/lib/cjs/ai/suggestion/index.js.map +1 -0
  107. package/lib/cjs/ai/suggestion/stories/index.js +44 -0
  108. package/lib/cjs/ai/suggestion/stories/index.js.map +1 -0
  109. package/lib/cjs/ai/suggestion/stories/suggestion-default.story.js +30 -0
  110. package/lib/cjs/ai/suggestion/stories/suggestion-default.story.js.map +1 -0
  111. package/lib/cjs/ai/suggestion/stories/suggestion-icon.story.js +31 -0
  112. package/lib/cjs/ai/suggestion/stories/suggestion-icon.story.js.map +1 -0
  113. package/lib/cjs/ai/suggestion/stories/suggestion-primary.story.js +30 -0
  114. package/lib/cjs/ai/suggestion/stories/suggestion-primary.story.js.map +1 -0
  115. package/lib/cjs/ai/suggestion/stories/suggestion-sizes.story.js +30 -0
  116. package/lib/cjs/ai/suggestion/stories/suggestion-sizes.story.js.map +1 -0
  117. package/lib/cjs/ai/suggestion/stories/suggestion.stories.js +89 -0
  118. package/lib/cjs/ai/suggestion/stories/suggestion.stories.js.map +1 -0
  119. package/lib/cjs/ai/thinking/Thinking.js +57 -0
  120. package/lib/cjs/ai/thinking/Thinking.js.map +1 -0
  121. package/lib/cjs/ai/thinking/index.js +38 -0
  122. package/lib/cjs/ai/thinking/index.js.map +1 -0
  123. package/lib/cjs/ai/thinking/stories/ai-thinking-default.story.js +30 -0
  124. package/lib/cjs/ai/thinking/stories/ai-thinking-default.story.js.map +1 -0
  125. package/lib/cjs/ai/thinking/stories/ai-thinking-finished.story.js +30 -0
  126. package/lib/cjs/ai/thinking/stories/ai-thinking-finished.story.js.map +1 -0
  127. package/lib/cjs/ai/thinking/stories/ai-thinking.stories.js +63 -0
  128. package/lib/cjs/ai/thinking/stories/ai-thinking.stories.js.map +1 -0
  129. package/lib/cjs/ai/thinking/stories/index.js +36 -0
  130. package/lib/cjs/ai/thinking/stories/index.js.map +1 -0
  131. package/lib/cjs/ai/thinking/thinking-duration-formatter.js +71 -0
  132. package/lib/cjs/ai/thinking/thinking-duration-formatter.js.map +1 -0
  133. package/lib/cjs/ai/tool-call/ToolCall.js +55 -0
  134. package/lib/cjs/ai/tool-call/ToolCall.js.map +1 -0
  135. package/lib/cjs/ai/tool-call/index.js +38 -0
  136. package/lib/cjs/ai/tool-call/index.js.map +1 -0
  137. package/lib/cjs/ai/tool-call/stories/index.js +36 -0
  138. package/lib/cjs/ai/tool-call/stories/index.js.map +1 -0
  139. package/lib/cjs/ai/tool-call/stories/tool-call-default.story.js +30 -0
  140. package/lib/cjs/ai/tool-call/stories/tool-call-default.story.js.map +1 -0
  141. package/lib/cjs/ai/tool-call/stories/tool-call-done.story.js +30 -0
  142. package/lib/cjs/ai/tool-call/stories/tool-call-done.story.js.map +1 -0
  143. package/lib/cjs/ai/tool-call/stories/tool-call.stories.js +63 -0
  144. package/lib/cjs/ai/tool-call/stories/tool-call.stories.js.map +1 -0
  145. package/lib/cjs/ai/user-bubble/UserBubble.js +53 -0
  146. package/lib/cjs/ai/user-bubble/UserBubble.js.map +1 -0
  147. package/lib/cjs/ai/user-bubble/index.js +38 -0
  148. package/lib/cjs/ai/user-bubble/index.js.map +1 -0
  149. package/lib/cjs/ai/user-bubble/stories/index.js +44 -0
  150. package/lib/cjs/ai/user-bubble/stories/index.js.map +1 -0
  151. package/lib/cjs/ai/user-bubble/stories/user-bubble-action.story.js +35 -0
  152. package/lib/cjs/ai/user-bubble/stories/user-bubble-action.story.js.map +1 -0
  153. package/lib/cjs/ai/user-bubble/stories/user-bubble-and-files.story.js +39 -0
  154. package/lib/cjs/ai/user-bubble/stories/user-bubble-and-files.story.js.map +1 -0
  155. package/lib/cjs/ai/user-bubble/stories/user-bubble-long.story.js +33 -0
  156. package/lib/cjs/ai/user-bubble/stories/user-bubble-long.story.js.map +1 -0
  157. package/lib/cjs/ai/user-bubble/stories/user-bubble.stories.js +89 -0
  158. package/lib/cjs/ai/user-bubble/stories/user-bubble.stories.js.map +1 -0
  159. package/lib/cjs/ai/user-bubble/stories/user-bubble.story.js +34 -0
  160. package/lib/cjs/ai/user-bubble/stories/user-bubble.story.js.map +1 -0
  161. package/lib/cjs/code/Code.js.map +1 -1
  162. package/lib/cjs/text-area/TextArea.js.map +1 -1
  163. package/lib/esm/ai/code-preview/CodePreview.js +84 -0
  164. package/lib/esm/ai/code-preview/CodePreview.js.map +1 -0
  165. package/lib/esm/ai/code-preview/index.js +22 -0
  166. package/lib/esm/ai/code-preview/index.js.map +1 -0
  167. package/lib/esm/ai/code-preview/stories/code-preview-languages.story.js +33 -0
  168. package/lib/esm/ai/code-preview/stories/code-preview-languages.story.js.map +1 -0
  169. package/lib/esm/ai/code-preview/stories/code-preview-loading.story.js +27 -0
  170. package/lib/esm/ai/code-preview/stories/code-preview-loading.story.js.map +1 -0
  171. package/lib/esm/ai/code-preview/stories/code-preview-read.story.js +32 -0
  172. package/lib/esm/ai/code-preview/stories/code-preview-read.story.js.map +1 -0
  173. package/lib/esm/ai/code-preview/stories/code-preview-write.story.js +32 -0
  174. package/lib/esm/ai/code-preview/stories/code-preview-write.story.js.map +1 -0
  175. package/lib/esm/ai/code-preview/stories/code-preview.stories.js +85 -0
  176. package/lib/esm/ai/code-preview/stories/code-preview.stories.js.map +1 -0
  177. package/lib/esm/ai/code-preview/stories/index.js +34 -0
  178. package/lib/esm/ai/code-preview/stories/index.js.map +1 -0
  179. package/lib/esm/ai/file-tag/FileTag.js +52 -0
  180. package/lib/esm/ai/file-tag/FileTag.js.map +1 -0
  181. package/lib/esm/ai/file-tag/index.js +22 -0
  182. package/lib/esm/ai/file-tag/index.js.map +1 -0
  183. package/lib/esm/ai/file-tag/stories/file-tag-chat.story.js +29 -0
  184. package/lib/esm/ai/file-tag/stories/file-tag-chat.story.js.map +1 -0
  185. package/lib/esm/ai/file-tag/stories/file-tag-loading.story.js +31 -0
  186. package/lib/esm/ai/file-tag/stories/file-tag-loading.story.js.map +1 -0
  187. package/lib/esm/ai/file-tag/stories/file-tag-prompt.story.js +31 -0
  188. package/lib/esm/ai/file-tag/stories/file-tag-prompt.story.js.map +1 -0
  189. package/lib/esm/ai/file-tag/stories/file-tag.stories.js +73 -0
  190. package/lib/esm/ai/file-tag/stories/file-tag.stories.js.map +1 -0
  191. package/lib/esm/ai/file-tag/stories/index.js +31 -0
  192. package/lib/esm/ai/file-tag/stories/index.js.map +1 -0
  193. package/lib/esm/ai/image-tag/ImageTag.js +52 -0
  194. package/lib/esm/ai/image-tag/ImageTag.js.map +1 -0
  195. package/lib/esm/ai/image-tag/index.js +22 -0
  196. package/lib/esm/ai/image-tag/index.js.map +1 -0
  197. package/lib/esm/ai/image-tag/stories/image-tag-chat.story.js +28 -0
  198. package/lib/esm/ai/image-tag/stories/image-tag-chat.story.js.map +1 -0
  199. package/lib/esm/ai/image-tag/stories/image-tag-loading.story.js +30 -0
  200. package/lib/esm/ai/image-tag/stories/image-tag-loading.story.js.map +1 -0
  201. package/lib/esm/ai/image-tag/stories/image-tag-prompt.story.js +30 -0
  202. package/lib/esm/ai/image-tag/stories/image-tag-prompt.story.js.map +1 -0
  203. package/lib/esm/ai/image-tag/stories/image-tag.stories.js +73 -0
  204. package/lib/esm/ai/image-tag/stories/image-tag.stories.js.map +1 -0
  205. package/lib/esm/ai/image-tag/stories/index.js +31 -0
  206. package/lib/esm/ai/image-tag/stories/index.js.map +1 -0
  207. package/lib/esm/ai/index.js +11 -0
  208. package/lib/esm/ai/index.js.map +1 -1
  209. package/lib/esm/ai/more-files/MoreFiles.js +49 -0
  210. package/lib/esm/ai/more-files/MoreFiles.js.map +1 -0
  211. package/lib/esm/ai/more-files/index.js +22 -0
  212. package/lib/esm/ai/more-files/index.js.map +1 -0
  213. package/lib/esm/ai/more-files/stories/index.js +25 -0
  214. package/lib/esm/ai/more-files/stories/index.js.map +1 -0
  215. package/lib/esm/ai/more-files/stories/more-files.stories.js +47 -0
  216. package/lib/esm/ai/more-files/stories/more-files.stories.js.map +1 -0
  217. package/lib/esm/ai/more-files/stories/more-files.story.js +33 -0
  218. package/lib/esm/ai/more-files/stories/more-files.story.js.map +1 -0
  219. package/lib/esm/ai/presence/Presence.js +5 -1
  220. package/lib/esm/ai/presence/Presence.js.map +1 -1
  221. package/lib/esm/ai/prompt/Prompt.js +157 -0
  222. package/lib/esm/ai/prompt/Prompt.js.map +1 -0
  223. package/lib/esm/ai/prompt/index.js +22 -0
  224. package/lib/esm/ai/prompt/index.js.map +1 -0
  225. package/lib/esm/ai/prompt/stories/index.js +28 -0
  226. package/lib/esm/ai/prompt/stories/index.js.map +1 -0
  227. package/lib/esm/ai/prompt/stories/prompt-advanced.story.js +54 -0
  228. package/lib/esm/ai/prompt/stories/prompt-advanced.story.js.map +1 -0
  229. package/lib/esm/ai/prompt/stories/prompt-default.story.js +38 -0
  230. package/lib/esm/ai/prompt/stories/prompt-default.story.js.map +1 -0
  231. package/lib/esm/ai/prompt/stories/prompt.stories.js +60 -0
  232. package/lib/esm/ai/prompt/stories/prompt.stories.js.map +1 -0
  233. package/lib/esm/ai/reasoning/Reasoning.js +71 -0
  234. package/lib/esm/ai/reasoning/Reasoning.js.map +1 -0
  235. package/lib/esm/ai/reasoning/index.js +22 -0
  236. package/lib/esm/ai/reasoning/index.js.map +1 -0
  237. package/lib/esm/ai/reasoning/stories/index.js +25 -0
  238. package/lib/esm/ai/reasoning/stories/index.js.map +1 -0
  239. package/lib/esm/ai/reasoning/stories/reasoning-full.story.js +32 -0
  240. package/lib/esm/ai/reasoning/stories/reasoning-full.story.js.map +1 -0
  241. package/lib/esm/ai/reasoning/stories/reasoning.stories.js +47 -0
  242. package/lib/esm/ai/reasoning/stories/reasoning.stories.js.map +1 -0
  243. package/lib/esm/ai/response/Response.js +179 -0
  244. package/lib/esm/ai/response/Response.js.map +1 -0
  245. package/lib/esm/ai/response/index.js +22 -0
  246. package/lib/esm/ai/response/index.js.map +1 -0
  247. package/lib/esm/ai/response/stories/index.js +43 -0
  248. package/lib/esm/ai/response/stories/index.js.map +1 -0
  249. package/lib/esm/ai/response/stories/response-all-components.story.js +225 -0
  250. package/lib/esm/ai/response/stories/response-all-components.story.js.map +1 -0
  251. package/lib/esm/ai/response/stories/response-code-examples.story.js +244 -0
  252. package/lib/esm/ai/response/stories/response-code-examples.story.js.map +1 -0
  253. package/lib/esm/ai/response/stories/response-default.story.js +46 -0
  254. package/lib/esm/ai/response/stories/response-default.story.js.map +1 -0
  255. package/lib/esm/ai/response/stories/response-full-example.story.js +158 -0
  256. package/lib/esm/ai/response/stories/response-full-example.story.js.map +1 -0
  257. package/lib/esm/ai/response/stories/response-headings.story.js +116 -0
  258. package/lib/esm/ai/response/stories/response-headings.story.js.map +1 -0
  259. package/lib/esm/ai/response/stories/response-lists.story.js +166 -0
  260. package/lib/esm/ai/response/stories/response-lists.story.js.map +1 -0
  261. package/lib/esm/ai/response/stories/response-streaming.story.js +61 -0
  262. package/lib/esm/ai/response/stories/response-streaming.story.js.map +1 -0
  263. package/lib/esm/ai/response/stories/response.stories.js +129 -0
  264. package/lib/esm/ai/response/stories/response.stories.js.map +1 -0
  265. package/lib/esm/ai/suggestion/Suggestion.js +52 -0
  266. package/lib/esm/ai/suggestion/Suggestion.js.map +1 -0
  267. package/lib/esm/ai/suggestion/index.js +22 -0
  268. package/lib/esm/ai/suggestion/index.js.map +1 -0
  269. package/lib/esm/ai/suggestion/stories/index.js +34 -0
  270. package/lib/esm/ai/suggestion/stories/index.js.map +1 -0
  271. package/lib/esm/ai/suggestion/stories/suggestion-default.story.js +28 -0
  272. package/lib/esm/ai/suggestion/stories/suggestion-default.story.js.map +1 -0
  273. package/lib/esm/ai/suggestion/stories/suggestion-icon.story.js +29 -0
  274. package/lib/esm/ai/suggestion/stories/suggestion-icon.story.js.map +1 -0
  275. package/lib/esm/ai/suggestion/stories/suggestion-primary.story.js +28 -0
  276. package/lib/esm/ai/suggestion/stories/suggestion-primary.story.js.map +1 -0
  277. package/lib/esm/ai/suggestion/stories/suggestion-sizes.story.js +28 -0
  278. package/lib/esm/ai/suggestion/stories/suggestion-sizes.story.js.map +1 -0
  279. package/lib/esm/ai/suggestion/stories/suggestion.stories.js +86 -0
  280. package/lib/esm/ai/suggestion/stories/suggestion.stories.js.map +1 -0
  281. package/lib/esm/ai/thinking/Thinking.js +51 -0
  282. package/lib/esm/ai/thinking/Thinking.js.map +1 -0
  283. package/lib/esm/ai/thinking/index.js +22 -0
  284. package/lib/esm/ai/thinking/index.js.map +1 -0
  285. package/lib/esm/ai/thinking/stories/ai-thinking-default.story.js +28 -0
  286. package/lib/esm/ai/thinking/stories/ai-thinking-default.story.js.map +1 -0
  287. package/lib/esm/ai/thinking/stories/ai-thinking-finished.story.js +28 -0
  288. package/lib/esm/ai/thinking/stories/ai-thinking-finished.story.js.map +1 -0
  289. package/lib/esm/ai/thinking/stories/ai-thinking.stories.js +60 -0
  290. package/lib/esm/ai/thinking/stories/ai-thinking.stories.js.map +1 -0
  291. package/lib/esm/ai/thinking/stories/index.js +28 -0
  292. package/lib/esm/ai/thinking/stories/index.js.map +1 -0
  293. package/lib/esm/ai/thinking/thinking-duration-formatter.js +67 -0
  294. package/lib/esm/ai/thinking/thinking-duration-formatter.js.map +1 -0
  295. package/lib/esm/ai/tool-call/ToolCall.js +49 -0
  296. package/lib/esm/ai/tool-call/ToolCall.js.map +1 -0
  297. package/lib/esm/ai/tool-call/index.js +22 -0
  298. package/lib/esm/ai/tool-call/index.js.map +1 -0
  299. package/lib/esm/ai/tool-call/stories/index.js +28 -0
  300. package/lib/esm/ai/tool-call/stories/index.js.map +1 -0
  301. package/lib/esm/ai/tool-call/stories/tool-call-default.story.js +28 -0
  302. package/lib/esm/ai/tool-call/stories/tool-call-default.story.js.map +1 -0
  303. package/lib/esm/ai/tool-call/stories/tool-call-done.story.js +28 -0
  304. package/lib/esm/ai/tool-call/stories/tool-call-done.story.js.map +1 -0
  305. package/lib/esm/ai/tool-call/stories/tool-call.stories.js +60 -0
  306. package/lib/esm/ai/tool-call/stories/tool-call.stories.js.map +1 -0
  307. package/lib/esm/ai/user-bubble/UserBubble.js +47 -0
  308. package/lib/esm/ai/user-bubble/UserBubble.js.map +1 -0
  309. package/lib/esm/ai/user-bubble/index.js +22 -0
  310. package/lib/esm/ai/user-bubble/index.js.map +1 -0
  311. package/lib/esm/ai/user-bubble/stories/index.js +34 -0
  312. package/lib/esm/ai/user-bubble/stories/index.js.map +1 -0
  313. package/lib/esm/ai/user-bubble/stories/user-bubble-action.story.js +33 -0
  314. package/lib/esm/ai/user-bubble/stories/user-bubble-action.story.js.map +1 -0
  315. package/lib/esm/ai/user-bubble/stories/user-bubble-and-files.story.js +37 -0
  316. package/lib/esm/ai/user-bubble/stories/user-bubble-and-files.story.js.map +1 -0
  317. package/lib/esm/ai/user-bubble/stories/user-bubble-long.story.js +31 -0
  318. package/lib/esm/ai/user-bubble/stories/user-bubble-long.story.js.map +1 -0
  319. package/lib/esm/ai/user-bubble/stories/user-bubble.stories.js +86 -0
  320. package/lib/esm/ai/user-bubble/stories/user-bubble.stories.js.map +1 -0
  321. package/lib/esm/ai/user-bubble/stories/user-bubble.story.js +32 -0
  322. package/lib/esm/ai/user-bubble/stories/user-bubble.story.js.map +1 -0
  323. package/lib/esm/code/Code.js.map +1 -1
  324. package/lib/esm/text-area/TextArea.js.map +1 -1
  325. package/lib/types/ai/code-preview/CodePreview.d.ts +44 -0
  326. package/lib/types/ai/code-preview/CodePreview.d.ts.map +1 -0
  327. package/lib/types/ai/code-preview/index.d.ts +22 -0
  328. package/lib/types/ai/code-preview/index.d.ts.map +1 -0
  329. package/lib/types/ai/code-preview/stories/code-preview-languages.story.d.ts +23 -0
  330. package/lib/types/ai/code-preview/stories/code-preview-languages.story.d.ts.map +1 -0
  331. package/lib/types/ai/code-preview/stories/code-preview-loading.story.d.ts +23 -0
  332. package/lib/types/ai/code-preview/stories/code-preview-loading.story.d.ts.map +1 -0
  333. package/lib/types/ai/code-preview/stories/code-preview-read.story.d.ts +23 -0
  334. package/lib/types/ai/code-preview/stories/code-preview-read.story.d.ts.map +1 -0
  335. package/lib/types/ai/code-preview/stories/code-preview-write.story.d.ts +23 -0
  336. package/lib/types/ai/code-preview/stories/code-preview-write.story.d.ts.map +1 -0
  337. package/lib/types/ai/code-preview/stories/code-preview.stories.d.ts +30 -0
  338. package/lib/types/ai/code-preview/stories/code-preview.stories.d.ts.map +1 -0
  339. package/lib/types/ai/code-preview/stories/index.d.ts +29 -0
  340. package/lib/types/ai/code-preview/stories/index.d.ts.map +1 -0
  341. package/lib/types/ai/file-tag/FileTag.d.ts +44 -0
  342. package/lib/types/ai/file-tag/FileTag.d.ts.map +1 -0
  343. package/lib/types/ai/file-tag/index.d.ts +22 -0
  344. package/lib/types/ai/file-tag/index.d.ts.map +1 -0
  345. package/lib/types/ai/file-tag/stories/file-tag-chat.story.d.ts +24 -0
  346. package/lib/types/ai/file-tag/stories/file-tag-chat.story.d.ts.map +1 -0
  347. package/lib/types/ai/file-tag/stories/file-tag-loading.story.d.ts +24 -0
  348. package/lib/types/ai/file-tag/stories/file-tag-loading.story.d.ts.map +1 -0
  349. package/lib/types/ai/file-tag/stories/file-tag-prompt.story.d.ts +24 -0
  350. package/lib/types/ai/file-tag/stories/file-tag-prompt.story.d.ts.map +1 -0
  351. package/lib/types/ai/file-tag/stories/file-tag.stories.d.ts +29 -0
  352. package/lib/types/ai/file-tag/stories/file-tag.stories.d.ts.map +1 -0
  353. package/lib/types/ai/file-tag/stories/index.d.ts +27 -0
  354. package/lib/types/ai/file-tag/stories/index.d.ts.map +1 -0
  355. package/lib/types/ai/image-tag/ImageTag.d.ts +46 -0
  356. package/lib/types/ai/image-tag/ImageTag.d.ts.map +1 -0
  357. package/lib/types/ai/image-tag/index.d.ts +22 -0
  358. package/lib/types/ai/image-tag/index.d.ts.map +1 -0
  359. package/lib/types/ai/image-tag/stories/image-tag-chat.story.d.ts +24 -0
  360. package/lib/types/ai/image-tag/stories/image-tag-chat.story.d.ts.map +1 -0
  361. package/lib/types/ai/image-tag/stories/image-tag-loading.story.d.ts +24 -0
  362. package/lib/types/ai/image-tag/stories/image-tag-loading.story.d.ts.map +1 -0
  363. package/lib/types/ai/image-tag/stories/image-tag-prompt.story.d.ts +24 -0
  364. package/lib/types/ai/image-tag/stories/image-tag-prompt.story.d.ts.map +1 -0
  365. package/lib/types/ai/image-tag/stories/image-tag.stories.d.ts +29 -0
  366. package/lib/types/ai/image-tag/stories/image-tag.stories.d.ts.map +1 -0
  367. package/lib/types/ai/image-tag/stories/index.d.ts +27 -0
  368. package/lib/types/ai/image-tag/stories/index.d.ts.map +1 -0
  369. package/lib/types/ai/index.d.ts +11 -0
  370. package/lib/types/ai/index.d.ts.map +1 -1
  371. package/lib/types/ai/more-files/MoreFiles.d.ts +38 -0
  372. package/lib/types/ai/more-files/MoreFiles.d.ts.map +1 -0
  373. package/lib/types/ai/more-files/index.d.ts +22 -0
  374. package/lib/types/ai/more-files/index.d.ts.map +1 -0
  375. package/lib/types/ai/more-files/stories/index.d.ts +23 -0
  376. package/lib/types/ai/more-files/stories/index.d.ts.map +1 -0
  377. package/lib/types/ai/more-files/stories/more-files.stories.d.ts +27 -0
  378. package/lib/types/ai/more-files/stories/more-files.stories.d.ts.map +1 -0
  379. package/lib/types/ai/more-files/stories/more-files.story.d.ts +24 -0
  380. package/lib/types/ai/more-files/stories/more-files.story.d.ts.map +1 -0
  381. package/lib/types/ai/presence/Presence.d.ts.map +1 -1
  382. package/lib/types/ai/prompt/Prompt.d.ts +62 -0
  383. package/lib/types/ai/prompt/Prompt.d.ts.map +1 -0
  384. package/lib/types/ai/prompt/index.d.ts +22 -0
  385. package/lib/types/ai/prompt/index.d.ts.map +1 -0
  386. package/lib/types/ai/prompt/stories/index.d.ts +25 -0
  387. package/lib/types/ai/prompt/stories/index.d.ts.map +1 -0
  388. package/lib/types/ai/prompt/stories/prompt-advanced.story.d.ts +24 -0
  389. package/lib/types/ai/prompt/stories/prompt-advanced.story.d.ts.map +1 -0
  390. package/lib/types/ai/prompt/stories/prompt-default.story.d.ts +24 -0
  391. package/lib/types/ai/prompt/stories/prompt-default.story.d.ts.map +1 -0
  392. package/lib/types/ai/prompt/stories/prompt.stories.d.ts +28 -0
  393. package/lib/types/ai/prompt/stories/prompt.stories.d.ts.map +1 -0
  394. package/lib/types/ai/reasoning/Reasoning.d.ts +44 -0
  395. package/lib/types/ai/reasoning/Reasoning.d.ts.map +1 -0
  396. package/lib/types/ai/reasoning/index.d.ts +22 -0
  397. package/lib/types/ai/reasoning/index.d.ts.map +1 -0
  398. package/lib/types/ai/reasoning/stories/index.d.ts +23 -0
  399. package/lib/types/ai/reasoning/stories/index.d.ts.map +1 -0
  400. package/lib/types/ai/reasoning/stories/reasoning-full.story.d.ts +24 -0
  401. package/lib/types/ai/reasoning/stories/reasoning-full.story.d.ts.map +1 -0
  402. package/lib/types/ai/reasoning/stories/reasoning.stories.d.ts +27 -0
  403. package/lib/types/ai/reasoning/stories/reasoning.stories.d.ts.map +1 -0
  404. package/lib/types/ai/response/Response.d.ts +37 -0
  405. package/lib/types/ai/response/Response.d.ts.map +1 -0
  406. package/lib/types/ai/response/index.d.ts +22 -0
  407. package/lib/types/ai/response/index.d.ts.map +1 -0
  408. package/lib/types/ai/response/stories/index.d.ts +35 -0
  409. package/lib/types/ai/response/stories/index.d.ts.map +1 -0
  410. package/lib/types/ai/response/stories/response-all-components.story.d.ts +24 -0
  411. package/lib/types/ai/response/stories/response-all-components.story.d.ts.map +1 -0
  412. package/lib/types/ai/response/stories/response-code-examples.story.d.ts +24 -0
  413. package/lib/types/ai/response/stories/response-code-examples.story.d.ts.map +1 -0
  414. package/lib/types/ai/response/stories/response-default.story.d.ts +23 -0
  415. package/lib/types/ai/response/stories/response-default.story.d.ts.map +1 -0
  416. package/lib/types/ai/response/stories/response-full-example.story.d.ts +24 -0
  417. package/lib/types/ai/response/stories/response-full-example.story.d.ts.map +1 -0
  418. package/lib/types/ai/response/stories/response-headings.story.d.ts +24 -0
  419. package/lib/types/ai/response/stories/response-headings.story.d.ts.map +1 -0
  420. package/lib/types/ai/response/stories/response-lists.story.d.ts +24 -0
  421. package/lib/types/ai/response/stories/response-lists.story.d.ts.map +1 -0
  422. package/lib/types/ai/response/stories/response-streaming.story.d.ts +23 -0
  423. package/lib/types/ai/response/stories/response-streaming.story.d.ts.map +1 -0
  424. package/lib/types/ai/response/stories/response.stories.d.ts +33 -0
  425. package/lib/types/ai/response/stories/response.stories.d.ts.map +1 -0
  426. package/lib/types/ai/suggestion/Suggestion.d.ts +42 -0
  427. package/lib/types/ai/suggestion/Suggestion.d.ts.map +1 -0
  428. package/lib/types/ai/suggestion/index.d.ts +22 -0
  429. package/lib/types/ai/suggestion/index.d.ts.map +1 -0
  430. package/lib/types/ai/suggestion/stories/index.d.ts +29 -0
  431. package/lib/types/ai/suggestion/stories/index.d.ts.map +1 -0
  432. package/lib/types/ai/suggestion/stories/suggestion-default.story.d.ts +24 -0
  433. package/lib/types/ai/suggestion/stories/suggestion-default.story.d.ts.map +1 -0
  434. package/lib/types/ai/suggestion/stories/suggestion-icon.story.d.ts +24 -0
  435. package/lib/types/ai/suggestion/stories/suggestion-icon.story.d.ts.map +1 -0
  436. package/lib/types/ai/suggestion/stories/suggestion-primary.story.d.ts +24 -0
  437. package/lib/types/ai/suggestion/stories/suggestion-primary.story.d.ts.map +1 -0
  438. package/lib/types/ai/suggestion/stories/suggestion-sizes.story.d.ts +24 -0
  439. package/lib/types/ai/suggestion/stories/suggestion-sizes.story.d.ts.map +1 -0
  440. package/lib/types/ai/suggestion/stories/suggestion.stories.d.ts +30 -0
  441. package/lib/types/ai/suggestion/stories/suggestion.stories.d.ts.map +1 -0
  442. package/lib/types/ai/thinking/Thinking.d.ts +40 -0
  443. package/lib/types/ai/thinking/Thinking.d.ts.map +1 -0
  444. package/lib/types/ai/thinking/index.d.ts +22 -0
  445. package/lib/types/ai/thinking/index.d.ts.map +1 -0
  446. package/lib/types/ai/thinking/stories/ai-thinking-default.story.d.ts +24 -0
  447. package/lib/types/ai/thinking/stories/ai-thinking-default.story.d.ts.map +1 -0
  448. package/lib/types/ai/thinking/stories/ai-thinking-finished.story.d.ts +24 -0
  449. package/lib/types/ai/thinking/stories/ai-thinking-finished.story.d.ts.map +1 -0
  450. package/lib/types/ai/thinking/stories/ai-thinking.stories.d.ts +28 -0
  451. package/lib/types/ai/thinking/stories/ai-thinking.stories.d.ts.map +1 -0
  452. package/lib/types/ai/thinking/stories/index.d.ts +25 -0
  453. package/lib/types/ai/thinking/stories/index.d.ts.map +1 -0
  454. package/lib/types/ai/thinking/thinking-duration-formatter.d.ts +45 -0
  455. package/lib/types/ai/thinking/thinking-duration-formatter.d.ts.map +1 -0
  456. package/lib/types/ai/tool-call/ToolCall.d.ts +37 -0
  457. package/lib/types/ai/tool-call/ToolCall.d.ts.map +1 -0
  458. package/lib/types/ai/tool-call/index.d.ts +22 -0
  459. package/lib/types/ai/tool-call/index.d.ts.map +1 -0
  460. package/lib/types/ai/tool-call/stories/index.d.ts +25 -0
  461. package/lib/types/ai/tool-call/stories/index.d.ts.map +1 -0
  462. package/lib/types/ai/tool-call/stories/tool-call-default.story.d.ts +24 -0
  463. package/lib/types/ai/tool-call/stories/tool-call-default.story.d.ts.map +1 -0
  464. package/lib/types/ai/tool-call/stories/tool-call-done.story.d.ts +24 -0
  465. package/lib/types/ai/tool-call/stories/tool-call-done.story.d.ts.map +1 -0
  466. package/lib/types/ai/tool-call/stories/tool-call.stories.d.ts +28 -0
  467. package/lib/types/ai/tool-call/stories/tool-call.stories.d.ts.map +1 -0
  468. package/lib/types/ai/user-bubble/UserBubble.d.ts +39 -0
  469. package/lib/types/ai/user-bubble/UserBubble.d.ts.map +1 -0
  470. package/lib/types/ai/user-bubble/index.d.ts +22 -0
  471. package/lib/types/ai/user-bubble/index.d.ts.map +1 -0
  472. package/lib/types/ai/user-bubble/stories/index.d.ts +29 -0
  473. package/lib/types/ai/user-bubble/stories/index.d.ts.map +1 -0
  474. package/lib/types/ai/user-bubble/stories/user-bubble-action.story.d.ts +24 -0
  475. package/lib/types/ai/user-bubble/stories/user-bubble-action.story.d.ts.map +1 -0
  476. package/lib/types/ai/user-bubble/stories/user-bubble-and-files.story.d.ts +24 -0
  477. package/lib/types/ai/user-bubble/stories/user-bubble-and-files.story.d.ts.map +1 -0
  478. package/lib/types/ai/user-bubble/stories/user-bubble-long.story.d.ts +24 -0
  479. package/lib/types/ai/user-bubble/stories/user-bubble-long.story.d.ts.map +1 -0
  480. package/lib/types/ai/user-bubble/stories/user-bubble.stories.d.ts +30 -0
  481. package/lib/types/ai/user-bubble/stories/user-bubble.stories.d.ts.map +1 -0
  482. package/lib/types/ai/user-bubble/stories/user-bubble.story.d.ts +24 -0
  483. package/lib/types/ai/user-bubble/stories/user-bubble.story.d.ts.map +1 -0
  484. package/lib/types/code/Code.d.ts +4 -1
  485. package/lib/types/code/Code.d.ts.map +1 -1
  486. package/lib/types/text-area/TextArea.d.ts.map +1 -1
  487. package/package.json +3 -2
@@ -0,0 +1,170 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Component = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ /**
6
+ *
7
+ * Copyright (c) "Neo4j"
8
+ * Neo4j Sweden AB [http://neo4j.com]
9
+ *
10
+ * This file is part of Neo4j.
11
+ *
12
+ * Neo4j is free software: you can redistribute it and/or modify
13
+ * it under the terms of the GNU General Public License as published by
14
+ * the Free Software Foundation, either version 3 of the License, or
15
+ * (at your option) any later version.
16
+ *
17
+ * This program is distributed in the hope that it will be useful,
18
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
+ * GNU General Public License for more details.
21
+ *
22
+ * You should have received a copy of the GNU General Public License
23
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
24
+ */
25
+ const ai_1 = require("@neo4j-ndl/react/ai");
26
+ const listsMarkdown = `
27
+ # Lists Examples
28
+
29
+ ## Simple Unordered List
30
+
31
+ - Apple
32
+ - Banana
33
+ - Cherry
34
+ - Date
35
+ - Elderberry
36
+
37
+ ## Simple Ordered List
38
+
39
+ 1. First step
40
+ 2. Second step
41
+ 3. Third step
42
+ 4. Fourth step
43
+ 5. Fifth step
44
+
45
+ ## Nested Unordered Lists
46
+
47
+ - Fruits
48
+ - Apples
49
+ - Granny Smith
50
+ - Honeycrisp
51
+ - Fuji
52
+ - Oranges
53
+ - Navel
54
+ - Blood Orange
55
+ - Berries
56
+ - Strawberry
57
+ - Blueberry
58
+ - Raspberry
59
+ - Vegetables
60
+ - Leafy Greens
61
+ - Spinach
62
+ - Kale
63
+ - Root Vegetables
64
+ - Carrot
65
+ - Potato
66
+
67
+ ## Nested Ordered Lists
68
+
69
+ 1. Introduction
70
+ 1. Overview
71
+ 2. Purpose
72
+ 3. Scope
73
+ 2. Main Content
74
+ 1. Chapter 1
75
+ 1. Section 1.1
76
+ 2. Section 1.2
77
+ 3. Section 1.3
78
+ 2. Chapter 2
79
+ 1. Section 2.1
80
+ 2. Section 2.2
81
+ 3. Conclusion
82
+ 1. Summary
83
+ 2. Recommendations
84
+
85
+ ## Mixed Lists
86
+
87
+ 1. Install dependencies
88
+ - Node.js
89
+ - npm or yarn
90
+ - Git
91
+ 2. Clone repository
92
+ - \`git clone <url>\`
93
+ - \`cd project-name\`
94
+ 3. Configure settings
95
+ 1. Copy \`.env.example\` to \`.env\`
96
+ 2. Update configuration values:
97
+ - Database URL
98
+ - API keys
99
+ - Port number
100
+ 4. Start development server
101
+ - Run \`npm install\`
102
+ - Run \`npm start\`
103
+
104
+ ## Lists with Paragraphs
105
+
106
+ - **First Item**
107
+
108
+ This is a detailed explanation of the first item. It can contain multiple sentences and provide context.
109
+
110
+ - **Second Item**
111
+
112
+ The second item also has a detailed explanation. This helps provide more information to the reader.
113
+
114
+ - **Third Item**
115
+
116
+ Each item can have as much detail as needed.
117
+
118
+ ## Lists with Code
119
+
120
+ - JavaScript example:
121
+
122
+ \`\`\`javascript
123
+ const items = ['a', 'b', 'c'];
124
+ items.forEach(item => console.log(item));
125
+ \`\`\`
126
+
127
+ - Python example:
128
+
129
+ \`\`\`python
130
+ items = ['a', 'b', 'c']
131
+ for item in items:
132
+ print(item)
133
+ \`\`\`
134
+
135
+ ## Task Lists Representation
136
+
137
+ - [x] Complete feature A
138
+ - [x] Write tests
139
+ - [ ] Review code
140
+ - [ ] Deploy to production
141
+ - [ ] Monitor metrics
142
+
143
+ ## Lists with Links
144
+
145
+ 1. Official Resources
146
+ - [Neo4j Documentation](https://neo4j.com/docs)
147
+ - [Neo4j Community](https://community.neo4j.com)
148
+ - [Neo4j GitHub](https://github.com/neo4j)
149
+ 2. Tutorials
150
+ - [Getting Started Guide](https://neo4j.com/start)
151
+ - [Cypher Query Language](https://neo4j.com/cypher)
152
+ 3. Tools
153
+ - Neo4j Desktop
154
+ - Neo4j Browser
155
+ - Neo4j Bloom
156
+
157
+ ## Lists with Inline Formatting
158
+
159
+ - **Bold item** with regular text
160
+ - *Italic item* with regular text
161
+ - \`Code item\` with regular text
162
+ - Regular text with **bold**, *italic*, and \`code\`
163
+ - Combination: **bold and *italic* text** together
164
+ `;
165
+ const Component = () => {
166
+ return ((0, jsx_runtime_1.jsx)("div", { className: "max-w-4xl", children: (0, jsx_runtime_1.jsx)(ai_1.Response, { children: listsMarkdown }) }));
167
+ };
168
+ exports.Component = Component;
169
+ exports.default = exports.Component;
170
+ //# sourceMappingURL=response-lists.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-lists.story.js","sourceRoot":"","sources":["../../../../../src/ai/response/stories/response-lists.story.tsx"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4CAA+C;AAE/C,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0IrB,CAAC;AAEK,MAAM,SAAS,GAAG,GAAG,EAAE;IAC5B,OAAO,CACL,gCAAK,SAAS,EAAC,WAAW,YACxB,uBAAC,aAAQ,cAAE,aAAa,GAAY,GAChC,CACP,CAAC;AACJ,CAAC,CAAC;AANW,QAAA,SAAS,aAMpB;AAEF,kBAAe,iBAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nimport { Response } from '@neo4j-ndl/react/ai';\n\nconst listsMarkdown = `\n# Lists Examples\n\n## Simple Unordered List\n\n- Apple\n- Banana\n- Cherry\n- Date\n- Elderberry\n\n## Simple Ordered List\n\n1. First step\n2. Second step\n3. Third step\n4. Fourth step\n5. Fifth step\n\n## Nested Unordered Lists\n\n- Fruits\n - Apples\n - Granny Smith\n - Honeycrisp\n - Fuji\n - Oranges\n - Navel\n - Blood Orange\n - Berries\n - Strawberry\n - Blueberry\n - Raspberry\n- Vegetables\n - Leafy Greens\n - Spinach\n - Kale\n - Root Vegetables\n - Carrot\n - Potato\n\n## Nested Ordered Lists\n\n1. Introduction\n 1. Overview\n 2. Purpose\n 3. Scope\n2. Main Content\n 1. Chapter 1\n 1. Section 1.1\n 2. Section 1.2\n 3. Section 1.3\n 2. Chapter 2\n 1. Section 2.1\n 2. Section 2.2\n3. Conclusion\n 1. Summary\n 2. Recommendations\n\n## Mixed Lists\n\n1. Install dependencies\n - Node.js\n - npm or yarn\n - Git\n2. Clone repository\n - \\`git clone <url>\\`\n - \\`cd project-name\\`\n3. Configure settings\n 1. Copy \\`.env.example\\` to \\`.env\\`\n 2. Update configuration values:\n - Database URL\n - API keys\n - Port number\n4. Start development server\n - Run \\`npm install\\`\n - Run \\`npm start\\`\n\n## Lists with Paragraphs\n\n- **First Item**\n \n This is a detailed explanation of the first item. It can contain multiple sentences and provide context.\n\n- **Second Item**\n \n The second item also has a detailed explanation. This helps provide more information to the reader.\n\n- **Third Item**\n \n Each item can have as much detail as needed.\n\n## Lists with Code\n\n- JavaScript example:\n \n \\`\\`\\`javascript\n const items = ['a', 'b', 'c'];\n items.forEach(item => console.log(item));\n \\`\\`\\`\n\n- Python example:\n \n \\`\\`\\`python\n items = ['a', 'b', 'c']\n for item in items:\n print(item)\n \\`\\`\\`\n\n## Task Lists Representation\n\n- [x] Complete feature A\n- [x] Write tests\n- [ ] Review code\n- [ ] Deploy to production\n- [ ] Monitor metrics\n\n## Lists with Links\n\n1. Official Resources\n - [Neo4j Documentation](https://neo4j.com/docs)\n - [Neo4j Community](https://community.neo4j.com)\n - [Neo4j GitHub](https://github.com/neo4j)\n2. Tutorials\n - [Getting Started Guide](https://neo4j.com/start)\n - [Cypher Query Language](https://neo4j.com/cypher)\n3. Tools\n - Neo4j Desktop\n - Neo4j Browser\n - Neo4j Bloom\n\n## Lists with Inline Formatting\n\n- **Bold item** with regular text\n- *Italic item* with regular text\n- \\`Code item\\` with regular text\n- Regular text with **bold**, *italic*, and \\`code\\`\n- Combination: **bold and *italic* text** together\n`;\n\nexport const Component = () => {\n return (\n <div className=\"max-w-4xl\">\n <Response>{listsMarkdown}</Response>\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Component = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ /**
6
+ *
7
+ * Copyright (c) "Neo4j"
8
+ * Neo4j Sweden AB [http://neo4j.com]
9
+ *
10
+ * This file is part of Neo4j.
11
+ *
12
+ * Neo4j is free software: you can redistribute it and/or modify
13
+ * it under the terms of the GNU General Public License as published by
14
+ * the Free Software Foundation, either version 3 of the License, or
15
+ * (at your option) any later version.
16
+ *
17
+ * This program is distributed in the hope that it will be useful,
18
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
+ * GNU General Public License for more details.
21
+ *
22
+ * You should have received a copy of the GNU General Public License
23
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
24
+ */
25
+ const ai_1 = require("@neo4j-ndl/react/ai");
26
+ const react_1 = require("react");
27
+ const StreamingComponent = () => {
28
+ const [content, setContent] = (0, react_1.useState)('');
29
+ (0, react_1.useEffect)(() => {
30
+ const fullContent = `
31
+ # Streaming Response
32
+
33
+ This content is being **streamed (and here's a long long long long bold text)** to simulate an AI response.
34
+
35
+ It handles:
36
+ 1. Partial updates
37
+ 2. Incomplete markdown
38
+ 3. Code blocks
39
+
40
+ \`\`\`javascript
41
+ function stream() {
42
+ return "streaming...";
43
+ }
44
+ \`\`\`
45
+ And here comes more text after the code block.`;
46
+ let currentIndex = 0;
47
+ const interval = setInterval(() => {
48
+ if (currentIndex < fullContent.length) {
49
+ setContent(fullContent.slice(0, currentIndex + 1));
50
+ currentIndex++;
51
+ }
52
+ else {
53
+ clearInterval(interval);
54
+ }
55
+ }, 30);
56
+ return () => clearInterval(interval);
57
+ }, []);
58
+ return (0, jsx_runtime_1.jsx)(ai_1.Response, { children: content });
59
+ };
60
+ const Component = () => {
61
+ return (0, jsx_runtime_1.jsx)(StreamingComponent, {});
62
+ };
63
+ exports.Component = Component;
64
+ exports.default = exports.Component;
65
+ //# sourceMappingURL=response-streaming.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-streaming.story.js","sourceRoot":"","sources":["../../../../../src/ai/response/stories/response-streaming.story.tsx"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,4CAA+C;AAC/C,iCAA4C;AAE5C,MAAM,kBAAkB,GAAG,GAAG,EAAE;IAC9B,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAC,EAAE,CAAC,CAAC;IAE3C,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;+CAeuB,CAAC;QAE5C,IAAI,YAAY,GAAG,CAAC,CAAC;QACrB,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,EAAE;YAChC,IAAI,YAAY,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC;gBACtC,UAAU,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE,YAAY,GAAG,CAAC,CAAC,CAAC,CAAC;gBACnD,YAAY,EAAE,CAAC;YACjB,CAAC;iBAAM,CAAC;gBACN,aAAa,CAAC,QAAQ,CAAC,CAAC;YAC1B,CAAC;QACH,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,OAAO,GAAG,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IACvC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,uBAAC,aAAQ,cAAE,OAAO,GAAY,CAAC;AACxC,CAAC,CAAC;AAEK,MAAM,SAAS,GAAG,GAAG,EAAE;IAC5B,OAAO,uBAAC,kBAAkB,KAAG,CAAC;AAChC,CAAC,CAAC;AAFW,QAAA,SAAS,aAEpB;AAEF,kBAAe,iBAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Response } from '@neo4j-ndl/react/ai';\nimport { useEffect, useState } from 'react';\n\nconst StreamingComponent = () => {\n const [content, setContent] = useState('');\n\n useEffect(() => {\n const fullContent = `\n# Streaming Response\n\nThis content is being **streamed (and here's a long long long long bold text)** to simulate an AI response.\n\nIt handles:\n1. Partial updates\n2. Incomplete markdown\n3. Code blocks\n\n\\`\\`\\`javascript\nfunction stream() {\n return \"streaming...\";\n}\n\\`\\`\\`\nAnd here comes more text after the code block.`;\n\n let currentIndex = 0;\n const interval = setInterval(() => {\n if (currentIndex < fullContent.length) {\n setContent(fullContent.slice(0, currentIndex + 1));\n currentIndex++;\n } else {\n clearInterval(interval);\n }\n }, 30);\n\n return () => clearInterval(interval);\n }, []);\n\n return <Response>{content}</Response>;\n};\n\nexport const Component = () => {\n return <StreamingComponent />;\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,132 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+
22
+ "use strict";
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ exports.FullExample = exports.Lists = exports.Headings = exports.CodeExamples = exports.AllComponents = exports.Streaming = exports.Default = void 0;
25
+ const jsx_runtime_1 = require("react/jsx-runtime");
26
+ const Response_1 = require("../Response");
27
+ const index_1 = require("./index");
28
+ const meta = {
29
+ component: Response_1.Response,
30
+ id: 'components-ai-response',
31
+ parameters: {
32
+ controls: { disable: true },
33
+ },
34
+ tags: ['docsPage'],
35
+ title: 'Components/AI/Response',
36
+ };
37
+ exports.default = meta;
38
+ exports.Default = {
39
+ args: {},
40
+ parameters: {
41
+ docs: {
42
+ source: {
43
+ code: index_1.ResponseDefaultSource,
44
+ language: 'tsx',
45
+ type: 'code',
46
+ },
47
+ },
48
+ },
49
+ render: index_1.ResponseDefault,
50
+ };
51
+ exports.Streaming = {
52
+ args: {},
53
+ parameters: {
54
+ docs: {
55
+ source: {
56
+ code: index_1.ResponseStreamingSource,
57
+ language: 'tsx',
58
+ type: 'code',
59
+ },
60
+ },
61
+ },
62
+ render: index_1.ResponseStreaming,
63
+ };
64
+ exports.AllComponents = {
65
+ args: {},
66
+ parameters: {
67
+ docs: {
68
+ source: {
69
+ code: index_1.ResponseAllComponentsSource,
70
+ language: 'tsx',
71
+ type: 'code',
72
+ },
73
+ },
74
+ },
75
+ render: index_1.ResponseAllComponents,
76
+ };
77
+ exports.CodeExamples = {
78
+ args: {},
79
+ parameters: {
80
+ docs: {
81
+ source: {
82
+ code: index_1.ResponseCodeExamplesSource,
83
+ language: 'tsx',
84
+ type: 'code',
85
+ },
86
+ },
87
+ },
88
+ render: index_1.ResponseCodeExamples,
89
+ };
90
+ exports.Headings = {
91
+ args: {},
92
+ parameters: {
93
+ docs: {
94
+ source: {
95
+ code: index_1.ResponseHeadingsSource,
96
+ language: 'tsx',
97
+ type: 'code',
98
+ },
99
+ },
100
+ },
101
+ render: index_1.ResponseHeadings,
102
+ };
103
+ exports.Lists = {
104
+ args: {},
105
+ parameters: {
106
+ docs: {
107
+ source: {
108
+ code: index_1.ResponseListsSource,
109
+ language: 'tsx',
110
+ type: 'code',
111
+ },
112
+ },
113
+ },
114
+ render: index_1.ResponseLists,
115
+ };
116
+ exports.FullExample = {
117
+ args: {},
118
+ decorators: [
119
+ (Story) => ((0, jsx_runtime_1.jsx)("div", { className: "n-bg-neutral-bg-default n-p-4", children: (0, jsx_runtime_1.jsx)(Story, {}) })),
120
+ ],
121
+ parameters: {
122
+ docs: {
123
+ source: {
124
+ code: index_1.ResponseFullExampleSource,
125
+ language: 'tsx',
126
+ type: 'code',
127
+ },
128
+ },
129
+ },
130
+ render: index_1.ResponseFullExample,
131
+ };
132
+ //# sourceMappingURL=response.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.stories.js","sourceRoot":"","sources":["../../../../../src/ai/response/stories/response.stories.tsx"],"names":[],"mappings":";;;;AAuBA,0CAAuC;AACvC,mCAeiB;AAEjB,MAAM,IAAI,GAA0B;IAClC,SAAS,EAAE,mBAAQ;IACnB,EAAE,EAAE,wBAAwB;IAC5B,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAC5B;IACD,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,KAAK,EAAE,wBAAwB;CAChC,CAAC;AAEF,kBAAe,IAAI,CAAC;AAGP,QAAA,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,6BAAqB;gBAC3B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,uBAAe;CACxB,CAAC;AAEW,QAAA,SAAS,GAAU;IAC9B,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,+BAAuB;gBAC7B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,yBAAiB;CAC1B,CAAC;AAEW,QAAA,aAAa,GAAU;IAClC,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,mCAA2B;gBACjC,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,6BAAqB;CAC9B,CAAC;AAEW,QAAA,YAAY,GAAU;IACjC,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,kCAA0B;gBAChC,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,4BAAoB;CAC7B,CAAC;AAEW,QAAA,QAAQ,GAAU;IAC7B,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,8BAAsB;gBAC5B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,wBAAgB;CACzB,CAAC;AAEW,QAAA,KAAK,GAAU;IAC1B,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,2BAAmB;gBACzB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,qBAAa;CACtB,CAAC;AAEW,QAAA,WAAW,GAAU;IAChC,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,CAAC,KAAK,EAAE,EAAE,CAAC,CACT,gCAAK,SAAS,EAAC,+BAA+B,YAC5C,uBAAC,KAAK,KAAG,GACL,CACP;KACF;IACD,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,iCAAyB;gBAC/B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,2BAAmB;CAC5B,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport type { Meta, StoryObj } from '@storybook/react-vite';\n\nimport { Response } from '../Response';\nimport {\n ResponseAllComponents,\n ResponseAllComponentsSource,\n ResponseCodeExamples,\n ResponseCodeExamplesSource,\n ResponseDefault,\n ResponseDefaultSource,\n ResponseFullExample,\n ResponseFullExampleSource,\n ResponseHeadings,\n ResponseHeadingsSource,\n ResponseLists,\n ResponseListsSource,\n ResponseStreaming,\n ResponseStreamingSource,\n} from './index';\n\nconst meta: Meta<typeof Response> = {\n component: Response,\n id: 'components-ai-response',\n parameters: {\n controls: { disable: true },\n },\n tags: ['docsPage'],\n title: 'Components/AI/Response',\n};\n\nexport default meta;\ntype Story = StoryObj<typeof Response>;\n\nexport const Default: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseDefaultSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseDefault,\n};\n\nexport const Streaming: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseStreamingSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseStreaming,\n};\n\nexport const AllComponents: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseAllComponentsSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseAllComponents,\n};\n\nexport const CodeExamples: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseCodeExamplesSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseCodeExamples,\n};\n\nexport const Headings: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseHeadingsSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseHeadings,\n};\n\nexport const Lists: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseListsSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseLists,\n};\n\nexport const FullExample: Story = {\n args: {},\n decorators: [\n (Story) => (\n <div className=\"n-bg-neutral-bg-default n-p-4\">\n <Story />\n </div>\n ),\n ],\n parameters: {\n docs: {\n source: {\n code: ResponseFullExampleSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseFullExample,\n};\n"]}
@@ -0,0 +1,58 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+
22
+ "use strict";
23
+ var __rest = (this && this.__rest) || function (s, e) {
24
+ var t = {};
25
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
26
+ t[p] = s[p];
27
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
28
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
29
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
30
+ t[p[i]] = s[p[i]];
31
+ }
32
+ return t;
33
+ };
34
+ var __importDefault = (this && this.__importDefault) || function (mod) {
35
+ return (mod && mod.__esModule) ? mod : { "default": mod };
36
+ };
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.Suggestion = void 0;
39
+ const jsx_runtime_1 = require("react/jsx-runtime");
40
+ const classnames_1 = __importDefault(require("classnames"));
41
+ /**
42
+ * The component is used to display a suggestion in a chat, or in a prompt.
43
+ * It can be primary, which animates its border.
44
+ *
45
+ * @alpha - Changes to this component may be breaking.
46
+ */
47
+ const Suggestion = (_a) => {
48
+ var { children, leadingVisual, isPrimary, onClick, size = 'small', ref, className, style, htmlAttributes } = _a, restProps = __rest(_a, ["children", "leadingVisual", "isPrimary", "onClick", "size", "ref", "className", "style", "htmlAttributes"]);
49
+ const classes = (0, classnames_1.default)('ndl-ai-suggestion', className, {
50
+ 'ndl-ai-suggestion-special': isPrimary,
51
+ 'ndl-disabled': htmlAttributes === null || htmlAttributes === void 0 ? void 0 : htmlAttributes.disabled,
52
+ 'ndl-large': size === 'large',
53
+ 'ndl-small': size === 'small',
54
+ });
55
+ return ((0, jsx_runtime_1.jsx)("button", Object.assign({ ref: ref, className: classes, style: style, onClick: onClick }, restProps, htmlAttributes, { children: (0, jsx_runtime_1.jsxs)("div", { className: "ndl-ai-suggestion-inner", children: [Boolean(leadingVisual) && ((0, jsx_runtime_1.jsx)("div", { className: "ndl-ai-suggestion-leading", children: leadingVisual })), children] }) })));
56
+ };
57
+ exports.Suggestion = Suggestion;
58
+ //# sourceMappingURL=Suggestion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Suggestion.js","sourceRoot":"","sources":["../../../../src/ai/suggestion/Suggestion.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAsBA,4DAAoC;AAepC;;;;;GAKG;AACH,MAAM,UAAU,GAAG,CAAC,EAWqB,EAAE,EAAE;QAXzB,EAClB,QAAQ,EACR,aAAa,EACb,SAAS,EACT,OAAO,EACP,IAAI,GAAG,OAAO,EACd,GAAG,EACH,SAAS,EACT,KAAK,EACL,cAAc,OAEyB,EADpC,SAAS,cAVM,4GAWnB,CADa;IAEZ,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,mBAAmB,EAAE,SAAS,EAAE;QACzD,2BAA2B,EAAE,SAAS;QACtC,cAAc,EAAE,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,QAAQ;QACxC,WAAW,EAAE,IAAI,KAAK,OAAO;QAC7B,WAAW,EAAE,IAAI,KAAK,OAAO;KAC9B,CAAC,CAAC;IAEH,OAAO,CACL,iDACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,IACZ,SAAS,EACT,cAAc,cAElB,iCAAK,SAAS,EAAC,yBAAyB,aACrC,OAAO,CAAC,aAAa,CAAC,IAAI,CACzB,gCAAK,SAAS,EAAC,2BAA2B,YAAE,aAAa,GAAO,CACjE,EACA,QAAQ,IACL,IACC,CACV,CAAC;AACJ,CAAC,CAAC;AAEO,gCAAU","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { type CommonProps } from '@neo4j-ndl/react/_common/types';\nimport classNames from 'classnames';\n\ntype SuggestionProps = {\n /** The content of the suggestion */\n children?: React.ReactNode;\n /** The visual to display before the content. Should be an icon. */\n leadingVisual?: React.ReactNode;\n /** Whether the suggestion is primary. Renders an animated border. */\n isPrimary?: boolean;\n /** Callback function triggered when the suggestion is clicked */\n onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;\n /** The size of the suggestion */\n size?: 'small' | 'large';\n};\n\n/**\n * The component is used to display a suggestion in a chat, or in a prompt.\n * It can be primary, which animates its border.\n *\n * @alpha - Changes to this component may be breaking.\n */\nconst Suggestion = ({\n children,\n leadingVisual,\n isPrimary,\n onClick,\n size = 'small',\n ref,\n className,\n style,\n htmlAttributes,\n ...restProps\n}: CommonProps<'button', SuggestionProps>) => {\n const classes = classNames('ndl-ai-suggestion', className, {\n 'ndl-ai-suggestion-special': isPrimary,\n 'ndl-disabled': htmlAttributes?.disabled,\n 'ndl-large': size === 'large',\n 'ndl-small': size === 'small',\n });\n\n return (\n <button\n ref={ref}\n className={classes}\n style={style}\n onClick={onClick}\n {...restProps}\n {...htmlAttributes}\n >\n <div className=\"ndl-ai-suggestion-inner\">\n {Boolean(leadingVisual) && (\n <div className=\"ndl-ai-suggestion-leading\">{leadingVisual}</div>\n )}\n {children}\n </div>\n </button>\n );\n};\n\nexport { Suggestion };\n"]}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ var desc = Object.getOwnPropertyDescriptor(m, k);
25
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
26
+ desc = { enumerable: true, get: function() { return m[k]; } };
27
+ }
28
+ Object.defineProperty(o, k2, desc);
29
+ }) : (function(o, m, k, k2) {
30
+ if (k2 === undefined) k2 = k;
31
+ o[k2] = m[k];
32
+ }));
33
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
34
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ __exportStar(require("./Suggestion"), exports);
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ai/suggestion/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;AAEH,+CAA6B","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport * from './Suggestion';\n"]}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ var __importDefault = (this && this.__importDefault) || function (mod) {
23
+ return (mod && mod.__esModule) ? mod : { "default": mod };
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.SuggestionPrimarySrc = exports.SuggestionIconSrc = exports.SuggestionSizesSrc = exports.SuggestionDefaultSrc = exports.SuggestionPrimary = exports.SuggestionIcon = exports.SuggestionSizes = exports.SuggestionDefault = void 0;
27
+ var suggestion_default_story_1 = require("./suggestion-default.story");
28
+ Object.defineProperty(exports, "SuggestionDefault", { enumerable: true, get: function () { return __importDefault(suggestion_default_story_1).default; } });
29
+ var suggestion_sizes_story_1 = require("./suggestion-sizes.story");
30
+ Object.defineProperty(exports, "SuggestionSizes", { enumerable: true, get: function () { return __importDefault(suggestion_sizes_story_1).default; } });
31
+ var suggestion_icon_story_1 = require("./suggestion-icon.story");
32
+ Object.defineProperty(exports, "SuggestionIcon", { enumerable: true, get: function () { return __importDefault(suggestion_icon_story_1).default; } });
33
+ var suggestion_primary_story_1 = require("./suggestion-primary.story");
34
+ Object.defineProperty(exports, "SuggestionPrimary", { enumerable: true, get: function () { return __importDefault(suggestion_primary_story_1).default; } });
35
+ const export_stories_utils_1 = require("@neo4j-ndl/react/_common/export-stories-utils");
36
+ const suggestion_default_story_raw_1 = __importDefault(require("./suggestion-default.story?raw"));
37
+ const suggestion_icon_story_raw_1 = __importDefault(require("./suggestion-icon.story?raw"));
38
+ const suggestion_primary_story_raw_1 = __importDefault(require("./suggestion-primary.story?raw"));
39
+ const suggestion_sizes_story_raw_1 = __importDefault(require("./suggestion-sizes.story?raw"));
40
+ exports.SuggestionDefaultSrc = (0, export_stories_utils_1.removeLicenseHeader)(suggestion_default_story_raw_1.default);
41
+ exports.SuggestionSizesSrc = (0, export_stories_utils_1.removeLicenseHeader)(suggestion_sizes_story_raw_1.default);
42
+ exports.SuggestionIconSrc = (0, export_stories_utils_1.removeLicenseHeader)(suggestion_icon_story_raw_1.default);
43
+ exports.SuggestionPrimarySrc = (0, export_stories_utils_1.removeLicenseHeader)(suggestion_primary_story_raw_1.default);
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/suggestion/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,uEAA0E;AAAjE,8IAAA,OAAO,OAAqB;AACrC,mEAAsE;AAA7D,0IAAA,OAAO,OAAmB;AACnC,iEAAoE;AAA3D,wIAAA,OAAO,OAAkB;AAClC,uEAA0E;AAAjE,8IAAA,OAAO,OAAqB;AAErC,wFAAoF;AAEpF,kGAAqE;AACrE,4FAA+D;AAC/D,kGAAqE;AACrE,8FAAiE;AAEpD,QAAA,oBAAoB,GAAG,IAAA,0CAAmB,EACrD,sCAAuB,CACxB,CAAC;AACW,QAAA,kBAAkB,GAAG,IAAA,0CAAmB,EAAC,oCAAqB,CAAC,CAAC;AAChE,QAAA,iBAAiB,GAAG,IAAA,0CAAmB,EAAC,mCAAoB,CAAC,CAAC;AAC9D,QAAA,oBAAoB,GAAG,IAAA,0CAAmB,EACrD,sCAAuB,CACxB,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { default as SuggestionDefault } from './suggestion-default.story';\nexport { default as SuggestionSizes } from './suggestion-sizes.story';\nexport { default as SuggestionIcon } from './suggestion-icon.story';\nexport { default as SuggestionPrimary } from './suggestion-primary.story';\n\nimport { removeLicenseHeader } from '@neo4j-ndl/react/_common/export-stories-utils';\n\nimport SuggestionDefaultSrcRaw from './suggestion-default.story?raw';\nimport SuggestionIconSrcRaw from './suggestion-icon.story?raw';\nimport SuggestionPrimarySrcRaw from './suggestion-primary.story?raw';\nimport SuggestionSizesSrcRaw from './suggestion-sizes.story?raw';\n\nexport const SuggestionDefaultSrc = removeLicenseHeader(\n SuggestionDefaultSrcRaw,\n);\nexport const SuggestionSizesSrc = removeLicenseHeader(SuggestionSizesSrcRaw);\nexport const SuggestionIconSrc = removeLicenseHeader(SuggestionIconSrcRaw);\nexport const SuggestionPrimarySrc = removeLicenseHeader(\n SuggestionPrimarySrcRaw,\n);\n"]}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const ai_1 = require("@neo4j-ndl/react/ai");
26
+ const Component = () => {
27
+ return (0, jsx_runtime_1.jsx)(ai_1.Suggestion, { children: "How do I get started with Aura?" });
28
+ };
29
+ exports.default = Component;
30
+ //# sourceMappingURL=suggestion-default.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"suggestion-default.story.js","sourceRoot":"","sources":["../../../../../src/ai/suggestion/stories/suggestion-default.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAiD;AAEjD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,uBAAC,eAAU,kDAA6C,CAAC;AAClE,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Suggestion } from '@neo4j-ndl/react/ai';\n\nconst Component = () => {\n return <Suggestion>How do I get started with Aura?</Suggestion>;\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const ai_1 = require("@neo4j-ndl/react/ai");
26
+ const icons_1 = require("@neo4j-ndl/react/icons");
27
+ const Component = () => {
28
+ return ((0, jsx_runtime_1.jsx)(ai_1.Suggestion, { size: "small", leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.MagnifyingGlassIconOutline, {}), children: "How do I get started with Aura?" }));
29
+ };
30
+ exports.default = Component;
31
+ //# sourceMappingURL=suggestion-icon.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"suggestion-icon.story.js","sourceRoot":"","sources":["../../../../../src/ai/suggestion/stories/suggestion-icon.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAiD;AACjD,kDAAoE;AAEpE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,eAAU,IAAC,IAAI,EAAC,OAAO,EAAC,aAAa,EAAE,uBAAC,kCAA0B,KAAG,gDAEzD,CACd,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Suggestion } from '@neo4j-ndl/react/ai';\nimport { MagnifyingGlassIconOutline } from '@neo4j-ndl/react/icons';\n\nconst Component = () => {\n return (\n <Suggestion size=\"small\" leadingVisual={<MagnifyingGlassIconOutline />}>\n How do I get started with Aura?\n </Suggestion>\n );\n};\n\nexport default Component;\n"]}