@arcadeai/design-system 1.5.1 → 1.6.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-DSu1Vp41.js → arcade-DzMbb7xi.js} +512 -586
- package/dist/components/index.js +302 -300
- package/dist/components/ui/atoms/icons/codesandbox.d.ts +3 -0
- package/dist/components/ui/atoms/icons/codesandbox.js +26 -0
- package/dist/components/ui/atoms/icons/index.d.ts +1 -0
- package/dist/components/ui/atoms/icons/index.js +182 -180
- package/dist/components/ui/atoms/index.js +285 -283
- package/dist/components/ui/index.js +302 -300
- package/dist/components/ui/molecules/toolkit-picker-trigger.js +29 -32
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.d.ts +11 -3
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.js +141 -99
- package/dist/components/ui/organisms/toolkit-picker/index.d.ts +2 -0
- package/dist/components/ui/organisms/toolkit-picker/index.js +3 -2
- package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.d.ts +2 -0
- package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.js +247 -55
- package/dist/lib/arcade/arcade.js +3 -2
- package/dist/lib/arcade/arcade.test.js +1 -1
- package/dist/main.js +313 -311
- package/dist/metadata/oauth-providers.js +9 -9
- package/dist/metadata/toolkits.js +383 -227
- package/dist/metadata/types.d.ts +2 -1
- package/dist/web-sgv-FK6q.js +84 -0
- package/package.json +1 -1
package/dist/metadata/types.d.ts
CHANGED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
let d = !1, a, u, f, c, p;
|
|
2
|
+
function m(e, t = { auto: !1 }) {
|
|
3
|
+
if (d)
|
|
4
|
+
throw new Error(`you must \`import '@arcadeai/arcadejs/shims/${e.kind}'\` before importing anything else from @arcadeai/arcadejs`);
|
|
5
|
+
if (a)
|
|
6
|
+
throw new Error(`can't \`import '@arcadeai/arcadejs/shims/${e.kind}'\` after \`import '@arcadeai/arcadejs/shims/${a}'\``);
|
|
7
|
+
d = t.auto, a = e.kind, u = e.fetch, e.Request, e.Response, e.Headers, e.FormData, e.Blob, f = e.File, e.ReadableStream, e.getMultipartRequestOptions, c = e.getDefaultAgent, p = e.fileFromPath, e.isFsReadStream;
|
|
8
|
+
}
|
|
9
|
+
class h {
|
|
10
|
+
constructor(t) {
|
|
11
|
+
this.body = t;
|
|
12
|
+
}
|
|
13
|
+
get [Symbol.toStringTag]() {
|
|
14
|
+
return "MultipartBody";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function w({ manuallyImported: e } = {}) {
|
|
18
|
+
const t = e ? "You may need to use polyfills" : "Add one of these imports before your first `import … from '@arcadeai/arcadejs'`:\n- `import '@arcadeai/arcadejs/shims/node'` (if you're running on Node)\n- `import '@arcadeai/arcadejs/shims/web'` (otherwise)\n";
|
|
19
|
+
let o, n, i, s;
|
|
20
|
+
try {
|
|
21
|
+
o = fetch, n = Request, i = Response, s = Headers;
|
|
22
|
+
} catch (r) {
|
|
23
|
+
throw new Error(`this environment is missing the following Web Fetch API type: ${r.message}. ${t}`);
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
kind: "web",
|
|
27
|
+
fetch: o,
|
|
28
|
+
Request: n,
|
|
29
|
+
Response: i,
|
|
30
|
+
Headers: s,
|
|
31
|
+
FormData: (
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
typeof FormData < "u" ? FormData : class {
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
constructor() {
|
|
36
|
+
throw new Error(`file uploads aren't supported in this environment yet as 'FormData' is undefined. ${t}`);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
Blob: typeof Blob < "u" ? Blob : class {
|
|
41
|
+
constructor() {
|
|
42
|
+
throw new Error(`file uploads aren't supported in this environment yet as 'Blob' is undefined. ${t}`);
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
File: (
|
|
46
|
+
// @ts-ignore
|
|
47
|
+
typeof File < "u" ? File : class {
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
constructor() {
|
|
50
|
+
throw new Error(`file uploads aren't supported in this environment yet as 'File' is undefined. ${t}`);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
ReadableStream: (
|
|
55
|
+
// @ts-ignore
|
|
56
|
+
typeof ReadableStream < "u" ? ReadableStream : class {
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
constructor() {
|
|
59
|
+
throw new Error(`streaming isn't supported in this environment yet as 'ReadableStream' is undefined. ${t}`);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
getMultipartRequestOptions: async (r, l) => ({
|
|
64
|
+
...l,
|
|
65
|
+
body: new h(r)
|
|
66
|
+
}),
|
|
67
|
+
getDefaultAgent: (r) => {
|
|
68
|
+
},
|
|
69
|
+
fileFromPath: () => {
|
|
70
|
+
throw new Error("The `fileFromPath` function is only supported in Node. See the README for more details: https://www.github.com/ArcadeAI/arcade-js#file-uploads");
|
|
71
|
+
},
|
|
72
|
+
isFsReadStream: (r) => !1
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
m(w({ manuallyImported: !0 }));
|
|
76
|
+
export {
|
|
77
|
+
f as F,
|
|
78
|
+
c as a,
|
|
79
|
+
p as b,
|
|
80
|
+
u as f,
|
|
81
|
+
w as g,
|
|
82
|
+
a as k,
|
|
83
|
+
m as s
|
|
84
|
+
};
|