@arcadeai/design-system 3.27.2 → 3.27.4

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.
@@ -1,10 +1,10 @@
1
- import * as e from "react";
2
- import { forwardRef as r } from "react";
3
- const c = ({
4
- title: l,
1
+ import * as l from "react";
2
+ import { forwardRef as c } from "react";
3
+ const o = ({
4
+ title: e,
5
5
  titleId: a,
6
- ...t
7
- }, f) => /* @__PURE__ */ e.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024", ref: f, "aria-labelledby": a, ...t }, l ? /* @__PURE__ */ e.createElement("title", { id: a }, l) : null, /* @__PURE__ */ e.createElement("path", { d: "M4.8 438.2A520.7 520.7 0 000 489.7h777.8c-2.7-5.3-6.4-10-10-14.7-133-171.8-204.5-157-306.9-161.3-34-1.4-57.2-2-193-2-72.7 0-151.7.2-228.6.4A621 621 0 0015 386.3h398.6v51.9H4.8zm779.1 103.5H.4c.8 13.8 2.1 27.5 4 41h723.4c32.2 0 50.3-18.3 56.1-41zM45 724.3s120 294.5 466.5 299.7c207 0 385-123 465.9-299.7H45z", fill: "#fff" }), /* @__PURE__ */ e.createElement("path", { d: "M511.5 0A512.2 512.2 0 0065.3 260.6l202.7-.2c158.4 0 164.2.6 195.2 2l19.1.6c66.7 2.3 148.7 9.4 213.2 58.2 35 26.5 85.6 85 115.7 126.5 27.9 38.5 35.9 82.8 17 125.2-17.5 39-55 62.2-100.4 62.2H16.7s4.2 18 10.6 37.8h970.6a510.4 510.4 0 0026.1-160.7A512.4 512.4 0 00511.5 0z", fill: "#fff" })), m = r(c);
6
+ ...r
7
+ }, t) => /* @__PURE__ */ l.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024", ref: t, "aria-labelledby": a, ...r }, e ? /* @__PURE__ */ l.createElement("title", { id: a }, e) : null, /* @__PURE__ */ l.createElement("path", { d: "M4.8 438.2A520.7 520.7 0 000 489.7h777.8c-2.7-5.3-6.4-10-10-14.7-133-171.8-204.5-157-306.9-161.3-34-1.4-57.2-2-193-2-72.7 0-151.7.2-228.6.4A621 621 0 0015 386.3h398.6v51.9H4.8zm779.1 103.5H.4c.8 13.8 2.1 27.5 4 41h723.4c32.2 0 50.3-18.3 56.1-41zM45 724.3s120 294.5 466.5 299.7c207 0 385-123 465.9-299.7H45z", className: "fill-black dark:fill-white", fill: "currentColor" }), /* @__PURE__ */ l.createElement("path", { d: "M511.5 0A512.2 512.2 0 0065.3 260.6l202.7-.2c158.4 0 164.2.6 195.2 2l19.1.6c66.7 2.3 148.7 9.4 213.2 58.2 35 26.5 85.6 85 115.7 126.5 27.9 38.5 35.9 82.8 17 125.2-17.5 39-55 62.2-100.4 62.2H16.7s4.2 18 10.6 37.8h970.6a510.4 510.4 0 0026.1-160.7A512.4 512.4 0 00511.5 0z", className: "fill-black dark:fill-white", fill: "currentColor" })), s = c(o);
8
8
  export {
9
- m as default
9
+ s as default
10
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/ui/atoms/icons/index.tsx"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,cAAc,OAAO,CAAA;AACrB,cAAc,OAAO,CAAA;AACrB,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;A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AI,OAAO,QAAQ,CAAC,aAAa,CAAC,4CAiBrD,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"railway.d.ts","sourceRoot":"","sources":["../../../../../lib/components/ui/atoms/icons/railway.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEtC,eAAO,MAAM,OAAO,GAAI,OAAO,QAAQ,CAAC,aAAa,CAAC,4CAcrD,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,31 +1,24 @@
1
- import { jsxs as i, jsx as l } from "react/jsx-runtime";
2
- const t = (f) => /* @__PURE__ */ i(
3
- "svg",
4
- {
5
- fill: "none",
6
- viewBox: "0 0 1024 1024",
7
- xmlns: "http://www.w3.org/2000/svg",
8
- ...f,
9
- children: [
10
- /* @__PURE__ */ l("title", { children: "Railway" }),
11
- /* @__PURE__ */ l(
12
- "path",
13
- {
14
- d: "M4.8 438.2A520.7 520.7 0 000 489.7h777.8c-2.7-5.3-6.4-10-10-14.7-133-171.8-204.5-157-306.9-161.3-34-1.4-57.2-2-193-2-72.7 0-151.7.2-228.6.4A621 621 0 0015 386.3h398.6v51.9H4.8zm779.1 103.5H.4c.8 13.8 2.1 27.5 4 41h723.4c32.2 0 50.3-18.3 56.1-41zM45 724.3s120 294.5 466.5 299.7c207 0 385-123 465.9-299.7H45z",
15
- fill: "#fff"
16
- }
17
- ),
18
- /* @__PURE__ */ l(
19
- "path",
20
- {
21
- d: "M511.5 0A512.2 512.2 0 0065.3 260.6l202.7-.2c158.4 0 164.2.6 195.2 2l19.1.6c66.7 2.3 148.7 9.4 213.2 58.2 35 26.5 85.6 85 115.7 126.5 27.9 38.5 35.9 82.8 17 125.2-17.5 39-55 62.2-100.4 62.2H16.7s4.2 18 10.6 37.8h970.6a510.4 510.4 0 0026.1-160.7A512.4 512.4 0 00511.5 0z",
22
- fill: "#fff"
23
- }
24
- )
25
- ]
26
- }
27
- );
1
+ import { jsxs as c, jsx as l } from "react/jsx-runtime";
2
+ const r = (a) => /* @__PURE__ */ c("svg", { viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", ...a, children: [
3
+ /* @__PURE__ */ l("title", { children: "Railway" }),
4
+ /* @__PURE__ */ l(
5
+ "path",
6
+ {
7
+ className: "fill-black dark:fill-white",
8
+ d: "M4.8 438.2A520.7 520.7 0 000 489.7h777.8c-2.7-5.3-6.4-10-10-14.7-133-171.8-204.5-157-306.9-161.3-34-1.4-57.2-2-193-2-72.7 0-151.7.2-228.6.4A621 621 0 0015 386.3h398.6v51.9H4.8zm779.1 103.5H.4c.8 13.8 2.1 27.5 4 41h723.4c32.2 0 50.3-18.3 56.1-41zM45 724.3s120 294.5 466.5 299.7c207 0 385-123 465.9-299.7H45z",
9
+ fill: "currentColor"
10
+ }
11
+ ),
12
+ /* @__PURE__ */ l(
13
+ "path",
14
+ {
15
+ className: "fill-black dark:fill-white",
16
+ d: "M511.5 0A512.2 512.2 0 0065.3 260.6l202.7-.2c158.4 0 164.2.6 195.2 2l19.1.6c66.7 2.3 148.7 9.4 213.2 58.2 35 26.5 85.6 85 115.7 126.5 27.9 38.5 35.9 82.8 17 125.2-17.5 39-55 62.2-100.4 62.2H16.7s4.2 18 10.6 37.8h970.6a510.4 510.4 0 0026.1-160.7A512.4 512.4 0 00511.5 0z",
17
+ fill: "currentColor"
18
+ }
19
+ )
20
+ ] });
28
21
  export {
29
- t as Railway,
30
- t as default
22
+ r as Railway,
23
+ r as default
31
24
  };
