zova-cli-set-front 1.2.47 → 1.2.49

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, IJsxCommandOptionsEvent, IJsxCommandOptionsCommands, 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';
@@ -36,12 +36,20 @@ 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.');
42
- }
43
-
44
- export function Component<K extends keyof IVonaComponentRecord>(options: TypeComponentOptions<K>) {
39
+ export function ZovaComponent<K extends keyof IVonaComponentRecord>(options: TypeComponentOptions<K>) {
45
40
  if (!options.name) throw new Error('should specify the component name');
46
41
  return options.name;
47
42
  }
43
+
44
+ export function ZovaCommand<K extends keyof ICommandRecord>(options: TypeCommandOptions<K>) {
45
+ if (!options.name) throw new Error('should specify the command name');
46
+ return options.name.replace(':', '.command.');
47
+ }
48
+
49
+ export function ZovaEvent(_options: IJsxCommandOptionsEvent) {
50
+ return 'ActionEvent';
51
+ }
52
+
53
+ export function ZovaCommands(_options: IJsxCommandOptionsCommands) {
54
+ return 'ActionActions';
55
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zova-cli-set-front",
3
- "version": "1.2.47",
4
- "gitHead": "106d9830a06a019121adf3af44e0ae22063aed55",
3
+ "version": "1.2.49",
4
+ "gitHead": "67d21659b3d827cb503706a52bfdd7fb2f63e76d",
5
5
  "description": "zova cli-set-front",
6
6
  "keywords": [
7
7
  "framework",