@dreamboard-games/sdk 0.4.0-alpha.4 → 0.4.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/REFERENCE.md +1089 -123
- package/dist/{HandView-x8MhbhFl.d.ts → HandView-Bi2lxzQP.d.ts} +3 -3
- package/dist/{ThemeProvider-DRalAWzY.d.ts → ThemeProvider-CElaL2ik.d.ts} +1 -1
- package/dist/authoring/index.js +2 -2
- package/dist/browser-interaction.js +1 -1
- package/dist/{chunk-E3X552YM.js → chunk-2TRZSZGD.js} +1061 -425
- package/dist/chunk-2TRZSZGD.js.map +1 -0
- package/dist/{chunk-CP35NPPY.js → chunk-52DH7VQF.js} +61 -7
- package/dist/chunk-52DH7VQF.js.map +1 -0
- package/dist/{chunk-N6ZDIMRB.js → chunk-B2YBS3SG.js} +1 -1
- package/dist/chunk-B2YBS3SG.js.map +1 -0
- package/dist/{chunk-LKJLAGND.js → chunk-DDST4U2P.js} +2 -2
- package/dist/{chunk-SUMZ5OEH.js → chunk-HK3WN4U7.js} +2 -2
- package/dist/{chunk-SUMZ5OEH.js.map → chunk-HK3WN4U7.js.map} +1 -1
- package/dist/{chunk-QOFFRHZR.js → chunk-OV6JC2BM.js} +64 -28
- package/dist/chunk-OV6JC2BM.js.map +1 -0
- package/dist/{chunk-K5ZRJTZZ.js → chunk-PAPIAMYX.js} +6 -3
- package/dist/chunk-PAPIAMYX.js.map +1 -0
- package/dist/{chunk-TTISZQNI.js → chunk-SOBNI363.js} +39 -28
- package/dist/chunk-SOBNI363.js.map +1 -0
- package/dist/{chunk-Y6Y2YABD.js → chunk-TGMXBRKY.js} +22 -6
- package/dist/chunk-TGMXBRKY.js.map +1 -0
- package/dist/{chunk-XZ667T4K.js → chunk-UC2UXAC6.js} +2 -2
- package/dist/{chunk-O6M6PN4E.js → chunk-UUQNOGZV.js} +94 -53
- package/dist/chunk-UUQNOGZV.js.map +1 -0
- package/dist/{chunk-WUIVY2KE.js → chunk-WHR5UW3F.js} +1 -1
- package/dist/chunk-WHR5UW3F.js.map +1 -0
- package/dist/codegen.d.ts +13 -0
- package/dist/codegen.js +1 -1
- package/dist/{components-B7hFaEn_.d.ts → components-BTwSIjXj.d.ts} +77 -206
- package/dist/{hex-board-view-BFlWDb9k.d.ts → hex-board-view-aKkblDp6.d.ts} +180 -1
- package/dist/{index-gjxQichK.d.ts → index-CFTjJIXd.d.ts} +5 -4
- package/dist/{index.d-BL3bT5lt.d.ts → index.d-DMASeF6M.d.ts} +294 -27
- package/dist/index.js +2 -2
- package/dist/package-set.d.ts +2 -2
- package/dist/package-set.js +2 -2
- package/dist/{runtime-api-BJharVaj.d.ts → plugin-state-BRH3UiUp.d.ts} +19 -3
- package/dist/{protocol-BP193lva.d.ts → protocol-835hEGne.d.ts} +42 -1
- package/dist/reducer/advanced.d.ts +4 -2
- package/dist/reducer/advanced.js +1 -1
- package/dist/reducer-contract.d.ts +1 -1
- package/dist/reducer-contract.js +2 -2
- package/dist/reducer.d.ts +10 -4
- package/dist/reducer.js +317 -15
- package/dist/reducer.js.map +1 -1
- package/dist/runtime/primitives.d.ts +32 -7
- package/dist/runtime/primitives.js +9 -5
- package/dist/runtime/runtime-api.d.ts +1 -1
- package/dist/runtime/workspace-contract.d.ts +7 -7
- package/dist/runtime/workspace-contract.js +6 -6
- package/dist/runtime-Dkfm1x2r.d.ts +1670 -0
- package/dist/runtime.d.ts +10 -9
- package/dist/runtime.js +240 -16
- package/dist/runtime.js.map +1 -1
- package/dist/testing.d.ts +78 -15
- package/dist/testing.js +69 -8
- package/dist/testing.js.map +1 -1
- package/dist/{types-CYeN0wLK.d.ts → types-aI4V9CWe.d.ts} +5 -5
- package/dist/types.d.ts +13 -0
- package/dist/ui/components.d.ts +6 -3
- package/dist/ui/components.js +15 -3
- package/dist/ui/plugin-styles.css +2 -2
- package/dist/{ui-contract-B4NjRlvC.d.ts → ui-contract-Ue6SywvO.d.ts} +24 -10
- package/dist/ui.d.ts +9 -6
- package/dist/ui.js +16 -4
- package/dist/views-32rSsfeU.d.ts +1559 -0
- package/package.json +21 -20
- package/dist/chunk-CP35NPPY.js.map +0 -1
- package/dist/chunk-E3X552YM.js.map +0 -1
- package/dist/chunk-K5ZRJTZZ.js.map +0 -1
- package/dist/chunk-N6ZDIMRB.js.map +0 -1
- package/dist/chunk-O6M6PN4E.js.map +0 -1
- package/dist/chunk-QOFFRHZR.js.map +0 -1
- package/dist/chunk-TTISZQNI.js.map +0 -1
- package/dist/chunk-WUIVY2KE.js.map +0 -1
- package/dist/chunk-Y6Y2YABD.js.map +0 -1
- package/dist/views-fn2RuXOx.d.ts +0 -3168
- /package/dist/{chunk-LKJLAGND.js.map → chunk-DDST4U2P.js.map} +0 -0
- /package/dist/{chunk-XZ667T4K.js.map → chunk-UC2UXAC6.js.map} +0 -0
|
@@ -1,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 {
|
|
5
|
-
import { a as ThemePresetId } from './ThemeProvider-
|
|
6
|
-
import {
|
|
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
|
|
317
|
-
edge?: readonly
|
|
318
|
-
vertex?: readonly
|
|
319
|
-
space?: readonly
|
|
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 {
|
|
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 {
|
|
2
|
-
export { A as ActionButton, a as ActionButtonProps, b as ActionGroup, c as ActionGroupProps, d as
|
|
3
|
-
import {
|
|
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
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
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-
|
|
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
|
-
|
|
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,
|