@dreamboard-games/sdk 0.4.0-alpha.5 → 0.4.0-alpha.7

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 (95) hide show
  1. package/REFERENCE.md +1493 -127
  2. package/dist/{HandView-x8MhbhFl.d.ts → HandView-Bi2lxzQP.d.ts} +3 -3
  3. package/dist/{ThemeProvider-DRalAWzY.d.ts → ThemeProvider-CElaL2ik.d.ts} +1 -1
  4. package/dist/authoring/index.d.ts +5 -4
  5. package/dist/authoring/index.js +4 -4
  6. package/dist/authoring/index.js.map +1 -1
  7. package/dist/browser-interaction.js +1 -1
  8. package/dist/{chunk-E3X552YM.js → chunk-2TRZSZGD.js} +1061 -425
  9. package/dist/chunk-2TRZSZGD.js.map +1 -0
  10. package/dist/{chunk-K5ZRJTZZ.js → chunk-3QIZKXJ2.js} +10 -5
  11. package/dist/chunk-3QIZKXJ2.js.map +1 -0
  12. package/dist/{chunk-KHY3RJLT.js → chunk-52DH7VQF.js} +62 -13
  13. package/dist/chunk-52DH7VQF.js.map +1 -0
  14. package/dist/chunk-5IHU5CUK.js +575 -0
  15. package/dist/chunk-5IHU5CUK.js.map +1 -0
  16. package/dist/{chunk-N6ZDIMRB.js → chunk-B2YBS3SG.js} +1 -1
  17. package/dist/chunk-B2YBS3SG.js.map +1 -0
  18. package/dist/chunk-IU6KGPY7.js +659 -0
  19. package/dist/chunk-IU6KGPY7.js.map +1 -0
  20. package/dist/{chunk-FXQPZZXC.js → chunk-KYEWGZ2Y.js} +2 -2
  21. package/dist/{chunk-FXQPZZXC.js.map → chunk-KYEWGZ2Y.js.map} +1 -1
  22. package/dist/{chunk-AQMEN3AT.js → chunk-NO537WSS.js} +2 -2
  23. package/dist/{chunk-TTISZQNI.js → chunk-Q322XCY2.js} +47 -31
  24. package/dist/chunk-Q322XCY2.js.map +1 -0
  25. package/dist/{chunk-QOFFRHZR.js → chunk-RKGJ64UN.js} +81 -41
  26. package/dist/chunk-RKGJ64UN.js.map +1 -0
  27. package/dist/{chunk-Y6Y2YABD.js → chunk-TGMXBRKY.js} +22 -6
  28. package/dist/chunk-TGMXBRKY.js.map +1 -0
  29. package/dist/{chunk-XZ667T4K.js → chunk-UC2UXAC6.js} +2 -2
  30. package/dist/chunk-VLG4YST5.js +564 -0
  31. package/dist/chunk-VLG4YST5.js.map +1 -0
  32. package/dist/{chunk-WUIVY2KE.js → chunk-WHR5UW3F.js} +1 -1
  33. package/dist/chunk-WHR5UW3F.js.map +1 -0
  34. package/dist/codegen.d.ts +13 -0
  35. package/dist/codegen.js +1 -1
  36. package/dist/{components-B7hFaEn_.d.ts → components-BTwSIjXj.d.ts} +77 -206
  37. package/dist/{stale-contract-artifact-error-BelRiIDR.d.ts → diagnostics-1BWjRo6-.d.ts} +1 -18
  38. package/dist/{hex-board-view-BFlWDb9k.d.ts → hex-board-view-aKkblDp6.d.ts} +180 -1
  39. package/dist/{index-gjxQichK.d.ts → index-CFTjJIXd.d.ts} +5 -4
  40. package/dist/{index.d-BL3bT5lt.d.ts → index.d-DMASeF6M.d.ts} +294 -27
  41. package/dist/index.js +2 -2
  42. package/dist/package-set.d.ts +2 -2
  43. package/dist/package-set.js +2 -2
  44. package/dist/{runtime-api-BJharVaj.d.ts → plugin-state-BRH3UiUp.d.ts} +19 -3
  45. package/dist/{protocol-BP193lva.d.ts → protocol-835hEGne.d.ts} +42 -1
  46. package/dist/reducer/advanced.d.ts +4 -2
  47. package/dist/reducer/advanced.js +1 -1
  48. package/dist/reducer-contract.d.ts +1 -1
  49. package/dist/reducer-contract.js +2 -2
  50. package/dist/reducer.d.ts +13 -6
  51. package/dist/reducer.js +322 -20
  52. package/dist/reducer.js.map +1 -1
  53. package/dist/reference-games/index.d.ts +223 -0
  54. package/dist/reference-games/index.js +230 -0
  55. package/dist/reference-games/index.js.map +1 -0
  56. package/dist/runtime/primitives.d.ts +32 -7
  57. package/dist/runtime/primitives.js +10 -5
  58. package/dist/runtime/runtime-api.d.ts +1 -1
  59. package/dist/runtime/workspace-contract.d.ts +7 -7
  60. package/dist/runtime/workspace-contract.js +7 -6
  61. package/dist/runtime-Dkfm1x2r.d.ts +1670 -0
  62. package/dist/runtime.d.ts +10 -9
  63. package/dist/runtime.js +53 -19
  64. package/dist/runtime.js.map +1 -1
  65. package/dist/stale-contract-artifact-error-C5AaZPJ8.d.ts +18 -0
  66. package/dist/testing-runtime.d.ts +42 -0
  67. package/dist/testing-runtime.js +153 -0
  68. package/dist/testing-runtime.js.map +1 -0
  69. package/dist/testing.d.ts +82 -205
  70. package/dist/testing.js +83 -640
  71. package/dist/testing.js.map +1 -1
  72. package/dist/types-DcADVHe9.d.ts +192 -0
  73. package/dist/{types-CYeN0wLK.d.ts → types-aI4V9CWe.d.ts} +5 -5
  74. package/dist/types.d.ts +13 -0
  75. package/dist/ui/components.d.ts +6 -3
  76. package/dist/ui/components.js +15 -3
  77. package/dist/ui/plugin-styles.css +2 -2
  78. package/dist/{ui-contract-B4NjRlvC.d.ts → ui-contract-Ue6SywvO.d.ts} +24 -10
  79. package/dist/ui.d.ts +9 -6
  80. package/dist/ui.js +16 -4
  81. package/dist/views-32rSsfeU.d.ts +1559 -0
  82. package/package.json +33 -21
  83. package/dist/chunk-E3X552YM.js.map +0 -1
  84. package/dist/chunk-K5ZRJTZZ.js.map +0 -1
  85. package/dist/chunk-KHY3RJLT.js.map +0 -1
  86. package/dist/chunk-N6ZDIMRB.js.map +0 -1
  87. package/dist/chunk-O6M6PN4E.js +0 -1225
  88. package/dist/chunk-O6M6PN4E.js.map +0 -1
  89. package/dist/chunk-QOFFRHZR.js.map +0 -1
  90. package/dist/chunk-TTISZQNI.js.map +0 -1
  91. package/dist/chunk-WUIVY2KE.js.map +0 -1
  92. package/dist/chunk-Y6Y2YABD.js.map +0 -1
  93. package/dist/views-fn2RuXOx.d.ts +0 -3168
  94. /package/dist/{chunk-AQMEN3AT.js.map → chunk-NO537WSS.js.map} +0 -0
  95. /package/dist/{chunk-XZ667T4K.js.map → chunk-UC2UXAC6.js.map} +0 -0
