@neo4j-ndl/react 4.2.6 → 4.2.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 (402) hide show
  1. package/lib/cjs/accordion/stories/index.js +1 -1
  2. package/lib/cjs/accordion/stories/index.js.map +1 -1
  3. package/lib/cjs/ai/code-preview/stories/index.js +1 -1
  4. package/lib/cjs/ai/code-preview/stories/index.js.map +1 -1
  5. package/lib/cjs/ai/file-tag/FileTag.js.map +1 -1
  6. package/lib/cjs/ai/file-tag/stories/index.js +1 -1
  7. package/lib/cjs/ai/file-tag/stories/index.js.map +1 -1
  8. package/lib/cjs/ai/image-tag/ImageTag.js.map +1 -1
  9. package/lib/cjs/ai/image-tag/stories/index.js +1 -1
  10. package/lib/cjs/ai/image-tag/stories/index.js.map +1 -1
  11. package/lib/cjs/ai/more-files/MoreFiles.js +18 -19
  12. package/lib/cjs/ai/more-files/MoreFiles.js.map +1 -1
  13. package/lib/cjs/ai/more-files/stories/index.js +1 -1
  14. package/lib/cjs/ai/more-files/stories/index.js.map +1 -1
  15. package/lib/cjs/ai/more-files/stories/more-files.story.js +5 -5
  16. package/lib/cjs/ai/more-files/stories/more-files.story.js.map +1 -1
  17. package/lib/cjs/ai/presence/Presence.js.map +1 -1
  18. package/lib/cjs/ai/presence/stories/index.js +1 -1
  19. package/lib/cjs/ai/presence/stories/index.js.map +1 -1
  20. package/lib/cjs/ai/prompt/Prompt.js.map +1 -1
  21. package/lib/cjs/ai/prompt/stories/index.js +1 -1
  22. package/lib/cjs/ai/prompt/stories/index.js.map +1 -1
  23. package/lib/cjs/ai/reasoning/Reasoning.js.map +1 -1
  24. package/lib/cjs/ai/reasoning/stories/index.js +1 -1
  25. package/lib/cjs/ai/reasoning/stories/index.js.map +1 -1
  26. package/lib/cjs/ai/response/Response.js.map +1 -1
  27. package/lib/cjs/ai/response/stories/index.js +1 -1
  28. package/lib/cjs/ai/response/stories/index.js.map +1 -1
  29. package/lib/cjs/ai/suggestion/Suggestion.js +18 -19
  30. package/lib/cjs/ai/suggestion/Suggestion.js.map +1 -1
  31. package/lib/cjs/ai/suggestion/stories/index.js +1 -1
  32. package/lib/cjs/ai/suggestion/stories/index.js.map +1 -1
  33. package/lib/cjs/ai/thinking/Thinking.js +18 -19
  34. package/lib/cjs/ai/thinking/Thinking.js.map +1 -1
  35. package/lib/cjs/ai/thinking/stories/index.js +1 -1
  36. package/lib/cjs/ai/thinking/stories/index.js.map +1 -1
  37. package/lib/cjs/ai/tool-call/ToolCall.js.map +1 -1
  38. package/lib/cjs/ai/tool-call/stories/index.js +1 -1
  39. package/lib/cjs/ai/tool-call/stories/index.js.map +1 -1
  40. package/lib/cjs/ai/user-bubble/UserBubble.js.map +1 -1
  41. package/lib/cjs/ai/user-bubble/stories/index.js +1 -1
  42. package/lib/cjs/ai/user-bubble/stories/index.js.map +1 -1
  43. package/lib/cjs/ai/user-bubble/stories/user-bubble-action.story.js +2 -2
  44. package/lib/cjs/ai/user-bubble/stories/user-bubble-action.story.js.map +1 -1
  45. package/lib/cjs/ai/user-bubble/stories/user-bubble-and-files.story.js +5 -5
  46. package/lib/cjs/ai/user-bubble/stories/user-bubble-and-files.story.js.map +1 -1
  47. package/lib/cjs/avatar/stories/index.js +1 -1
  48. package/lib/cjs/avatar/stories/index.js.map +1 -1
  49. package/lib/cjs/banner/stories/index.js +1 -1
  50. package/lib/cjs/banner/stories/index.js.map +1 -1
  51. package/lib/cjs/box/stories/index.js +1 -1
  52. package/lib/cjs/box/stories/index.js.map +1 -1
  53. package/lib/cjs/button/stories/index.js +1 -1
  54. package/lib/cjs/button/stories/index.js.map +1 -1
  55. package/lib/cjs/clean-icon-button/stories/index.js +1 -1
  56. package/lib/cjs/clean-icon-button/stories/index.js.map +1 -1
  57. package/lib/cjs/clipboard-button/stories/index.js +1 -1
  58. package/lib/cjs/clipboard-button/stories/index.js.map +1 -1
  59. package/lib/cjs/code/stories/index.js +1 -1
  60. package/lib/cjs/code/stories/index.js.map +1 -1
  61. package/lib/cjs/code-block/stories/index.js +1 -1
  62. package/lib/cjs/code-block/stories/index.js.map +1 -1
  63. package/lib/cjs/color-picker/stories/index.js +1 -1
  64. package/lib/cjs/color-picker/stories/index.js.map +1 -1
  65. package/lib/cjs/conditional-wrap/stories/index.js +1 -1
  66. package/lib/cjs/conditional-wrap/stories/index.js.map +1 -1
  67. package/lib/cjs/data-grid/Components.js +2 -2
  68. package/lib/cjs/data-grid/Components.js.map +1 -1
  69. package/lib/cjs/data-grid/stories/datagrid-virtualization.story.js.map +1 -1
  70. package/lib/cjs/data-grid/stories/index.js +1 -1
  71. package/lib/cjs/data-grid/stories/index.js.map +1 -1
  72. package/lib/cjs/date-picker/stories/index.js +1 -1
  73. package/lib/cjs/date-picker/stories/index.js.map +1 -1
  74. package/lib/cjs/dialog/stories/index.js +1 -1
  75. package/lib/cjs/dialog/stories/index.js.map +1 -1
  76. package/lib/cjs/divider/stories/index.js +1 -1
  77. package/lib/cjs/divider/stories/index.js.map +1 -1
  78. package/lib/cjs/drawer/stories/index.js +1 -1
  79. package/lib/cjs/drawer/stories/index.js.map +1 -1
  80. package/lib/cjs/dropdown-button/stories/index.js +1 -1
  81. package/lib/cjs/dropdown-button/stories/index.js.map +1 -1
  82. package/lib/cjs/dropzone/stories/index.js +1 -1
  83. package/lib/cjs/dropzone/stories/index.js.map +1 -1
  84. package/lib/cjs/flex/stories/index.js +1 -1
  85. package/lib/cjs/flex/stories/index.js.map +1 -1
  86. package/lib/cjs/graph-label/stories/index.js +1 -1
  87. package/lib/cjs/graph-label/stories/index.js.map +1 -1
  88. package/lib/cjs/icon-button/stories/index.js +1 -1
  89. package/lib/cjs/icon-button/stories/index.js.map +1 -1
  90. package/lib/cjs/icon-button-array/stories/index.js +1 -1
  91. package/lib/cjs/icon-button-array/stories/index.js.map +1 -1
  92. package/lib/cjs/icons/manual/Neo4JAiColor.js +15 -16
  93. package/lib/cjs/icons/manual/Neo4JAiColor.js.map +1 -1
  94. package/lib/cjs/inline-edit/stories/index.js +1 -1
  95. package/lib/cjs/inline-edit/stories/index.js.map +1 -1
  96. package/lib/cjs/kbd/stories/index.js +1 -1
  97. package/lib/cjs/kbd/stories/index.js.map +1 -1
  98. package/lib/cjs/loading-bar/stories/index.js +1 -1
  99. package/lib/cjs/loading-bar/stories/index.js.map +1 -1
  100. package/lib/cjs/loading-spinner/stories/index.js +1 -1
  101. package/lib/cjs/loading-spinner/stories/index.js.map +1 -1
  102. package/lib/cjs/logo/stories/index.js +1 -1
  103. package/lib/cjs/logo/stories/index.js.map +1 -1
  104. package/lib/cjs/menu/stories/index.js +1 -1
  105. package/lib/cjs/menu/stories/index.js.map +1 -1
  106. package/lib/cjs/menu/stories/menu-custom-items.story.js +2 -1
  107. package/lib/cjs/menu/stories/menu-custom-items.story.js.map +1 -1
  108. package/lib/cjs/progress-bar/stories/index.js +1 -1
  109. package/lib/cjs/progress-bar/stories/index.js.map +1 -1
  110. package/lib/cjs/segmented-control/stories/index.js +1 -1
  111. package/lib/cjs/segmented-control/stories/index.js.map +1 -1
  112. package/lib/cjs/select/stories/index.js +1 -1
  113. package/lib/cjs/select/stories/index.js.map +1 -1
  114. package/lib/cjs/slider/stories/index.js +1 -1
  115. package/lib/cjs/slider/stories/index.js.map +1 -1
  116. package/lib/cjs/spotlight/stories/index.js +1 -1
  117. package/lib/cjs/spotlight/stories/index.js.map +1 -1
  118. package/lib/cjs/status-indicator/stories/index.js +1 -1
  119. package/lib/cjs/status-indicator/stories/index.js.map +1 -1
  120. package/lib/cjs/status-label/stories/index.js +1 -1
  121. package/lib/cjs/status-label/stories/index.js.map +1 -1
  122. package/lib/cjs/switch/stories/index.js +1 -1
  123. package/lib/cjs/switch/stories/index.js.map +1 -1
  124. package/lib/cjs/tabs/stories/index.js +1 -1
  125. package/lib/cjs/tabs/stories/index.js.map +1 -1
  126. package/lib/cjs/tag/stories/index.js +1 -1
  127. package/lib/cjs/tag/stories/index.js.map +1 -1
  128. package/lib/cjs/text-area/stories/index.js +1 -1
  129. package/lib/cjs/text-area/stories/index.js.map +1 -1
  130. package/lib/cjs/text-input/stories/index.js +1 -1
  131. package/lib/cjs/text-input/stories/index.js.map +1 -1
  132. package/lib/cjs/text-link/stories/index.js +1 -1
  133. package/lib/cjs/text-link/stories/index.js.map +1 -1
  134. package/lib/cjs/time-picker/stories/index.js +1 -1
  135. package/lib/cjs/time-picker/stories/index.js.map +1 -1
  136. package/lib/cjs/timezone-picker/stories/index.js +1 -1
  137. package/lib/cjs/timezone-picker/stories/index.js.map +1 -1
  138. package/lib/cjs/toast/stories/index.js +1 -1
  139. package/lib/cjs/toast/stories/index.js.map +1 -1
  140. package/lib/cjs/tooltip/stories/index.js +1 -1
  141. package/lib/cjs/tooltip/stories/index.js.map +1 -1
  142. package/lib/cjs/tree-view/stories/index.js +1 -1
  143. package/lib/cjs/tree-view/stories/index.js.map +1 -1
  144. package/lib/cjs/tree-view/stories/treeview-custom.story.js +5 -5
  145. package/lib/cjs/tree-view/stories/treeview-custom.story.js.map +1 -1
  146. package/lib/cjs/tree-view/stories/treeview-default.story.js +4 -4
  147. package/lib/cjs/tree-view/stories/treeview-default.story.js.map +1 -1
  148. package/lib/cjs/tree-view/stories/treeview-skeleton-loading.story.js +4 -4
  149. package/lib/cjs/tree-view/stories/treeview-skeleton-loading.story.js.map +1 -1
  150. package/lib/cjs/typography/stories/index.js +1 -1
  151. package/lib/cjs/typography/stories/index.js.map +1 -1
  152. package/lib/cjs/wizard/stories/index.js +1 -1
  153. package/lib/cjs/wizard/stories/index.js.map +1 -1
  154. package/lib/esm/accordion/stories/index.js +1 -1
  155. package/lib/esm/accordion/stories/index.js.map +1 -1
  156. package/lib/esm/ai/code-preview/stories/index.js +1 -1
  157. package/lib/esm/ai/code-preview/stories/index.js.map +1 -1
  158. package/lib/esm/ai/file-tag/FileTag.js.map +1 -1
  159. package/lib/esm/ai/file-tag/stories/index.js +1 -1
  160. package/lib/esm/ai/file-tag/stories/index.js.map +1 -1
  161. package/lib/esm/ai/image-tag/ImageTag.js.map +1 -1
  162. package/lib/esm/ai/image-tag/stories/index.js +1 -1
  163. package/lib/esm/ai/image-tag/stories/index.js.map +1 -1
  164. package/lib/esm/ai/more-files/MoreFiles.js +12 -13
  165. package/lib/esm/ai/more-files/MoreFiles.js.map +1 -1
  166. package/lib/esm/ai/more-files/stories/index.js +1 -1
  167. package/lib/esm/ai/more-files/stories/index.js.map +1 -1
  168. package/lib/esm/ai/more-files/stories/more-files.story.js +1 -1
  169. package/lib/esm/ai/more-files/stories/more-files.story.js.map +1 -1
  170. package/lib/esm/ai/presence/Presence.js.map +1 -1
  171. package/lib/esm/ai/presence/stories/index.js +1 -1
  172. package/lib/esm/ai/presence/stories/index.js.map +1 -1
  173. package/lib/esm/ai/prompt/Prompt.js.map +1 -1
  174. package/lib/esm/ai/prompt/stories/index.js +1 -1
  175. package/lib/esm/ai/prompt/stories/index.js.map +1 -1
  176. package/lib/esm/ai/reasoning/Reasoning.js.map +1 -1
  177. package/lib/esm/ai/reasoning/stories/index.js +1 -1
  178. package/lib/esm/ai/reasoning/stories/index.js.map +1 -1
  179. package/lib/esm/ai/response/Response.js.map +1 -1
  180. package/lib/esm/ai/response/stories/index.js +1 -1
  181. package/lib/esm/ai/response/stories/index.js.map +1 -1
  182. package/lib/esm/ai/suggestion/Suggestion.js +12 -13
  183. package/lib/esm/ai/suggestion/Suggestion.js.map +1 -1
  184. package/lib/esm/ai/suggestion/stories/index.js +1 -1
  185. package/lib/esm/ai/suggestion/stories/index.js.map +1 -1
  186. package/lib/esm/ai/thinking/Thinking.js +12 -13
  187. package/lib/esm/ai/thinking/Thinking.js.map +1 -1
  188. package/lib/esm/ai/thinking/stories/index.js +1 -1
  189. package/lib/esm/ai/thinking/stories/index.js.map +1 -1
  190. package/lib/esm/ai/tool-call/ToolCall.js.map +1 -1
  191. package/lib/esm/ai/tool-call/stories/index.js +1 -1
  192. package/lib/esm/ai/tool-call/stories/index.js.map +1 -1
  193. package/lib/esm/ai/user-bubble/UserBubble.js.map +1 -1
  194. package/lib/esm/ai/user-bubble/stories/index.js +1 -1
  195. package/lib/esm/ai/user-bubble/stories/index.js.map +1 -1
  196. package/lib/esm/ai/user-bubble/stories/user-bubble-action.story.js +1 -1
  197. package/lib/esm/ai/user-bubble/stories/user-bubble-action.story.js.map +1 -1
  198. package/lib/esm/ai/user-bubble/stories/user-bubble-and-files.story.js +1 -1
  199. package/lib/esm/ai/user-bubble/stories/user-bubble-and-files.story.js.map +1 -1
  200. package/lib/esm/avatar/stories/index.js +1 -1
  201. package/lib/esm/avatar/stories/index.js.map +1 -1
  202. package/lib/esm/banner/stories/index.js +1 -1
  203. package/lib/esm/banner/stories/index.js.map +1 -1
  204. package/lib/esm/box/stories/index.js +1 -1
  205. package/lib/esm/box/stories/index.js.map +1 -1
  206. package/lib/esm/button/stories/index.js +1 -1
  207. package/lib/esm/button/stories/index.js.map +1 -1
  208. package/lib/esm/clean-icon-button/stories/index.js +1 -1
  209. package/lib/esm/clean-icon-button/stories/index.js.map +1 -1
  210. package/lib/esm/clipboard-button/stories/index.js +1 -1
  211. package/lib/esm/clipboard-button/stories/index.js.map +1 -1
  212. package/lib/esm/code/stories/index.js +1 -1
  213. package/lib/esm/code/stories/index.js.map +1 -1
  214. package/lib/esm/code-block/stories/index.js +1 -1
  215. package/lib/esm/code-block/stories/index.js.map +1 -1
  216. package/lib/esm/color-picker/stories/index.js +1 -1
  217. package/lib/esm/color-picker/stories/index.js.map +1 -1
  218. package/lib/esm/conditional-wrap/stories/index.js +1 -1
  219. package/lib/esm/conditional-wrap/stories/index.js.map +1 -1
  220. package/lib/esm/data-grid/Components.js +2 -2
  221. package/lib/esm/data-grid/Components.js.map +1 -1
  222. package/lib/esm/data-grid/stories/datagrid-virtualization.story.js.map +1 -1
  223. package/lib/esm/data-grid/stories/index.js +1 -1
  224. package/lib/esm/data-grid/stories/index.js.map +1 -1
  225. package/lib/esm/date-picker/stories/index.js +1 -1
  226. package/lib/esm/date-picker/stories/index.js.map +1 -1
  227. package/lib/esm/dialog/stories/index.js +1 -1
  228. package/lib/esm/dialog/stories/index.js.map +1 -1
  229. package/lib/esm/divider/stories/index.js +1 -1
  230. package/lib/esm/divider/stories/index.js.map +1 -1
  231. package/lib/esm/drawer/stories/index.js +1 -1
  232. package/lib/esm/drawer/stories/index.js.map +1 -1
  233. package/lib/esm/dropdown-button/stories/index.js +1 -1
  234. package/lib/esm/dropdown-button/stories/index.js.map +1 -1
  235. package/lib/esm/dropzone/stories/index.js +1 -1
  236. package/lib/esm/dropzone/stories/index.js.map +1 -1
  237. package/lib/esm/flex/stories/index.js +1 -1
  238. package/lib/esm/flex/stories/index.js.map +1 -1
  239. package/lib/esm/graph-label/stories/index.js +1 -1
  240. package/lib/esm/graph-label/stories/index.js.map +1 -1
  241. package/lib/esm/icon-button/stories/index.js +1 -1
  242. package/lib/esm/icon-button/stories/index.js.map +1 -1
  243. package/lib/esm/icon-button-array/stories/index.js +1 -1
  244. package/lib/esm/icon-button-array/stories/index.js.map +1 -1
  245. package/lib/esm/icons/manual/Neo4JAiColor.js +12 -13
  246. package/lib/esm/icons/manual/Neo4JAiColor.js.map +1 -1
  247. package/lib/esm/inline-edit/stories/index.js +1 -1
  248. package/lib/esm/inline-edit/stories/index.js.map +1 -1
  249. package/lib/esm/kbd/stories/index.js +1 -1
  250. package/lib/esm/kbd/stories/index.js.map +1 -1
  251. package/lib/esm/loading-bar/stories/index.js +1 -1
  252. package/lib/esm/loading-bar/stories/index.js.map +1 -1
  253. package/lib/esm/loading-spinner/stories/index.js +1 -1
  254. package/lib/esm/loading-spinner/stories/index.js.map +1 -1
  255. package/lib/esm/logo/stories/index.js +1 -1
  256. package/lib/esm/logo/stories/index.js.map +1 -1
  257. package/lib/esm/menu/stories/index.js +1 -1
  258. package/lib/esm/menu/stories/index.js.map +1 -1
  259. package/lib/esm/menu/stories/menu-custom-items.story.js +2 -1
  260. package/lib/esm/menu/stories/menu-custom-items.story.js.map +1 -1
  261. package/lib/esm/progress-bar/stories/index.js +1 -1
  262. package/lib/esm/progress-bar/stories/index.js.map +1 -1
  263. package/lib/esm/segmented-control/stories/index.js +1 -1
  264. package/lib/esm/segmented-control/stories/index.js.map +1 -1
  265. package/lib/esm/select/stories/index.js +1 -1
  266. package/lib/esm/select/stories/index.js.map +1 -1
  267. package/lib/esm/slider/stories/index.js +1 -1
  268. package/lib/esm/slider/stories/index.js.map +1 -1
  269. package/lib/esm/spotlight/stories/index.js +1 -1
  270. package/lib/esm/spotlight/stories/index.js.map +1 -1
  271. package/lib/esm/status-indicator/stories/index.js +1 -1
  272. package/lib/esm/status-indicator/stories/index.js.map +1 -1
  273. package/lib/esm/status-label/stories/index.js +1 -1
  274. package/lib/esm/status-label/stories/index.js.map +1 -1
  275. package/lib/esm/switch/stories/index.js +1 -1
  276. package/lib/esm/switch/stories/index.js.map +1 -1
  277. package/lib/esm/tabs/stories/index.js +1 -1
  278. package/lib/esm/tabs/stories/index.js.map +1 -1
  279. package/lib/esm/tag/stories/index.js +1 -1
  280. package/lib/esm/tag/stories/index.js.map +1 -1
  281. package/lib/esm/text-area/stories/index.js +1 -1
  282. package/lib/esm/text-area/stories/index.js.map +1 -1
  283. package/lib/esm/text-input/stories/index.js +1 -1
  284. package/lib/esm/text-input/stories/index.js.map +1 -1
  285. package/lib/esm/text-link/stories/index.js +1 -1
  286. package/lib/esm/text-link/stories/index.js.map +1 -1
  287. package/lib/esm/time-picker/stories/index.js +1 -1
  288. package/lib/esm/time-picker/stories/index.js.map +1 -1
  289. package/lib/esm/timezone-picker/stories/index.js +1 -1
  290. package/lib/esm/timezone-picker/stories/index.js.map +1 -1
  291. package/lib/esm/toast/stories/index.js +1 -1
  292. package/lib/esm/toast/stories/index.js.map +1 -1
  293. package/lib/esm/tooltip/stories/index.js +1 -1
  294. package/lib/esm/tooltip/stories/index.js.map +1 -1
  295. package/lib/esm/tree-view/stories/index.js +1 -1
  296. package/lib/esm/tree-view/stories/index.js.map +1 -1
  297. package/lib/esm/tree-view/stories/treeview-custom.story.js +1 -1
  298. package/lib/esm/tree-view/stories/treeview-custom.story.js.map +1 -1
  299. package/lib/esm/tree-view/stories/treeview-default.story.js +1 -1
  300. package/lib/esm/tree-view/stories/treeview-default.story.js.map +1 -1
  301. package/lib/esm/tree-view/stories/treeview-skeleton-loading.story.js +1 -1
  302. package/lib/esm/tree-view/stories/treeview-skeleton-loading.story.js.map +1 -1
  303. package/lib/esm/typography/stories/index.js +1 -1
  304. package/lib/esm/typography/stories/index.js.map +1 -1
  305. package/lib/esm/wizard/stories/index.js +1 -1
  306. package/lib/esm/wizard/stories/index.js.map +1 -1
  307. package/lib/types/accordion/stories/index.d.ts.map +1 -1
  308. package/lib/types/ai/code-preview/stories/index.d.ts.map +1 -1
  309. package/lib/types/ai/file-tag/FileTag.d.ts +1 -1
  310. package/lib/types/ai/file-tag/FileTag.d.ts.map +1 -1
  311. package/lib/types/ai/file-tag/stories/index.d.ts.map +1 -1
  312. package/lib/types/ai/image-tag/ImageTag.d.ts +1 -1
  313. package/lib/types/ai/image-tag/ImageTag.d.ts.map +1 -1
  314. package/lib/types/ai/image-tag/stories/index.d.ts.map +1 -1
  315. package/lib/types/ai/more-files/MoreFiles.d.ts +1 -1
  316. package/lib/types/ai/more-files/MoreFiles.d.ts.map +1 -1
  317. package/lib/types/ai/more-files/stories/index.d.ts.map +1 -1
  318. package/lib/types/ai/presence/Presence.d.ts +1 -1
  319. package/lib/types/ai/presence/Presence.d.ts.map +1 -1
  320. package/lib/types/ai/presence/stories/index.d.ts.map +1 -1
  321. package/lib/types/ai/prompt/Prompt.d.ts +1 -1
  322. package/lib/types/ai/prompt/Prompt.d.ts.map +1 -1
  323. package/lib/types/ai/prompt/stories/index.d.ts.map +1 -1
  324. package/lib/types/ai/reasoning/Reasoning.d.ts +1 -1
  325. package/lib/types/ai/reasoning/Reasoning.d.ts.map +1 -1
  326. package/lib/types/ai/reasoning/stories/index.d.ts.map +1 -1
  327. package/lib/types/ai/response/Response.d.ts +1 -1
  328. package/lib/types/ai/response/Response.d.ts.map +1 -1
  329. package/lib/types/ai/response/stories/index.d.ts.map +1 -1
  330. package/lib/types/ai/suggestion/Suggestion.d.ts +1 -1
  331. package/lib/types/ai/suggestion/Suggestion.d.ts.map +1 -1
  332. package/lib/types/ai/suggestion/stories/index.d.ts.map +1 -1
  333. package/lib/types/ai/thinking/Thinking.d.ts +1 -1
  334. package/lib/types/ai/thinking/Thinking.d.ts.map +1 -1
  335. package/lib/types/ai/tool-call/ToolCall.d.ts +1 -1
  336. package/lib/types/ai/tool-call/ToolCall.d.ts.map +1 -1
  337. package/lib/types/ai/tool-call/stories/index.d.ts.map +1 -1
  338. package/lib/types/ai/user-bubble/UserBubble.d.ts +1 -1
  339. package/lib/types/ai/user-bubble/UserBubble.d.ts.map +1 -1
  340. package/lib/types/ai/user-bubble/stories/index.d.ts.map +1 -1
  341. package/lib/types/avatar/stories/index.d.ts.map +1 -1
  342. package/lib/types/banner/stories/index.d.ts.map +1 -1
  343. package/lib/types/box/stories/index.d.ts.map +1 -1
  344. package/lib/types/button/stories/index.d.ts.map +1 -1
  345. package/lib/types/clean-icon-button/stories/index.d.ts.map +1 -1
  346. package/lib/types/clipboard-button/stories/index.d.ts.map +1 -1
  347. package/lib/types/code/stories/index.d.ts.map +1 -1
  348. package/lib/types/code-block/stories/index.d.ts.map +1 -1
  349. package/lib/types/color-picker/stories/index.d.ts.map +1 -1
  350. package/lib/types/conditional-wrap/stories/index.d.ts.map +1 -1
  351. package/lib/types/data-grid/Components.d.ts +4 -1
  352. package/lib/types/data-grid/Components.d.ts.map +1 -1
  353. package/lib/types/data-grid/DataGrid.d.ts +2 -1
  354. package/lib/types/data-grid/DataGrid.d.ts.map +1 -1
  355. package/lib/types/data-grid/stories/datagrid-pinned-columns.stories.d.ts +2 -1
  356. package/lib/types/data-grid/stories/datagrid-pinned-columns.stories.d.ts.map +1 -1
  357. package/lib/types/data-grid/stories/datagrid-placeholder-states.stories.d.ts +2 -1
  358. package/lib/types/data-grid/stories/datagrid-placeholder-states.stories.d.ts.map +1 -1
  359. package/lib/types/data-grid/stories/datagrid-search-and-filters.stories.d.ts +2 -1
  360. package/lib/types/data-grid/stories/datagrid-search-and-filters.stories.d.ts.map +1 -1
  361. package/lib/types/data-grid/stories/datagrid-virtualization.story.d.ts.map +1 -1
  362. package/lib/types/data-grid/stories/index.d.ts.map +1 -1
  363. package/lib/types/date-picker/stories/index.d.ts.map +1 -1
  364. package/lib/types/dialog/stories/index.d.ts.map +1 -1
  365. package/lib/types/divider/stories/index.d.ts.map +1 -1
  366. package/lib/types/drawer/stories/index.d.ts.map +1 -1
  367. package/lib/types/dropdown-button/stories/index.d.ts.map +1 -1
  368. package/lib/types/dropzone/stories/index.d.ts.map +1 -1
  369. package/lib/types/flex/stories/index.d.ts.map +1 -1
  370. package/lib/types/graph-label/stories/index.d.ts.map +1 -1
  371. package/lib/types/icon-button/stories/index.d.ts.map +1 -1
  372. package/lib/types/icon-button-array/stories/index.d.ts.map +1 -1
  373. package/lib/types/icons/manual/Neo4JAiColor.d.ts +4 -3
  374. package/lib/types/icons/manual/Neo4JAiColor.d.ts.map +1 -1
  375. package/lib/types/inline-edit/stories/index.d.ts.map +1 -1
  376. package/lib/types/kbd/stories/index.d.ts.map +1 -1
  377. package/lib/types/loading-bar/stories/index.d.ts.map +1 -1
  378. package/lib/types/loading-spinner/stories/index.d.ts.map +1 -1
  379. package/lib/types/logo/stories/index.d.ts.map +1 -1
  380. package/lib/types/menu/stories/index.d.ts.map +1 -1
  381. package/lib/types/menu/stories/menu-custom-items.story.d.ts.map +1 -1
  382. package/lib/types/progress-bar/stories/index.d.ts.map +1 -1
  383. package/lib/types/segmented-control/stories/index.d.ts.map +1 -1
  384. package/lib/types/select/stories/index.d.ts.map +1 -1
  385. package/lib/types/slider/stories/index.d.ts.map +1 -1
  386. package/lib/types/spotlight/stories/index.d.ts.map +1 -1
  387. package/lib/types/status-indicator/stories/index.d.ts.map +1 -1
  388. package/lib/types/status-label/stories/index.d.ts.map +1 -1
  389. package/lib/types/switch/stories/index.d.ts.map +1 -1
  390. package/lib/types/tabs/stories/index.d.ts.map +1 -1
  391. package/lib/types/tag/stories/index.d.ts.map +1 -1
  392. package/lib/types/text-area/stories/index.d.ts.map +1 -1
  393. package/lib/types/text-input/stories/index.d.ts.map +1 -1
  394. package/lib/types/text-link/stories/index.d.ts.map +1 -1
  395. package/lib/types/time-picker/stories/index.d.ts.map +1 -1
  396. package/lib/types/timezone-picker/stories/index.d.ts.map +1 -1
  397. package/lib/types/toast/stories/index.d.ts.map +1 -1
  398. package/lib/types/tooltip/stories/index.d.ts.map +1 -1
  399. package/lib/types/tree-view/stories/index.d.ts.map +1 -1
  400. package/lib/types/typography/stories/index.d.ts.map +1 -1
  401. package/lib/types/wizard/stories/index.d.ts.map +1 -1
  402. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/ai/response/Response.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,4CAA8D;AAE9D,4DAAoC;AACpC,iCAA8C;AAC9C,2CAAwC;AAExC,oEAA+E;AAC/E,kDAA8C;AAS9C;;;;;GAKG;AACH,MAAM,QAAQ,GAAG,IAAA,YAAI,EACnB,CAAC,EAQmC,EAAE,EAAE;QARvC,EACC,SAAS,EACT,QAAQ,EACR,WAAW,GAAG,KAAK,EACnB,GAAG,EACH,KAAK,EACL,cAAc,OAEoB,EAD/B,SAAS,cAPb,0EAQA,CADa;IAEZ,sFAAsF;IACtF,2DAA2D;IAC3D,MAAM,WAAW,GAAG,IAAA,cAAM,EAAC,QAAQ,CAAC,CAAC;IACrC,WAAW,CAAC,OAAO,GAAG,QAAQ,CAAC;IAE/B,MAAM,UAAU,GACd,IAAA,eAAO,EACL,GAAG,EAAE,CAAC,CAAC;QACL,EAAE,EAAE,CAAC,EAAiC,EAAE,EAAE;gBAArC,EAAE,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GAAG,EACR,GAAG,EAAE,GAAG,IACJ,KAAK,EACT,CACH,CAAA;SAAA;KACF,CAAC,EACF,EAAE,CACH,CAAC;IAEJ,OAAO,CACL,8CACE,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,IAAA,oBAAU,EACnB,wEAAwE,EACxE,SAAS,CACV,IACG,SAAS,EACT,cAAc,cAElB,uBAAC,uBAAU,IACT,WAAW,EAAE,WAAW,EACxB,uBAAuB,EAAE,IAAI,EAC7B,UAAU,EAAE,UAAU,YAErB,QAAQ,GACE,IACT,CACP,CAAC;AACJ,CAAC,EACD,CAAC,SAAS,EAAE,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,QAAQ,KAAK,SAAS,CAAC,QAAQ,CACpE,CAAC;AAIO,4BAAQ;AAFjB,QAAQ,CAAC,WAAW,GAAG,UAAU,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 { Code, TextLink, Typography } from '@neo4j-ndl/react';\nimport { type CommonProps } from '@neo4j-ndl/react/_common/types';\nimport classNames from 'classnames';\nimport { memo, useMemo, useRef } from 'react';\nimport { Streamdown } from 'streamdown';\n\nimport { type LanguageProp, Languages } from '../../code-block/code-languages';\nimport { CodePreview } from '../code-preview';\n\ntype ResponseProps = {\n /** The response from the AI */\n children: string;\n /** Whether the response is animating */\n isAnimating?: React.ComponentProps<typeof Streamdown>['isAnimating'];\n};\n\n/**\n * The component is used to display the response from an LLM.\n * It handles markdown rendering and streaming.\n *\n * @alpha - Changes to this component may be breaking.\n */\nconst Response = memo(\n ({\n className,\n children,\n isAnimating = false,\n ref,\n style,\n htmlAttributes,\n ...restProps\n }: CommonProps<'div', ResponseProps>) => {\n // Use a ref to store the current markdown content so we can check for unclosed fences\n // without recreating the components object on every render\n const childrenRef = useRef(children);\n childrenRef.current = children;\n\n const components: React.ComponentProps<typeof Streamdown>['components'] =\n useMemo(\n () => ({\n ol: ({ children, className, ...props }) => (\n <ol className={className} {...props}>\n {children}\n </ol>\n ),\n ul: ({ children, className, ...props }) => (\n <ul className={classNames(className)} {...props}>\n {children}\n </ul>\n ),\n li: ({ children, className, ...props }) => (\n <li className={className} {...props}>\n {children}\n </li>\n ),\n hr: ({ className, ...props }) => (\n <hr className={classNames(className)} {...props} />\n ),\n strong: ({ children, className, style, ...props }) => (\n <Typography\n as=\"strong\"\n variant=\"body-medium\"\n className={className}\n style={{ ...style, fontWeight: 'bold' }}\n {...props}\n >\n {children}\n </Typography>\n ),\n em: ({ children, className, style, ...props }) => (\n <Typography\n as=\"em\"\n variant=\"body-medium\"\n className={className}\n style={{ ...style, fontStyle: 'italic' }}\n {...props}\n >\n {children}\n </Typography>\n ),\n a: ({ children, className, href, ...props }) => (\n <TextLink\n type=\"internal-underline\"\n className={className}\n href={href}\n htmlAttributes={props}\n >\n {children}\n </TextLink>\n ),\n h1: ({ children, className, ...props }) => (\n <Typography\n as=\"h1\"\n variant=\"display\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n h2: ({ children, className, ...props }) => (\n <Typography\n as=\"h2\"\n variant=\"title-1\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n h3: ({ children, className, ...props }) => (\n <Typography\n as=\"h3\"\n variant=\"title-2\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n h4: ({ children, className, ...props }) => (\n <Typography\n as=\"h4\"\n variant=\"title-3\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n h5: ({ children, className, ...props }) => (\n <Typography\n as=\"h5\"\n variant=\"title-4\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n h6: ({ children, className, ...props }) => (\n <Typography\n as=\"h6\"\n variant=\"subheading-large\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n table: ({ children, className, ...props }) => (\n <div className=\"my-4 overflow-x-auto\">\n <table\n className={classNames(\n 'w-full border-collapse border border-border',\n className,\n )}\n {...props}\n >\n {children}\n </table>\n </div>\n ),\n thead: ({ children, className, ...props }) => (\n <thead className={classNames('bg-muted/50', className)} {...props}>\n {children}\n </thead>\n ),\n tbody: ({ children, className, ...props }) => (\n <tbody\n className={classNames('divide-y divide-border', className)}\n {...props}\n >\n {children}\n </tbody>\n ),\n tr: ({ children, className, ...props }) => (\n <tr\n className={classNames('border-border border-b', className)}\n {...props}\n >\n {children}\n </tr>\n ),\n th: ({ children, className, ...props }) => (\n <th\n className={classNames(\n 'px-4 py-2 text-left font-semibold text-sm',\n className,\n )}\n {...props}\n >\n {children}\n </th>\n ),\n td: ({ children, className, ...props }) => (\n <td\n className={classNames('px-4 py-2 text-sm', className)}\n {...props}\n >\n {children}\n </td>\n ),\n blockquote: ({ children, className, ...props }) => (\n <blockquote className={classNames(className)} {...props}>\n {children}\n </blockquote>\n ),\n code: ({\n node,\n className,\n key,\n children: codeChildren,\n ...props\n }) => {\n const isInline =\n node?.position?.start.line === node?.position?.end.line;\n let language: LanguageProp | 'text' = 'javascript';\n if (typeof node?.properties?.className === 'string') {\n const rawLanguage = node.properties.className.replace(\n 'language-',\n '',\n );\n language = (Languages as readonly string[]).includes(rawLanguage)\n ? (rawLanguage as LanguageProp)\n : 'text';\n }\n if (isInline) {\n return (\n <Code\n isRunnable={false}\n className={className}\n htmlAttributes={props}\n >\n {codeChildren}\n </Code>\n );\n }\n if (typeof codeChildren === 'string') {\n // Check if code fences are balanced in the markdown\n // If there are an odd number of fences, it means there's an unclosed code block\n const fenceMatches = childrenRef.current.match(/```/g);\n const fenceCount = fenceMatches ? fenceMatches.length : 0;\n const hasUnclosedFence = fenceCount % 2 !== 0;\n\n // Show loading state when there's an unclosed fence (code block is streaming)\n const isCodeBlockLoading = hasUnclosedFence;\n return (\n <CodePreview\n key={key}\n code={codeChildren}\n isLoading={isCodeBlockLoading}\n language={language}\n className={className}\n htmlAttributes={{\n ...props,\n }}\n />\n );\n } else {\n return <code className={className}>{codeChildren}</code>;\n }\n },\n pre: ({ className, children }) => {\n return <pre className={classNames(className)}>{children}</pre>;\n },\n p: ({ children, className, ...props }) => (\n <Typography\n as=\"p\"\n variant=\"body-medium\"\n className={classNames(className)}\n {...props}\n >\n {children}\n </Typography>\n ),\n img: ({ className, src, alt, ...props }) => (\n <img\n className={classNames(className)}\n src={src}\n alt={alt}\n {...props}\n />\n ),\n }),\n [],\n );\n\n return (\n <div\n ref={ref}\n style={style}\n className={classNames(\n 'ndl-ai-response size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0',\n className,\n )}\n {...restProps}\n {...htmlAttributes}\n >\n <Streamdown\n isAnimating={isAnimating}\n parseIncompleteMarkdown={true}\n components={components}\n >\n {children}\n </Streamdown>\n </div>\n );\n },\n (prevProps, nextProps) => prevProps.children === nextProps.children,\n);\n\nResponse.displayName = 'Response';\n\nexport { Response };\n"]}
1
+ {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/ai/response/Response.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,4CAA8D;AAC9D,4DAAoC;AACpC,iCAA8C;AAC9C,2CAAwC;AAGxC,oEAA+E;AAC/E,kDAA8C;AAS9C;;;;;GAKG;AACH,MAAM,QAAQ,GAAG,IAAA,YAAI,EACnB,CAAC,EAQmC,EAAE,EAAE;QARvC,EACC,SA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AAC,kBAAU,kBACT,EAAE,EAAC,GAAG,EACN,OAAO,EAAC,aAAa,EACrB,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,CAAC,IAC5B,KAAK,cAER,QAAQ,IACE,CACd,CAAA;SAAA;QACD,GAAG,EAAE,CAAC,EAAiC,EAAE,EAAE;gBAArC,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,OAAY,EAAP,KAAK,cAA/B,2BAAiC,CAAF;YAAO,OAAA,CAC1C,8CACE,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,CAAC,EAChC,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,IACJ,KAAK,EACT,CACH,CAAA;SAAA;KACF,CAAC,EACF,EAAE,CACH,CAAC;IAEJ,OAAO,CACL,8CACE,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,IAAA,oBAAU,EACnB,wEAAwE,EACxE,SAAS,CACV,IACG,SAAS,EACT,cAAc,cAElB,uBAAC,uBAAU,IACT,WAAW,EAAE,WAAW,EACxB,uBAAuB,EAAE,IAAI,EAC7B,UAAU,EAAE,UAAU,YAErB,QAAQ,GACE,IACT,CACP,CAAC;AACJ,CAAC,EACD,CAAC,SAAS,EAAE,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,QAAQ,KAAK,SAAS,CAAC,QAAQ,CACpE,CAAC;AAIO,4BAAQ;AAFjB,QAAQ,CAAC,WAAW,GAAG,UAAU,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 { Code, TextLink, Typography } from '@neo4j-ndl/react';\nimport classNames from 'classnames';\nimport { memo, useMemo, useRef } from 'react';\nimport { Streamdown } from 'streamdown';\n\nimport { type CommonProps } from '../../_common/types';\nimport { type LanguageProp, Languages } from '../../code-block/code-languages';\nimport { CodePreview } from '../code-preview';\n\ntype ResponseProps = {\n /** The response from the AI */\n children: string;\n /** Whether the response is animating */\n isAnimating?: React.ComponentProps<typeof Streamdown>['isAnimating'];\n};\n\n/**\n * The component is used to display the response from an LLM.\n * It handles markdown rendering and streaming.\n *\n * @alpha - Changes to this component may be breaking.\n */\nconst Response = memo(\n ({\n className,\n children,\n isAnimating = false,\n ref,\n style,\n htmlAttributes,\n ...restProps\n }: CommonProps<'div', ResponseProps>) => {\n // Use a ref to store the current markdown content so we can check for unclosed fences\n // without recreating the components object on every render\n const childrenRef = useRef(children);\n childrenRef.current = children;\n\n const components: React.ComponentProps<typeof Streamdown>['components'] =\n useMemo(\n () => ({\n ol: ({ children, className, ...props }) => (\n <ol className={className} {...props}>\n {children}\n </ol>\n ),\n ul: ({ children, className, ...props }) => (\n <ul className={classNames(className)} {...props}>\n {children}\n </ul>\n ),\n li: ({ children, className, ...props }) => (\n <li className={className} {...props}>\n {children}\n </li>\n ),\n hr: ({ className, ...props }) => (\n <hr className={classNames(className)} {...props} />\n ),\n strong: ({ children, className, style, ...props }) => (\n <Typography\n as=\"strong\"\n variant=\"body-medium\"\n className={className}\n style={{ ...style, fontWeight: 'bold' }}\n {...props}\n >\n {children}\n </Typography>\n ),\n em: ({ children, className, style, ...props }) => (\n <Typography\n as=\"em\"\n variant=\"body-medium\"\n className={className}\n style={{ ...style, fontStyle: 'italic' }}\n {...props}\n >\n {children}\n </Typography>\n ),\n a: ({ children, className, href, ...props }) => (\n <TextLink\n type=\"internal-underline\"\n className={className}\n href={href}\n htmlAttributes={props}\n >\n {children}\n </TextLink>\n ),\n h1: ({ children, className, ...props }) => (\n <Typography\n as=\"h1\"\n variant=\"display\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n h2: ({ children, className, ...props }) => (\n <Typography\n as=\"h2\"\n variant=\"title-1\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n h3: ({ children, className, ...props }) => (\n <Typography\n as=\"h3\"\n variant=\"title-2\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n h4: ({ children, className, ...props }) => (\n <Typography\n as=\"h4\"\n variant=\"title-3\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n h5: ({ children, className, ...props }) => (\n <Typography\n as=\"h5\"\n variant=\"title-4\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n h6: ({ children, className, ...props }) => (\n <Typography\n as=\"h6\"\n variant=\"subheading-large\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n table: ({ children, className, ...props }) => (\n <div className=\"my-4 overflow-x-auto\">\n <table\n className={classNames(\n 'w-full border-collapse border border-border',\n className,\n )}\n {...props}\n >\n {children}\n </table>\n </div>\n ),\n thead: ({ children, className, ...props }) => (\n <thead className={classNames('bg-muted/50', className)} {...props}>\n {children}\n </thead>\n ),\n tbody: ({ children, className, ...props }) => (\n <tbody\n className={classNames('divide-y divide-border', className)}\n {...props}\n >\n {children}\n </tbody>\n ),\n tr: ({ children, className, ...props }) => (\n <tr\n className={classNames('border-border border-b', className)}\n {...props}\n >\n {children}\n </tr>\n ),\n th: ({ children, className, ...props }) => (\n <th\n className={classNames(\n 'px-4 py-2 text-left font-semibold text-sm',\n className,\n )}\n {...props}\n >\n {children}\n </th>\n ),\n td: ({ children, className, ...props }) => (\n <td\n className={classNames('px-4 py-2 text-sm', className)}\n {...props}\n >\n {children}\n </td>\n ),\n blockquote: ({ children, className, ...props }) => (\n <blockquote className={classNames(className)} {...props}>\n {children}\n </blockquote>\n ),\n code: ({\n node,\n className,\n key,\n children: codeChildren,\n ...props\n }) => {\n const isInline =\n node?.position?.start.line === node?.position?.end.line;\n let language: LanguageProp | 'text' = 'javascript';\n if (typeof node?.properties?.className === 'string') {\n const rawLanguage = node.properties.className.replace(\n 'language-',\n '',\n );\n language = (Languages as readonly string[]).includes(rawLanguage)\n ? (rawLanguage as LanguageProp)\n : 'text';\n }\n if (isInline) {\n return (\n <Code\n isRunnable={false}\n className={className}\n htmlAttributes={props}\n >\n {codeChildren}\n </Code>\n );\n }\n if (typeof codeChildren === 'string') {\n // Check if code fences are balanced in the markdown\n // If there are an odd number of fences, it means there's an unclosed code block\n const fenceMatches = childrenRef.current.match(/```/g);\n const fenceCount = fenceMatches ? fenceMatches.length : 0;\n const hasUnclosedFence = fenceCount % 2 !== 0;\n\n // Show loading state when there's an unclosed fence (code block is streaming)\n const isCodeBlockLoading = hasUnclosedFence;\n return (\n <CodePreview\n key={key}\n code={codeChildren}\n isLoading={isCodeBlockLoading}\n language={language}\n className={className}\n htmlAttributes={{\n ...props,\n }}\n />\n );\n } else {\n return <code className={className}>{codeChildren}</code>;\n }\n },\n pre: ({ className, children }) => {\n return <pre className={classNames(className)}>{children}</pre>;\n },\n p: ({ children, className, ...props }) => (\n <Typography\n as=\"p\"\n variant=\"body-medium\"\n className={classNames(className)}\n {...props}\n >\n {children}\n </Typography>\n ),\n img: ({ className, src, alt, ...props }) => (\n <img\n className={classNames(className)}\n src={src}\n alt={alt}\n {...props}\n />\n ),\n }),\n [],\n );\n\n return (\n <div\n ref={ref}\n style={style}\n className={classNames(\n 'ndl-ai-response size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0',\n className,\n )}\n {...restProps}\n {...htmlAttributes}\n >\n <Streamdown\n isAnimating={isAnimating}\n parseIncompleteMarkdown={true}\n components={components}\n >\n {children}\n </Streamdown>\n </div>\n );\n },\n (prevProps, nextProps) => prevProps.children === nextProps.children,\n);\n\nResponse.displayName = 'Response';\n\nexport { Response };\n"]}
@@ -38,7 +38,7 @@ var response_lists_story_1 = require("./response-lists.story");
38
38
  Object.defineProperty(exports, "ResponseLists", { enumerable: true, get: function () { return __importDefault(response_lists_story_1).default; } });
39
39
  var response_full_example_story_1 = require("./response-full-example.story");
40
40
  Object.defineProperty(exports, "ResponseFullExample", { enumerable: true, get: function () { return __importDefault(response_full_example_story_1).default; } });
41
- const export_stories_utils_1 = require("@neo4j-ndl/react/_common/export-stories-utils");
41
+ const export_stories_utils_1 = require("../../../_common/export-stories-utils");
42
42
  const response_all_components_story_raw_1 = __importDefault(require("./response-all-components.story?raw"));
43
43
  const response_code_examples_story_raw_1 = __importDefault(require("./response-code-examples.story?raw"));
44
44
  const response_default_story_raw_1 = __importDefault(require("./response-default.story?raw"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/response/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,mEAAsE;AAA7D,0IAAA,OAAO,OAAmB;AACnC,uEAA0E;AAAjE,8IAAA,OAAO,OAAqB;AACrC,iFAAmF;AAA1E,uJAAA,OAAO,OAAyB;AACzC,+EAAiF;AAAxE,qJAAA,OAAO,OAAwB;AACxC,qEAAwE;AAA/D,4IAAA,OAAO,OAAoB;AACpC,+DAAkE;AAAzD,sIAAA,OAAO,OAAiB;AACjC,6EAA+E;AAAtE,mJAAA,OAAO,OAAuB;AAEvC,wFAAoF;AAEpF,4GAAiF;AACjF,0GAA+E;AAC/E,8FAAoE;AACpE,wGAA6E;AAC7E,gGAAsE;AACtE,0FAAgE;AAChE,kGAAwE;AAE3D,QAAA,qBAAqB,GAAG,IAAA,0CAAmB,EACtD,oCAAwB,CACzB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,0CAAmB,EACxD,sCAA0B,CAC3B,CAAC;AACW,QAAA,2BAA2B,GAAG,IAAA,0CAAmB,EAC5D,2CAA8B,CAC/B,CAAC;AACW,QAAA,0BAA0B,GAAG,IAAA,0CAAmB,EAC3D,0CAA6B,CAC9B,CAAC;AACW,QAAA,sBAAsB,GAAG,IAAA,0CAAmB,EACvD,qCAAyB,CAC1B,CAAC;AACW,QAAA,mBAAmB,GAAG,IAAA,0CAAmB,EAAC,kCAAsB,CAAC,CAAC;AAClE,QAAA,yBAAyB,GAAG,IAAA,0CAAmB,EAC1D,yCAA4B,CAC7B,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 ResponseDefault } from './response-default.story';\nexport { default as ResponseStreaming } from './response-streaming.story';\nexport { default as ResponseAllComponents } from './response-all-components.story';\nexport { default as ResponseCodeExamples } from './response-code-examples.story';\nexport { default as ResponseHeadings } from './response-headings.story';\nexport { default as ResponseLists } from './response-lists.story';\nexport { default as ResponseFullExample } from './response-full-example.story';\n\nimport { removeLicenseHeader } from '@neo4j-ndl/react/_common/export-stories-utils';\n\nimport ResponseAllComponentsSourceRaw from './response-all-components.story?raw';\nimport ResponseCodeExamplesSourceRaw from './response-code-examples.story?raw';\nimport ResponseDefaultSourceRaw from './response-default.story?raw';\nimport ResponseFullExampleSourceRaw from './response-full-example.story?raw';\nimport ResponseHeadingsSourceRaw from './response-headings.story?raw';\nimport ResponseListsSourceRaw from './response-lists.story?raw';\nimport ResponseStreamingSourceRaw from './response-streaming.story?raw';\n\nexport const ResponseDefaultSource = removeLicenseHeader(\n ResponseDefaultSourceRaw,\n);\nexport const ResponseStreamingSource = removeLicenseHeader(\n ResponseStreamingSourceRaw,\n);\nexport const ResponseAllComponentsSource = removeLicenseHeader(\n ResponseAllComponentsSourceRaw,\n);\nexport const ResponseCodeExamplesSource = removeLicenseHeader(\n ResponseCodeExamplesSourceRaw,\n);\nexport const ResponseHeadingsSource = removeLicenseHeader(\n ResponseHeadingsSourceRaw,\n);\nexport const ResponseListsSource = removeLicenseHeader(ResponseListsSourceRaw);\nexport const ResponseFullExampleSource = removeLicenseHeader(\n ResponseFullExampleSourceRaw,\n);\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/response/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,mEAAsE;AAA7D,0IAAA,OAAO,OAAmB;AACnC,uEAA0E;AAAjE,8IAAA,OAAO,OAAqB;AACrC,iFAAmF;AAA1E,uJAAA,OAAO,OAAyB;AACzC,+EAAiF;AAAxE,qJAAA,OAAO,OAAwB;AACxC,qEAAwE;AAA/D,4IAAA,OAAO,OAAoB;AACpC,+DAAkE;AAAzD,sIAAA,OAAO,OAAiB;AACjC,6EAA+E;AAAtE,mJAAA,OAAO,OAAuB;AAEvC,gFAA4E;AAC5E,4GAAiF;AACjF,0GAA+E;AAC/E,8FAAoE;AACpE,wGAA6E;AAC7E,gGAAsE;AACtE,0FAAgE;AAChE,kGAAwE;AAE3D,QAAA,qBAAqB,GAAG,IAAA,0CAAmB,EACtD,oCAAwB,CACzB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,0CAAmB,EACxD,sCAA0B,CAC3B,CAAC;AACW,QAAA,2BAA2B,GAAG,IAAA,0CAAmB,EAC5D,2CAA8B,CAC/B,CAAC;AACW,QAAA,0BAA0B,GAAG,IAAA,0CAAmB,EAC3D,0CAA6B,CAC9B,CAAC;AACW,QAAA,sBAAsB,GAAG,IAAA,0CAAmB,EACvD,qCAAyB,CAC1B,CAAC;AACW,QAAA,mBAAmB,GAAG,IAAA,0CAAmB,EAAC,kCAAsB,CAAC,CAAC;AAClE,QAAA,yBAAyB,GAAG,IAAA,0CAAmB,EAC1D,yCAA4B,CAC7B,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 ResponseDefault } from './response-default.story';\nexport { default as ResponseStreaming } from './response-streaming.story';\nexport { default as ResponseAllComponents } from './response-all-components.story';\nexport { default as ResponseCodeExamples } from './response-code-examples.story';\nexport { default as ResponseHeadings } from './response-headings.story';\nexport { default as ResponseLists } from './response-lists.story';\nexport { default as ResponseFullExample } from './response-full-example.story';\n\nimport { removeLicenseHeader } from '../../../_common/export-stories-utils';\nimport ResponseAllComponentsSourceRaw from './response-all-components.story?raw';\nimport ResponseCodeExamplesSourceRaw from './response-code-examples.story?raw';\nimport ResponseDefaultSourceRaw from './response-default.story?raw';\nimport ResponseFullExampleSourceRaw from './response-full-example.story?raw';\nimport ResponseHeadingsSourceRaw from './response-headings.story?raw';\nimport ResponseListsSourceRaw from './response-lists.story?raw';\nimport ResponseStreamingSourceRaw from './response-streaming.story?raw';\n\nexport const ResponseDefaultSource = removeLicenseHeader(\n ResponseDefaultSourceRaw,\n);\nexport const ResponseStreamingSource = removeLicenseHeader(\n ResponseStreamingSourceRaw,\n);\nexport const ResponseAllComponentsSource = removeLicenseHeader(\n ResponseAllComponentsSourceRaw,\n);\nexport const ResponseCodeExamplesSource = removeLicenseHeader(\n ResponseCodeExamplesSourceRaw,\n);\nexport const ResponseHeadingsSource = removeLicenseHeader(\n ResponseHeadingsSourceRaw,\n);\nexport const ResponseListsSource = removeLicenseHeader(ResponseListsSourceRaw);\nexport const ResponseFullExampleSource = removeLicenseHeader(\n ResponseFullExampleSourceRaw,\n);\n"]}
@@ -1,3 +1,21 @@
1
+ "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.Suggestion = void 0;
18
+ const jsx_runtime_1 = require("react/jsx-runtime");
1
19
  /**
2
20
  *
3
21
  * Copyright (c) "Neo4j"
@@ -18,25 +36,6 @@
18
36
  * You should have received a copy of the GNU General Public License
19
37
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
38
  */
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
39
  const classnames_1 = __importDefault(require("classnames"));
41
40
  /**
42
41
  * The component is used to display a suggestion in a chat, or in a prompt.
@@ -1 +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"]}
1
+ {"version":3,"file":"Suggestion.js","sourceRoot":"","sources":["../../../../src/ai/suggestion/Suggestion.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,4DAAoC;AAiBpC;;;;;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 classNames from 'classnames';\n\nimport { type CommonProps } from '../../_common/types';\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"]}
@@ -32,7 +32,7 @@ var suggestion_icon_story_1 = require("./suggestion-icon.story");
32
32
  Object.defineProperty(exports, "SuggestionIcon", { enumerable: true, get: function () { return __importDefault(suggestion_icon_story_1).default; } });
33
33
  var suggestion_primary_story_1 = require("./suggestion-primary.story");
34
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");
35
+ const export_stories_utils_1 = require("../../../_common/export-stories-utils");
36
36
  const suggestion_default_story_raw_1 = __importDefault(require("./suggestion-default.story?raw"));
37
37
  const suggestion_icon_story_raw_1 = __importDefault(require("./suggestion-icon.story?raw"));
38
38
  const suggestion_primary_story_raw_1 = __importDefault(require("./suggestion-primary.story?raw"));
@@ -1 +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"]}
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,gFAA4E;AAC5E,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 '../../../_common/export-stories-utils';\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"]}
@@ -1,3 +1,21 @@
1
+ "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.Thinking = void 0;
18
+ const jsx_runtime_1 = require("react/jsx-runtime");
1
19
  /**
2
20
  *
3
21
  * Copyright (c) "Neo4j"
@@ -18,25 +36,6 @@
18
36
  * You should have received a copy of the GNU General Public License
19
37
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
38
  */
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.Thinking = void 0;
39
- const jsx_runtime_1 = require("react/jsx-runtime");
40
39
  const classnames_1 = __importDefault(require("classnames"));
41
40
  const presence_1 = require("../presence");
42
41
  const thinking_duration_formatter_1 = require("./thinking-duration-formatter");
@@ -1 +1 @@
1
- {"version":3,"file":"Thinking.js","sourceRoot":"","sources":["../../../../src/ai/thinking/Thinking.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAsBA,4DAAoC;AAEpC,0CAAuC;AACvC,+EAAuE;AAYvE;;;;;;GAMG;AACH,MAAM,QAAQ,GAAG,CAAC,EAQkB,EAAE,EAAE;QARtB,EAChB,SAAS,EACT,UAAU,GAAG,IAAI,EACjB,KAAK,EACL,cAAc,EACd,GAAG,EACH,UAAU,GAAG,IAAI,OAEiB,EAD/B,SAAS,cAPI,2EAQjB,CADa;IAEZ,MAAM,OAAO,GAAG,IAAA,oBAAU,EACxB,gDAAgD,EAChD,SAAS,CACV,CAAC;IAEF,MAAM,EAAE,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,GAAG,IAAA,oDAAsB,EAAC,UAAU,CAAC,CAAC;IAE7E,OAAO,CACL,8CACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,KAAK,IACR,SAAS,EACT,cAAc,cAEjB,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,CACrB,6DACE,uBAAC,mBAAQ,IAAC,UAAU,EAAE,UAAU,EAAE,SAAS,EAAC,iBAAiB,GAAG,EAChE,iCAAM,SAAS,EAAC,gDAAgD,yBAEzD,IACN,CACJ,CAAC,CAAC,CAAC,CACF,kCAAM,SAAS,EAAC,6CAA6C,wBACnD,GAAG,EACX,kCAAM,SAAS,EAAC,eAAe,qBACxB,gBAAgB,OAAG,IAAI,IACvB,IACF,CACR,IACG,CACP,CAAC;AACJ,CAAC,CAAC;AAEO,4BAAQ","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\nimport { Presence } from '../presence';\nimport { formatThinkingDuration } from './thinking-duration-formatter';\n\ntype ThinkingProps = {\n /** Whether the AI is thinking.\n * If true, will render a thinking presence icon and the text \"Thinking\".\n * If false, will render the duration of the thinking.\n */\n isThinking?: boolean;\n /** The duration of the thinking in milliseconds */\n thinkingMs?: number;\n};\n\n/**\n * The component is used to display the thinking state of an LLM.\n * If the `isThinking` prop is true, it will render a thinking presence icon and the text \"Thinking\".\n * If the `isThinking` prop is false, it will render the duration of the thinking.\n *\n * @alpha - Changes to this component may be breaking.\n */\nconst Thinking = ({\n className,\n isThinking = true,\n style,\n htmlAttributes,\n ref,\n thinkingMs = 1000,\n ...restProps\n}: CommonProps<'div', ThinkingProps>) => {\n const classes = classNames(\n 'n-flex n-flex-col n-items-start n-gap-token-12',\n className,\n );\n\n const { value: thinkingDuration, unit } = formatThinkingDuration(thinkingMs);\n\n return (\n <div\n ref={ref}\n className={classes}\n style={style}\n {...restProps}\n {...htmlAttributes}\n >\n {isThinking === true ? (\n <>\n <Presence isThinking={isThinking} className=\"n-size-token-32\" />\n <span className=\"n-subheading-small n-text-neutral-text-default\">\n Thinking\n </span>\n </>\n ) : (\n <span className=\"n-subheading-small n-text-neutral-text-weak\">\n Thought{' '}\n <span className=\"n-font-normal\">\n for {thinkingDuration} {unit}\n </span>\n </span>\n )}\n </div>\n );\n};\n\nexport { Thinking };\n"]}
1
+ {"version":3,"file":"Thinking.js","sourceRoot":"","sources":["../../../../src/ai/thinking/Thinking.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,4DAAoC;AAGpC,0CAAuC;AACvC,+EAAuE;AAYvE;;;;;;GAMG;AACH,MAAM,QAAQ,GAAG,CAAC,EAQkB,EAAE,EAAE;QARtB,EAChB,SAAS,EACT,UAAU,GAAG,IAAI,EACjB,KAAK,EACL,cAAc,EACd,GAAG,EACH,UAAU,GAAG,IAAI,OAEiB,EAD/B,SAAS,cAPI,2EAQjB,CADa;IAEZ,MAAM,OAAO,GAAG,IAAA,oBAAU,EACxB,gDAAgD,EAChD,SAAS,CACV,CAAC;IAEF,MAAM,EAAE,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,GAAG,IAAA,oDAAsB,EAAC,UAAU,CAAC,CAAC;IAE7E,OAAO,CACL,8CACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,KAAK,IACR,SAAS,EACT,cAAc,cAEjB,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,CACrB,6DACE,uBAAC,mBAAQ,IAAC,UAAU,EAAE,UAAU,EAAE,SAAS,EAAC,iBAAiB,GAAG,EAChE,iCAAM,SAAS,EAAC,gDAAgD,yBAEzD,IACN,CACJ,CAAC,CAAC,CAAC,CACF,kCAAM,SAAS,EAAC,6CAA6C,wBACnD,GAAG,EACX,kCAAM,SAAS,EAAC,eAAe,qBACxB,gBAAgB,OAAG,IAAI,IACvB,IACF,CACR,IACG,CACP,CAAC;AACJ,CAAC,CAAC;AAEO,4BAAQ","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 classNames from 'classnames';\n\nimport type { CommonProps } from '../../_common/types';\nimport { Presence } from '../presence';\nimport { formatThinkingDuration } from './thinking-duration-formatter';\n\ntype ThinkingProps = {\n /** Whether the AI is thinking.\n * If true, will render a thinking presence icon and the text \"Thinking\".\n * If false, will render the duration of the thinking.\n */\n isThinking?: boolean;\n /** The duration of the thinking in milliseconds */\n thinkingMs?: number;\n};\n\n/**\n * The component is used to display the thinking state of an LLM.\n * If the `isThinking` prop is true, it will render a thinking presence icon and the text \"Thinking\".\n * If the `isThinking` prop is false, it will render the duration of the thinking.\n *\n * @alpha - Changes to this component may be breaking.\n */\nconst Thinking = ({\n className,\n isThinking = true,\n style,\n htmlAttributes,\n ref,\n thinkingMs = 1000,\n ...restProps\n}: CommonProps<'div', ThinkingProps>) => {\n const classes = classNames(\n 'n-flex n-flex-col n-items-start n-gap-token-12',\n className,\n );\n\n const { value: thinkingDuration, unit } = formatThinkingDuration(thinkingMs);\n\n return (\n <div\n ref={ref}\n className={classes}\n style={style}\n {...restProps}\n {...htmlAttributes}\n >\n {isThinking === true ? (\n <>\n <Presence isThinking={isThinking} className=\"n-size-token-32\" />\n <span className=\"n-subheading-small n-text-neutral-text-default\">\n Thinking\n </span>\n </>\n ) : (\n <span className=\"n-subheading-small n-text-neutral-text-weak\">\n Thought{' '}\n <span className=\"n-font-normal\">\n for {thinkingDuration} {unit}\n </span>\n </span>\n )}\n </div>\n );\n};\n\nexport { Thinking };\n"]}
@@ -28,7 +28,7 @@ var ai_thinking_default_story_1 = require("./ai-thinking-default.story");
28
28
  Object.defineProperty(exports, "ThinkingDefault", { enumerable: true, get: function () { return __importDefault(ai_thinking_default_story_1).default; } });
29
29
  var ai_thinking_finished_story_1 = require("./ai-thinking-finished.story");
30
30
  Object.defineProperty(exports, "ThinkingFinished", { enumerable: true, get: function () { return __importDefault(ai_thinking_finished_story_1).default; } });
31
- const export_stories_utils_1 = require("@neo4j-ndl/react/_common/export-stories-utils");
31
+ const export_stories_utils_1 = require("../../../_common/export-stories-utils");
32
32
  const ai_thinking_default_story_raw_1 = __importDefault(require("./ai-thinking-default.story?raw"));
33
33
  const ai_thinking_finished_story_raw_1 = __importDefault(require("./ai-thinking-finished.story?raw"));
34
34
  exports.ThinkingDefaultSrc = (0, export_stories_utils_1.removeLicenseHeader)(ai_thinking_default_story_raw_1.default);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/thinking/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,yEAAyE;AAAhE,6IAAA,OAAO,OAAmB;AACnC,2EAA2E;AAAlE,+IAAA,OAAO,OAAoB;AACpC,wFAAoF;AAEpF,oGAAoE;AACpE,sGAAsE;AAEzD,QAAA,kBAAkB,GAAG,IAAA,0CAAmB,EAAC,uCAAqB,CAAC,CAAC;AAChE,QAAA,mBAAmB,GAAG,IAAA,0CAAmB,EAAC,wCAAsB,CAAC,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 ThinkingDefault } from './ai-thinking-default.story';\nexport { default as ThinkingFinished } from './ai-thinking-finished.story';\nimport { removeLicenseHeader } from '@neo4j-ndl/react/_common/export-stories-utils';\n\nimport ThinkingDefaultSrcRaw from './ai-thinking-default.story?raw';\nimport ThinkingFinishedSrcRaw from './ai-thinking-finished.story?raw';\n\nexport const ThinkingDefaultSrc = removeLicenseHeader(ThinkingDefaultSrcRaw);\nexport const ThinkingFinishedSrc = removeLicenseHeader(ThinkingFinishedSrcRaw);\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/thinking/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,yEAAyE;AAAhE,6IAAA,OAAO,OAAmB;AACnC,2EAA2E;AAAlE,+IAAA,OAAO,OAAoB;AAEpC,gFAA4E;AAC5E,oGAAoE;AACpE,sGAAsE;AAEzD,QAAA,kBAAkB,GAAG,IAAA,0CAAmB,EAAC,uCAAqB,CAAC,CAAC;AAChE,QAAA,mBAAmB,GAAG,IAAA,0CAAmB,EAAC,wCAAsB,CAAC,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 ThinkingDefault } from './ai-thinking-default.story';\nexport { default as ThinkingFinished } from './ai-thinking-finished.story';\n\nimport { removeLicenseHeader } from '../../../_common/export-stories-utils';\nimport ThinkingDefaultSrcRaw from './ai-thinking-default.story?raw';\nimport ThinkingFinishedSrcRaw from './ai-thinking-finished.story?raw';\n\nexport const ThinkingDefaultSrc = removeLicenseHeader(ThinkingDefaultSrcRaw);\nexport const ThinkingFinishedSrc = removeLicenseHeader(ThinkingFinishedSrcRaw);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ToolCall.js","sourceRoot":"","sources":["../../../../src/ai/tool-call/ToolCall.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,4CAAoD;AAEpD,kDAA0D;AAC1D,4DAAoC;AASpC;;;;;;GAMG;AACH,MAAM,QAAQ,GAAG,CAAC,EAQmB,EAAE,EAAE;QARvB,EAChB,QAAQ,EACR,MAAM,GAAG,KAAK,EACd,GAAG,EACH,SAAS,EACT,KAAK,EACL,cAAc,OAEqB,EADhC,SAAS,cAPI,qEAQjB,CADa;IAEZ,MAAM,OAAO,GAAG,IAAA,oBAAU,EACxB,oEAAoE,EACpE,SAAS,CACV,CAAC;IAEF,OAAO,CACL,wBAAC,kBAAU,kBACT,OAAO,EAAC,aAAa,EACrB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,cAAc,IAC1B,SAAS,eAEb,iCAAM,SAAS,EAAC,6FAA6F,YAC1G,MAAM,CAAC,CAAC,CAAC,CACR,6DACE,uBAAC,wBAAgB,IAAC,SAAS,EAAC,4CAA4C,GAAG,WAE1E,CACJ,CAAC,CAAC,CAAC,CACF,OAAO,CACR,GACI,EACP,uBAAC,YAAI,IAAC,UAAU,EAAE,KAAK,YAAG,QAAQ,GAAQ,KAC/B,CACd,CAAC;AACJ,CAAC,CAAC;AAEO,4BAAQ","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 { Code, Typography } from '@neo4j-ndl/react';\nimport { type CommonProps } from '@neo4j-ndl/react/_common/types';\nimport { CheckIconOutline } from '@neo4j-ndl/react/icons';\nimport classNames from 'classnames';\n\ntype ToolCallProps = {\n /** The content of the suggestion */\n children?: React.ReactNode;\n /** Whether the AI is done with using the tool*/\n isDone?: boolean;\n};\n\n/**\n * The component is used to display that an LLM is using a tool.\n * Per default, the component will display the text \"Using\".\n * If the `isDone` prop is true, the component will display the check icon and the text \"Ran\".\n *\n * @alpha - Changes to this component may be breaking.\n */\nconst ToolCall = ({\n children,\n isDone = false,\n ref,\n className,\n style,\n htmlAttributes,\n ...restProps\n}: CommonProps<'span', ToolCallProps>) => {\n const classes = classNames(\n 'ndl-ai-tool n-inline-flex n-items-center n-gap-token-12 n-flex-row',\n className,\n );\n\n return (\n <Typography\n variant=\"body-medium\"\n ref={ref}\n className={classes}\n style={style}\n htmlAttributes={htmlAttributes}\n {...restProps}\n >\n <span className=\"n-text-neutral-text-weak n-capitalize n-inline-flex n-items-center n-gap-token-6 n-flex-row\">\n {isDone ? (\n <>\n <CheckIconOutline className=\"n-size-token-16 n-text-neutral-text-weaker\" />\n Ran\n </>\n ) : (\n 'Using'\n )}\n </span>\n <Code isRunnable={false}>{children}</Code>\n </Typography>\n );\n};\n\nexport { ToolCall };\n"]}
1
+ {"version":3,"file":"ToolCall.js","sourceRoot":"","sources":["../../../../src/ai/tool-call/ToolCall.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,4CAAoD;AACpD,kDAA0D;AAC1D,4DAAoC;AAWpC;;;;;;GAMG;AACH,MAAM,QAAQ,GAAG,CAAC,EAQmB,EAAE,EAAE;QARvB,EAChB,QAAQ,EACR,MAAM,GAAG,KAAK,EACd,GAAG,EACH,SAAS,EACT,KAAK,EACL,cAAc,OAEqB,EADhC,SAAS,cAPI,qEAQjB,CADa;IAEZ,MAAM,OAAO,GAAG,IAAA,oBAAU,EACxB,oEAAoE,EACpE,SAAS,CACV,CAAC;IAEF,OAAO,CACL,wBAAC,kBAAU,kBACT,OAAO,EAAC,aAAa,EACrB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,cAAc,IAC1B,SAAS,eAEb,iCAAM,SAAS,EAAC,6FAA6F,YAC1G,MAAM,CAAC,CAAC,CAAC,CACR,6DACE,uBAAC,wBAAgB,IAAC,SAAS,EAAC,4CAA4C,GAAG,WAE1E,CACJ,CAAC,CAAC,CAAC,CACF,OAAO,CACR,GACI,EACP,uBAAC,YAAI,IAAC,UAAU,EAAE,KAAK,YAAG,QAAQ,GAAQ,KAC/B,CACd,CAAC;AACJ,CAAC,CAAC;AAEO,4BAAQ","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 { Code, Typography } from '@neo4j-ndl/react';\nimport { CheckIconOutline } from '@neo4j-ndl/react/icons';\nimport classNames from 'classnames';\n\nimport { type CommonProps } from '../../_common/types';\n\ntype ToolCallProps = {\n /** The content of the suggestion */\n children?: React.ReactNode;\n /** Whether the AI is done with using the tool*/\n isDone?: boolean;\n};\n\n/**\n * The component is used to display that an LLM is using a tool.\n * Per default, the component will display the text \"Using\".\n * If the `isDone` prop is true, the component will display the check icon and the text \"Ran\".\n *\n * @alpha - Changes to this component may be breaking.\n */\nconst ToolCall = ({\n children,\n isDone = false,\n ref,\n className,\n style,\n htmlAttributes,\n ...restProps\n}: CommonProps<'span', ToolCallProps>) => {\n const classes = classNames(\n 'ndl-ai-tool n-inline-flex n-items-center n-gap-token-12 n-flex-row',\n className,\n );\n\n return (\n <Typography\n variant=\"body-medium\"\n ref={ref}\n className={classes}\n style={style}\n htmlAttributes={htmlAttributes}\n {...restProps}\n >\n <span className=\"n-text-neutral-text-weak n-capitalize n-inline-flex n-items-center n-gap-token-6 n-flex-row\">\n {isDone ? (\n <>\n <CheckIconOutline className=\"n-size-token-16 n-text-neutral-text-weaker\" />\n Ran\n </>\n ) : (\n 'Using'\n )}\n </span>\n <Code isRunnable={false}>{children}</Code>\n </Typography>\n );\n};\n\nexport { ToolCall };\n"]}
@@ -28,7 +28,7 @@ var tool_call_default_story_1 = require("./tool-call-default.story");
28
28
  Object.defineProperty(exports, "ToolCallDefault", { enumerable: true, get: function () { return __importDefault(tool_call_default_story_1).default; } });
29
29
  var tool_call_done_story_1 = require("./tool-call-done.story");
30
30
  Object.defineProperty(exports, "ToolCallDone", { enumerable: true, get: function () { return __importDefault(tool_call_done_story_1).default; } });
31
- const export_stories_utils_1 = require("@neo4j-ndl/react/_common/export-stories-utils");
31
+ const export_stories_utils_1 = require("../../../_common/export-stories-utils");
32
32
  const tool_call_default_story_raw_1 = __importDefault(require("./tool-call-default.story?raw"));
33
33
  const tool_call_done_story_raw_1 = __importDefault(require("./tool-call-done.story?raw"));
34
34
  exports.ToolCallDefaultSrc = (0, export_stories_utils_1.removeLicenseHeader)(tool_call_default_story_raw_1.default);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/tool-call/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,qEAAuE;AAA9D,2IAAA,OAAO,OAAmB;AACnC,+DAAiE;AAAxD,qIAAA,OAAO,OAAgB;AAEhC,wFAAoF;AAEpF,gGAAkE;AAClE,0FAA4D;AAE/C,QAAA,kBAAkB,GAAG,IAAA,0CAAmB,EAAC,qCAAqB,CAAC,CAAC;AAChE,QAAA,eAAe,GAAG,IAAA,0CAAmB,EAAC,kCAAkB,CAAC,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 ToolCallDefault } from './tool-call-default.story';\nexport { default as ToolCallDone } from './tool-call-done.story';\n\nimport { removeLicenseHeader } from '@neo4j-ndl/react/_common/export-stories-utils';\n\nimport ToolCallDefaultSrcRaw from './tool-call-default.story?raw';\nimport ToolCallDoneSrcRaw from './tool-call-done.story?raw';\n\nexport const ToolCallDefaultSrc = removeLicenseHeader(ToolCallDefaultSrcRaw);\nexport const ToolCallDoneSrc = removeLicenseHeader(ToolCallDoneSrcRaw);\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/tool-call/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,qEAAuE;AAA9D,2IAAA,OAAO,OAAmB;AACnC,+DAAiE;AAAxD,qIAAA,OAAO,OAAgB;AAEhC,gFAA4E;AAC5E,gGAAkE;AAClE,0FAA4D;AAE/C,QAAA,kBAAkB,GAAG,IAAA,0CAAmB,EAAC,qCAAqB,CAAC,CAAC;AAChE,QAAA,eAAe,GAAG,IAAA,0CAAmB,EAAC,kCAAkB,CAAC,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 ToolCallDefault } from './tool-call-default.story';\nexport { default as ToolCallDone } from './tool-call-done.story';\n\nimport { removeLicenseHeader } from '../../../_common/export-stories-utils';\nimport ToolCallDefaultSrcRaw from './tool-call-default.story?raw';\nimport ToolCallDoneSrcRaw from './tool-call-done.story?raw';\n\nexport const ToolCallDefaultSrc = removeLicenseHeader(ToolCallDefaultSrcRaw);\nexport const ToolCallDoneSrc = removeLicenseHeader(ToolCallDoneSrcRaw);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"UserBubble.js","sourceRoot":"","sources":["../../../../src/ai/user-bubble/UserBubble.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,4CAAsD;AAEtD,4DAAoC;AAWpC;;;;;GAKG;AACH,MAAM,mBAAmB,GAAG,CAAC,EASS,EAAE,EAAE;QATb,EAC3B,WAAW,EACX,eAAe,EACf,QAAQ,EACR,SAAS,EACT,KAAK,EACL,cAAc,EACd,GAAG,OAEiC,EADjC,SAAS,cARe,6FAS5B,CADa;IAEZ,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,oBAAoB,EAAE,SAAS,CAAC,CAAC;IAE5D,OAAO,CACL,+CACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,KAAK,IACR,SAAS,EACT,cAAc,eAElB,uBAAC,cAAM,kBACL,IAAI,EAAC,OAAO,IACR,WAAW,IACf,IAAI,EAAC,OAAO,EACZ,KAAK,EAAC,QAAQ,EACd,SAAS,EAAE,IAAA,oBAAU,EACnB,2BAA2B,EAC3B,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,CACvB,IACD,EACF,uBAAC,kBAAU,IAAC,OAAO,EAAC,aAAa,EAAC,SAAS,EAAC,4BAA4B,YACrE,QAAQ,GACE,EACb,gCAAK,SAAS,EAAC,6BAA6B,YAAE,eAAe,GAAO,KAChE,CACP,CAAC;AACJ,CAAC,CAAC;AAE8B,yCAAU","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 { Avatar, Typography } from '@neo4j-ndl/react';\nimport type { CommonProps } from '@neo4j-ndl/react/_common/types';\nimport classNames from 'classnames';\n\ntype UserBubbleProps = {\n /** The content of the user bubble */\n children?: React.ReactNode;\n /** The props for the avatar */\n avatarProps?: React.ComponentProps<typeof Avatar>;\n /** The element to display after the content. Could be a CleanIconButton to edit the user bubble. */\n trailingElement?: React.ReactNode;\n};\n\n/**\n * The component is used to display the user's message in a chat.\n * It has an avatar to represent the user and a trailing element to display potential additional actions.\n *\n * @alpha - Changes to this component may be breaking.\n */\nconst UserBubbleComponent = ({\n avatarProps,\n trailingElement,\n children,\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: CommonProps<'div', UserBubbleProps>) => {\n const classes = classNames('ndl-ai-user-bubble', className);\n\n return (\n <div\n ref={ref}\n className={classes}\n style={style}\n {...restProps}\n {...htmlAttributes}\n >\n <Avatar\n type=\"image\"\n {...avatarProps}\n size=\"small\"\n shape=\"circle\"\n className={classNames(\n 'ndl-ai-user-bubble-avatar',\n avatarProps?.className,\n )}\n />\n <Typography variant=\"body-medium\" className=\"ndl-ai-user-bubble-content\">\n {children}\n </Typography>\n <div className=\"ndl-ai-user-bubble-trailing\">{trailingElement}</div>\n </div>\n );\n};\n\nexport { UserBubbleComponent as UserBubble };\n"]}
