@cratis/event-models 0.345.0 → 0.347.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.
- package/dist/screen-editor/BindingExpressionPropertyEditor-BDzuLWUA.js +471 -0
- package/dist/screen-editor/{DataBindingSections-wybsadzf.js → DataBindingSections-DLo6sV-E.js} +228 -228
- package/dist/screen-editor/{QueryBindingPropertyEditor-BofsQo32.js → QueryBindingPropertyEditor-BzDtdbGf.js} +1 -1
- package/dist/screen-editor/ScreenEditor/DesignMode/designModeAnnouncements.d.ts +9 -0
- package/dist/screen-editor/ScreenEditor/DesignMode/designModeSelection.d.ts +9 -0
- package/dist/screen-editor/ScreenEditor/Host/useDocumentSetters.d.ts +15 -0
- package/dist/screen-editor/ScreenEditor/Host/useEditApplication.d.ts +15 -0
- package/dist/screen-editor/ScreenEditor/Host/useEditingScene.d.ts +12 -0
- package/dist/screen-editor/ScreenEditor/Host/useNavigationEditing.d.ts +17 -0
- package/dist/screen-editor/ScreenEditor/Host/useStructureOperations.d.ts +39 -0
- package/dist/screen-editor/ScreenEditor/Inspector/ActionProperties.d.ts +14 -0
- package/dist/screen-editor/ScreenEditor/Inspector/CommandFormProperties.d.ts +12 -0
- package/dist/screen-editor/ScreenEditor/Inspector/ComponentProperties.d.ts +17 -0
- package/dist/screen-editor/ScreenEditor/Inspector/ExternalComponentSections.d.ts +14 -0
- package/dist/screen-editor/ScreenEditor/Inspector/PropertiesPanel.d.ts +1 -1
- package/dist/screen-editor/ScreenEditor/Inspector/PropertyGroups.d.ts +20 -0
- package/dist/screen-editor/ScreenEditor/Inspector/ScreenProperties.d.ts +10 -0
- package/dist/screen-editor/ScreenEditor/Inspector/bindingExpressionEdits.d.ts +26 -0
- package/dist/screen-editor/ScreenEditor/Surface/ScreenSurface.d.ts +1 -1
- package/dist/screen-editor/ScreenEditor/Surface/SelectionGrip.d.ts +10 -0
- package/dist/screen-editor/ScreenEditor/Surface/surfaceText.d.ts +4 -0
- package/dist/screen-editor/ScreenEditor/Surface/useDrawnScreen.d.ts +7 -0
- package/dist/screen-editor/ScreenEditor/Surface/useSurfaceKeys.d.ts +5 -0
- package/dist/screen-editor/ScreenEditor/Surface/useSurfaceMeasurer.d.ts +3 -0
- package/dist/screen-editor/ScreenEditor/Surface/useSurfaceViewportHeight.d.ts +2 -0
- package/dist/screen-editor/index.js +6486 -6356
- package/dist/screen-editor/screen-editor.css +1 -1
- package/package.json +3 -3
- package/dist/screen-editor/BindingExpressionPropertyEditor-D63oFTJg.js +0 -455
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as N, P as E, c as B, d as F, f as I, h as L, l as j, m as M, t as k, u as Q } from "./DataBindingSections-
|
|
1
|
+
import { F as N, P as E, c as B, d as F, f as I, h as L, l as j, m as M, t as k, u as Q } from "./DataBindingSections-DLo6sV-E.js";
|
|
2
2
|
import { useState as R } from "react";
|
|
3
3
|
import { Fragment as S, jsx as o, jsxs as d } from "react/jsx-runtime";
|
|
4
4
|
import { validateBinding as D } from "@cratis/scene.engine";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type DesignModeItem } from './designModeTypes';
|
|
2
|
+
import type { DesignModeStrings } from './DesignModeStrings';
|
|
3
|
+
export declare const actionAnnouncement: (strings: DesignModeStrings, actionId: string, item: DesignModeItem) => string;
|
|
4
|
+
export declare const refusalReasonOf: (result: {
|
|
5
|
+
rejected?: string;
|
|
6
|
+
diagnostics?: readonly {
|
|
7
|
+
message: string;
|
|
8
|
+
}[];
|
|
9
|
+
}, label: string) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DesignModePlan } from './designModeTypes';
|
|
2
|
+
import type { DesignModeStrings } from './DesignModeStrings';
|
|
3
|
+
import type { RegionSourceInputs } from './Navigation/regionItemSource';
|
|
4
|
+
export interface SelectionTarget {
|
|
5
|
+
select: (elementId: string | undefined) => void;
|
|
6
|
+
selectItem: (componentId: string | undefined, itemId: string | undefined) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function applyPlanSelection(target: SelectionTarget, select: DesignModePlan['select'], componentId: string | undefined): void;
|
|
9
|
+
export declare function regionStringsOf(strings: DesignModeStrings): RegionSourceInputs['strings'];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Behavior, DestinationReference, DialogTemplate, Form, SceneDocument, ScreenTemplate, Slot, TemplateMetadata } from '@cratis/scene.model';
|
|
2
|
+
import { type ScreenEditSession } from '../Session/EditSession';
|
|
3
|
+
import type { ScreenEditorEnvironment } from './ScreenEditorHost';
|
|
4
|
+
export declare const useDocumentSetters: (commit: (change: (current: ScreenEditSession) => ScreenEditSession) => unknown, environment: ScreenEditorEnvironment) => {
|
|
5
|
+
setScreenForms: (forms: Form[], label: string) => void;
|
|
6
|
+
changeDocument: (change: (document: SceneDocument) => SceneDocument, label: string) => {
|
|
7
|
+
applied: boolean;
|
|
8
|
+
};
|
|
9
|
+
setScreenTemplateSlots: (templateName: string, slots: Slot[], label: string) => void;
|
|
10
|
+
setScreenTemplateMetadata: (templateName: string, metadata: TemplateMetadata | undefined, label: string) => void;
|
|
11
|
+
setDialogTemplates: (dialogTemplates: DialogTemplate[], label: string) => void;
|
|
12
|
+
setCollectionItemDestination: (componentId: string, path: string, itemId: string, destination: DestinationReference | undefined, label: string) => void;
|
|
13
|
+
setScreenTemplate: (template: ScreenTemplate | undefined, label: string) => void;
|
|
14
|
+
setElementBehaviors: (elementId: string, behaviors: Behavior[] | undefined, label: string) => void;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { SceneEdit } from '@cratis/scene.model';
|
|
2
|
+
import type { EditingContext } from '@cratis/scene.engine';
|
|
3
|
+
import { type ScreenEditSession } from '../Session/EditSession';
|
|
4
|
+
import type { SessionCell } from '../Session/SessionCell';
|
|
5
|
+
export declare const useEditApplication: (cell: SessionCell, commit: (change: (current: ScreenEditSession) => ScreenEditSession) => ScreenEditSession, context: EditingContext) => {
|
|
6
|
+
tryApply: (edit: SceneEdit, label: string) => {
|
|
7
|
+
applied: boolean;
|
|
8
|
+
diagnostics: import("@cratis/scene.model").SceneDiagnostic[];
|
|
9
|
+
};
|
|
10
|
+
apply: (edit: SceneEdit, label: string) => void;
|
|
11
|
+
applyAll: (edits: SceneEdit[], label: string) => {
|
|
12
|
+
applied: boolean;
|
|
13
|
+
diagnostics: import("@cratis/scene.model").SceneDiagnostic[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SceneElement } from '@cratis/scene.model';
|
|
2
|
+
import type { EditingContext } from '@cratis/scene.engine';
|
|
3
|
+
import type { ScreenEditSession } from '../Session/EditSession';
|
|
4
|
+
import type { ScreenEditorEnvironment } from './ScreenEditorHost';
|
|
5
|
+
export declare const useEditingScene: (document: ScreenEditSession['document'], authoringTemplate: string | undefined, environment: ScreenEditorEnvironment) => {
|
|
6
|
+
context: EditingContext;
|
|
7
|
+
composition: import("../Templates/composeEditorScreen").EditorComposition;
|
|
8
|
+
ownershipOf: import("../Structure/OwnershipResolver").OwnershipResolver;
|
|
9
|
+
adapter: import("../Structure/StructureTreeAdapter").StructureTreeAdapter<SceneElement>;
|
|
10
|
+
authored: import("@cratis/scene.model").Panel | undefined;
|
|
11
|
+
dropRegions: import("../DropRegions/DropRegion").DropRegion[];
|
|
12
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type NavigationEdit } from '@cratis/scene.engine';
|
|
2
|
+
import { type ScreenEditSession } from '../Session/EditSession';
|
|
3
|
+
import type { SessionCell } from '../Session/SessionCell';
|
|
4
|
+
import type { ScreenEditorEnvironment } from './ScreenEditorHost';
|
|
5
|
+
export declare const useNavigationEditing: (document: ScreenEditSession['document'], cell: SessionCell, commit: (change: (current: ScreenEditSession) => ScreenEditSession) => ScreenEditSession, environment: ScreenEditorEnvironment) => {
|
|
6
|
+
navigation: import("@cratis/scene.model").NavigationModel;
|
|
7
|
+
structure: import("@cratis/scene.model").ApplicationStructure;
|
|
8
|
+
navigationModule: string | undefined;
|
|
9
|
+
setNavigationModule: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
|
|
10
|
+
applyNavigationEdits: (edits: NavigationEdit[], label: string) => {
|
|
11
|
+
applied: boolean;
|
|
12
|
+
rejected: string | undefined;
|
|
13
|
+
} | {
|
|
14
|
+
rejected?: undefined;
|
|
15
|
+
applied: boolean;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { SceneEdit, SceneElement } from '@cratis/scene.model';
|
|
2
|
+
import { type CanvasPlacement } from '../Document/placeOnCanvas';
|
|
3
|
+
import { type BoxMeasure } from '../Document/canvasMoveEdits';
|
|
4
|
+
import type { StructureTreeAdapter } from '../Structure/StructureTreeAdapter';
|
|
5
|
+
import { StructureEditRejection } from '../Structure/StructureEditRejection';
|
|
6
|
+
import type { SessionCell } from '../Session/SessionCell';
|
|
7
|
+
import type { ScreenEditorController } from './ScreenEditorController';
|
|
8
|
+
import type { ComponentInsertedListener } from './useScreenEditor';
|
|
9
|
+
type Applied = {
|
|
10
|
+
applied: boolean;
|
|
11
|
+
};
|
|
12
|
+
type MoveEdit = Parameters<ScreenEditorController['move']>[0];
|
|
13
|
+
export interface StructureOperationsInput {
|
|
14
|
+
cell: SessionCell;
|
|
15
|
+
composition: {
|
|
16
|
+
roots: SceneElement[];
|
|
17
|
+
entry?: string;
|
|
18
|
+
};
|
|
19
|
+
authored: {
|
|
20
|
+
id?: string;
|
|
21
|
+
} | undefined;
|
|
22
|
+
adapter: StructureTreeAdapter<SceneElement>;
|
|
23
|
+
authoringTemplate: string | undefined;
|
|
24
|
+
measureBox: BoxMeasure;
|
|
25
|
+
tryApply: (edit: SceneEdit, label: string) => Applied;
|
|
26
|
+
applyAll: (edits: SceneEdit[], label: string) => Applied;
|
|
27
|
+
setSelectedId: (change: string | undefined | ((current: string | undefined) => string | undefined)) => void;
|
|
28
|
+
onInserted?: ComponentInsertedListener;
|
|
29
|
+
}
|
|
30
|
+
export declare const useStructureOperations: (input: StructureOperationsInput) => {
|
|
31
|
+
move: (edit: MoveEdit, at?: CanvasPlacement) => StructureEditRejection | undefined;
|
|
32
|
+
insertElement: (element: SceneElement, parentId: string | undefined, index: number | undefined, label: string, at?: CanvasPlacement) => void;
|
|
33
|
+
remove: (elementId: string) => void;
|
|
34
|
+
canRemove: (elementId: string) => boolean;
|
|
35
|
+
validateMove: (edit: Parameters<ScreenEditorController['validateMove']>[0]) => StructureEditRejection | undefined;
|
|
36
|
+
insertComponent: (componentName: string, parentId: string | undefined, index: number | undefined, at?: CanvasPlacement) => void;
|
|
37
|
+
insertLayout: (item: Parameters<ScreenEditorController['insertLayout']>[0], parentId: string | undefined, index: number | undefined, at?: CanvasPlacement) => void;
|
|
38
|
+
};
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ScreenEditorController } from '../Host/ScreenEditorController';
|
|
2
|
+
import type { ScreenEditorEnvironment } from '../Host/ScreenEditorHost';
|
|
3
|
+
import type { PlacementEnvironment } from '../Placement/hookPlacement';
|
|
4
|
+
import type { ScreenEditorStrings } from './ScreenEditorStrings';
|
|
5
|
+
export interface ActionPropertiesProps {
|
|
6
|
+
controller: ScreenEditorController;
|
|
7
|
+
environment: ScreenEditorEnvironment;
|
|
8
|
+
strings: ScreenEditorStrings;
|
|
9
|
+
elementId: string;
|
|
10
|
+
properties: Record<string, unknown> | undefined;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
placement?: PlacementEnvironment;
|
|
13
|
+
}
|
|
14
|
+
export declare const ActionProperties: ({ controller, environment, strings, elementId, properties, disabled, placement }: ActionPropertiesProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ScreenEditorController } from '../Host/ScreenEditorController';
|
|
2
|
+
import type { ScreenEditorEnvironment } from '../Host/ScreenEditorHost';
|
|
3
|
+
import type { ScreenEditorStrings } from './ScreenEditorStrings';
|
|
4
|
+
export interface CommandFormPropertiesProps {
|
|
5
|
+
elementId: string;
|
|
6
|
+
properties: Record<string, unknown> | undefined;
|
|
7
|
+
controller: ScreenEditorController;
|
|
8
|
+
environment: ScreenEditorEnvironment;
|
|
9
|
+
strings: ScreenEditorStrings;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const CommandFormProperties: ({ elementId, properties, controller, environment, strings, disabled }: CommandFormPropertiesProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ScreenOutlets } from '../DesignMode/Outlets/screenOutlets';
|
|
2
|
+
import type { ScreenEditorController } from '../Host/ScreenEditorController';
|
|
3
|
+
import type { ScreenEditorEnvironment } from '../Host/ScreenEditorHost';
|
|
4
|
+
import type { ScreenEditorStrings } from './ScreenEditorStrings';
|
|
5
|
+
import type { Ownership } from '../Structure/Ownership';
|
|
6
|
+
export interface ComponentPropertiesProps {
|
|
7
|
+
controller: ScreenEditorController;
|
|
8
|
+
environment: ScreenEditorEnvironment;
|
|
9
|
+
strings: ScreenEditorStrings;
|
|
10
|
+
ownership: Ownership | undefined;
|
|
11
|
+
authoringTemplate?: string;
|
|
12
|
+
selectedId: string;
|
|
13
|
+
selection: NonNullable<ScreenEditorController['selection']>;
|
|
14
|
+
inspection: NonNullable<ScreenEditorController['inspection']>;
|
|
15
|
+
screenOutlets: ScreenOutlets;
|
|
16
|
+
}
|
|
17
|
+
export declare const ComponentProperties: ({ controller, environment, strings, ownership, authoringTemplate, selectedId, selection, inspection, screenOutlets }: ComponentPropertiesProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ComponentDescriptor, ExternalComponent, InspectedProperty } 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 ExternalComponentSectionsProps {
|
|
6
|
+
component: ExternalComponent;
|
|
7
|
+
descriptor: ComponentDescriptor;
|
|
8
|
+
properties: InspectedProperty[];
|
|
9
|
+
controller: ScreenEditorController;
|
|
10
|
+
environment: ScreenEditorEnvironment;
|
|
11
|
+
strings: ScreenEditorStrings;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const ExternalComponentSections: ({ component, descriptor, properties, controller, environment, strings, disabled }: ExternalComponentSectionsProps) => import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ChangeLayoutTypeEdit, NodeInspection } from '@cratis/scene.model';
|
|
2
2
|
import type { SceneOrderedItem } from '../Collections/orderedItems';
|
|
3
3
|
import type { ScreenEditorController } from '../Host/ScreenEditorController';
|
|
4
4
|
import type { ScreenEditorEnvironment } from '../Host/ScreenEditorHost';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { InspectedProperty, SceneDiagnostic } from '@cratis/scene.model';
|
|
2
|
+
import { PropertyEditorHost } from '../PropertyEditors/Registry/PropertyEditorHost';
|
|
3
|
+
import { withSession, type EditorContextInputs } from '../PropertyEditors/Registry/createEditorContext';
|
|
4
|
+
import type { ScreenEditorController } from '../Host/ScreenEditorController';
|
|
5
|
+
type EditorContext = Parameters<typeof withSession>[0];
|
|
6
|
+
type Registry = Parameters<typeof PropertyEditorHost>[0]['registry'];
|
|
7
|
+
export interface PropertyGroupsProps {
|
|
8
|
+
groups: {
|
|
9
|
+
name: string;
|
|
10
|
+
properties: InspectedProperty[];
|
|
11
|
+
}[];
|
|
12
|
+
selectedId: string;
|
|
13
|
+
registry: Registry;
|
|
14
|
+
baseContext: EditorContext;
|
|
15
|
+
editorInputs: EditorContextInputs;
|
|
16
|
+
diagnostics: SceneDiagnostic[];
|
|
17
|
+
onChange: ScreenEditorController['setProperty'];
|
|
18
|
+
}
|
|
19
|
+
export declare const PropertyGroups: ({ groups, selectedId, registry, baseContext, editorInputs, diagnostics, onChange }: PropertyGroupsProps) => import("react").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ScreenEditorController } from '../Host/ScreenEditorController';
|
|
2
|
+
import type { ScreenEditorEnvironment } from '../Host/ScreenEditorHost';
|
|
3
|
+
import type { ScreenEditorStrings } from './ScreenEditorStrings';
|
|
4
|
+
export interface ScreenPropertiesProps {
|
|
5
|
+
controller: ScreenEditorController;
|
|
6
|
+
environment: ScreenEditorEnvironment;
|
|
7
|
+
strings: ScreenEditorStrings;
|
|
8
|
+
authoringTemplate?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const ScreenProperties: ({ controller, environment, strings, authoringTemplate }: ScreenPropertiesProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BindingMode, BindingSourceKind, PropertyValueType, type BindingExpression } from '@cratis/scene.model';
|
|
2
|
+
import type { BindingSourceInventory } from '../Binding/bindingSources';
|
|
3
|
+
import type { ScreenEditorStrings } from './ScreenEditorStrings';
|
|
4
|
+
export type BindingStrings = ScreenEditorStrings['properties']['binding'];
|
|
5
|
+
export declare enum LiteralEditorKind {
|
|
6
|
+
String = "string",
|
|
7
|
+
Number = "number",
|
|
8
|
+
Boolean = "boolean",
|
|
9
|
+
Null = "null",
|
|
10
|
+
Json = "json"
|
|
11
|
+
}
|
|
12
|
+
export interface SourceChoice {
|
|
13
|
+
kind: BindingSourceKind;
|
|
14
|
+
label: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
reason?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function kindOf(binding: BindingExpression): BindingSourceKind;
|
|
19
|
+
export declare function bindingShapedValue(value: unknown): unknown | undefined;
|
|
20
|
+
export declare function modesFor(binding: BindingExpression): BindingMode[];
|
|
21
|
+
export declare function normalize(binding: BindingExpression): BindingExpression;
|
|
22
|
+
export declare function forKind(kind: BindingSourceKind, binding: BindingExpression): Partial<BindingExpression>;
|
|
23
|
+
export declare function literalKindFor(value: unknown, targetType: PropertyValueType): LiteralEditorKind;
|
|
24
|
+
export declare function literalSignature(value: unknown, targetType: PropertyValueType): string;
|
|
25
|
+
export declare function defaultLiteralValue(kind: LiteralEditorKind): unknown;
|
|
26
|
+
export declare function sourceKindChoices(binding: BindingExpression, accepted: readonly BindingSourceKind[], sources: BindingSourceInventory, text: BindingStrings): SourceChoice[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { BindingResolver } from '@cratis/scene.engine';
|
|
2
2
|
import { type EffectiveConfiguration } from '@cratis/scene.model';
|
|
3
3
|
import type { ScreenEditorController } from '../Host/ScreenEditorController';
|
|
4
4
|
import type { ScreenEditorEnvironment } from '../Host/ScreenEditorHost';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface SelectionGripProps {
|
|
2
|
+
left: number;
|
|
3
|
+
top: number;
|
|
4
|
+
elementId: string;
|
|
5
|
+
name: string;
|
|
6
|
+
title: string;
|
|
7
|
+
onStart: (elementId: string) => void;
|
|
8
|
+
onEnd: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const SelectionGrip: ({ left, top, elementId, name, title, onStart, onEnd }: SelectionGripProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SurfaceStrings } from './DesignTime/SurfaceStrings';
|
|
2
|
+
import type { DragFeedback } from './useSurfaceDrop';
|
|
3
|
+
export declare const selectedNameOf: (selection: object | undefined) => string;
|
|
4
|
+
export declare const dropAnnouncement: (feedback: DragFeedback | undefined, strings: Pick<SurfaceStrings, 'dropDenied' | 'dropTarget'>) => string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { EffectiveConfiguration } from '@cratis/scene.model';
|
|
2
|
+
import type { ScreenEditorController } from '../Host/ScreenEditorController';
|
|
3
|
+
import type { ScreenEditorEnvironment } from '../Host/ScreenEditorHost';
|
|
4
|
+
import type { ScreenEditorStrings } from '../Inspector/ScreenEditorStrings';
|
|
5
|
+
import type { ShellState } from '../ShellFrame/useShellFrame';
|
|
6
|
+
export declare const useEffectiveConfiguration: (given: EffectiveConfiguration | undefined, controller: ScreenEditorController) => EffectiveConfiguration | undefined;
|
|
7
|
+
export declare const useDrawnScreen: (controller: ScreenEditorController, environment: ScreenEditorEnvironment, shell: ShellState | undefined, editorStrings: ScreenEditorStrings | undefined) => import("@cratis/scene.model").SceneElement;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { KeyboardEvent, RefObject } from 'react';
|
|
2
|
+
import type { ScreenEditorController } from '../Host/ScreenEditorController';
|
|
3
|
+
import type { ShellState } from '../ShellFrame/useShellFrame';
|
|
4
|
+
import type { useDesignMode } from '../DesignMode/useDesignMode';
|
|
5
|
+
export declare const useSurfaceKeys: (surface: RefObject<HTMLDivElement | null>, controller: ScreenEditorController, designMode: ReturnType<typeof useDesignMode>, shell: ShellState | undefined) => (event: KeyboardEvent) => void;
|