@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.
- package/README.md +1 -1
- package/dist/assets/icons/luma.js +10 -0
- package/dist/assets/images/arcade-logo.d.ts +5 -5
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +234 -232
- package/dist/components/ui/atoms/accordion.d.ts +3 -2
- package/dist/components/ui/atoms/accordion.d.ts.map +1 -0
- package/dist/components/ui/atoms/accordion.js +5 -5
- package/dist/components/ui/atoms/alert-dialog.d.ts +5 -4
- package/dist/components/ui/atoms/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/atoms/alert-dialog.js +12 -12
- package/dist/components/ui/atoms/alert.d.ts +5 -4
- package/dist/components/ui/atoms/alert.d.ts.map +1 -0
- package/dist/components/ui/atoms/alert.js +2 -2
- package/dist/components/ui/atoms/avatar.d.ts +3 -2
- package/dist/components/ui/atoms/avatar.d.ts.map +1 -0
- package/dist/components/ui/atoms/avatar.js +8 -8
- package/dist/components/ui/atoms/badge.d.ts +3 -2
- package/dist/components/ui/atoms/badge.d.ts.map +1 -0
- package/dist/components/ui/atoms/badge.js +6 -6
- package/dist/components/ui/atoms/breadcrumb.d.ts +9 -8
- package/dist/components/ui/atoms/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/atoms/breadcrumb.js +2 -2
- package/dist/components/ui/atoms/button.d.ts +3 -2
- package/dist/components/ui/atoms/button.d.ts.map +1 -0
- package/dist/components/ui/atoms/button.js +6 -6
- package/dist/components/ui/atoms/byoc-badge.d.ts +1 -0
- package/dist/components/ui/atoms/byoc-badge.d.ts.map +1 -0
- package/dist/components/ui/atoms/byoc-badge.js +6 -6
- package/dist/components/ui/atoms/card.d.ts +9 -8
- package/dist/components/ui/atoms/card.d.ts.map +1 -0
- package/dist/components/ui/atoms/card.js +1 -1
- package/dist/components/ui/atoms/chart.d.ts +7 -6
- package/dist/components/ui/atoms/chart.d.ts.map +1 -0
- package/dist/components/ui/atoms/chart.js +1 -1
- package/dist/components/ui/atoms/checkbox.d.ts +3 -2
- package/dist/components/ui/atoms/checkbox.d.ts.map +1 -0
- package/dist/components/ui/atoms/checkbox.js +15 -15
- package/dist/components/ui/atoms/collapsible.d.ts +2 -1
- package/dist/components/ui/atoms/collapsible.d.ts.map +1 -0
- package/dist/components/ui/atoms/collapsible.js +1 -1
- package/dist/components/ui/atoms/command.d.ts +4 -3
- package/dist/components/ui/atoms/command.d.ts.map +1 -0
- package/dist/components/ui/atoms/command.js +29 -29
- package/dist/components/ui/atoms/dialog.d.ts +5 -4
- package/dist/components/ui/atoms/dialog.d.ts.map +1 -0
- package/dist/components/ui/atoms/dialog.js +8 -8
- package/dist/components/ui/atoms/dropdown-menu.d.ts +5 -4
- package/dist/components/ui/atoms/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/atoms/dropdown-menu.js +9 -9
- package/dist/components/ui/atoms/form.d.ts +6 -5
- package/dist/components/ui/atoms/form.d.ts.map +1 -0
- package/dist/components/ui/atoms/form.js +9 -9
- package/dist/components/ui/atoms/hover-card.d.ts +3 -2
- package/dist/components/ui/atoms/hover-card.d.ts.map +1 -0
- package/dist/components/ui/atoms/hover-card.js +19 -19
- package/dist/components/ui/atoms/icons/adp.d.ts +1 -0
- package/dist/components/ui/atoms/icons/adp.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/aha.d.ts +1 -0
- package/dist/components/ui/atoms/icons/aha.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/airtable.d.ts +1 -0
- package/dist/components/ui/atoms/icons/airtable.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/amplitude.d.ts +1 -0
- package/dist/components/ui/atoms/icons/amplitude.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/arcade.d.ts +1 -0
- package/dist/components/ui/atoms/icons/arcade.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/asana.d.ts +1 -0
- package/dist/components/ui/atoms/icons/asana.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/ashby.d.ts +1 -0
- package/dist/components/ui/atoms/icons/ashby.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/atlassian.d.ts +1 -0
- package/dist/components/ui/atoms/icons/atlassian.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/auth0.d.ts +1 -0
- package/dist/components/ui/atoms/icons/auth0.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/azure.d.ts +1 -0
- package/dist/components/ui/atoms/icons/azure.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/bamboohr.d.ts +1 -0
- package/dist/components/ui/atoms/icons/bamboohr.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/basecamp.d.ts +1 -0
- package/dist/components/ui/atoms/icons/basecamp.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/bill.d.ts +1 -0
- package/dist/components/ui/atoms/icons/bill.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/bitbucket.d.ts +1 -0
- package/dist/components/ui/atoms/icons/bitbucket.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/bluesky.d.ts +1 -0
- package/dist/components/ui/atoms/icons/bluesky.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/box.d.ts +1 -0
- package/dist/components/ui/atoms/icons/box.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/braze.d.ts +1 -0
- package/dist/components/ui/atoms/icons/braze.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/brex.d.ts +1 -0
- package/dist/components/ui/atoms/icons/brex.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/brightdata.d.ts +1 -0
- package/dist/components/ui/atoms/icons/brightdata.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/buffer.d.ts +1 -0
- package/dist/components/ui/atoms/icons/buffer.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/calendly.d.ts +1 -0
- package/dist/components/ui/atoms/icons/calendly.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/clickhouse.d.ts +1 -0
- package/dist/components/ui/atoms/icons/clickhouse.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/clickup.d.ts +1 -0
- package/dist/components/ui/atoms/icons/clickup.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/closeio.d.ts +1 -0
- package/dist/components/ui/atoms/icons/closeio.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/codesandbox.d.ts +1 -0
- package/dist/components/ui/atoms/icons/codesandbox.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/coinbase.d.ts +1 -0
- package/dist/components/ui/atoms/icons/coinbase.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/confluence.d.ts +1 -0
- package/dist/components/ui/atoms/icons/confluence.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/cursor.d.ts +1 -0
- package/dist/components/ui/atoms/icons/cursor.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/customerio.d.ts +1 -0
- package/dist/components/ui/atoms/icons/customerio.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/datadog.d.ts +1 -0
- package/dist/components/ui/atoms/icons/datadog.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/digital-ocean.d.ts +1 -0
- package/dist/components/ui/atoms/icons/digital-ocean.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/discord.d.ts +1 -0
- package/dist/components/ui/atoms/icons/discord.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/dropbox.d.ts +1 -0
- package/dist/components/ui/atoms/icons/dropbox.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/e2b.d.ts +1 -0
- package/dist/components/ui/atoms/icons/e2b.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/ebay.d.ts +1 -0
- package/dist/components/ui/atoms/icons/ebay.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/evernote.d.ts +1 -0
- package/dist/components/ui/atoms/icons/evernote.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/exa.d.ts +1 -0
- package/dist/components/ui/atoms/icons/exa.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/factorial.d.ts +1 -0
- package/dist/components/ui/atoms/icons/factorial.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/figma.d.ts +1 -0
- package/dist/components/ui/atoms/icons/figma.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/firecrawl.d.ts +1 -0
- package/dist/components/ui/atoms/icons/firecrawl.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/freshservice.d.ts +1 -0
- package/dist/components/ui/atoms/icons/freshservice.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/generic.d.ts +1 -0
- package/dist/components/ui/atoms/icons/generic.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/github.d.ts +1 -0
- package/dist/components/ui/atoms/icons/github.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/gitlab.d.ts +1 -0
- package/dist/components/ui/atoms/icons/gitlab.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/gmail.d.ts +1 -0
- package/dist/components/ui/atoms/icons/gmail.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/google-calendar.d.ts +1 -0
- package/dist/components/ui/atoms/icons/google-calendar.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/google-contacts.d.ts +1 -0
- package/dist/components/ui/atoms/icons/google-contacts.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/google-docs.d.ts +1 -0
- package/dist/components/ui/atoms/icons/google-docs.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/google-drive.d.ts +1 -0
- package/dist/components/ui/atoms/icons/google-drive.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/google-finance.d.ts +1 -0
- package/dist/components/ui/atoms/icons/google-finance.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/google-flight.d.ts +1 -0
- package/dist/components/ui/atoms/icons/google-flight.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/google-flights.d.ts +1 -0
- package/dist/components/ui/atoms/icons/google-flights.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/google-hotels.d.ts +1 -0
- package/dist/components/ui/atoms/icons/google-hotels.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/google-jobs.d.ts +1 -0
- package/dist/components/ui/atoms/icons/google-jobs.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/google-maps.d.ts +1 -0
- package/dist/components/ui/atoms/icons/google-maps.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/google-news.d.ts +1 -0
- package/dist/components/ui/atoms/icons/google-news.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/google-sheets.d.ts +1 -0
- package/dist/components/ui/atoms/icons/google-sheets.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/google-shopping.d.ts +1 -0
- package/dist/components/ui/atoms/icons/google-shopping.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/google-slides.d.ts +1 -0
- package/dist/components/ui/atoms/icons/google-slides.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/google.d.ts +1 -0
- package/dist/components/ui/atoms/icons/google.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/heroku.d.ts +1 -0
- package/dist/components/ui/atoms/icons/heroku.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/hootsuite.d.ts +1 -0
- package/dist/components/ui/atoms/icons/hootsuite.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/hubspot.d.ts +1 -0
- package/dist/components/ui/atoms/icons/hubspot.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/imgflip.d.ts +1 -0
- package/dist/components/ui/atoms/icons/imgflip.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/index.d.ts +2 -0
- package/dist/components/ui/atoms/icons/index.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/index.js +132 -130
- package/dist/components/ui/atoms/icons/intercom.d.ts +1 -0
- package/dist/components/ui/atoms/icons/intercom.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/jira.d.ts +1 -0
- package/dist/components/ui/atoms/icons/jira.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/linear.d.ts +1 -0
- package/dist/components/ui/atoms/icons/linear.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/linkedin.d.ts +1 -0
- package/dist/components/ui/atoms/icons/linkedin.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/luma.d.ts +4 -0
- package/dist/components/ui/atoms/icons/luma.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/luma.js +24 -0
- package/dist/components/ui/atoms/icons/mailchimp.d.ts +1 -0
- package/dist/components/ui/atoms/icons/mailchimp.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/mcp.d.ts +1 -0
- package/dist/components/ui/atoms/icons/mcp.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/microsoft-dynamics.d.ts +1 -0
- package/dist/components/ui/atoms/icons/microsoft-dynamics.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/microsoft-sharepoint.d.ts +1 -0
- package/dist/components/ui/atoms/icons/microsoft-sharepoint.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/microsoft-teams.d.ts +1 -0
- package/dist/components/ui/atoms/icons/microsoft-teams.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/microsoft.d.ts +1 -0
- package/dist/components/ui/atoms/icons/microsoft.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/miro.d.ts +1 -0
- package/dist/components/ui/atoms/icons/miro.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/monday.d.ts +1 -0
- package/dist/components/ui/atoms/icons/monday.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/mongodb.d.ts +1 -0
- package/dist/components/ui/atoms/icons/mongodb.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/netsuite.d.ts +1 -0
- package/dist/components/ui/atoms/icons/netsuite.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/notion.d.ts +1 -0
- package/dist/components/ui/atoms/icons/notion.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/oauth.d.ts +1 -0
- package/dist/components/ui/atoms/icons/oauth.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/obsidian.d.ts +1 -0
- package/dist/components/ui/atoms/icons/obsidian.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/okta.d.ts +1 -0
- package/dist/components/ui/atoms/icons/okta.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/one-drive.d.ts +1 -0
- package/dist/components/ui/atoms/icons/one-drive.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/outlook-calendar.d.ts +1 -0
- package/dist/components/ui/atoms/icons/outlook-calendar.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/outlook-mail.d.ts +1 -0
- package/dist/components/ui/atoms/icons/outlook-mail.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/pagerduty.d.ts +1 -0
- package/dist/components/ui/atoms/icons/pagerduty.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/pinecone.d.ts +1 -0
- package/dist/components/ui/atoms/icons/pinecone.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/pinterest.d.ts +1 -0
- package/dist/components/ui/atoms/icons/pinterest.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/pipedrive.d.ts +1 -0
- package/dist/components/ui/atoms/icons/pipedrive.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/plaid.d.ts +1 -0
- package/dist/components/ui/atoms/icons/plaid.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/postgres.d.ts +1 -0
- package/dist/components/ui/atoms/icons/postgres.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/posthog.d.ts +1 -0
- package/dist/components/ui/atoms/icons/posthog.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/pylon.d.ts +1 -0
- package/dist/components/ui/atoms/icons/pylon.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/quickbooks.d.ts +1 -0
- package/dist/components/ui/atoms/icons/quickbooks.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/reddit.d.ts +1 -0
- package/dist/components/ui/atoms/icons/reddit.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/salesforce.d.ts +1 -0
- package/dist/components/ui/atoms/icons/salesforce.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/shopify.d.ts +1 -0
- package/dist/components/ui/atoms/icons/shopify.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/singlestore.d.ts +1 -0
- package/dist/components/ui/atoms/icons/singlestore.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/slack.d.ts +1 -0
- package/dist/components/ui/atoms/icons/slack.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/snowflake.d.ts +1 -0
- package/dist/components/ui/atoms/icons/snowflake.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/splunk.d.ts +1 -0
- package/dist/components/ui/atoms/icons/splunk.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/spotify.d.ts +1 -0
- package/dist/components/ui/atoms/icons/spotify.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/square.d.ts +1 -0
- package/dist/components/ui/atoms/icons/square.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/squarespace.d.ts +1 -0
- package/dist/components/ui/atoms/icons/squarespace.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/squareup.d.ts +1 -0
- package/dist/components/ui/atoms/icons/squareup.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/stripe.d.ts +1 -0
- package/dist/components/ui/atoms/icons/stripe.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/tesla.d.ts +1 -0
- package/dist/components/ui/atoms/icons/tesla.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/ticktick.d.ts +1 -0
- package/dist/components/ui/atoms/icons/ticktick.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/tiktok.d.ts +1 -0
- package/dist/components/ui/atoms/icons/tiktok.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/trello.d.ts +1 -0
- package/dist/components/ui/atoms/icons/trello.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/twilio.d.ts +1 -0
- package/dist/components/ui/atoms/icons/twilio.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/twitch.d.ts +1 -0
- package/dist/components/ui/atoms/icons/twitch.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/vercel.d.ts +1 -0
- package/dist/components/ui/atoms/icons/vercel.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/walmart.d.ts +1 -0
- package/dist/components/ui/atoms/icons/walmart.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/weaviate.d.ts +1 -0
- package/dist/components/ui/atoms/icons/weaviate.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/workday.d.ts +1 -0
- package/dist/components/ui/atoms/icons/workday.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/wrike.d.ts +1 -0
- package/dist/components/ui/atoms/icons/wrike.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/x.d.ts +1 -0
- package/dist/components/ui/atoms/icons/x.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/xero.d.ts +1 -0
- package/dist/components/ui/atoms/icons/xero.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/youtube.d.ts +1 -0
- package/dist/components/ui/atoms/icons/youtube.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/zendesk.d.ts +1 -0
- package/dist/components/ui/atoms/icons/zendesk.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/zoho-books.d.ts +1 -0
- package/dist/components/ui/atoms/icons/zoho-books.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/zoho-creator.d.ts +1 -0
- package/dist/components/ui/atoms/icons/zoho-creator.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/zoho.d.ts +1 -0
- package/dist/components/ui/atoms/icons/zoho.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/zoom.d.ts +1 -0
- package/dist/components/ui/atoms/icons/zoom.d.ts.map +1 -0
- package/dist/components/ui/atoms/index.d.ts +1 -0
- package/dist/components/ui/atoms/index.d.ts.map +1 -0
- package/dist/components/ui/atoms/index.js +221 -219
- package/dist/components/ui/atoms/input.d.ts +3 -2
- package/dist/components/ui/atoms/input.d.ts.map +1 -0
- package/dist/components/ui/atoms/input.js +1 -1
- package/dist/components/ui/atoms/label.d.ts +3 -2
- package/dist/components/ui/atoms/label.d.ts.map +1 -0
- package/dist/components/ui/atoms/label.js +6 -6
- package/dist/components/ui/atoms/mobile-tooltip.d.ts +1 -0
- package/dist/components/ui/atoms/mobile-tooltip.d.ts.map +1 -0
- package/dist/components/ui/atoms/popover.d.ts +3 -2
- package/dist/components/ui/atoms/popover.d.ts.map +1 -0
- package/dist/components/ui/atoms/popover.js +24 -24
- package/dist/components/ui/atoms/pro-badge.d.ts +1 -0
- package/dist/components/ui/atoms/pro-badge.d.ts.map +1 -0
- package/dist/components/ui/atoms/pro-badge.js +6 -6
- package/dist/components/ui/atoms/progress.d.ts +3 -2
- package/dist/components/ui/atoms/progress.d.ts.map +1 -0
- package/dist/components/ui/atoms/progress.js +5 -5
- package/dist/components/ui/atoms/radio-group.d.ts +3 -2
- package/dist/components/ui/atoms/radio-group.d.ts.map +1 -0
- package/dist/components/ui/atoms/radio-group.js +13 -13
- package/dist/components/ui/atoms/resizable.d.ts +3 -2
- package/dist/components/ui/atoms/resizable.d.ts.map +1 -0
- package/dist/components/ui/atoms/resizable.js +2 -2
- package/dist/components/ui/atoms/scroll-area.d.ts +3 -2
- package/dist/components/ui/atoms/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/atoms/scroll-area.js +4 -4
- package/dist/components/ui/atoms/select.d.ts +4 -3
- package/dist/components/ui/atoms/select.d.ts.map +1 -0
- package/dist/components/ui/atoms/select.js +26 -26
- package/dist/components/ui/atoms/separator.d.ts +3 -2
- package/dist/components/ui/atoms/separator.d.ts.map +1 -0
- package/dist/components/ui/atoms/separator.js +6 -6
- package/dist/components/ui/atoms/sheet.d.ts +7 -6
- package/dist/components/ui/atoms/sheet.d.ts.map +1 -0
- package/dist/components/ui/atoms/sheet.js +2 -2
- package/dist/components/ui/atoms/sidebar.d.ts +28 -27
- package/dist/components/ui/atoms/sidebar.d.ts.map +1 -0
- package/dist/components/ui/atoms/sidebar.js +30 -30
- package/dist/components/ui/atoms/skeleton.d.ts +2 -1
- package/dist/components/ui/atoms/skeleton.d.ts.map +1 -0
- package/dist/components/ui/atoms/skeleton.js +1 -1
- package/dist/components/ui/atoms/slider.d.ts +3 -2
- package/dist/components/ui/atoms/slider.d.ts.map +1 -0
- package/dist/components/ui/atoms/slider.js +4 -4
- package/dist/components/ui/atoms/switch.d.ts +3 -2
- package/dist/components/ui/atoms/switch.d.ts.map +1 -0
- package/dist/components/ui/atoms/switch.js +3 -3
- package/dist/components/ui/atoms/table.d.ts +9 -8
- package/dist/components/ui/atoms/table.d.ts.map +1 -0
- package/dist/components/ui/atoms/table.js +1 -1
- package/dist/components/ui/atoms/tabs.d.ts +3 -2
- package/dist/components/ui/atoms/tabs.d.ts.map +1 -0
- package/dist/components/ui/atoms/tabs.js +12 -12
- package/dist/components/ui/atoms/textarea.d.ts +3 -2
- package/dist/components/ui/atoms/textarea.d.ts.map +1 -0
- package/dist/components/ui/atoms/textarea.js +1 -1
- package/dist/components/ui/atoms/toggle.d.ts +3 -2
- package/dist/components/ui/atoms/toggle.d.ts.map +1 -0
- package/dist/components/ui/atoms/toggle.js +12 -12
- package/dist/components/ui/atoms/tooltip.d.ts +3 -2
- package/dist/components/ui/atoms/tooltip.d.ts.map +1 -0
- package/dist/components/ui/atoms/tooltip.js +23 -23
- package/dist/components/ui/atoms/view-tools-control.d.ts +2 -1
- package/dist/components/ui/atoms/view-tools-control.d.ts.map +1 -0
- package/dist/components/ui/atoms/view-tools-control.js +10 -10
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -0
- package/dist/components/ui/index.js +234 -232
- package/dist/components/ui/molecules/empty-state.d.ts +2 -1
- package/dist/components/ui/molecules/empty-state.d.ts.map +1 -0
- package/dist/components/ui/molecules/index.d.ts +1 -0
- package/dist/components/ui/molecules/index.d.ts.map +1 -0
- package/dist/components/ui/molecules/index.js +1 -1
- package/dist/components/ui/molecules/requirement-badges.d.ts +3 -2
- package/dist/components/ui/molecules/requirement-badges.d.ts.map +1 -0
- package/dist/components/ui/molecules/requirement-badges.js +3 -3
- package/dist/components/ui/molecules/tool-card.d.ts +3 -2
- package/dist/components/ui/molecules/tool-card.d.ts.map +1 -0
- package/dist/components/ui/molecules/tool-card.js +14 -14
- package/dist/components/ui/molecules/toolkit-card.d.ts +5 -4
- package/dist/components/ui/molecules/toolkit-card.d.ts.map +1 -0
- package/dist/components/ui/molecules/toolkit-card.js +5 -5
- package/dist/components/ui/molecules/toolkit-picker-trigger.d.ts +3 -2
- package/dist/components/ui/molecules/toolkit-picker-trigger.d.ts.map +1 -0
- package/dist/components/ui/molecules/toolkit-picker-trigger.js +14 -14
- package/dist/components/ui/molecules/toolkit-selection-summary.d.ts +1 -0
- package/dist/components/ui/molecules/toolkit-selection-summary.d.ts.map +1 -0
- package/dist/components/ui/molecules/toolkit-selection-summary.js +1 -1
- package/dist/components/ui/organisms/index.d.ts +1 -0
- package/dist/components/ui/organisms/index.d.ts.map +1 -0
- package/dist/components/ui/organisms/toolkit-picker/components/action-buttons.d.ts +1 -0
- package/dist/components/ui/organisms/toolkit-picker/components/action-buttons.d.ts.map +1 -0
- package/dist/components/ui/organisms/toolkit-picker/components/action-buttons.js +1 -1
- package/dist/components/ui/organisms/toolkit-picker/components/filter-badges.d.ts +1 -0
- package/dist/components/ui/organisms/toolkit-picker/components/filter-badges.d.ts.map +1 -0
- package/dist/components/ui/organisms/toolkit-picker/components/filter-badges.js +10 -10
- package/dist/components/ui/organisms/toolkit-picker/components/footer-summary.d.ts +1 -0
- package/dist/components/ui/organisms/toolkit-picker/components/footer-summary.d.ts.map +1 -0
- package/dist/components/ui/organisms/toolkit-picker/components/search-input.d.ts +1 -0
- package/dist/components/ui/organisms/toolkit-picker/components/search-input.d.ts.map +1 -0
- package/dist/components/ui/organisms/toolkit-picker/components/search-input.js +6 -6
- package/dist/components/ui/organisms/toolkit-picker/components/select-button.d.ts +1 -0
- package/dist/components/ui/organisms/toolkit-picker/components/select-button.d.ts.map +1 -0
- package/dist/components/ui/organisms/toolkit-picker/components/select-button.js +1 -1
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.d.ts +2 -1
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.d.ts.map +1 -0
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.js +1 -1
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-list.d.ts +1 -0
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-list.d.ts.map +1 -0
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-list.js +2 -2
- package/dist/components/ui/organisms/toolkit-picker/components/tools-list.d.ts +1 -0
- package/dist/components/ui/organisms/toolkit-picker/components/tools-list.d.ts.map +1 -0
- package/dist/components/ui/organisms/toolkit-picker/components/tools-list.js +2 -2
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.d.ts +3 -2
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.d.ts.map +1 -0
- package/dist/components/ui/organisms/toolkit-picker/index.d.ts +3 -2
- package/dist/components/ui/organisms/toolkit-picker/index.d.ts.map +1 -0
- package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.d.ts +1 -0
- package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.d.ts.map +1 -0
- package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.d.ts +1 -0
- package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.d.ts.map +1 -0
- package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.js +25 -25
- package/dist/components/ui/utils/memo.d.ts +1 -0
- package/dist/components/ui/utils/memo.d.ts.map +1 -0
- package/dist/global.d.ts +8 -8
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-mobile.js +3 -1
- package/dist/{index-DH9yRdVk.js → index-8kzT5-zz.js} +2 -2
- package/dist/{index-BGfrl8IX.js → index-BaLuVb4t.js} +1 -1
- package/dist/{index-DfNPZZ8M.js → index-Bw62B28F.js} +1 -1
- package/dist/{index-D7PrNma3.js → index-C8tglJS9.js} +9 -9
- package/dist/{index-BvWMjxZ5.js → index-CvA4FcaC.js} +172 -169
- package/dist/{index-5Bhkapwi.js → index-D2LZVjSn.js} +1 -1
- package/dist/{index-CxO14pcK.js → index-DJQkmo5O.js} +4 -2
- package/dist/{index-CpDnqHCm.js → index-DLohNuco.js} +2 -2
- package/dist/{index-DYHsXnnS.js → index-DrFfdHac.js} +2 -2
- package/dist/{index-BDIfjxqB.js → index-DrlYGDRT.js} +3 -3
- package/dist/{index-DMCYNwtg.js → index-Dz8CQngS.js} +3 -3
- package/dist/{index-BDE30rcJ.js → index-r7CUvu2m.js} +1 -1
- package/dist/integrations/rhf/index.d.ts +1 -0
- package/dist/integrations/rhf/index.d.ts.map +1 -0
- package/dist/lib/arcade/arcade.d.ts +2 -1
- package/dist/lib/arcade/arcade.d.ts.map +1 -0
- package/dist/lib/arcade/arcade.js +1 -1
- package/dist/lib/arcade/mocks.d.ts +1 -0
- package/dist/lib/arcade/mocks.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +1 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +260 -258
- package/dist/metadata/constants.d.ts +1 -0
- package/dist/metadata/constants.d.ts.map +1 -0
- package/dist/metadata/index.d.ts +1 -0
- package/dist/metadata/index.d.ts.map +1 -0
- package/dist/metadata/oauth-providers.d.ts +1 -0
- package/dist/metadata/oauth-providers.d.ts.map +1 -0
- package/dist/metadata/toolkit-icons.d.ts +1 -0
- package/dist/metadata/toolkit-icons.d.ts.map +1 -0
- package/dist/metadata/toolkit-icons.js +108 -106
- package/dist/metadata/toolkits.d.ts +1 -0
- package/dist/metadata/toolkits.d.ts.map +1 -0
- package/dist/metadata/toolkits.js +277 -264
- package/dist/metadata/types.d.ts +3 -2
- package/dist/metadata/types.d.ts.map +1 -0
- package/dist/metadata/utils.d.ts +1 -0
- package/dist/metadata/utils.d.ts.map +1 -0
- package/dist/{toolkit-card-BzIa8ZXI.js → toolkit-card-CsV6xoOG.js} +14 -14
- package/dist/{utils-Db4QWi-E.js → utils-6KgZuQUR.js} +523 -490
- package/dist/vite-env.d.ts +4 -4
- package/package.json +125 -145
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-filter.test.d.ts +0 -1
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-filter.test.js +0 -40
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-search.test.d.ts +0 -1
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-search.test.js +0 -46
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-selection.test.d.ts +0 -1
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-selection.test.js +0 -28
- package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.test.d.ts +0 -0
- package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.test.js +0 -11922
- package/dist/components/ui/utils/memo.test.d.ts +0 -1
- package/dist/components/ui/utils/memo.test.js +0 -36
- package/dist/lib/arcade/arcade.test.d.ts +0 -1
- package/dist/lib/arcade/arcade.test.js +0 -309
- package/dist/lib/utils.test.d.ts +0 -1
- package/dist/lib/utils.test.js +0 -43
- package/dist/magic-string.es-uPKorP4O.js +0 -663
- package/dist/react.esm-DmVc5fnS.js +0 -37615
- 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
|
-
});
|
package/dist/lib/utils.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/lib/utils.test.js
DELETED
|
@@ -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
|
-
});
|