@cratis/event-models 0.370.8 → 0.371.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.
@@ -0,0 +1,7 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { UiThumbnailProps } from '../Rows/UserExperience/UiThumbnailProps';
3
+ export interface BoardScreenThumbnail extends UiThumbnailProps {
4
+ sliceId: string;
5
+ actorId: string;
6
+ fallback: ReactNode;
7
+ }
@@ -0,0 +1,5 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { BoardScreenThumbnail } from './BoardScreenThumbnail';
3
+ export interface BoardScreens {
4
+ renderThumbnail?: (thumbnail: BoardScreenThumbnail) => ReactNode;
5
+ }
@@ -0,0 +1,2 @@
1
+ import type { BoardScreens } from './BoardScreens';
2
+ export declare const BoardScreensContext: import("react").Context<BoardScreens>;
@@ -4,6 +4,7 @@ import type { SliceLink } from '../Links';
4
4
  import type { EventModelBoardCanvas, EventModelBoardEditor } from './EventModelBoardEditor';
5
5
  import type { EventModelBoardHandle } from './EventModelBoardHandle';
6
6
  import type { BoardChanges } from './BoardChanges';
7
+ import type { BoardScreens } from './BoardScreens';
7
8
  import type { BoardToolbarPlacement } from './BoardToolbarPlacement';
8
9
  import type { BoardFocus } from './BoardFocus';
9
10
  export interface EventModelBoardProps {
@@ -20,6 +21,7 @@ export interface EventModelBoardProps {
20
21
  initialFocus?: BoardFocus;
21
22
  handle?: Ref<EventModelBoardHandle>;
22
23
  sliceLinks?: readonly SliceLink[];
24
+ screens?: BoardScreens;
23
25
  }
24
26
  export declare const leftToolbarInset = 72;
25
27
  export declare const EventModelBoard: ({ showLogo, showViewOptions, toolbar, toolbarPlacement, handle, editor, readOnly, document, ...props }: EventModelBoardProps) => import("react").JSX.Element;
@@ -15,6 +15,10 @@ export * from './BoardProvider';
15
15
  export * from './BoardChange';
16
16
  export * from './BoardChanges';
17
17
  export * from './BoardMarkers';
18
+ export * from './BoardScreens';
19
+ export * from './BoardScreenThumbnail';
20
+ export * from './BoardScreensContext';
21
+ export * from './useBoardScreens';
18
22
  export * from './BoardFocus';
19
23
  export * from './BoardScrollOptions';
20
24
  export * from './useBoardChange';
@@ -0,0 +1,2 @@
1
+ import type { BoardScreens } from './BoardScreens';
2
+ export declare const useBoardScreens: () => BoardScreens;