@cratis/event-models 0.303.3 → 0.304.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.
- package/dist/Model/SpecificationCaller.d.ts +1 -0
- package/dist/event-model-document.schema.json +3 -0
- package/dist/event-models.css +1 -1
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/dist/screen-editor/ScreenEditor/Runtime/compositionProfile.d.ts +0 -9
- package/dist/screen-editor/UiProfile/packagesOrLegacyFallback.d.ts +3 -0
- package/dist/screen-editor/UiProfile/persistedFromSettings.d.ts +12 -0
- package/dist/screen-editor/index.js +1432 -1401
- package/package.json +3 -3
|
@@ -1,11 +1,2 @@
|
|
|
1
1
|
import type { UiProfile } from '@cratis/scene.model';
|
|
2
|
-
/**
|
|
3
|
-
* The profile an application is drawn with: the application's own with the packages every host renders with admitted, and the PrimeReact widgets the
|
|
4
|
-
* default blueprint is built from placed just beneath the blueprint - the profile Stage renders the same application with. A profile that names only
|
|
5
|
-
* `core` and `Cratis.Components` would otherwise leave the shell's own component, `appShell`, unresolved in the editor and the preview while Stage draws
|
|
6
|
-
* it (spec 13.1: the same render in Studio preview and Stage). The profile an author edits is untouched; this is only what names are resolved with.
|
|
7
|
-
*
|
|
8
|
-
* @param profile The UI profile the application's editor draws with.
|
|
9
|
-
* @returns The profile to resolve component names with.
|
|
10
|
-
*/
|
|
11
2
|
export declare function compositionProfileOf(profile: UiProfile): UiProfile;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ScenePackageBundle } from '@cratis/scene.react';
|
|
2
|
+
import { PersistedUiProfile } from './PersistedUiProfile';
|
|
3
|
+
import { UiProfileSettings } from './UiProfileSettings';
|
|
4
|
+
/**
|
|
5
|
+
* Turns settings into what is stored: the choices plus the resolved package order and the shell's layout,
|
|
6
|
+
* both computed by Scene's resolver at this moment.
|
|
7
|
+
*
|
|
8
|
+
* @param settings The settings to store.
|
|
9
|
+
* @param bundles Every known package bundle.
|
|
10
|
+
* @returns The {@link PersistedUiProfile}.
|
|
11
|
+
*/
|
|
12
|
+
export declare function persistedFromSettings(settings: UiProfileSettings, bundles: ScenePackageBundle[]): PersistedUiProfile;
|