@dreamboard-games/sdk 0.4.0-alpha.4 → 0.4.0-alpha.6
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/REFERENCE.md +1089 -123
- package/dist/{HandView-x8MhbhFl.d.ts → HandView-Bi2lxzQP.d.ts} +3 -3
- package/dist/{ThemeProvider-DRalAWzY.d.ts → ThemeProvider-CElaL2ik.d.ts} +1 -1
- package/dist/authoring/index.js +2 -2
- package/dist/browser-interaction.js +1 -1
- package/dist/{chunk-E3X552YM.js → chunk-2TRZSZGD.js} +1061 -425
- package/dist/chunk-2TRZSZGD.js.map +1 -0
- package/dist/{chunk-CP35NPPY.js → chunk-52DH7VQF.js} +61 -7
- package/dist/chunk-52DH7VQF.js.map +1 -0
- package/dist/{chunk-N6ZDIMRB.js → chunk-B2YBS3SG.js} +1 -1
- package/dist/chunk-B2YBS3SG.js.map +1 -0
- package/dist/{chunk-LKJLAGND.js → chunk-DDST4U2P.js} +2 -2
- package/dist/{chunk-SUMZ5OEH.js → chunk-HK3WN4U7.js} +2 -2
- package/dist/{chunk-SUMZ5OEH.js.map → chunk-HK3WN4U7.js.map} +1 -1
- package/dist/{chunk-QOFFRHZR.js → chunk-OV6JC2BM.js} +64 -28
- package/dist/chunk-OV6JC2BM.js.map +1 -0
- package/dist/{chunk-K5ZRJTZZ.js → chunk-PAPIAMYX.js} +6 -3
- package/dist/chunk-PAPIAMYX.js.map +1 -0
- package/dist/{chunk-TTISZQNI.js → chunk-SOBNI363.js} +39 -28
- package/dist/chunk-SOBNI363.js.map +1 -0
- package/dist/{chunk-Y6Y2YABD.js → chunk-TGMXBRKY.js} +22 -6
- package/dist/chunk-TGMXBRKY.js.map +1 -0
- package/dist/{chunk-XZ667T4K.js → chunk-UC2UXAC6.js} +2 -2
- package/dist/{chunk-O6M6PN4E.js → chunk-UUQNOGZV.js} +94 -53
- package/dist/chunk-UUQNOGZV.js.map +1 -0
- package/dist/{chunk-WUIVY2KE.js → chunk-WHR5UW3F.js} +1 -1
- package/dist/chunk-WHR5UW3F.js.map +1 -0
- package/dist/codegen.d.ts +13 -0
- package/dist/codegen.js +1 -1
- package/dist/{components-B7hFaEn_.d.ts → components-BTwSIjXj.d.ts} +77 -206
- package/dist/{hex-board-view-BFlWDb9k.d.ts → hex-board-view-aKkblDp6.d.ts} +180 -1
- package/dist/{index-gjxQichK.d.ts → index-CFTjJIXd.d.ts} +5 -4
- package/dist/{index.d-BL3bT5lt.d.ts → index.d-DMASeF6M.d.ts} +294 -27
- package/dist/index.js +2 -2
- package/dist/package-set.d.ts +2 -2
- package/dist/package-set.js +2 -2
- package/dist/{runtime-api-BJharVaj.d.ts → plugin-state-BRH3UiUp.d.ts} +19 -3
- package/dist/{protocol-BP193lva.d.ts → protocol-835hEGne.d.ts} +42 -1
- package/dist/reducer/advanced.d.ts +4 -2
- package/dist/reducer/advanced.js +1 -1
- package/dist/reducer-contract.d.ts +1 -1
- package/dist/reducer-contract.js +2 -2
- package/dist/reducer.d.ts +10 -4
- package/dist/reducer.js +317 -15
- package/dist/reducer.js.map +1 -1
- package/dist/runtime/primitives.d.ts +32 -7
- package/dist/runtime/primitives.js +9 -5
- package/dist/runtime/runtime-api.d.ts +1 -1
- package/dist/runtime/workspace-contract.d.ts +7 -7
- package/dist/runtime/workspace-contract.js +6 -6
- package/dist/runtime-Dkfm1x2r.d.ts +1670 -0
- package/dist/runtime.d.ts +10 -9
- package/dist/runtime.js +240 -16
- package/dist/runtime.js.map +1 -1
- package/dist/testing.d.ts +78 -15
- package/dist/testing.js +69 -8
- package/dist/testing.js.map +1 -1
- package/dist/{types-CYeN0wLK.d.ts → types-aI4V9CWe.d.ts} +5 -5
- package/dist/types.d.ts +13 -0
- package/dist/ui/components.d.ts +6 -3
- package/dist/ui/components.js +15 -3
- package/dist/ui/plugin-styles.css +2 -2
- package/dist/{ui-contract-B4NjRlvC.d.ts → ui-contract-Ue6SywvO.d.ts} +24 -10
- package/dist/ui.d.ts +9 -6
- package/dist/ui.js +16 -4
- package/dist/views-32rSsfeU.d.ts +1559 -0
- package/package.json +21 -20
- package/dist/chunk-CP35NPPY.js.map +0 -1
- package/dist/chunk-E3X552YM.js.map +0 -1
- package/dist/chunk-K5ZRJTZZ.js.map +0 -1
- package/dist/chunk-N6ZDIMRB.js.map +0 -1
- package/dist/chunk-O6M6PN4E.js.map +0 -1
- package/dist/chunk-QOFFRHZR.js.map +0 -1
- package/dist/chunk-TTISZQNI.js.map +0 -1
- package/dist/chunk-WUIVY2KE.js.map +0 -1
- package/dist/chunk-Y6Y2YABD.js.map +0 -1
- package/dist/views-fn2RuXOx.d.ts +0 -3168
- /package/dist/{chunk-LKJLAGND.js.map → chunk-DDST4U2P.js.map} +0 -0
- /package/dist/{chunk-XZ667T4K.js.map → chunk-UC2UXAC6.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { w, p, M, H, y } from './protocol-835hEGne.js';
|
|
2
2
|
|
|
3
3
|
interface RuntimeClock {
|
|
4
4
|
now(): number;
|
|
@@ -8,14 +8,14 @@ interface RuntimeIdFactory {
|
|
|
8
8
|
}
|
|
9
9
|
interface PluginTransport {
|
|
10
10
|
start(onMessage: (message: H) => void): () => void;
|
|
11
|
-
send(message:
|
|
11
|
+
send(message: y): void;
|
|
12
12
|
}
|
|
13
13
|
interface PluginRuntimeClient {
|
|
14
|
-
getSession():
|
|
14
|
+
getSession(): w | null;
|
|
15
15
|
subscribeSession(listener: () => void): () => void;
|
|
16
|
-
getFrame():
|
|
16
|
+
getFrame(): p | null;
|
|
17
17
|
subscribeFrame(listener: () => void): () => void;
|
|
18
|
-
validateInteraction(interactionId: string, params: unknown): Promise<
|
|
18
|
+
validateInteraction(interactionId: string, params: unknown): Promise<M>;
|
|
19
19
|
submitInteraction(interactionId: string, params: unknown): Promise<void>;
|
|
20
20
|
disconnect(): void;
|
|
21
21
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -813,6 +813,15 @@ type SetupOptionSpec = {
|
|
|
813
813
|
description?: string;
|
|
814
814
|
choices?: Array<SetupOptionChoiceSpec>;
|
|
815
815
|
};
|
|
816
|
+
/**
|
|
817
|
+
* One player-facing setup guidance step. Completion state remains game-owned
|
|
818
|
+
* view data; the framework only preserves authored copy.
|
|
819
|
+
*/
|
|
820
|
+
type SetupGuidanceStep = {
|
|
821
|
+
id: string;
|
|
822
|
+
label: string;
|
|
823
|
+
description?: string;
|
|
824
|
+
};
|
|
816
825
|
/**
|
|
817
826
|
* Reducer-consumed authored setup profile, recipe, or loadout metadata
|
|
818
827
|
*/
|
|
@@ -826,6 +835,10 @@ type SetupProfileSpec = {
|
|
|
826
835
|
optionValues?: {
|
|
827
836
|
[key: string]: string;
|
|
828
837
|
};
|
|
838
|
+
guidance?: {
|
|
839
|
+
summary?: string;
|
|
840
|
+
steps?: ReadonlyArray<SetupGuidanceStep>;
|
|
841
|
+
};
|
|
829
842
|
};
|
|
830
843
|
/**
|
|
831
844
|
* Authoritative topology manifest for reducer-native games
|
package/dist/ui/components.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export { A as ActionButton, a as ActionButtonProps, b as ActionGroup, c as ActionGroupProps, d as
|
|
2
|
-
export { H as HandInteractionPolicy, a as HandLayoutKind, b as HandLayoutPolicy, c as HandView, d as HandViewProps } from '../HandView-
|
|
1
|
+
export { A as ActionButton, a as ActionButtonProps, b as ActionGroup, c as ActionGroupProps, d as ActionHelp, e as ActionHelpProps, f as ActionPanel, g as ActionPanelProps, C as CardDragSurface, i as CardDragSurfaceContextValue, j as CardDragSurfaceController, k as CardDragSurfaceProps, l as CardDropTargetView, m as CardDropTargetViewProps, n as CardFace, o as CardFaceProps, r as ChromeSuppressionProvider, s as CostDisplay, t as CostDisplayProps, D as DefaultEmptySlot, u as DefaultEmptySlotProps, v as DefaultNetworkEdge, w as DefaultNetworkEdgeProps, x as DefaultNetworkNode, y as DefaultNetworkNodeProps, z as DefaultNetworkPiece, E as DefaultNetworkPieceProps, F as DefaultSlotItem, G as DefaultSlotItemProps, H as DefaultSlotOccupant, I as DefaultSlotOccupantProps, J as DefaultTrackConnection, K as DefaultTrackConnectionProps, L as DefaultTrackJump, M as DefaultTrackJumpProps, N as DefaultTrackPiece, O as DefaultTrackPieceProps, P as DefaultTrackSpace, Q as DefaultTrackSpaceProps, R as DefaultZone, S as DefaultZonePiece, T as DefaultZonePieceProps, U as DefaultZonePieces, V as DefaultZonePiecesProps, W as DefaultZoneProps, X as Dialog, Y as DialogClose, Z as DialogContent, _ as DialogDescription, $ as DialogFooter, a0 as DialogHeader, a1 as DialogOverlay, a2 as DialogPortal, a3 as DialogTitle, a4 as DialogTrigger, a5 as DiceRoller, a6 as DiceRollerProps, a7 as DragPhase, a8 as Drawer, a9 as DrawerClose, aa as DrawerContent, ab as DrawerDescription, ac as DrawerFooter, ad as DrawerHeader, ae as DrawerOverlay, af as DrawerPortal, ag as DrawerTitle, ah as DrawerTrigger, ai as ErrorBoundary, aj as ErrorBoundaryProps, ak as GameEventLog, al as GameEventLogProps, am as GameSkeleton, an as GameSkeletonProps, ao as GuidanceAction, ap as GuidancePanel, aq as GuidancePanelProps, ar as GuidancePhase, as as GuidanceSetupStep, at as Hand, au as HandDock, av as HandDockMode, aw as HandDockPlacement, ax as HandDockPresentation, ay as HandDockProps, az as HandDockToggleContext, aB as HandProps, aC as Input, aD as Label, aE as MoreActions, aF as MoreActionsProps, aG as NetworkEdge, aH as NetworkGraph, aI as NetworkGraphProps, aJ as NetworkNode, aK as NetworkPiece, aL as OutcomeDialog, aM as OutcomeDialogProps, aN as Panel, aO as PanelActions, aP as PanelBody, aQ as PanelDescription, aR as PanelDescriptionProps, aS as PanelHeader, aT as PanelPartProps, aU as PanelRoot, aV as PanelRootProps, aW as PanelTitle, aX as PanelTitleProps, aY as PanelTone, aZ as PhaseIndicator, a_ as PhaseIndicatorProps, a$ as PlayArea, b0 as PlayAreaProps, b1 as PrimaryActionAttention, b2 as PrimaryActionButton, b3 as PrimaryActionButtonProps, b4 as PrimaryButton, b5 as PrimaryButtonProps, b6 as ResourceDefinition, b7 as Select, b8 as SelectContent, b9 as SelectItem, ba as SelectTrigger, bb as SetupChecklist, bc as SetupChecklistProps, bd as SetupGuidance, be as SlotDefinition, bf as SlotOccupant, bg as SlotSystem, bh as SlotSystemProps, bi as StagingZone, bj as StagingZoneProps, bk as StandingsTable, bl as StandingsTableProps, bm as SystemActionSummary, bn as SystemActionSummaryProps, bo as ThemedButton, bp as ThemedButtonProps, bq as Toast, br as ToastActions, bs as ToastActionsProps, bt as ToastActionsValue, bu as ToastNotification, bv as ToastProvider, bw as ToastType, bx as TrackBoard, by as TrackBoardProps, bz as TrackPiece, bA as TrackSpace, bD as ZoneDefinition, bE as ZoneHighlightType, bF as ZoneMap, bG as ZoneMapProps, bH as ZonePiece, bI as ZoneShape, bP as useCardDragSurface, bQ as useChromeSuppression } from '../components-BTwSIjXj.js';
|
|
2
|
+
export { H as HandInteractionPolicy, a as HandLayoutKind, b as HandLayoutPolicy, c as HandView, d as HandViewProps } from '../HandView-Bi2lxzQP.js';
|
|
3
3
|
export { B as BoundResourceCounterRootProps, H as HandRole, M as MobileHandRegistration, a as MobileHandTrayProvider, R as ResourceCounter, b as ResourceCounterComponents, c as ResourceCounterCount, d as ResourceCounterIcon, e as ResourceCounterItem, f as ResourceCounterItemState, g as ResourceCounterLabel, h as ResourceCounterPartProps, i as ResourceCounterProps, j as ResourceCounterRoot, k as ResourceCounterRootProps, l as ResourceDisplayConfig, m as ResourceIconProps, n as createResourceCounter, u as useOverlayInsets, o as useRegisterBottomOverlayInset, p as useRegisterMobileHand } from '../ResourceCounter-BFxJknqp.js';
|
|
4
|
-
export { D as
|
|
4
|
+
export { D as DefaultChessPiece, i as DefaultChessPieceProps, j as DefaultGridCell, k as DefaultGridCellProps, l as DefaultGridPiece, m as DefaultGridPieceProps, n as DefaultHexEdge, o as DefaultHexEdgeProps, p as DefaultHexTile, q as DefaultHexTileProps, r as DefaultHexVertex, s as DefaultHexVertexProps, E as EdgePosition, z as HexBoardView, I as HexBoardViewTile, J as HexGrid, K as HexGridBoardProps, L as HexGridProps, M as HexOrientation, N as HexTileGeometry, Q as InteractiveHexEdge, R as InteractiveHexVertex, S as InteractiveSquareEdge, T as InteractiveSquareVertex, U as InteractiveTargetLayer, V as InteractiveTargetRenderState, aa as SquareEdgePosition, ab as SquareGrid, ac as SquareGridBoardProps, ad as SquareGridProps, ae as SquareVertexPosition, ak as createHexBoardView, am as hexUtils, aq as toAlgebraic, ar as toNumeric } from '../hex-board-view-aKkblDp6.js';
|
|
5
5
|
export { k as HexEdgeState, l as HexTileState, m as HexVertexState, y as SquareCellState, z as SquareEdgeState, A as SquarePieceState, F as SquareVertexState } from '../player-state-Cqpyeql0.js';
|
|
6
6
|
export { CardCollection, ViewCard, ViewSlotOccupant } from '../types.js';
|
|
7
|
+
export { P as ProjectedGameEvent, S as SystemActionEvent } from '../plugin-state-BRH3UiUp.js';
|
|
7
8
|
import 'react/jsx-runtime';
|
|
8
9
|
import 'react';
|
|
9
10
|
import 'framer-motion';
|
|
@@ -11,4 +12,6 @@ import 'vaul';
|
|
|
11
12
|
import '@radix-ui/react-dialog';
|
|
12
13
|
import '@radix-ui/react-label';
|
|
13
14
|
import '@radix-ui/react-select';
|
|
15
|
+
import '../runtime-Dkfm1x2r.js';
|
|
16
|
+
import 'zod';
|
|
14
17
|
import '../primitive-props-BNHDkgd7.js';
|
package/dist/ui/components.js
CHANGED
|
@@ -2,6 +2,7 @@ import "../chunk-T3ZKNUZ7.js";
|
|
|
2
2
|
import {
|
|
3
3
|
ActionButton,
|
|
4
4
|
ActionGroup,
|
|
5
|
+
ActionHelp,
|
|
5
6
|
ActionPanel,
|
|
6
7
|
CardDragSurface,
|
|
7
8
|
CardDropTargetView,
|
|
@@ -49,8 +50,9 @@ import {
|
|
|
49
50
|
DrawerTitle,
|
|
50
51
|
DrawerTrigger,
|
|
51
52
|
ErrorBoundary,
|
|
52
|
-
|
|
53
|
+
GameEventLog,
|
|
53
54
|
GameSkeleton,
|
|
55
|
+
GuidancePanel,
|
|
54
56
|
Hand,
|
|
55
57
|
HandDock,
|
|
56
58
|
HandView,
|
|
@@ -60,6 +62,7 @@ import {
|
|
|
60
62
|
MobileHandTrayProvider,
|
|
61
63
|
MoreActions,
|
|
62
64
|
NetworkGraph,
|
|
65
|
+
OutcomeDialog,
|
|
63
66
|
Panel,
|
|
64
67
|
PanelActions,
|
|
65
68
|
PanelBody,
|
|
@@ -81,9 +84,12 @@ import {
|
|
|
81
84
|
SelectContent,
|
|
82
85
|
SelectItem,
|
|
83
86
|
SelectTrigger,
|
|
87
|
+
SetupChecklist,
|
|
84
88
|
SlotSystem,
|
|
85
89
|
SquareGrid,
|
|
86
90
|
StagingZone,
|
|
91
|
+
StandingsTable,
|
|
92
|
+
SystemActionSummary,
|
|
87
93
|
ThemedButton,
|
|
88
94
|
Toast,
|
|
89
95
|
ToastActions,
|
|
@@ -100,12 +106,13 @@ import {
|
|
|
100
106
|
useOverlayInsets,
|
|
101
107
|
useRegisterBottomOverlayInset,
|
|
102
108
|
useRegisterMobileHand
|
|
103
|
-
} from "../chunk-
|
|
109
|
+
} from "../chunk-2TRZSZGD.js";
|
|
104
110
|
import "../chunk-VDXOF4FW.js";
|
|
105
111
|
import "../chunk-PZ5AY32C.js";
|
|
106
112
|
export {
|
|
107
113
|
ActionButton,
|
|
108
114
|
ActionGroup,
|
|
115
|
+
ActionHelp,
|
|
109
116
|
ActionPanel,
|
|
110
117
|
CardDragSurface,
|
|
111
118
|
CardDropTargetView,
|
|
@@ -153,8 +160,9 @@ export {
|
|
|
153
160
|
DrawerTitle,
|
|
154
161
|
DrawerTrigger,
|
|
155
162
|
ErrorBoundary,
|
|
156
|
-
|
|
163
|
+
GameEventLog,
|
|
157
164
|
GameSkeleton,
|
|
165
|
+
GuidancePanel,
|
|
158
166
|
Hand,
|
|
159
167
|
HandDock,
|
|
160
168
|
HandView,
|
|
@@ -164,6 +172,7 @@ export {
|
|
|
164
172
|
MobileHandTrayProvider,
|
|
165
173
|
MoreActions,
|
|
166
174
|
NetworkGraph,
|
|
175
|
+
OutcomeDialog,
|
|
167
176
|
Panel,
|
|
168
177
|
PanelActions,
|
|
169
178
|
PanelBody,
|
|
@@ -185,9 +194,12 @@ export {
|
|
|
185
194
|
SelectContent,
|
|
186
195
|
SelectItem,
|
|
187
196
|
SelectTrigger,
|
|
197
|
+
SetupChecklist,
|
|
188
198
|
SlotSystem,
|
|
189
199
|
SquareGrid,
|
|
190
200
|
StagingZone,
|
|
201
|
+
StandingsTable,
|
|
202
|
+
SystemActionSummary,
|
|
191
203
|
ThemedButton,
|
|
192
204
|
Toast,
|
|
193
205
|
ToastActions,
|