@arcadeai/design-system 1.2.0 → 1.4.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 (361) hide show
  1. package/README.md +95 -0
  2. package/dist/arcade-CadnNaba.js +1543 -0
  3. package/dist/assets/index.css +1 -1
  4. package/dist/components/index.d.ts +1 -0
  5. package/dist/components/index.js +431 -199
  6. package/dist/components/ui/atoms/accordion.js +2 -2
  7. package/dist/components/ui/atoms/alert.js +2 -2
  8. package/dist/components/ui/atoms/avatar.js +3 -3
  9. package/dist/components/ui/atoms/badge.js +2 -2
  10. package/dist/components/ui/atoms/breadcrumb.js +13 -15
  11. package/dist/components/ui/atoms/button.js +2 -2
  12. package/dist/components/ui/atoms/byoc-badge.js +2 -2
  13. package/dist/components/ui/atoms/card.js +1 -1
  14. package/dist/components/ui/atoms/chart.js +1 -1
  15. package/dist/components/ui/atoms/checkbox.js +2 -2
  16. package/dist/components/ui/atoms/collapsible.js +1 -1
  17. package/dist/components/ui/atoms/command.js +2 -2
  18. package/dist/components/ui/atoms/dialog.js +8 -8
  19. package/dist/components/ui/atoms/dropdown-menu.js +3 -3
  20. package/dist/components/ui/atoms/form.d.ts +1 -1
  21. package/dist/components/ui/atoms/form.js +8 -7
  22. package/dist/components/ui/atoms/hover-card.js +3 -3
  23. package/dist/components/ui/atoms/icons/adp.d.ts +3 -0
  24. package/dist/components/ui/atoms/icons/adp.js +40 -0
  25. package/dist/components/ui/atoms/icons/aha.d.ts +3 -0
  26. package/dist/components/ui/atoms/icons/aha.js +28 -0
  27. package/dist/{assets → components/ui/atoms}/icons/airtable.js +4 -0
  28. package/dist/components/ui/atoms/icons/amplitude.d.ts +3 -0
  29. package/dist/components/ui/atoms/icons/amplitude.js +33 -0
  30. package/dist/components/ui/atoms/icons/arcade.d.ts +3 -0
  31. package/dist/components/ui/atoms/icons/arcade.js +33 -0
  32. package/dist/{assets → components/ui/atoms}/icons/asana.js +1 -0
  33. package/dist/components/ui/atoms/icons/ashby.d.ts +3 -0
  34. package/dist/components/ui/atoms/icons/ashby.js +50 -0
  35. package/dist/{assets → components/ui/atoms}/icons/atlassian.js +14 -4
  36. package/dist/{assets → components/ui/atoms}/icons/auth0.js +1 -0
  37. package/dist/{assets → components/ui/atoms}/icons/azure.js +43 -22
  38. package/dist/components/ui/atoms/icons/bamboohr.d.ts +3 -0
  39. package/dist/components/ui/atoms/icons/bamboohr.js +31 -0
  40. package/dist/components/ui/atoms/icons/basecamp.d.ts +3 -0
  41. package/dist/components/ui/atoms/icons/basecamp.js +57 -0
  42. package/dist/components/ui/atoms/icons/bill.d.ts +3 -0
  43. package/dist/components/ui/atoms/icons/bill.js +55 -0
  44. package/dist/components/ui/atoms/icons/bitbucket.d.ts +3 -0
  45. package/dist/components/ui/atoms/icons/bitbucket.js +38 -0
  46. package/dist/{assets → components/ui/atoms}/icons/bluesky.js +1 -0
  47. package/dist/{assets → components/ui/atoms}/icons/box.js +1 -0
  48. package/dist/components/ui/atoms/icons/braze.d.ts +3 -0
  49. package/dist/components/ui/atoms/icons/braze.js +28 -0
  50. package/dist/components/ui/atoms/icons/brex.d.ts +3 -0
  51. package/dist/components/ui/atoms/icons/brex.js +29 -0
  52. package/dist/components/ui/atoms/icons/buffer.d.ts +3 -0
  53. package/dist/components/ui/atoms/icons/buffer.js +33 -0
  54. package/dist/components/ui/atoms/icons/calendly.js +80 -0
  55. package/dist/components/ui/atoms/icons/clickhouse.d.ts +3 -0
  56. package/dist/components/ui/atoms/icons/clickhouse.js +26 -0
  57. package/dist/components/ui/atoms/icons/clickup.d.ts +3 -0
  58. package/dist/{assets → components/ui/atoms}/icons/clickup.js +16 -4
  59. package/dist/components/ui/atoms/icons/closeio.d.ts +3 -0
  60. package/dist/components/ui/atoms/icons/closeio.js +68 -0
  61. package/dist/{assets → components/ui/atoms}/icons/coinbase.js +21 -8
  62. package/dist/{assets → components/ui/atoms}/icons/confluence.js +18 -4
  63. package/dist/{assets → components/ui/atoms}/icons/datadog.js +1 -0
  64. package/dist/components/ui/atoms/icons/digital-ocean.d.ts +3 -0
  65. package/dist/components/ui/atoms/icons/digital-ocean.js +22 -0
  66. package/dist/{assets → components/ui/atoms}/icons/discord.js +1 -0
  67. package/dist/{assets → components/ui/atoms}/icons/dropbox.js +1 -0
  68. package/dist/components/ui/atoms/icons/e2b.d.ts +3 -0
  69. package/dist/components/ui/atoms/icons/e2b.js +19 -0
  70. package/dist/{assets → components/ui/atoms}/icons/ebay.js +4 -0
  71. package/dist/components/ui/atoms/icons/evernote.d.ts +3 -0
  72. package/dist/components/ui/atoms/icons/evernote.js +29 -0
  73. package/dist/components/ui/atoms/icons/factorial.d.ts +3 -0
  74. package/dist/components/ui/atoms/icons/factorial.js +50 -0
  75. package/dist/{assets → components/ui/atoms}/icons/figma.js +18 -2
  76. package/dist/components/ui/atoms/icons/firecrawl.d.ts +3 -0
  77. package/dist/components/ui/atoms/icons/firecrawl.js +19 -0
  78. package/dist/components/ui/atoms/icons/generic.d.ts +3 -0
  79. package/dist/components/ui/atoms/icons/generic.js +27 -0
  80. package/dist/{assets → components/ui/atoms}/icons/github.js +4 -3
  81. package/dist/{assets → components/ui/atoms}/icons/gitlab.js +4 -0
  82. package/dist/{assets → components/ui/atoms}/icons/gmail.js +11 -2
  83. package/dist/components/ui/atoms/icons/google-calendar.js +98 -0
  84. package/dist/{assets → components/ui/atoms}/icons/google-contacts.js +4 -0
  85. package/dist/components/ui/atoms/icons/google-docs.js +328 -0
  86. package/dist/{assets → components/ui/atoms}/icons/google-drive.js +6 -0
  87. package/dist/{assets → components/ui/atoms}/icons/google-finance.js +8 -1
  88. package/dist/{assets → components/ui/atoms}/icons/google-flight.js +49 -20
  89. package/dist/components/ui/atoms/icons/google-flights.d.ts +3 -0
  90. package/dist/components/ui/atoms/icons/google-flights.js +109 -0
  91. package/dist/{assets → components/ui/atoms}/icons/google-hotels.js +10 -1
  92. package/dist/components/ui/atoms/icons/google-jobs.d.ts +3 -0
  93. package/dist/components/ui/atoms/icons/google-jobs.js +103 -0
  94. package/dist/{assets → components/ui/atoms}/icons/google-maps.js +5 -0
  95. package/dist/{assets → components/ui/atoms}/icons/google-news.js +27 -3
  96. package/dist/{assets → components/ui/atoms}/icons/google-sheets.js +3 -0
  97. package/dist/{assets → components/ui/atoms}/icons/google-shopping.js +9 -1
  98. package/dist/components/ui/atoms/icons/google-slides.d.ts +3 -0
  99. package/dist/components/ui/atoms/icons/google-slides.js +243 -0
  100. package/dist/{assets → components/ui/atoms}/icons/google.js +4 -0
  101. package/dist/{assets → components/ui/atoms}/icons/heroku.js +1 -0
  102. package/dist/components/ui/atoms/icons/hootsuite.d.ts +3 -0
  103. package/dist/components/ui/atoms/icons/hootsuite.js +43 -0
  104. package/dist/components/ui/atoms/icons/hubspot.d.ts +3 -0
  105. package/dist/{assets → components/ui/atoms}/icons/hubspot.js +2 -1
  106. package/dist/{assets → components/ui/atoms}/icons/index.d.ts +48 -0
  107. package/dist/components/ui/atoms/icons/index.js +220 -0
  108. package/dist/components/ui/atoms/icons/intercom.d.ts +3 -0
  109. package/dist/components/ui/atoms/icons/intercom.js +26 -0
  110. package/dist/{assets → components/ui/atoms}/icons/jira.js +15 -7
  111. package/dist/{assets → components/ui/atoms}/icons/linear.js +1 -0
  112. package/dist/components/ui/atoms/icons/linkedin.d.ts +3 -0
  113. package/dist/{assets → components/ui/atoms}/icons/linkedin.js +5 -4
  114. package/dist/components/ui/atoms/icons/mailchimp.d.ts +3 -0
  115. package/dist/components/ui/atoms/icons/mailchimp.js +70 -0
  116. package/dist/components/ui/atoms/icons/mcp.d.ts +3 -0
  117. package/dist/components/ui/atoms/icons/mcp.js +23 -0
  118. package/dist/components/ui/atoms/icons/microsoft-dynamics.d.ts +3 -0
  119. package/dist/components/ui/atoms/icons/microsoft-dynamics.js +172 -0
  120. package/dist/components/ui/atoms/icons/microsoft-sharepoint.d.ts +3 -0
  121. package/dist/components/ui/atoms/icons/microsoft-sharepoint.js +88 -0
  122. package/dist/components/ui/atoms/icons/microsoft-teams.d.ts +3 -0
  123. package/dist/components/ui/atoms/icons/microsoft-teams.js +119 -0
  124. package/dist/{assets → components/ui/atoms}/icons/microsoft.js +4 -0
  125. package/dist/components/ui/atoms/icons/miro.d.ts +3 -0
  126. package/dist/components/ui/atoms/icons/miro.js +35 -0
  127. package/dist/components/ui/atoms/icons/monday.d.ts +3 -0
  128. package/dist/components/ui/atoms/icons/monday.js +60 -0
  129. package/dist/components/ui/atoms/icons/netsuite.d.ts +3 -0
  130. package/dist/{assets → components/ui/atoms}/icons/netsuite.js +35 -26
  131. package/dist/{assets → components/ui/atoms}/icons/notion.js +2 -0
  132. package/dist/components/ui/atoms/icons/oauth.d.ts +3 -0
  133. package/dist/{assets → components/ui/atoms}/icons/oauth.js +66 -8
  134. package/dist/components/ui/atoms/icons/obsidian.d.ts +3 -0
  135. package/dist/components/ui/atoms/icons/obsidian.js +220 -0
  136. package/dist/components/ui/atoms/icons/okta.d.ts +3 -0
  137. package/dist/components/ui/atoms/icons/okta.js +56 -0
  138. package/dist/components/ui/atoms/icons/one-drive.d.ts +3 -0
  139. package/dist/components/ui/atoms/icons/one-drive.js +38 -0
  140. package/dist/{assets → components/ui/atoms}/icons/outlook-calendar.js +18 -0
  141. package/dist/{assets → components/ui/atoms}/icons/outlook-mail.js +4 -0
  142. package/dist/components/ui/atoms/icons/pinecone.d.ts +3 -0
  143. package/dist/components/ui/atoms/icons/pinecone.js +29 -0
  144. package/dist/{assets → components/ui/atoms}/icons/pinterest.js +1 -0
  145. package/dist/components/ui/atoms/icons/pipedrive.d.ts +3 -0
  146. package/dist/components/ui/atoms/icons/pipedrive.js +59 -0
  147. package/dist/components/ui/atoms/icons/plaid.d.ts +3 -0
  148. package/dist/components/ui/atoms/icons/plaid.js +37 -0
  149. package/dist/{assets → components/ui/atoms}/icons/postgres.js +30 -20
  150. package/dist/components/ui/atoms/icons/quickbooks.d.ts +3 -0
  151. package/dist/components/ui/atoms/icons/quickbooks.js +25 -0
  152. package/dist/components/ui/atoms/icons/reddit.js +315 -0
  153. package/dist/{assets → components/ui/atoms}/icons/salesforce.js +3 -0
  154. package/dist/{assets → components/ui/atoms}/icons/shopify.js +3 -0
  155. package/dist/components/ui/atoms/icons/singlestore.d.ts +3 -0
  156. package/dist/components/ui/atoms/icons/singlestore.js +284 -0
  157. package/dist/{assets → components/ui/atoms}/icons/slack.js +7 -1
  158. package/dist/components/ui/atoms/icons/snowflake.d.ts +3 -0
  159. package/dist/components/ui/atoms/icons/snowflake.js +26 -0
  160. package/dist/components/ui/atoms/icons/splunk.d.ts +3 -0
  161. package/dist/components/ui/atoms/icons/splunk.js +54 -0
  162. package/dist/{assets → components/ui/atoms}/icons/spotify.js +1 -0
  163. package/dist/components/ui/atoms/icons/square.d.ts +3 -0
  164. package/dist/components/ui/atoms/icons/square.js +41 -0
  165. package/dist/components/ui/atoms/icons/squarespace.d.ts +3 -0
  166. package/dist/components/ui/atoms/icons/squarespace.js +29 -0
  167. package/dist/{assets → components/ui/atoms}/icons/stripe.js +1 -0
  168. package/dist/{assets → components/ui/atoms}/icons/tesla.js +5 -1
  169. package/dist/{assets → components/ui/atoms}/icons/tiktok.js +3 -0
  170. package/dist/components/ui/atoms/icons/trello.d.ts +3 -0
  171. package/dist/components/ui/atoms/icons/trello.js +59 -0
  172. package/dist/{assets → components/ui/atoms}/icons/twilio.js +11 -4
  173. package/dist/{assets → components/ui/atoms}/icons/twitch.js +6 -1
  174. package/dist/components/ui/atoms/icons/utils.d.ts +56 -0
  175. package/dist/components/ui/atoms/icons/utils.js +41 -0
  176. package/dist/{assets → components/ui/atoms}/icons/vercel.js +1 -0
  177. package/dist/{assets → components/ui/atoms}/icons/walmart.js +2 -0
  178. package/dist/components/ui/atoms/icons/weaviate.d.ts +3 -0
  179. package/dist/components/ui/atoms/icons/weaviate.js +229 -0
  180. package/dist/components/ui/atoms/icons/workday.d.ts +3 -0
  181. package/dist/components/ui/atoms/icons/workday.js +97 -0
  182. package/dist/components/ui/atoms/icons/wrike.d.ts +3 -0
  183. package/dist/components/ui/atoms/icons/wrike.js +16 -0
  184. package/dist/{assets → components/ui/atoms}/icons/x.js +4 -4
  185. package/dist/components/ui/atoms/icons/xero.js +87 -0
  186. package/dist/components/ui/atoms/icons/youtube.d.ts +3 -0
  187. package/dist/{assets → components/ui/atoms}/icons/youtube.js +3 -1
  188. package/dist/components/ui/atoms/icons/zendesk.d.ts +3 -0
  189. package/dist/components/ui/atoms/icons/zendesk.js +27 -0
  190. package/dist/{assets → components/ui/atoms}/icons/zoom.js +30 -17
  191. package/dist/components/ui/atoms/index.d.ts +2 -0
  192. package/dist/components/ui/atoms/index.js +416 -197
  193. package/dist/components/ui/atoms/input.js +1 -1
  194. package/dist/components/ui/atoms/label.js +1 -1
  195. package/dist/components/ui/atoms/popover.js +3 -3
  196. package/dist/components/ui/atoms/pro-badge.js +2 -2
  197. package/dist/components/ui/atoms/progress.js +19 -18
  198. package/dist/components/ui/atoms/radio-group.js +2 -2
  199. package/dist/components/ui/atoms/resizable.js +24 -1527
  200. package/dist/components/ui/atoms/scroll-area.js +4 -4
  201. package/dist/components/ui/atoms/select.js +4 -4
  202. package/dist/components/ui/atoms/separator.js +1 -1
  203. package/dist/components/ui/atoms/sheet.js +2 -2
  204. package/dist/components/ui/atoms/sidebar.js +104 -104
  205. package/dist/components/ui/atoms/skeleton.js +1 -1
  206. package/dist/components/ui/atoms/slider.js +1 -1
  207. package/dist/components/ui/atoms/switch.js +1 -1
  208. package/dist/components/ui/atoms/table.js +1 -1
  209. package/dist/components/ui/atoms/tabs.js +2 -2
  210. package/dist/components/ui/atoms/textarea.js +1 -1
  211. package/dist/components/ui/atoms/toggle.js +2 -2
  212. package/dist/components/ui/atoms/tooltip.js +61 -61
  213. package/dist/components/ui/atoms/view-tools-control.d.ts +12 -0
  214. package/dist/components/ui/atoms/view-tools-control.js +53 -0
  215. package/dist/components/ui/index.d.ts +3 -0
  216. package/dist/components/ui/index.js +431 -199
  217. package/dist/components/ui/molecules/empty-state.d.ts +5 -0
  218. package/dist/components/ui/molecules/empty-state.js +25 -0
  219. package/dist/components/ui/molecules/index.d.ts +7 -0
  220. package/dist/components/ui/molecules/index.js +13 -0
  221. package/dist/components/ui/molecules/requirement-badges.d.ts +29 -0
  222. package/dist/components/ui/molecules/requirement-badges.js +25 -0
  223. package/dist/components/ui/molecules/tool-card.d.ts +17 -0
  224. package/dist/components/ui/molecules/tool-card.js +127 -0
  225. package/dist/components/ui/molecules/toolkit-card.d.ts +24 -0
  226. package/dist/components/ui/molecules/toolkit-card.js +13 -0
  227. package/dist/components/ui/molecules/toolkit-picker-trigger.d.ts +8 -0
  228. package/dist/components/ui/molecules/toolkit-picker-trigger.js +105 -0
  229. package/dist/components/ui/molecules/toolkit-selection-summary.d.ts +11 -0
  230. package/dist/components/ui/molecules/toolkit-selection-summary.js +120 -0
  231. package/dist/components/ui/organisms/index.d.ts +2 -0
  232. package/dist/components/ui/organisms/index.js +4 -0
  233. package/dist/components/ui/organisms/toolkit-picker/components/footer-summary.d.ts +1 -0
  234. package/dist/components/ui/organisms/toolkit-picker/components/footer-summary.js +36 -0
  235. package/dist/components/ui/organisms/toolkit-picker/components/search-input.d.ts +1 -0
  236. package/dist/components/ui/organisms/toolkit-picker/components/search-input.js +37 -0
  237. package/dist/components/ui/organisms/toolkit-picker/components/select-button.d.ts +9 -0
  238. package/dist/components/ui/organisms/toolkit-picker/components/select-button.js +36 -0
  239. package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.d.ts +9 -0
  240. package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.js +39 -0
  241. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-filter.test.d.ts +1 -0
  242. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-filter.test.js +40 -0
  243. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-search.test.d.ts +1 -0
  244. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-search.test.js +46 -0
  245. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-selection.test.d.ts +1 -0
  246. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-selection.test.js +28 -0
  247. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.d.ts +41 -0
  248. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.js +281 -0
  249. package/dist/components/ui/organisms/toolkit-picker/index.d.ts +14 -0
  250. package/dist/components/ui/organisms/toolkit-picker/index.js +16 -0
  251. package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.d.ts +7 -0
  252. package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.js +514 -0
  253. package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.d.ts +2 -0
  254. package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.js +405 -0
  255. package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.test.d.ts +0 -0
  256. package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.test.js +11859 -0
  257. package/dist/components/ui/utils/memo.d.ts +2 -0
  258. package/dist/components/ui/utils/memo.js +25 -0
  259. package/dist/components/ui/utils/memo.test.d.ts +1 -0
  260. package/dist/components/ui/utils/memo.test.js +36 -0
  261. package/dist/{index-CQhYMnjT.js → index-BDE30rcJ.js} +1 -1
  262. package/dist/{index-CtSXVDca.js → index-BDIfjxqB.js} +1 -1
  263. package/dist/{index-C8_QusYl.js → index-BGfrl8IX.js} +1 -1
  264. package/dist/{index-BSWzylXR.js → index-BzU0xzeS.js} +3 -3
  265. package/dist/index-DH9yRdVk.js +1540 -0
  266. package/dist/lib/arcade/arcade.d.ts +100 -0
  267. package/dist/lib/arcade/arcade.js +6 -0
  268. package/dist/lib/arcade/arcade.test.d.ts +1 -0
  269. package/dist/lib/arcade/arcade.test.js +299 -0
  270. package/dist/lib/arcade/mocks.d.ts +2 -0
  271. package/dist/lib/arcade/mocks.js +547 -0
  272. package/dist/lib/utils.d.ts +1 -0
  273. package/dist/lib/utils.js +3 -2
  274. package/dist/lib/utils.test.d.ts +1 -0
  275. package/dist/lib/utils.test.js +43 -0
  276. package/dist/magic-string.es-QnVUNas7.js +660 -0
  277. package/dist/main.d.ts +1 -0
  278. package/dist/main.js +431 -199
  279. package/dist/metadata/oauth-providers.d.ts +69 -0
  280. package/dist/metadata/oauth-providers.js +260 -0
  281. package/dist/metadata/toolkits.d.ts +24 -0
  282. package/dist/metadata/toolkits.js +1500 -0
  283. package/dist/react-resizable-panels.browser-ZHjTH32c.js +1509 -0
  284. package/dist/react.esm-CFMQn0EI.js +35565 -0
  285. package/dist/toolkit-card-UG1sZ0Le.js +305 -0
  286. package/dist/{utils-CRiPKpXj.js → utils-Db4QWi-E.js} +204 -189
  287. package/dist/vi.bdSIJ99Y-CQ1FdEM8.js +11542 -0
  288. package/package.json +71 -58
  289. package/dist/assets/icons/calendly.js +0 -64
  290. package/dist/assets/icons/clickup.d.ts +0 -3
  291. package/dist/assets/icons/e2b.d.ts +0 -3
  292. package/dist/assets/icons/e2b.js +0 -9
  293. package/dist/assets/icons/firecrawl.d.ts +0 -5
  294. package/dist/assets/icons/firecrawl.js +0 -17
  295. package/dist/assets/icons/google-calendar.js +0 -93
  296. package/dist/assets/icons/google-docs.js +0 -229
  297. package/dist/assets/icons/hubspot.d.ts +0 -3
  298. package/dist/assets/icons/index.js +0 -126
  299. package/dist/assets/icons/linkedin.d.ts +0 -3
  300. package/dist/assets/icons/netsuite.d.ts +0 -3
  301. package/dist/assets/icons/oauth.d.ts +0 -3
  302. package/dist/assets/icons/reddit.js +0 -268
  303. package/dist/assets/icons/utils.d.ts +0 -409
  304. package/dist/assets/icons/utils.js +0 -422
  305. package/dist/assets/icons/xero.js +0 -63
  306. package/dist/assets/icons/youtube.d.ts +0 -3
  307. package/dist/index-PlrlSrPo.js +0 -1537
  308. /package/dist/{assets → components/ui/atoms}/icons/airtable.d.ts +0 -0
  309. /package/dist/{assets → components/ui/atoms}/icons/asana.d.ts +0 -0
  310. /package/dist/{assets → components/ui/atoms}/icons/atlassian.d.ts +0 -0
  311. /package/dist/{assets → components/ui/atoms}/icons/auth0.d.ts +0 -0
  312. /package/dist/{assets → components/ui/atoms}/icons/azure.d.ts +0 -0
  313. /package/dist/{assets → components/ui/atoms}/icons/bluesky.d.ts +0 -0
  314. /package/dist/{assets → components/ui/atoms}/icons/box.d.ts +0 -0
  315. /package/dist/{assets → components/ui/atoms}/icons/calendly.d.ts +0 -0
  316. /package/dist/{assets → components/ui/atoms}/icons/coinbase.d.ts +0 -0
  317. /package/dist/{assets → components/ui/atoms}/icons/confluence.d.ts +0 -0
  318. /package/dist/{assets → components/ui/atoms}/icons/datadog.d.ts +0 -0
  319. /package/dist/{assets → components/ui/atoms}/icons/discord.d.ts +0 -0
  320. /package/dist/{assets → components/ui/atoms}/icons/dropbox.d.ts +0 -0
  321. /package/dist/{assets → components/ui/atoms}/icons/ebay.d.ts +0 -0
  322. /package/dist/{assets → components/ui/atoms}/icons/figma.d.ts +0 -0
  323. /package/dist/{assets → components/ui/atoms}/icons/github.d.ts +0 -0
  324. /package/dist/{assets → components/ui/atoms}/icons/gitlab.d.ts +0 -0
  325. /package/dist/{assets → components/ui/atoms}/icons/gmail.d.ts +0 -0
  326. /package/dist/{assets → components/ui/atoms}/icons/google-calendar.d.ts +0 -0
  327. /package/dist/{assets → components/ui/atoms}/icons/google-contacts.d.ts +0 -0
  328. /package/dist/{assets → components/ui/atoms}/icons/google-docs.d.ts +0 -0
  329. /package/dist/{assets → components/ui/atoms}/icons/google-drive.d.ts +0 -0
  330. /package/dist/{assets → components/ui/atoms}/icons/google-finance.d.ts +0 -0
  331. /package/dist/{assets → components/ui/atoms}/icons/google-flight.d.ts +0 -0
  332. /package/dist/{assets → components/ui/atoms}/icons/google-hotels.d.ts +0 -0
  333. /package/dist/{assets → components/ui/atoms}/icons/google-maps.d.ts +0 -0
  334. /package/dist/{assets → components/ui/atoms}/icons/google-news.d.ts +0 -0
  335. /package/dist/{assets → components/ui/atoms}/icons/google-sheets.d.ts +0 -0
  336. /package/dist/{assets → components/ui/atoms}/icons/google-shopping.d.ts +0 -0
  337. /package/dist/{assets → components/ui/atoms}/icons/google.d.ts +0 -0
  338. /package/dist/{assets → components/ui/atoms}/icons/heroku.d.ts +0 -0
  339. /package/dist/{assets → components/ui/atoms}/icons/jira.d.ts +0 -0
  340. /package/dist/{assets → components/ui/atoms}/icons/linear.d.ts +0 -0
  341. /package/dist/{assets → components/ui/atoms}/icons/microsoft.d.ts +0 -0
  342. /package/dist/{assets → components/ui/atoms}/icons/notion.d.ts +0 -0
  343. /package/dist/{assets → components/ui/atoms}/icons/outlook-calendar.d.ts +0 -0
  344. /package/dist/{assets → components/ui/atoms}/icons/outlook-mail.d.ts +0 -0
  345. /package/dist/{assets → components/ui/atoms}/icons/pinterest.d.ts +0 -0
  346. /package/dist/{assets → components/ui/atoms}/icons/postgres.d.ts +0 -0
  347. /package/dist/{assets → components/ui/atoms}/icons/reddit.d.ts +0 -0
  348. /package/dist/{assets → components/ui/atoms}/icons/salesforce.d.ts +0 -0
  349. /package/dist/{assets → components/ui/atoms}/icons/shopify.d.ts +0 -0
  350. /package/dist/{assets → components/ui/atoms}/icons/slack.d.ts +0 -0
  351. /package/dist/{assets → components/ui/atoms}/icons/spotify.d.ts +0 -0
  352. /package/dist/{assets → components/ui/atoms}/icons/stripe.d.ts +0 -0
  353. /package/dist/{assets → components/ui/atoms}/icons/tesla.d.ts +0 -0
  354. /package/dist/{assets → components/ui/atoms}/icons/tiktok.d.ts +0 -0
  355. /package/dist/{assets → components/ui/atoms}/icons/twilio.d.ts +0 -0
  356. /package/dist/{assets → components/ui/atoms}/icons/twitch.d.ts +0 -0
  357. /package/dist/{assets → components/ui/atoms}/icons/vercel.d.ts +0 -0
  358. /package/dist/{assets → components/ui/atoms}/icons/walmart.d.ts +0 -0
  359. /package/dist/{assets → components/ui/atoms}/icons/x.d.ts +0 -0
  360. /package/dist/{assets → components/ui/atoms}/icons/xero.d.ts +0 -0
  361. /package/dist/{assets → components/ui/atoms}/icons/zoom.d.ts +0 -0