1
+ {"version":3,"file":"UserBubble.js","sourceRoot":"","sources":["../../../../src/ai/user-bubble/UserBubble.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,4CAAsD;AACtD,4DAAoC;AAapC;;;;;GAKG;AACH,MAAM,mBAAmB,GAAG,CAAC,EASS,EAAE,EAAE;QATb,EAC3B,WAAW,EACX,eAAe,EACf,QAAQ,EACR,SAAS,EACT,KAAK,EACL,cAAc,EACd,GAAG,OAEiC,EADjC,SAAS,cARe,6FAS5B,CADa;IAEZ,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,oBAAoB,EAAE,SAAS,CAAC,CAAC;IAE5D,OAAO,CACL,+CACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,KAAK,IACR,SAAS,EACT,cAAc,eAElB,uBAAC,cAAM,kBACL,IAAI,EAAC,OAAO,IACR,WAAW,IACf,IAAI,EAAC,OAAO,EACZ,KAAK,EAAC,QAAQ,EACd,SAAS,EAAE,IAAA,oBAAU,EACnB,2BAA2B,EAC3B,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,CACvB,IACD,EACF,uBAAC,kBAAU,IAAC,OAAO,EAAC,aAAa,EAAC,SAAS,EAAC,4BAA4B,YACrE,QAAQ,GACE,EACb,gCAAK,SAAS,EAAC,6BAA6B,YAAE,eAAe,GAAO,KAChE,CACP,CAAC;AACJ,CAAC,CAAC;AAE8B,yCAAU","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 { Avatar, Typography } from '@neo4j-ndl/react';\nimport classNames from 'classnames';\n\nimport type { CommonProps } from '../../_common/types';\n\ntype UserBubbleProps = {\n /** The content of the user bubble */\n children?: React.ReactNode;\n /** The props for the avatar */\n avatarProps?: React.ComponentProps<typeof Avatar>;\n /** The element to display after the content. Could be a CleanIconButton to edit the user bubble. */\n trailingElement?: React.ReactNode;\n};\n\n/**\n * The component is used to display the user's message in a chat.\n * It has an avatar to represent the user and a trailing element to display potential additional actions.\n *\n * @alpha - Changes to this component may be breaking.\n */\nconst UserBubbleComponent = ({\n avatarProps,\n trailingElement,\n children,\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: CommonProps<'div', UserBubbleProps>) => {\n const classes = classNames('ndl-ai-user-bubble', className);\n\n return (\n <div\n ref={ref}\n className={classes}\n style={style}\n {...restProps}\n {...htmlAttributes}\n >\n <Avatar\n type=\"image\"\n {...avatarProps}\n size=\"small\"\n shape=\"circle\"\n className={classNames(\n 'ndl-ai-user-bubble-avatar',\n avatarProps?.className,\n )}\n />\n <Typography variant=\"body-medium\" className=\"ndl-ai-user-bubble-content\">\n {children}\n </Typography>\n <div className=\"ndl-ai-user-bubble-trailing\">{trailingElement}</div>\n </div>\n );\n};\n\nexport { UserBubbleComponent as UserBubble };\n"]}
@@ -32,7 +32,7 @@ var user_bubble_long_story_1 = require("./user-bubble-long.story");
32
32
  Object.defineProperty(exports, "UserBubbleLong", { enumerable: true, get: function () { return __importDefault(user_bubble_long_story_1).default; } });
