@arcadeai/design-system 3.25.1 → 3.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (506) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/icons/luma.js +10 -0
  3. package/dist/assets/images/arcade-logo.d.ts +5 -5
  4. package/dist/components/index.d.ts +1 -0
  5. package/dist/components/index.d.ts.map +1 -0
  6. package/dist/components/index.js +234 -232
  7. package/dist/components/ui/atoms/accordion.d.ts +3 -2
  8. package/dist/components/ui/atoms/accordion.d.ts.map +1 -0
  9. package/dist/components/ui/atoms/accordion.js +5 -5
  10. package/dist/components/ui/atoms/alert-dialog.d.ts +5 -4
  11. package/dist/components/ui/atoms/alert-dialog.d.ts.map +1 -0
  12. package/dist/components/ui/atoms/alert-dialog.js +12 -12
  13. package/dist/components/ui/atoms/alert.d.ts +5 -4
  14. package/dist/components/ui/atoms/alert.d.ts.map +1 -0
  15. package/dist/components/ui/atoms/alert.js +2 -2
  16. package/dist/components/ui/atoms/avatar.d.ts +3 -2
  17. package/dist/components/ui/atoms/avatar.d.ts.map +1 -0
  18. package/dist/components/ui/atoms/avatar.js +8 -8
  19. package/dist/components/ui/atoms/badge.d.ts +3 -2
  20. package/dist/components/ui/atoms/badge.d.ts.map +1 -0
  21. package/dist/components/ui/atoms/badge.js +6 -6
  22. package/dist/components/ui/atoms/breadcrumb.d.ts +9 -8
  23. package/dist/components/ui/atoms/breadcrumb.d.ts.map +1 -0
  24. package/dist/components/ui/atoms/breadcrumb.js +2 -2
  25. package/dist/components/ui/atoms/button.d.ts +3 -2
  26. package/dist/components/ui/atoms/button.d.ts.map +1 -0
  27. package/dist/components/ui/atoms/button.js +6 -6
  28. package/dist/components/ui/atoms/byoc-badge.d.ts +1 -0
  29. package/dist/components/ui/atoms/byoc-badge.d.ts.map +1 -0
  30. package/dist/components/ui/atoms/byoc-badge.js +6 -6
  31. package/dist/components/ui/atoms/card.d.ts +9 -8
  32. package/dist/components/ui/atoms/card.d.ts.map +1 -0
  33. package/dist/components/ui/atoms/card.js +1 -1
  34. package/dist/components/ui/atoms/chart.d.ts +7 -6
  35. package/dist/components/ui/atoms/chart.d.ts.map +1 -0
  36. package/dist/components/ui/atoms/chart.js +1 -1
  37. package/dist/components/ui/atoms/checkbox.d.ts +3 -2
  38. package/dist/components/ui/atoms/checkbox.d.ts.map +1 -0
  39. package/dist/components/ui/atoms/checkbox.js +15 -15
  40. package/dist/components/ui/atoms/collapsible.d.ts +2 -1
  41. package/dist/components/ui/atoms/collapsible.d.ts.map +1 -0
  42. package/dist/components/ui/atoms/collapsible.js +1 -1
  43. package/dist/components/ui/atoms/command.d.ts +4 -3
  44. package/dist/components/ui/atoms/command.d.ts.map +1 -0
  45. package/dist/components/ui/atoms/command.js +29 -29
  46. package/dist/components/ui/atoms/dialog.d.ts +5 -4
  47. package/dist/components/ui/atoms/dialog.d.ts.map +1 -0
  48. package/dist/components/ui/atoms/dialog.js +8 -8
  49. package/dist/components/ui/atoms/dropdown-menu.d.ts +5 -4
  50. package/dist/components/ui/atoms/dropdown-menu.d.ts.map +1 -0
  51. package/dist/components/ui/atoms/dropdown-menu.js +9 -9
  52. package/dist/components/ui/atoms/form.d.ts +6 -5
  53. package/dist/components/ui/atoms/form.d.ts.map +1 -0
  54. package/dist/components/ui/atoms/form.js +9 -9
  55. package/dist/components/ui/atoms/hover-card.d.ts +3 -2
  56. package/dist/components/ui/atoms/hover-card.d.ts.map +1 -0
  57. package/dist/components/ui/atoms/hover-card.js +19 -19
  58. package/dist/components/ui/atoms/icons/adp.d.ts +1 -0
  59. package/dist/components/ui/atoms/icons/adp.d.ts.map +1 -0
  60. package/dist/components/ui/atoms/icons/aha.d.ts +1 -0
  61. package/dist/components/ui/atoms/icons/aha.d.ts.map +1 -0
  62. package/dist/components/ui/atoms/icons/airtable.d.ts +1 -0
  63. package/dist/components/ui/atoms/icons/airtable.d.ts.map +1 -0
  64. package/dist/components/ui/atoms/icons/amplitude.d.ts +1 -0
  65. package/dist/components/ui/atoms/icons/amplitude.d.ts.map +1 -0
  66. package/dist/components/ui/atoms/icons/arcade.d.ts +1 -0
  67. package/dist/components/ui/atoms/icons/arcade.d.ts.map +1 -0
  68. package/dist/components/ui/atoms/icons/asana.d.ts +1 -0
  69. package/dist/components/ui/atoms/icons/asana.d.ts.map +1 -0
  70. package/dist/components/ui/atoms/icons/ashby.d.ts +1 -0
  71. package/dist/components/ui/atoms/icons/ashby.d.ts.map +1 -0
  72. package/dist/components/ui/atoms/icons/atlassian.d.ts +1 -0
  73. package/dist/components/ui/atoms/icons/atlassian.d.ts.map +1 -0
  74. package/dist/components/ui/atoms/icons/auth0.d.ts +1 -0
  75. package/dist/components/ui/atoms/icons/auth0.d.ts.map +1 -0
  76. package/dist/components/ui/atoms/icons/azure.d.ts +1 -0
  77. package/dist/components/ui/atoms/icons/azure.d.ts.map +1 -0
  78. package/dist/components/ui/atoms/icons/bamboohr.d.ts +1 -0
  79. package/dist/components/ui/atoms/icons/bamboohr.d.ts.map +1 -0
  80. package/dist/components/ui/atoms/icons/basecamp.d.ts +1 -0
  81. package/dist/components/ui/atoms/icons/basecamp.d.ts.map +1 -0
  82. package/dist/components/ui/atoms/icons/bill.d.ts +1 -0
  83. package/dist/components/ui/atoms/icons/bill.d.ts.map +1 -0
  84. package/dist/components/ui/atoms/icons/bitbucket.d.ts +1 -0
  85. package/dist/components/ui/atoms/icons/bitbucket.d.ts.map +1 -0
  86. package/dist/components/ui/atoms/icons/bluesky.d.ts +1 -0
  87. package/dist/components/ui/atoms/icons/bluesky.d.ts.map +1 -0
  88. package/dist/components/ui/atoms/icons/box.d.ts +1 -0
  89. package/dist/components/ui/atoms/icons/box.d.ts.map +1 -0
  90. package/dist/components/ui/atoms/icons/braze.d.ts +1 -0
  91. package/dist/components/ui/atoms/icons/braze.d.ts.map +1 -0
  92. package/dist/components/ui/atoms/icons/brex.d.ts +1 -0
  93. package/dist/components/ui/atoms/icons/brex.d.ts.map +1 -0
  94. package/dist/components/ui/atoms/icons/brightdata.d.ts +1 -0
  95. package/dist/components/ui/atoms/icons/brightdata.d.ts.map +1 -0
  96. package/dist/components/ui/atoms/icons/buffer.d.ts +1 -0
  97. package/dist/components/ui/atoms/icons/buffer.d.ts.map +1 -0
  98. package/dist/components/ui/atoms/icons/calendly.d.ts +1 -0
  99. package/dist/components/ui/atoms/icons/calendly.d.ts.map +1 -0
  100. package/dist/components/ui/atoms/icons/clickhouse.d.ts +1 -0
  101. package/dist/components/ui/atoms/icons/clickhouse.d.ts.map +1 -0
  102. package/dist/components/ui/atoms/icons/clickup.d.ts +1 -0
  103. package/dist/components/ui/atoms/icons/clickup.d.ts.map +1 -0
  104. package/dist/components/ui/atoms/icons/closeio.d.ts +1 -0
  105. package/dist/components/ui/atoms/icons/closeio.d.ts.map +1 -0
  106. package/dist/components/ui/atoms/icons/codesandbox.d.ts +1 -0
  107. package/dist/components/ui/atoms/icons/codesandbox.d.ts.map +1 -0
  108. package/dist/components/ui/atoms/icons/coinbase.d.ts +1 -0
  109. package/dist/components/ui/atoms/icons/coinbase.d.ts.map +1 -0
  110. package/dist/components/ui/atoms/icons/confluence.d.ts +1 -0
  111. package/dist/components/ui/atoms/icons/confluence.d.ts.map +1 -0
  112. package/dist/components/ui/atoms/icons/cursor.d.ts +1 -0
  113. package/dist/components/ui/atoms/icons/cursor.d.ts.map +1 -0
  114. package/dist/components/ui/atoms/icons/customerio.d.ts +1 -0
  115. package/dist/components/ui/atoms/icons/customerio.d.ts.map +1 -0
  116. package/dist/components/ui/atoms/icons/datadog.d.ts +1 -0
  117. package/dist/components/ui/atoms/icons/datadog.d.ts.map +1 -0
  118. package/dist/components/ui/atoms/icons/digital-ocean.d.ts +1 -0
  119. package/dist/components/ui/atoms/icons/digital-ocean.d.ts.map +1 -0
  120. package/dist/components/ui/atoms/icons/discord.d.ts +1 -0
  121. package/dist/components/ui/atoms/icons/discord.d.ts.map +1 -0
  122. package/dist/components/ui/atoms/icons/dropbox.d.ts +1 -0
  123. package/dist/components/ui/atoms/icons/dropbox.d.ts.map +1 -0
  124. package/dist/components/ui/atoms/icons/e2b.d.ts +1 -0
  125. package/dist/components/ui/atoms/icons/e2b.d.ts.map +1 -0
  126. package/dist/components/ui/atoms/icons/ebay.d.ts +1 -0
  127. package/dist/components/ui/atoms/icons/ebay.d.ts.map +1 -0
  128. package/dist/components/ui/atoms/icons/evernote.d.ts +1 -0
  129. package/dist/components/ui/atoms/icons/evernote.d.ts.map +1 -0
  130. package/dist/components/ui/atoms/icons/exa.d.ts +1 -0
  131. package/dist/components/ui/atoms/icons/exa.d.ts.map +1 -0
  132. package/dist/components/ui/atoms/icons/factorial.d.ts +1 -0
  133. package/dist/components/ui/atoms/icons/factorial.d.ts.map +1 -0
  134. package/dist/components/ui/atoms/icons/figma.d.ts +1 -0
  135. package/dist/components/ui/atoms/icons/figma.d.ts.map +1 -0
  136. package/dist/components/ui/atoms/icons/firecrawl.d.ts +1 -0
  137. package/dist/components/ui/atoms/icons/firecrawl.d.ts.map +1 -0
  138. package/dist/components/ui/atoms/icons/freshservice.d.ts +1 -0
  139. package/dist/components/ui/atoms/icons/freshservice.d.ts.map +1 -0
  140. package/dist/components/ui/atoms/icons/generic.d.ts +1 -0
  141. package/dist/components/ui/atoms/icons/generic.d.ts.map +1 -0
  142. package/dist/components/ui/atoms/icons/github.d.ts +1 -0
  143. package/dist/components/ui/atoms/icons/github.d.ts.map +1 -0
  144. package/dist/components/ui/atoms/icons/gitlab.d.ts +1 -0
  145. package/dist/components/ui/atoms/icons/gitlab.d.ts.map +1 -0
  146. package/dist/components/ui/atoms/icons/gmail.d.ts +1 -0
  147. package/dist/components/ui/atoms/icons/gmail.d.ts.map +1 -0
  148. package/dist/components/ui/atoms/icons/google-calendar.d.ts +1 -0
  149. package/dist/components/ui/atoms/icons/google-calendar.d.ts.map +1 -0
  150. package/dist/components/ui/atoms/icons/google-contacts.d.ts +1 -0
  151. package/dist/components/ui/atoms/icons/google-contacts.d.ts.map +1 -0
  152. package/dist/components/ui/atoms/icons/google-docs.d.ts +1 -0
  153. package/dist/components/ui/atoms/icons/google-docs.d.ts.map +1 -0
  154. package/dist/components/ui/atoms/icons/google-drive.d.ts +1 -0
  155. package/dist/components/ui/atoms/icons/google-drive.d.ts.map +1 -0
  156. package/dist/components/ui/atoms/icons/google-finance.d.ts +1 -0
  157. package/dist/components/ui/atoms/icons/google-finance.d.ts.map +1 -0
  158. package/dist/components/ui/atoms/icons/google-flight.d.ts +1 -0
  159. package/dist/components/ui/atoms/icons/google-flight.d.ts.map +1 -0
  160. package/dist/components/ui/atoms/icons/google-flights.d.ts +1 -0
  161. package/dist/components/ui/atoms/icons/google-flights.d.ts.map +1 -0
  162. package/dist/components/ui/atoms/icons/google-hotels.d.ts +1 -0
  163. package/dist/components/ui/atoms/icons/google-hotels.d.ts.map +1 -0
  164. package/dist/components/ui/atoms/icons/google-jobs.d.ts +1 -0
  165. package/dist/components/ui/atoms/icons/google-jobs.d.ts.map +1 -0
  166. package/dist/components/ui/atoms/icons/google-maps.d.ts +1 -0
  167. package/dist/components/ui/atoms/icons/google-maps.d.ts.map +1 -0
  168. package/dist/components/ui/atoms/icons/google-news.d.ts +1 -0
  169. package/dist/components/ui/atoms/icons/google-news.d.ts.map +1 -0
  170. package/dist/components/ui/atoms/icons/google-sheets.d.ts +1 -0
  171. package/dist/components/ui/atoms/icons/google-sheets.d.ts.map +1 -0
  172. package/dist/components/ui/atoms/icons/google-shopping.d.ts +1 -0
  173. package/dist/components/ui/atoms/icons/google-shopping.d.ts.map +1 -0
  174. package/dist/components/ui/atoms/icons/google-slides.d.ts +1 -0
  175. package/dist/components/ui/atoms/icons/google-slides.d.ts.map +1 -0
  176. package/dist/components/ui/atoms/icons/google.d.ts +1 -0
  177. package/dist/components/ui/atoms/icons/google.d.ts.map +1 -0
  178. package/dist/components/ui/atoms/icons/heroku.d.ts +1 -0
  179. package/dist/components/ui/atoms/icons/heroku.d.ts.map +1 -0
  180. package/dist/components/ui/atoms/icons/hootsuite.d.ts +1 -0
  181. package/dist/components/ui/atoms/icons/hootsuite.d.ts.map +1 -0
  182. package/dist/components/ui/atoms/icons/hubspot.d.ts +1 -0
  183. package/dist/components/ui/atoms/icons/hubspot.d.ts.map +1 -0
  184. package/dist/components/ui/atoms/icons/imgflip.d.ts +1 -0
  185. package/dist/components/ui/atoms/icons/imgflip.d.ts.map +1 -0
  186. package/dist/components/ui/atoms/icons/index.d.ts +2 -0
  187. package/dist/components/ui/atoms/icons/index.d.ts.map +1 -0
  188. package/dist/components/ui/atoms/icons/index.js +132 -130
  189. package/dist/components/ui/atoms/icons/intercom.d.ts +1 -0
  190. package/dist/components/ui/atoms/icons/intercom.d.ts.map +1 -0
  191. package/dist/components/ui/atoms/icons/jira.d.ts +1 -0
  192. package/dist/components/ui/atoms/icons/jira.d.ts.map +1 -0
  193. package/dist/components/ui/atoms/icons/linear.d.ts +1 -0
  194. package/dist/components/ui/atoms/icons/linear.d.ts.map +1 -0
  195. package/dist/components/ui/atoms/icons/linkedin.d.ts +1 -0
  196. package/dist/components/ui/atoms/icons/linkedin.d.ts.map +1 -0
  197. package/dist/components/ui/atoms/icons/luma.d.ts +4 -0
  198. package/dist/components/ui/atoms/icons/luma.d.ts.map +1 -0
  199. package/dist/components/ui/atoms/icons/luma.js +24 -0
  200. package/dist/components/ui/atoms/icons/mailchimp.d.ts +1 -0
  201. package/dist/components/ui/atoms/icons/mailchimp.d.ts.map +1 -0
  202. package/dist/components/ui/atoms/icons/mcp.d.ts +1 -0
  203. package/dist/components/ui/atoms/icons/mcp.d.ts.map +1 -0
  204. package/dist/components/ui/atoms/icons/microsoft-dynamics.d.ts +1 -0
  205. package/dist/components/ui/atoms/icons/microsoft-dynamics.d.ts.map +1 -0
  206. package/dist/components/ui/atoms/icons/microsoft-sharepoint.d.ts +1 -0
  207. package/dist/components/ui/atoms/icons/microsoft-sharepoint.d.ts.map +1 -0
  208. package/dist/components/ui/atoms/icons/microsoft-teams.d.ts +1 -0
  209. package/dist/components/ui/atoms/icons/microsoft-teams.d.ts.map +1 -0
  210. package/dist/components/ui/atoms/icons/microsoft.d.ts +1 -0
  211. package/dist/components/ui/atoms/icons/microsoft.d.ts.map +1 -0
  212. package/dist/components/ui/atoms/icons/miro.d.ts +1 -0
  213. package/dist/components/ui/atoms/icons/miro.d.ts.map +1 -0
  214. package/dist/components/ui/atoms/icons/monday.d.ts +1 -0
  215. package/dist/components/ui/atoms/icons/monday.d.ts.map +1 -0
  216. package/dist/components/ui/atoms/icons/mongodb.d.ts +1 -0
  217. package/dist/components/ui/atoms/icons/mongodb.d.ts.map +1 -0
  218. package/dist/components/ui/atoms/icons/netsuite.d.ts +1 -0
  219. package/dist/components/ui/atoms/icons/netsuite.d.ts.map +1 -0
  220. package/dist/components/ui/atoms/icons/notion.d.ts +1 -0
  221. package/dist/components/ui/atoms/icons/notion.d.ts.map +1 -0
  222. package/dist/components/ui/atoms/icons/oauth.d.ts +1 -0
  223. package/dist/components/ui/atoms/icons/oauth.d.ts.map +1 -0
  224. package/dist/components/ui/atoms/icons/obsidian.d.ts +1 -0
  225. package/dist/components/ui/atoms/icons/obsidian.d.ts.map +1 -0
  226. package/dist/components/ui/atoms/icons/okta.d.ts +1 -0
  227. package/dist/components/ui/atoms/icons/okta.d.ts.map +1 -0
  228. package/dist/components/ui/atoms/icons/one-drive.d.ts +1 -0
  229. package/dist/components/ui/atoms/icons/one-drive.d.ts.map +1 -0
  230. package/dist/components/ui/atoms/icons/outlook-calendar.d.ts +1 -0
  231. package/dist/components/ui/atoms/icons/outlook-calendar.d.ts.map +1 -0
  232. package/dist/components/ui/atoms/icons/outlook-mail.d.ts +1 -0
  233. package/dist/components/ui/atoms/icons/outlook-mail.d.ts.map +1 -0
  234. package/dist/components/ui/atoms/icons/pagerduty.d.ts +1 -0
  235. package/dist/components/ui/atoms/icons/pagerduty.d.ts.map +1 -0
  236. package/dist/components/ui/atoms/icons/pinecone.d.ts +1 -0
  237. package/dist/components/ui/atoms/icons/pinecone.d.ts.map +1 -0
  238. package/dist/components/ui/atoms/icons/pinterest.d.ts +1 -0
  239. package/dist/components/ui/atoms/icons/pinterest.d.ts.map +1 -0
  240. package/dist/components/ui/atoms/icons/pipedrive.d.ts +1 -0
  241. package/dist/components/ui/atoms/icons/pipedrive.d.ts.map +1 -0
  242. package/dist/components/ui/atoms/icons/plaid.d.ts +1 -0
  243. package/dist/components/ui/atoms/icons/plaid.d.ts.map +1 -0
  244. package/dist/components/ui/atoms/icons/postgres.d.ts +1 -0
  245. package/dist/components/ui/atoms/icons/postgres.d.ts.map +1 -0
  246. package/dist/components/ui/atoms/icons/posthog.d.ts +1 -0
  247. package/dist/components/ui/atoms/icons/posthog.d.ts.map +1 -0
  248. package/dist/components/ui/atoms/icons/pylon.d.ts +1 -0
  249. package/dist/components/ui/atoms/icons/pylon.d.ts.map +1 -0
  250. package/dist/components/ui/atoms/icons/quickbooks.d.ts +1 -0
  251. package/dist/components/ui/atoms/icons/quickbooks.d.ts.map +1 -0
  252. package/dist/components/ui/atoms/icons/reddit.d.ts +1 -0
  253. package/dist/components/ui/atoms/icons/reddit.d.ts.map +1 -0
  254. package/dist/components/ui/atoms/icons/salesforce.d.ts +1 -0
  255. package/dist/components/ui/atoms/icons/salesforce.d.ts.map +1 -0
  256. package/dist/components/ui/atoms/icons/shopify.d.ts +1 -0
  257. package/dist/components/ui/atoms/icons/shopify.d.ts.map +1 -0
  258. package/dist/components/ui/atoms/icons/singlestore.d.ts +1 -0
  259. package/dist/components/ui/atoms/icons/singlestore.d.ts.map +1 -0
  260. package/dist/components/ui/atoms/icons/slack.d.ts +1 -0
  261. package/dist/components/ui/atoms/icons/slack.d.ts.map +1 -0
  262. package/dist/components/ui/atoms/icons/snowflake.d.ts +1 -0
  263. package/dist/components/ui/atoms/icons/snowflake.d.ts.map +1 -0
  264. package/dist/components/ui/atoms/icons/splunk.d.ts +1 -0
  265. package/dist/components/ui/atoms/icons/splunk.d.ts.map +1 -0
  266. package/dist/components/ui/atoms/icons/spotify.d.ts +1 -0
  267. package/dist/components/ui/atoms/icons/spotify.d.ts.map +1 -0
  268. package/dist/components/ui/atoms/icons/square.d.ts +1 -0
  269. package/dist/components/ui/atoms/icons/square.d.ts.map +1 -0
  270. package/dist/components/ui/atoms/icons/squarespace.d.ts +1 -0
  271. package/dist/components/ui/atoms/icons/squarespace.d.ts.map +1 -0
  272. package/dist/components/ui/atoms/icons/squareup.d.ts +1 -0
  273. package/dist/components/ui/atoms/icons/squareup.d.ts.map +1 -0
  274. package/dist/components/ui/atoms/icons/stripe.d.ts +1 -0
  275. package/dist/components/ui/atoms/icons/stripe.d.ts.map +1 -0
  276. package/dist/components/ui/atoms/icons/tesla.d.ts +1 -0
  277. package/dist/components/ui/atoms/icons/tesla.d.ts.map +1 -0
  278. package/dist/components/ui/atoms/icons/ticktick.d.ts +1 -0
  279. package/dist/components/ui/atoms/icons/ticktick.d.ts.map +1 -0
  280. package/dist/components/ui/atoms/icons/tiktok.d.ts +1 -0
  281. package/dist/components/ui/atoms/icons/tiktok.d.ts.map +1 -0
  282. package/dist/components/ui/atoms/icons/trello.d.ts +1 -0
  283. package/dist/components/ui/atoms/icons/trello.d.ts.map +1 -0
  284. package/dist/components/ui/atoms/icons/twilio.d.ts +1 -0
  285. package/dist/components/ui/atoms/icons/twilio.d.ts.map +1 -0
  286. package/dist/components/ui/atoms/icons/twitch.d.ts +1 -0
  287. package/dist/components/ui/atoms/icons/twitch.d.ts.map +1 -0
  288. package/dist/components/ui/atoms/icons/vercel.d.ts +1 -0
  289. package/dist/components/ui/atoms/icons/vercel.d.ts.map +1 -0
  290. package/dist/components/ui/atoms/icons/walmart.d.ts +1 -0
  291. package/dist/components/ui/atoms/icons/walmart.d.ts.map +1 -0
  292. package/dist/components/ui/atoms/icons/weaviate.d.ts +1 -0
  293. package/dist/components/ui/atoms/icons/weaviate.d.ts.map +1 -0
  294. package/dist/components/ui/atoms/icons/workday.d.ts +1 -0
  295. package/dist/components/ui/atoms/icons/workday.d.ts.map +1 -0
  296. package/dist/components/ui/atoms/icons/wrike.d.ts +1 -0
  297. package/dist/components/ui/atoms/icons/wrike.d.ts.map +1 -0
  298. package/dist/components/ui/atoms/icons/x.d.ts +1 -0
  299. package/dist/components/ui/atoms/icons/x.d.ts.map +1 -0
  300. package/dist/components/ui/atoms/icons/xero.d.ts +1 -0
  301. package/dist/components/ui/atoms/icons/xero.d.ts.map +1 -0
  302. package/dist/components/ui/atoms/icons/youtube.d.ts +1 -0
  303. package/dist/components/ui/atoms/icons/youtube.d.ts.map +1 -0
  304. package/dist/components/ui/atoms/icons/zendesk.d.ts +1 -0
  305. package/dist/components/ui/atoms/icons/zendesk.d.ts.map +1 -0
  306. package/dist/components/ui/atoms/icons/zoho-books.d.ts +1 -0
  307. package/dist/components/ui/atoms/icons/zoho-books.d.ts.map +1 -0
  308. package/dist/components/ui/atoms/icons/zoho-creator.d.ts +1 -0
  309. package/dist/components/ui/atoms/icons/zoho-creator.d.ts.map +1 -0
  310. package/dist/components/ui/atoms/icons/zoho.d.ts +1 -0
  311. package/dist/components/ui/atoms/icons/zoho.d.ts.map +1 -0
  312. package/dist/components/ui/atoms/icons/zoom.d.ts +1 -0
  313. package/dist/components/ui/atoms/icons/zoom.d.ts.map +1 -0
  314. package/dist/components/ui/atoms/index.d.ts +1 -0
  315. package/dist/components/ui/atoms/index.d.ts.map +1 -0
  316. package/dist/components/ui/atoms/index.js +221 -219
  317. package/dist/components/ui/atoms/input.d.ts +3 -2
  318. package/dist/components/ui/atoms/input.d.ts.map +1 -0
  319. package/dist/components/ui/atoms/input.js +1 -1
  320. package/dist/components/ui/atoms/label.d.ts +3 -2
  321. package/dist/components/ui/atoms/label.d.ts.map +1 -0
  322. package/dist/components/ui/atoms/label.js +6 -6
  323. package/dist/components/ui/atoms/mobile-tooltip.d.ts +1 -0
  324. package/dist/components/ui/atoms/mobile-tooltip.d.ts.map +1 -0
  325. package/dist/components/ui/atoms/popover.d.ts +3 -2
  326. package/dist/components/ui/atoms/popover.d.ts.map +1 -0
  327. package/dist/components/ui/atoms/popover.js +24 -24
  328. package/dist/components/ui/atoms/pro-badge.d.ts +1 -0
  329. package/dist/components/ui/atoms/pro-badge.d.ts.map +1 -0
  330. package/dist/components/ui/atoms/pro-badge.js +6 -6
  331. package/dist/components/ui/atoms/progress.d.ts +3 -2
  332. package/dist/components/ui/atoms/progress.d.ts.map +1 -0
  333. package/dist/components/ui/atoms/progress.js +5 -5
  334. package/dist/components/ui/atoms/radio-group.d.ts +3 -2
  335. package/dist/components/ui/atoms/radio-group.d.ts.map +1 -0
  336. package/dist/components/ui/atoms/radio-group.js +13 -13
  337. package/dist/components/ui/atoms/resizable.d.ts +3 -2
  338. package/dist/components/ui/atoms/resizable.d.ts.map +1 -0
  339. package/dist/components/ui/atoms/resizable.js +2 -2
  340. package/dist/components/ui/atoms/scroll-area.d.ts +3 -2
  341. package/dist/components/ui/atoms/scroll-area.d.ts.map +1 -0
  342. package/dist/components/ui/atoms/scroll-area.js +4 -4
  343. package/dist/components/ui/atoms/select.d.ts +4 -3
  344. package/dist/components/ui/atoms/select.d.ts.map +1 -0
  345. package/dist/components/ui/atoms/select.js +26 -26
  346. package/dist/components/ui/atoms/separator.d.ts +3 -2
  347. package/dist/components/ui/atoms/separator.d.ts.map +1 -0
  348. package/dist/components/ui/atoms/separator.js +6 -6
  349. package/dist/components/ui/atoms/sheet.d.ts +7 -6
  350. package/dist/components/ui/atoms/sheet.d.ts.map +1 -0
  351. package/dist/components/ui/atoms/sheet.js +2 -2
  352. package/dist/components/ui/atoms/sidebar.d.ts +28 -27
  353. package/dist/components/ui/atoms/sidebar.d.ts.map +1 -0
  354. package/dist/components/ui/atoms/sidebar.js +30 -30
  355. package/dist/components/ui/atoms/skeleton.d.ts +2 -1
  356. package/dist/components/ui/atoms/skeleton.d.ts.map +1 -0
  357. package/dist/components/ui/atoms/skeleton.js +1 -1
  358. package/dist/components/ui/atoms/slider.d.ts +3 -2
  359. package/dist/components/ui/atoms/slider.d.ts.map +1 -0
  360. package/dist/components/ui/atoms/slider.js +4 -4
  361. package/dist/components/ui/atoms/switch.d.ts +3 -2
  362. package/dist/components/ui/atoms/switch.d.ts.map +1 -0
  363. package/dist/components/ui/atoms/switch.js +3 -3
  364. package/dist/components/ui/atoms/table.d.ts +9 -8
  365. package/dist/components/ui/atoms/table.d.ts.map +1 -0
  366. package/dist/components/ui/atoms/table.js +1 -1
  367. package/dist/components/ui/atoms/tabs.d.ts +3 -2
  368. package/dist/components/ui/atoms/tabs.d.ts.map +1 -0
  369. package/dist/components/ui/atoms/tabs.js +12 -12
  370. package/dist/components/ui/atoms/textarea.d.ts +3 -2
  371. package/dist/components/ui/atoms/textarea.d.ts.map +1 -0
  372. package/dist/components/ui/atoms/textarea.js +1 -1
  373. package/dist/components/ui/atoms/toggle.d.ts +3 -2
  374. package/dist/components/ui/atoms/toggle.d.ts.map +1 -0
  375. package/dist/components/ui/atoms/toggle.js +12 -12
  376. package/dist/components/ui/atoms/tooltip.d.ts +3 -2
  377. package/dist/components/ui/atoms/tooltip.d.ts.map +1 -0
  378. package/dist/components/ui/atoms/tooltip.js +23 -23
  379. package/dist/components/ui/atoms/view-tools-control.d.ts +2 -1
  380. package/dist/components/ui/atoms/view-tools-control.d.ts.map +1 -0
  381. package/dist/components/ui/atoms/view-tools-control.js +10 -10
  382. package/dist/components/ui/index.d.ts +1 -0
  383. package/dist/components/ui/index.d.ts.map +1 -0
  384. package/dist/components/ui/index.js +234 -232
  385. package/dist/components/ui/molecules/empty-state.d.ts +2 -1
  386. package/dist/components/ui/molecules/empty-state.d.ts.map +1 -0
  387. package/dist/components/ui/molecules/index.d.ts +1 -0
  388. package/dist/components/ui/molecules/index.d.ts.map +1 -0
  389. package/dist/components/ui/molecules/index.js +1 -1
  390. package/dist/components/ui/molecules/requirement-badges.d.ts +3 -2
  391. package/dist/components/ui/molecules/requirement-badges.d.ts.map +1 -0
  392. package/dist/components/ui/molecules/requirement-badges.js +3 -3
  393. package/dist/components/ui/molecules/tool-card.d.ts +3 -2
  394. package/dist/components/ui/molecules/tool-card.d.ts.map +1 -0
  395. package/dist/components/ui/molecules/tool-card.js +14 -14
  396. package/dist/components/ui/molecules/toolkit-card.d.ts +5 -4
  397. package/dist/components/ui/molecules/toolkit-card.d.ts.map +1 -0
  398. package/dist/components/ui/molecules/toolkit-card.js +5 -5
  399. package/dist/components/ui/molecules/toolkit-picker-trigger.d.ts +3 -2
  400. package/dist/components/ui/molecules/toolkit-picker-trigger.d.ts.map +1 -0
  401. package/dist/components/ui/molecules/toolkit-picker-trigger.js +14 -14
  402. package/dist/components/ui/molecules/toolkit-selection-summary.d.ts +1 -0
  403. package/dist/components/ui/molecules/toolkit-selection-summary.d.ts.map +1 -0
  404. package/dist/components/ui/molecules/toolkit-selection-summary.js +1 -1
  405. package/dist/components/ui/organisms/index.d.ts +1 -0
  406. package/dist/components/ui/organisms/index.d.ts.map +1 -0
  407. package/dist/components/ui/organisms/toolkit-picker/components/action-buttons.d.ts +1 -0
  408. package/dist/components/ui/organisms/toolkit-picker/components/action-buttons.d.ts.map +1 -0
  409. package/dist/components/ui/organisms/toolkit-picker/components/action-buttons.js +1 -1
  410. package/dist/components/ui/organisms/toolkit-picker/components/filter-badges.d.ts +1 -0
  411. package/dist/components/ui/organisms/toolkit-picker/components/filter-badges.d.ts.map +1 -0
  412. package/dist/components/ui/organisms/toolkit-picker/components/filter-badges.js +10 -10
  413. package/dist/components/ui/organisms/toolkit-picker/components/footer-summary.d.ts +1 -0
  414. package/dist/components/ui/organisms/toolkit-picker/components/footer-summary.d.ts.map +1 -0
  415. package/dist/components/ui/organisms/toolkit-picker/components/search-input.d.ts +1 -0
  416. package/dist/components/ui/organisms/toolkit-picker/components/search-input.d.ts.map +1 -0
  417. package/dist/components/ui/organisms/toolkit-picker/components/search-input.js +6 -6
  418. package/dist/components/ui/organisms/toolkit-picker/components/select-button.d.ts +1 -0
  419. package/dist/components/ui/organisms/toolkit-picker/components/select-button.d.ts.map +1 -0
  420. package/dist/components/ui/organisms/toolkit-picker/components/select-button.js +1 -1
  421. package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.d.ts +2 -1
  422. package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.d.ts.map +1 -0
  423. package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.js +1 -1
  424. package/dist/components/ui/organisms/toolkit-picker/components/toolkit-list.d.ts +1 -0
  425. package/dist/components/ui/organisms/toolkit-picker/components/toolkit-list.d.ts.map +1 -0
  426. package/dist/components/ui/organisms/toolkit-picker/components/toolkit-list.js +2 -2
  427. package/dist/components/ui/organisms/toolkit-picker/components/tools-list.d.ts +1 -0
  428. package/dist/components/ui/organisms/toolkit-picker/components/tools-list.d.ts.map +1 -0
  429. package/dist/components/ui/organisms/toolkit-picker/components/tools-list.js +2 -2
  430. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.d.ts +3 -2
  431. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.d.ts.map +1 -0
  432. package/dist/components/ui/organisms/toolkit-picker/index.d.ts +3 -2
  433. package/dist/components/ui/organisms/toolkit-picker/index.d.ts.map +1 -0
  434. package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.d.ts +1 -0
  435. package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.d.ts.map +1 -0
  436. package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.d.ts +1 -0
  437. package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.d.ts.map +1 -0
  438. package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.js +25 -25
  439. package/dist/components/ui/utils/memo.d.ts +1 -0
  440. package/dist/components/ui/utils/memo.d.ts.map +1 -0
  441. package/dist/global.d.ts +8 -8
  442. package/dist/hooks/use-mobile.d.ts +1 -0
  443. package/dist/hooks/use-mobile.d.ts.map +1 -0
  444. package/dist/hooks/use-mobile.js +3 -1
  445. package/dist/{index-DH9yRdVk.js → index-8kzT5-zz.js} +2 -2
  446. package/dist/{index-BGfrl8IX.js → index-BaLuVb4t.js} +1 -1
  447. package/dist/{index-DfNPZZ8M.js → index-Bw62B28F.js} +1 -1
  448. package/dist/{index-D7PrNma3.js → index-C8tglJS9.js} +9 -9
  449. package/dist/{index-BvWMjxZ5.js → index-CvA4FcaC.js} +172 -169
  450. package/dist/{index-5Bhkapwi.js → index-D2LZVjSn.js} +1 -1
  451. package/dist/{index-CxO14pcK.js → index-DJQkmo5O.js} +4 -2
  452. package/dist/{index-CpDnqHCm.js → index-DLohNuco.js} +2 -2
  453. package/dist/{index-DYHsXnnS.js → index-DrFfdHac.js} +2 -2
  454. package/dist/{index-BDIfjxqB.js → index-DrlYGDRT.js} +3 -3
  455. package/dist/{index-DMCYNwtg.js → index-Dz8CQngS.js} +3 -3
  456. package/dist/{index-BDE30rcJ.js → index-r7CUvu2m.js} +1 -1
  457. package/dist/integrations/rhf/index.d.ts +1 -0
  458. package/dist/integrations/rhf/index.d.ts.map +1 -0
  459. package/dist/lib/arcade/arcade.d.ts +2 -1
  460. package/dist/lib/arcade/arcade.d.ts.map +1 -0
  461. package/dist/lib/arcade/arcade.js +1 -1
  462. package/dist/lib/arcade/mocks.d.ts +1 -0
  463. package/dist/lib/arcade/mocks.d.ts.map +1 -0
  464. package/dist/lib/utils.d.ts +1 -0
  465. package/dist/lib/utils.d.ts.map +1 -0
  466. package/dist/lib/utils.js +1 -1
  467. package/dist/main.d.ts +1 -0
  468. package/dist/main.d.ts.map +1 -0
  469. package/dist/main.js +260 -258
  470. package/dist/metadata/constants.d.ts +1 -0
  471. package/dist/metadata/constants.d.ts.map +1 -0
  472. package/dist/metadata/index.d.ts +1 -0
  473. package/dist/metadata/index.d.ts.map +1 -0
  474. package/dist/metadata/oauth-providers.d.ts +1 -0
  475. package/dist/metadata/oauth-providers.d.ts.map +1 -0
  476. package/dist/metadata/toolkit-icons.d.ts +1 -0
  477. package/dist/metadata/toolkit-icons.d.ts.map +1 -0
  478. package/dist/metadata/toolkit-icons.js +108 -106
  479. package/dist/metadata/toolkits.d.ts +1 -0
  480. package/dist/metadata/toolkits.d.ts.map +1 -0
  481. package/dist/metadata/toolkits.js +277 -264
  482. package/dist/metadata/types.d.ts +3 -2
  483. package/dist/metadata/types.d.ts.map +1 -0
  484. package/dist/metadata/utils.d.ts +1 -0
  485. package/dist/metadata/utils.d.ts.map +1 -0
  486. package/dist/{toolkit-card-BzIa8ZXI.js → toolkit-card-CsV6xoOG.js} +14 -14
  487. package/dist/{utils-Db4QWi-E.js → utils-6KgZuQUR.js} +523 -490
  488. package/dist/vite-env.d.ts +4 -4
  489. package/package.json +125 -145
  490. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-filter.test.d.ts +0 -1
  491. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-filter.test.js +0 -40
  492. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-search.test.d.ts +0 -1
  493. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-search.test.js +0 -46
  494. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-selection.test.d.ts +0 -1
  495. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-selection.test.js +0 -28
  496. package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.test.d.ts +0 -0
  497. package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.test.js +0 -11922
  498. package/dist/components/ui/utils/memo.test.d.ts +0 -1
  499. package/dist/components/ui/utils/memo.test.js +0 -36
  500. package/dist/lib/arcade/arcade.test.d.ts +0 -1
  501. package/dist/lib/arcade/arcade.test.js +0 -309
  502. package/dist/lib/utils.test.d.ts +0 -1
  503. package/dist/lib/utils.test.js +0 -43
  504. package/dist/magic-string.es-uPKorP4O.js +0 -663
  505. package/dist/react.esm-DmVc5fnS.js +0 -37615
  506. package/dist/vi.bdSIJ99Y-C84beQ4-.js +0 -11684
