@arcadeai/design-system 1.4.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 (33) 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.d.ts +1 -0
  19. package/dist/main.js +247 -229
  20. package/dist/metadata/constants.d.ts +1 -0
  21. package/dist/metadata/constants.js +4 -0
  22. package/dist/metadata/index.d.ts +6 -0
  23. package/dist/metadata/index.js +20 -0
  24. package/dist/metadata/oauth-providers.d.ts +21 -13
  25. package/dist/metadata/oauth-providers.js +106 -80
  26. package/dist/metadata/toolkits.d.ts +1 -21
  27. package/dist/metadata/toolkits.js +169 -155
  28. package/dist/metadata/types.d.ts +39 -0
  29. package/dist/metadata/types.js +1 -0
  30. package/dist/metadata/utils.d.ts +16 -0
  31. package/dist/metadata/utils.js +11 -0
  32. package/dist/{toolkit-card-UG1sZ0Le.js → toolkit-card-CHiL03EY.js} +2 -3
  33. package/package.json +1 -1
@@ -1,89 +1,14 @@
1
1
  import { TOOLKIT_CATALOGUE as tt } from "./metadata/toolkits.js";
2
2
  import { r as pe } from "./utils-Db4QWi-E.js";
3
- let ye = !1, D, Re, Y, Se, Ee;
4
- function Pe(t, e = { auto: !1 }) {
5
- if (ye)
6
- throw new Error(`you must \`import '@arcadeai/arcadejs/shims/${t.kind}'\` before importing anything else from @arcadeai/arcadejs`);
7
- if (D)
8
- throw new Error(`can't \`import '@arcadeai/arcadejs/shims/${t.kind}'\` after \`import '@arcadeai/arcadejs/shims/${D}'\``);
9
- ye = e.auto, D = t.kind, Re = t.fetch, t.Request, t.Response, t.Headers, t.FormData, t.Blob, Y = t.File, t.ReadableStream, t.getMultipartRequestOptions, Se = t.getDefaultAgent, Ee = t.fileFromPath, t.isFsReadStream;
10
- }
11
- class rt {
12
- constructor(e) {
13
- this.body = e;
14
- }
15
- get [Symbol.toStringTag]() {
16
- return "MultipartBody";
17
- }
18
- }
19
- function ke({ manuallyImported: t } = {}) {
20
- const e = t ? "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";
21
- let r, n, s, o;
22
- try {
23
- r = fetch, n = Request, s = Response, o = Headers;
24
- } catch (i) {
25
- throw new Error(`this environment is missing the following Web Fetch API type: ${i.message}. ${e}`);
26
- }
27
- return {
28
- kind: "web",
29
- fetch: r,
30
- Request: n,
31
- Response: s,
32
- Headers: o,
33
- FormData: (
34
- // @ts-ignore
35
- typeof FormData < "u" ? FormData : class {
36
- // @ts-ignore
37
- constructor() {
38
- throw new Error(`file uploads aren't supported in this environment yet as 'FormData' is undefined. ${e}`);
39
- }
40
- }
41
- ),
42
- Blob: typeof Blob < "u" ? Blob : class {
43
- constructor() {
44
- throw new Error(`file uploads aren't supported in this environment yet as 'Blob' is undefined. ${e}`);
45
- }
46
- },
47
- File: (
48
- // @ts-ignore
49
- typeof File < "u" ? File : class {
50
- // @ts-ignore
51
- constructor() {
52
- throw new Error(`file uploads aren't supported in this environment yet as 'File' is undefined. ${e}`);
53
- }
54
- }
55
- ),
56
- ReadableStream: (
57
- // @ts-ignore
58
- typeof ReadableStream < "u" ? ReadableStream : class {
59
- // @ts-ignore
60
- constructor() {
61
- throw new Error(`streaming isn't supported in this environment yet as 'ReadableStream' is undefined. ${e}`);
62
- }
63
- }
64
- ),
65
- getMultipartRequestOptions: async (i, l) => ({
66
- ...l,
67
- body: new rt(i)
68
- }),
69
- getDefaultAgent: (i) => {
70
- },
71
- fileFromPath: () => {
72
- 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");
73
- },
74
- isFsReadStream: (i) => !1
75
- };
76
- }
77
- Pe(ke({ manuallyImported: !0 }));
78
- const Z = "RFC3986", ee = {
3
+ const Y = "RFC3986", Z = {
79
4
  RFC1738: (t) => String(t).replace(/%20/g, "+"),
80
5
  RFC3986: (t) => String(t)
81
- }, nt = "RFC1738", st = Array.isArray, _ = (() => {
6
+ }, rt = "RFC1738", nt = Array.isArray, _ = (() => {
82
7
  const t = [];
83
8
  for (let e = 0; e < 256; ++e)
84
9
  t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
85
10
  return t;
86
- })(), V = 1024, ot = (t, e, r, n, s) => {
11
+ })(), V = 1024, st = (t, e, r, n, s) => {
87
12
  if (t.length === 0)
88
13
  return t;
89
14
  let o = t;
@@ -103,7 +28,7 @@ const Z = "RFC3986", ee = {
103
28
  a >= 48 && a <= 57 || // 0-9
104
29
  a >= 65 && a <= 90 || // a-z
105
30
  a >= 97 && a <= 122 || // A-Z
106
- s === nt && (a === 40 || a === 41)) {
31
+ s === rt && (a === 40 || a === 41)) {
107
32
  u[u.length] = c.charAt(p);
108
33
  continue;
109
34
  }
@@ -125,11 +50,11 @@ const Z = "RFC3986", ee = {
125
50
  }
126
51
  return i;
127
52
  };
128
- function it(t) {
53
+ function ot(t) {
129
54
  return !t || typeof t != "object" ? !1 : !!(t.constructor && t.constructor.isBuffer && t.constructor.isBuffer(t));
130
55
  }
131
- function me(t, e) {
132
- if (st(t)) {
56
+ function ye(t, e) {
57
+ if (nt(t)) {
133
58
  const r = [];
134
59
  for (let n = 0; n < t.length; n += 1)
135
60
  r.push(e(t[n]));
@@ -137,7 +62,7 @@ function me(t, e) {
137
62
  }
138
63
  return e(t);
139
64
  }
140
- const at = Object.prototype.hasOwnProperty, Te = {
65
+ const it = Object.prototype.hasOwnProperty, Re = {
141
66
  brackets(t) {
142
67
  return String(t) + "[]";
143
68
  },
@@ -148,9 +73,9 @@ const at = Object.prototype.hasOwnProperty, Te = {
148
73
  repeat(t) {
149
74
  return String(t);
150
75
  }
151
- }, A = Array.isArray, ct = Array.prototype.push, ve = function(t, e) {
152
- ct.apply(t, A(e) ? e : [e]);
153
- }, ut = Date.prototype.toISOString, y = {
76
+ }, A = Array.isArray, at = Array.prototype.push, Se = function(t, e) {
77
+ at.apply(t, A(e) ? e : [e]);
78
+ }, ct = Date.prototype.toISOString, y = {
154
79
  addQueryPrefix: !1,
155
80
  allowDots: !1,
156
81
  allowEmptyArrays: !1,
@@ -160,23 +85,23 @@ const at = Object.prototype.hasOwnProperty, Te = {
160
85
  delimiter: "&",
161
86
  encode: !0,
162
87
  encodeDotInKeys: !1,
163
- encoder: ot,
88
+ encoder: st,
164
89
  encodeValuesOnly: !1,
165
- format: Z,
166
- formatter: ee[Z],
90
+ format: Y,
91
+ formatter: Z[Y],
167
92
  /** @deprecated */
168
93
  indices: !1,
169
94
  serializeDate(t) {
170
- return ut.call(t);
95
+ return ct.call(t);
171
96
  },
172
97
  skipNulls: !1,
173
98
  strictNullHandling: !1
174
99
  };
175
- function lt(t) {
100
+ function ut(t) {
176
101
  return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint";
177
102
  }
178
103
  const Q = {};
179
- function Ce(t, e, r, n, s, o, i, l, c, u, p, a, h, m, x, E, R, X) {
104
+ function Ee(t, e, r, n, s, o, i, l, c, u, p, a, h, m, x, E, R, X) {
180
105
  let f = t, F = X, $ = 0, le = !1;
181
106
  for (; (F = F.get(Q)) !== void 0 && !le; ) {
182
107
  const g = F.get(t);
@@ -187,7 +112,7 @@ function Ce(t, e, r, n, s, o, i, l, c, u, p, a, h, m, x, E, R, X) {
187
112
  }
188
113
  typeof F.get(Q) > "u" && ($ = 0);
189
114
  }
190
- if (typeof u == "function" ? f = u(e, f) : f instanceof Date ? f = h?.(f) : r === "comma" && A(f) && (f = me(f, function(g) {
115
+ if (typeof u == "function" ? f = u(e, f) : f instanceof Date ? f = h?.(f) : r === "comma" && A(f) && (f = ye(f, function(g) {
191
116
  return g instanceof Date ? h?.(g) : g;
192
117
  })), f === null) {
193
118
  if (o)
@@ -197,7 +122,7 @@ function Ce(t, e, r, n, s, o, i, l, c, u, p, a, h, m, x, E, R, X) {
197
122
  ) : e;
198
123
  f = "";
199
124
  }
200
- if (lt(f) || it(f)) {
125
+ if (ut(f) || ot(f)) {
201
126
  if (c) {
202
127
  const g = E ? e : c(e, y.encoder, R, "key", m);
203
128
  return [
@@ -212,7 +137,7 @@ function Ce(t, e, r, n, s, o, i, l, c, u, p, a, h, m, x, E, R, X) {
212
137
  return K;
213
138
  let I;
214
139
  if (r === "comma" && A(f))
215
- E && c && (f = me(f, c)), I = [{ value: f.length > 0 ? f.join(",") || null : void 0 }];
140
+ E && c && (f = ye(f, c)), I = [{ value: f.length > 0 ? f.join(",") || null : void 0 }];
216
141
  else if (A(u))
217
142
  I = u;
218
143
  else {
@@ -232,7 +157,7 @@ function Ce(t, e, r, n, s, o, i, l, c, u, p, a, h, m, x, E, R, X) {
232
157
  const W = a && l ? k.replace(/\./g, "%2E") : k, et = A(f) ? typeof r == "function" ? r(j, W) : j : j + (a ? "." + W : "[" + W + "]");
233
158
  X.set(t, $);
234
159
  const he = /* @__PURE__ */ new WeakMap();
235
- he.set(Q, X), ve(K, Ce(
160
+ he.set(Q, X), Se(K, Ee(
236
161
  de,
237
162
  et,
238
163
  r,
@@ -256,7 +181,7 @@ function Ce(t, e, r, n, s, o, i, l, c, u, p, a, h, m, x, E, R, X) {
256
181
  }
257
182
  return K;
258
183
  }
259
- function ft(t = y) {
184
+ function lt(t = y) {
260
185
  if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
261
186
  throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
262
187
  if (typeof t.encodeDotInKeys < "u" && typeof t.encodeDotInKeys != "boolean")
@@ -266,17 +191,17 @@ function ft(t = y) {
266
191
  const e = t.charset || y.charset;
267
192
  if (typeof t.charset < "u" && t.charset !== "utf-8" && t.charset !== "iso-8859-1")
268
193
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
269
- let r = Z;
194
+ let r = Y;
270
195
  if (typeof t.format < "u") {
271
- if (!at.call(ee, t.format))
196
+ if (!it.call(Z, t.format))
272
197
  throw new TypeError("Unknown format option provided.");
273
198
  r = t.format;
274
199
  }
275
- const n = ee[r];
200
+ const n = Z[r];
276
201
  let s = y.filter;
277
202
  (typeof t.filter == "function" || A(t.filter)) && (s = t.filter);
278
203
  let o;
279
- if (t.arrayFormat && t.arrayFormat in Te ? o = t.arrayFormat : "indices" in t ? o = t.indices ? "indices" : "repeat" : o = y.arrayFormat, "commaRoundTrip" in t && typeof t.commaRoundTrip != "boolean")
204
+ if (t.arrayFormat && t.arrayFormat in Re ? o = t.arrayFormat : "indices" in t ? o = t.indices ? "indices" : "repeat" : o = y.arrayFormat, "commaRoundTrip" in t && typeof t.commaRoundTrip != "boolean")
280
205
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
281
206
  const i = typeof t.allowDots > "u" ? t.encodeDotInKeys ? !0 : y.allowDots : !!t.allowDots;
282
207
  return {
@@ -303,20 +228,20 @@ function ft(t = y) {
303
228
  strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : y.strictNullHandling
304
229
  };
305
230
  }
306
- function dt(t, e = {}) {
231
+ function ft(t, e = {}) {
307
232
  let r = t;
308
- const n = ft(e);
233
+ const n = lt(e);
309
234
  let s, o;
310
235
  typeof n.filter == "function" ? (o = n.filter, r = o("", r)) : A(n.filter) && (o = n.filter, s = o);
311
236
  const i = [];
312
237
  if (typeof r != "object" || r === null)
313
238
  return "";
314
- const l = Te[n.arrayFormat], c = l === "comma" && n.commaRoundTrip;
239
+ const l = Re[n.arrayFormat], c = l === "comma" && n.commaRoundTrip;
315
240
  s || (s = Object.keys(r)), n.sort && s.sort(n.sort);
316
241
  const u = /* @__PURE__ */ new WeakMap();
317
242
  for (let h = 0; h < s.length; ++h) {
318
243
  const m = s[h];
319
- n.skipNulls && r[m] === null || ve(i, Ce(
244
+ n.skipNulls && r[m] === null || Se(i, Ee(
320
245
  r[m],
321
246
  m,
322
247
  // @ts-expect-error
@@ -357,10 +282,10 @@ class w extends P {
357
282
  if (!e || !s)
358
283
  return new q({ message: n, cause: re(r) });
359
284
  const o = r;
360
- return e === 400 ? new De(e, o, n, s) : e === 401 ? new Le(e, o, n, s) : e === 403 ? new Oe(e, o, n, s) : e === 404 ? new Fe(e, o, n, s) : e === 409 ? new $e(e, o, n, s) : e === 422 ? new je(e, o, n, s) : e === 429 ? new Ue(e, o, n, s) : e >= 500 ? new Be(e, o, n, s) : new w(e, o, n, s);
285
+ return e === 400 ? new ke(e, o, n, s) : e === 401 ? new Te(e, o, n, s) : e === 403 ? new ve(e, o, n, s) : e === 404 ? new Ce(e, o, n, s) : e === 409 ? new Ie(e, o, n, s) : e === 422 ? new De(e, o, n, s) : e === 429 ? new Le(e, o, n, s) : e >= 500 ? new Oe(e, o, n, s) : new w(e, o, n, s);
361
286
  }
362
287
  }
363
- class te extends w {
288
+ class ee extends w {
364
289
  constructor({ message: e } = {}) {
365
290
  super(void 0, void 0, e || "Request was aborted.", void 0);
366
291
  }
@@ -370,29 +295,103 @@ class q extends w {
370
295
  super(void 0, void 0, e || "Connection error.", void 0), r && (this.cause = r);
371
296
  }
372
297
  }
373
- class Ie extends q {
298
+ class Pe extends q {
374
299
  constructor({ message: e } = {}) {
375
300
  super({ message: e ?? "Request timed out." });
376
301
  }
377
302
  }
303
+ class ke extends w {
304
+ }
305
+ class Te extends w {
306
+ }
307
+ class ve extends w {
308
+ }
309
+ class Ce extends w {
310
+ }
311
+ class Ie extends w {
312
+ }
378
313
  class De extends w {
379
314
  }
380
315
  class Le extends w {
381
316
  }
382
317
  class Oe extends w {
383
318
  }
384
- class Fe extends w {
385
- }
386
- class $e extends w {
387
- }
388
- class je extends w {
319
+ let me = !1, D, Fe, te, $e, je;
320
+ function Ue(t, e = { auto: !1 }) {
321
+ if (me)
322
+ throw new Error(`you must \`import '@arcadeai/arcadejs/shims/${t.kind}'\` before importing anything else from @arcadeai/arcadejs`);
323
+ if (D)
324
+ throw new Error(`can't \`import '@arcadeai/arcadejs/shims/${t.kind}'\` after \`import '@arcadeai/arcadejs/shims/${D}'\``);
325
+ me = e.auto, D = t.kind, Fe = t.fetch, t.Request, t.Response, t.Headers, t.FormData, t.Blob, te = t.File, t.ReadableStream, t.getMultipartRequestOptions, $e = t.getDefaultAgent, je = t.fileFromPath, t.isFsReadStream;
389
326
  }
390
- class Ue extends w {
327
+ class dt {
328
+ constructor(e) {
329
+ this.body = e;
330
+ }
331
+ get [Symbol.toStringTag]() {
332
+ return "MultipartBody";
333
+ }
391
334
  }
392
- class Be extends w {
335
+ function Be({ manuallyImported: t } = {}) {
336
+ const e = t ? "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";
337
+ let r, n, s, o;
338
+ try {
339
+ r = fetch, n = Request, s = Response, o = Headers;
340
+ } catch (i) {
341
+ throw new Error(`this environment is missing the following Web Fetch API type: ${i.message}. ${e}`);
342
+ }
343
+ return {
344
+ kind: "web",
345
+ fetch: r,
346
+ Request: n,
347
+ Response: s,
348
+ Headers: o,
349
+ FormData: (
350
+ // @ts-ignore
351
+ typeof FormData < "u" ? FormData : class {
352
+ // @ts-ignore
353
+ constructor() {
354
+ throw new Error(`file uploads aren't supported in this environment yet as 'FormData' is undefined. ${e}`);
355
+ }
356
+ }
357
+ ),
358
+ Blob: typeof Blob < "u" ? Blob : class {
359
+ constructor() {
360
+ throw new Error(`file uploads aren't supported in this environment yet as 'Blob' is undefined. ${e}`);
361
+ }
362
+ },
363
+ File: (
364
+ // @ts-ignore
365
+ typeof File < "u" ? File : class {
366
+ // @ts-ignore
367
+ constructor() {
368
+ throw new Error(`file uploads aren't supported in this environment yet as 'File' is undefined. ${e}`);
369
+ }
370
+ }
371
+ ),
372
+ ReadableStream: (
373
+ // @ts-ignore
374
+ typeof ReadableStream < "u" ? ReadableStream : class {
375
+ // @ts-ignore
376
+ constructor() {
377
+ throw new Error(`streaming isn't supported in this environment yet as 'ReadableStream' is undefined. ${e}`);
378
+ }
379
+ }
380
+ ),
381
+ getMultipartRequestOptions: async (i, l) => ({
382
+ ...l,
383
+ body: new dt(i)
384
+ }),
385
+ getDefaultAgent: (i) => {
386
+ },
387
+ fileFromPath: () => {
388
+ 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");
389
+ },
390
+ isFsReadStream: (i) => !1
391
+ };
393
392
  }
394
393
  const Me = () => {
395
- D || Pe(ke(), { auto: !0 });
394
+ D || Ue(Be(), { auto: !0 });
396
395
  };
397
396
  Me();
398
397
  const ht = (t) => t != null && typeof t == "object" && typeof t.url == "string" && typeof t.blob == "function", pt = (t) => t != null && typeof t == "object" && typeof t.name == "string" && typeof t.lastModified == "number" && N(t), N = (t) => t != null && typeof t == "object" && typeof t.size == "number" && typeof t.type == "string" && typeof t.text == "function" && typeof t.slice == "function" && typeof t.arrayBuffer == "function";
@@ -403,14 +402,14 @@ async function yt(t, e, r) {
403
402
  const s = await t.blob();
404
403
  e || (e = new URL(t.url).pathname.split(/[\\/]/).pop() ?? "unknown_file");
405
404
  const o = N(s) ? [await s.arrayBuffer()] : [s];
406
- return new Y(o, e, r);
405
+ return new te(o, e, r);
407
406
  }
408
407
  const n = await mt(t);
409
408
  if (e || (e = wt(t) ?? "unknown_file"), !r?.type) {
410
409
  const s = n[0]?.type;
411
410
  typeof s == "string" && (r = { ...r, type: s });
412
411
  }
413
- return new Y(n, e, r);
412
+ return new te(n, e, r);
414
413
  }
415
414
  async function mt(t) {
416
415
  let e = [];
@@ -529,7 +528,7 @@ class xt {
529
528
  httpAgent: o,
530
529
  fetch: i
531
530
  }) {
532
- M.set(this, void 0), this.baseURL = e, qe(this, M, r, "f"), this.maxRetries = J("maxRetries", n), this.timeout = J("timeout", s), this.httpAgent = o, this.fetch = i ?? Re;
531
+ M.set(this, void 0), this.baseURL = e, qe(this, M, r, "f"), this.maxRetries = J("maxRetries", n), this.timeout = J("timeout", s), this.httpAgent = o, this.fetch = i ?? Fe;
533
532
  }
534
533
  authHeaders(e) {
535
534
  return {};
@@ -596,7 +595,7 @@ class xt {
596
595
  async buildRequest(e, { retryCount: r = 0 } = {}) {
597
596
  const n = { ...e }, { method: s, path: o, query: i, defaultBaseURL: l, headers: c = {} } = n, u = ArrayBuffer.isView(n.body) || n.__binaryRequest && typeof n.body == "string" ? n.body : ge(n.body) ? n.body.body : n.body ? JSON.stringify(n.body, null, 2) : null, p = this.calculateContentLength(u), a = this.buildURL(o, i, l);
598
597
  "timeout" in n && J("timeout", n.timeout), n.timeout = n.timeout ?? this.timeout;
599
- const h = n.httpAgent ?? this.httpAgent ?? Se(a), m = n.timeout + 1e3;
598
+ const h = n.httpAgent ?? this.httpAgent ?? $e(a), m = n.timeout + 1e3;
600
599
  typeof h?.options?.timeout == "number" && m > (h.options.timeout ?? 0) && (h.options.timeout = m), this.idempotencyHeader && s !== "get" && (e.idempotencyKey || (e.idempotencyKey = this.defaultIdempotencyKey()), c[this.idempotencyHeader] = e.idempotencyKey);
601
600
  const x = this.buildHeaders({ options: n, headers: c, contentLength: p, retryCount: r });
602
601
  return { req: {
@@ -644,14 +643,14 @@ class xt {
644
643
  retryCount: s - r
645
644
  });
646
645
  if (await this.prepareRequest(o, { url: i, options: n }), L("request", i, n, o.headers), n.signal?.aborted)
647
- throw new te();
646
+ throw new ee();
648
647
  const c = new AbortController(), u = await this.fetchWithTimeout(i, o, l, c).catch(re);
649
648
  if (u instanceof Error) {
650
649
  if (n.signal?.aborted)
651
- throw new te();
650
+ throw new ee();
652
651
  if (r)
653
652
  return this.retryRequest(n, r);
654
- throw u.name === "AbortError" ? new Ie() : new q({ cause: u });
653
+ throw u.name === "AbortError" ? new Pe() : new q({ cause: u });
655
654
  }
656
655
  const p = Rt(u.headers);
657
656
  if (!u.ok) {
@@ -1299,7 +1298,7 @@ class d extends xt {
1299
1298
  return { Authorization: this.apiKey };
1300
1299
  }
1301
1300
  stringifyQuery(e) {
1302
- return dt(e, { arrayFormat: "comma" });
1301
+ return ft(e, { arrayFormat: "comma" });
1303
1302
  }
1304
1303
  }
1305
1304
  Ze = d, Ye = /* @__PURE__ */ new WeakSet();
@@ -1308,18 +1307,18 @@ d.DEFAULT_TIMEOUT = 6e4;
1308
1307
  d.ArcadeError = P;
1309
1308
  d.APIError = w;
1310
1309
  d.APIConnectionError = q;
1311
- d.APIConnectionTimeoutError = Ie;
1312
- d.APIUserAbortError = te;
1313
- d.NotFoundError = Fe;
1314
- d.ConflictError = $e;
1315
- d.RateLimitError = Ue;
1316
- d.BadRequestError = De;
1317
- d.AuthenticationError = Le;
1318
- d.InternalServerError = Be;
1319
- d.PermissionDeniedError = Oe;
1320
- d.UnprocessableEntityError = je;
1310
+ d.APIConnectionTimeoutError = Pe;
1311
+ d.APIUserAbortError = ee;
1312
+ d.NotFoundError = Ce;
1313
+ d.ConflictError = Ie;
1314
+ d.RateLimitError = Le;
1315
+ d.BadRequestError = ke;
1316
+ d.AuthenticationError = Te;
1317
+ d.InternalServerError = Oe;
1318
+ d.PermissionDeniedError = ve;
1319
+ d.UnprocessableEntityError = De;
1321
1320
  d.toFile = yt;
1322
- d.fileFromPath = Ee;
1321
+ d.fileFromPath = je;
1323
1322
  d.Admin = v;
1324
1323
  d.Auth = Ve;
1325
1324
  d.Health = Ge;
@@ -1328,6 +1327,7 @@ d.Tools = C;
1328
1327
  d.ToolDefinitionsOffsetPage = z;
1329
1328
  d.Workers = ce;
1330
1329
  d.WorkerResponsesOffsetPage = ue;
1330
+ Ue(Be({ manuallyImported: !0 }));
1331
1331
  const jt = /[._\-\s]+/, Ut = /([a-z])([A-Z])/g, Bt = /\s+/;
1332
1332
  class Kt {
1333
1333
  #e;
@@ -145,7 +145,7 @@ import { Textarea as Ea } from "./ui/atoms/textarea.js";
145
145
  import { Toggle as Va, toggleVariants as Wa } from "./ui/atoms/toggle.js";
146
146
  import { Tooltip as Na, TooltipContent as Ja, TooltipProvider as Xa, TooltipTrigger as Za } from "./ui/atoms/tooltip.js";
147
147
  import { EmptyState as Ua } from "./ui/molecules/empty-state.js";
148
- import { R as ja, T as Ka } from "../toolkit-card-UG1sZ0Le.js";
148
+ import { R as ja, T as Ka } from "../toolkit-card-CHiL03EY.js";
149
149
  import { ToolCard as $a } from "./ui/molecules/tool-card.js";
150
150
  import { ToolkitPickerTrigger as ri } from "./ui/molecules/toolkit-picker-trigger.js";
151
151
  import { ToolkitSelectionSummary as ti } from "./ui/molecules/toolkit-selection-summary.js";
@@ -10,15 +10,10 @@ const l = (r) => /* @__PURE__ */ t(
10
10
  ...r,
11
11
  children: [
12
12
  /* @__PURE__ */ i("title", { children: "Jira" }),
13
- " ",
14
13
  /* @__PURE__ */ t("linearGradient", { id: "a", children: [
15
- " ",
16
14
  /* @__PURE__ */ i("stop", { offset: ".18", stopColor: "#0052cc" }),
17
- " ",
18
- /* @__PURE__ */ i("stop", { offset: "1", stopColor: "#2684ff" }),
19
- " "
15
+ /* @__PURE__ */ i("stop", { offset: "1", stopColor: "#2684ff" })
20
16
  ] }),
21
- " ",
22
17
  /* @__PURE__ */ i(
23
18
  "linearGradient",
24
19
  {
@@ -30,7 +25,6 @@ const l = (r) => /* @__PURE__ */ t(
30
25
  y2: "40.766%"
31
26
  }
32
27
  ),
33
- " ",
34
28
  /* @__PURE__ */ i(
35
29
  "linearGradient",
36
30
  {
@@ -42,7 +36,6 @@ const l = (r) => /* @__PURE__ */ t(
42
36
  y2: "44.727%"
43
37
  }
44
38
  ),
45
- " ",
46
39
  /* @__PURE__ */ i(
47
40
  "path",
48
41
  {
@@ -50,7 +43,6 @@ const l = (r) => /* @__PURE__ */ t(
50
43
  fill: "#2684ff"
51
44
  }
52
45
  ),
53
- " ",
54
46
  /* @__PURE__ */ i(
55
47
  "path",
56
48
  {
@@ -58,7 +50,6 @@ const l = (r) => /* @__PURE__ */ t(
58
50
  fill: "url(#b)"
59
51
  }
60
52
  ),
61
- " ",
62
53
  /* @__PURE__ */ i(
63
54
  "path",
64
55
  {
@@ -1,16 +1,3 @@
1
- import { OAuthCatalogue, OAuthProviderId } from '../../../../metadata/oauth-providers';
2
- /**
3
- * Find a provider by its provider ID or ID, with fallback to default provider
4
- */
5
- export declare const findPrebuiltProviderByProviderId: (providerId: OAuthProviderId | string) => OAuthCatalogue | undefined;
6
- /**
7
- * Find a provider by its ID (not provider ID)
8
- */
9
- export declare const findPrebuiltProviderById: (id: string) => OAuthCatalogue | undefined;
10
- /**
11
- * Check if a provider ID corresponds to a prebuilt provider
12
- */
13
- export declare const isPrebuiltProvider: (providerId: string) => boolean;
14
1
  export type ToolkitCatalogueEntry = {
15
2
  icon: React.ComponentType<{
16
3
  className?: string;
@@ -1,41 +1,33 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { Package as c, Wrench as u } from "lucide-react";
3
- import { PREBUILT_OAUTH_PROVIDERS as i } from "../../../../metadata/oauth-providers.js";
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { Package as i, Wrench as a } from "lucide-react";
4
3
  import { TOOLKIT_CATALOGUE as e } from "../../../../metadata/toolkits.js";
5
- const P = (r) => i.find(
6
- (o) => o.provider_id === r || o.id === r
7
- ), a = (r) => i.find((o) => o.id === r), k = (r) => i.some(
8
- (o) => o.provider_id === r || o.id === r
9
- ), s = (r) => {
4
+ const c = (n) => {
10
5
  const o = Object.keys(e).find(
11
- (t) => t.toLowerCase() === r.toLowerCase()
6
+ (t) => t.toLowerCase() === n.toLowerCase()
12
7
  );
13
8
  return o ? e[o] : void 0;
14
- }, L = (r) => Object.keys(e).some(
15
- (o) => o.toLowerCase() === r.toLowerCase()
16
- ), f = (r) => {
17
- const o = s(r);
18
- return o?.icon ? ({ className: t }) => /* @__PURE__ */ n(o.icon, { className: t }) : ({ className: t }) => /* @__PURE__ */ n(c, { className: t });
19
- }, O = (r) => {
20
- const o = s(r);
21
- return o?.icon ? ({ className: t }) => /* @__PURE__ */ n(o.icon, { className: t }) : ({ className: t }) => /* @__PURE__ */ n(u, { className: t });
22
- }, B = ({
23
- metadataIcon: r,
9
+ }, T = (n) => Object.keys(e).some(
10
+ (o) => o.toLowerCase() === n.toLowerCase()
11
+ ), f = (n) => {
12
+ const o = c(n);
13
+ return o?.icon ? ({ className: t }) => /* @__PURE__ */ r(o.icon, { className: t }) : ({ className: t }) => /* @__PURE__ */ r(i, { className: t });
14
+ }, y = (n) => {
15
+ const o = c(n);
16
+ return o?.icon ? ({ className: t }) => /* @__PURE__ */ r(o.icon, { className: t }) : ({ className: t }) => /* @__PURE__ */ r(a, { className: t });
17
+ }, l = ({
18
+ metadataIcon: n,
24
19
  toolkitName: o
25
20
  }) => {
26
- if (r) {
27
- const t = r;
28
- return ({ className: d }) => /* @__PURE__ */ n(t, { className: d });
21
+ if (n) {
22
+ const t = n;
23
+ return ({ className: s }) => /* @__PURE__ */ r(t, { className: s });
29
24
  }
30
- return o ? f(o) : ({ className: t }) => /* @__PURE__ */ n(c, { className: t });
25
+ return o ? f(o) : ({ className: t }) => /* @__PURE__ */ r(i, { className: t });
31
26
  };
32
27
  export {
33
- a as findPrebuiltProviderById,
34
- P as findPrebuiltProviderByProviderId,
35
- s as findToolkitByName,
36
- O as getToolIconByToolkitName,
37
- B as getToolkitIcon,
28
+ c as findToolkitByName,
29
+ y as getToolIconByToolkitName,
30
+ l as getToolkitIcon,
38
31
  f as getToolkitIconByName,
39
- L as isKnownToolkit,
40
- k as isPrebuiltProvider
32
+ T as isKnownToolkit
41
33
  };
@@ -145,7 +145,7 @@ import { Textarea as Ea } from "./atoms/textarea.js";
145
145
  import { Toggle as Va, toggleVariants as Wa } from "./atoms/toggle.js";
146
146
  import { Tooltip as Na, TooltipContent as Ja, TooltipProvider as Xa, TooltipTrigger as Za } from "./atoms/tooltip.js";
147
147
  import { EmptyState as Ua } from "./molecules/empty-state.js";
148
- import { R as ja, T as Ka } from "../../toolkit-card-UG1sZ0Le.js";
148
+ import { R as ja, T as Ka } from "../../toolkit-card-CHiL03EY.js";
149
149
  import { ToolCard as $a } from "./molecules/tool-card.js";
150
150
  import { ToolkitPickerTrigger as ri } from "./molecules/toolkit-picker-trigger.js";
151
151
  import { ToolkitSelectionSummary as ti } from "./molecules/toolkit-selection-summary.js";
@@ -1,5 +1,5 @@
1
1
  import { EmptyState as e } from "./empty-state.js";
2
- import { R as m, T as a } from "../../../toolkit-card-UG1sZ0Le.js";
2
+ import { R as m, T as a } from "../../../toolkit-card-CHiL03EY.js";
3
3
  import { ToolCard as p } from "./tool-card.js";
4
4
  import { ToolkitPickerTrigger as f } from "./toolkit-picker-trigger.js";
5
5
  import { ToolkitSelectionSummary as x } from "./toolkit-selection-summary.js";
@@ -12,14 +12,13 @@ import "../../../react-resizable-panels.browser-ZHjTH32c.js";
12
12
  import "../atoms/sidebar.js";
13
13
  import "../atoms/table.js";
14
14
  import "../atoms/tooltip.js";
15
- import { O as x, R as A, S as b } from "../../../toolkit-card-UG1sZ0Le.js";
15
+ import { O as q, R as x, S as A } from "../../../toolkit-card-CHiL03EY.js";
16
16
  import "./tool-card.js";
17
- import "../../../metadata/oauth-providers.js";
18
17
  import "../../../metadata/toolkits.js";
19
18
  import "../organisms/toolkit-picker/hooks/use-toolkit-picker.js";
20
19
  import "../utils/memo.js";
21
20
  export {
22
- x as OAuthBadge,
23
- A as RequirementBadges,
24
- b as SecretsBadge
21
+ q as OAuthBadge,
22
+ x as RequirementBadges,
23
+ A as SecretsBadge
25
24
  };
@@ -6,7 +6,7 @@ import "../atoms/card.js";
6
6
  import "../atoms/checkbox.js";
7
7
  import "../atoms/view-tools-control.js";
8
8
  import "../../../utils-Db4QWi-E.js";
9
- import { T as k } from "../../../toolkit-card-UG1sZ0Le.js";
9
+ import { T as k } from "../../../toolkit-card-CHiL03EY.js";
10
10
  import "../utils/memo.js";
11
11
  export {
12
12
  k as ToolkitCard