@arcadeai/design-system 1.5.1 → 1.7.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.
Files changed (37) hide show
  1. package/dist/{arcade-DSu1Vp41.js → arcade-DzMbb7xi.js} +512 -586
  2. package/dist/components/index.js +302 -300
  3. package/dist/components/ui/atoms/alert-dialog.d.ts +14 -0
  4. package/dist/components/ui/atoms/alert-dialog.js +248 -0
  5. package/dist/components/ui/atoms/command.js +1 -1
  6. package/dist/components/ui/atoms/dialog.js +1 -1
  7. package/dist/components/ui/atoms/icons/codesandbox.d.ts +3 -0
  8. package/dist/components/ui/atoms/icons/codesandbox.js +26 -0
  9. package/dist/components/ui/atoms/icons/index.d.ts +1 -0
  10. package/dist/components/ui/atoms/icons/index.js +182 -180
  11. package/dist/components/ui/atoms/index.js +285 -283
  12. package/dist/components/ui/atoms/sheet.js +1 -1
  13. package/dist/components/ui/index.js +302 -300
  14. package/dist/components/ui/molecules/toolkit-picker-trigger.js +29 -32
  15. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-filter.test.js +2 -2
  16. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-search.test.js +2 -2
  17. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-selection.test.js +2 -2
  18. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.d.ts +11 -3
  19. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.js +141 -99
  20. package/dist/components/ui/organisms/toolkit-picker/index.d.ts +2 -0
  21. package/dist/components/ui/organisms/toolkit-picker/index.js +3 -2
  22. package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.d.ts +2 -0
  23. package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.js +247 -55
  24. package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.test.js +2 -2
  25. package/dist/components/ui/utils/memo.test.js +1 -1
  26. package/dist/{index-BzU0xzeS.js → index-Dkey23PG.js} +3 -1
  27. package/dist/lib/arcade/arcade.js +3 -2
  28. package/dist/lib/arcade/arcade.test.js +2 -2
  29. package/dist/lib/utils.test.js +1 -1
  30. package/dist/main.js +313 -311
  31. package/dist/metadata/oauth-providers.js +9 -9
  32. package/dist/metadata/toolkits.js +383 -227
  33. package/dist/metadata/types.d.ts +2 -1
  34. package/dist/{react.esm-CFMQn0EI.js → react.esm-CAxz4dXo.js} +1 -1
  35. package/dist/{vi.bdSIJ99Y-CQ1FdEM8.js → vi.bdSIJ99Y-hyudrc3R.js} +3880 -3436
  36. package/dist/web-sgv-FK6q.js +84 -0
  37. package/package.json +2 -1
@@ -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
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arcadeai/design-system",
3
3
  "private": false,
4
- "version": "1.5.1",
4
+ "version": "1.7.0",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -115,6 +115,7 @@
115
115
  "dependencies": {
116
116
  "@arcadeai/arcadejs": "^1.9.1",
117
117
  "@radix-ui/react-accordion": "1.2.12",
118
+ "@radix-ui/react-alert-dialog": "^1.1.15",
118
119
  "@radix-ui/react-avatar": "1.1.10",
119
120
  "@radix-ui/react-checkbox": "^1.3.3",
120
121
  "@radix-ui/react-collapsible": "1.1.12",