33
33
  var user_bubble_and_files_story_1 = require("./user-bubble-and-files.story");
34
34
  Object.defineProperty(exports, "UserBubbleAndFiles", { enumerable: true, get: function () { return __importDefault(user_bubble_and_files_story_1).default; } });
35
- const export_stories_utils_1 = require("@neo4j-ndl/react/_common/export-stories-utils");
35
+ const export_stories_utils_1 = require("../../../_common/export-stories-utils");
36
36
  const user_bubble_story_raw_1 = __importDefault(require("./user-bubble.story?raw"));
37
37
  const user_bubble_action_story_raw_1 = __importDefault(require("./user-bubble-action.story?raw"));
38
38
  const user_bubble_and_files_story_raw_1 = __importDefault(require("./user-bubble-and-files.story?raw"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/user-bubble/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,yDAAmE;AAA1D,uIAAA,OAAO,OAAqB;AACrC,uEAAyE;AAAhE,6IAAA,OAAO,OAAoB;AACpC,mEAAqE;AAA5D,yIAAA,OAAO,OAAkB;AAClC,6EAA8E;AAArE,kJAAA,OAAO,OAAsB;AACtC,wFAAoF;AAEpF,oFAA8D;AAC9D,kGAAoE;AACpE,wGAAyE;AACzE,8FAAgE;AACnD,QAAA,oBAAoB,GAAG,IAAA,0CAAmB,EACrD,+BAAuB,CACxB,CAAC;AACW,QAAA,mBAAmB,GAAG,IAAA,0CAAmB,EAAC,sCAAsB,CAAC,CAAC;AAClE,QAAA,iBAAiB,GAAG,IAAA,0CAAmB,EAAC,oCAAoB,CAAC,CAAC;AAC9D,QAAA,qBAAqB,GAAG,IAAA,0CAAmB,EACtD,yCAAwB,CACzB,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 UserBubbleDefault } from './user-bubble.story';\nexport { default as UserBubbleAction } from './user-bubble-action.story';\nexport { default as UserBubbleLong } from './user-bubble-long.story';\nexport { default as UserBubbleAndFiles } from './user-bubble-and-files.story';\nimport { removeLicenseHeader } from '@neo4j-ndl/react/_common/export-stories-utils';\n\nimport UserBubbleDefaultSrcRaw from './user-bubble.story?raw';\nimport UserBubbleActionSrcRaw from './user-bubble-action.story?raw';\nimport UserBubbleAndFilesSrcRaw from './user-bubble-and-files.story?raw';\nimport UserBubbleLongSrcRaw from './user-bubble-long.story?raw';\nexport const UserBubbleDefaultSrc = removeLicenseHeader(\n UserBubbleDefaultSrcRaw,\n);\nexport const UserBubbleActionSrc = removeLicenseHeader(UserBubbleActionSrcRaw);\nexport const UserBubbleLongSrc = removeLicenseHeader(UserBubbleLongSrcRaw);\nexport const UserBubbleAndFilesSrc = removeLicenseHeader(\n UserBubbleAndFilesSrcRaw,\n);\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/user-bubble/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,yDAAmE;AAA1D,uIAAA,OAAO,OAAqB;AACrC,uEAAyE;AAAhE,6IAAA,OAAO,OAAoB;AACpC,mEAAqE;AAA5D,yIAAA,OAAO,OAAkB;AAClC,6EAA8E;AAArE,kJAAA,OAAO,OAAsB;AAEtC,gFAA4E;AAC5E,oFAA8D;AAC9D,kGAAoE;AACpE,wGAAyE;AACzE,8FAAgE;AAEnD,QAAA,oBAAoB,GAAG,IAAA,0CAAmB,EACrD,+BAAuB,CACxB,CAAC;AACW,QAAA,mBAAmB,GAAG,IAAA,0CAAmB,EAAC,sCAAsB,CAAC,CAAC;AAClE,QAAA,iBAAiB,GAAG,IAAA,0CAAmB,EAAC,oCAAoB,CAAC,CAAC;AAC9D,QAAA,qBAAqB,GAAG,IAAA,0CAAmB,EACtD,yCAAwB,CACzB,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 UserBubbleDefault } from './user-bubble.story';\nexport { default as UserBubbleAction } from './user-bubble-action.story';\nexport { default as UserBubbleLong } from './user-bubble-long.story';\nexport { default as UserBubbleAndFiles } from './user-bubble-and-files.story';\n\nimport { removeLicenseHeader } from '../../../_common/export-stories-utils';\nimport UserBubbleDefaultSrcRaw from './user-bubble.story?raw';\nimport UserBubbleActionSrcRaw from './user-bubble-action.story?raw';\nimport UserBubbleAndFilesSrcRaw from './user-bubble-and-files.story?raw';\nimport UserBubbleLongSrcRaw from './user-bubble-long.story?raw';\n\nexport const UserBubbleDefaultSrc = removeLicenseHeader(\n UserBubbleDefaultSrcRaw,\n);\nexport const UserBubbleActionSrc = removeLicenseHeader(UserBubbleActionSrcRaw);\nexport const UserBubbleLongSrc = removeLicenseHeader(UserBubbleLongSrcRaw);\nexport const UserBubbleAndFilesSrc = removeLicenseHeader(\n UserBubbleAndFilesSrcRaw,\n);\n"]}
