@cratis/event-models 0.114.1 → 0.115.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/Rows/UserExperience/UiCell.d.ts +7 -2
- package/dist/Rows/UserExperience/UiThumbnailProps.d.ts +13 -0
- package/dist/Rows/UserExperience/index.d.ts +1 -0
- package/dist/index.js +163 -156
- package/dist/index.js.map +1 -1
- package/dist/screen-editor/ScreenEditor/Document/canvasMoveEdits.d.ts +7 -2
- package/dist/screen-editor/ScreenEditor/Document/placeOnCanvas.d.ts +8 -2
- package/dist/screen-editor/ScreenEditor/Host/ScreenEditorController.d.ts +7 -0
- package/dist/screen-editor/ScreenEditor/Host/ScreenEditorOverlay.d.ts +3 -0
- package/dist/screen-editor/ScreenEditor/Play/PlayScreen.d.ts +11 -0
- package/dist/screen-editor/ScreenEditor/Play/composePlayScreen.d.ts +7 -0
- package/dist/screen-editor/ScreenEditor/Runtime/ScreenEditorAppearance.d.ts +4 -0
- package/dist/screen-editor/ScreenEditor/Runtime/profileTheme.d.ts +1 -1
- package/dist/screen-editor/ScreenEditor/Runtime/screenEditorRuntime.d.ts +3 -1
- package/dist/screen-editor/ScreenEditor/Runtime/screenEditorRuntimeForProfile.d.ts +2 -1
- package/dist/screen-editor/ScreenEditor/Surface/designTimePointer.d.ts +9 -0
- package/dist/screen-editor/ScreenEditor/Surface/useDesignTimePointer.d.ts +2 -0
- package/dist/screen-editor/ScreenEditor/Thumbnail/ScreenThumbnail.d.ts +15 -0
- package/dist/screen-editor/ScreenEditor/Thumbnail/miniatureRegistry.d.ts +3 -0
- package/dist/screen-editor/ScreenEditor/Thumbnail/readThumbnailDocument.d.ts +2 -0
- package/dist/screen-editor/ScreenEditor/Thumbnail/thumbnailGeometry.d.ts +11 -0
- package/dist/screen-editor/ScreenEditor/Thumbnail/useIsNearViewport.d.ts +2 -0
- package/dist/screen-editor/ScreenEditor/Viewport/windowSizeMemory.d.ts +12 -0
- package/dist/screen-editor/ScreenEditor/Viewport/windowSizing.d.ts +10 -0
- package/dist/screen-editor/ScreenEditor/index.d.ts +8 -0
- package/dist/screen-editor/index.js +2074 -1740
- package/dist/screen-editor/screen-editor.css +1 -1
- package/package.json +11 -11
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
2
|
import { type PrototypeLayout } from '@cratis/scene/Prototypes';
|
|
3
3
|
import type { UIElement, IComponent } from '@cratis/scene';
|
|
4
4
|
import { type CellConnectors } from '../../Connections';
|
|
5
|
+
import type { UiThumbnailProps } from './UiThumbnailProps';
|
|
5
6
|
export interface UiCellProps {
|
|
6
7
|
elements: readonly (UIElement | IComponent)[];
|
|
7
8
|
windowSize?: {
|
|
@@ -13,5 +14,9 @@ export interface UiCellProps {
|
|
|
13
14
|
conn: CellConnectors;
|
|
14
15
|
rowHeight: number;
|
|
15
16
|
actorId: string;
|
|
17
|
+
hasScreen?: boolean;
|
|
18
|
+
renderThumbnail?: (thumbnail: UiThumbnailProps & {
|
|
19
|
+
fallback: ReactNode;
|
|
20
|
+
}) => ReactNode;
|
|
16
21
|
}
|
|
17
|
-
export declare const UiCell: ({ elements, windowSize, layout, collapsed, conn, rowHeight, actorId }: UiCellProps) => React.JSX.Element;
|
|
22
|
+
export declare const UiCell: ({ elements, windowSize, layout, collapsed, conn, rowHeight, actorId, hasScreen, renderThumbnail }: UiCellProps) => React.JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { MouseEvent } from 'react';
|
|
2
|
+
import type { IComponent, UIElement } from '@cratis/scene';
|
|
3
|
+
import type { PrototypeLayout } from '@cratis/scene/Prototypes';
|
|
4
|
+
export interface UiThumbnailProps {
|
|
5
|
+
elements: readonly (UIElement | IComponent)[];
|
|
6
|
+
windowSize?: {
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
};
|
|
10
|
+
layout?: PrototypeLayout;
|
|
11
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
12
|
+
openTitle?: string;
|
|
13
|
+
}
|