@dreamboard-games/sdk 0.5.0-alpha.2 → 0.5.0-alpha.4

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.
Files changed (151) hide show
  1. package/README.md +186 -45
  2. package/dist/board-target-B0QG6OYx.d.ts +8 -0
  3. package/dist/chunk-3JXUL4VN.js +139 -0
  4. package/dist/chunk-3JXUL4VN.js.map +1 -0
  5. package/dist/{chunk-S2JEDVWH.js → chunk-C77SYIVT.js} +6102 -6505
  6. package/dist/chunk-C77SYIVT.js.map +1 -0
  7. package/dist/chunk-DMFVAZI2.js +16 -0
  8. package/dist/chunk-DMFVAZI2.js.map +1 -0
  9. package/dist/chunk-OOFMBCFF.js +1338 -0
  10. package/dist/chunk-OOFMBCFF.js.map +1 -0
  11. package/dist/chunk-UG2Q4NLG.js +590 -0
  12. package/dist/chunk-UG2Q4NLG.js.map +1 -0
  13. package/dist/chunk-XU6WJW6K.js +847 -0
  14. package/dist/chunk-XU6WJW6K.js.map +1 -0
  15. package/dist/diagnostics-B8d5aLad.d.ts +65 -0
  16. package/dist/extract-gVKcB8Og.d.ts +4736 -0
  17. package/dist/index.d.ts +3782 -1
  18. package/dist/index.js +1096 -6
  19. package/dist/index.js.map +1 -1
  20. package/dist/model-vdpLHrxh.d.ts +432 -0
  21. package/dist/react.d.ts +60 -0
  22. package/dist/react.js +208 -0
  23. package/dist/react.js.map +1 -0
  24. package/dist/reducer.d.ts +1244 -78
  25. package/dist/reducer.js +4204 -121
  26. package/dist/reducer.js.map +1 -1
  27. package/dist/testing.d.ts +520 -564
  28. package/dist/testing.js +2451 -915
  29. package/dist/testing.js.map +1 -1
  30. package/dist/types-Bj5ZLTUV.d.ts +114 -0
  31. package/package.json +40 -142
  32. package/dist/HandView-Bi2lxzQP.d.ts +0 -79
  33. package/dist/ResourceCounter-BFxJknqp.d.ts +0 -98
  34. package/dist/ThemeProvider-CElaL2ik.d.ts +0 -99
  35. package/dist/attributes-DbvyMbXw.d.ts +0 -68
  36. package/dist/browser-interaction.d.ts +0 -910
  37. package/dist/browser-interaction.js +0 -119
  38. package/dist/browser-interaction.js.map +0 -1
  39. package/dist/chunk-32PFKDV7.js +0 -11705
  40. package/dist/chunk-32PFKDV7.js.map +0 -1
  41. package/dist/chunk-3BAD4VC2.js +0 -263
  42. package/dist/chunk-3BAD4VC2.js.map +0 -1
  43. package/dist/chunk-3SKDNDPG.js +0 -104
  44. package/dist/chunk-3SKDNDPG.js.map +0 -1
  45. package/dist/chunk-5YV2WHJ4.js +0 -25
  46. package/dist/chunk-5YV2WHJ4.js.map +0 -1
  47. package/dist/chunk-ANRB4XKA.js +0 -90
  48. package/dist/chunk-ANRB4XKA.js.map +0 -1
  49. package/dist/chunk-BI4G3PM2.js +0 -1864
  50. package/dist/chunk-BI4G3PM2.js.map +0 -1
  51. package/dist/chunk-EVCLTY4Q.js +0 -935
  52. package/dist/chunk-EVCLTY4Q.js.map +0 -1
  53. package/dist/chunk-GDPKTBUR.js +0 -564
  54. package/dist/chunk-GDPKTBUR.js.map +0 -1
  55. package/dist/chunk-H6VDGFL5.js +0 -2903
  56. package/dist/chunk-H6VDGFL5.js.map +0 -1
  57. package/dist/chunk-LR3ZTWQF.js +0 -5960
  58. package/dist/chunk-LR3ZTWQF.js.map +0 -1
  59. package/dist/chunk-PF7L4BMG.js +0 -117
  60. package/dist/chunk-PF7L4BMG.js.map +0 -1
  61. package/dist/chunk-PN5O6GG2.js +0 -32
  62. package/dist/chunk-PN5O6GG2.js.map +0 -1
  63. package/dist/chunk-PZ5AY32C.js +0 -10
  64. package/dist/chunk-PZ5AY32C.js.map +0 -1
  65. package/dist/chunk-S2JEDVWH.js.map +0 -1
  66. package/dist/chunk-T3ZKNUZ7.js +0 -1
  67. package/dist/chunk-T3ZKNUZ7.js.map +0 -1
  68. package/dist/chunk-UGH54WZ2.js +0 -223
  69. package/dist/chunk-UGH54WZ2.js.map +0 -1
  70. package/dist/chunk-VCDWP5VL.js +0 -746
  71. package/dist/chunk-VCDWP5VL.js.map +0 -1
  72. package/dist/chunk-VDXOF4FW.js +0 -69
  73. package/dist/chunk-VDXOF4FW.js.map +0 -1
  74. package/dist/chunk-WHR5UW3F.js +0 -1988
  75. package/dist/chunk-WHR5UW3F.js.map +0 -1
  76. package/dist/chunk-Y75CFE77.js +0 -17
  77. package/dist/chunk-Y75CFE77.js.map +0 -1
  78. package/dist/chunk-Z7QCREWI.js +0 -3435
  79. package/dist/chunk-Z7QCREWI.js.map +0 -1
  80. package/dist/chunk-ZZGN2ATS.js +0 -1941
  81. package/dist/chunk-ZZGN2ATS.js.map +0 -1
  82. package/dist/components-gAbIz7hK.d.ts +0 -1284
  83. package/dist/definitions-BgmV_GhC.d.ts +0 -300
  84. package/dist/diagnostics-DIi3ina7.d.ts +0 -50
  85. package/dist/digest.d.ts +0 -8
  86. package/dist/game-CsZScpcn.d.ts +0 -763
  87. package/dist/hex-board-view-aKkblDp6.d.ts +0 -1228
  88. package/dist/index-CcT9Q7N7.d.ts +0 -193
  89. package/dist/index.d-DjzoK7zn.d.ts +0 -2101
  90. package/dist/package-set.d.ts +0 -13
  91. package/dist/package-set.js +0 -12
  92. package/dist/package-set.js.map +0 -1
  93. package/dist/player-state-Cqpyeql0.d.ts +0 -371
  94. package/dist/plugin-runtime-contract.d.ts +0 -17
  95. package/dist/plugin-runtime-contract.js +0 -92
  96. package/dist/plugin-runtime-contract.js.map +0 -1
  97. package/dist/primitive-props-BNHDkgd7.d.ts +0 -16
  98. package/dist/protocol-dYgafTYY.d.ts +0 -314
  99. package/dist/reducer/advanced.d.ts +0 -82
  100. package/dist/reducer/advanced.js +0 -51
  101. package/dist/reducer/advanced.js.map +0 -1
  102. package/dist/reducer-contract.d.ts +0 -11
  103. package/dist/reducer-contract.js +0 -16
  104. package/dist/reducer-contract.js.map +0 -1
  105. package/dist/reference-games/index.d.ts +0 -31
  106. package/dist/reference-games/index.js +0 -48
  107. package/dist/reference-games/index.js.map +0 -1
  108. package/dist/runtime/primitives.d.ts +0 -250
  109. package/dist/runtime/primitives.js +0 -189
  110. package/dist/runtime/primitives.js.map +0 -1
  111. package/dist/runtime/runtime-api.d.ts +0 -2
  112. package/dist/runtime/runtime-api.js +0 -1
  113. package/dist/runtime/runtime-api.js.map +0 -1
  114. package/dist/runtime/workspace-contract.d.ts +0 -392
  115. package/dist/runtime/workspace-contract.js +0 -28
  116. package/dist/runtime/workspace-contract.js.map +0 -1
  117. package/dist/runtime-RJ5orDJU.d.ts +0 -1699
  118. package/dist/runtime-api-Bz5pwNU_.d.ts +0 -296
  119. package/dist/runtime-json-CQ9QbLZ5.d.ts +0 -5
  120. package/dist/runtime.d.ts +0 -83
  121. package/dist/runtime.js +0 -242
  122. package/dist/runtime.js.map +0 -1
  123. package/dist/schema.d.ts +0 -379
  124. package/dist/stale-contract-artifact-error-XLaweZtF.d.ts +0 -18
  125. package/dist/testing-compiler.d.ts +0 -37
  126. package/dist/testing-compiler.js +0 -272
  127. package/dist/testing-compiler.js.map +0 -1
  128. package/dist/testing-runtime.d.ts +0 -119
  129. package/dist/testing-runtime.js +0 -212
  130. package/dist/testing-runtime.js.map +0 -1
  131. package/dist/types-DJj5MJkl.d.ts +0 -256
  132. package/dist/types-DR7DoB1x.d.ts +0 -28
  133. package/dist/types-JWCYHmu7.d.ts +0 -122
  134. package/dist/types.d.ts +0 -1958
  135. package/dist/types.js +0 -14
  136. package/dist/types.js.map +0 -1
  137. package/dist/ui/components.d.ts +0 -17
  138. package/dist/ui/components.js +0 -216
  139. package/dist/ui/components.js.map +0 -1
  140. package/dist/ui/defaults.d.ts +0 -19
  141. package/dist/ui/defaults.js +0 -104
  142. package/dist/ui/defaults.js.map +0 -1
  143. package/dist/ui/player-state.d.ts +0 -2
  144. package/dist/ui/player-state.js +0 -1
  145. package/dist/ui/player-state.js.map +0 -1
  146. package/dist/ui/plugin-styles.css +0 -2
  147. package/dist/ui-contract-GTUPkf8z.d.ts +0 -1168
  148. package/dist/ui.d.ts +0 -317
  149. package/dist/ui.js +0 -277
  150. package/dist/ui.js.map +0 -1
  151. package/dist/views-BpuWcOyN.d.ts +0 -1641
