@cratis/event-models 0.222.5 → 0.222.6
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/screen-editor/ScreenEditor/Host/ScreenEditorHost.d.ts +11 -0
- package/dist/screen-editor/ScreenEditor/Host/createScreenEditorEnvironment.d.ts +1 -0
- package/dist/screen-editor/ScreenEditor/Inspector/LocationSection.d.ts +8 -0
- package/dist/screen-editor/ScreenEditor/Inspector/ScreenEditorStrings.d.ts +9 -0
- package/dist/screen-editor/index.js +1120 -1034
- package/dist/screen-editor/screen-editor.css +1 -1
- package/package.json +3 -3
|
@@ -35,6 +35,17 @@ export interface ScreenEditorEnvironment {
|
|
|
35
35
|
};
|
|
36
36
|
templateScope?: TemplateScope;
|
|
37
37
|
navigation?: ScreenEditorNavigation;
|
|
38
|
+
location?: ScreenEditorLocation;
|
|
39
|
+
}
|
|
40
|
+
export interface ScreenEditorLocation {
|
|
41
|
+
path: readonly string[];
|
|
42
|
+
currentFeatureId: string;
|
|
43
|
+
features: readonly ScreenEditorLocationFeature[];
|
|
44
|
+
move?: (featureId: string) => Promise<string | undefined>;
|
|
45
|
+
}
|
|
46
|
+
export interface ScreenEditorLocationFeature {
|
|
47
|
+
id: string;
|
|
48
|
+
path: readonly string[];
|
|
38
49
|
}
|
|
39
50
|
export interface ScreenEditorNavigation {
|
|
40
51
|
structure: ApplicationStructure;
|
|
@@ -15,5 +15,6 @@ export interface ScreenEditorEnvironmentSource {
|
|
|
15
15
|
fileUpload?: ScreenEditorFileUpload;
|
|
16
16
|
templateScope?: TemplateScope;
|
|
17
17
|
navigation?: ScreenEditorEnvironment['navigation'];
|
|
18
|
+
location?: ScreenEditorEnvironment['location'];
|
|
18
19
|
}
|
|
19
20
|
export declare function createScreenEditorEnvironment(source: ScreenEditorEnvironmentSource): ScreenEditorEnvironment;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ScreenEditorLocation } from '../Host/ScreenEditorHost';
|
|
2
|
+
import type { ScreenEditorStrings } from './ScreenEditorStrings';
|
|
3
|
+
export declare const locationPathSeparator = " / ";
|
|
4
|
+
export interface LocationSectionProps {
|
|
5
|
+
location: ScreenEditorLocation | undefined;
|
|
6
|
+
strings: ScreenEditorStrings;
|
|
7
|
+
}
|
|
8
|
+
export declare const LocationSection: ({ location, strings }: LocationSectionProps) => import("react").JSX.Element | null;
|
|
@@ -62,6 +62,15 @@ export interface ScreenEditorStrings {
|
|
|
62
62
|
allChangesSaved: string;
|
|
63
63
|
properties: {
|
|
64
64
|
screenLabel: string;
|
|
65
|
+
location: {
|
|
66
|
+
title: string;
|
|
67
|
+
path: string;
|
|
68
|
+
moveTo: string;
|
|
69
|
+
moveHint: string;
|
|
70
|
+
move: string;
|
|
71
|
+
moved: (path: string) => string;
|
|
72
|
+
moveFailed: string;
|
|
73
|
+
};
|
|
65
74
|
diagnostics: string;
|
|
66
75
|
noProperties: string;
|
|
67
76
|
designTimeActions: string;
|