@cratis/event-models 0.152.4 → 0.152.5
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/Actions/bindingSourceMarkersFor.d.ts +4 -0
- package/dist/screen-editor/ScreenEditor/Actions/commandInputSources.d.ts +9 -0
- package/dist/screen-editor/ScreenEditor/Inspector/ActionEditor.d.ts +2 -1
- package/dist/screen-editor/ScreenEditor/Inspector/DesignTimePropertyEditorsSection.d.ts +14 -0
- package/dist/screen-editor/ScreenEditor/Inspector/ScreenEditorStrings.d.ts +1 -0
- package/dist/screen-editor/ScreenEditor/Integration/index.d.ts +0 -3
- package/dist/screen-editor/ScreenEditor/Runtime/createDesignTimeHost.d.ts +3 -0
- package/dist/screen-editor/ScreenEditor/Runtime/screenEditorRuntime.d.ts +3 -1
- package/dist/screen-editor/ScreenEditor/Runtime/studioEditorKinds.d.ts +1 -0
- package/dist/screen-editor/ScreenEditor/Surface/BindingSourceMarkers.d.ts +10 -0
- package/dist/screen-editor/ScreenEditor/Surface/useSelectedBindingMarkers.d.ts +4 -0
- package/dist/screen-editor/index.js +2330 -2256
- package/dist/screen-editor/screen-editor.css +1 -1
- package/package.json +12 -12
- package/dist/screen-editor/ScreenEditor/Integration/DesignTimeActionExecutionContext.d.ts +0 -8
- package/dist/screen-editor/ScreenEditor/Integration/DesignTimeActionResult.d.ts +0 -7
- package/dist/screen-editor/ScreenEditor/Integration/runDesignTimeAction.d.ts +0 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { BindingSourceMarker } from '../Surface/BindingSourceMarkers';
|
|
2
|
+
import type { CommandInputSource } from './commandInputSources';
|
|
3
|
+
import type { ActionModel } from './ActionModel';
|
|
4
|
+
export declare function bindingSourceMarkersFor(action: ActionModel | undefined, sources: readonly CommandInputSource[]): BindingSourceMarker[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComponentOutputSource } from '../Binding/bindingSources';
|
|
2
|
+
export declare const componentSourcePrefix = "component.";
|
|
3
|
+
export interface CommandInputSource {
|
|
4
|
+
path: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function componentSourcePath(componentId: string, outputPath: string): string;
|
|
8
|
+
export declare function commandInputSources(dataContext: readonly string[], outputs: readonly ComponentOutputSource[], ownComponentId: string): CommandInputSource[];
|
|
9
|
+
export declare function componentOfSource(source: string): string | undefined;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import type { CommandInputSource } from '../Actions/commandInputSources';
|
|
1
2
|
import type { ActionModel } from '../Actions/ActionModel';
|
|
2
3
|
import type { StateChangeSlice } from '../Actions/StateChangeSlice';
|
|
3
4
|
import type { ScreenEditorStrings } from './ScreenEditorStrings';
|
|
4
5
|
export interface ActionEditorProps {
|
|
5
6
|
action?: ActionModel;
|
|
6
7
|
slices: readonly StateChangeSlice[];
|
|
7
|
-
sources: readonly
|
|
8
|
+
sources: readonly CommandInputSource[];
|
|
8
9
|
strings: ScreenEditorStrings;
|
|
9
10
|
disabled: boolean;
|
|
10
11
|
suggestSource: (inputName: string) => string | undefined;
|
|
@@ -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 DesignTimePropertyEditorsSectionProps {
|
|
6
|
+
component: ExternalComponent;
|
|
7
|
+
descriptor: ComponentDescriptor;
|
|
8
|
+
properties: readonly InspectedProperty[];
|
|
9
|
+
controller: ScreenEditorController;
|
|
10
|
+
environment: ScreenEditorEnvironment;
|
|
11
|
+
strings: ScreenEditorStrings;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const DesignTimePropertyEditorsSection: ({ component, descriptor, properties, controller, environment, strings, disabled }: DesignTimePropertyEditorsSectionProps) => import("react").JSX.Element | null;
|
|
@@ -8,7 +8,4 @@ export * from './CommandFormColumn';
|
|
|
8
8
|
export * from './CommandFormConfiguration';
|
|
9
9
|
export * from './CommandFormInput';
|
|
10
10
|
export * from './CommandFormMode';
|
|
11
|
-
export * from './DesignTimeActionExecutionContext';
|
|
12
|
-
export * from './DesignTimeActionResult';
|
|
13
11
|
export * from './bindingSourceChoices';
|
|
14
|
-
export * from './runDesignTimeAction';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type DescriptorCatalog, type EffectiveIconCatalog, type PackageCatalog } from '@cratis/scene.engine';
|
|
2
2
|
import type { ComponentDescriptor, UiProfile } from '@cratis/scene.model';
|
|
3
|
-
import { type ComponentRegistry, type IconAdapterRegistry, type ScenePackageBundle } from '@cratis/scene.react';
|
|
3
|
+
import { type ComponentRegistry, type DesignTimeHost, type IconAdapterRegistry, type ScenePackageBundle } from '@cratis/scene.react';
|
|
4
4
|
import type { ScreenEditorAppearance } from './ScreenEditorAppearance';
|
|
5
5
|
export interface ScreenEditorRuntime {
|
|
6
6
|
id: number;
|
|
@@ -13,6 +13,8 @@ export interface ScreenEditorRuntime {
|
|
|
13
13
|
appearance?: ScreenEditorAppearance;
|
|
14
14
|
icons: EffectiveIconCatalog;
|
|
15
15
|
iconAdapters: IconAdapterRegistry;
|
|
16
|
+
designTime: DesignTimeHost;
|
|
17
|
+
packageDescriptorOf: (descriptor: ComponentDescriptor) => ComponentDescriptor;
|
|
16
18
|
isKnownComponent: (bareName: string) => boolean;
|
|
17
19
|
legacyTypeOf: (componentName: string) => string | undefined;
|
|
18
20
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const studioEditorKinds: readonly string[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
export interface BindingSourceMarker {
|
|
3
|
+
componentId: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export interface BindingSourceMarkersProps {
|
|
7
|
+
surface: RefObject<HTMLDivElement | null>;
|
|
8
|
+
markers: readonly BindingSourceMarker[];
|
|
9
|
+
}
|
|
10
|
+
export declare const BindingSourceMarkers: ({ surface, markers }: BindingSourceMarkersProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ScreenEditorController } from '../Host/ScreenEditorController';
|
|
2
|
+
import type { ScreenEditorEnvironment } from '../Host/ScreenEditorHost';
|
|
3
|
+
import type { BindingSourceMarker } from './BindingSourceMarkers';
|
|
4
|
+
export declare function useSelectedBindingMarkers(controller: ScreenEditorController, environment: ScreenEditorEnvironment): BindingSourceMarker[];
|