@cratis/event-models 0.250.0 → 0.251.1
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/Features/FeatureSuggestions.d.ts +4 -2
- package/dist/event-models.css +1 -1
- package/dist/index.js +875 -864
- package/dist/index.js.map +1 -1
- package/dist/screen-editor/ScreenEditor/Forms/useDesignTimeCommands.d.ts +2 -1
- package/dist/screen-editor/ScreenEditor/Host/SaveRefusedNotice.d.ts +8 -0
- package/dist/screen-editor/ScreenEditor/Host/ScreenEditorHost.d.ts +1 -0
- package/dist/screen-editor/ScreenEditor/Host/ScreenEditorOverlayFrame.d.ts +1 -0
- package/dist/screen-editor/ScreenEditor/Host/ScreenEditorWindow.d.ts +3 -1
- package/dist/screen-editor/ScreenEditor/Host/createScreenEditorEnvironment.d.ts +1 -0
- package/dist/screen-editor/ScreenEditor/Host/openSubject.d.ts +3 -1
- package/dist/screen-editor/ScreenEditor/Inspector/ScreenEditorStrings.d.ts +2 -0
- package/dist/screen-editor/index.js +2131 -2132
- package/dist/screen-editor/screen-editor.css +1 -1
- package/package.json +3 -3
- package/dist/screen-editor/ScreenEditor/Forms/designTimeCommands.d.ts +0 -5
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import type { StateChangeSlice } from '../Actions/StateChangeSlice';
|
|
2
|
-
|
|
2
|
+
import type { ScreenEditorEnvironment } from '../Host/ScreenEditorHost';
|
|
3
|
+
export declare function useDesignTimeCommands(slices: readonly StateChangeSlice[], registerDesignTimeCommands: ScreenEditorEnvironment['registerDesignTimeCommands']): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ScreenEditorStrings } from '../Inspector/ScreenEditorStrings';
|
|
2
|
+
export interface SaveRefusedNoticeProps {
|
|
3
|
+
strings: Pick<ScreenEditorStrings, 'saveRefused' | 'keepEditing' | 'discardAndClose'>;
|
|
4
|
+
message: string;
|
|
5
|
+
onKeepEditing?: () => void;
|
|
6
|
+
onDiscard?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const SaveRefusedNotice: ({ strings, message, onKeepEditing, onDiscard }: SaveRefusedNoticeProps) => import("react").JSX.Element;
|
|
@@ -22,6 +22,7 @@ export interface ScreenEditorEnvironment {
|
|
|
22
22
|
runtime: ScreenEditorRuntime;
|
|
23
23
|
queryCandidates: readonly QueryCandidate[];
|
|
24
24
|
stateChangeSlices: readonly StateChangeSlice[];
|
|
25
|
+
registerDesignTimeCommands?: (slices: readonly StateChangeSlice[]) => () => void;
|
|
25
26
|
destinations: readonly ConfigurationDestination[];
|
|
26
27
|
availableSources: Record<string, string>;
|
|
27
28
|
richText?: QuillLoader;
|
|
@@ -26,8 +26,10 @@ export interface ScreenEditorWindowProps {
|
|
|
26
26
|
authoringTemplate?: string;
|
|
27
27
|
deviceFrame?: boolean;
|
|
28
28
|
saveFailure?: string;
|
|
29
|
+
onKeepEditing?: () => void;
|
|
30
|
+
onDiscard?: () => void;
|
|
29
31
|
onSave?: () => void;
|
|
30
32
|
isSaving?: boolean;
|
|
31
33
|
onPreview?: (document: SceneDocument) => void;
|
|
32
34
|
}
|
|
33
|
-
export declare const ScreenEditorWindow: ({ controller, environment, strings, window: state, authoringTemplate, deviceFrame, saveFailure, onSave, isSaving, onPreview }: ScreenEditorWindowProps) => import("react").JSX.Element;
|
|
35
|
+
export declare const ScreenEditorWindow: ({ controller, environment, strings, window: state, authoringTemplate, deviceFrame, saveFailure, onKeepEditing, onDiscard, onSave, isSaving, onPreview }: ScreenEditorWindowProps) => import("react").JSX.Element;
|
|
@@ -10,6 +10,7 @@ export interface ScreenEditorEnvironmentSource {
|
|
|
10
10
|
runtime: ScreenEditorRuntime;
|
|
11
11
|
queryCandidates?: readonly DiscoveredQueryCandidate[];
|
|
12
12
|
stateChangeSlices?: readonly StateChangeSlice[];
|
|
13
|
+
registerDesignTimeCommands?: ScreenEditorEnvironment['registerDesignTimeCommands'];
|
|
13
14
|
destinations?: readonly ConfigurationDestination[];
|
|
14
15
|
richText?: QuillLoader | false;
|
|
15
16
|
fileUpload?: ScreenEditorFileUpload;
|
|
@@ -12,4 +12,6 @@ export type OpenResult = {
|
|
|
12
12
|
opened: false;
|
|
13
13
|
problem: SceneDocumentProblem;
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
type OpeningRuntime = Pick<ScreenEditorRuntime, 'profile' | 'packages'> & Partial<Pick<ScreenEditorRuntime, 'bundles'>>;
|
|
16
|
+
export declare function openSubject(subject: ScreenEditorSubject, runtime?: OpeningRuntime): OpenResult;
|
|
17
|
+
export {};
|