@arcadeai/design-system 7.7.0 → 7.8.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.
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-tool-inventory-popover.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/organisms/mcp-tool-inventory-popover.tsx"],"names":[],"mappings":"AAyBA,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,EAAE,qBAAqB,EAAE,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAuHF;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,EACN,SAAS,GACV,EAAE,4BAA4B,+BAqI9B"}
1
+ {"version":3,"file":"mcp-tool-inventory-popover.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/organisms/mcp-tool-inventory-popover.tsx"],"names":[],"mappings":"AAyBA,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,EAAE,qBAAqB,EAAE,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAuHF;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,EACN,SAAS,GACV,EAAE,4BAA4B,+BAiJ9B"}
@@ -150,7 +150,15 @@ function w({ groups: c, className: _ }) {
150
150
  group: e,
151
151
  groupIndex: t,
152
152
  isExpanded: e.id === D,
153
- onToggle: () => y(e.id === D ? null : e.id),
153
+ onToggle: (t) => {
154
+ let n = e.id !== D;
155
+ if (y(n ? e.id : null), n && x) {
156
+ let e = t.currentTarget;
157
+ requestAnimationFrame(() => {
158
+ x.scrollTop += e.getBoundingClientRect().top - x.getBoundingClientRect().top;
159
+ });
160
+ }
161
+ },
154
162
  scrollElement: x
155
163
  }, e.id))
156
164
  })]
@@ -13,35 +13,35 @@ import { OAuthCatalogue, OAuthProviderIdType, Toolkit } from './types';
13
13
  * makes inherited keys like `__proto__` or `constructor` simply not match,
14
14
  * instead of resolving to a built-in and crashing the caller.
15
15
  */
16
- export declare const findOAuthProvider: (idOrProviderId: string) => OAuthCatalogue | undefined;
16
+ export declare const findOAuthProvider: (idOrProviderId: string | undefined) => OAuthCatalogue | undefined;
17
17
  /**
18
18
  * Find a prebuilt provider by its provider ID or internal ID, case-insensitively.
19
19
  */
20
- export declare const findPrebuiltProviderByProviderId: (providerId: OAuthProviderIdType | string) => OAuthCatalogue | undefined;
20
+ export declare const findPrebuiltProviderByProviderId: (providerId: OAuthProviderIdType | string | undefined) => OAuthCatalogue | undefined;
21
21
  /**
22
22
  * Find a prebuilt provider by its ID (not provider ID), case-insensitively.
23
23
  */
24
- export declare const findPrebuiltProviderById: (id: string) => OAuthCatalogue | undefined;
24
+ export declare const findPrebuiltProviderById: (id: string | undefined) => OAuthCatalogue | undefined;
25
25
  /**
26
26
  * Check if a provider ID (or internal ID) corresponds to a prebuilt provider.
27
27
  */
28
- export declare const isPrebuiltProvider: (providerId: string) => boolean;
28
+ export declare const isPrebuiltProvider: (providerId: string | undefined) => boolean;
29
29
  /**
30
30
  * Resolve a provider `provider_id` or internal `id` to its catalogue descriptor
31
31
  * across all providers, falling back to the generic OAuth 2.0 descriptor for
32
32
  * custom or unknown ones.
33
33
  */
34
- export declare const resolveOAuthProvider: (providerId: string) => OAuthCatalogue;
34
+ export declare const resolveOAuthProvider: (providerId: string | undefined) => OAuthCatalogue;
35
35
  /**
36
36
  * TOOLKITS
37
37
  */
38
38
  /**
39
39
  * Check if a toolkit name exists in the catalogue
40
40
  */
41
- export declare const isKnownToolkit: (toolkitName: string) => boolean;
41
+ export declare const isKnownToolkit: (toolkitName: string | undefined) => boolean;
42
42
  /**
43
43
  * Find a toolkit by its name or ID, with case-insensitive matching
44
44
  * @returns Toolkit object, or undefined if not found
45
45
  */
