@omnia/fx 8.0.263-dev → 8.0.264-dev

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. package/internal-do-not-import-from-here/ux/aurora/admin/blades/blueprints/typography/components/FontPicker.css.d.ts +4 -1
  2. package/internal-do-not-import-from-here/ux/aurora/admin/blades/blueprints/typography/components/FontPicker.d.ts +12 -8
  3. package/internal-do-not-import-from-here/ux/aurora/admin/blades/blueprints/typography/components/FontRegistration.d.ts +6 -0
  4. package/internal-do-not-import-from-here/ux/aurora/admin/blades/blueprints/typography/store/TypographyEditorStore.d.ts +41 -16
  5. package/internal-do-not-import-from-here/ux/aurora/admin/blades/fontsmanager/FontManager.d.ts +2 -0
  6. package/internal-do-not-import-from-here/ux/aurora/admin/blades/fontsmanager/blade/FontDefinitionBlade.d.ts +6 -0
  7. package/internal-do-not-import-from-here/ux/aurora/admin/blades/fontsmanager/store/FontManagerStore.d.ts +75 -0
  8. package/internal-do-not-import-from-here/ux/aurora/store/FontStore.d.ts +77 -0
  9. package/internal-do-not-import-from-here/ux/aurora/store/SpacingBlueprintStore.d.ts +114 -10
  10. package/internal-do-not-import-from-here/ux/aurora/store/TypographyBlueprintStore.d.ts +117 -11
  11. package/internal-do-not-import-from-here/ux/aurora/store/index.d.ts +1 -0
  12. package/internal-do-not-import-from-here/ux/markdown2/MarkdownToolbar.css.d.ts +1 -0
  13. package/internal-do-not-import-from-here/ux/markdown2/commands/EditorCommands.d.ts +11 -19
  14. package/internal-do-not-import-from-here/ux/markdown2/commands/helpers/EditorNodeHelper.d.ts +3 -10
  15. package/internal-do-not-import-from-here/ux/markdown2/commands/helpers/HtmlNodehelper.d.ts +6 -6
  16. package/internal-do-not-import-from-here/ux/markdown2/models/EditorModels.d.ts +13 -9
  17. package/internal-do-not-import-from-here/ux/markdown2/models/EditorPlugin.d.ts +6 -4
  18. package/internal-do-not-import-from-here/ux/markdown2/plugins/colorstyle/ColorButton.d.ts +2 -2
  19. package/internal-do-not-import-from-here/ux/markdown2/plugins/text/TextPlugin.d.ts +2 -2
  20. package/internal-do-not-import-from-here/ux/markdown2/plugins/typography/TypographyButton.d.ts +2 -2
  21. package/internal-do-not-import-from-here/ux/markdown2/plugins/velcron/VelcronPlugin.d.ts +2 -2
  22. package/internal-do-not-import-from-here/ux/markdown2/stores/MarkdownStore.d.ts +21 -12
  23. package/internal-do-not-import-from-here/ux/markdown2/stores/MarkdownToolbarStore.d.ts +122 -55
  24. package/internal-do-not-import-from-here/ux/oxide/checkbox/Checkbox.d.ts +1 -1
  25. package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronDefinitions.d.ts +5 -1
  26. package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts +10 -1
  27. package/internal-do-not-import-from-here/ux/velcron/core/templatebuilder/VelcronEditorBuilder.d.ts +1 -0
  28. package/internal-do-not-import-from-here/ux/velcron/editor/models/VelcronEditorDescriptors.d.ts +1 -0
  29. package/internal-do-not-import-from-here/ux/velcron/editor/templates/EditorTemplates.d.ts +1 -0
  30. package/internal-do-not-import-from-here/ux/velcron/renderer/editors/PropertyResolverEditor.d.ts +13 -0
  31. package/internal-do-not-import-from-here/ux/versionedlayout/blade/VersionedLayoutBladeBuilder.d.ts +1 -1
  32. package/internal-do-not-import-from-here/wctypings.d.ts +20 -0
  33. package/package.json +2 -2
@@ -1,8 +1,11 @@
1
+ import { guid, TypographyFontDefinition } from "@omnia/fx-models";
1
2
  export interface FontRegistration {
2
3
  name: string;
3
4
  family: string;
4
5
  cdn?: string;
6
+ isCustom?: boolean;
7
+ manifestId?: guid;
5
8
  }
6
9
  export declare const FontPickerStyles: {
7
- fontWrapper: (font: FontRegistration) => string;
10
+ fontWrapper: (font: TypographyFontDefinition) => string;
8
11
  };
