@omnia/fx-models 8.0.136-dev → 8.0.137-dev
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/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +4 -4
- package/internal-do-not-import-from-here/shared/models/theming/Typography.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/services/index.d.ts +0 -1
- package/package.json +1 -1
- package/internal-do-not-import-from-here/shared/services/ThemingService.d.ts +0 -45
- package/internal-do-not-import-from-here/shared/services/tmpUseIndexDb.d.ts +0 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { GuidValue } from "../Guid";
|
2
2
|
import { BoxDimensions, ComponentBlueprints, SpacingBlueprints, TypographyBlueprints } from "./Blueprints";
|
3
3
|
export interface ColorTypeResult<resultType> {
|
4
4
|
base: resultType;
|
@@ -42,7 +42,7 @@ export interface ColorSchemas extends ColorSchemasReference {
|
|
42
42
|
notification: ColorSchema;
|
43
43
|
}
|
44
44
|
export interface BlueprintsReference {
|
45
|
-
id:
|
45
|
+
id: GuidValue;
|
46
46
|
}
|
47
47
|
export interface ColorSchemasReference {
|
48
48
|
primary: BlueprintsReference;
|
@@ -58,7 +58,7 @@ export interface ColorSchemasReference {
|
|
58
58
|
notification: BlueprintsReference;
|
59
59
|
}
|
60
60
|
export interface ThemeDefinitionReference {
|
61
|
-
id:
|
61
|
+
id: GuidValue;
|
62
62
|
name?: string;
|
63
63
|
colors: ColorSchemasReference;
|
64
64
|
typography: BlueprintsReference;
|
@@ -72,7 +72,7 @@ export interface ThemeDefinitionV2 extends ThemeDefinitionReference {
|
|
72
72
|
components: ComponentBlueprints;
|
73
73
|
}
|
74
74
|
export interface ITemplateRegistration<TTemplateType = any> {
|
75
|
-
id:
|
75
|
+
id: GuidValue;
|
76
76
|
template: TTemplateType;
|
77
77
|
hidden?: boolean;
|
78
78
|
custom?: boolean;
|
package/package.json
CHANGED
@@ -1,45 +0,0 @@
|
|
1
|
-
import { ButtonBlueprint, ChromeBlueprint, ColorSchema, ComponentBlueprints, Guid, ITemplateRegistration, SpacingBlueprints, TabsBlueprint, ThemeDefinitionV2, TypographyBlueprints } from "../models";
|
2
|
-
export declare const useThemingService: () => {
|
3
|
-
buttons: () => {
|
4
|
-
upsert: (item: ITemplateRegistration<ButtonBlueprint>) => Promise<unknown>;
|
5
|
-
delete: (id: Guid) => Promise<unknown>;
|
6
|
-
getAll: () => Promise<ITemplateRegistration<ButtonBlueprint>[]>;
|
7
|
-
};
|
8
|
-
chrome: () => {
|
9
|
-
upsert: (item: ITemplateRegistration<ChromeBlueprint>) => Promise<unknown>;
|
10
|
-
delete: (id: Guid) => Promise<unknown>;
|
11
|
-
getAll: () => Promise<ITemplateRegistration<ChromeBlueprint>[]>;
|
12
|
-
};
|
13
|
-
colorSchema: () => {
|
14
|
-
upsert: (item: ITemplateRegistration<ColorSchema>) => Promise<unknown>;
|
15
|
-
delete: (id: Guid) => Promise<unknown>;
|
16
|
-
getAll: () => Promise<ITemplateRegistration<ColorSchema>[]>;
|
17
|
-
};
|
18
|
-
components: () => {
|
19
|
-
upsert: (item: ITemplateRegistration<ComponentBlueprints>) => Promise<unknown>;
|
20
|
-
delete: (id: Guid) => Promise<unknown>;
|
21
|
-
getAll: () => Promise<ITemplateRegistration<ComponentBlueprints>[]>;
|
22
|
-
};
|
23
|
-
spacings: () => {
|
24
|
-
upsert: (item: ITemplateRegistration<SpacingBlueprints>) => Promise<unknown>;
|
25
|
-
delete: (id: Guid) => Promise<unknown>;
|
26
|
-
getAll: () => Promise<ITemplateRegistration<SpacingBlueprints>[]>;
|
27
|
-
};
|
28
|
-
tabs: () => {
|
29
|
-
upsert: (item: ITemplateRegistration<TabsBlueprint>) => Promise<unknown>;
|
30
|
-
delete: (id: Guid) => Promise<unknown>;
|
31
|
-
getAll: () => Promise<ITemplateRegistration<TabsBlueprint>[]>;
|
32
|
-
};
|
33
|
-
themes: () => {
|
34
|
-
upsert: (item: ITemplateRegistration<ThemeDefinitionV2>) => Promise<unknown>;
|
35
|
-
delete: (id: Guid) => Promise<unknown>;
|
36
|
-
getAll: () => Promise<ITemplateRegistration<ThemeDefinitionV2>[]>;
|
37
|
-
saveTheme: (key: string, theme: ThemeDefinitionV2) => void;
|
38
|
-
loadTheme: (key: string) => ThemeDefinitionV2;
|
39
|
-
};
|
40
|
-
typography: () => {
|
41
|
-
upsert: (item: ITemplateRegistration<TypographyBlueprints>) => Promise<unknown>;
|
42
|
-
delete: (id: Guid) => Promise<unknown>;
|
43
|
-
getAll: () => Promise<ITemplateRegistration<TypographyBlueprints>[]>;
|
44
|
-
};
|
45
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|