@cratis/event-models 0.135.6 → 0.136.2
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/Collections/orderedItems.d.ts +2 -1
- package/dist/screen-editor/ScreenEditor/Host/ScreenEditorController.d.ts +2 -1
- package/dist/screen-editor/ScreenEditor/Inspector/ScreenEditorStrings.d.ts +1 -0
- package/dist/screen-editor/ScreenEditor/Session/EditSession.d.ts +1 -0
- package/dist/screen-editor/index.js +1736 -1687
- package/package.json +3 -3
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { type InspectedProperty, type SceneEdit } from '@cratis/scene.model';
|
|
1
|
+
import { type DestinationReference, type InspectedProperty, type SceneEdit } from '@cratis/scene.model';
|
|
2
2
|
import type { OrderedItem, OrderedItemCapabilities, OrderedItemProposal } from '@cratis/components/ConfigurationEditor';
|
|
3
3
|
export interface SceneOrderedItem extends OrderedItem {
|
|
4
4
|
values: Record<string, unknown>;
|
|
5
|
+
destinationReference?: DestinationReference;
|
|
5
6
|
}
|
|
6
7
|
export declare function toOrderedItems(property: InspectedProperty): {
|
|
7
8
|
items: SceneOrderedItem[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CanvasPlacement } from '../Document/placeOnCanvas';
|
|
2
|
-
import type { NodeInspection, SceneDiagnostic, SceneDocument, SceneEdit, SceneElement } from '@cratis/scene.model';
|
|
2
|
+
import type { Form, NodeInspection, SceneDiagnostic, SceneDocument, SceneEdit, SceneElement } from '@cratis/scene.model';
|
|
3
3
|
import type { EditingContext } from '@cratis/scene.engine';
|
|
4
4
|
import type { Ownership } from '../Structure/Ownership';
|
|
5
5
|
import type { StructureEdit } from '../Structure/StructureEdit';
|
|
@@ -43,6 +43,7 @@ export interface ScreenEditorController {
|
|
|
43
43
|
remove: (elementId: string) => void;
|
|
44
44
|
canRemove: (elementId: string) => boolean;
|
|
45
45
|
setProperty: (property: NodeInspection['properties'][number], value: unknown) => void;
|
|
46
|
+
setScreenForms: (forms: Form[], label: string) => void;
|
|
46
47
|
undo: () => void;
|
|
47
48
|
redo: () => void;
|
|
48
49
|
canUndo: boolean;
|
|
@@ -15,6 +15,7 @@ export interface ScreenEditSession {
|
|
|
15
15
|
export declare const maximumHistory = 100;
|
|
16
16
|
export declare function openSession(document: SceneDocument): ScreenEditSession;
|
|
17
17
|
export declare function applyToSession(session: ScreenEditSession, edit: SceneEdit, context: EditingContext, label: string): ScreenEditSession;
|
|
18
|
+
export declare function changeDocumentInSession(session: ScreenEditSession, document: SceneDocument, label: string): ScreenEditSession;
|
|
18
19
|
export declare function applyAllToSession(session: ScreenEditSession, edits: SceneEdit[], context: EditingContext, label: string): ScreenEditSession;
|
|
19
20
|
export declare const canUndo: (session: ScreenEditSession) => boolean;
|
|
20
21
|
export declare const canRedo: (session: ScreenEditSession) => boolean;
|