@@ -1,5 +1,9 @@
1
+ import { TypographyFontDefinition } from "@omnia/fx-models";
1
2
  import { VNodeChild } from "vue";
2
- import { FontRegistration } from "./FontPicker.css";
3
+ export declare enum FontAddition {
4
+ Available = 0,
5
+ CDN = 1
6
+ }
3
7
  declare const _default: {
4
8
  new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
5
9
  "v-slots": import("vue").Prop<{
@@ -74,9 +78,9 @@ declare const _default: {
74
78
  }>;
75
79
  };
76
80
  }>> & {
77
- "onFont:selected"?: (selectedFont: FontRegistration) => any;
81
+ "onFont:selected"?: (selectedFont: TypographyFontDefinition) => any;
78
82
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
79
- "font:selected": (selectedFont: FontRegistration) => any;
83
+ "font:selected": (selectedFont: TypographyFontDefinition) => any;
80
84
  }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
81
85
  "v-slots": import("vue").Prop<{
82
86
  default?: import("../../../../../../DefineVueTypings").Slot;
@@ -150,7 +154,7 @@ declare const _default: {
150
154
  }>;
151
155
  };
152
156
  }>> & {
153
- "onFont:selected"?: (selectedFont: FontRegistration) => any;
157
+ "onFont:selected"?: (selectedFont: TypographyFontDefinition) => any;
154
158
  }, {}, true, {}, {}, {
155
159
  P: {};
156
160
  B: {};
@@ -231,7 +235,7 @@ declare const _default: {
231
235
  }>;
232
236
  };
233
237
  }>> & {
234
- "onFont:selected"?: (selectedFont: FontRegistration) => any;
238
+ "onFont:selected"?: (selectedFont: TypographyFontDefinition) => any;
235
239
  }, () => JSX.Element, {}, {}, {}, {}>;
236
240
  __isFragment?: never;
237
241
  __isTeleport?: never;
@@ -309,9 +313,9 @@ declare const _default: {
309
313
  }>;
310
314
  };
311
315
  }>> & {
312
- "onFont:selected"?: (selectedFont: FontRegistration) => any;
316
+ "onFont:selected"?: (selectedFont: TypographyFontDefinition) => any;
313
317
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
314
- "font:selected": (selectedFont: FontRegistration) => any;
318
+ "font:selected": (selectedFont: TypographyFontDefinition) => any;
315
319
  }, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
316
320
  propsDefinition: Omit<Readonly<{} & {
317
321
  name?: {
@@ -384,7 +388,7 @@ declare const _default: {
384
388
  activator?: () => VNodeChild;
385
389
  };
386
390
  }>, "onFont:selected"> & {
387
- "onFont:selected"?: (selectedFont: FontRegistration) => any;
391
+ "onFont:selected"?: (selectedFont: TypographyFontDefinition) => any;
388
392
  };
389
393
  };
390
394
  export default _default;