@@ -1,9 +1,9 @@
1
1
  import * as react from 'react';
2
2
  import { CSSProperties, ReactNode, HTMLAttributes, ButtonHTMLAttributes, InputHTMLAttributes, ReactElement } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import { a3 as Theme, a5 as ThemeOverride, O as InteractiveTargetState$1, A as AnyHexBoardInput, d as BoardSpaceIdOf, w as HexGridBoardProps, t as HexBoardView } from './hex-board-view-BFlWDb9k.js';
5
- import { a as ThemePresetId } from './ThemeProvider-DRalAWzY.js';
6
- import { a as InteractionDescriptor, Z as ZoneHandlesSnapshot, I as InputDomain, b as InteractionInputDescriptor } from './runtime-api-BJharVaj.js';
4
+ import { ag as Theme, ai as ThemeOverride, W as InteractiveTargetState$1, A as AnyHexBoardInput, d as BoardSpaceIdOf, K as HexGridBoardProps, z as HexBoardView, a as AnySquareBoardInput, ac as SquareGridBoardProps } from './hex-board-view-aKkblDp6.js';
5
+ import { a as ThemePresetId } from './ThemeProvider-CElaL2ik.js';
6
+ import { b as InteractionDescriptor, Z as ZoneHandlesSnapshot, I as InputDomain, c as InteractionInputDescriptor } from './plugin-state-BRH3UiUp.js';
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';
@@ -313,11 +313,13 @@ interface BoardHexGridInteractions {
313
313
  vertex?: BoardTargetLayerOptions;
314
314
  space?: BoardTargetLayerOptions;
315
315
  }
