@dreamboard-games/sdk 0.4.0-alpha.8 → 0.5.0-alpha.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.
Files changed (121) hide show
  1. package/README.md +49 -11
  2. package/dist/authoring/index.d.ts +6 -14
  3. package/dist/authoring/index.js +11 -547
  4. package/dist/authoring/index.js.map +1 -1
  5. package/dist/authoring-compiler.d.ts +27 -0
  6. package/dist/authoring-compiler.js +11 -0
  7. package/dist/authoring-compiler.js.map +1 -0
  8. package/dist/authoring-materialize-cli.d.ts +1 -0
  9. package/dist/authoring-materialize-cli.js +45 -0
  10. package/dist/authoring-materialize-cli.js.map +1 -0
  11. package/dist/browser-interaction.d.ts +22 -22
  12. package/dist/{chunk-3BLN5POZ.js → chunk-2GQIALJL.js} +51 -15
  13. package/dist/chunk-2GQIALJL.js.map +1 -0
  14. package/dist/chunk-533O7C4L.js +7095 -0
  15. package/dist/chunk-533O7C4L.js.map +1 -0
  16. package/dist/{chunk-44N3T2A5.js → chunk-6LMESVGT.js} +9 -28
  17. package/dist/chunk-6LMESVGT.js.map +1 -0
  18. package/dist/{chunk-ZYONCTZ2.js → chunk-DQS2EG5E.js} +3 -3
  19. package/dist/{chunk-ZYONCTZ2.js.map → chunk-DQS2EG5E.js.map} +1 -1
  20. package/dist/chunk-EOEA3I64.js +1864 -0
  21. package/dist/chunk-EOEA3I64.js.map +1 -0
  22. package/dist/{chunk-B2YBS3SG.js → chunk-FL67RDID.js} +41 -13
  23. package/dist/chunk-FL67RDID.js.map +1 -0
  24. package/dist/{chunk-2TAKLJJD.js → chunk-HIH6Y4FA.js} +222 -1267
  25. package/dist/chunk-HIH6Y4FA.js.map +1 -0
  26. package/dist/chunk-HUK4234C.js +166 -0
  27. package/dist/chunk-HUK4234C.js.map +1 -0
  28. package/dist/chunk-KGV2EUNN.js +532 -0
  29. package/dist/chunk-KGV2EUNN.js.map +1 -0
  30. package/dist/{chunk-VTK4TIXC.js → chunk-KRJPRYEA.js} +49 -4
  31. package/dist/chunk-KRJPRYEA.js.map +1 -0
  32. package/dist/chunk-KWHOFBDM.js +9 -0
  33. package/dist/chunk-KWHOFBDM.js.map +1 -0
  34. package/dist/{chunk-UC2UXAC6.js → chunk-LMHCGCA6.js} +2 -2
  35. package/dist/{chunk-XV27IQHA.js → chunk-N33CGX2F.js} +15 -85
  36. package/dist/chunk-N33CGX2F.js.map +1 -0
  37. package/dist/chunk-TXELBVTG.js +32 -0
  38. package/dist/chunk-TXELBVTG.js.map +1 -0
  39. package/dist/{chunk-2TRZSZGD.js → chunk-VRRR6QZT.js} +9 -12
  40. package/dist/chunk-VRRR6QZT.js.map +1 -0
  41. package/dist/chunk-VWTKGIYF.js +90 -0
  42. package/dist/chunk-VWTKGIYF.js.map +1 -0
  43. package/dist/{chunk-IYX5OO2K.js → chunk-XFMSLL3P.js} +133 -61
  44. package/dist/chunk-XFMSLL3P.js.map +1 -0
  45. package/dist/{chunk-YGQTL63W.js → chunk-ZSTCUJKZ.js} +4 -4
  46. package/dist/chunk-ZSTCUJKZ.js.map +1 -0
  47. package/dist/codegen.js +1 -1
  48. package/dist/{components-BTwSIjXj.d.ts → components-CNAt5J1p.d.ts} +1 -1
  49. package/dist/definitions-bZSBaPjj.d.ts +300 -0
  50. package/dist/{diagnostics-1BWjRo6-.d.ts → diagnostics-DIi3ina7.d.ts} +2 -1
  51. package/dist/digest.d.ts +8 -0
  52. package/dist/{index-CFTjJIXd.d.ts → index-CR69MyWr.d.ts} +2 -2
  53. package/dist/{index.d-C0PKOVbh.d.ts → index.d-Bw8AOcgp.d.ts} +532 -225
  54. package/dist/index.js +2 -2
  55. package/dist/package-set.d.ts +2 -2
  56. package/dist/package-set.js +2 -2
  57. package/dist/plugin-runtime-contract.d.ts +17 -0
  58. package/dist/plugin-runtime-contract.js +94 -0
  59. package/dist/plugin-runtime-contract.js.map +1 -0
  60. package/dist/{protocol-nS2ojsGr.d.ts → protocol-CVaSqPgX.d.ts} +54 -47
  61. package/dist/reducer/advanced.d.ts +5 -4
  62. package/dist/reducer/advanced.js +14 -108
  63. package/dist/reducer/advanced.js.map +1 -1
  64. package/dist/reducer-contract.d.ts +1 -1
  65. package/dist/reducer-contract.js +6 -4
  66. package/dist/reducer.d.ts +20 -98
  67. package/dist/reducer.js +28 -6050
  68. package/dist/reducer.js.map +1 -1
  69. package/dist/reference-games/index.d.ts +6 -198
  70. package/dist/reference-games/index.js +18 -200
  71. package/dist/reference-games/index.js.map +1 -1
  72. package/dist/runtime/primitives.d.ts +3 -3
  73. package/dist/runtime/primitives.js +5 -5
  74. package/dist/runtime/runtime-api.d.ts +1 -1
  75. package/dist/runtime/workspace-contract.d.ts +343 -11
  76. package/dist/runtime/workspace-contract.js +12 -6
  77. package/dist/{runtime-Dkfm1x2r.d.ts → runtime-C7Z2acNU.d.ts} +67 -31
  78. package/dist/{runtime-api-C6aWo9c0.d.ts → runtime-api-CgPuEVeF.d.ts} +4 -13
  79. package/dist/runtime.d.ts +7 -7
  80. package/dist/runtime.js +15 -11
  81. package/dist/runtime.js.map +1 -1
  82. package/dist/schema.d.ts +405 -0
  83. package/dist/{stale-contract-artifact-error-C5AaZPJ8.d.ts → stale-contract-artifact-error-XLaweZtF.d.ts} +1 -1
  84. package/dist/testing-compiler.d.ts +37 -0
  85. package/dist/testing-compiler.js +272 -0
  86. package/dist/testing-compiler.js.map +1 -0
  87. package/dist/testing-runtime.d.ts +98 -21
  88. package/dist/testing-runtime.js +154 -95
  89. package/dist/testing-runtime.js.map +1 -1
  90. package/dist/testing.d.ts +197 -156
  91. package/dist/testing.js +660 -372
  92. package/dist/testing.js.map +1 -1
  93. package/dist/types-DN4O7kH_.d.ts +122 -0
  94. package/dist/{types-CTeN_QAk.d.ts → types-q1Guidm5.d.ts} +4 -5
  95. package/dist/types.d.ts +0 -1
  96. package/dist/ui/components.d.ts +3 -2
  97. package/dist/ui/components.js +1 -1
  98. package/dist/ui/plugin-styles.css +1 -1
  99. package/dist/{ui-contract-Ue6SywvO.d.ts → ui-contract-BC4JpysE.d.ts} +2 -6
  100. package/dist/ui.d.ts +4 -3
  101. package/dist/ui.js +2 -2
  102. package/dist/{views-Qx-EHBP8.d.ts → views-D2Cfzr3h.d.ts} +17 -5
  103. package/package.json +41 -22
  104. package/REFERENCE.md +0 -22884
  105. package/dist/chunk-2TAKLJJD.js.map +0 -1
  106. package/dist/chunk-2TRZSZGD.js.map +0 -1
  107. package/dist/chunk-3BLN5POZ.js.map +0 -1
  108. package/dist/chunk-3OZMHZK3.js +0 -40
  109. package/dist/chunk-3OZMHZK3.js.map +0 -1
  110. package/dist/chunk-44N3T2A5.js.map +0 -1
  111. package/dist/chunk-5CQIJHGF.js +0 -663
  112. package/dist/chunk-5CQIJHGF.js.map +0 -1
  113. package/dist/chunk-B2YBS3SG.js.map +0 -1
  114. package/dist/chunk-IYX5OO2K.js.map +0 -1
  115. package/dist/chunk-VTK4TIXC.js.map +0 -1
  116. package/dist/chunk-VTNEWMWJ.js +0 -12
  117. package/dist/chunk-VTNEWMWJ.js.map +0 -1
  118. package/dist/chunk-XV27IQHA.js.map +0 -1
  119. package/dist/chunk-YGQTL63W.js.map +0 -1
  120. package/dist/types-B_3pObUV.d.ts +0 -192
  121. /package/dist/{chunk-UC2UXAC6.js.map → chunk-LMHCGCA6.js.map} +0 -0
