@kestra-io/ui-libs 0.0.217 → 0.0.219

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,3 +1,7 @@
1
+ export type PluginElement = {
2
+ cls: string;
3
+ deprecated?: boolean;
4
+ };
1
5
  export type Plugin = {
2
6
  name: string;
3
7
  title: string;
@@ -11,7 +15,7 @@ export type Plugin = {
11
15
  aliases?: string[];
12
16
  guides?: string[];
13
17
  } & {
14
- [pluginElement: string]: string[];
18
+ [pluginElement: string]: PluginElement[];
15
19
  };
16
20
  export declare function isEntryAPluginElementPredicate(key: string, value: any): boolean;
17
21
  export declare function subGroupName(subGroupWrapper: Plugin): string;
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/utils/plugins.ts"],"names":[],"mappings":"AAAA,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,MAAM,EAAE,CAAC;CACrC,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,WAKrE;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.217",
3
+ "version": "0.0.219",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -39,7 +39,7 @@
39
39
  </template>
40
40
  <script setup lang="ts">
41
41
  import RowLink from "../misc/RowLink.vue";
42
- import type {Plugin} from "../../utils/plugins";
42
+ import type {Plugin, PluginElement} from "../../utils/plugins";
43
43
  import {isEntryAPluginElementPredicate, subGroupName} from "../../utils/plugins";
44
44
  import {slugify} from "../../utils/url";
45
45
  import {computed} from "vue";
@@ -77,7 +77,7 @@
77
77
  function extractPluginElements(plugin: Plugin): Record<string, string[]> {
78
78
  return Object.fromEntries(
79
79
  Object.entries(plugin).filter(([key, value]) => isEntryAPluginElementPredicate(key, value))
80
- .map(([key, value]) => [key.replaceAll(/[A-Z]/g, match => ` ${match}`), value as string[]])
80
+ .map(([key, value]) => [key.replaceAll(/[A-Z]/g, match => ` ${match}`), (value as PluginElement[]).filter(({deprecated}) => !deprecated).map(({cls}) => cls)])
81
81
  );
82
82
  }
83
83
 
@@ -1,3 +1,8 @@
1
+ export type PluginElement = {
2
+ cls: string;
3
+ deprecated?: boolean;
4
+ }
5
+
1
6
  export type Plugin = {
2
7
  name: string;
3
8
  title: string;
@@ -11,7 +16,7 @@ export type Plugin = {
11
16
  aliases?: string[];
12
17
  guides?: string[];
13
18
  } & {
14
- [pluginElement: string]: string[];
19
+ [pluginElement: string]: PluginElement[];
15
20
  }
16
21
 
17
22
  export function isEntryAPluginElementPredicate(key: string, value: any) {