@arcadeai/design-system 1.5.0 → 1.5.1

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 (32) hide show
  1. package/dist/{arcade-CadnNaba.js → arcade-DSu1Vp41.js} +135 -135
  2. package/dist/components/index.js +1 -1
  3. package/dist/components/ui/atoms/icons/jira.js +1 -10
  4. package/dist/components/ui/atoms/icons/utils.d.ts +0 -13
  5. package/dist/components/ui/atoms/icons/utils.js +22 -30
  6. package/dist/components/ui/index.js +1 -1
  7. package/dist/components/ui/molecules/index.js +1 -1
  8. package/dist/components/ui/molecules/requirement-badges.js +4 -5
  9. package/dist/components/ui/molecules/toolkit-card.js +1 -1
  10. package/dist/components/ui/molecules/toolkit-selection-summary.js +1 -1
  11. package/dist/components/ui/organisms/toolkit-picker/components/search-input.js +3 -4
  12. package/dist/components/ui/organisms/toolkit-picker/components/select-button.js +5 -6
  13. package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.js +1 -1
  14. package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.js +1 -1
  15. package/dist/lib/arcade/arcade.d.ts +1 -1
  16. package/dist/lib/arcade/arcade.js +1 -1
  17. package/dist/lib/arcade/arcade.test.js +1 -1
  18. package/dist/main.js +181 -175
  19. package/dist/metadata/constants.d.ts +1 -0
  20. package/dist/metadata/constants.js +4 -0
  21. package/dist/metadata/index.d.ts +3 -0
  22. package/dist/metadata/index.js +17 -11
  23. package/dist/metadata/oauth-providers.d.ts +21 -13
  24. package/dist/metadata/oauth-providers.js +106 -80
  25. package/dist/metadata/toolkits.d.ts +1 -21
  26. package/dist/metadata/toolkits.js +169 -155
  27. package/dist/metadata/types.d.ts +39 -0
  28. package/dist/metadata/types.js +1 -0
  29. package/dist/metadata/utils.d.ts +16 -0
  30. package/dist/metadata/utils.js +11 -0
  31. package/dist/{toolkit-card-UG1sZ0Le.js → toolkit-card-CHiL03EY.js} +2 -3
  32. package/package.json +1 -1