316
- type BoardHexGridInteractionFilter = "auto" | false | {
317
- edge?: readonly string[];
318
- vertex?: readonly string[];
319
- space?: readonly string[];
316
+ type BoardGridInteractionFilter<Key extends string = string> = "auto" | false | {
317
+ edge?: readonly Key[];
318
+ vertex?: readonly Key[];
319
+ space?: readonly Key[];
320
320
  };
321
+ type BoardHexGridInteractionFilter = BoardGridInteractionFilter<string>;
322
+ type BoardSquareGridInteractionFilter = BoardGridInteractionFilter<string>;
321
323
  type BoardHexGridView<TBoard extends AnyHexBoardInput, TSpaceView extends {
322
324
  id: BoardSpaceIdOf<TBoard>;
323
325
  }> = HexBoardView<TBoard, TSpaceView> & AnyHexBoardInput;
@@ -329,6 +331,10 @@ type BoardHexGridProps<TBoard extends AnyHexBoardInput, TSpaceView extends {
329
331
  declare function BoardHexGrid<const TBoard extends AnyHexBoardInput, const TSpaceView extends {
330
332
  id: BoardSpaceIdOf<TBoard>;
331
333
  }>({ board, spaces, interactions, ...props }: BoardHexGridProps<TBoard, TSpaceView>): react_jsx_runtime.JSX.Element;
334
+ type BoardSquareGridProps<TBoard extends AnySquareBoardInput> = Omit<SquareGridBoardProps<TBoard>, "interactiveEdges" | "interactiveVertices" | "interactiveSpaces"> & {
335
+ interactions?: BoardSquareGridInteractionFilter;
336
+ };
337
+ declare function BoardSquareGrid<const TBoard extends AnySquareBoardInput>({ board, interactions, ...props }: BoardSquareGridProps<TBoard>): react_jsx_runtime.JSX.Element;
332
338
  type BoardTargetExtraInputs = Record<string, unknown> | ((targetId: string) => Record<string, unknown>);
333
339
  type BoardTargetProps<Target extends string = BoardTargetKey> = PrimitiveCommonProps & ButtonHTMLAttributes<HTMLButtonElement> & {
334
340
  kind: BoardTargetKind;
@@ -351,6 +357,7 @@ declare const Board: {
351
357
  State: typeof BoardState;
352
358
  HexGrid: typeof BoardHexGrid;
353
359
  HexView: typeof BoardHexView;
360
+ SquareGrid: typeof BoardSquareGrid;
354
361
  Target: typeof BoardTarget;
355
362
  SpaceTarget: typeof BoardSpaceTarget;
356
363
  EdgeTarget: typeof BoardEdgeTarget;
@@ -668,7 +675,7 @@ type InteractionSubmitProps = PrimitiveCommonProps & ButtonHTMLAttributes<HTMLBu
668
675
  onSubmitSuccess?: InteractionSubmitCallbacks["onSubmitSuccess"];
669
676
  onSubmitError?: InteractionSubmitCallbacks["onSubmitError"];
670
677
  };
671
- declare function InteractionSubmit({ disabled, onClick, params, onSubmitSuccess, onSubmitError, ...props }: InteractionSubmitProps): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
678
+ declare function InteractionSubmit({ disabled, onClick, params, onSubmitSuccess, onSubmitError, style, ...props }: InteractionSubmitProps): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
672
679
  type InteractionInputProps = PrimitiveCommonProps & Omit<InputHTMLAttributes<HTMLInputElement>, "name"> & {
673
680
  name: string;
674
681
  parse?: (value: string) => unknown;
@@ -1115,7 +1122,7 @@ type TypedZone<Contract extends UIContract> = Omit<typeof Zone, "Root" | "Item"
1115
1122
  renderCard: (card: TypedZoneCardRenderItem<Contract>) => ReactNode;
1116
1123
  }): ReactElement | null;
1117
1124
  };
1118
- type TypedBoard<Contract extends UIContract> = Omit<typeof Board, "Target" | "SpaceTarget" | "EdgeTarget" | "VertexTarget" | "HexGrid"> & {
1125
+ type TypedBoard<Contract extends UIContract> = Omit<typeof Board, "Target" | "SpaceTarget" | "EdgeTarget" | "VertexTarget" | "HexGrid" | "SquareGrid"> & {
1119
1126
  Target<Target extends BoardTargetKey<Contract>>(props: Omit<BoardTargetProps, "value"> & {
1120
1127
  value: Target;
1121
1128
  }): ReactElement;
@@ -1137,6 +1144,13 @@ type TypedBoard<Contract extends UIContract> = Omit<typeof Board, "Target" | "Sp
1137
1144
  space?: ReadonlyArray<InteractionKey<Contract>>;
1138
1145
  };
1139
1146
  }): ReactElement;
