zova-module-a-style 5.0.9 → 5.0.10
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 +2 -2
- package/src/bean/store.theme.ts +1 -1
- package/src/types.ts +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-module-a-style",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.10",
|
|
4
4
|
"title": "a-style",
|
|
5
5
|
"zovaModule": {
|
|
6
6
|
"capabilities": {
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"tsc:publish": "npm run clean && tsc -b",
|
|
35
35
|
"prepublishOnly": "npm run tsc:publish"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "499e7924959a60e59c1641b37bc5bc188e7a5a7f"
|
|
38
38
|
}
|
package/src/bean/store.theme.ts
CHANGED
|
@@ -44,7 +44,7 @@ export class StoreTheme extends BeanBase<ScopeModule> {
|
|
|
44
44
|
this.token = Cast(res).token;
|
|
45
45
|
if (res.handler) {
|
|
46
46
|
const themeHandler = (await this.bean._getBean(res.handler, true)) as unknown as ThemeHandler;
|
|
47
|
-
await themeHandler.apply(
|
|
47
|
+
await themeHandler.apply({ name: this.name, dark: this.dark, token: this.token } as any);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
package/src/types.ts
CHANGED
|
@@ -23,5 +23,10 @@ export interface ThemeBase {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export interface ThemeHandler {
|
|
26
|
-
apply(result:
|
|
26
|
+
apply(result: ThemeHandlerApplyParams): Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface ThemeHandlerApplyParams {
|
|
30
|
+
name: string;
|
|
31
|
+
dark: boolean;
|
|
27
32
|
}
|