@@ -1,7 +1,8 @@
1
- import { SVGProps } from 'react';
1
+ import { OAuthCatalogue } from './types';
2
2
  export declare const OAuthId: {
3
3
  readonly Asana: "arcade-asana";
4
4
  readonly Atlassian: "arcade-atlassian";
5
+ readonly Clickup: "arcade-clickup";
5
6
  readonly Discord: "arcade-discord";
6
7
  readonly Dropbox: "arcade-dropbox";
7
8
  readonly Github: "arcade-github";
@@ -19,11 +20,13 @@ export declare const OAuthId: {
19
20
  readonly Tesla: "arcade-tesla";
20
21
  readonly Twitch: "arcade-twitch";
21
22
  readonly X: "arcade-x";
23
+ readonly Zendesk: "arcade-zendesk";
22
24
  readonly Zoom: "arcade-zoom";
23
25
  };
24
26
  export declare const OAuthProviderId: {
25
27
  readonly Asana: "asana";
26
28
  readonly Atlassian: "atlassian";
29
+ readonly Clickup: "clickup";
27
30
  readonly Discord: "discord";
28
31
  readonly Dropbox: "dropbox";
29
32
  readonly Github: "github";
@@ -41,29 +44,34 @@ export declare const OAuthProviderId: {
41
44
  readonly Tesla: "tesla";
42
45
  readonly Twitch: "twitch";
43
46
  readonly X: "x";
47
+ readonly Zendesk: "zendesk";
44
48
  readonly Zoom: "zoom";
45
49
  };
46
- export type OAuthId = (typeof OAuthId)[keyof typeof OAuthId];
47
- export type OAuthProviderId = (typeof OAuthProviderId)[keyof typeof OAuthProviderId];
48
- export type OAuthCatalogue = {
49
- id: OAuthId;
50
- provider_id: OAuthProviderId;
51
- name: string;
52
- description: string;
53
- publicIconUrl: string;
54
- icon: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
55
- docs: string;
56
- };
50
+ /**
51
+ * PREBUILT OAUTH PROVIDERS - A list of all OAuth providers that are prebuilt
52
+ */
57
53
  export declare const PREBUILT_OAUTH_PROVIDERS: OAuthCatalogue[];
54
+ /**
55
+ * OAUTH2 PROVIDER - The default OAuth 2.0 provider
56
+ */
58
57
  export declare const OAUTH2_PROVIDER: {
59
58
  id: "arcade-oauth2";
60
59
  provider_id: "oauth2";
61
60
  name: string;
62
61
  description: string;
63
62
  publicIconUrl: string;
64
- icon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
63
+ icon: (props: import('react').SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
65
64
  docs: string;
66
65
  };
66
+ /**
67
+ * OTHER OAUTH PROVIDERS - A list of all OAuth providers that are not prebuilt
68
+ */
67
69
  export declare const OTHER_OAUTH_PROVIDERS: OAuthCatalogue[];
70
+ /**
71
+ * OAUTH PROVIDERS - A list of all OAuth providers
72
+ */
68
73
  export declare const OAUTH_PROVIDERS: OAuthCatalogue[];
74
+ /**
75
+ * OAUTH PROVIDER CATALOGUE - A map of provider IDs to their respective provider
76
+ */
69
77
  export declare const OAUTH_PROVIDER_CATALOGUE: Record<string, OAuthCatalogue>;
@@ -1,26 +1,31 @@
1
+ import "react/jsx-runtime";
1
2
  import { Asana as d } from "../components/ui/atoms/icons/asana.js";
2
3
  import { Atlassian as s } from "../components/ui/atoms/icons/atlassian.js";
3
- import { Discord as a } from "../components/ui/atoms/icons/discord.js";
4
- import { Dropbox as c } from "../components/ui/atoms/icons/dropbox.js";
5
- import { Github as n } from "../components/ui/atoms/icons/github.js";
6
- import { Google as p } from "../components/ui/atoms/icons/google.js";
7
- import { Hubspot as h } from "../components/ui/atoms/icons/hubspot.js";
8
- import { Linear as l } from "../components/ui/atoms/icons/linear.js";
9
- import { Linkedin as u } from "../components/ui/atoms/icons/linkedin.js";
10
- import { Microsoft as m } from "../components/ui/atoms/icons/microsoft.js";
11
- import { Notion as v } from "../components/ui/atoms/icons/notion.js";
12
- import { Oauth as g } from "../components/ui/atoms/icons/oauth.js";
13
- import { Reddit as b } from "../components/ui/atoms/icons/reddit.js";
14
- import { Salesforce as f } from "../components/ui/atoms/icons/salesforce.js";
15
- import { Slack as A } from "../components/ui/atoms/icons/slack.js";
4
+ import { Clickup as a } from "../components/ui/atoms/icons/clickup.js";
5
+ import { Discord as c } from "../components/ui/atoms/icons/discord.js";
6
+ import { Dropbox as n } from "../components/ui/atoms/icons/dropbox.js";
7
+ import { Github as p } from "../components/ui/atoms/icons/github.js";
8
+ import { Google as h } from "../components/ui/atoms/icons/google.js";
9
+ import { Hubspot as l } from "../components/ui/atoms/icons/hubspot.js";
10
+ import { Linear as u } from "../components/ui/atoms/icons/linear.js";
11
+ import { Linkedin as m } from "../components/ui/atoms/icons/linkedin.js";
12
+ import { Microsoft as v } from "../components/ui/atoms/icons/microsoft.js";
13
+ import { Notion as g } from "../components/ui/atoms/icons/notion.js";
14
+ import { Oauth as b } from "../components/ui/atoms/icons/oauth.js";
15
+ import { Reddit as f } from "../components/ui/atoms/icons/reddit.js";
16
+ import { Salesforce as A } from "../components/ui/atoms/icons/salesforce.js";
17
+ import { Slack as k } from "../components/ui/atoms/icons/slack.js";
16
18
  import { Spotify as w } from "../components/ui/atoms/icons/spotify.js";
17
19
  import { Tesla as I } from "../components/ui/atoms/icons/tesla.js";
18
- import { Twitch as _ } from "../components/ui/atoms/icons/twitch.js";
19
- import { X as U } from "../components/ui/atoms/icons/x.js";
20
+ import { Twitch as U } from "../components/ui/atoms/icons/twitch.js";
21
+ import { X as _ } from "../components/ui/atoms/icons/x.js";
22
+ import { Zendesk as z } from "../components/ui/atoms/icons/zendesk.js";
20
23
  import { Zoom as S } from "../components/ui/atoms/icons/zoom.js";
21
- const o = "https://design-system.arcade.dev/icons", i = {
24
+ import { PUBLIC_ICON_URL as o } from "./constants.js";
25
+ const i = {
22
26
  Asana: "arcade-asana",
23
27
  Atlassian: "arcade-atlassian",
28
+ Clickup: "arcade-clickup",
24
29
  Discord: "arcade-discord",
25
30
  Dropbox: "arcade-dropbox",
26
31
  Github: "arcade-github",
@@ -38,10 +43,12 @@ const o = "https://design-system.arcade.dev/icons", i = {
38
43
  Tesla: "arcade-tesla",
39
44
  Twitch: "arcade-twitch",
40
45
  X: "arcade-x",
46
+ Zendesk: "arcade-zendesk",
41
47
  Zoom: "arcade-zoom"
42
- }, t = {
48
+ }, e = {
43
49
  Asana: "asana",
44
50
  Atlassian: "atlassian",
51
+ Clickup: "clickup",
45
52
  Discord: "discord",
46
53
  Dropbox: "dropbox",
47
54
  Github: "github",
@@ -59,11 +66,12 @@ const o = "https://design-system.arcade.dev/icons", i = {
59
66
  Tesla: "tesla",
60
67
  Twitch: "twitch",
61
68
  X: "x",
69
+ Zendesk: "zendesk",
62
70
  Zoom: "zoom"
63
71
  }, T = [
64
72
  {
65
73
  id: i.Asana,
66
- provider_id: t.Asana,
74
+ provider_id: e.Asana,
67
75
  name: "Asana",
68
76
  description: "Authorize tools and agents with Asana",
69
77
  publicIconUrl: `${o}/asana.svg`,
@@ -72,7 +80,7 @@ const o = "https://design-system.arcade.dev/icons", i = {
72
80
  },
73
81
  {
74
82
  id: i.Atlassian,
75
- provider_id: t.Atlassian,
83
+ provider_id: e.Atlassian,
76
84
  name: "Atlassian",
77
85
  description: "Authorize tools and agents with Atlassian",
78
86
  publicIconUrl: `${o}/atlassian.svg`,
@@ -81,180 +89,198 @@ const o = "https://design-system.arcade.dev/icons", i = {
81
89
  },
82
90
  {
83
91
  id: i.Discord,
84
- provider_id: t.Discord,
92
+ provider_id: e.Discord,
85
93
  name: "Discord",
86
94
  description: "Authorize tools and agents with Discord in a user's context",
87
95
  publicIconUrl: `${o}/discord.svg`,
88
- icon: a,
96
+ icon: c,
89
97
  docs: "https://docs.arcade.dev/home/auth-providers/discord"
90
98
  },
91
99
  {
92
100
  id: i.Dropbox,
93
- provider_id: t.Dropbox,
101
+ provider_id: e.Dropbox,
94
102
  name: "Dropbox",
95
103
  description: "Authorize tools and agents with Dropbox",
96
104
  publicIconUrl: `${o}/dropbox.svg`,
97
- icon: c,
105
+ icon: n,
98
106
  docs: "https://docs.arcade.dev/home/auth-providers/dropbox"
99
107
  },
100
108
  {
101
109
  id: i.Github,
102
- provider_id: t.Github,
110
+ provider_id: e.Github,
103
111
  name: "GitHub",
104
112
  description: "Authorize tools and agents with GitHub, including private repositories",
105
113
  publicIconUrl: `${o}/github.svg`,
106
- icon: n,
114
+ icon: p,
107
115
  docs: "https://docs.arcade.dev/home/auth-providers/github"
108
116
  },
109
117
  {
110
118
  id: i.Google,
111
- provider_id: t.Google,
119
+ provider_id: e.Google,
112
120
  name: "Google",
113
121
  description: "Authorize tools and agents with Google: Gmail, Calendar, YouTube, Drive, and more",
114
122
  publicIconUrl: `${o}/google.svg`,
115
- icon: p,
123
+ icon: h,
116
124
  docs: "https://docs.arcade.dev/home/auth-providers/google"
117
125
  },
118
126
  {
119
127
  id: i.Hubspot,
120
- provider_id: t.Hubspot,
128
+ provider_id: e.Hubspot,
121
129
  name: "HubSpot",
122
130
  description: "Authorize tools and agents with HubSpot",
123
131
  publicIconUrl: `${o}/hubspot.svg`,
124
- icon: h,
132
+ icon: l,
125
133
  docs: "https://docs.arcade.dev/home/auth-providers/hubspot"
126
134
  },
127
135
  {
128
136
  id: i.Linear,
129
- provider_id: t.Linear,
137
+ provider_id: e.Linear,
130
138
  name: "Linear",
131
139
  description: "Authorize tools and agents with Linear",
132
140
  publicIconUrl: `${o}/linear.svg`,
133
- icon: l,
141
+ icon: u,
134
142
  docs: "https://docs.arcade.dev/home/auth-providers/linear"
135
143
  },
136
144
  {
137
145
  id: i.Linkedin,
138
- provider_id: t.Linkedin,
146
+ provider_id: e.Linkedin,
139
147
  name: "LinkedIn",
140
148
  description: "Authorize tools and agents with LinkedIn",
141
149
  publicIconUrl: `${o}/linkedin.svg`,
142
- icon: u,
150
+ icon: m,
143
151
  docs: "https://docs.arcade.dev/home/auth-providers/linkedin"
144
152
  },
145
153
  {
146
154
  id: i.Microsoft,
147
- provider_id: t.Microsoft,
155
+ provider_id: e.Microsoft,
148
156
  name: "Microsoft",
149
157
  description: "Authorize tools and agents with Microsoft",
150
158
  publicIconUrl: `${o}/microsoft.svg`,
151
- icon: m,
159
+ icon: v,
152
160
  docs: "https://docs.arcade.dev/home/auth-providers/microsoft"
153
161
  },
154
162
  {
155
163
  id: i.Notion,
156
- provider_id: t.Notion,
164
+ provider_id: e.Notion,
157
165
  name: "Notion",
158
166
  description: "Authorize tools and agents with Notion",
159
167
  publicIconUrl: `${o}/notion.svg`,
160
- icon: v,
168
+ icon: g,
161
169
  docs: "https://docs.arcade.dev/home/auth-providers/notion"
162
170
  },
163
171
  {
164
172
  id: i.Reddit,
165
- provider_id: t.Reddit,
173
+ provider_id: e.Reddit,
166
174
  name: "Reddit",
167
175
  description: "Authorize tools and agents with Reddit",
168
176
  publicIconUrl: `${o}/reddit.svg`,
169
- icon: b,
177
+ icon: f,
170
178
  docs: "https://docs.arcade.dev/home/auth-providers/reddit"
171
179
  },
172
180
  {
173
181
  id: i.Slack,
174
- provider_id: t.Slack,
182
+ provider_id: e.Slack,
175
183
  name: "Slack",
176
184
  description: "Authorize tools and agents with Slack",
177
185
  publicIconUrl: `${o}/slack.svg`,
178
- icon: A,
186
+ icon: k,
179
187
  docs: "https://docs.arcade.dev/home/auth-providers/slack"
180
188
  },
181
- {
182
- id: i.Spotify,
183
- provider_id: t.Spotify,
184
- name: "Spotify",
185
- description: "Authorize tools and agents with Spotify",
186
- publicIconUrl: `${o}/spotify.svg`,
187
- icon: w,
188
- docs: "https://docs.arcade.dev/home/auth-providers/spotify"
189
- },
190
- {
191
- id: i.Tesla,
192
- provider_id: t.Tesla,
193
- name: "Tesla",
194
- description: "Authorize tools and agents with Tesla",
195
- publicIconUrl: `${o}/tesla.svg`,
196
- icon: I,
197
- docs: "https://docs.arcade.dev/home/auth-providers/tesla"
198
- },
199
189
  {
200
190
  id: i.Twitch,
201
- provider_id: t.Twitch,
191
+ provider_id: e.Twitch,
202
192
  name: "Twitch",
203
193
  description: "Authorize tools and agents with Twitch",
204
194
  publicIconUrl: `${o}/twitch.svg`,
205
- icon: _,
195
+ icon: U,
206
196
  docs: "https://docs.arcade.dev/home/auth-providers/twitch"
207
197
  },
208
198
  {
209
199
  id: i.X,
210
- provider_id: t.X,
200
+ provider_id: e.X,
211
201
  name: "X (Twitter)",
212
202
  description: "Authorize tools and agents with X (Twitter)",
213
203
  publicIconUrl: `${o}/x.svg`,
214
- icon: U,
204
+ icon: _,
215
205
  docs: "https://docs.arcade.dev/home/auth-providers/x"
216
206
  },
217
207
  {
218
208
  id: i.Zoom,
219
- provider_id: t.Zoom,
209
+ provider_id: e.Zoom,
220
210
  name: "Zoom",
221
211
  description: "Authorize tools and agents with Zoom",
222
212
  publicIconUrl: `${o}/zoom.svg`,
223
213
  icon: S,
224
214
  docs: "https://docs.arcade.dev/home/auth-providers/zoom"
225
215
  }
226
- ], z = {
216
+ ], O = {
227
217
  id: i.OAuth2,
228
- provider_id: t.OAuth2,
218
+ provider_id: e.OAuth2,
229
219
  name: "OAuth 2.0",
230
220
  description: "Authorize tools and agents with any OAuth 2.0 compatible provider",
231
221
  publicIconUrl: `${o}/oauth.svg`,
232
- icon: g,
222
+ icon: b,
233
223
  docs: "https://docs.arcade.dev/home/auth-providers/oauth2"
234
- }, k = [
235
- z,
224
+ }, $ = [
225
+ O,
226
+ {
227
+ id: i.Clickup,
228
+ provider_id: e.Clickup,
229
+ name: "ClickUp",
230
+ description: "Authorize tools and agents with ClickUp",
231
+ publicIconUrl: `${o}/clickup.svg`,
232
+ icon: a,
233
+ docs: "https://docs.arcade.dev/home/auth-providers/clickup"
234
+ },
236
235
  {
237
236
  id: i.Salesforce,
238
- provider_id: t.Salesforce,
237
+ provider_id: e.Salesforce,
239
238
  name: "Salesforce",
240
239
  description: "Authorize tools and agents with Salesforce",
241
240
  publicIconUrl: `${o}/salesforce.svg`,
242
- icon: f,
241
+ icon: A,
243
242
  docs: "https://docs.arcade.dev/home/auth-providers/salesforce"
243
+ },
244
+ {
245
+ id: i.Spotify,
246
+ provider_id: e.Spotify,
247
+ name: "Spotify",
248
+ description: "Authorize tools and agents with Spotify",
249
+ publicIconUrl: `${o}/spotify.svg`,
250
+ icon: w,
251
+ docs: "https://docs.arcade.dev/home/auth-providers/spotify"
252
+ },
253
+ {
254
+ id: i.Tesla,
255
+ provider_id: e.Tesla,
256
+ name: "Tesla",
257
+ description: "Authorize tools and agents with Tesla",
258
+ publicIconUrl: `${o}/tesla.svg`,
259
+ icon: I,
260
+ docs: "https://docs.arcade.dev/home/auth-providers/tesla"
261
+ },
262
+ {
263
+ id: i.Zendesk,
264
+ provider_id: e.Zendesk,
265
+ name: "Zendesk",
266
+ description: "Authorize tools and agents with Zendesk",
267
+ publicIconUrl: `${o}/zendesk.svg`,
268
+ icon: z,
269
+ docs: "https://docs.arcade.dev/home/auth-providers/zendesk"
244
270
  }
245
- ], O = [
271
+ ], D = [
246
272
  ...T,
247
- ...k
248
- ], F = O.reduce(
249
- (e, r) => (e[r.provider_id] = r, e),
273
+ ...$
274
+ ], io = D.reduce(
275
+ (t, r) => (t[r.provider_id] = r, t),
250
276
  {}
251
277
  );
252
278
  export {
253
- z as OAUTH2_PROVIDER,
254
- O as OAUTH_PROVIDERS,
255
- F as OAUTH_PROVIDER_CATALOGUE,
279
+ O as OAUTH2_PROVIDER,
280
+ D as OAUTH_PROVIDERS,
281
+ io as OAUTH_PROVIDER_CATALOGUE,
256
282
  i as OAuthId,
257
- t as OAuthProviderId,
258
- k as OTHER_OAUTH_PROVIDERS,
283
+ e as OAuthProviderId,
284
+ $ as OTHER_OAUTH_PROVIDERS,
259
285
  T as PREBUILT_OAUTH_PROVIDERS
260
286
  };
@@ -1,24 +1,4 @@
1
- import { SVGProps } from 'react';
2
- export type ToolkitType = 'arcade' | 'verified' | 'community' | 'auth';
3
- export type ToolkitCategory = 'all' | 'productivity' | 'social' | 'development' | 'entertainment' | 'search' | 'payments' | 'sales' | 'databases' | 'customer-support';
4
- export type Toolkit = {
5
- id: string;
6
- label: string;
7
- isBYOC: boolean;
8
- isPro: boolean;
9
- publicIconUrl: string;
10
- icon: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
11
- summary: string;
12
- docsLink: string;
13
- relativeDocsLink: string;
14
- type: ToolkitType;
15
- category: ToolkitCategory;
16
- isComingSoon?: boolean;
17
- };
18
- export type Category = {
19
- id: ToolkitCategory;
20
- name: string;
21
- };
1
+ import { Category, Toolkit } from './types';
22
2
  export declare const CATEGORIES: Category[];
23
3
  export declare const TOOLKITS: Toolkit[];
24
4
  export declare const TOOLKIT_CATALOGUE: Record<string, Toolkit>;