@@ -22,14 +22,14 @@ const jsx_runtime_1 = require("react/jsx-runtime");
22
22
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
23
  */
24
24
  require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
25
26
  const ai_1 = require("@neo4j-ndl/react/ai");
26
- const clean_icon_button_1 = require("@neo4j-ndl/react/clean-icon-button");
27
27
  const icons_1 = require("@neo4j-ndl/react/icons");
28
28
  const Component = () => {
29
29
  return ((0, jsx_runtime_1.jsx)(ai_1.UserBubble, { avatarProps: {
30
30
  name: 'KM',
31
31
  type: 'letters',
32
- }, trailingElement: (0, jsx_runtime_1.jsx)(clean_icon_button_1.CleanIconButton, { description: "Edit", size: "large", children: (0, jsx_runtime_1.jsx)(icons_1.PencilSquareIconOutline, {}) }), children: "Can you analyse my data and tell me about...?" }));
32
+ }, trailingElement: (0, jsx_runtime_1.jsx)(react_1.CleanIconButton, { description: "Edit", size: "large", children: (0, jsx_runtime_1.jsx)(icons_1.PencilSquareIconOutline, {}) }), children: "Can you analyse my data and tell me about...?" }));
33
33
  };
34
34
  exports.default = Component;
35
35
  //# sourceMappingURL=user-bubble-action.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-bubble-action.story.js","sourceRoot":"","sources":["../../../../../src/ai/user-bubble/stories/user-bubble-action.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAiD;AACjD,0EAAqE;AACrE,kDAAiE;AAEjE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,eAAU,IACT,WAAW,EAAE;YACX,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,SAAS;SAChB,EACD,eAAe,EACb,uBAAC,mCAAe,IAAC,WAAW,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,YAC9C,uBAAC,+BAAuB,KAAG,GACX,8DAIT,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 { UserBubble } from '@neo4j-ndl/react/ai';\nimport { CleanIconButton } from '@neo4j-ndl/react/clean-icon-button';\nimport { PencilSquareIconOutline } from '@neo4j-ndl/react/icons';\n\nconst Component = () => {\n return (\n <UserBubble\n avatarProps={{\n name: 'KM',\n type: 'letters',\n }}\n trailingElement={\n <CleanIconButton description=\"Edit\" size=\"large\">\n <PencilSquareIconOutline />\n </CleanIconButton>\n }\n >\n Can you analyse my data and tell me about...?\n </UserBubble>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"user-bubble-action.story.js","sourceRoot":"","sources":["../../../../../src/ai/user-bubble/stories/user-bubble-action.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAmD;AACnD,4CAAiD;AACjD,kDAAiE;AAEjE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,eAAU,IACT,WAAW,EAAE;YACX,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,SAAS;SAChB,EACD,eAAe,EACb,uBAAC,uBAAe,IAAC,WAAW,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,YAC9C,uBAAC,+BAAuB,KAAG,GACX,8DAIT,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 { CleanIconButton } from '@neo4j-ndl/react';\nimport { UserBubble } from '@neo4j-ndl/react/ai';\nimport { PencilSquareIconOutline } from '@neo4j-ndl/react/icons';\n\nconst Component = () => {\n return (\n <UserBubble\n avatarProps={{\n name: 'KM',\n type: 'letters',\n }}\n trailingElement={\n <CleanIconButton description=\"Edit\" size=\"large\">\n <PencilSquareIconOutline />\n </CleanIconButton>\n }\n >\n Can you analyse my data and tell me about...?\n </UserBubble>\n );\n};\n\nexport default Component;\n"]}