package/dist/types.js DELETED
@@ -1,14 +0,0 @@
1
- import {
2
- buildTypedRecord,
3
- defineTopologyManifest,
4
- expectTypedId,
5
- isTypedId
6
- } from "./chunk-5YV2WHJ4.js";
7
- import "./chunk-PZ5AY32C.js";
8
- export {
9
- buildTypedRecord,
10
- defineTopologyManifest,
11
- expectTypedId,
12
- isTypedId
13
- };
14
- //# sourceMappingURL=types.js.map
package/dist/types.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,17 +0,0 @@
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 GameSkeleton, al as GameSkeletonProps, am as GuidanceAction, an as GuidancePanel, ao as GuidancePanelProps, ap as GuidancePhase, aq as GuidanceSetupStep, ar as Hand, as as HandDock, at as HandDockMode, au as HandDockPlacement, av as HandDockPresentation, aw as HandDockProps, ax as HandDockToggleContext, az as HandProps, aA as Input, aB as Label, aC as MoreActions, aD as MoreActionsProps, aE as NetworkEdge, aF as NetworkGraph, aG as NetworkGraphProps, aH as NetworkNode, aI as NetworkPiece, aJ as OutcomeDialog, aK as OutcomeDialogProps, aL as Panel, aM as PanelActions, aN as PanelBody, aO as PanelDescription, aP as PanelDescriptionProps, aQ as PanelHeader, aR as PanelPartProps, aS as PanelRoot, aT as PanelRootProps, aU as PanelTitle, aV as PanelTitleProps, aW as PanelTone, aX as PhaseIndicator, aY as PhaseIndicatorProps, aZ as PlayArea, a_ as PlayAreaProps, a$ as PrimaryActionAttention, b0 as PrimaryActionButton, b1 as PrimaryActionButtonProps, b2 as PrimaryButton, b3 as PrimaryButtonProps, b4 as ResourceDefinition, b5 as Select, b6 as SelectContent, b7 as SelectItem, b8 as SelectTrigger, b9 as SetupChecklist, ba as SetupChecklistProps, bb as SetupGuidance, bc as SlotDefinition, bd as SlotOccupant, be as SlotSystem, bf as SlotSystemProps, bg as StagingZone, bh as StagingZoneProps, bi as StandingsTable, bj as StandingsTableProps, bk as ThemedButton, bl as ThemedButtonProps, bm as Toast, bn as ToastActions, bo as ToastActionsProps, bp as ToastActionsValue, bq as ToastNotification, br as ToastProvider, bs as ToastType, bt as TrackBoard, bu as TrackBoardProps, bv as TrackPiece, bw as TrackSpace, bz as ZoneDefinition, bA as ZoneHighlightType, bB as ZoneMap, bC as ZoneMapProps, bD as ZonePiece, bE as ZoneShape, bL as useCardDragSurface, bM as useChromeSuppression } from '../components-gAbIz7hK.js';
2
- export { H as HandInteractionPolicy, a as HandLayoutKind, b as HandLayoutPolicy, c as HandView, d as HandViewProps } from '../HandView-Bi2lxzQP.js';
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 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
- 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
- export { CardCollection, ViewCard, ViewSlotOccupant } from '../types.js';
7
- import 'react/jsx-runtime';
8
- import 'react';
9
- import 'framer-motion';
10
- import 'vaul';
11
- import '@radix-ui/react-dialog';
12
- import '@radix-ui/react-label';
13
- import '@radix-ui/react-select';
14
- import '../runtime-RJ5orDJU.js';
15
- import 'zod';
16
- import './protocol-dYgafTYY.js';
17
- import '../primitive-props-BNHDkgd7.js';
@@ -1,216 +0,0 @@
1
- import "../chunk-T3ZKNUZ7.js";
2
- import {
3
- ActionButton,
4
- ActionGroup,
5
- ActionHelp,
6
- ActionPanel,
7
- CardDragSurface,
8
- CardDropTargetView,
9
- CardFace,
10
- ChromeSuppressionProvider,
11
- CostDisplay,
12
- DefaultChessPiece,
13
- DefaultEmptySlot,
14
- DefaultGridCell,
15
- DefaultGridPiece,
16
- DefaultHexEdge,
17
- DefaultHexTile,
18
- DefaultHexVertex,
19
- DefaultNetworkEdge,
20
- DefaultNetworkNode,
21
- DefaultNetworkPiece,
22
- DefaultSlotItem,
23
- DefaultSlotOccupant,
24
- DefaultTrackConnection,
25
- DefaultTrackJump,
26
- DefaultTrackPiece,
27
- DefaultTrackSpace,
28
- DefaultZone,
29
- DefaultZonePiece,
30
- DefaultZonePieces,
31
- Dialog,
32
- DialogClose,
33
- DialogContent,
34
- DialogDescription,
35
- DialogFooter,
36
- DialogHeader,
37
- DialogOverlay,
38
- DialogPortal,
39
- DialogTitle,
40
- DialogTrigger,
41
- DiceRoller,
42
- Drawer,
43
- DrawerClose,
44
- DrawerContent,
45
- DrawerDescription,
46
- DrawerFooter,
47
- DrawerHeader,
48
- DrawerOverlay,
49
- DrawerPortal,
50
- DrawerTitle,
51
- DrawerTrigger,
52
- ErrorBoundary,
53
- GameSkeleton,
54
- GuidancePanel,
55
- Hand,
56
- HandDock,
57
- HandView,
58
- HexGrid,
59
- Input,
60
- Label,
61
- MobileHandTrayProvider,
62
- MoreActions,
63
- NetworkGraph,
64
- OutcomeDialog,
65
- Panel,
66
- PanelActions,
67
- PanelBody,
68
- PanelDescription,
69
- PanelHeader,
70
- PanelRoot,
71
- PanelTitle,
72
- PhaseIndicator,
73
- PlayArea,
74
- PrimaryActionButton,
75
- PrimaryButton,
76
- ResourceCounter,
77
- ResourceCounterCount,
78
- ResourceCounterIcon,
79
- ResourceCounterItem,
80
- ResourceCounterLabel,
81
- ResourceCounterRoot,
82
- Select,
83
- SelectContent,
84
- SelectItem,
85
- SelectTrigger,
86
- SetupChecklist,
87
- SlotSystem,
88
- SquareGrid,
89
- StagingZone,
90
- StandingsTable,
91
- ThemedButton,
92
- Toast,
93
- ToastActions,
94
- ToastProvider,
95
- TrackBoard,
96
- ZoneMap,
97
- createHexBoardView,
98
- createResourceCounter,
99
- hexUtils,
100
- toAlgebraic,
101
- toNumeric,
102
- useCardDragSurface,
103
- useChromeSuppression,
104
- useOverlayInsets,
105
- useRegisterBottomOverlayInset,
106
- useRegisterMobileHand
107
- } from "../chunk-32PFKDV7.js";
108
- import "../chunk-VDXOF4FW.js";
109
- import "../chunk-PZ5AY32C.js";
110
- export {
111
- ActionButton,
112
- ActionGroup,
113
- ActionHelp,
114
- ActionPanel,
115
- CardDragSurface,
116
- CardDropTargetView,
117
- CardFace,
118
- ChromeSuppressionProvider,
119
- CostDisplay,
120
- DefaultChessPiece,
121
- DefaultEmptySlot,
122
- DefaultGridCell,
123
- DefaultGridPiece,
124
- DefaultHexEdge,
125
- DefaultHexTile,
126
- DefaultHexVertex,
127
- DefaultNetworkEdge,
128
- DefaultNetworkNode,
129
- DefaultNetworkPiece,
130
- DefaultSlotItem,
131
- DefaultSlotOccupant,
132
- DefaultTrackConnection,
133
- DefaultTrackJump,
134
- DefaultTrackPiece,
135
- DefaultTrackSpace,
136
- DefaultZone,
137
- DefaultZonePiece,
138
- DefaultZonePieces,
139
- Dialog,
140
- DialogClose,
141
- DialogContent,
142
- DialogDescription,
143
- DialogFooter,
144
- DialogHeader,
145
- DialogOverlay,
146
- DialogPortal,
147
- DialogTitle,
148
- DialogTrigger,
149
- DiceRoller,
150
- Drawer,
151
- DrawerClose,
152
- DrawerContent,
153
- DrawerDescription,
154
- DrawerFooter,
155
- DrawerHeader,
156
- DrawerOverlay,
157
- DrawerPortal,
158
- DrawerTitle,
159
- DrawerTrigger,
160
- ErrorBoundary,
161
- GameSkeleton,
162
- GuidancePanel,
163
- Hand,
164
- HandDock,
165
- HandView,
166
- HexGrid,
167
- Input,
168
- Label,
169
- MobileHandTrayProvider,
170
- MoreActions,
171
- NetworkGraph,
172
- OutcomeDialog,
173
- Panel,
174
- PanelActions,
175
- PanelBody,
176
- PanelDescription,
177
- PanelHeader,
178
- PanelRoot,
179
- PanelTitle,
180
- PhaseIndicator,
181
- PlayArea,
182
- PrimaryActionButton,
183
- PrimaryButton,
184
- ResourceCounter,
185
- ResourceCounterCount,
186
- ResourceCounterIcon,
187
- ResourceCounterItem,
188
- ResourceCounterLabel,
189
- ResourceCounterRoot,
190
- Select,
191
- SelectContent,
192
- SelectItem,
193
- SelectTrigger,
194
- SetupChecklist,
195
- SlotSystem,
196
- SquareGrid,
197
- StagingZone,
198
- StandingsTable,
199
- ThemedButton,
200
- Toast,
201
- ToastActions,
202
- ToastProvider,
203
- TrackBoard,
204
- ZoneMap,
205
- createHexBoardView,
206
- createResourceCounter,
207
- hexUtils,
208
- toAlgebraic,
209
- toNumeric,
210
- useCardDragSurface,
211
- useChromeSuppression,
212
- useOverlayInsets,
213
- useRegisterBottomOverlayInset,
214
- useRegisterMobileHand
215
- };
216
- //# sourceMappingURL=components.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,19 +0,0 @@
1
- import * as react from 'react';
2
- import { HTMLAttributes } from 'react';
3
- import { P as PrimitiveCommonProps } from '../primitive-props-BNHDkgd7.js';
4
-
5
- type LayoutPrimitiveProps = PrimitiveCommonProps & HTMLAttributes<HTMLElement>;
6
- declare function GameLayoutRoot({ children, style, ...props }: LayoutPrimitiveProps): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
7
- declare function GameLayoutHeader({ children, style, ...props }: LayoutPrimitiveProps): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
8
- declare function GameLayoutBoard({ children, style, ...props }: LayoutPrimitiveProps): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
9
- declare function GameLayoutSidebar({ children, style, ...props }: LayoutPrimitiveProps): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
10
- declare function GameLayoutBottom({ children, style, ...props }: LayoutPrimitiveProps): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
11
- declare const GameLayout: {
12
- Root: typeof GameLayoutRoot;
13
- Header: typeof GameLayoutHeader;
14
- Board: typeof GameLayoutBoard;
15
- Sidebar: typeof GameLayoutSidebar;
16
- Bottom: typeof GameLayoutBottom;
17
- };
18
-
19
- export { GameLayout, GameLayoutBoard, GameLayoutBottom, GameLayoutHeader, GameLayoutRoot, GameLayoutSidebar };
@@ -1,104 +0,0 @@
1
- import {
2
- renderPrimitive
3
- } from "../chunk-VDXOF4FW.js";
4
- import "../chunk-PZ5AY32C.js";
5
-
6
- // src/ui/defaults/components.tsx
7
- function layoutStyle(base, style) {
8
- return style ? { ...base, ...style } : base;
9
- }
10
- function GameLayoutRoot({
11
- children,
12
- style,
13
- ...props
14
- }) {
15
- return renderPrimitive("div", {
16
- ...props,
17
- "data-dreamboard-game-layout": "",
18
- style: layoutStyle(
19
- {
20
- display: "grid",
21
- gridTemplateColumns: "minmax(0, 1fr) minmax(18rem, 24rem)",
22
- gridTemplateRows: "auto minmax(0, 1fr) auto",
23
- gridTemplateAreas: `"header header" "board sidebar" "bottom sidebar"`,
24
- minHeight: "100%",
25
- gap: "1rem"
26
- },
27
- style
28
- ),
29
- children
30
- });
31
- }
32
- function GameLayoutHeader({
33
- children,
34
- style,
35
- ...props
36
- }) {
37
- return renderPrimitive("header", {
38
- ...props,
39
- "data-dreamboard-game-layout-header": "",
40
- style: layoutStyle({ gridArea: "header" }, style),
41
- children
42
- });
43
- }
44
- function GameLayoutBoard({
45
- children,
46
- style,
47
- ...props
48
- }) {
49
- return renderPrimitive("section", {
50
- ...props,
51
- "data-dreamboard-game-layout-board": "",
52
- style: layoutStyle({ gridArea: "board", minWidth: 0 }, style),
53
- children
54
- });
55
- }
56
- function GameLayoutSidebar({
57
- children,
58
- style,
59
- ...props
60
- }) {
61
- return renderPrimitive("aside", {
62
- ...props,
63
- "data-dreamboard-game-layout-sidebar": "",
64
- style: layoutStyle(
65
- {
66
- gridArea: "sidebar",
67
- minWidth: 0,
68
- display: "flex",
69
- flexDirection: "column",
70
- gap: "0.75rem"
71
- },
72
- style
73
- ),
74
- children
75
- });
76
- }
77
- function GameLayoutBottom({
78
- children,
79
- style,
80
- ...props
81
- }) {
82
- return renderPrimitive("section", {
83
- ...props,
84
- "data-dreamboard-game-layout-bottom": "",
85
- style: layoutStyle({ gridArea: "bottom", minWidth: 0 }, style),
86
- children
87
- });
88
- }
89
- var GameLayout = {
90
- Root: GameLayoutRoot,
91
- Header: GameLayoutHeader,
92
- Board: GameLayoutBoard,
93
- Sidebar: GameLayoutSidebar,
94
- Bottom: GameLayoutBottom
95
- };
96
- export {
97
- GameLayout,
98
- GameLayoutBoard,
99
- GameLayoutBottom,
100
- GameLayoutHeader,
101
- GameLayoutRoot,
102
- GameLayoutSidebar
103
- };
104
- //# sourceMappingURL=defaults.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/ui/defaults/components.tsx"],"sourcesContent":["import type { CSSProperties, HTMLAttributes } from \"react\";\nimport {\n renderPrimitive,\n type PrimitiveCommonProps,\n} from \"../primitives/primitive-props.js\";\n\ntype LayoutPrimitiveProps = PrimitiveCommonProps & HTMLAttributes<HTMLElement>;\n\nfunction layoutStyle(\n base: CSSProperties,\n style: CSSProperties | undefined,\n): CSSProperties {\n return style ? { ...base, ...style } : base;\n}\n\nexport function GameLayoutRoot({\n children,\n style,\n ...props\n}: LayoutPrimitiveProps) {\n return renderPrimitive(\"div\", {\n ...props,\n \"data-dreamboard-game-layout\": \"\",\n style: layoutStyle(\n {\n display: \"grid\",\n gridTemplateColumns: \"minmax(0, 1fr) minmax(18rem, 24rem)\",\n gridTemplateRows: \"auto minmax(0, 1fr) auto\",\n gridTemplateAreas: `\"header header\" \"board sidebar\" \"bottom sidebar\"`,\n minHeight: \"100%\",\n gap: \"1rem\",\n },\n style,\n ),\n children,\n });\n}\n\nexport function GameLayoutHeader({\n children,\n style,\n ...props\n}: LayoutPrimitiveProps) {\n return renderPrimitive(\"header\", {\n ...props,\n \"data-dreamboard-game-layout-header\": \"\",\n style: layoutStyle({ gridArea: \"header\" }, style),\n children,\n });\n}\n\nexport function GameLayoutBoard({\n children,\n style,\n ...props\n}: LayoutPrimitiveProps) {\n return renderPrimitive(\"section\", {\n ...props,\n \"data-dreamboard-game-layout-board\": \"\",\n style: layoutStyle({ gridArea: \"board\", minWidth: 0 }, style),\n children,\n });\n}\n\nexport function GameLayoutSidebar({\n children,\n style,\n ...props\n}: LayoutPrimitiveProps) {\n return renderPrimitive(\"aside\", {\n ...props,\n \"data-dreamboard-game-layout-sidebar\": \"\",\n style: layoutStyle(\n {\n gridArea: \"sidebar\",\n minWidth: 0,\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"0.75rem\",\n },\n style,\n ),\n children,\n });\n}\n\nexport function GameLayoutBottom({\n children,\n style,\n ...props\n}: LayoutPrimitiveProps) {\n return renderPrimitive(\"section\", {\n ...props,\n \"data-dreamboard-game-layout-bottom\": \"\",\n style: layoutStyle({ gridArea: \"bottom\", minWidth: 0 }, style),\n children,\n });\n}\n\nexport const GameLayout = {\n Root: GameLayoutRoot,\n Header: GameLayoutHeader,\n Board: GameLayoutBoard,\n Sidebar: GameLayoutSidebar,\n Bottom: GameLayoutBottom,\n};\n"],"mappings":";;;;;;AAQA,SAAS,YACP,MACA,OACe;AACf,SAAO,QAAQ,EAAE,GAAG,MAAM,GAAG,MAAM,IAAI;AACzC;AAEO,SAAS,eAAe;AAAA,EAC7B;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAyB;AACvB,SAAO,gBAAgB,OAAO;AAAA,IAC5B,GAAG;AAAA,IACH,+BAA+B;AAAA,IAC/B,OAAO;AAAA,MACL;AAAA,QACE,SAAS;AAAA,QACT,qBAAqB;AAAA,QACrB,kBAAkB;AAAA,QAClB,mBAAmB;AAAA,QACnB,WAAW;AAAA,QACX,KAAK;AAAA,MACP;AAAA,MACA;AAAA,IACF;AAAA,IACA;AAAA,EACF,CAAC;AACH;AAEO,SAAS,iBAAiB;AAAA,EAC/B;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAyB;AACvB,SAAO,gBAAgB,UAAU;AAAA,IAC/B,GAAG;AAAA,IACH,sCAAsC;AAAA,IACtC,OAAO,YAAY,EAAE,UAAU,SAAS,GAAG,KAAK;AAAA,IAChD;AAAA,EACF,CAAC;AACH;AAEO,SAAS,gBAAgB;AAAA,EAC9B;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAyB;AACvB,SAAO,gBAAgB,WAAW;AAAA,IAChC,GAAG;AAAA,IACH,qCAAqC;AAAA,IACrC,OAAO,YAAY,EAAE,UAAU,SAAS,UAAU,EAAE,GAAG,KAAK;AAAA,IAC5D;AAAA,EACF,CAAC;AACH;AAEO,SAAS,kBAAkB;AAAA,EAChC;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAyB;AACvB,SAAO,gBAAgB,SAAS;AAAA,IAC9B,GAAG;AAAA,IACH,uCAAuC;AAAA,IACvC,OAAO;AAAA,MACL;AAAA,QACE,UAAU;AAAA,QACV,UAAU;AAAA,QACV,SAAS;AAAA,QACT,eAAe;AAAA,QACf,KAAK;AAAA,MACP;AAAA,MACA;AAAA,IACF;AAAA,IACA;AAAA,EACF,CAAC;AACH;AAEO,SAAS,iBAAiB;AAAA,EAC/B;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAyB;AACvB,SAAO,gBAAgB,WAAW;AAAA,IAChC,GAAG;AAAA,IACH,sCAAsC;AAAA,IACtC,OAAO,YAAY,EAAE,UAAU,UAAU,UAAU,EAAE,GAAG,KAAK;AAAA,IAC7D;AAAA,EACF,CAAC;AACH;AAEO,IAAM,aAAa;AAAA,EACxB,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AACV;","names":[]}
@@ -1,2 +0,0 @@
1
- export { B as BoardBaseId, a as BoardId, b as BoardKindStates, c as BoardRef, d as BoardStates, C as CardId, e as CardIdsByDeckId, f as CardProperties, D as DeckId, g as DiceStates, h as DieId, i as DieState, E as EdgeTypeId, G as GameState, H as HexBoardState, k as HexEdgeState, l as HexTileState, m as HexVertexState, N as NetworkBoardState, n as NetworkEdgeState, o as NetworkNodeState, p as NetworkPieceState, P as PerPlayer, q as PerPlayerBoardRef, r as PieceId, s as PieceTypeId, t as Player, u as PlayerId, S as SharedBoardRef, v as SpaceId, w as SpaceTypeId, x as SquareBoardState, y as SquareCellState, z as SquareEdgeState, A as SquarePieceState, F as SquareVertexState, T as TrackBoardState, I as TrackPieceState, J as TrackSpaceState, V as VertexTypeId } from '../player-state-Cqpyeql0.js';
2
- import '../types.js';
@@ -1 +0,0 @@
1
- //# sourceMappingURL=player-state.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}