@kestra-io/ui-libs 0.0.233 → 0.0.234

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.
@@ -17,6 +17,6 @@ export type Plugin = {
17
17
  } & {
18
18
  [pluginElement: string]: PluginElement[];
19
19
  };
20
- export declare function isEntryAPluginElementPredicate(key: string, value: any): boolean;
20
+ export declare function isEntryAPluginElementPredicate(key: string, value: any): value is PluginElement[];
21
21
  export declare function subGroupName(subGroupWrapper: Plugin): string;
22
22
  //# sourceMappingURL=plugins.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/utils/plugins.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAA;AAED,MAAM,MAAM,MAAM,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB,GAAG;IACA,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,EAAE,CAAC;CAC5C,CAAA;AAED,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,WAKrE;AAED,wBAAgB,YAAY,CAAC,eAAe,EAAE,MAAM,UAGnD"}
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/utils/plugins.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAA;AAED,MAAM,MAAM,MAAM,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB,GAAG;IACA,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,EAAE,CAAC;CAC5C,CAAA;AAED,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,aAAa,EAAE,CAKhG;AAED,wBAAgB,YAAY,CAAC,eAAe,EAAE,MAAM,UAGnD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kestra-io/ui-libs",
3
- "version": "0.0.233",
3
+ "version": "0.0.234",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -19,7 +19,7 @@ export type Plugin = {
19
19
  [pluginElement: string]: PluginElement[];
20
20
  }
21
21
 
22
- export function isEntryAPluginElementPredicate(key: string, value: any) {
22
+ export function isEntryAPluginElementPredicate(key: string, value: any): value is PluginElement[] {
23
23
  return Array.isArray(value) &&
24
24
  !["categories", "controllers", "storages", "aliases", "guides"].includes(key) &&
25
25
  ((value as any[]).length === 0 ||