@cratis/event-models 0.161.0 → 0.163.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,6 @@
|
|
|
1
1
|
import type { SceneDocument } from '@cratis/scene.model';
|
|
2
2
|
import { type SceneDocumentProblem } from '../Document/readSceneDocument';
|
|
3
|
+
import type { ScreenEditorRuntime } from '../Runtime/screenEditorRuntime';
|
|
3
4
|
import type { ScreenEditorSubject } from './ScreenEditorHost';
|
|
4
5
|
export interface OpenedSubject {
|
|
5
6
|
document: SceneDocument;
|
|
@@ -11,4 +12,4 @@ export type OpenResult = {
|
|
|
11
12
|
opened: false;
|
|
12
13
|
problem: SceneDocumentProblem;
|
|
13
14
|
};
|
|
14
|
-
export declare function openSubject(subject: ScreenEditorSubject): OpenResult;
|
|
15
|
+
export declare function openSubject(subject: ScreenEditorSubject, runtime?: Pick<ScreenEditorRuntime, 'profile' | 'packages'>): OpenResult;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type PackageCatalog } from '@cratis/scene.engine';
|
|
2
|
+
import type { UiProfile } from '@cratis/scene.model';
|
|
3
|
+
export interface StoredComponentResolution {
|
|
4
|
+
package: string;
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function splitStoredComponentName(stored: string): {
|
|
8
|
+
package: string | undefined;
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function resolveStoredComponentName(stored: string, profile: UiProfile, catalog: PackageCatalog): StoredComponentResolution | undefined;
|
|
12
|
+
export declare function qualifyStoredComponentNames<TDocument>(document: TDocument, profile: UiProfile, catalog: PackageCatalog): TDocument;
|