1147
+ SquareGrid<TBoard extends AnySquareBoardInput>(props: Omit<BoardSquareGridProps<TBoard>, "interactions"> & {
1148
+ interactions?: Exclude<BoardSquareGridInteractionFilter, object> | {
1149
+ edge?: ReadonlyArray<InteractionKey<Contract>>;
1150
+ vertex?: ReadonlyArray<InteractionKey<Contract>>;
1151
+ space?: ReadonlyArray<InteractionKey<Contract>>;
1152
+ };
1153
+ }): ReactElement;
1140
1154
  };
1141
1155
  type TypedGame<_Contract extends UIContract, View = unknown, Player extends string = PlayerKey<_Contract>, Phase extends string = PhaseKey<_Contract>> = Omit<typeof Game, "Root"> & {
1142
1156
  Root(props: GameRootProps<View, Player, Phase>): ReactElement;
@@ -1156,4 +1170,4 @@ interface DreamboardUI<Contract extends UIContract = RegisteredUI> {
1156
1170
  readonly Board: TypedBoard<Contract>;
1157
1171
  }
1158
1172
 
1159
- export { type InteractionDialogState as $, type DreamboardUI as A, Board as B, type GameActiveActionState as C, Dice as D, GameChrome as E, type GameChromeProps as F, Game as G, type GameChromeState as H, type GameMeState as I, type GamePendingInputState as J, type GamePlayer as K, type GamePlayerEntry as L, type GamePlayersState as M, type GameRenderState as N, GameRoot as O, type GameRootProps as P, type GameTurnState as Q, GameViewport as R, type GameViewportProps as S, Interaction as T, InteractionCardInput as U, type InteractionCardInputProps as V, type InteractionCardInputRenderState as W, InteractionDescription as X, InteractionDialog as Y, type InteractionDialogProps as Z, type InteractionDialogRenderState as _, BoardEdgeTarget as a, type TypedGame as a$, type InteractionFieldPrimitiveProps as a0, InteractionFormPrimitive as a1, type InteractionFormPrimitiveProps as a2, InteractionInput as a3, type InteractionInputProps as a4, InteractionLabel as a5, type InteractionPartProps as a6, InteractionRoot as a7, type InteractionRootProps as a8, type InteractionRoute as a9, type PlayerRosterEntry as aA, PlayerRosterList as aB, type PlayerRosterListProps as aC, PlayerRosterName as aD, type PlayerRosterPartProps as aE, PlayerRosterRoot as aF, type PlayerRosterRootProps as aG, PlayerRosterScore as aH, Prompt as aI, PromptDialog as aJ, type PromptDialogProps as aK, type PromptDialogRenderState as aL, type PromptDialogState as aM, PromptInbox as aN, PromptInboxEmpty as aO, PromptInboxItems as aP, type PromptInboxItemsProps as aQ, PromptInboxRoot as aR, PromptMessage as aS, PromptOption as aT, type PromptOptionProps as aU, type PromptOptionRenderItem as aV, PromptOptions as aW, type PromptOptionsProps as aX, PromptRoot as aY, type PromptRootProps as aZ, PromptTitle as a_, InteractionRoutes as aa, type InteractionRoutesMap as ab, type InteractionRoutesProps as ac, InteractionState as ad, type InteractionStateProps as ae, type InteractionStateSnapshot as af, InteractionSubmit as ag, type InteractionSubmitProps as ah, InteractionSwitch as ai, type InteractionSwitchProps as aj, type InteractionSwitchRenderState as ak, type InteractionSwitchRouteMap as al, InteractionTrigger as am, type InteractionTriggerProps as an, InteractionUnavailableMessage as ao, InteractionValidationMessage as ap, Phase as aq, type PhaseFallback as ar, type PhaseRouteMap as as, PhaseSwitch as at, type PhaseSwitchProps as au, PlayerRoster as av, type PlayerRosterBadge as aw, PlayerRosterBadges as ax, type PlayerRosterComponents as ay, PlayerRosterEmpty as az, type BoardEdgeTargetProps as b, UI as b0, type UIContract as b1, UIRoot as b2, type UIRootProps as b3, type UseZoneCardsOptions as b4, type UseZoneCardsResult as b5, Zone as b6, ZoneCardAction as b7, type ZoneCardActionExtraInputs as b8, type ZoneCardActionProps as b9, normalizeDiceState as bA, useBoardPrimitiveContext as bB, useDicePrimitiveContext as bC, useGameActionError as bD, useInteractionPrimitiveContext as bE, useOptionalZonePrimitiveContext as bF, useResolvedCardTargetValue as bG, useZoneCardContext as bH, useZoneCards as bI, useZonePileContext as bJ, useZonePrimitiveContext as bK, type ZoneCardActionResult as ba, ZoneCardAt as bb, type ZoneCardAtProps as bc, type ZoneCardRenderItem as bd, ZoneItem as be, type ZoneItemProps as bf, ZoneList as bg, type ZoneListProps as bh, ZonePileCards as bi, type ZonePileCardsProps as bj, type ZonePileContextValue as bk, ZonePileCount as bl, type ZonePileCountProps as bm, ZonePileDescription as bn, type ZonePileDescriptionProps as bo, ZonePileLabel as bp, type ZonePileLabelProps as bq, ZonePileRoot as br, type ZonePileRootProps as bs, ZonePileTrigger as bt, type ZonePileTriggerProps as bu, ZoneRoot as bv, type ZoneRootProps as bw, ZoneTopCard as bx, type ZoneTopCardProps as by, createZoneCardRenderItem as bz, BoardHexGrid as c, type BoardHexGridInteractionFilter as d, type BoardHexGridInteractions as e, type BoardHexGridProps as f, BoardHexView as g, type BoardHexViewProps as h, BoardRoot as i, type BoardRootProps as j, BoardSpaceTarget as k, type BoardSpaceTargetProps as l, BoardState as m, type BoardStateProps as n, BoardTarget as o, type BoardTargetExtraInputs as p, type BoardTargetProps as q, BoardVertexTarget as r, type BoardVertexTargetProps as s, type DiceComponents as t, DiceRoot as u, type DiceRootProps as v, type DiceState as w, type DiceValue as x, DiceValues as y, type DiceValuesProps as z };
1173
+ export { InteractionDescription as $, type DiceState as A, Board as B, type DiceValue as C, Dice as D, DiceValues as E, type DiceValuesProps as F, type DreamboardUI as G, Game as H, type GameActiveActionState as I, GameChrome as J, type GameChromeProps as K, type GameChromeState as L, type GameMeState as M, type GamePendingInputState as N, type GamePlayer as O, type GamePlayerEntry as P, type GamePlayersState as Q, type GameRenderState as R, GameRoot as S, type GameRootProps as T, type GameTurnState as U, GameViewport as V, type GameViewportProps as W, Interaction as X, InteractionCardInput as Y, type InteractionCardInputProps as Z, type InteractionCardInputRenderState as _, BoardEdgeTarget as a, type PromptOptionsProps as a$, InteractionDialog as a0, type InteractionDialogProps as a1, type InteractionDialogRenderState as a2, type InteractionDialogState as a3, type InteractionFieldPrimitiveProps as a4, InteractionFormPrimitive as a5, type InteractionFormPrimitiveProps as a6, InteractionInput as a7, type InteractionInputProps as a8, InteractionLabel as a9, type PlayerRosterBadge as aA, PlayerRosterBadges as aB, type PlayerRosterComponents as aC, PlayerRosterEmpty as aD, type PlayerRosterEntry as aE, PlayerRosterList as aF, type PlayerRosterListProps as aG, PlayerRosterName as aH, type PlayerRosterPartProps as aI, PlayerRosterRoot as aJ, type PlayerRosterRootProps as aK, PlayerRosterScore as aL, Prompt as aM, PromptDialog as aN, type PromptDialogProps as aO, type PromptDialogRenderState as aP, type PromptDialogState as aQ, PromptInbox as aR, PromptInboxEmpty as aS, PromptInboxItems as aT, type PromptInboxItemsProps as aU, PromptInboxRoot as aV, PromptMessage as aW, PromptOption as aX, type PromptOptionProps as aY, type PromptOptionRenderItem as aZ, PromptOptions as a_, type InteractionPartProps as aa, InteractionRoot as ab, type InteractionRootProps as ac, type InteractionRoute as ad, InteractionRoutes as ae, type InteractionRoutesMap as af, type InteractionRoutesProps as ag, InteractionState as ah, type InteractionStateProps as ai, type InteractionStateSnapshot as aj, InteractionSubmit as ak, type InteractionSubmitProps as al, InteractionSwitch as am, type InteractionSwitchProps as an, type InteractionSwitchRenderState as ao, type InteractionSwitchRouteMap as ap, InteractionTrigger as aq, type InteractionTriggerProps as ar, InteractionUnavailableMessage as as, InteractionValidationMessage as at, Phase as au, type PhaseFallback as av, type PhaseRouteMap as aw, PhaseSwitch as ax, type PhaseSwitchProps as ay, PlayerRoster as az, type BoardEdgeTargetProps as b, PromptRoot as b0, type PromptRootProps as b1, PromptTitle as b2, type TypedGame as b3, UI as b4, type UIContract as b5, UIRoot as b6, type UIRootProps as b7, type UseZoneCardsOptions as b8, type UseZoneCardsResult as b9, type ZoneRootProps as bA, ZoneTopCard as bB, type ZoneTopCardProps as bC, createZoneCardRenderItem as bD, normalizeDiceState as bE, useBoardPrimitiveContext as bF, useDicePrimitiveContext as bG, useGameActionError as bH, useInteractionPrimitiveContext as bI, useOptionalZonePrimitiveContext as bJ, useResolvedCardTargetValue as bK, useZoneCardContext as bL, useZoneCards as bM, useZonePileContext as bN, useZonePrimitiveContext as bO, Zone as ba, ZoneCardAction as bb, type ZoneCardActionExtraInputs as bc, type ZoneCardActionProps as bd, type ZoneCardActionResult as be, ZoneCardAt as bf, type ZoneCardAtProps as bg, type ZoneCardRenderItem as bh, ZoneItem as bi, type ZoneItemProps as bj, ZoneList as bk, type ZoneListProps as bl, ZonePileCards as bm, type ZonePileCardsProps as bn, type ZonePileContextValue as bo, ZonePileCount as bp, type ZonePileCountProps as bq, ZonePileDescription as br, type ZonePileDescriptionProps as bs, ZonePileLabel as bt, type ZonePileLabelProps as bu, ZonePileRoot as bv, type ZonePileRootProps as bw, ZonePileTrigger as bx, type ZonePileTriggerProps as by, ZoneRoot as bz, type BoardGridInteractionFilter as c, BoardHexGrid as d, type BoardHexGridInteractionFilter as e, type BoardHexGridInteractions as f, type BoardHexGridProps as g, BoardHexView as h, type BoardHexViewProps as i, BoardRoot as j, type BoardRootProps as k, BoardSpaceTarget as l, type BoardSpaceTargetProps as m, BoardSquareGrid as n, type BoardSquareGridInteractionFilter as o, type BoardSquareGridProps as p, BoardState as q, type BoardStateProps as r, BoardTarget as s, type BoardTargetExtraInputs as t, type BoardTargetProps as u, BoardVertexTarget as v, type BoardVertexTargetProps as w, type DiceComponents as x, DiceRoot as y, type DiceRootProps as z };
package/dist/ui.d.ts CHANGED
@@ -1,19 +1,22 @@
1
- import { by as TrackSpace, bx as TrackPiece } from './components-B7hFaEn_.js';
2
- export { A as ActionButton, a as ActionButtonProps, b as ActionGroup, c as ActionGroupProps, d as ActionPanel, e as ActionPanelProps, B as ButtonSize, f as ButtonVariant, C as CardDragSurface, g as CardDragSurfaceContextValue, h as CardDragSurfaceController, i as CardDragSurfaceProps, j as CardDropTargetView, k as CardDropTargetViewProps, l as CardFace, m as CardFaceProps, n as CardPositionProps, o as CardSize, p as ChromeSuppressionProvider, q as CostDisplay, r as CostDisplayProps, D as DefaultChessPiece, s as DefaultChessPieceProps, t as DefaultEmptySlot, u as DefaultEmptySlotProps, v as DefaultGridCell, w as DefaultGridCellProps, x as DefaultGridPiece, y as DefaultGridPieceProps, z as DefaultNetworkEdge, E as DefaultNetworkEdgeProps, F as DefaultNetworkNode, G as DefaultNetworkNodeProps, H as DefaultNetworkPiece, I as DefaultNetworkPieceProps, J as DefaultSlotItem, K as DefaultSlotItemProps, L as DefaultSlotOccupant, M as DefaultSlotOccupantProps, N as DefaultTrackConnection, O as DefaultTrackConnectionProps, P as DefaultTrackJump, Q as DefaultTrackJumpProps, R as DefaultTrackPiece, S as DefaultTrackPieceProps, T as DefaultTrackSpace, U as DefaultTrackSpaceProps, V as DefaultZone, W as DefaultZonePiece, X as DefaultZonePieceProps, Y as DefaultZonePieces, Z as DefaultZonePiecesProps, _ as DefaultZoneProps, $ as Dialog, a0 as DialogClose, a1 as DialogContent, a2 as DialogDescription, a3 as DialogFooter, a4 as DialogHeader, a5 as DialogOverlay, a6 as DialogPortal, a7 as DialogTitle, a8 as DialogTrigger, a9 as DiceRoller, aa as DiceRollerProps, ab as DragPhase, ac as Drawer, ad as DrawerClose, ae as DrawerContent, af as DrawerDescription, ag as DrawerFooter, ah as DrawerHeader, ai as DrawerOverlay, aj as DrawerPortal, ak as DrawerTitle, al as DrawerTrigger, am as ErrorBoundary, an as ErrorBoundaryProps, ao as GameEndDisplay, ap as GameEndDisplayProps, aq as GameSkeleton, ar as GameSkeletonProps, as as Hand, at as HandDock, au as HandDockMode, av as HandDockPlacement, aw as HandDockPresentation, ax as HandDockProps, ay as HandDockToggleContext, az as HandLayout, aA as HandProps, aB as Input, aC as InteractiveSquareEdge, aD as InteractiveSquareVertex, aE as Label, aF as MoreActions, aG as MoreActionsProps, aH as NetworkEdge, aI as NetworkGraph, aJ as NetworkGraphProps, aK as NetworkNode, aL as NetworkPiece, aM as Panel, aN as PanelActions, aO as PanelBody, aP as PanelDescription, aQ as PanelDescriptionProps, aR as PanelHeader, aS as PanelPartProps, aT as PanelRoot, aU as PanelRootProps, aV as PanelTitle, aW as PanelTitleProps, aX as PanelTone, aY as PhaseIndicator, aZ as PhaseIndicatorProps, a_ as PlayArea, a$ as PlayAreaProps, b0 as PlayerScore, 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 SlotDefinition, bc as SlotOccupant, bd as SlotSystem, be as SlotSystemProps, bf as SquareEdgePosition, bg as SquareGrid, bh as SquareGridBoardProps, bi as SquareGridProps, bj as SquareVertexPosition, bk as StagingZone, bl as StagingZoneProps, bm as ThemedButton, bn as ThemedButtonProps, bo as Toast, bp as ToastActions, bq as ToastActionsProps, br as ToastActionsValue, bs as ToastNotification, bt as ToastProvider, bu as ToastType, bv as TrackBoard, bw as TrackBoardProps, bz as UseHandLayoutOptions, bA as UseHandLayoutReturn, bB as ZoneDefinition, bC as ZoneHighlightType, bD as ZoneMap, bE as ZoneMapProps, bF as ZonePiece, bG as ZoneShape, bH as buttonStyle, bI as chipStyle, bJ as intentForVariant, bK as motionDuration, bL as playerColor, bM as surfaceStyle, bN as toAlgebraic, bO as toNumeric, bP as useCardDragSurface, bQ as useChromeSuppression } from './components-B7hFaEn_.js';
3
- import { a3 as Theme } from './hex-board-view-BFlWDb9k.js';
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 DefaultHexEdge, i as DefaultHexEdgeProps, j as DefaultHexTile, k as DefaultHexTileProps, l as DefaultHexVertex, m as DefaultHexVertexProps, E as EdgePosition, n as Elevation, F as FoundationColor, G as GeneratedHexBoardInput, o as GeneratedHexSpaceStateLike, p as GeneratedSquareBoardInput, q as GeneratedSquareSpaceStateLike, r as GeneratedTiledEdgeStateLike, s as GeneratedTiledVertexStateLike, H as HexBoardInput, t as HexBoardView, u as HexBoardViewTile, v as HexGrid, w as HexGridBoardProps, x as HexGridProps, y as HexOrientation, z as HexTileGeometry, I as IntentColor, J as InteractionVisualState, K as InteractiveHexEdge, L as InteractiveHexVertex, M as InteractiveTargetLayer, N as InteractiveTargetRenderState, P as Motion, Q as NormalizedHexBoard, R as NormalizedHexEdgeOf, S as NormalizedHexTileOf, T as NormalizedHexVertexOf, U as NormalizedSquareBoard, V as NormalizedSquareCellOf, W as NormalizedSquareEdgeOf, X as NormalizedSquarePieceOf, Y as NormalizedSquareVertexOf, Z as PlayerColor, _ as Radius, $ as SemanticColor, a0 as Space, a1 as SquareBoardInput, a2 as TargetIntent, a4 as ThemeMeta, a5 as ThemeOverride, a6 as Typography, a7 as createHexBoardView, a8 as dropTargetVisualStateDataAttributes, a9 as hexUtils, aa as mergeTheme, ab as normalizeHexBoardInput, ac as normalizeSquareBoardInput, ad as visualStateDataAttributes } from './hex-board-view-BFlWDb9k.js';
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-DRalAWzY.js';
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';
3
+ import { ag as Theme } from './hex-board-view-aKkblDp6.js';
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
+ 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';
6
6
  import { CSSProperties } from 'react';