@@ -23,7 +23,7 @@ function $({
23
23
  {
24
24
  className: r,
25
25
  "data-testid": "use-tools-button",
26
- disabled: t === "single" && o === 0,
26
+ disabled: t === "single" && o !== 1,
27
27
  onClick: i,
28
28
  size: "sm",
29
29
  children: t === "single" ? "Select Tool" : o === 0 ? "Select Tools" : `Use ${o} ${o === 1 ? "Tool" : "Tools"}`
@@ -1 +1 @@
1
- {"version":3,"file":"toolkit-collection.d.ts","sourceRoot":"","sources":["../../../../../../lib/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAGV,OAAO,EACP,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AA2C/B,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAqPhD,CAAC;AAGF,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,iBAAiB,CA8HnB;AAGD,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAqDtD,CAAC;AAEF,eAAO,MAAM,qBAAqB,mBAA4C,CAAC;AAC/E,eAAO,MAAM,2BAA2B,mBACS,CAAC;AAGlD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CA2LpD,CAAC;AAEF,eAAO,MAAM,yBAAyB,mBACS,CAAC;AAGhD,wBAAgB,oBAAoB,CAClC,OAAO,GAAE;IACP,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CACxB,GACL,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA2LzB"}
1
+ {"version":3,"file":"toolkit-collection.d.ts","sourceRoot":"","sources":["../../../../../../lib/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAGV,OAAO,EACP,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AA8C/B,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAoThD,CAAC;AAGF,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,iBAAiB,CAkJnB;AAGD,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAqDtD,CAAC;AAEF,eAAO,MAAM,qBAAqB,mBAA4C,CAAC;AAC/E,eAAO,MAAM,2BAA2B,mBACS,CAAC;AAGlD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CA2LpD,CAAC;AAEF,eAAO,MAAM,yBAAyB,mBACS,CAAC;AAGhD,wBAAgB,oBAAoB,CAClC,OAAO,GAAE;IACP,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CACxB,GACL,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA6MzB"}
@@ -1,31 +1,32 @@
1
1
  import "../../../../../web-sgv-FK6q.js";
2
2
  import { allTools as h } from "../../../../../lib/arcade/mocks.js";
3
- import { TOOLKIT_CATALOGUE as M } from "../../../../../metadata/toolkits.js";
4
- const G = h.filter((a) => a.toolkit.name === "basic"), E = h.filter((a) => a.toolkit.name === "api_toolkit"), I = h.filter((a) => a.toolkit.name === "Google"), N = h.filter((a) => a.toolkit.name === "Gmail"), o = (a, n = !1, s = !1) => {
5
- const l = M[a];
6
- return l ? {
7
- ...l,
8
- isBYOC: n,
9
- isPro: s
3
+ import { TOOLKIT_CATALOGUE as P } from "../../../../../metadata/toolkits.js";
4
+ const E = h.filter((a) => a.toolkit.name === "basic"), N = h.filter((a) => a.toolkit.name === "api_toolkit"), C = h.filter((a) => a.toolkit.name === "Google"), $ = h.filter((a) => a.toolkit.name === "Gmail"), i = (a, r = !1, n = !1, l) => {
5
+ const c = P[a];
6
+ return c ? {
7
+ ...c,
8
+ isBYOC: r,
9
+ isPro: n,
10
+ ...l !== void 0 ? { type: l } : {}
10
11
  } : {
11
12
  id: a,
12
13
  label: a,
13
- isBYOC: n,
14
- isPro: s,
14
+ isBYOC: r,
15
+ isPro: n,
15
16
  publicIconUrl: "",
16
17
  docsLink: `https://docs.example.com/${a}`,
17
18
  relativeDocsLink: `/${a}`,
18
- type: "community",
19
+ type: l ?? "community",
19
20
  category: "productivity",
20
21
  isComingSoon: !1,
21
22
  isHidden: !1
22
23
  };
23
- }, C = {
24
+ }, x = {
24
25
  basic: {
25
26
  name: "basic",
26
27
  description: "Basic toolkit with essential tools",
27
28
  version: "1.0.0",
28
- tools: G,
29
+ tools: E,
29
30
  requirements: {
30
31
  met: !0,
31
32
  secrets: [],
@@ -37,7 +38,7 @@ const G = h.filter((a) => a.toolkit.name === "basic"), E = h.filter((a) => a.too
37
38
  name: "api_toolkit",
38
39
  description: "API toolkit for external integrations",
39
40
  version: "2.0.0",
40
- tools: E,
41
+ tools: N,
41
42
  requirements: {
42
43
  met: !1,
43
44
  secrets: [
@@ -215,7 +216,7 @@ const G = h.filter((a) => a.toolkit.name === "basic"), E = h.filter((a) => a.too
215
216
  name: "Google",
216
217
  description: "Arcade.dev LLM tools for Google Workspace",
217
218
  version: "1.2.4",
218
- tools: I,
219
+ tools: C,
219
220
  requirements: {
220
221
  met: !0,
221
222
  secrets: [],
@@ -234,7 +235,7 @@ const G = h.filter((a) => a.toolkit.name === "basic"), E = h.filter((a) => a.too
234
235
  name: "Gmail",
235
236
  description: "Arcade.dev LLM tools for Gmail",
236
237
  version: "2.0.0",
237
- tools: N,
238
+ tools: $,
238
239
  requirements: {
239
240
  met: !0,
240
241
  secrets: [],
@@ -258,123 +259,202 @@ const G = h.filter((a) => a.toolkit.name === "basic"), E = h.filter((a) => a.too
258
259
  ]
259
260
  }
260
261
  }
262
+ },
263
+ // Starter/API endpoint toolkits
264
+ GmailApi: {
265
+ name: "GmailApi",
266
+ description: "Gmail API endpoints for direct API access",
267
+ version: "1.0.0",
268
+ tools: [
269
+ {
270
+ name: "gmail_api_send",
271
+ input: { parameters: [] },
272
+ qualified_name: "gmail_api.send",
273
+ description: "Send email via Gmail API",
274
+ fully_qualified_name: "gmail_api.send",
275
+ toolkit: {
276
+ name: "GmailApi",
277
+ description: "Gmail API endpoints for direct API access",
278
+ version: "1.0.0"
279
+ }
280
+ },
281
+ {
282
+ name: "gmail_api_list",
283
+ input: { parameters: [] },
284
+ qualified_name: "gmail_api.list",
285
+ description: "List emails via Gmail API",
286
+ fully_qualified_name: "gmail_api.list",
287
+ toolkit: {
288
+ name: "GmailApi",
289
+ description: "Gmail API endpoints for direct API access",
290
+ version: "1.0.0"
291
+ }
292
+ }
293
+ ],
294
+ requirements: {
295
+ met: !0,
296
+ secrets: [],
297
+ authorization: [],
298
+ scopes: {}
299
+ }
300
+ },
301
+ SlackApi: {
302
+ name: "SlackApi",
303
+ description: "Slack API endpoints for direct API access",
304
+ version: "1.0.0",
305
+ tools: [
306
+ {
307
+ name: "slack_api_post_message",
308
+ input: { parameters: [] },
309
+ qualified_name: "slack_api.post_message",
310
+ description: "Post message via Slack API",
311
+ fully_qualified_name: "slack_api.post_message",
312
+ toolkit: {
313
+ name: "SlackApi",
314
+ description: "Slack API endpoints for direct API access",
315
+ version: "1.0.0"
316
+ }
317
+ }
318
+ ],
319
+ requirements: {
320
+ met: !0,
321
+ secrets: [],
322
+ authorization: [],
323
+ scopes: {}
324
+ }
261
325
  }
262
326
  };
263
- function A(a) {
264
- const n = [], s = [], l = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map(), u = {
327
+ function b(a) {
328
+ const r = [], n = [], l = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), m = {
265
329
  toolkitsByName: /* @__PURE__ */ new Map(),
266
330
  toolsByName: /* @__PURE__ */ new Map()
267
331
  };
268
- for (const [e, i] of Object.entries(a)) {
269
- const v = `${i.name} ${i.description || ""} ${i.version || ""}`, y = {
270
- secrets: i.requirements?.secrets?.length ? {
271
- configured: i.requirements.secrets.filter((t) => t.met === !0).map((t) => t.key),
272
- pending: i.requirements.secrets.filter((t) => t.met === !1).map((t) => t.key)
332
+ for (const [e, o] of Object.entries(a)) {
333
+ const v = `${o.name} ${o.description || ""} ${o.version || ""}`, A = {
334
+ secrets: o.requirements?.secrets?.length ? {
335
+ configured: o.requirements.secrets.filter((t) => t.met === !0).map((t) => t.key),
336
+ pending: o.requirements.secrets.filter((t) => t.met === !1).map((t) => t.key)
273
337
  } : void 0,
274
- oauth: i.requirements?.authorization?.length ? {
275
- providers: i.requirements.authorization.filter((t) => t.provider_id || t.id).map((t) => ({
338
+ oauth: o.requirements?.authorization?.length ? {
339
+ providers: o.requirements.authorization.filter((t) => t.provider_id || t.id).map((t) => ({
276
340
  id: t.provider_id || t.id || "",
277
341
  status: t.status,
278
342
  scopes: t.oauth2?.scopes || []
279
343
  }))
280
344
  } : void 0
281
- }, w = (() => {
345
+ }, y = (() => {
282
346
  switch (e) {
283
347
  case "basic":
284
- return o(e, !1, !1);
348
+ return i(e, !1, !1);
285
349
  // Neither BYOC nor Pro
286
350
  case "api_toolkit":
287
- return o(e, !0, !1);
351
+ return i(e, !0, !1);
288
352
  // BYOC only
289
353
  case "Advanced Integration":
290
- return o(e, !0, !1);
354
+ return i(e, !0, !1);
291
355
  // BYOC only
292
356
  case "Enterprise Suite":
293
- return o(e, !0, !0);
357
+ return i(e, !0, !0);
294
358
  // Both BYOC and Pro
295
359
  case "Google":
296
- return o(e, !1, !0);
360
+ return i(e, !1, !0);
297
361
  // Pro only
298
362
  case "Gmail":
299
- return o(e, !1, !1);
363
+ return i(e, !1, !1);
300
364
  // Neither BYOC nor Pro
365
+ // Starter/API endpoint toolkits (explicit names)
366
+ case "GmailApi":
367
+ case "SlackApi":
368
+ case "GithubApi":
369
+ case "NotionApi":
370
+ case "StripeApi":
371
+ case "DiscordApi":
372
+ case "JiraApi":
373
+ case "AsanaApi":
374
+ case "LinearApi":
375
+ case "AirtableApi":
376
+ case "DropboxApi":
377
+ case "CalendarApi":
378
+ case "DriveApi":
379
+ case "SheetsApi":
380
+ return i(e, !1, !1, "arcade_starter");
301
381
  // Real toolkits with variety
302
382
  case "GitHub":
303
- return o(e, !1, !0);
383
+ return i(e, !1, !0);
304
384
  // Pro only
305
385
  case "Slack":
306
- return o(e, !1, !1);
386
+ return i(e, !1, !1);
307
387
  // Neither BYOC nor Pro
308
388
  case "Discord":
309
- return o(e, !0, !1);
389
+ return i(e, !0, !1);
310
390
  // BYOC only
311
391
  case "Notion":
312
- return o(e, !1, !0);
392
+ return i(e, !1, !0);
313
393
  // Pro only
314
394
  case "Stripe":
315
- return o(e, !0, !0);
395
+ return i(e, !0, !0);
316
396
  // Both BYOC and Pro
317
397
  case "Asana":
318
- return o(e, !1, !1);
398
+ return i(e, !1, !1);
319
399
  // Neither BYOC nor Pro
320
400
  case "Linear":
321
- return o(e, !0, !1);
401
+ return i(e, !0, !1);
322
402
  // BYOC only
323
403
  case "Airtable":
324
- return o(e, !1, !0);
404
+ return i(e, !1, !0);
325
405
  // Pro only
326
406
  case "Dropbox":
327
- return o(e, !1, !1);
407
+ return i(e, !1, !1);
328
408
  // Neither BYOC nor Pro
329
409
  case "E2B":
330
- return o(e, !0, !0);
410
+ return i(e, !0, !0);
331
411
  // Both BYOC and Pro
332
412
  case "Firecrawl":
333
- return o(e, !0, !0);
413
+ return i(e, !0, !0);
334
414
  // Both BYOC and Pro
335
415
  // Add variety for generated toolkits
336
416
  case "Cloud":
337
417
  case "Security":
338
- return o(e, !0, !0);
418
+ return i(e, !0, !0);
339
419
  // Both BYOC and Pro
340
420
  case "Database":
341
421
  case "Analytics":
342
- return o(e, !1, !0);
422
+ return i(e, !1, !0);
343
423
  // Pro only
344
424
  case "Email":
345
425
  case "AI":
346
- return o(e, !0, !1);
426
+ return i(e, !0, !1);
347
427
  // BYOC only
348
428
  default:
349
- return o(e, !1, !1);
429
+ return e.endsWith("Api") ? i(e, !1, !1, "arcade_starter") : i(e, !1, !1);
350
430
  }
351
431
  })(), d = {
352
- ...i,
432
+ ...o,
353
433
  searchableText: v,
354
- requirementsSummary: y,
355
- metadata: w
434
+ requirementsSummary: A,
435
+ metadata: y
356
436
  };
357
- n.push(d), l.set(e, d), u.toolkitsByName.set(e.toLowerCase(), d);
358
- for (const t of i.tools) {
359
- const _ = `${t.name} ${t.fully_qualified_name} ${t.description || ""} ${i.name} ${i.description || ""}`, c = {
437
+ r.push(d), l.set(e, d), m.toolkitsByName.set(e.toLowerCase(), d);
438
+ for (const t of o.tools) {
439
+ const u = `${t.name} ${t.fully_qualified_name} ${t.description || ""} ${o.name} ${o.description || ""}`, p = {
360
440
  ...t,
361
- searchableText: _
441
+ searchableText: u
362
442
  };
363
- s.push(c), m.set(t.fully_qualified_name, e), u.toolsByName.set(
443
+ n.push(p), c.set(t.fully_qualified_name, e), m.toolsByName.set(
364
444
  t.fully_qualified_name.toLowerCase(),
365
- c
445
+ p
366
446
  );
367
447
  }
368
448
  }
369
449
  return {
370
- toolkits: n,
371
- tools: s,
450
+ toolkits: r,
451
+ tools: n,
372
452
  toolkitMap: l,
373
- toolToToolkitMap: m,
374
- searchIndex: u
453
+ toolToToolkitMap: c,
454
+ searchIndex: m
375
455
  };
376
456
  }
377
- const $ = {
457
+ const D = {
378
458
  Slack: {
379
459
  name: "Slack",
380
460
  description: "Slack communication toolkit",
@@ -427,7 +507,7 @@ const $ = {
427
507
  ],
428
508
  requirements: { met: !0, secrets: [], authorization: [], scopes: {} }
429
509
  }
430
- }, D = A(C), L = A($), P = {
510
+ }, O = b(x), B = b(D), z = {
431
511
  Gmail: {
432
512
  name: "Gmail",
433
513
  description: "Gmail email management toolkit",
@@ -614,13 +694,19 @@ const $ = {
614
694
  scopes: { notion: ["read", "write"] }
615
695
  }
616
696
  }
617
- }, R = A(P);
618
- function O(a = {}) {
697
+ }, K = b(z);
698
+ function W(a = {}) {
619
699
  const {
620
- toolkitCount: n = 100,
621
- minToolsPerToolkit: s = 10,
700
+ toolkitCount: r = 100,
701
+ minToolsPerToolkit: n = 10,
622
702
  maxToolsPerToolkit: l = 25
623
- } = a, m = {}, u = 3, e = 1, i = 10, v = 0.3, y = 0.7, w = 0.5, d = 0.5, t = [
703
+ } = a, c = {}, m = 3, e = 1, o = 10, v = 0.3, A = 0.7, y = 0.5, d = 0.5, t = [
704
+ "GmailApi",
705
+ "SlackApi",
706
+ "GithubApi",
707
+ "NotionApi",
708
+ "StripeApi"
709
+ ], u = [
624
710
  "Gmail",
625
711
  "GoogleCalendar",
626
712
  "GoogleDocs",
@@ -676,7 +762,7 @@ function O(a = {}) {
676
762
  "Alerting",
677
763
  "Backup",
678
764
  "Recovery"
679
- ], _ = [
765
+ ], p = [
680
766
  "Pro",
681
767
  "Enterprise",
682
768
  "Basic",
@@ -685,18 +771,21 @@ function O(a = {}) {
685
771
  "Starter",
686
772
  "Core",
687
773
  "Plus"
688
- ], c = [];
689
- for (let r = 0; c.length < n; r++) {
690
- const p = t[r % t.length];
691
- if (r < t.length)
692
- c.push(p);
774
+ ], G = Math.min(r, t.length), w = t.slice(
775
+ 0,
776
+ G
777
+ ), M = Math.max(0, r - G);
778
+ for (let s = 0; s < M; s++) {
779
+ const _ = u[s % u.length];
780
+ if (s < u.length)
781
+ w.push(_);
693
782
  else {
694
- const f = Math.floor(r / t.length) - 1, q = _[f % _.length];
695
- c.push(`${p} ${q}`);
783
+ const f = Math.floor(s / u.length) - 1, q = p[f % p.length];
784
+ w.push(`${_} ${q}`);
696
785
  }
697
786
  }
698
- for (const r of c) {
699
- const p = [], f = r.toLowerCase().replace(/\s+/g, "_"), q = l - s + 1, S = s + Math.floor(Math.random() * q), T = [
787
+ for (const s of w) {
788
+ const _ = [], f = s.toLowerCase().replace(/\s+/g, "_"), q = l - n + 1, I = n + Math.floor(Math.random() * q), T = [
700
789
  "create",
701
790
  "read",
702
791
  "update",
@@ -723,37 +812,37 @@ function O(a = {}) {
723
812
  "archive",
724
813
  "restore"
725
814
  ];
726
- for (let g = 0; g < S; g++) {
727
- const k = T[g % T.length], b = `${k}_${f}_${g + 1}`;
728
- p.push({
729
- name: b,
730
- fully_qualified_name: `${f}.${b}`,
731
- qualified_name: b,
732
- description: `${k.charAt(0).toUpperCase() + k.slice(1)} operation for ${r} - performs ${k} with advanced features and error handling`,
815
+ for (let k = 0; k < I; k++) {
816
+ const g = T[k % T.length], S = `${g}_${f}_${k + 1}`;
817
+ _.push({
818
+ name: S,
819
+ fully_qualified_name: `${f}.${S}`,
820
+ qualified_name: S,
821
+ description: `${g.charAt(0).toUpperCase() + g.slice(1)} operation for ${s} - performs ${g} with advanced features and error handling`,
733
822
  toolkit: {
734
- name: r,
735
- description: `${r} toolkit for comprehensive operations`,
736
- version: `${Math.floor(Math.random() * u) + e}.${Math.floor(
737
- Math.random() * i
823
+ name: s,
824
+ description: `${s} toolkit for comprehensive operations`,
825
+ version: `${Math.floor(Math.random() * m) + e}.${Math.floor(
826
+ Math.random() * o
738
827
  )}.0`
739
828
  },
740
829
  input: { parameters: [] },
741
830
  requirements: void 0
742
831
  });
743
832
  }
744
- m[r] = {
745
- name: r,
746
- description: `${r} toolkit with ${S} powerful tools for comprehensive operations`,
747
- version: `${Math.floor(Math.random() * u) + e}.${Math.floor(
748
- Math.random() * i
833
+ c[s] = {
834
+ name: s,
835
+ description: `${s} toolkit with ${I} powerful tools for comprehensive operations`,
836
+ version: `${Math.floor(Math.random() * m) + e}.${Math.floor(
837
+ Math.random() * o
749
838
  )}.0`,
750
- tools: p,
839
+ tools: _,
751
840
  requirements: {
752
841
  met: Math.random() > v,
753
- secrets: Math.random() > y ? [
842
+ secrets: Math.random() > A ? [
754
843
  {
755
844
  key: `${f.toUpperCase()}_API_KEY`,
756
- met: Math.random() > w,
845
+ met: Math.random() > y,
757
846
  status_reason: Math.random() > d ? "API key configured" : "API key not found"
758
847
  }
759
848
  ] : [],
@@ -762,15 +851,15 @@ function O(a = {}) {
762
851
  }
763
852
  };
764
853
  }
765
- return m;
854
+ return c;
766
855
  }
767
856
  export {
768
- A as createMockToolkitCollection,
769
- R as demoMockToolkitCollection,
770
- P as demoMockToolkits,
771
- O as generateLargeDataset,
772
- D as mockToolkitCollection,
773
- C as mockToolkits,
774
- L as simpleMockToolkitCollection,
775
- $ as simpleMockToolkits
857
+ b as createMockToolkitCollection,
858
+ K as demoMockToolkitCollection,
859
+ z as demoMockToolkits,
860
+ W as generateLargeDataset,
861
+ O as mockToolkitCollection,
862
+ x as mockToolkits,
863
+ B as simpleMockToolkitCollection,
864
+ D as simpleMockToolkits
776
865
  };
@@ -0,0 +1,51 @@
1
+ import { ProcessedToolkit } from '../../../../../lib/arcade/arcade';
2
+ /**
3
+ * A ToolkitGroup represents a primary toolkit and its associated unoptimized/starter toolkit.
4
+ *
5
+ * For example, "Gmail" (primary) may be grouped with "GmailApi" (starter/unoptimized).
6
+ * For now, unoptimized toolkits are always shown. In the future, they will not be.
7
+ * When the unoptimized toolkits toggle is off, only primary tools are shown.
8
+ * When on, both primary and unoptimized/starter tools are included.
9
+ */
10
+ export type ToolkitGroup = {
11
+ /** The primary (non-starter) toolkit, or the starter toolkit if no primary exists */
12
+ primary: ProcessedToolkit;
13
+ /** Associated unoptimized/starter toolkit (null if none) */
14
+ starterToolkit: ProcessedToolkit | null;
15
+ /** True if this group has no primary toolkit (starter-only) */
16
+ isStarterOnly: boolean;
17
+ /** Display name for the group (uses primary toolkit name) */
18
+ displayName: string;
19
+ };
20
+ /**
21
+ * Check if a toolkit is an unoptimized/starter toolkit based on metadata type
22
+ */
23
+ export declare const isStarterToolkit: (toolkit: ProcessedToolkit) => boolean;
24
+ /**
25
+ * Group toolkits into ToolkitGroups by pairing primary toolkits with their starter counterpart.
26
+ *
27
+ * Strategy:
28
+ * 1. Identify all starter toolkits and try to match them to a primary
29
+ * 2. Group matched starter with its primary
30
+ * 3. Standalone starters (no matching primary) become their own starter-only groups
31
+ * 4. Primary toolkits without starters become groups with null starterToolkit
32
+ *
33
+ * Ordering: Groups are returned with primary toolkits first (in input order),
34
+ * followed by any unmatched starter-only groups (in input order).
35
+ */
36
+ export declare function groupToolkits(toolkits: ProcessedToolkit[]): ToolkitGroup[];
37
+ /**
38
+ * Get the tool count for a toolkit group.
39
+ * If includeStarter is true, includes tool count from the starter toolkit.
40
+ */
41
+ export declare function getGroupToolCount(group: ToolkitGroup, includeStarter: boolean): number;
42
+ /**
43
+ * Check if a toolkit group has any selected tools.
44
+ * When includeStarter is false, only checks primary toolkit tools.
45
+ */
46
+ export declare function hasSelectedToolsInGroup(group: ToolkitGroup, selectedTools: Set<string>, includeStarter?: boolean): boolean;
47
+ /**
48
+ * Count selected tools in a group.
49
+ */
50
+ export declare function countSelectedToolsInGroup(group: ToolkitGroup, selectedTools: Set<string>, includeStarter: boolean): number;
51
+ //# sourceMappingURL=toolkit-grouping.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolkit-grouping.d.ts","sourceRoot":"","sources":["../../../../../../lib/components/ui/organisms/toolkit-picker/utils/toolkit-grouping.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,qFAAqF;IACrF,OAAO,EAAE,gBAAgB,CAAC;IAC1B,4DAA4D;IAC5D,cAAc,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACxC,+DAA+D;IAC/D,aAAa,EAAE,OAAO,CAAC;IACvB,6DAA6D;IAC7D,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,gBAAgB,KAAG,OAChB,CAAC;AAuE9C;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,gBAAgB,EAAE,GAAG,YAAY,EAAE,CAyD1E;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,YAAY,EACnB,cAAc,EAAE,OAAO,GACtB,MAAM,CAWR;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,YAAY,EACnB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,EAC1B,cAAc,UAAO,GACpB,OAAO,CAuBT;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,YAAY,EACnB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,EAC1B,cAAc,EAAE,OAAO,GACtB,MAAM,CAqBR"}
@@ -0,0 +1,81 @@
1
+ const l = (t) => t.metadata?.type === "arcade_starter", f = /^(.+?)api$/i, u = /[A-Z][a-z]*$/;
2
+ function m(t) {
3
+ const e = t.match(f);
4
+ return e ? e[1] : null;
5
+ }
6
+ function c(t, e) {
7
+ const o = m(t.name);
8
+ if (!o)
9
+ return null;
10
+ const n = o.toLowerCase(), s = e.find(
11
+ (a) => !l(a) && a.name.toLowerCase() === n
12
+ ) ?? null;
13
+ if (s)
14
+ return s;
15
+ const i = o.replace(u, "");
16
+ if (!i || i === o)
17
+ return null;
18
+ const r = i.toLowerCase();
19
+ return e.find(
20
+ (a) => !l(a) && a.name.toLowerCase() === r
21
+ ) ?? null;
22
+ }
23
+ function y(t) {
24
+ const e = [], o = [];
25
+ for (const r of t)
26
+ l(r) ? e.push(r) : o.push(r);
27
+ const n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set();
28
+ for (const r of o)
29
+ n.set(r.name, null);
30
+ for (const r of e) {
31
+ const a = c(r, o);
32
+ a && !n.get(a.name) && (n.set(a.name, r), s.add(r.name));
33
+ }
34
+ const i = [];
35
+ for (const r of o) {
36
+ const a = n.get(r.name) ?? null;
37
+ i.push({
38
+ primary: r,
39
+ starterToolkit: a,
40
+ isStarterOnly: !1,
41
+ displayName: r.name
42
+ });
43
+ }
44
+ for (const r of e)
45
+ s.has(r.name) || i.push({
46
+ primary: r,
47
+ starterToolkit: null,
48
+ isStarterOnly: !0,
49
+ displayName: r.name
50
+ });
51
+ return i;
52
+ }
53
+ function p(t, e) {
54
+ if (!e && t.isStarterOnly)
55
+ return 0;
56
+ let o = t.primary.tools.length;
57
+ return e && t.starterToolkit && (o += t.starterToolkit.tools.length), o;
58
+ }
59
+ function h(t, e, o = !0) {
60
+ return !o && t.isStarterOnly ? !1 : !!(t.primary.tools.some((n) => e.has(n.fully_qualified_name)) || o && t.starterToolkit && t.starterToolkit.tools.some(
61
+ (n) => e.has(n.fully_qualified_name)
62
+ ));
63
+ }
64
+ function d(t, e, o) {
65
+ if (!o && t.isStarterOnly)
66
+ return 0;
67
+ let n = 0;
68
+ for (const s of t.primary.tools)
69
+ e.has(s.fully_qualified_name) && (n += 1);
70
+ if (o && t.starterToolkit)
71
+ for (const s of t.starterToolkit.tools)
72
+ e.has(s.fully_qualified_name) && (n += 1);
73
+ return n;
74
+ }
75
+ export {
76
+ d as countSelectedToolsInGroup,
77
+ p as getGroupToolCount,
78
+ y as groupToolkits,
79
+ h as hasSelectedToolsInGroup,
80
+ l as isStarterToolkit
81
+ };
package/package.json CHANGED
@@ -1,81 +1,66 @@
1
1
  {
2
2
  "name": "@arcadeai/design-system",
3
3
  "private": false,
4
- "version": "3.27.2",
4
+ "version": "3.27.4",
5
5
  "type": "module",
6
- "main": "./lib/main.ts",
7
- "types": "./lib/main.ts",
6
+ "main": "./dist/main.js",
7
+ "types": "./dist/main.d.ts",
8
8
  "exports": {
9
- ".": "./lib/main.ts",
10
- "./rhf": "./lib/integrations/rhf/index.ts",
11
- "./index.css": "./lib/index.css",
12
- "./components/ui/organisms/toolkit-picker": "./lib/components/ui/organisms/toolkit-picker/index.tsx",
13
- "./components/*": "./lib/components/*.tsx",
14
- "./hooks/*": "./lib/hooks/*.ts",
15
- "./lib/*": "./lib/lib/*.ts",
16
- "./metadata/toolkit-icons": "./lib/metadata/toolkit-icons.tsx",
17
- "./metadata/*": "./lib/metadata/*.ts",
18
- "./integrations/*": "./lib/integrations/*.ts",
19
- "./assets/images/*": "./lib/assets/images/*.svg",
20
- "./assets/icons/*": "./lib/assets/icons/*.svg",
21
- "./assets/*": "./lib/assets/*",
22
- "./assets/variables.css": "./lib/variables.css",
23
- "./assets/tokens.css": "./lib/tokens.css",
24
- "./assets/fonts.css": "./lib/fonts.css",
25
- "./variables.css": "./lib/variables.css",
26
- "./tokens.css": "./lib/tokens.css",
27
- "./fonts.css": "./lib/fonts.css"
28
- },
29
- "publishConfig": {
30
- "main": "dist/main.js",
31
- "types": "dist/main.d.ts",
32
- "exports": {
33
- ".": {
34
- "types": "./dist/main.d.ts",
35
- "default": "./dist/main.js"
36
- },
37
- "./rhf": {
38
- "types": "./dist/integrations/rhf/index.d.ts",
39
- "default": "./dist/integrations/rhf/index.js"
40
- },
41
- "./index.css": "./dist/assets/index.css",
42
- "./components/*": {
43
- "types": "./dist/components/*.d.ts",
44
- "default": "./dist/components/*.js"
45
- },
46
- "./hooks/*": {
47
- "types": "./dist/hooks/*.d.ts",
48
- "default": "./dist/hooks/*.js"
49
- },
50
- "./lib/*": {
51
- "types": "./dist/lib/*.d.ts",
52
- "default": "./dist/lib/*.js"
53
- },
54
- "./metadata/*": {
55
- "types": "./dist/metadata/*.d.ts",
56
- "default": "./dist/metadata/*.js"
57
- },
58
- "./integrations/*": {
59
- "types": "./dist/integrations/*.d.ts",
60
- "default": "./dist/integrations/*.js"
61
- },
62
- "./assets/images/*": {
63
- "types": "./dist/assets/images/*.d.ts",
64
- "default": "./dist/assets/images/*.js"
65
- },
66
- "./assets/icons/*": {
67
- "types": "./dist/assets/icons/*.d.ts",
68
- "default": "./dist/assets/icons/*.js"
69
- },
70
- "./assets/*": "./dist/assets/*"
9
+ ".": {
10
+ "@arcade/source": "./lib/main.ts",
11
+ "types": "./dist/main.d.ts",
12
+ "default": "./dist/main.js"
13
+ },
14
+ "./rhf": {
15
+ "@arcade/source": "./lib/integrations/rhf/index.ts",
16
+ "types": "./dist/integrations/rhf/index.d.ts",
17
+ "default": "./dist/integrations/rhf/index.js"
18
+ },
19
+ "./index.css": "./dist/assets/index.css",
20
+ "./components/ui/organisms/toolkit-picker": {
21
+ "@arcade/source": "./lib/components/ui/organisms/toolkit-picker/index.tsx",
22
+ "types": "./dist/components/ui/organisms/toolkit-picker/index.d.ts",
23
+ "default": "./dist/components/ui/organisms/toolkit-picker/index.js"
24
+ },
25
+ "./components/*": {
26
+ "@arcade/source": "./lib/components/*.tsx",
27
+ "types": "./dist/components/*.d.ts",
28
+ "default": "./dist/components/*.js"
29
+ },
30
+ "./hooks/*": {
31
+ "@arcade/source": "./lib/hooks/*.ts",
32
+ "types": "./dist/hooks/*.d.ts",
33
+ "default": "./dist/hooks/*.js"
34
+ },
35
+ "./lib/*": {
36
+ "@arcade/source": "./lib/lib/*.ts",
37
+ "types": "./dist/lib/*.d.ts",
38
+ "default": "./dist/lib/*.js"
39
+ },
40
+ "./metadata/toolkit-icons": {
41
+ "@arcade/source": "./lib/metadata/toolkit-icons.tsx",
42
+ "types": "./dist/metadata/toolkit-icons.d.ts",
43
+ "default": "./dist/metadata/toolkit-icons.js"
44
+ },
45
+ "./metadata/*": {
46
+ "@arcade/source": "./lib/metadata/*.ts",
47
+ "types": "./dist/metadata/*.d.ts",
48
+ "default": "./dist/metadata/*.js"
49
+ },
50
+ "./integrations/*": {
51
+ "@arcade/source": "./lib/integrations/*.ts",
52
+ "types": "./dist/integrations/*.d.ts",
53
+ "default": "./dist/integrations/*.js"
71
54
  },
72
- "typesVersions": {
73
- "*": {
74
- "*": [
75
- "dist/*"
76
- ]
77
- }
78
- }
55
+ "./assets/images/*": "./dist/assets/images/*",
56
+ "./assets/icons/*": "./dist/assets/icons/*",
57
+ "./assets/*": "./dist/assets/*",
58
+ "./assets/variables.css": "./dist/assets/variables.css",
59
+ "./assets/tokens.css": "./dist/assets/tokens.css",
60
+ "./assets/fonts.css": "./dist/assets/fonts.css",
61
+ "./variables.css": "./dist/assets/variables.css",
62
+ "./tokens.css": "./dist/assets/tokens.css",
63
+ "./fonts.css": "./dist/assets/fonts.css"
79
64
  },
80
65
  "repository": "github:ArcadeAI/Design-System",
81
66
  "files": [
@@ -130,7 +115,7 @@
130
115
  "@vitest/browser-playwright": "4.0.16",
131
116
  "@vitest/coverage-v8": "4.0.16",
132
117
  "chromatic": "13.3.0",
133
- "glob": "11.0.3",
118
+ "glob": "11.1.0",
134
119
  "globals": "16.4.0",
135
120
  "happy-dom": "20.0.5",
136
121
  "lucide-react": "0.546.0",