@cratis/event-models 0.218.2 → 0.220.0
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,5 +1,5 @@
|
|
|
1
1
|
import { ColorScheme, LayoutMode } from '@cratis/scene.blueprint.default';
|
|
2
|
-
import type { RootTemplate } from '@cratis/scene.model';
|
|
2
|
+
import type { CornerStyle, ProfileIdentity, RootTemplate } from '@cratis/scene.model';
|
|
3
3
|
import type { SampleDataSelectionSettings } from './SampleDataSelectionSettings';
|
|
4
4
|
import type { ProfileSizeClass } from './ProfileSizeClass';
|
|
5
5
|
/**
|
|
@@ -32,6 +32,14 @@ export interface UiProfileSettings {
|
|
|
32
32
|
navigationMode: LayoutMode;
|
|
33
33
|
/** An accent color as `#rrggbb`, or empty to keep the theme's own. */
|
|
34
34
|
accent: string;
|
|
35
|
+
/** The application's name and logo as Scene models them. Absent for a profile that never chose one: initials taken from the name, name shown. */
|
|
36
|
+
identity?: ProfileIdentity;
|
|
37
|
+
/** The corner style. Absent to keep the theme's own corners. */
|
|
38
|
+
corners?: CornerStyle;
|
|
39
|
+
/** The id of a font of Scene's font catalog. Absent to keep the theme's own font. */
|
|
40
|
+
font?: string;
|
|
41
|
+
/** The menu surface: `light`, `dark` or `primary` (the accent). Absent for light. Stored with the shell's options. */
|
|
42
|
+
menuTheme?: string;
|
|
35
43
|
/** The screen template new screens start from, or empty for none. Chosen per level by Cratis/StudioIssues#396. */
|
|
36
44
|
defaultScreenTemplate: string;
|
|
37
45
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UiProfile } from '@cratis/scene.model';
|
|
1
2
|
import { ScenePackageBundle } from '@cratis/scene.react';
|
|
2
3
|
import { ResolvedUiProfile } from './ResolvedUiProfile';
|
|
3
4
|
import { UiProfileSettings } from './UiProfileSettings';
|
|
@@ -16,3 +17,13 @@ export declare const uiProfileName = "UI Profile";
|
|
|
16
17
|
* @returns The {@link ResolvedUiProfile}.
|
|
17
18
|
*/
|
|
18
19
|
export declare function resolveUiProfile(settings: UiProfileSettings, bundles: ScenePackageBundle[]): ResolvedUiProfile;
|
|
20
|
+
/**
|
|
21
|
+
* The profile the preview is drawn from: the resolved profile with the menu mode and menu theme the author chose in the root's options, which is where
|
|
22
|
+
* Scene reads them. The stored root carries them only once the profile has been saved in the root-template shape, and a profile that chose no root has
|
|
23
|
+
* none at all; the preview must follow the choice at once, so it is given a root of the layout it resolved to. Only the preview reads this profile.
|
|
24
|
+
*
|
|
25
|
+
* @param resolved The resolved profile.
|
|
26
|
+
* @param settings The settings being designed.
|
|
27
|
+
* @returns The profile to draw.
|
|
28
|
+
*/
|
|
29
|
+
export declare function previewProfileOf(resolved: ResolvedUiProfile, settings: UiProfileSettings): UiProfile;
|