@@ -7,7 +7,7 @@ import { b as InteractionDescriptor, Z as ZoneHandlesSnapshot, I as InputDomain,
7
7
  import { ViewCard } from './types.js';
8
8
  import { P as PrimitiveCommonProps } from './primitive-props-BNHDkgd7.js';
9
9
  import { a as BrowserInteractionAttributeMap } from './attributes-DbvyMbXw.js';
10
- import { a as PluginSessionState, P as PlayerId } from './runtime-api-C6aWo9c0.js';
10
+ import { a as PluginSessionState, P as PlayerId } from './runtime-api-CgPuEVeF.js';
11
11
  import { t as Player, j as HexColor } from './player-state-Cqpyeql0.js';
12
12
 
13
13
  interface UIRootProps {
@@ -490,7 +490,7 @@ type DraftValidation<Params extends InteractionParamsShape = InteractionParamsSh
490
490
  };
491
491
  /**
492
492
  * Bound handle around an {@link InteractionDescriptor}. Surfaces call into
493
- * this hook to submit/validate an interaction, track draft input state for
493
+ * this hook to submit an interaction, track draft input state for
494
494
  * multi-step prompts, and arm/disarm themselves on a surface.
495
495
  *
496
496
  * Availability flags are mirrored from the authoritative descriptor; UI
@@ -512,12 +512,8 @@ interface InteractionHandle<Params extends InteractionParamsShape = InteractionP
512
512
  * the common case for multi-input prompts.
513
513
  */
514
514
  submit: (params?: Params) => Promise<void>;
515
- /** Run server validation using `params` (or the current draft by default). */
516
- validate: (params?: Params) => Promise<void>;
517
515
  /** Run local generated client-schema validation against the current draft. */
518
516
  validateDraft: () => DraftValidation<Params>;
519
- /** Run server validation against the current draft. */
520
- validateDraftServer: () => Promise<void>;
521
517
  /**
522
518
  * Validate the current draft locally, submit parsed params, then clear the
523
519
  * draft only when submission succeeds.
package/dist/ui.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { bA as TrackSpace, bz as TrackPiece } from './components-BTwSIjXj.js';
2
- 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, B as ButtonSize, h as ButtonVariant, C as CardDragSurface, i as CardDragSurfaceContextValue, j as CardDragSurfaceController, k as CardDragSurfaceProps, l as CardDropTargetView, m as CardDropTargetViewProps, n as CardFace, o as CardFaceProps, p as CardPositionProps, q as CardSize, 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, aA as HandLayout, 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, bB as UseHandLayoutOptions, bC as UseHandLayoutReturn, bD as ZoneDefinition, bE as ZoneHighlightType, bF as ZoneMap, bG as ZoneMapProps, bH as ZonePiece, bI as ZoneShape, bJ as buttonStyle, bK as chipStyle, bL as intentForVariant, bM as motionDuration, bN as playerColor, bO as surfaceStyle, bP as useCardDragSurface, bQ as useChromeSuppression } from './components-BTwSIjXj.js';
1
+ import { bA as TrackSpace, bz as TrackPiece } from './components-CNAt5J1p.js';
2
+ 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, B as ButtonSize, h as ButtonVariant, C as CardDragSurface, i as CardDragSurfaceContextValue, j as CardDragSurfaceController, k as CardDragSurfaceProps, l as CardDropTargetView, m as CardDropTargetViewProps, n as CardFace, o as CardFaceProps, p as CardPositionProps, q as CardSize, 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, aA as HandLayout, 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, bB as UseHandLayoutOptions, bC as UseHandLayoutReturn, bD as ZoneDefinition, bE as ZoneHighlightType, bF as ZoneMap, bG as ZoneMapProps, bH as ZonePiece, bI as ZoneShape, bJ as buttonStyle, bK as chipStyle, bL as intentForVariant, bM as motionDuration, bN as playerColor, bO as surfaceStyle, bP as useCardDragSurface, bQ as useChromeSuppression } from './components-CNAt5J1p.js';
3
3
  import { ag as Theme } from './hex-board-view-aKkblDp6.js';
4
4
  export { A as AnyHexBoardInput, a as AnySquareBoardInput, b as AuthoredHexBoardInput, c as AuthoredSquareBoardInput, B as BoardEdgeIdOf, d as BoardSpaceIdOf, e as BoardVertexIdOf, C as CardDropTargetVisualState, f as CardIntent, g as ColorRamp, h as ComponentTokens, 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, t as Elevation, F as FoundationColor, G as GeneratedHexBoardInput, u as GeneratedHexSpaceStateLike, v as GeneratedSquareBoardInput, w as GeneratedSquareSpaceStateLike, x as GeneratedTiledEdgeStateLike, y as GeneratedTiledVertexStateLike, H as HexBoardInput, z as HexBoardView, I as HexBoardViewTile, J as HexGrid, K as HexGridBoardProps, L as HexGridProps, M as HexOrientation, N as HexTileGeometry, O as IntentColor, P as InteractionVisualState, Q as InteractiveHexEdge, R as InteractiveHexVertex, S as InteractiveSquareEdge, T as InteractiveSquareVertex, U as InteractiveTargetLayer, V as InteractiveTargetRenderState, X as Motion, Y as NormalizedHexBoard, Z as NormalizedHexEdgeOf, _ as NormalizedHexTileOf, $ as NormalizedHexVertexOf, a0 as NormalizedSquareBoard, a1 as NormalizedSquareCellOf, a2 as NormalizedSquareEdgeOf, a3 as NormalizedSquarePieceOf, a4 as NormalizedSquareVertexOf, a5 as PlayerColor, a6 as Radius, a7 as SemanticColor, a8 as Space, a9 as SquareBoardInput, aa as SquareEdgePosition, ab as SquareGrid, ac as SquareGridBoardProps, ad as SquareGridProps, ae as SquareVertexPosition, af as TargetIntent, ah as ThemeMeta, ai as ThemeOverride, aj as Typography, ak as createHexBoardView, al as dropTargetVisualStateDataAttributes, am as hexUtils, an as mergeTheme, ao as normalizeHexBoardInput, ap as normalizeSquareBoardInput, aq as toAlgebraic, ar as toNumeric, as as visualStateDataAttributes } from './hex-board-view-aKkblDp6.js';
5
5
  export { T as ThemeContextValue, a as ThemePresetId, b as ThemeProvider, c as ThemeProviderProps, g as getThemePreset, r as resolveTheme, u as useTheme, d as useThemeCssVars } from './ThemeProvider-CElaL2ik.js';
@@ -15,8 +15,9 @@ import 'vaul';
15
15
  import '@radix-ui/react-dialog';
16
16
  import '@radix-ui/react-label';
17
17
  import '@radix-ui/react-select';
18
- import './runtime-Dkfm1x2r.js';
18
+ import './runtime-C7Z2acNU.js';
19
19
  import 'zod';
20
+ import './protocol-CVaSqPgX.js';
20
21
  import './primitive-props-BNHDkgd7.js';
21
22
 
22
23
  /**
package/dist/ui.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  parseHexColor,
6
6
  toTrackBoardData,
7
7
  useBoardTheme
8
- } from "./chunk-UC2UXAC6.js";
8
+ } from "./chunk-LMHCGCA6.js";
9
9
  import {
10
10
  ActionButton,
11
11
  ActionGroup,
@@ -137,7 +137,7 @@ import {
137
137
  useTheme,
138
138
  useThemeCssVars,
139
139
  visualStateDataAttributes
140
- } from "./chunk-2TRZSZGD.js";
140
+ } from "./chunk-VRRR6QZT.js";
141
141
  import "./chunk-VDXOF4FW.js";
142
142
  import "./chunk-PZ5AY32C.js";
143
143
  export {
@@ -1,4 +1,4 @@
1
- import { bQ as RuntimeTableRecord, aE as PlayerIdOfState, az as PhaseStateOfState, aM as PublicStateOfState, a8 as HiddenStateOfState, aK as PrivateStateOfState, ci as SharedZoneIdOfTable, cE as TableOfState, F as DeckCardsOfTable, aF as PlayerIdOfTable, H as DeckIdOfTable, aI as PlayerZoneIdOfTable, u as CompatibleCardIdForTwoPlayerZones, t as CompatibleCardIdForHandAndDeck, v as CompatibleHandIdForDeck, Y as HandIdOfTable, p as CardIdOfTable, e as BoardIdOfTable, ck as SpaceIdOfTable, x as ComponentIdOfTable, c as BoardContainerIdOfTable, cH as TiledBoardIdOfTable, cJ as TiledEdgeIdOfTable, cP as TiledVertexIdOfTable, b5 as ResourceAmountsOfTable, ba as ResourceIdOfTable, cG as TableQueriesOfState, aQ as ReducerGameState, cD as TableOfManifest, ac as ManifestContractOf, aL as PublicSchemaOfContract, aJ as PrivateSchemaOfContract, a7 as HiddenSchemaOfContract, ay as PhaseStateMapOfContract, at as PhaseNameOfContract, bY as SchemaLike, cx as StateDefinition, a9 as InitContext, ah as ManifestOf, O as ExactManifestContractOf, ca as SetupProfileDefinition, aR as ReducerManifestContract, aV as ReducerSessionState, bF as RuntimeSetupSelection, bz as RuntimePhaseState, a as AnySchema, ab as ManifestContract, E as ContinuationToken, av as PhaseNameOfState, aU as ReducerRuntimeStateForState, ce as SetupSelectionOfManifest, aO as ReducerAcceptOptions, aN as ReducerAccept, U as GameOutcome, aS as ReducerReject, aP as ReducerFx, aT as ReducerResult, cB as StringKeyOf, A as AnyContinuationToken, aG as PlayerZoneIdOfManifest, q as CardTypeOfState, o as CardIdOfState } from './runtime-Dkfm1x2r.js';
1
+ import { bV as RuntimeTableRecord, aG as PlayerIdOfState, aB as PhaseStateOfState, aO as PublicStateOfState, a8 as HiddenStateOfState, aM as PrivateStateOfState, cn as SharedZoneIdOfTable, cJ as TableOfState, F as DeckCardsOfTable, aH as PlayerIdOfTable, H as DeckIdOfTable, aK as PlayerZoneIdOfTable, u as CompatibleCardIdForTwoPlayerZones, t as CompatibleCardIdForHandAndDeck, v as CompatibleHandIdForDeck, Y as HandIdOfTable, p as CardIdOfTable, e as BoardIdOfTable, cp as SpaceIdOfTable, x as ComponentIdOfTable, c as BoardContainerIdOfTable, cM as TiledBoardIdOfTable, cO as TiledEdgeIdOfTable, cU as TiledVertexIdOfTable, b7 as ResourceAmountsOfTable, bc as ResourceIdOfTable, cL as TableQueriesOfState, aS as ReducerGameState, cI as TableOfManifest, ac as ManifestContractOf, aN as PublicSchemaOfContract, aL as PrivateSchemaOfContract, a7 as HiddenSchemaOfContract, aA as PhaseStateMapOfContract, av as PhaseNameOfContract, c1 as SchemaLike, cC as StateDefinition, a9 as InitContext, aj as ManifestOf, O as ExactManifestContractOf, cf as SetupProfileDefinition, aT as ReducerManifestContract, aX as ReducerSessionState, bK as RuntimeSetupSelection, bB as RuntimePhaseState, a as AnySchema, ab as ManifestContract, E as ContinuationToken, ax as PhaseNameOfState, aW as ReducerRuntimeStateForState, cj as SetupSelectionOfManifest, aQ as ReducerAcceptOptions, aP as ReducerAccept, U as GameOutcome, aU as ReducerReject, aR as ReducerFx, aV as ReducerResult, cG as StringKeyOf, A as AnyContinuationToken, aI as PlayerZoneIdOfManifest, q as CardTypeOfState, o as CardIdOfState } from './runtime-C7Z2acNU.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  /**
@@ -458,7 +458,7 @@ type ReducerGameDefinition<Contract extends ReducerGameContractLike, Definitions
458
458
  * Optional session-scoped static projection. Authored via
459
459
  * {@link StaticViewDefinition}; computed once per reducer session from the
460
460
  * manifest + setup profile and cached by the host. The client merges the
461
- * cached payload into every seat view, so the per-tick `projectSeatsDynamic`
461
+ * cached payload into every seat view, so the per-tick `project`
462
462
  * call no longer needs to re-serialize static board topology.
463
463
  */
464
464
  staticView?: StaticViewDefinition<ExactManifestContractOf<NoInfer<Contract>>, unknown>;
@@ -737,6 +737,10 @@ type RuntimeHelpers<State extends {
737
737
  derived: DerivedResolver;
738
738
  };
739
739
  type RandomHelpers = {
740
+ integer(options: {
741
+ minInclusive: number;
742
+ maxInclusive: number;
743
+ }): number;
740
744
  subset<const Values extends readonly unknown[]>(options: {
741
745
  from: Values;
742
746
  count: number;
@@ -1055,7 +1059,8 @@ type CollectorState = {
1055
1059
  * `reduce({ input: { params } })` sees branded ids from `cardInput` /
1056
1060
  * `boardInput` without a second declaration.
1057
1061
  * - an optional `eligibleTargets(state, playerId, q)` hook that the runtime
1058
- * calls to enumerate server-authoritative valid values. The hook receives
1062
+ * calls to enumerate server-authoritative, submit-ready values accepted by
1063
+ * the collector schema. The hook receives
1059
1064
  * the same `q` table-queries helper that `validate` / `reduce` see, so
1060
1065
  * board/card/prompt collectors can reuse whatever board-graph or zone
1061
1066
  * lookups they already use for validation without rebuilding them from
@@ -1106,8 +1111,15 @@ type EngineSampledCollectorKeys<Collectors extends Record<string, InputCollector
1106
1111
  kind: "rng";
1107
1112
  } ? K : never;
1108
1113
  }[keyof Collectors];
1114
+ type ClientCollectorValue<Collector> = Collector extends InputCollector<infer S> ? S extends SchemaLike<infer V> ? V : never : never;
1115
+ type ClientCollectorKeys<Collectors extends Record<string, InputCollector>> = Exclude<keyof Collectors, EngineSampledCollectorKeys<Collectors>>;
1116
+ type OptionalClientCollectorKeys<Collectors extends Record<string, InputCollector>> = {
1117
+ [K in ClientCollectorKeys<Collectors>]: undefined extends ClientCollectorValue<Collectors[K]> ? K : never;
1118
+ }[ClientCollectorKeys<Collectors>];
1109
1119
  type ClientParamsOf<Collectors extends Record<string, InputCollector>> = {
1110
- [K in keyof Collectors as K extends EngineSampledCollectorKeys<Collectors> ? never : K]: Collectors[K] extends InputCollector<infer S> ? S extends SchemaLike<infer V> ? V : never : never;
1120
+ [K in Exclude<ClientCollectorKeys<Collectors>, OptionalClientCollectorKeys<Collectors>>]: ClientCollectorValue<Collectors[K]>;
1121
+ } & {
1122
+ [K in OptionalClientCollectorKeys<Collectors>]?: Exclude<ClientCollectorValue<Collectors[K]>, undefined>;
1111
1123
  };
1112
1124
 
1113
1125
  type InteractionReduceInput<Collectors extends Record<string, InputCollector>, State extends {
@@ -1563,7 +1575,7 @@ type EmptyViewDefinition<State extends {
1563
1575
  * per-tick state into the payload. The host calls this once per reducer
1564
1576
  * session, caches the result, and merges it back into every seat view on
1565
1577
  * the client. Moving static board topology here is what lets the adapter
1566
- * skip the ~87% of `projectSeatsDynamic` wall time that used to re-serialize
1578
+ * skip the ~87% of `project` wall time that used to re-serialize
1567
1579
  * manifest-sourced fields on every input.
1568
1580
  */
1569
1581
  type StaticViewDefinition<Manifest extends ManifestContract<RuntimeTableRecord>, Projection = unknown> = {
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@dreamboard-games/sdk",
3
- "version": "0.4.0-alpha.8",
3
+ "version": "0.5.0-alpha.0",
4
4
  "description": "Dreamboard SDK package set metadata and public facade",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
+ "bin": {
9
+ "dreamboard-sdk-materialize": "./dist/authoring-materialize-cli.js"
10
+ },
8
11
  "exports": {
9
12
  ".": {
10
13
  "types": "./dist/index.d.ts",
@@ -16,6 +19,11 @@
16
19
  "import": "./dist/package-set.js",
17
20
  "default": "./dist/package-set.js"
18
21
  },
22
+ "./plugin-runtime-contract": {
23
+ "types": "./dist/plugin-runtime-contract.d.ts",
24
+ "import": "./dist/plugin-runtime-contract.js",
25
+ "default": "./dist/plugin-runtime-contract.js"
26
+ },
19
27
  "./reference-games": {
20
28
  "types": "./dist/reference-games/index.d.ts",
21
29
  "import": "./dist/reference-games/index.js",
@@ -104,6 +112,16 @@
104
112
  "import": "./dist/testing-runtime.js",
105
113
  "default": "./dist/testing-runtime.js"
106
114
  },
115
+ "./testing-compiler": {
116
+ "types": "./dist/testing-compiler.d.ts",
117
+ "import": "./dist/testing-compiler.js",
118
+ "default": "./dist/testing-compiler.js"
119
+ },
120
+ "./authoring-compiler": {
121
+ "types": "./dist/authoring-compiler.d.ts",
122
+ "import": "./dist/authoring-compiler.js",
123
+ "default": "./dist/authoring-compiler.js"
124
+ },
107
125
  "./browser-interaction": {
108
126
  "types": "./dist/browser-interaction.d.ts",
109
127
  "import": "./dist/browser-interaction.js",
@@ -115,21 +133,9 @@
115
133
  "LICENSE.md",
116
134
  "dist",
117
135
  "README.md",
118
- "REFERENCE.md",
119
136
  "!.turbo/**",
120
137
  "!tsconfig.tsbuildinfo"
121
138
  ],
122
- "scripts": {
123
- "build": "pnpm --dir ../.. --filter @dreamboard-games/sdk-types build && pnpm --dir ../.. --filter @dreamboard-games/plugin-runtime-contract build && pnpm --dir ../.. authoring-metadata:generate && tsup && node ../../scripts/copy-sdk-private-dts.mjs && mkdir -p dist/ui && tailwindcss -i src/ui/plugin-styles.css -o dist/ui/plugin-styles.css --minify",
124
- "typecheck": "tsc --noEmit",
125
- "lint": "eslint 'src/**/*.{ts,tsx}'",
126
- "storybook": "storybook dev -p 6006 --host 127.0.0.1 --no-open",
127
- "storybook:build": "storybook build -o storybook-static",
128
- "storybook:test": "concurrently -k -s first -n storybook,test \"http-server storybook-static -p 6006 -s --silent\" \"wait-on tcp:6006 && test-storybook --url http://127.0.0.1:6006\"",
129
- "storybook:test:visual": "playwright test --config .storybook/visual-runner.config.ts",
130
- "storybook:test:visual:update": "playwright test --config .storybook/visual-runner.config.ts --update-snapshots",
131
- "test": "bun test src"
132
- },
133
139
  "dependencies": {
134
140
  "@radix-ui/react-accordion": "^1.2.14",
135
141
  "@radix-ui/react-dialog": "^1.1.17",
@@ -140,15 +146,12 @@
140
146
  "@noble/hashes": "^2.2.0",
141
147
  "@use-gesture/react": "^10.3.1",
142
148
  "clsx": "^2.1.1",
149
+ "esbuild": "^0.28.1",
143
150
  "lucide-react": "^1.20.0",
144
151
  "vaul": "^1.1.2",
145
152
  "zustand": "^5.0.14"
146
153
  },
147
154
  "devDependencies": {
148
- "@dreamboard-games/plugin-runtime-contract": "workspace:*",
149
- "@dreamboard-games/reducer-contract": "workspace:*",
150
- "@dreamboard-games/sdk-types": "workspace:*",
151
- "@dreamboard-games/workspace-codegen": "workspace:*",
152
155
  "@happy-dom/global-registrator": "^20.9.0",
153
156
  "@playwright/test": "1.60.0",
154
157
  "@storybook/addon-a11y": "^10.4.6",
@@ -162,7 +165,7 @@
162
165
  "@types/react-dom": "^19.0.0",
163
166
  "axe-playwright": "2.2.2",
164
167
  "concurrently": "^9.1.0",
165
- "eslint": "^9.39.0",
168
+ "eslint": "^9.39.1",
166
169
  "framer-motion": "^12.40.0",
167
170
  "http-server": "^14.1.1",
168
171
  "playwright": "1.60.0",
@@ -171,10 +174,15 @@
171
174
  "storybook": "^10.4.6",
172
175
  "tailwindcss": "^4.3.1",
173
176
  "tsup": "^8.5.0",
174
- "typescript": "^5.9.2",
177
+ "typescript": "^5.9.3",
175
178
  "vite": "8.0.16",
179
+ "vitest": "4.1.10",
176
180
  "wait-on": "^8.0.1",
177
- "zod": "4.4.3"
181
+ "zod": "4.4.3",
182
+ "@dreamboard-games/reducer-contract": "0.5.0",
183
+ "@dreamboard-games/sdk-types": "0.2.0",
184
+ "@dreamboard-games/plugin-runtime-contract": "0.1.0",
185
+ "@dreamboard-games/workspace-codegen": "0.3.0-alpha.0"
178
186
  },
179
187
  "peerDependencies": {
180
188
  "framer-motion": "^11.0.0 || ^12.0.0",
@@ -199,5 +207,16 @@
199
207
  "sdk",
200
208
  "package-set"
201
209
  ],
202
- "license": "SEE LICENSE IN LICENSE.md"
203
- }
210
+ "license": "SEE LICENSE IN LICENSE.md",
211
+ "scripts": {
212
+ "build": "tsup && node ../../scripts/package.ts copy-declarations && mkdir -p dist/ui && tailwindcss -i src/ui/plugin-styles.css -o dist/ui/plugin-styles.css --minify",
213
+ "typecheck": "tsc --noEmit && tsc -p tsconfig.testing-contract.json",
214
+ "lint": "eslint 'src/**/*.{ts,tsx}'",
215
+ "storybook": "storybook dev -p 6006 --host 127.0.0.1 --no-open",
216
+ "storybook:build": "storybook build -o storybook-static",
217
+ "storybook:test": "concurrently -k -s first -n storybook,test \"http-server storybook-static -p 6006 -s --silent\" \"wait-on tcp:6006 && test-storybook --url http://127.0.0.1:6006\"",
218
+ "storybook:test:visual": "playwright test --config .storybook/visual-runner.config.ts",
219
+ "storybook:test:visual:update": "playwright test --config .storybook/visual-runner.config.ts --update-snapshots",
220
+ "test": "vitest run src"
221
+ }
222
+ }