@@ -0,0 +1,6 @@
1
+ import { FontDefinition, IFontRegistrationApi } from "@omnia/fx-models";
2
+ export declare class FontRegistrationApi implements IFontRegistrationApi {
3
+ private fontRegistry;
4
+ registerFont(font: FontDefinition): void;
5
+ getAllFonts(): FontDefinition[];
6
+ }
@@ -1,7 +1,8 @@
1
- import { FillDefinition, FillVariant, guid, ITemplateRegistration, TypographyBlueprint, TypographyBlueprints, TypographyDefinition, TypographySizes, TypographyType } from "@omnia/fx-models";
1
+ import { FillDefinition, FillVariant, guid, ITemplateRegistration, TypographyBlueprint, TypographyBlueprints, TypographyDefinition, TypographySizes, TypographyType, TypographyFontDefinition, IFontBlueprints, TypographyFontRef } from "@omnia/fx-models";
2
2
  export declare const useTypographyEditorStore: () => {
3
3
  state: {
4
4
  blueprints: ITemplateRegistration<TypographyBlueprints>;
5
+ availableFonts: ITemplateRegistration<IFontBlueprints>;
5
6
  blueprint: TypographyBlueprint;
6
7
  editMode: boolean;
7
8
  selectedTypography: {
@@ -14,6 +15,7 @@ export declare const useTypographyEditorStore: () => {
14
15
  };
15
16
  events: {
16
17
  onMutatedBlueprints: import("@omnia/fx").MessageBusExposeOnlySubscription<ITemplateRegistration<TypographyBlueprints, import("@omnia/fx-models").TemplateRegistrationType>>;
18
+ onMutatedAvailableFonts: import("@omnia/fx").MessageBusExposeOnlySubscription<ITemplateRegistration<IFontBlueprints, import("@omnia/fx-models").TemplateRegistrationType>>;
17
19
  onMutatedBlueprint: import("@omnia/fx").MessageBusExposeOnlySubscription<TypographyBlueprint>;
18
20
  onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
19
21
  onMutatedSelectedTypography: import("@omnia/fx").MessageBusExposeOnlySubscription<{
@@ -51,8 +53,18 @@ export declare const useTypographyEditorStore: () => {
51
53
  subscribe(fn: (font: {
52
54
  family: string;
53
55
  cdn?: string;
56
+ manifestId?: guid;
54
57
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
55
58
  };
59
+ setFontForTypoType: {
60
+ subscribe(fn: (font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
61
+ };
62
+ setFontForTypoTypeSize: {
63
+ subscribe(fn: (font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
64
+ };
65
+ saveTenantAvailableFont: {
66
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
67
+ };
56
68
  save: {
57
69
  subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
58
70
  };
@@ -86,8 +98,18 @@ export declare const useTypographyEditorStore: () => {
86
98
  subscribe(fn: (result: void, font: {
87
99
  family: string;
88
100
  cdn?: string;
101
+ manifestId?: guid;
89
102
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
90
103
  };
104
+ setFontForTypoType: {
105
+ subscribe(fn: (result: void, font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
106
+ };
107
+ setFontForTypoTypeSize: {
108
+ subscribe(fn: (result: void, font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
109
+ };
110
+ saveTenantAvailableFont: {
111
+ subscribe(fn: (result: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
112
+ };
91
113
  save: {
92
114
  subscribe(fn: (result: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
93
115
  };
@@ -121,8 +143,18 @@ export declare const useTypographyEditorStore: () => {
121
143
  subscribe(fn: (failureReason: any, font: {
122
144
  family: string;
123
145
  cdn?: string;
146
+ manifestId?: guid;
124
147
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
125
148
  };
149
+ setFontForTypoType: {
150
+ subscribe(fn: (failureReason: any, font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
151
+ };
152
+ setFontForTypoTypeSize: {
153
+ subscribe(fn: (failureReason: any, font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
154
+ };
155
+ saveTenantAvailableFont: {
156
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
157
+ };
126
158
  save: {
127
159
  subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
128
160
  };
@@ -141,7 +173,11 @@ export declare const useTypographyEditorStore: () => {
141
173
  setFont(font: {
142
174
  family: string;
143
175
  cdn?: string;
176
+ manifestId?: guid;
144
177
  }): void;
178
+ setFontForTypoType(font: TypographyFontDefinition): void;
179
+ setFontForTypoTypeSize(font: TypographyFontDefinition): void;
180
+ saveTenantAvailableFont(): Promise<boolean>;
145
181
  save(): Promise<boolean>;
146
182
  delete(): Promise<boolean>;
147
183
  };
@@ -152,30 +188,19 @@ export declare const useTypographyEditorStore: () => {
152
188
  m: TypographyDefinition;
153
189
  s: TypographyDefinition;
154
190
  xs: TypographyDefinition;
155
- font?: {
156
- id: guid;
157
- family: string;
158
- cdn?: string;
159
- };
191
+ font?: TypographyFontRef;
160
192
  } | {
161
193
  l: TypographyDefinition;
162
194
  m: TypographyDefinition;
163
195
  s: TypographyDefinition;
164
196
  xs: TypographyDefinition;
165
- font?: {
166
- id: guid;
167
- family: string;
168
- cdn?: string;
169
- };
197
+ font?: TypographyFontRef;
170
198
  } | {
171
199
  l: TypographyDefinition;
172
200
  m: TypographyDefinition;
173
- font?: {
174
- id: guid;
175
- family: string;
176
- cdn?: string;
177
- };
201
+ font?: TypographyFontRef;
178
202
  };
203
+ selectedTypoSizeFont: () => string;
179
204
  };
180
205
  bladeId: {
181
206
  startBlade: guid;
@@ -0,0 +1,2 @@
1
+ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<Record<string, any>>) => any;
2
+ export default _default;
@@ -0,0 +1,6 @@
1
+ export declare enum FontAddition {
2
+ Available = 0,
3
+ CDN = 1
4
+ }
5
+ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<Record<string, any>>) => any;
6
+ export default _default;
@@ -0,0 +1,75 @@
1
+ import { guid, TypographyFontDefinition } from "@omnia/fx-models";
2
+ export declare const useFontManagerStore: () => {
3
+ get: {
4
+ readonly editFont: TypographyFontDefinition;
5
+ };
6
+ state: {
7
+ editFont: TypographyFontDefinition;
8
+ editMode: boolean;
9
+ };
10
+ bladeId: {
11
+ allFontsBlade: guid;
12
+ editFontBlade: guid;
13
+ };
14
+ actions: {
15
+ onDispatching: {
16
+ editFont: {
17
+ subscribe(fn: (font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
18
+ };
19
+ selectApiHubFont: {
20
+ subscribe(fn: (font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
21
+ };
22
+ addFontMode: {
23
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
24
+ };
25
+ deleteFont: {
26
+ subscribe(fn: (font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
27
+ };
28
+ saveFont: {
29
+ subscribe(fn: (font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
30
+ };
31
+ };
32
+ onDispatched: {
33
+ editFont: {
34
+ subscribe(fn: (result: void, font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
35
+ };
36
+ selectApiHubFont: {
37
+ subscribe(fn: (result: void, font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
38
+ };
39
+ addFontMode: {
40
+ subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
41
+ };
42
+ deleteFont: {
43
+ subscribe(fn: (result: void, font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
44
+ };
45
+ saveFont: {
46
+ subscribe(fn: (result: void, font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
47
+ };
48
+ };
49
+ onFailure: {
50
+ editFont: {
51
+ subscribe(fn: (failureReason: any, font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
52
+ };
53
+ selectApiHubFont: {
54
+ subscribe(fn: (failureReason: any, font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
55
+ };
56
+ addFontMode: {
57
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
58
+ };
59
+ deleteFont: {
60
+ subscribe(fn: (failureReason: any, font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
61
+ };
62
+ saveFont: {
63
+ subscribe(fn: (failureReason: any, font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
64
+ };
65
+ };
66
+ } & {
67
+ editFont(font: TypographyFontDefinition): void;
68
+ selectApiHubFont(font: TypographyFontDefinition): void;
69
+ addFontMode(): void;
70
+ deleteFont(font: TypographyFontDefinition): Promise<void>;
71
+ saveFont(font: TypographyFontDefinition): Promise<void>;
72
+ };
73
+ } & {
74
+ dispose?: () => void;
75
+ };
@@ -0,0 +1,77 @@
1
+ import { TypographyFontDefinition } from "@omnia/fx-models";
2
+ export declare const useFontStore: () => {
3
+ actions: {
4
+ onDispatching: {
5
+ addFont: {
6
+ subscribe(fn: (font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
7
+ };
8
+ editFont: {
9
+ subscribe(fn: (font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
10
+ };
11
+ onFinishLoad: {
12
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
13
+ };
14
+ saveFont: {
15
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
16
+ };
17
+ delete: {
18
+ subscribe(fn: (font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
19
+ };
20
+ };
21
+ onDispatched: {
22
+ addFont: {
23
+ subscribe(fn: (result: void, font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
24
+ };
25
+ editFont: {
26
+ subscribe(fn: (result: void, font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
27
+ };
28
+ onFinishLoad: {
29
+ subscribe(fn: (result: unknown) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
30
+ };
31
+ saveFont: {
32
+ subscribe(fn: (result: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
33
+ };
34
+ delete: {
35
+ subscribe(fn: (result: void, font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
36
+ };
37
+ };
38
+ onFailure: {
39
+ addFont: {
40
+ subscribe(fn: (failureReason: any, font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
41
+ };
42
+ editFont: {
43
+ subscribe(fn: (failureReason: any, font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
44
+ };
45
+ onFinishLoad: {
46
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
47
+ };
48
+ saveFont: {
49
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
50
+ };
51
+ delete: {
52
+ subscribe(fn: (failureReason: any, font: TypographyFontDefinition) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
53
+ };
54
+ };
55
+ } & {
56
+ addFont(font: TypographyFontDefinition): void;
57
+ editFont(font: TypographyFontDefinition): void;
58
+ onFinishLoad(): Promise<unknown>;
59
+ saveFont(): Promise<boolean>;
60
+ delete(font: TypographyFontDefinition): Promise<void>;
61
+ };
62
+ get: {
63
+ readonly availableFonts: TypographyFontDefinition[] | ({
64
+ name: string;
65
+ family: string;
66
+ cdn?: undefined;
67
+ } | {
68
+ name: string;
69
+ family: string;
70
+ cdn: string;
71
+ })[];
72
+ findFont(family: string): TypographyFontDefinition;
73
+ readonly finishLoad: boolean;
74
+ };
75
+ } & {
76
+ dispose?: () => void;
77
+ };