46
- export declare const findToolkitByName: (toolkitName: string) => Toolkit | undefined;
46
+ export declare const findToolkitByName: (toolkitName: string | undefined) => Toolkit | undefined;
47
47
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../lib/metadata/utils.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAE5E;;GAEG;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,GAC5B,gBAAgB,MAAM,KACrB,cAAc,GAAG,SAOnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gCAAgC,GAC3C,YAAY,mBAAmB,GAAG,MAAM,KACvC,cAAc,GAAG,SAOnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,GACnC,IAAI,MAAM,KACT,cAAc,GAAG,SAKnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,YAAY,MAAM,KAAG,OACI,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,YAAY,MAAM,KAAG,cACR,CAAC;AAEnD;;GAEG;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,aAAa,MAAM,KAAG,OAGlD,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,aAAa,MAAM,KAAG,OAAO,GAAG,SAajE,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../lib/metadata/utils.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAE5E;;GAEG;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,GAC5B,gBAAgB,MAAM,GAAG,SAAS,KACjC,cAAc,GAAG,SAYnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gCAAgC,GAC3C,YAAY,mBAAmB,GAAG,MAAM,GAAG,SAAS,KACnD,cAAc,GAAG,SAUnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,GACnC,IAAI,MAAM,GAAG,SAAS,KACrB,cAAc,GAAG,SAQnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,YAAY,MAAM,GAAG,SAAS,KAAG,OACR,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAC/B,YAAY,MAAM,GAAG,SAAS,KAC7B,cAAkE,CAAC;AAEtE;;GAEG;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,aAAa,MAAM,GAAG,SAAS,KAAG,OAQhE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAC5B,aAAa,MAAM,GAAG,SAAS,KAC9B,OAAO,GAAG,SAgBZ,CAAC"}
@@ -2,15 +2,23 @@ import { OAUTH2_PROVIDER as e, OAUTH_PROVIDERS as t, PREBUILT_OAUTH_PROVIDERS as
2
2
  import { TOOLKITS as r, TOOLKIT_CATALOGUE as i } from "./toolkits.js";
3
3
  //#region lib/metadata/utils.ts
4
4
  var a = (e) => {
5
+ if (!e) return;
5
6
  let n = e.toLowerCase();
6
7
  return t.find((e) => e.provider_id.toLowerCase() === n || e.id.toLowerCase() === n);
7
8
  }, o = (e) => {
9
+ if (!e) return;
8
10
  let t = e.toLowerCase();
9
11
  return n.find((e) => e.provider_id.toLowerCase() === t || e.id.toLowerCase() === t);
10
12
  }, s = (e) => {
13
+ if (!e) return;
11
14
  let t = e.toLowerCase();
12
15
  return n.find((e) => e.id.toLowerCase() === t);
13
- }, c = (e) => o(e) !== void 0, l = (t) => a(t) ?? e, u = (e) => Object.keys(i).some((t) => t.toLowerCase() === e.toLowerCase()), d = (e) => {
16
+ }, c = (e) => o(e) !== void 0, l = (t) => a(t) ?? e, u = (e) => {
17
+ if (!e) return !1;
18
+ let t = e.toLowerCase();
19
+ return Object.keys(i).some((e) => e.toLowerCase() === t);
20
+ }, d = (e) => {
21
+ if (!e) return;
14
22
  let t = e.toLowerCase(), n = r.filter((e) => e.label.toLowerCase() === t || e.id.toLowerCase() === t);
15
23
  if (n.length !== 0) return n.find((e) => !e.isHidden) ?? n[0];
16
24
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arcadeai/design-system",
3
3
  "private": false,
4
- "version": "7.7.0",
4
+ "version": "7.8.0",
5
5
  "type": "module",
6
6
  "main": "./dist/main.js",
7
7
  "types": "./dist/main.d.ts",