@arcadeai/design-system 2.3.0 → 3.0.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/dist/{arcade-DzMbb7xi.js → arcade-CHE48l2C.js} +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/ui/atoms/accordion.js +16 -16
- package/dist/components/ui/atoms/alert-dialog.js +25 -25
- package/dist/components/ui/atoms/avatar.js +7 -7
- package/dist/components/ui/atoms/checkbox.js +34 -34
- package/dist/components/ui/atoms/dropdown-menu.js +31 -31
- package/dist/components/ui/atoms/hover-card.js +19 -19
- package/dist/components/ui/atoms/popover.js +9 -9
- package/dist/components/ui/atoms/progress.js +11 -11
- package/dist/components/ui/atoms/radio-group.js +29 -29
- package/dist/components/ui/atoms/resizable.js +1 -1
- package/dist/components/ui/atoms/scroll-area.js +40 -40
- package/dist/components/ui/atoms/select.js +17 -17
- package/dist/components/ui/atoms/sidebar.js +4 -1
- package/dist/components/ui/atoms/slider.js +35 -35
- package/dist/components/ui/atoms/switch.js +15 -15
- package/dist/components/ui/atoms/tabs.js +13 -13
- package/dist/components/ui/atoms/tooltip.js +22 -22
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/molecules/index.js +1 -1
- package/dist/components/ui/molecules/requirement-badges.js +6 -5
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/components/ui/molecules/toolkit-picker-trigger.js +20 -23
- package/dist/components/ui/molecules/toolkit-selection-summary.js +16 -19
- package/dist/components/ui/organisms/toolkit-picker/components/action-buttons.js +6 -6
- package/dist/components/ui/organisms/toolkit-picker/components/filter-badges.js +9 -12
- package/dist/components/ui/organisms/toolkit-picker/components/search-input.js +12 -11
- package/dist/components/ui/organisms/toolkit-picker/components/select-button.js +5 -4
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.js +4 -7
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-list.js +5 -4
- package/dist/components/ui/organisms/toolkit-picker/components/tools-list.js +21 -21
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-filter.test.js +2 -2
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-search.test.js +2 -2
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-selection.test.js +2 -2
- package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.js +19 -23
- package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.test.js +1773 -1729
- package/dist/components/ui/utils/memo.test.js +1 -1
- package/dist/lib/arcade/arcade.js +1 -1
- package/dist/lib/arcade/arcade.test.js +2 -2
- package/dist/lib/utils.test.js +1 -1
- package/dist/main.js +195 -188
- package/dist/metadata/index.d.ts +1 -0
- package/dist/metadata/index.js +23 -16
- package/dist/metadata/toolkit-icons.d.ts +27 -0
- package/dist/metadata/toolkit-icons.js +227 -0
- package/dist/metadata/toolkits.js +341 -643
- package/dist/metadata/types.d.ts +1 -3
- package/dist/metadata/utils.d.ts +15 -0
- package/dist/metadata/utils.js +15 -8
- package/dist/{react-resizable-panels.browser-DggUboAp.js → react-resizable-panels.browser-31wAXhAV.js} +2 -1
- package/dist/{react.esm-DUaR5u-J.js → react.esm-I5_wjDW6.js} +17509 -15389
- package/dist/{toolkit-card-BWuG_NJi.js → toolkit-card-nuE_5OvN.js} +4 -3
- package/dist/{vi.bdSIJ99Y-Bs-viS39.js → vi.bdSIJ99Y-DBnM2VfT.js} +1296 -1315
- package/package.json +34 -34
- package/dist/components/ui/atoms/icons/utils.d.ts +0 -43
- package/dist/components/ui/atoms/icons/utils.js +0 -33
package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { T as c } from "../../../../../toolkit-card-nuE_5OvN.js";
|
|
3
|
+
import { getToolkitIcon as d } from "../../../../../metadata/toolkit-icons.js";
|
|
4
4
|
function g({
|
|
5
5
|
toolkit: e,
|
|
6
6
|
selectedTools: o,
|
|
@@ -12,15 +12,12 @@ function g({
|
|
|
12
12
|
(l) => o.has(l.fully_qualified_name)
|
|
13
13
|
).length, i = s === e.tools.length, r = s > 0 && s < e.tools.length;
|
|
14
14
|
return /* @__PURE__ */ m(
|
|
15
|
-
|
|
15
|
+
c,
|
|
16
16
|
{
|
|
17
17
|
"data-testid": `toolkit-card-${e.name}`,
|
|
18
18
|
description: e.description,
|
|
19
19
|
hideCheckbox: n === "single",
|
|
20
|
-
Icon:
|
|
21
|
-
metadataIcon: e.metadata?.icon,
|
|
22
|
-
toolkitName: e.name
|
|
23
|
-
}),
|
|
20
|
+
Icon: d(e.metadata?.id),
|
|
24
21
|
isByoc: e.metadata?.isBYOC ?? !1,
|
|
25
22
|
isPartiallySelected: r,
|
|
26
23
|
isPro: e.metadata?.isPro ?? !1,
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { EmptyState as k } from "../../../molecules/empty-state.js";
|
|
3
|
-
import "../../../../../toolkit-card-
|
|
3
|
+
import "../../../../../toolkit-card-nuE_5OvN.js";
|
|
4
4
|
import "../../../molecules/tool-card.js";
|
|
5
5
|
import "lucide-react";
|
|
6
|
+
import "../../../../../metadata/oauth-providers.js";
|
|
6
7
|
import "../../../../../metadata/toolkits.js";
|
|
7
8
|
import { useToolkitPicker as f } from "../hooks/use-toolkit-picker.js";
|
|
8
9
|
import "../../../atoms/mobile-tooltip.js";
|
|
9
10
|
import "../../../atoms/chart.js";
|
|
10
|
-
import "../../../../../react-resizable-panels.browser-
|
|
11
|
+
import "../../../../../react-resizable-panels.browser-31wAXhAV.js";
|
|
11
12
|
import "../../../atoms/sidebar.js";
|
|
12
13
|
import "react";
|
|
13
14
|
import "../../../atoms/table.js";
|
|
14
15
|
import { ToolkitCardWithSelection as h } from "./toolkit-card-with-selection.js";
|
|
15
|
-
function
|
|
16
|
+
function L({ selectionMode: s }) {
|
|
16
17
|
const {
|
|
17
18
|
state: { filteredToolkits: i, selectedToolkits: r, selectedTools: a },
|
|
18
19
|
toggleToolkit: x,
|
|
@@ -86,5 +87,5 @@ function F({ selectionMode: s }) {
|
|
|
86
87
|
] });
|
|
87
88
|
}
|
|
88
89
|
export {
|
|
89
|
-
|
|
90
|
+
L as ToolkitList
|
|
90
91
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import { getToolIconByToolkitName as u } from "../../../atoms/icons/utils.js";
|
|
3
2
|
import { EmptyState as h } from "../../../molecules/empty-state.js";
|
|
4
|
-
import "../../../../../toolkit-card-
|
|
3
|
+
import "../../../../../toolkit-card-nuE_5OvN.js";
|
|
5
4
|
import { ToolCard as p } from "../../../molecules/tool-card.js";
|
|
6
5
|
import "lucide-react";
|
|
6
|
+
import { getToolkitIcon as g } from "../../../../../metadata/toolkit-icons.js";
|
|
7
7
|
import { useToolkitPicker as x } from "../hooks/use-toolkit-picker.js";
|
|
8
8
|
import "../../../atoms/mobile-tooltip.js";
|
|
9
9
|
import "../../../atoms/chart.js";
|
|
10
|
-
import "../../../../../react-resizable-panels.browser-
|
|
10
|
+
import "../../../../../react-resizable-panels.browser-31wAXhAV.js";
|
|
11
11
|
import "../../../atoms/sidebar.js";
|
|
12
12
|
import "react";
|
|
13
13
|
import "../../../atoms/table.js";
|
|
14
|
-
function $({ selectionMode:
|
|
14
|
+
function $({ selectionMode: n }) {
|
|
15
15
|
const {
|
|
16
|
-
state: { filteredTools:
|
|
17
|
-
toggleTool:
|
|
16
|
+
state: { filteredTools: m, filteredToolkits: o, selectedTools: l },
|
|
17
|
+
toggleTool: c
|
|
18
18
|
} = x();
|
|
19
|
-
if (
|
|
19
|
+
if (m.size === 0)
|
|
20
20
|
return /* @__PURE__ */ t(
|
|
21
21
|
h,
|
|
22
22
|
{
|
|
@@ -25,9 +25,9 @@ function $({ selectionMode: d }) {
|
|
|
25
25
|
title: "No tools found"
|
|
26
26
|
}
|
|
27
27
|
);
|
|
28
|
-
const
|
|
28
|
+
const f = Array.from(m), i = f.filter(
|
|
29
29
|
(e) => l.has(e.fully_qualified_name)
|
|
30
|
-
),
|
|
30
|
+
), u = f.filter(
|
|
31
31
|
(e) => !l.has(e.fully_qualified_name)
|
|
32
32
|
);
|
|
33
33
|
return /* @__PURE__ */ a("div", { className: "space-y-4", "data-testid": "tools-grid", children: [
|
|
@@ -43,19 +43,19 @@ function $({ selectionMode: d }) {
|
|
|
43
43
|
"data-testid": "selected-tools-grid",
|
|
44
44
|
children: i.map((e) => {
|
|
45
45
|
const r = Array.from(o).find(
|
|
46
|
-
(
|
|
47
|
-
)?.metadata?.
|
|
46
|
+
(d) => d.name === e.toolkit.name
|
|
47
|
+
), s = g(r?.metadata?.id);
|
|
48
48
|
return /* @__PURE__ */ t(
|
|
49
49
|
p,
|
|
50
50
|
{
|
|
51
51
|
"data-testid": `tool-card-${e.fully_qualified_name}`,
|
|
52
52
|
description: e.description,
|
|
53
53
|
fully_qualified_name: e.fully_qualified_name,
|
|
54
|
-
hideCheckbox:
|
|
55
|
-
Icon:
|
|
54
|
+
hideCheckbox: n === "single",
|
|
55
|
+
Icon: s,
|
|
56
56
|
isSelected: l.has(e.fully_qualified_name),
|
|
57
57
|
name: e.name,
|
|
58
|
-
onSelect: () =>
|
|
58
|
+
onSelect: () => c(e),
|
|
59
59
|
toolkitName: e.toolkit.name
|
|
60
60
|
},
|
|
61
61
|
e.fully_qualified_name
|
|
@@ -67,23 +67,23 @@ function $({ selectionMode: d }) {
|
|
|
67
67
|
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
68
68
|
i.length > 0 && /* @__PURE__ */ a("div", { className: "flex items-center gap-1.5", children: [
|
|
69
69
|
/* @__PURE__ */ t("h3", { className: "font-semibold text-neutral-700 text-sm dark:text-neutral-200", children: "All tools" }),
|
|
70
|
-
/* @__PURE__ */ t("span", { className: "rounded-full bg-neutral-200 px-1.5 py-0.5 text-neutral-800 text-xs dark:bg-neutral-800 dark:text-neutral-200", children:
|
|
70
|
+
/* @__PURE__ */ t("span", { className: "rounded-full bg-neutral-200 px-1.5 py-0.5 text-neutral-800 text-xs dark:bg-neutral-800 dark:text-neutral-200", children: u.length })
|
|
71
71
|
] }),
|
|
72
|
-
/* @__PURE__ */ t("div", { className: "mt-2 grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-3", children:
|
|
72
|
+
/* @__PURE__ */ t("div", { className: "mt-2 grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-3", children: u.map((e) => {
|
|
73
73
|
const r = Array.from(o).find(
|
|
74
|
-
(
|
|
75
|
-
)?.metadata?.
|
|
74
|
+
(d) => d.name === e.toolkit.name
|
|
75
|
+
), s = g(r?.metadata?.id);
|
|
76
76
|
return /* @__PURE__ */ t(
|
|
77
77
|
p,
|
|
78
78
|
{
|
|
79
79
|
"data-testid": `tool-card-${e.fully_qualified_name}`,
|
|
80
80
|
description: e.description,
|
|
81
81
|
fully_qualified_name: e.fully_qualified_name,
|
|
82
|
-
hideCheckbox:
|
|
83
|
-
Icon:
|
|
82
|
+
hideCheckbox: n === "single",
|
|
83
|
+
Icon: s,
|
|
84
84
|
isSelected: l.has(e.fully_qualified_name),
|
|
85
85
|
name: e.name,
|
|
86
|
-
onSelect: () =>
|
|
86
|
+
onSelect: () => c(e),
|
|
87
87
|
toolkitName: e.toolkit.name
|
|
88
88
|
},
|
|
89
89
|
e.fully_qualified_name
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { r as c, a as i } from "../../../../../react.esm-
|
|
2
|
+
import { r as c, a as i } from "../../../../../react.esm-I5_wjDW6.js";
|
|
3
3
|
import { mockToolkitCollection as a } from "../mocks/toolkit-collection.js";
|
|
4
4
|
import { useToolkitPicker as n, ToolkitPickerProvider as k } from "./use-toolkit-picker.js";
|
|
5
|
-
import { d as T, b as d, i as u, g as e, v as p } from "../../../../../vi.bdSIJ99Y-
|
|
5
|
+
import { d as T, b as d, i as u, g as e, v as p } from "../../../../../vi.bdSIJ99Y-DBnM2VfT.js";
|
|
6
6
|
T("useToolkitPicker - Filter Tests", () => {
|
|
7
7
|
d(() => {
|
|
8
8
|
p.clearAllMocks();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { r as c, a as l } from "../../../../../react.esm-
|
|
2
|
+
import { r as c, a as l } from "../../../../../react.esm-I5_wjDW6.js";
|
|
3
3
|
import { mockToolkitCollection as a } from "../mocks/toolkit-collection.js";
|
|
4
4
|
import { useToolkitPicker as n, ToolkitPickerProvider as u } from "./use-toolkit-picker.js";
|
|
5
|
-
import { d as k, b as h, i as d, g as o, v as m } from "../../../../../vi.bdSIJ99Y-
|
|
5
|
+
import { d as k, b as h, i as d, g as o, v as m } from "../../../../../vi.bdSIJ99Y-DBnM2VfT.js";
|
|
6
6
|
k("useToolkitPicker - Search Tests", () => {
|
|
7
7
|
h(() => {
|
|
8
8
|
m.clearAllMocks();
|
package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-selection.test.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { r as i, a as t } from "../../../../../react.esm-
|
|
2
|
+
import { r as i, a as t } from "../../../../../react.esm-I5_wjDW6.js";
|
|
3
3
|
import { simpleMockToolkitCollection as c } from "../mocks/toolkit-collection.js";
|
|
4
4
|
import { useToolkitPicker as a, ToolkitPickerProvider as n } from "./use-toolkit-picker.js";
|
|
5
|
-
import { d as u, b as k, i as d, g as o, v as m } from "../../../../../vi.bdSIJ99Y-
|
|
5
|
+
import { d as u, b as k, i as d, g as o, v as m } from "../../../../../vi.bdSIJ99Y-DBnM2VfT.js";
|
|
6
6
|
u("useToolkitPicker - Selection Tests", () => {
|
|
7
7
|
k(() => {
|
|
8
8
|
m.clearAllMocks();
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import "../../../../../web-sgv-FK6q.js";
|
|
2
|
-
import "react/jsx-runtime";
|
|
3
|
-
import { Generic as w } from "../../../atoms/icons/generic.js";
|
|
4
2
|
import { allTools as d } from "../../../../../lib/arcade/mocks.js";
|
|
5
|
-
import { TOOLKIT_CATALOGUE as
|
|
6
|
-
const
|
|
7
|
-
const l =
|
|
3
|
+
import { TOOLKIT_CATALOGUE as w } from "../../../../../metadata/toolkits.js";
|
|
4
|
+
const y = d.filter((i) => i.toolkit.name === "basic"), q = d.filter((i) => i.toolkit.name === "api_toolkit"), M = d.filter((i) => i.toolkit.name === "Google"), T = d.filter((i) => i.toolkit.name === "Gmail"), o = (i, r = !1, n = !1) => {
|
|
5
|
+
const l = w[i];
|
|
8
6
|
return l ? {
|
|
9
7
|
...l,
|
|
10
8
|
isBYOC: r,
|
|
@@ -15,8 +13,6 @@ const q = d.filter((i) => i.toolkit.name === "basic"), M = d.filter((i) => i.too
|
|
|
15
13
|
isBYOC: r,
|
|
16
14
|
isPro: n,
|
|
17
15
|
publicIconUrl: "",
|
|
18
|
-
icon: w,
|
|
19
|
-
summary: `Mock ${i} toolkit`,
|
|
20
16
|
docsLink: `https://docs.example.com/${i}`,
|
|
21
17
|
relativeDocsLink: `/${i}`,
|
|
22
18
|
type: "community",
|
|
@@ -24,12 +20,12 @@ const q = d.filter((i) => i.toolkit.name === "basic"), M = d.filter((i) => i.too
|
|
|
24
20
|
isComingSoon: !1,
|
|
25
21
|
isHidden: !1
|
|
26
22
|
};
|
|
27
|
-
},
|
|
23
|
+
}, b = {
|
|
28
24
|
basic: {
|
|
29
25
|
name: "basic",
|
|
30
26
|
description: "Basic toolkit with essential tools",
|
|
31
27
|
version: "1.0.0",
|
|
32
|
-
tools:
|
|
28
|
+
tools: y,
|
|
33
29
|
requirements: {
|
|
34
30
|
met: !0,
|
|
35
31
|
secrets: [],
|
|
@@ -41,7 +37,7 @@ const q = d.filter((i) => i.toolkit.name === "basic"), M = d.filter((i) => i.too
|
|
|
41
37
|
name: "api_toolkit",
|
|
42
38
|
description: "API toolkit for external integrations",
|
|
43
39
|
version: "2.0.0",
|
|
44
|
-
tools:
|
|
40
|
+
tools: q,
|
|
45
41
|
requirements: {
|
|
46
42
|
met: !1,
|
|
47
43
|
secrets: [
|
|
@@ -219,7 +215,7 @@ const q = d.filter((i) => i.toolkit.name === "basic"), M = d.filter((i) => i.too
|
|
|
219
215
|
name: "Google",
|
|
220
216
|
description: "Arcade.dev LLM tools for Google Workspace",
|
|
221
217
|
version: "1.2.4",
|
|
222
|
-
tools:
|
|
218
|
+
tools: M,
|
|
223
219
|
requirements: {
|
|
224
220
|
met: !0,
|
|
225
221
|
secrets: [],
|
|
@@ -238,7 +234,7 @@ const q = d.filter((i) => i.toolkit.name === "basic"), M = d.filter((i) => i.too
|
|
|
238
234
|
name: "Gmail",
|
|
239
235
|
description: "Arcade.dev LLM tools for Gmail",
|
|
240
236
|
version: "2.0.0",
|
|
241
|
-
tools:
|
|
237
|
+
tools: T,
|
|
242
238
|
requirements: {
|
|
243
239
|
met: !0,
|
|
244
240
|
secrets: [],
|
|
@@ -378,7 +374,7 @@ function f(i) {
|
|
|
378
374
|
searchIndex: u
|
|
379
375
|
};
|
|
380
376
|
}
|
|
381
|
-
const
|
|
377
|
+
const S = {
|
|
382
378
|
Slack: {
|
|
383
379
|
name: "Slack",
|
|
384
380
|
description: "Slack communication toolkit",
|
|
@@ -431,7 +427,7 @@ const A = {
|
|
|
431
427
|
],
|
|
432
428
|
requirements: { met: !0, secrets: [], authorization: [], scopes: {} }
|
|
433
429
|
}
|
|
434
|
-
},
|
|
430
|
+
}, C = f(b), N = f(S), A = {
|
|
435
431
|
Gmail: {
|
|
436
432
|
name: "Gmail",
|
|
437
433
|
description: "Gmail email management toolkit",
|
|
@@ -618,8 +614,8 @@ const A = {
|
|
|
618
614
|
scopes: { notion: ["read", "write"] }
|
|
619
615
|
}
|
|
620
616
|
}
|
|
621
|
-
},
|
|
622
|
-
function
|
|
617
|
+
}, $ = f(A);
|
|
618
|
+
function P() {
|
|
623
619
|
const i = {}, _ = [
|
|
624
620
|
"Discord",
|
|
625
621
|
"Notion",
|
|
@@ -696,11 +692,11 @@ function L() {
|
|
|
696
692
|
}
|
|
697
693
|
export {
|
|
698
694
|
f as createMockToolkitCollection,
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
695
|
+
$ as demoMockToolkitCollection,
|
|
696
|
+
A as demoMockToolkits,
|
|
697
|
+
P as generateLargeDataset,
|
|
698
|
+
C as mockToolkitCollection,
|
|
699
|
+
b as mockToolkits,
|
|
700
|
+
N as simpleMockToolkitCollection,
|
|
701
|
+
S as simpleMockToolkits
|
|
706
702
|
};
|