@@ -1 +0,0 @@
1
- export {};
@@ -1,36 +0,0 @@
1
- import { createPropsComparator as s, areStringArraysEqual as a } from "./memo.js";
2
- import { d as i, i as t, g as e } from "../../../vi.bdSIJ99Y-C84beQ4-.js";
3
- i("createPropsComparator", () => {
4
- t("returns true when selected keys are strictly equal", () => {
5
- const r = s(["id", "name"]);
6
- e(r({ id: 1, name: "Alice", active: !0 }, { id: 1, name: "Alice", active: !1 })).toBe(!0);
7
- }), t("returns false when a selected key changes", () => {
8
- const r = s(["id", "name"]);
9
- e(r({ id: 1, name: "Alice", active: !0 }, { id: 2, name: "Alice", active: !0 })).toBe(!1);
10
- }), t("ignores changes on non-selected keys", () => {
11
- const r = s(["id"]);
12
- e(r({ id: 1, name: "Alice", active: !0 }, { id: 1, name: "Bob", active: !1 })).toBe(!0);
13
- }), t("treats NaN as equal and +0/-0 as different per Object.is", () => {
14
- const r = s(["a", "b"]), n = { a: Number.NaN, b: 0 }, o = { a: Number.NaN, b: 0 };
15
- e(r(n, o)).toBe(!0), e(r({ a: 0, b: 1 }, { a: -0, b: 1 })).toBe(!1);
16
- }), t("returns true when no keys are provided", () => {
17
- const r = s([]);
18
- e(r({}, {})).toBe(!0);
19
- });
20
- });
21
- i("areStringArraysEqual", () => {
22
- t("returns true for the same reference", () => {
23
- const r = ["a", "b"];
24
- e(a(r, r)).toBe(!0);
25
- }), t("returns true for equal arrays with same order", () => {
26
- e(a(["a", "b"], ["a", "b"])).toBe(!0);
27
- }), t("returns false for arrays with different lengths", () => {
28
- e(a(["a"], ["a", "b"])).toBe(!1);
29
- }), t("returns false for arrays with same items in different order", () => {
30
- e(a(["a", "b"], ["b", "a"])).toBe(!1);
31
- }), t("treats undefined and null as empty arrays", () => {
32
- e(a(void 0, void 0)).toBe(!0), e(a(null, void 0)).toBe(!0), e(a(void 0, [])).toBe(!0), e(a(null, [])).toBe(!0);
33
- }), t("compares strings case-sensitively", () => {
34
- e(a(["A"], ["a"])).toBe(!1);
35
- });
36
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,309 +0,0 @@
1
- import { ArcadeClient as i } from "./arcade.js";
2
- import { allTools as u } from "./mocks.js";
3
- import { v as l, d as m, b as p, i as s, g as e } from "../../vi.bdSIJ99Y-C84beQ4-.js";
4
- const { mockToolsList: d, mockConstructorSpy: c } = l.hoisted(() => ({
5
- mockToolsList: l.fn(),
6
- mockConstructorSpy: l.fn()
7
- }));
8
- d.mockImplementation((o) => {
9
- let t = u;
10
- return o?.toolkit && (t = u.filter(
11
- (a) => a.toolkit.name.toLowerCase() === o.toolkit.toLowerCase()
12
- )), Promise.resolve({
13
- items: t
14
- });
15
- });
16
- l.mock("@arcadeai/arcadejs", () => {
17
- class o {
18
- constructor(a) {
19
- c(a), this.tools = {
20
- list: d
21
- };
22
- }
23
- tools;
24
- }
25
- return {
26
- Arcade: o
27
- };
28
- });
29
- l.mock("../utils", () => ({
30
- // biome-ignore lint/suspicious/noEmptyBlockStatements: This is a mock
31
- resolveEnv: l.fn(() => {
32
- })
33
- }));
34
- m("Arcade Tests", () => {
35
- p(() => {
36
- l.clearAllMocks();
37
- }), s("should create an arcade instance", () => {
38
- const o = new i({
39
- arcadeClientId: "test-client-id",
40
- apiKey: "test-api-key"
41
- });
42
- e(o).toBeDefined();
43
- }), s("should create an arcade instance with access token", () => {
44
- const o = new i({
45
- arcadeClientId: "test-client-id",
46
- accessToken: "test-token"
47
- });
48
- e(o).toBeDefined(), e(c).toHaveBeenCalledWith(
49
- e.objectContaining({
50
- defaultHeaders: e.objectContaining({
51
- "Arcade-Client-Id": "test-client-id",
52
- Authorization: "Bearer test-token"
53
- })
54
- })
55
- );
56
- }), s("should create an arcade instance with API key", () => {
57
- const o = new i({
58
- arcadeClientId: "test-client-id",
59
- apiKey: "test-api-key"
60
- });
61
- e(o).toBeDefined(), e(c).toHaveBeenCalledWith(
62
- e.objectContaining({
63
- apiKey: "test-api-key",
64
- defaultHeaders: e.not.objectContaining({
65
- Authorization: e.any(String)
66
- })
67
- })
68
- );
69
- }), s("should create an arcade instance with all config options", () => {
70
- const o = new i({
71
- arcadeClientId: "test-client-id",
72
- accessToken: "test-token",
73
- apiKey: "test-api-key"
74
- });
75
- e(o).toBeDefined(), e(c).toHaveBeenCalledWith(
76
- e.objectContaining({
77
- apiKey: "test-api-key",
78
- defaultHeaders: e.not.objectContaining({
79
- Authorization: e.any(String)
80
- })
81
- })
82
- );
83
- }), s("should use static create method", () => {
84
- const o = i.create({
85
- arcadeClientId: "test-client-id",
86
- apiKey: "test-api-key"
87
- });
88
- e(o).toBeDefined();
89
- }), s("should return all tools", async () => {
90
- const t = await new i({
91
- arcadeClientId: "test-client-id",
92
- apiKey: "test-api-key"
93
- }).getAllTools();
94
- e(t).toBeDefined(), e(t).toHaveLength(16);
95
- }), s("should pass default limit/offset to list call", async () => {
96
- await new i({
97
- arcadeClientId: "test-client-id",
98
- apiKey: "test-api-key"
99
- }).getAllTools(), e(d).toHaveBeenCalledWith(
100
- e.objectContaining({ limit: 25e3, offset: 0 })
101
- );
102
- }), s("should filter tools by toolkit", async () => {
103
- const t = await new i({
104
- arcadeClientId: "test-client-id",
105
- apiKey: "test-api-key"
106
- }).getAllTools({ toolkit: "E2b" });
107
- e(t).toBeDefined(), e(t).toHaveLength(1), e(t[0].name).toBe("CreateStaticMatplotlibChart"), e(t[0].toolkit.name).toBe("E2b");
108
- }), s("should pass provided limit/offset/toolkit to list call", async () => {
109
- await new i({
110
- arcadeClientId: "test-client-id",
111
- apiKey: "test-api-key"
112
- }).getAllTools({ toolkit: "Gmail", limit: 5, offset: 10 }), e(d).toHaveBeenCalledWith(
113
- e.objectContaining({ toolkit: "Gmail", limit: 5, offset: 10 })
114
- );
115
- }), s("should filter tools by toolkit case insensitive", async () => {
116
- const o = new i({
117
- arcadeClientId: "test-client-id",
118
- apiKey: "test-api-key"
119
- }), t = await o.getAllTools({ toolkit: "e2b" });
120
- e(t).toBeDefined(), e(t).toHaveLength(1), e(t[0].name).toBe("CreateStaticMatplotlibChart"), e(t[0].toolkit.name).toBe("E2b");
121
- const a = await o.getAllTools({ toolkit: "E2B" });
122
- e(a).toBeDefined(), e(a).toHaveLength(1), e(a[0].name).toBe("CreateStaticMatplotlibChart"), e(a[0].toolkit.name).toBe("E2b");
123
- const n = await o.getAllTools({ toolkit: "E2B" });
124
- e(n).toBeDefined(), e(n).toHaveLength(1), e(n[0].name).toBe("CreateStaticMatplotlibChart"), e(n[0].toolkit.name).toBe("E2b");
125
- }), s("should process basic toolkit with no requirements", async () => {
126
- const t = await new i({
127
- arcadeClientId: "test-client-id",
128
- apiKey: "test-api-key"
129
- }).getToolkits();
130
- e(t.get("basic")).toBeDefined(), e(t.get("basic")?.tools).toHaveLength(1), e(t.get("basic")?.requirements.met).toBe(!0), e(t.get("basic")?.requirements.secrets).toHaveLength(0), e(t.get("basic")?.requirements.authorization).toHaveLength(0), e(t.get("basic")?.requirements.scopes).toEqual({});
131
- }), s("should process API toolkit with secret requirements", async () => {
132
- const t = await new i({
133
- arcadeClientId: "test-client-id",
134
- apiKey: "test-api-key"
135
- }).getToolkits();
136
- e(t.get("api_toolkit")).toBeDefined(), e(t.get("api_toolkit")?.requirements.met).toBe(!1), e(t.get("api_toolkit")?.requirements.secrets).toHaveLength(3), e(
137
- t.get("api_toolkit")?.requirements.secrets?.find((a) => a.key === "GROQ_API_KEY")
138
- ).toBeDefined(), e(
139
- t.get("api_toolkit")?.requirements.secrets?.find((a) => a.key === "OPENAI_API_KEY")
140
- ).toBeDefined(), e(
141
- t.get("api_toolkit")?.requirements.secrets?.find((a) => a.key === "ARCADE_API_KEY")
142
- ).not.toBeDefined();
143
- }), s("should process OAuth toolkit with authorization requirements", async () => {
144
- const t = await new i({
145
- arcadeClientId: "test-client-id",
146
- apiKey: "test-api-key"
147
- }).getToolkits();
148
- e(t.get("oauth_toolkit")).toBeDefined(), e(t.get("oauth_toolkit")?.requirements.met).toBe(!1), e(
149
- t.get("oauth_toolkit")?.requirements.authorization
150
- ).toHaveLength(1), e(t.get("oauth_toolkit")?.requirements.scopes).toEqual({
151
- google: [
152
- "https://www.googleapis.com/auth/calendar.readonly",
153
- "https://www.googleapis.com/auth/drive",
154
- "https://www.googleapis.com/auth/gmail.readonly"
155
- ]
156
- }), e(t.get("oauth_toolkit")?.requirements.secrets).toHaveLength(0);
157
- }), s("should process GitHub toolkit with specific scopes", async () => {
158
- const t = await new i({
159
- arcadeClientId: "test-client-id",
160
- apiKey: "test-api-key"
161
- }).getToolkits();
162
- e(t.get("github_toolkit")).toBeDefined(), e(t.get("github_toolkit")?.requirements.met).toBe(!1), e(
163
- t.get("github_toolkit")?.requirements.authorization?.find((a) => a.provider_id === "github")
164
- ).toBeDefined(), e(t.get("github_toolkit")?.requirements.scopes).toEqual({
165
- github: ["repo", "user", "issues"]
166
- });
167
- }), s("should process Google toolkit with met requirements", async () => {
168
- const t = await new i({
169
- arcadeClientId: "test-client-id",
170
- apiKey: "test-api-key"
171
- }).getToolkits();
172
- e(t.get("Google")).toBeDefined(), e(t.get("Google")?.requirements.met).toBe(!0), e(t.get("Google")?.requirements.authorization).toHaveLength(1), e(t.get("Google")?.requirements.scopes).toEqual({
173
- google: ["https://www.googleapis.com/auth/drive.file"]
174
- });
175
- }), s("should process E2b toolkit with unmet secret requirements", async () => {
176
- const t = await new i({
177
- arcadeClientId: "test-client-id",
178
- apiKey: "test-api-key"
179
- }).getToolkits();
180
- e(t.get("E2b")).toBeDefined(), e(t.get("E2b")?.requirements.met).toBe(!1), e(t.get("E2b")?.requirements.secrets).toHaveLength(1), e(t.get("E2b")?.requirements.secrets?.[0]).toEqual({
181
- key: "e2b_api_key",
182
- met: !1,
183
- status_reason: "Secret e2b_api_key not found"
184
- });
185
- }), s("should process Gmail toolkit with met authorization requirements", async () => {
186
- const t = await new i({
187
- arcadeClientId: "test-client-id",
188
- apiKey: "test-api-key"
189
- }).getToolkits();
190
- e(t.get("Gmail")).toBeDefined(), e(t.get("Gmail")?.requirements.met).toBe(!0), e(t.get("Gmail")?.requirements.authorization).toHaveLength(1), e(t.get("Gmail")?.requirements.scopes).toEqual({
191
- google: [
192
- "https://www.googleapis.com/auth/gmail.modify",
193
- "https://www.googleapis.com/auth/gmail.labels"
194
- ]
195
- });
196
- }), s("should merge OAuth scopes correctly", async () => {
197
- const a = (await new i({
198
- arcadeClientId: "test-client-id",
199
- apiKey: "test-api-key"
200
- }).getToolkits()).get("oauth_toolkit");
201
- e(a?.requirements.scopes?.google).toContain(
202
- "https://www.googleapis.com/auth/calendar.readonly"
203
- ), e(a?.requirements.scopes?.google).toContain(
204
- "https://www.googleapis.com/auth/drive"
205
- ), e(a?.requirements.scopes?.google).toContain(
206
- "https://www.googleapis.com/auth/gmail.readonly"
207
- );
208
- const n = new Set(a?.requirements.scopes?.google);
209
- e(n.size).toBe(
210
- a?.requirements.scopes?.google?.length
211
- );
212
- }), s("should handle tools with no requirements", async () => {
213
- const a = (await new i({
214
- arcadeClientId: "test-client-id",
215
- apiKey: "test-api-key"
216
- }).getToolkits()).get("basic");
217
- e(a?.requirements.met).toBe(!0), e(a?.requirements.secrets).toHaveLength(0), e(a?.requirements.authorization).toHaveLength(0), e(a?.requirements.scopes).toEqual({});
218
- }), s("should merge secrets correctly", async () => {
219
- const a = (await new i({
220
- arcadeClientId: "test-client-id",
221
- apiKey: "test-api-key"
222
- }).getToolkits()).get("api_toolkit");
223
- e(a?.requirements.secrets).toHaveLength(3);
224
- const n = a?.requirements.secrets?.filter(
225
- (g) => g.key === "OPENAI_API_KEY"
226
- ) || [], r = a?.requirements.secrets?.filter(
227
- (g) => g.key === "GROQ_API_KEY"
228
- ) || [];
229
- e(n).toHaveLength(1), e(n[0].met).toBe(!0), e(r[0].met).toBe(!1), e(a?.requirements.met).toBe(!1), e(n[0].status_reason).toBe("API key configured"), e(r[0].status_reason).toBe("API key not configured");
230
- }), s("should merge OAuth scopes from multiple Google services", async () => {
231
- const t = await new i({
232
- arcadeClientId: "test-client-id",
233
- apiKey: "test-api-key"
234
- }).getToolkits();
235
- e(t.get("Google")?.requirements.scopes?.google).toContain(
236
- "https://www.googleapis.com/auth/drive.file"
237
- ), e(t.get("Gmail")?.requirements.scopes?.google).toContain(
238
- "https://www.googleapis.com/auth/gmail.modify"
239
- ), e(t.get("Gmail")?.requirements.scopes?.google).toContain(
240
- "https://www.googleapis.com/auth/gmail.labels"
241
- ), e(
242
- t.get("oauth_toolkit")?.requirements.scopes?.google
243
- ).toContain("https://www.googleapis.com/auth/calendar.readonly"), e(
244
- t.get("oauth_toolkit")?.requirements.scopes?.google
245
- ).toContain("https://www.googleapis.com/auth/drive"), e(
246
- t.get("oauth_toolkit")?.requirements.scopes?.google
247
- ).toContain("https://www.googleapis.com/auth/gmail.readonly");
248
- const a = t.get("Google")?.requirements.scopes?.google || [], n = t.get("Gmail")?.requirements.scopes?.google || [], r = t.get("oauth_toolkit")?.requirements.scopes?.google || [];
249
- e(new Set(a).size).toBe(a.length), e(new Set(n).size).toBe(n.length), e(new Set(r).size).toBe(r.length);
250
- }), s("should get tools for specific toolkit", async () => {
251
- const t = await new i({
252
- arcadeClientId: "test-client-id",
253
- apiKey: "test-api-key"
254
- }).getToolsForToolkit("E2b");
255
- e(t).toBeDefined(), e(t).toHaveLength(1), e(t[0].name).toBe("CreateStaticMatplotlibChart"), e(t[0].toolkit.name).toBe("E2b");
256
- }), s("should call list with toolkit and default limit when getting tools for a toolkit", async () => {
257
- await new i({
258
- arcadeClientId: "test-client-id",
259
- apiKey: "test-api-key"
260
- }).getToolsForToolkit("Gmail"), e(d).toHaveBeenCalledWith(
261
- e.objectContaining({ toolkit: "Gmail", limit: 25e3 })
262
- );
263
- }), s("should group tools by a string key", async () => {
264
- const t = await new i({
265
- arcadeClientId: "test-client-id",
266
- apiKey: "test-api-key"
267
- }).groupToolsBy("fully_qualified_name");
268
- e(t.get("gmail.gmail_get_inbox")?.name).toBe(
269
- "gmail_get_inbox"
270
- ), e(t.get("Gmail.CreateLabel@2.0.0")?.name).toBe(
271
- "CreateLabel"
272
- ), e(t.get("Google.CreateBlankDocument@1.2.4")?.name).toBe(
273
- "CreateBlankDocument"
274
- );
275
- }), s("should ignore non-string grouping keys", async () => {
276
- const t = await new i({
277
- arcadeClientId: "test-client-id",
278
- apiKey: "test-api-key"
279
- }).groupToolsBy("input");
280
- e(t.size).toBe(0);
281
- }), s("should honor baseURL when provided", () => {
282
- const o = new i({
283
- arcadeClientId: "test-client-id",
284
- apiKey: "test-api-key",
285
- baseURL: "https://example.test"
286
- });
287
- e(o).toBeDefined(), e(c).toHaveBeenCalledWith(
288
- e.objectContaining({ baseURL: "https://example.test" })
289
- );
290
- }), s("should build a processed toolkit collection with search indices", async () => {
291
- const t = await new i({
292
- arcadeClientId: "test-client-id",
293
- apiKey: "test-api-key"
294
- }).getProcessedToolkitCollection();
295
- e(t.toolkits.length).toBeGreaterThan(0), e(t.tools.length).toBeGreaterThan(0), e(t.toolToToolkitMap.get("gmail.gmail_get_inbox")).toBe(
296
- "Gmail"
297
- ), e(t.searchIndex.toolkitsByName.get("gmail")?.name).toBe(
298
- "Gmail"
299
- ), e(
300
- t.searchIndex.toolsByName.get("gmail.gmail_get_inbox")?.name
301
- ).toBe("gmail_get_inbox");
302
- const a = t.searchIndex.toolsByName.get(
303
- "gmail.gmail_get_inbox"
304
- );
305
- e(a?.searchableText).toContain("gmail"), e(a?.searchableText).toContain("get"), e(a?.searchableText).toContain("inbox");
306
- const n = t.searchIndex.toolkitsByName.get("google");
307
- e(n?.searchableText).toContain("google"), e(n?.searchableText).toContain("arcade"), e(n?.searchableText).toContain("dev"), e(n?.searchableText).toContain("llm"), e(n?.searchableText).toContain("tools"), e(n?.searchableText).toContain("workspace");
308
- });
309
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,43 +0,0 @@
1
- import { c as o, r as s } from "../utils-Db4QWi-E.js";
2
- import { d as r, i as n, g as e, b as v, a as i, v as t } from "../vi.bdSIJ99Y-C84beQ4-.js";
3
- r("cn", () => {
4
- n("joins simple class names", () => {
5
- e(o("a", "b", "c")).toBe("a b c");
6
- }), n("handles arrays and objects and falsy values", () => {
7
- e(
8
- o("base", ["x", !1, null, void 0], {
9
- active: !0,
10
- disabled: !1
11
- })
12
- ).toBe("base x active");
13
- }), n("merges conflicting tailwind classes preferring the last", () => {
14
- e(o("p-2", "p-4")).toBe("p-4"), e(o("px-2 py-1", "px-4")).toBe("py-1 px-4"), e(o("text-red-500", "text-blue-500")).toBe("text-blue-500"), e(o("hover:text-red-500", "hover:text-blue-500")).toBe(
15
- "hover:text-blue-500"
16
- );
17
- });
18
- });
19
- r("resolveEnv", () => {
20
- const _ = { ...process.env };
21
- v(() => {
22
- for (const E of Object.keys(process.env))
23
- process.env[E] = void 0;
24
- t.unstubAllEnvs();
25
- }), i(() => {
26
- process.env = { ..._ }, t.unstubAllEnvs();
27
- }), n("returns undefined when key is not present", () => {
28
- e(s("MISSING_KEY")).toBeUndefined();
29
- }), n("prefers unprefixed key in process.env", () => {
30
- process.env.MY_KEY = "direct", e(s("MY_KEY")).toBe("direct");
31
- }), n("falls back to VITE_ then NEXT_PUBLIC_ then NEXT_ in process.env", () => {
32
- process.env.VITE_MY_KEY = "vite", process.env.NEXT_PUBLIC_MY_KEY = "next_public", process.env.NEXT_MY_KEY = "next", e(s("MY_KEY")).toBe("vite"), process.env.VITE_MY_KEY = void 0, e(s("MY_KEY")).toBe("next_public"), process.env.NEXT_PUBLIC_MY_KEY = void 0, e(s("MY_KEY")).toBe("next");
33
- }), n("uses import.meta.env when not present in process.env", () => {
34
- t.stubEnv("MY_KEY", "from_import_meta"), e(s("MY_KEY")).toBe("from_import_meta");
35
- }), n("honors the same prefix order in import.meta.env", () => {
36
- t.stubEnv("VITE_MY_KEY", "vite"), t.stubEnv("NEXT_PUBLIC_MY_KEY", "next_public"), t.stubEnv("NEXT_MY_KEY", "next"), e(s("MY_KEY")).toBe("vite"), t.unstubAllEnvs(), t.stubEnv("NEXT_PUBLIC_MY_KEY", "next_public"), t.stubEnv("NEXT_MY_KEY", "next"), e(s("MY_KEY")).toBe("next_public"), t.unstubAllEnvs(), t.stubEnv("NEXT_MY_KEY", "next"), e(s("MY_KEY")).toBe("next");
37
- }), n("prefers process.env over import.meta.env when both present", () => {
38
- t.unstubAllEnvs(), process.env.VITE_MY_KEY = "node_vite", Object.defineProperty(import.meta, "env", {
39
- value: { MY_KEY: "from_import_meta", VITE_MY_KEY: "vite_import" },
40
- configurable: !0
41
- }), e(s("MY_KEY")).toBe("node_vite");
42
- });
43
- });