zova-cli-set-front 1.2.46 → 1.2.48

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,6 +1,6 @@
1
1
  import type { PrefixKeys } from 'zova';
2
- import type { IActionRecord, TypeActionOptions } from 'zova-module-a-action';
3
2
  import type { IVonaComponentRecord, TypeComponentOptions } from 'zova-module-a-bean';
3
+ import type { ICommandRecord, TypeCommandOptions } from 'zova-module-a-command';
4
4
  import type { IIconRecord } from 'zova-module-a-icon';
5
5
  import type { TypePagePathSchema } from 'zova-module-a-router';
6
6
  import type { CssBase } from 'zova-module-home-theme';
@@ -28,7 +28,7 @@ export function $cssMerge(
28
28
  [className: string]: any;
29
29
  }
30
30
  )[]
31
- ): any[] {
31
+ ): any {
32
32
  return classes;
33
33
  }
34
34
 
@@ -36,9 +36,9 @@ export function $iconName<K extends keyof IIconRecord>(name: K): any {
36
36
  return name;
37
37
  }
38
38
 
39
- export function Action<K extends keyof IActionRecord>(options: TypeActionOptions<K>) {
40
- if (!options.name) throw new Error('should specify the action name');
41
- return options.name.replace(':', '.action.');
39
+ export function Command<K extends keyof ICommandRecord>(options: TypeCommandOptions<K>) {
40
+ if (!options.name) throw new Error('should specify the command name');
41
+ return options.name.replace(':', '.command.');
42
42
  }
43
43
 
44
44
  export function Component<K extends keyof IVonaComponentRecord>(options: TypeComponentOptions<K>) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zova-cli-set-front",
3
- "version": "1.2.46",
4
- "gitHead": "ddec2a32e5fd0e85af5967caa29e4d0e5e0f6117",
3
+ "version": "1.2.48",
4
+ "gitHead": "87d2202a9a86869e6933c17fc78d6f0728400296",
5
5
  "description": "zova cli-set-front",
6
6
  "keywords": [
7
7
  "framework",