@cratis/event-models 0.246.1 → 0.247.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.
@@ -0,0 +1,5 @@
1
+ import type { StateChangeSlice } from '../Actions/StateChangeSlice';
2
+ type Constructor = new () => object;
3
+ export declare function designTimeCommandOf(slice: StateChangeSlice): Constructor;
4
+ export declare function registerDesignTimeCommands(slices: readonly StateChangeSlice[]): () => void;
5
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { StateChangeSlice } from '../Actions/StateChangeSlice';
2
+ export declare function useDesignTimeCommands(slices: readonly StateChangeSlice[]): void;
@@ -77,6 +77,7 @@ export interface ScreenEditorStrings {
77
77
  designTimeDesigners: string;
78
78
  designTimePropertyEditors: string;
79
79
  designerFailed: (designer: string) => string;
80
+ packageNotInProfile: (packageName: string) => string;
80
81
  layoutType: string;
81
82
  changeLayout: string;
82
83
  confirmLayoutTitle: string;
@@ -0,0 +1,12 @@
1
+ import type { ComponentDescriptor, ExternalComponent } from '@cratis/scene.model';
2
+ import type { ScreenEditorController } from '../Host/ScreenEditorController';
3
+ import type { ScreenEditorEnvironment } from '../Host/ScreenEditorHost';
4
+ import type { ScreenEditorStrings } from './ScreenEditorStrings';
5
+ export interface UnapprovedPackageNoticeProps {
6
+ descriptor: ComponentDescriptor;
7
+ component: ExternalComponent;
8
+ controller: ScreenEditorController;
9
+ environment: ScreenEditorEnvironment;
10
+ strings: ScreenEditorStrings;
11
+ }
12
+ export declare const UnapprovedPackageNotice: ({ descriptor, component, controller, environment, strings }: UnapprovedPackageNoticeProps) => import("react").JSX.Element | null;
@@ -0,0 +1,3 @@
1
+ import type { ComponentDescriptor } from '@cratis/scene.model';
2
+ import type { ScreenEditorEnvironment } from '../Host/ScreenEditorHost';
3
+ export declare function unapprovedPackageOf(descriptor: ComponentDescriptor, environment: ScreenEditorEnvironment, actionDiagnostics?: readonly (string | undefined)[]): string | undefined;