zova-ui-empty 5.0.309 → 5.0.310

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-ui-empty",
3
- "version": "5.0.309",
3
+ "version": "5.0.310",
4
4
  "description": "A vue3 empty framework with ioc",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -75,5 +75,5 @@
75
75
  "zova-vite": "^1.0.175"
76
76
  },
77
77
  "license": "MIT",
78
- "gitHead": "77ef4ca0142da6237f07cb425c12829293ace083"
78
+ "gitHead": "5b598f275b721138cce24fa254209a02c77d6e61"
79
79
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-ui-empty",
3
- "version": "5.0.305",
3
+ "version": "5.0.309",
4
4
  "description": "A vue3 empty framework with ioc",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -61,5 +61,5 @@
61
61
  "zova-vite": "^1.0.175"
62
62
  },
63
63
  "license": "MIT",
64
- "gitHead": "25e1a6a705edb2edbb362563a9f8d69b55e1c7e9"
64
+ "gitHead": "7bc4154c42126f847720d6c19422e55d1236b7e6"
65
65
  }
@@ -1,10 +1,12 @@
1
1
  import { BeanBase, Theme } from 'zova';
2
2
  import { ScopeModule } from '../.metadata/this.js';
3
3
  import { ThemeApplyParams, ThemeApplyResult, ThemeBase } from 'zova-module-a-style';
4
+ import { ThemeToken } from '../themeToken.js';
4
5
 
5
6
  @Theme()
6
7
  export class ThemeDefault extends BeanBase<ScopeModule> implements ThemeBase {
7
8
  async apply({ name: _name, dark: _dark }: ThemeApplyParams): Promise<ThemeApplyResult> {
8
- return {};
9
+ const token: ThemeToken = {};
10
+ return { token };
9
11
  }
10
12
  }
@@ -1,2 +1,3 @@
1
1
  export * from './.metadata/index.js';
2
2
  export * from './types.js';
3
+ export * from './themeToken.js';
@@ -0,0 +1 @@
1
+ export interface ThemeToken {}
@@ -2,6 +2,7 @@ import { AxiosInstance } from 'axios';
2
2
  import { BeanApi } from './bean/bean.api.js';
3
3
  import { StyleDefault } from './bean/style.default.js';
4
4
  import { ScopeModule } from './.metadata/this.js';
5
+ import { ThemeToken } from './themeToken.js';
5
6
  import 'zova';
6
7
 
7
8
  declare module 'zova' {
@@ -13,5 +14,17 @@ declare module 'zova' {
13
14
  $api: BeanApi;
14
15
  $scopeBase: ScopeModule;
15
16
  $class: StyleDefault;
17
+ $token: ThemeToken;
18
+ }
19
+ }
20
+
21
+ import 'zova-module-a-style';
22
+ declare module 'zova-module-a-style' {
23
+ export interface ThemeApplyResult {
24
+ token: ThemeToken;
25
+ }
26
+
27
+ export interface ThemeHandlerApplyParams {
28
+ token: ThemeToken;
16
29
  }
17
30
  }