7
- export { H as HandInteractionPolicy, a as HandLayoutKind, b as HandLayoutPolicy, c as HandView, d as HandViewProps } from './HandView-x8MhbhFl.js';
7
+ export { H as HandInteractionPolicy, a as HandLayoutKind, b as HandLayoutPolicy, c as HandView, d as HandViewProps } from './HandView-Bi2lxzQP.js';
8
8
  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';
9
9
  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, j as HexColor, 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, K as hexColor, L as isHexColor, M as parseHexColor } from './player-state-Cqpyeql0.js';
10
10
  export { CardCollection, ViewCard, ViewSlotOccupant } from './types.js';
11
+ export { P as ProjectedGameEvent, S as SystemActionEvent } from './plugin-state-BRH3UiUp.js';
11
12
  import 'react/jsx-runtime';
12
13
  import 'framer-motion';
13
14
  import 'vaul';
14
15
  import '@radix-ui/react-dialog';
15
16
  import '@radix-ui/react-label';
16
17
  import '@radix-ui/react-select';
18
+ import './runtime-Dkfm1x2r.js';
19
+ import 'zod';
17
20
  import './primitive-props-BNHDkgd7.js';
18
21
 
19
22
  /**
package/dist/ui.js CHANGED
@@ -5,10 +5,11 @@ import {
5
5
  parseHexColor,
6
6
  toTrackBoardData,
7
7
  useBoardTheme
8
- } from "./chunk-XZ667T4K.js";
8
+ } from "./chunk-UC2UXAC6.js";
9
9
  import {
10
10
  ActionButton,
11
11
  ActionGroup,
12
+ ActionHelp,
12
13
  ActionPanel,
13
14
  CardDragSurface,
14
15
  CardDropTargetView,
@@ -56,8 +57,9 @@ import {
56
57
  DrawerTitle,
57
58
  DrawerTrigger,
58
59
  ErrorBoundary,
59
- GameEndDisplay,
60
+ GameEventLog,
60
61
  GameSkeleton,
62
+ GuidancePanel,
61
63
  Hand,
62
64
  HandDock,
63
65
  HandView,
@@ -67,6 +69,7 @@ import {
67
69
  MobileHandTrayProvider,
68
70
  MoreActions,
69
71
  NetworkGraph,
72
+ OutcomeDialog,
70
73
  Panel,
71
74
  PanelActions,
72
75
  PanelBody,
@@ -88,9 +91,12 @@ import {
88
91
  SelectContent,
89
92
  SelectItem,
90
93
  SelectTrigger,
94
+ SetupChecklist,
91
95
  SlotSystem,
92
96
  SquareGrid,
93
97
  StagingZone,
98
+ StandingsTable,
99
+ SystemActionSummary,
94
100
  ThemeProvider,
95
101
  ThemedButton,
96
102
  Toast,
@@ -131,12 +137,13 @@ import {
131
137
  useTheme,
132
138
  useThemeCssVars,
133
139
  visualStateDataAttributes
134
- } from "./chunk-E3X552YM.js";
140
+ } from "./chunk-2TRZSZGD.js";
135
141
  import "./chunk-VDXOF4FW.js";
136
142
  import "./chunk-PZ5AY32C.js";
137
143
  export {
138
144
  ActionButton,
139
145
  ActionGroup,
146
+ ActionHelp,
140
147
  ActionPanel,
141
148
  CardDragSurface,
142
149
  CardDropTargetView,
@@ -184,8 +191,9 @@ export {
184
191
  DrawerTitle,
185
192
  DrawerTrigger,
186
193
  ErrorBoundary,
187
- GameEndDisplay,
194
+ GameEventLog,
188
195
  GameSkeleton,
196
+ GuidancePanel,
189
197
  Hand,
190
198
  HandDock,
191
199
  HandView,
@@ -195,6 +203,7 @@ export {
195
203
  MobileHandTrayProvider,
196
204
  MoreActions,
197
205
  NetworkGraph,
206
+ OutcomeDialog,
198
207
  Panel,
199
208
  PanelActions,
200
209
  PanelBody,
@@ -216,9 +225,12 @@ export {
216
225
  SelectContent,
217
226
  SelectItem,
218
227
  SelectTrigger,
228
+ SetupChecklist,
219
229
  SlotSystem,
220
230
  SquareGrid,
221
231
  StagingZone,
232
+ StandingsTable,
233
+ SystemActionSummary,
222
234
  ThemeProvider,
223
235
  ThemedButton,
224
236
  Toast,