@@ -22,14 +22,14 @@ const jsx_runtime_1 = require("react/jsx-runtime");
22
22
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
23
  */
24
24
  require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
25
26
  const ai_1 = require("@neo4j-ndl/react/ai");
26
27
  const icons_1 = require("@neo4j-ndl/react/icons");
27
- const menu_1 = require("@neo4j-ndl/react/menu");
28
- const react_1 = require("react");
28
+ const react_2 = require("react");
29
29
  const Component = () => {
30
- const [isMenuOpen, setIsMenuOpen] = (0, react_1.useState)(false);
31
- const anchorRef = (0, react_1.useRef)(null);
32
- return ((0, jsx_runtime_1.jsx)("div", { className: "n-flex n-flex-coln-gap-token-64 n-w-full n-justify-end", children: (0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-gap-token-8 n-items-end", children: [(0, jsx_runtime_1.jsx)(ai_1.MoreFiles, { count: 4, isActive: isMenuOpen, onClick: () => setIsMenuOpen(!isMenuOpen), ref: anchorRef }), (0, jsx_runtime_1.jsx)(menu_1.Menu, { isOpen: isMenuOpen, anchorRef: anchorRef, onClose: () => setIsMenuOpen(false), children: (0, jsx_runtime_1.jsxs)(menu_1.Menu.Items, { children: [(0, jsx_runtime_1.jsx)(menu_1.Menu.Item, { leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.DocumentIconOutline, {}), title: "Gardening tips", description: "PDF", onClick: () => alert('Gardening tips') }), (0, jsx_runtime_1.jsx)(menu_1.Menu.Item, { leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.TableCellsIconOutline, {}), title: "TvSeries", description: "CSV", onClick: () => alert('TvSeries') }), (0, jsx_runtime_1.jsx)(menu_1.Menu.Item, { leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.PhotoIconOutline, {}), title: "Family photo", description: "JPG", onClick: () => alert('Family photo') })] }) }), (0, jsx_runtime_1.jsx)(ai_1.ImageTag, { src: "https://plus.unsplash.com/premium_photo-1676496046182-356a6a0ed002?q=80&w=2952&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D", alt: "Landscape image", fileName: "Landscape image", fileType: "jpg" }), (0, jsx_runtime_1.jsx)(ai_1.FileTag, { icon: (0, jsx_runtime_1.jsx)(icons_1.TableCellsIconOutline, {}), fileName: "MoviesDecade", fileType: "csv" }), (0, jsx_runtime_1.jsx)(ai_1.FileTag, { icon: (0, jsx_runtime_1.jsx)(icons_1.DocumentIconOutline, {}), fileName: "Science Fiction Bestsellers", fileType: "pdf" }), (0, jsx_runtime_1.jsx)(ai_1.UserBubble, { avatarProps: {
30
+ const [isMenuOpen, setIsMenuOpen] = (0, react_2.useState)(false);
31
+ const anchorRef = (0, react_2.useRef)(null);
32
+ return ((0, jsx_runtime_1.jsx)("div", { className: "n-flex n-flex-coln-gap-token-64 n-w-full n-justify-end", children: (0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-gap-token-8 n-items-end", children: [(0, jsx_runtime_1.jsx)(ai_1.MoreFiles, { count: 4, isActive: isMenuOpen, onClick: () => setIsMenuOpen(!isMenuOpen), ref: anchorRef }), (0, jsx_runtime_1.jsx)(react_1.Menu, { isOpen: isMenuOpen, anchorRef: anchorRef, onClose: () => setIsMenuOpen(false), children: (0, jsx_runtime_1.jsxs)(react_1.Menu.Items, { children: [(0, jsx_runtime_1.jsx)(react_1.Menu.Item, { leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.DocumentIconOutline, {}), title: "Gardening tips", description: "PDF", onClick: () => alert('Gardening tips') }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.TableCellsIconOutline, {}), title: "TvSeries", description: "CSV", onClick: () => alert('TvSeries') }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.PhotoIconOutline, {}), title: "Family photo", description: "JPG", onClick: () => alert('Family photo') })] }) }), (0, jsx_runtime_1.jsx)(ai_1.ImageTag, { src: "https://plus.unsplash.com/premium_photo-1676496046182-356a6a0ed002?q=80&w=2952&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D", alt: "Landscape image", fileName: "Landscape image", fileType: "jpg" }), (0, jsx_runtime_1.jsx)(ai_1.FileTag, { icon: (0, jsx_runtime_1.jsx)(icons_1.TableCellsIconOutline, {}), fileName: "MoviesDecade", fileType: "csv" }), (0, jsx_runtime_1.jsx)(ai_1.FileTag, { icon: (0, jsx_runtime_1.jsx)(icons_1.DocumentIconOutline, {}), fileName: "Science Fiction Bestsellers", fileType: "pdf" }), (0, jsx_runtime_1.jsx)(ai_1.UserBubble, { avatarProps: {
33
33
  name: 'KM',
34
34
  source: 'https://media.istockphoto.com/id/1334716681/photo/a-smiling-man.jpg?s=612x612&w=0&k=20&c=U6rkSDpQMzkcJEqx2hAa63fNLIhqnZb31Xuc_QSi648=',
35
35
  type: 'image',
@@ -1 +1 @@
1
- {"version":3,"file":"user-bubble-and-files.story.js","sourceRoot":"","sources":["../../../../../src/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EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,GACpC,IACS,GACR,EACP,uBAAC,aAAQ,IACP,GAAG,EAAC,8KAA8K,EAClL,GAAG,EAAC,iBAAiB,EACrB,QAAQ,EAAC,iBAAiB,EAC1B,QAAQ,EAAC,KAAK,GACd,EACF,uBAAC,YAAO,IACN,IAAI,EAAE,uBAAC,6BAAqB,KAAG,EAC/B,QAAQ,EAAC,cAAc,EACvB,QAAQ,EAAC,KAAK,GACd,EACF,uBAAC,YAAO,IACN,IAAI,EAAE,uBAAC,2BAAmB,KAAG,EAC7B,QAAQ,EAAC,6BAA6B,EACtC,QAAQ,EAAC,KAAK,GACd,EACF,uBAAC,eAAU,IACT,WAAW,EAAE;wBACX,IAAI,EAAE,IAAI;wBACV,MAAM,EACJ,uIAAuI;wBACzI,IAAI,EAAE,OAAO;qBACd,8DAGU,IACT,GACF,CACP,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 { FileTag, ImageTag, MoreFiles, UserBubble } from '@neo4j-ndl/react/ai';\nimport {\n DocumentIconOutline,\n PhotoIconOutline,\n TableCellsIconOutline,\n} from '@neo4j-ndl/react/icons';\nimport { Menu } from '@neo4j-ndl/react/menu';\nimport { useRef, useState } from 'react';\n\nconst Component = () => {\n const [isMenuOpen, setIsMenuOpen] = useState(false);\n const anchorRef = useRef<HTMLButtonElement | null>(null);\n\n return (\n <div className=\"n-flex n-flex-coln-gap-token-64 n-w-full n-justify-end\">\n <div className=\"n-flex n-flex-col n-gap-token-8 n-items-end\">\n <MoreFiles\n count={4}\n isActive={isMenuOpen}\n onClick={() => setIsMenuOpen(!isMenuOpen)}\n ref={anchorRef}\n />\n <Menu\n isOpen={isMenuOpen}\n anchorRef={anchorRef}\n onClose={() => setIsMenuOpen(false)}\n >\n <Menu.Items>\n <Menu.Item\n leadingVisual={<DocumentIconOutline />}\n title=\"Gardening tips\"\n description=\"PDF\"\n onClick={() => alert('Gardening tips')}\n />\n <Menu.Item\n leadingVisual={<TableCellsIconOutline />}\n title=\"TvSeries\"\n description=\"CSV\"\n onClick={() => alert('TvSeries')}\n />\n <Menu.Item\n leadingVisual={<PhotoIconOutline />}\n title=\"Family photo\"\n description=\"JPG\"\n onClick={() => alert('Family photo')}\n />\n </Menu.Items>\n </Menu>\n <ImageTag\n src=\"https://plus.unsplash.com/premium_photo-1676496046182-356a6a0ed002?q=80&w=2952&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\"\n alt=\"Landscape image\"\n fileName=\"Landscape image\"\n fileType=\"jpg\"\n />\n <FileTag\n icon={<TableCellsIconOutline />}\n fileName=\"MoviesDecade\"\n fileType=\"csv\"\n />\n <FileTag\n icon={<DocumentIconOutline />}\n fileName=\"Science Fiction Bestsellers\"\n fileType=\"pdf\"\n />\n <UserBubble\n avatarProps={{\n name: 'KM',\n source:\n 'https://media.istockphoto.com/id/1334716681/photo/a-smiling-man.jpg?s=612x612&w=0&k=20&c=U6rkSDpQMzkcJEqx2hAa63fNLIhqnZb31Xuc_QSi648=',\n type: 'image',\n }}\n >\n Can you analyse my data and tell me about...?\n </UserBubble>\n </div>\n </div>\n );\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"user-bubble-and-files.story.js","sourceRoot":"","sources":["../../../../../src/ai/user-bubble/stories/user-bubble-and-files.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAwC;AACxC,4CAA+E;AAC/E,kDAIgC;AAChC,iCAAyC;AAEzC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IACpD,MAAM,SAAS,GAAG,IAAA,cAAM,EAA2B,IAAI,CAAC,CAAC;IAEzD,OAAO,CACL,gCAAK,SAAS,EAAC,wDAAwD,YACrE,iCAAK,SAAS,EAAC,6CAA6C,aAC1D,uBAAC,cAAS,IACR,KAAK,EAAE,CAAC,EACR,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC,UAAU,CAAC,EACzC,GAAG,EAAE,SAAS,GACd,EACF,uBAAC,YAAI,IACH,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,YAEnC,wBAAC,YAAI,CAAC,KAAK,eACT,uBAAC,YAAI,CAAC,IAAI,IACR,aAAa,EAAE,uBAAC,2BAAmB,KAAG,EACtC,KAAK,EAAC,gBAAgB,EACtB,WAAW,EAAC,KAAK,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,GACtC,EACF,uBAAC,YAAI,CAAC,IAAI,IACR,aAAa,EAAE,uBAAC,6BAAqB,KAAG,EACxC,KAAK,EAAC,UAAU,EAChB,WAAW,EAAC,KAAK,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,GAChC,EACF,uBAAC,YAAI,CAAC,IAAI,IACR,aAAa,EAAE,uBAAC,wBAAgB,KAAG,EACnC,KAAK,EAAC,cAAc,EACpB,WAAW,EAAC,KAAK,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,GACpC,IACS,GACR,EACP,uBAAC,aAAQ,IACP,GAAG,EAAC,8KAA8K,EAClL,GAAG,EAAC,iBAAiB,EACrB,QAAQ,EAAC,iBAAiB,EAC1B,QAAQ,EAAC,KAAK,GACd,EACF,uBAAC,YAAO,IACN,IAAI,EAAE,uBAAC,6BAAqB,KAAG,EAC/B,QAAQ,EAAC,cAAc,EACvB,QAAQ,EAAC,KAAK,GACd,EACF,uBAAC,YAAO,IACN,IAAI,EAAE,uBAAC,2BAAmB,KAAG,EAC7B,QAAQ,EAAC,6BAA6B,EACtC,QAAQ,EAAC,KAAK,GACd,EACF,uBAAC,eAAU,IACT,WAAW,EAAE;wBACX,IAAI,EAAE,IAAI;wBACV,MAAM,EACJ,uIAAuI;wBACzI,IAAI,EAAE,OAAO;qBACd,8DAGU,IACT,GACF,CACP,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 { Menu } from '@neo4j-ndl/react';\nimport { FileTag, ImageTag, MoreFiles, UserBubble } from '@neo4j-ndl/react/ai';\nimport {\n DocumentIconOutline,\n PhotoIconOutline,\n TableCellsIconOutline,\n} from '@neo4j-ndl/react/icons';\nimport { useRef, useState } from 'react';\n\nconst Component = () => {\n const [isMenuOpen, setIsMenuOpen] = useState(false);\n const anchorRef = useRef<HTMLButtonElement | null>(null);\n\n return (\n <div className=\"n-flex n-flex-coln-gap-token-64 n-w-full n-justify-end\">\n <div className=\"n-flex n-flex-col n-gap-token-8 n-items-end\">\n <MoreFiles\n count={4}\n isActive={isMenuOpen}\n onClick={() => setIsMenuOpen(!isMenuOpen)}\n ref={anchorRef}\n />\n <Menu\n isOpen={isMenuOpen}\n anchorRef={anchorRef}\n onClose={() => setIsMenuOpen(false)}\n >\n <Menu.Items>\n <Menu.Item\n leadingVisual={<DocumentIconOutline />}\n title=\"Gardening tips\"\n description=\"PDF\"\n onClick={() => alert('Gardening tips')}\n />\n <Menu.Item\n leadingVisual={<TableCellsIconOutline />}\n title=\"TvSeries\"\n description=\"CSV\"\n onClick={() => alert('TvSeries')}\n />\n <Menu.Item\n leadingVisual={<PhotoIconOutline />}\n title=\"Family photo\"\n description=\"JPG\"\n onClick={() => alert('Family photo')}\n />\n </Menu.Items>\n </Menu>\n <ImageTag\n src=\"https://plus.unsplash.com/premium_photo-1676496046182-356a6a0ed002?q=80&w=2952&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\"\n alt=\"Landscape image\"\n fileName=\"Landscape image\"\n fileType=\"jpg\"\n />\n <FileTag\n icon={<TableCellsIconOutline />}\n fileName=\"MoviesDecade\"\n fileType=\"csv\"\n />\n <FileTag\n icon={<DocumentIconOutline />}\n fileName=\"Science Fiction Bestsellers\"\n fileType=\"pdf\"\n />\n <UserBubble\n avatarProps={{\n name: 'KM',\n source:\n 'https://media.istockphoto.com/id/1334716681/photo/a-smiling-man.jpg?s=612x612&w=0&k=20&c=U6rkSDpQMzkcJEqx2hAa63fNLIhqnZb31Xuc_QSi648=',\n type: 'image',\n }}\n >\n Can you analyse my data and tell me about...?\n </UserBubble>\n </div>\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -36,7 +36,7 @@ var avatar_types_story_1 = require("./avatar-types.story");
36
36
  Object.defineProperty(exports, "AvatarTypes", { enumerable: true, get: function () { return __importDefault(avatar_types_story_1).default; } });
37
37
  var avatar_statuses_story_1 = require("./avatar-statuses.story");
38
38
  Object.defineProperty(exports, "AvatarStatuses", { enumerable: true, get: function () { return __importDefault(avatar_statuses_story_1).default; } });
39
- const export_stories_utils_1 = require("@neo4j-ndl/react/_common/export-stories-utils");
39
+ const export_stories_utils_1 = require("../../_common/export-stories-utils");
40
40
  const avatar_default_story_raw_1 = __importDefault(require("./avatar-default.story?raw"));
41
41
  const avatar_disabled_story_raw_1 = __importDefault(require("./avatar-disabled.story?raw"));
42
42
  const avatar_shapes_story_raw_1 = __importDefault(require("./avatar-shapes.story?raw"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/avatar/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,+DAAkE;AAAzD,sIAAA,OAAO,OAAiB;AACjC,iEAAoE;AAA3D,wIAAA,OAAO,OAAkB;AAClC,2DAA8D;AAArD,kIAAA,OAAO,OAAe;AAC/B,6DAAgE;AAAvD,oIAAA,OAAO,OAAgB;AAChC,2DAA8D;AAArD,kIAAA,OAAO,OAAe;AAC/B,iEAAoE;AAA3D,wIAAA,OAAO,OAAkB;AAElC,wFAAoF;AAEpF,0FAAgE;AAChE,4FAAkE;AAClE,wFAA8D;AAC9D,sFAA4D;AAC5D,4FAAkE;AAClE,sFAA4D;AAE/C,QAAA,mBAAmB,GAAG,IAAA,0CAAmB,EAAC,kCAAsB,CAAC,CAAC;AAClE,QAAA,oBAAoB,GAAG,IAAA,0CAAmB,EACrD,mCAAuB,CACxB,CAAC;AACW,QAAA,iBAAiB,GAAG,IAAA,0CAAmB,EAAC,gCAAoB,CAAC,CAAC;AAC9D,QAAA,kBAAkB,GAAG,IAAA,0CAAmB,EAAC,iCAAqB,CAAC,CAAC;AAChE,QAAA,iBAAiB,GAAG,IAAA,0CAAmB,EAAC,gCAAoB,CAAC,CAAC;AAC9D,QAAA,oBAAoB,GAAG,IAAA,0CAAmB,EACrD,mCAAuB,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 AvatarDefault } from './avatar-default.story';\nexport { default as AvatarDisabled } from './avatar-disabled.story';\nexport { default as AvatarSizes } from './avatar-sizes.story';\nexport { default as AvatarShapes } from './avatar-shapes.story';\nexport { default as AvatarTypes } from './avatar-types.story';\nexport { default as AvatarStatuses } from './avatar-statuses.story';\n\nimport { removeLicenseHeader } from '@neo4j-ndl/react/_common/export-stories-utils';\n\nimport AvatarDefaultSourceRaw from './avatar-default.story?raw';\nimport AvatarDisabledSourceRaw from './avatar-disabled.story?raw';\nimport AvatarShapesSourceRaw from './avatar-shapes.story?raw';\nimport AvatarSizesSourceRaw from './avatar-sizes.story?raw';\nimport AvatarStatusesSourceRaw from './avatar-statuses.story?raw';\nimport AvatarTypesSourceRaw from './avatar-types.story?raw';\n\nexport const AvatarDefaultSource = removeLicenseHeader(AvatarDefaultSourceRaw);\nexport const AvatarDisabledSource = removeLicenseHeader(\n AvatarDisabledSourceRaw,\n);\nexport const AvatarSizesSource = removeLicenseHeader(AvatarSizesSourceRaw);\nexport const AvatarShapesSource = removeLicenseHeader(AvatarShapesSourceRaw);\nexport const AvatarTypesSource = removeLicenseHeader(AvatarTypesSourceRaw);\nexport const AvatarStatusesSource = removeLicenseHeader(\n AvatarStatusesSourceRaw,\n);\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/avatar/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,+DAAkE;AAAzD,sIAAA,OAAO,OAAiB;AACjC,iEAAoE;AAA3D,wIAAA,OAAO,OAAkB;AAClC,2DAA8D;AAArD,kIAAA,OAAO,OAAe;AAC/B,6DAAgE;AAAvD,oIAAA,OAAO,OAAgB;AAChC,2DAA8D;AAArD,kIAAA,OAAO,OAAe;AAC/B,iEAAoE;AAA3D,wIAAA,OAAO,OAAkB;AAElC,6EAAyE;AACzE,0FAAgE;AAChE,4FAAkE;AAClE,wFAA8D;AAC9D,sFAA4D;AAC5D,4FAAkE;AAClE,sFAA4D;AAE/C,QAAA,mBAAmB,GAAG,IAAA,0CAAmB,EAAC,kCAAsB,CAAC,CAAC;AAClE,QAAA,oBAAoB,GAAG,IAAA,0CAAmB,EACrD,mCAAuB,CACxB,CAAC;AACW,QAAA,iBAAiB,GAAG,IAAA,0CAAmB,EAAC,gCAAoB,CAAC,CAAC;AAC9D,QAAA,kBAAkB,GAAG,IAAA,0CAAmB,EAAC,iCAAqB,CAAC,CAAC;AAChE,QAAA,iBAAiB,GAAG,IAAA,0CAAmB,EAAC,gCAAoB,CAAC,CAAC;AAC9D,QAAA,oBAAoB,GAAG,IAAA,0CAAmB,EACrD,mCAAuB,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 AvatarDefault } from './avatar-default.story';\nexport { default as AvatarDisabled } from './avatar-disabled.story';\nexport { default as AvatarSizes } from './avatar-sizes.story';\nexport { default as AvatarShapes } from './avatar-shapes.story';\nexport { default as AvatarTypes } from './avatar-types.story';\nexport { default as AvatarStatuses } from './avatar-statuses.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport AvatarDefaultSourceRaw from './avatar-default.story?raw';\nimport AvatarDisabledSourceRaw from './avatar-disabled.story?raw';\nimport AvatarShapesSourceRaw from './avatar-shapes.story?raw';\nimport AvatarSizesSourceRaw from './avatar-sizes.story?raw';\nimport AvatarStatusesSourceRaw from './avatar-statuses.story?raw';\nimport AvatarTypesSourceRaw from './avatar-types.story?raw';\n\nexport const AvatarDefaultSource = removeLicenseHeader(AvatarDefaultSourceRaw);\nexport const AvatarDisabledSource = removeLicenseHeader(\n AvatarDisabledSourceRaw,\n);\nexport const AvatarSizesSource = removeLicenseHeader(AvatarSizesSourceRaw);\nexport const AvatarShapesSource = removeLicenseHeader(AvatarShapesSourceRaw);\nexport const AvatarTypesSource = removeLicenseHeader(AvatarTypesSourceRaw);\nexport const AvatarStatusesSource = removeLicenseHeader(\n AvatarStatusesSourceRaw,\n);\n"]}
@@ -36,7 +36,7 @@ var banner_with_icons_story_1 = require("./banner-with-icons.story");
36
36
  Object.defineProperty(exports, "BannerWithIcons", { enumerable: true, get: function () { return __importDefault(banner_with_icons_story_1).default; } });
37
37
  var banner_without_title_story_1 = require("./banner-without-title.story");
38
38
  Object.defineProperty(exports, "BannerWithoutTitle", { enumerable: true, get: function () { return __importDefault(banner_without_title_story_1).default; } });
39
- const export_stories_utils_1 = require("@neo4j-ndl/react/_common/export-stories-utils");
39
+ const export_stories_utils_1 = require("../../_common/export-stories-utils");
40
40
  const banner_closeable_story_raw_1 = __importDefault(require("./banner-closeable.story?raw"));
41
41
  const banner_global_story_raw_1 = __importDefault(require("./banner-global.story?raw"));
42
42
  const banner_variants_story_raw_1 = __importDefault(require("./banner-variants.story?raw"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/banner/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,iEAAoE;AAA3D,wIAAA,OAAO,OAAkB;AAClC,mEAAsE;AAA7D,0IAAA,OAAO,OAAmB;AACnC,6DAAgE;AAAvD,oIAAA,OAAO,OAAgB;AAChC,yEAA2E;AAAlE,+IAAA,OAAO,OAAqB;AACrC,qEAAuE;AAA9D,2IAAA,OAAO,OAAmB;AACnC,2EAA6E;AAApE,iJAAA,OAAO,OAAsB;AAEtC,wFAAoF;AAEpF,8FAAiE;AACjE,wFAA2D;AAC3D,4FAA+D;AAC/D,oGAAsE;AACtE,gGAAkE;AAClE,sGAAwE;AAE3D,QAAA,iBAAiB,GAAG,IAAA,0CAAmB,EAAC,mCAAoB,CAAC,CAAC;AAE9D,QAAA,kBAAkB,GAAG,IAAA,0CAAmB,EAAC,oCAAqB,CAAC,CAAC;AAEhE,QAAA,eAAe,GAAG,IAAA,0CAAmB,EAAC,iCAAkB,CAAC,CAAC;AAE1D,QAAA,oBAAoB,GAAG,IAAA,0CAAmB,EACrD,uCAAuB,CACxB,CAAC;AAEW,QAAA,kBAAkB,GAAG,IAAA,0CAAmB,EAAC,qCAAqB,CAAC,CAAC;AAEhE,QAAA,qBAAqB,GAAG,IAAA,0CAAmB,EACtD,wCAAwB,CACzB,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 BannerVariants } from './banner-variants.story';\nexport { default as BannerCloseable } from './banner-closeable.story';\nexport { default as BannerGlobal } from './banner-global.story';\nexport { default as BannerWithActions } from './banner-with-actions.story';\nexport { default as BannerWithIcons } from './banner-with-icons.story';\nexport { default as BannerWithoutTitle } from './banner-without-title.story';\n\nimport { removeLicenseHeader } from '@neo4j-ndl/react/_common/export-stories-utils';\n\nimport BannerCloseableSrcRaw from './banner-closeable.story?raw';\nimport BannerGlobalSrcRaw from './banner-global.story?raw';\nimport BannerVariantsSrcRaw from './banner-variants.story?raw';\nimport BannerWithActionsSrcRaw from './banner-with-actions.story?raw';\nimport BannerWithIconsSrcRaw from './banner-with-icons.story?raw';\nimport BannerWithoutTitleSrcRaw from './banner-without-title.story?raw';\n\nexport const BannerVariantsSrc = removeLicenseHeader(BannerVariantsSrcRaw);\n\nexport const BannerCloseableSrc = removeLicenseHeader(BannerCloseableSrcRaw);\n\nexport const BannerGlobalSrc = removeLicenseHeader(BannerGlobalSrcRaw);\n\nexport const BannerWithActionsSrc = removeLicenseHeader(\n BannerWithActionsSrcRaw,\n);\n\nexport const BannerWithIconsSrc = removeLicenseHeader(BannerWithIconsSrcRaw);\n\nexport const BannerWithoutTitleSrc = removeLicenseHeader(\n BannerWithoutTitleSrcRaw,\n);\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/banner/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,iEAAoE;AAA3D,wIAAA,OAAO,OAAkB;AAClC,mEAAsE;AAA7D,0IAAA,OAAO,OAAmB;AACnC,6DAAgE;AAAvD,oIAAA,OAAO,OAAgB;AAChC,yEAA2E;AAAlE,+IAAA,OAAO,OAAqB;AACrC,qEAAuE;AAA9D,2IAAA,OAAO,OAAmB;AACnC,2EAA6E;AAApE,iJAAA,OAAO,OAAsB;AAEtC,6EAAyE;AACzE,8FAAiE;AACjE,wFAA2D;AAC3D,4FAA+D;AAC/D,oGAAsE;AACtE,gGAAkE;AAClE,sGAAwE;AAE3D,QAAA,iBAAiB,GAAG,IAAA,0CAAmB,EAAC,mCAAoB,CAAC,CAAC;AAE9D,QAAA,kBAAkB,GAAG,IAAA,0CAAmB,EAAC,oCAAqB,CAAC,CAAC;AAEhE,QAAA,eAAe,GAAG,IAAA,0CAAmB,EAAC,iCAAkB,CAAC,CAAC;AAE1D,QAAA,oBAAoB,GAAG,IAAA,0CAAmB,EACrD,uCAAuB,CACxB,CAAC;AAEW,QAAA,kBAAkB,GAAG,IAAA,0CAAmB,EAAC,qCAAqB,CAAC,CAAC;AAEhE,QAAA,qBAAqB,GAAG,IAAA,0CAAmB,EACtD,wCAAwB,CACzB,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 BannerVariants } from './banner-variants.story';\nexport { default as BannerCloseable } from './banner-closeable.story';\nexport { default as BannerGlobal } from './banner-global.story';\nexport { default as BannerWithActions } from './banner-with-actions.story';\nexport { default as BannerWithIcons } from './banner-with-icons.story';\nexport { default as BannerWithoutTitle } from './banner-without-title.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport BannerCloseableSrcRaw from './banner-closeable.story?raw';\nimport BannerGlobalSrcRaw from './banner-global.story?raw';\nimport BannerVariantsSrcRaw from './banner-variants.story?raw';\nimport BannerWithActionsSrcRaw from './banner-with-actions.story?raw';\nimport BannerWithIconsSrcRaw from './banner-with-icons.story?raw';\nimport BannerWithoutTitleSrcRaw from './banner-without-title.story?raw';\n\nexport const BannerVariantsSrc = removeLicenseHeader(BannerVariantsSrcRaw);\n\nexport const BannerCloseableSrc = removeLicenseHeader(BannerCloseableSrcRaw);\n\nexport const BannerGlobalSrc = removeLicenseHeader(BannerGlobalSrcRaw);\n\nexport const BannerWithActionsSrc = removeLicenseHeader(\n BannerWithActionsSrcRaw,\n);\n\nexport const BannerWithIconsSrc = removeLicenseHeader(BannerWithIconsSrcRaw);\n\nexport const BannerWithoutTitleSrc = removeLicenseHeader(\n BannerWithoutTitleSrcRaw,\n);\n"]}
@@ -26,7 +26,7 @@ exports.BoxDefaultSrc = exports.BoxDefault = void 0;
26
26
  */
27
27
  var box_default_story_1 = require("./box-default.story");
28
28
  Object.defineProperty(exports, "BoxDefault", { enumerable: true, get: function () { return __importDefault(box_default_story_1).default; } });
29
- const export_stories_utils_1 = require("@neo4j-ndl/react/_common/export-stories-utils");
29
+ const export_stories_utils_1 = require("../../_common/export-stories-utils");
30
30
  const box_default_story_raw_1 = __importDefault(require("./box-default.story?raw"));
31
31
  exports.BoxDefaultSrc = (0, export_stories_utils_1.removeLicenseHeader)(box_default_story_raw_1.default);
32
32
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/box/stories/index.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,yDAA4D;AAAnD,gIAAA,OAAO,OAAc;AAE9B,wFAAoF;AAEpF,oFAAuD;AAE1C,QAAA,aAAa,GAAG,IAAA,0CAAmB,EAAC,+BAAgB,CAAC,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 */\nexport { default as BoxDefault } from './box-default.story';\n\nimport { removeLicenseHeader } from '@neo4j-ndl/react/_common/export-stories-utils';\n\nimport BoxDefaultSrcRaw from './box-default.story?raw';\n\nexport const BoxDefaultSrc = removeLicenseHeader(BoxDefaultSrcRaw);\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/box/stories/index.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,yDAA4D;AAAnD,gIAAA,OAAO,OAAc;AAE9B,6EAAyE;AACzE,oFAAuD;AAE1C,QAAA,aAAa,GAAG,IAAA,0CAAmB,EAAC,+BAAgB,CAAC,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 */\nexport { default as BoxDefault } from './box-default.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport BoxDefaultSrcRaw from './box-default.story?raw';\n\nexport const BoxDefaultSrc = removeLicenseHeader(BoxDefaultSrcRaw);\n"]}