@@ -0,0 +1,547 @@
1
+ const e = [
2
+ {
3
+ name: "simple_tool",
4
+ fully_qualified_name: "simple_tool",
5
+ qualified_name: "simple_tool",
6
+ description: "A simple tool with no requirements",
7
+ toolkit: {
8
+ name: "basic",
9
+ description: "Basic toolkit",
10
+ version: "1.0.0"
11
+ },
12
+ input: { parameters: [] },
13
+ requirements: void 0
14
+ },
15
+ {
16
+ name: "secret_required_tool",
17
+ fully_qualified_name: "secret_required_tool",
18
+ qualified_name: "secret_required_tool",
19
+ description: "A tool that requires API secrets",
20
+ toolkit: {
21
+ name: "api_toolkit",
22
+ description: "API toolkit",
23
+ version: "2.0.0"
24
+ },
25
+ input: {
26
+ parameters: [
27
+ {
28
+ name: "api_key",
29
+ value_schema: { val_type: "string" },
30
+ description: "API key for the service",
31
+ required: !0
32
+ }
33
+ ]
34
+ },
35
+ requirements: {
36
+ met: !1,
37
+ secrets: [
38
+ {
39
+ key: "OPENAI_API_KEY",
40
+ met: !1,
41
+ status_reason: "API key not configured"
42
+ },
43
+ {
44
+ key: "ANTHROPIC_API_KEY",
45
+ met: !1,
46
+ status_reason: "API key not found"
47
+ }
48
+ ]
49
+ }
50
+ },
51
+ {
52
+ name: "partial_secrets_tool",
53
+ fully_qualified_name: "partial_secrets_tool",
54
+ qualified_name: "partial_secrets_tool",
55
+ description: "A tool with some secrets configured",
56
+ toolkit: {
57
+ name: "api_toolkit",
58
+ description: "API toolkit",
59
+ version: "2.0.0"
60
+ },
61
+ input: { parameters: [] },
62
+ requirements: {
63
+ met: !1,
64
+ secrets: [
65
+ {
66
+ key: "GROQ_API_KEY",
67
+ met: !1,
68
+ status_reason: "API key not configured"
69
+ }
70
+ ]
71
+ }
72
+ },
73
+ {
74
+ name: "anthropic_tool",
75
+ fully_qualified_name: "anthropic_tool",
76
+ qualified_name: "anthropic_tool",
77
+ description: "Another tool with Anthropic API key",
78
+ toolkit: {
79
+ name: "api_toolkit",
80
+ description: "API toolkit",
81
+ version: "2.0.0"
82
+ },
83
+ input: { parameters: [] },
84
+ requirements: {
85
+ met: !1,
86
+ secrets: [
87
+ {
88
+ key: "ANTHROPIC_API_KEY",
89
+ met: !1,
90
+ status_reason: "API key not found in another tool"
91
+ }
92
+ ]
93
+ }
94
+ },
95
+ {
96
+ name: "openai_configured_tool",
97
+ fully_qualified_name: "openai_configured_tool",
98
+ qualified_name: "openai_configured_tool",
99
+ description: "A tool with OpenAI API key configured",
100
+ toolkit: {
101
+ name: "api_toolkit",
102
+ description: "API toolkit",
103
+ version: "2.0.0"
104
+ },
105
+ input: { parameters: [] },
106
+ requirements: {
107
+ met: !0,
108
+ secrets: [
109
+ {
110
+ key: "OPENAI_API_KEY",
111
+ met: !0,
112
+ status_reason: "API key configured"
113
+ }
114
+ ]
115
+ }
116
+ },
117
+ {
118
+ name: "oauth_tool",
119
+ fully_qualified_name: "oauth_tool",
120
+ qualified_name: "oauth_tool",
121
+ description: "A tool requiring OAuth2 authorization",
122
+ toolkit: {
123
+ name: "oauth_toolkit",
124
+ description: "OAuth toolkit",
125
+ version: "1.5.0"
126
+ },
127
+ input: { parameters: [] },
128
+ requirements: {
129
+ met: !1,
130
+ authorization: {
131
+ id: "auth_123",
132
+ provider_id: "google",
133
+ provider_type: "oauth2",
134
+ status: "inactive",
135
+ status_reason: "Authorization required",
136
+ token_status: "not_started",
137
+ oauth2: {
138
+ scopes: ["https://www.googleapis.com/auth/calendar.readonly"]
139
+ }
140
+ }
141
+ }
142
+ },
143
+ {
144
+ name: "multi_scope_tool",
145
+ fully_qualified_name: "multi_scope_tool",
146
+ qualified_name: "multi_scope_tool",
147
+ description: "A tool requiring multiple OAuth scopes",
148
+ toolkit: {
149
+ name: "oauth_toolkit",
150
+ description: "OAuth toolkit",
151
+ version: "1.5.0"
152
+ },
153
+ input: { parameters: [] },
154
+ requirements: {
155
+ met: !0,
156
+ authorization: {
157
+ id: "auth_456",
158
+ provider_id: "google",
159
+ provider_type: "oauth2",
160
+ status: "inactive",
161
+ status_reason: "Authorization required",
162
+ token_status: "not_started",
163
+ oauth2: {
164
+ scopes: [
165
+ "https://www.googleapis.com/auth/drive",
166
+ "https://www.googleapis.com/auth/gmail.readonly"
167
+ ]
168
+ }
169
+ }
170
+ }
171
+ },
172
+ {
173
+ name: "github_tool",
174
+ fully_qualified_name: "github_tool",
175
+ qualified_name: "github_tool",
176
+ description: "A tool requiring GitHub OAuth",
177
+ toolkit: {
178
+ name: "github_toolkit",
179
+ description: "GitHub toolkit",
180
+ version: "1.0.0"
181
+ },
182
+ input: { parameters: [] },
183
+ requirements: {
184
+ met: !1,
185
+ authorization: {
186
+ id: "auth_789",
187
+ provider_id: "github",
188
+ provider_type: "oauth2",
189
+ status: "inactive",
190
+ status_reason: "GitHub authorization required",
191
+ token_status: "not_started",
192
+ oauth2: {
193
+ scopes: ["repo", "user"]
194
+ }
195
+ }
196
+ }
197
+ },
198
+ {
199
+ name: "github_create_issue",
200
+ fully_qualified_name: "github_create_issue",
201
+ qualified_name: "github_create_issue",
202
+ description: "A tool requiring GitHub OAuth to create an issue",
203
+ toolkit: {
204
+ name: "github_toolkit",
205
+ description: "GitHub toolkit",
206
+ version: "1.0.0"
207
+ },
208
+ input: { parameters: [] },
209
+ requirements: {
210
+ met: !0,
211
+ authorization: {
212
+ id: "auth_789",
213
+ provider_id: "github",
214
+ provider_type: "oauth2",
215
+ status: "active",
216
+ status_reason: "GitHub authorization required",
217
+ oauth2: {
218
+ scopes: ["issues"]
219
+ }
220
+ }
221
+ }
222
+ },
223
+ {
224
+ name: "active_auth_tool",
225
+ fully_qualified_name: "active_auth_tool",
226
+ qualified_name: "active_auth_tool",
227
+ description: "A tool with active authorization",
228
+ toolkit: {
229
+ name: "oauth_toolkit",
230
+ description: "OAuth toolkit",
231
+ version: "1.5.0"
232
+ },
233
+ input: { parameters: [] },
234
+ requirements: {
235
+ met: !0,
236
+ authorization: {
237
+ id: "auth_active",
238
+ provider_id: "google",
239
+ provider_type: "oauth2",
240
+ status: "active",
241
+ status_reason: "Authorization active",
242
+ token_status: "completed",
243
+ oauth2: {
244
+ scopes: ["https://www.googleapis.com/auth/calendar.readonly"]
245
+ }
246
+ }
247
+ }
248
+ },
249
+ {
250
+ fully_qualified_name: "Google.CreateBlankDocument@1.2.4",
251
+ qualified_name: "Google.CreateBlankDocument",
252
+ name: "CreateBlankDocument",
253
+ description: "Create a blank Google Docs document with the specified title.",
254
+ toolkit: {
255
+ name: "Google",
256
+ description: "Arcade.dev LLM tools for Google Workspace",
257
+ version: "1.2.4"
258
+ },
259
+ input: {
260
+ parameters: [
261
+ {
262
+ name: "title",
263
+ required: !0,
264
+ description: "The title of the blank document to create",
265
+ value_schema: {
266
+ val_type: "string"
267
+ },
268
+ inferrable: !0
269
+ }
270
+ ]
271
+ },
272
+ output: {
273
+ available_modes: ["value", "error"],
274
+ description: "The created document's title, documentId, and documentUrl in a dictionary",
275
+ value_schema: {
276
+ val_type: "json"
277
+ }
278
+ },
279
+ requirements: {
280
+ met: !0,
281
+ authorization: {
282
+ id: "arcade-google",
283
+ provider_id: "google",
284
+ provider_type: "oauth2",
285
+ oauth2: {
286
+ scopes: ["https://www.googleapis.com/auth/drive.file"]
287
+ },
288
+ status: "active"
289
+ }
290
+ }
291
+ },
292
+ {
293
+ fully_qualified_name: "E2b.CreateStaticMatplotlibChart@2.0.0",
294
+ qualified_name: "E2b.CreateStaticMatplotlibChart",
295
+ name: "CreateStaticMatplotlibChart",
296
+ description: `Run the provided Python code to generate a static matplotlib chart.
297
+ The resulting chart is returned as a base64 encoded image.`,
298
+ toolkit: {
299
+ name: "E2b",
300
+ description: "Arcade.dev LLM tools for running code in a sandbox using E2B",
301
+ version: "2.0.0"
302
+ },
303
+ input: {
304
+ parameters: [
305
+ {
306
+ name: "code",
307
+ required: !0,
308
+ description: "The Python code to run",
309
+ value_schema: {
310
+ val_type: "string"
311
+ },
312
+ inferrable: !0
313
+ }
314
+ ]
315
+ },
316
+ output: {
317
+ available_modes: ["value", "error"],
318
+ description: "A dictionary with the following keys: base64_image, logs, error",
319
+ value_schema: {
320
+ val_type: "json"
321
+ }
322
+ },
323
+ requirements: {
324
+ met: !1,
325
+ secrets: [
326
+ {
327
+ key: "e2b_api_key",
328
+ met: !1,
329
+ status_reason: "Secret e2b_api_key not found"
330
+ }
331
+ ]
332
+ }
333
+ },
334
+ {
335
+ fully_qualified_name: "Gmail.ChangeEmailLabels@2.0.0",
336
+ qualified_name: "Gmail.ChangeEmailLabels",
337
+ name: "ChangeEmailLabels",
338
+ description: "Add and remove labels from an email using the Gmail API.",
339
+ toolkit: {
340
+ name: "Gmail",
341
+ description: "Arcade.dev LLM tools for Gmail",
342
+ version: "2.0.0"
343
+ },
344
+ input: {
345
+ parameters: [
346
+ {
347
+ name: "email_id",
348
+ required: !0,
349
+ description: "The ID of the email to modify labels for",
350
+ value_schema: {
351
+ val_type: "string"
352
+ },
353
+ inferrable: !0
354
+ },
355
+ {
356
+ name: "labels_to_add",
357
+ required: !0,
358
+ description: "List of label names to add",
359
+ value_schema: {
360
+ val_type: "array",
361
+ inner_val_type: "string"
362
+ },
363
+ inferrable: !0
364
+ },
365
+ {
366
+ name: "labels_to_remove",
367
+ required: !0,
368
+ description: "List of label names to remove",
369
+ value_schema: {
370
+ val_type: "array",
371
+ inner_val_type: "string"
372
+ },
373
+ inferrable: !0
374
+ }
375
+ ]
376
+ },
377
+ output: {
378
+ available_modes: ["value", "error"],
379
+ description: "List of labels that were added, removed, and not found",
380
+ value_schema: {
381
+ val_type: "json"
382
+ }
383
+ },
384
+ requirements: {
385
+ met: !0,
386
+ authorization: {
387
+ id: "arcade-google",
388
+ provider_id: "google",
389
+ provider_type: "oauth2",
390
+ oauth2: {
391
+ scopes: ["https://www.googleapis.com/auth/gmail.modify"]
392
+ },
393
+ status: "active"
394
+ }
395
+ }
396
+ },
397
+ {
398
+ fully_qualified_name: "Gmail.CreateLabel@2.0.0",
399
+ qualified_name: "Gmail.CreateLabel",
400
+ name: "CreateLabel",
401
+ description: "Create a new label in the user's mailbox.",
402
+ toolkit: {
403
+ name: "Gmail",
404
+ description: "Arcade.dev LLM tools for Gmail",
405
+ version: "2.0.0"
406
+ },
407
+ input: {
408
+ parameters: [
409
+ {
410
+ name: "label_name",
411
+ required: !0,
412
+ description: "The name of the label to create",
413
+ value_schema: {
414
+ val_type: "string"
415
+ },
416
+ inferrable: !0
417
+ }
418
+ ]
419
+ },
420
+ output: {
421
+ available_modes: ["value", "error"],
422
+ description: "The details of the created label",
423
+ value_schema: {
424
+ val_type: "json"
425
+ }
426
+ },
427
+ requirements: {
428
+ met: !0,
429
+ authorization: {
430
+ id: "arcade-google",
431
+ provider_id: "google",
432
+ provider_type: "oauth2",
433
+ oauth2: {
434
+ scopes: ["https://www.googleapis.com/auth/gmail.labels"]
435
+ },
436
+ status: "active"
437
+ }
438
+ }
439
+ },
440
+ {
441
+ fully_qualified_name: "gmail.gmail_send_email",
442
+ qualified_name: "gmail.gmail_send_email",
443
+ name: "gmail_send_email",
444
+ description: "Send an email using Gmail",
445
+ toolkit: {
446
+ name: "Gmail",
447
+ description: "Arcade.dev LLM tools for Gmail",
448
+ version: "2.0.0"
449
+ },
450
+ input: {
451
+ parameters: [
452
+ {
453
+ name: "to",
454
+ required: !0,
455
+ description: "Email address to send to",
456
+ value_schema: {
457
+ val_type: "string"
458
+ },
459
+ inferrable: !0
460
+ },
461
+ {
462
+ name: "subject",
463
+ required: !0,
464
+ description: "Email subject",
465
+ value_schema: {
466
+ val_type: "string"
467
+ },
468
+ inferrable: !0
469
+ },
470
+ {
471
+ name: "body",
472
+ required: !0,
473
+ description: "Email body content",
474
+ value_schema: {
475
+ val_type: "string"
476
+ },
477
+ inferrable: !0
478
+ }
479
+ ]
480
+ },
481
+ output: {
482
+ available_modes: ["value", "error"],
483
+ description: "Confirmation of sent email with message ID",
484
+ value_schema: {
485
+ val_type: "json"
486
+ }
487
+ },
488
+ requirements: {
489
+ met: !0,
490
+ authorization: {
491
+ id: "arcade-google",
492
+ provider_id: "google",
493
+ provider_type: "oauth2",
494
+ oauth2: {
495
+ scopes: ["https://www.googleapis.com/auth/gmail.modify"]
496
+ },
497
+ status: "active"
498
+ }
499
+ }
500
+ },
501
+ {
502
+ fully_qualified_name: "gmail.gmail_get_inbox",
503
+ qualified_name: "gmail.gmail_get_inbox",
504
+ name: "gmail_get_inbox",
505
+ description: "Get inbox messages from Gmail",
506
+ toolkit: {
507
+ name: "Gmail",
508
+ description: "Arcade.dev LLM tools for Gmail",
509
+ version: "2.0.0"
510
+ },
511
+ input: {
512
+ parameters: [
513
+ {
514
+ name: "max_results",
515
+ required: !1,
516
+ description: "Maximum number of messages to return",
517
+ value_schema: {
518
+ val_type: "number"
519
+ },
520
+ inferrable: !0
521
+ }
522
+ ]
523
+ },
524
+ output: {
525
+ available_modes: ["value", "error"],
526
+ description: "List of inbox messages",
527
+ value_schema: {
528
+ val_type: "json"
529
+ }
530
+ },
531
+ requirements: {
532
+ met: !0,
533
+ authorization: {
534
+ id: "arcade-google",
535
+ provider_id: "google",
536
+ provider_type: "oauth2",
537
+ oauth2: {
538
+ scopes: ["https://www.googleapis.com/auth/gmail.modify"]
539
+ },
540
+ status: "active"
541
+ }
542
+ }
543
+ }
544
+ ];
545
+ export {
546
+ e as allTools
547
+ };
@@ -1,2 +1,3 @@
1
1
  import { ClassValue } from 'clsx';
2
2
  export declare function cn(...inputs: ClassValue[]): string;
3
+ export declare function resolveEnv(key: string): string | undefined;
package/dist/lib/utils.js CHANGED
@@ -1,4 +1,5 @@
1
- import { c as r } from "../utils-CRiPKpXj.js";
1
+ import { c as o, r as s } from "../utils-Db4QWi-E.js";
2
2
  export {
3
- r as cn
3
+ o as cn,
4
+ s as resolveEnv
4
5
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,43 @@
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-CQ1FdEM8.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
+ });