@dreamboard-games/sdk 0.4.0-alpha.3 → 0.4.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/REFERENCE.md +6 -22
- package/dist/HandView-x8MhbhFl.d.ts +79 -0
- package/dist/{ResourceCounter-BuiNstXs.d.ts → ResourceCounter-BFxJknqp.d.ts} +1 -9
- package/dist/{ThemeProvider-B1sIoBlX.d.ts → ThemeProvider-DRalAWzY.d.ts} +1 -1
- package/dist/authoring/index.js +1 -1
- package/dist/{chunk-45FI6XII.js → chunk-E3X552YM.js} +3 -11
- package/dist/chunk-E3X552YM.js.map +1 -0
- package/dist/{chunk-BKD7XAWB.js → chunk-LKJLAGND.js} +2 -2
- package/dist/{chunk-WOWFONLZ.js → chunk-QOFFRHZR.js} +6 -6
- package/dist/chunk-QOFFRHZR.js.map +1 -0
- package/dist/{chunk-DQ7GCD6C.js → chunk-SUMZ5OEH.js} +2 -2
- package/dist/{chunk-DQ7GCD6C.js.map → chunk-SUMZ5OEH.js.map} +1 -1
- package/dist/{chunk-6JQFGSLD.js → chunk-TTISZQNI.js} +13 -15
- package/dist/{chunk-6JQFGSLD.js.map → chunk-TTISZQNI.js.map} +1 -1
- package/dist/{chunk-FWVV2X74.js → chunk-XZ667T4K.js} +2 -2
- package/dist/{components-BbWPnZCF.d.ts → components-B7hFaEn_.d.ts} +3 -3
- package/dist/{hex-board-view-Kz9Q_zsv.d.ts → hex-board-view-BFlWDb9k.d.ts} +116 -1
- package/dist/{index-BLwlj7mO.d.ts → index-gjxQichK.d.ts} +4 -3
- package/dist/index.js +2 -2
- package/dist/package-set.d.ts +2 -2
- package/dist/package-set.js +2 -2
- package/dist/runtime/primitives.d.ts +20 -23
- package/dist/runtime/primitives.js +3 -3
- package/dist/runtime/workspace-contract.d.ts +6 -6
- package/dist/runtime/workspace-contract.js +4 -4
- package/dist/runtime.d.ts +6 -6
- package/dist/runtime.js +4 -4
- package/dist/ui/components.d.ts +4 -4
- package/dist/ui/components.js +1 -3
- package/dist/ui/plugin-styles.css +1 -1
- package/dist/{ui-contract-CY7cxsCC.d.ts → ui-contract-B4NjRlvC.d.ts} +2 -2
- package/dist/ui.d.ts +7 -7
- package/dist/ui.js +2 -4
- package/package.json +1 -1
- package/dist/HandView-PYDmehVD.d.ts +0 -193
- package/dist/chunk-45FI6XII.js.map +0 -1
- package/dist/chunk-WOWFONLZ.js.map +0 -1
- /package/dist/{chunk-BKD7XAWB.js.map → chunk-LKJLAGND.js.map} +0 -0
- /package/dist/{chunk-FWVV2X74.js.map → chunk-XZ667T4K.js.map} +0 -0
|
@@ -524,6 +524,121 @@ type NormalizedSquareBoard<TBoard extends AnySquareBoardInput> = Pick<SquareBoar
|
|
|
524
524
|
declare function normalizeHexBoardInput<TBoard extends AnyHexBoardInput>(board: TBoard): NormalizedHexBoard<TBoard>;
|
|
525
525
|
declare function normalizeSquareBoardInput<TBoard extends AnySquareBoardInput>(board: TBoard): NormalizedSquareBoard<TBoard>;
|
|
526
526
|
|
|
527
|
+
/**
|
|
528
|
+
* Controlled visual state contract for `@dreamboard-games/sdk/ui` components.
|
|
529
|
+
*
|
|
530
|
+
* The SDK is Dreamboard-interaction unaware: components consume `display data`
|
|
531
|
+
* and `controlled semantic states`. Runtime adapters compute these states from
|
|
532
|
+
* descriptors/drafts and pass them in as plain props.
|
|
533
|
+
*/
|
|
534
|
+
/**
|
|
535
|
+
* Generic semantic state attached to a presentational component.
|
|
536
|
+
*
|
|
537
|
+
* Every flag is optional and renders as a stable `data-*` attribute on the
|
|
538
|
+
* underlying element so that selectors, snapshot diffs and accessibility
|
|
539
|
+
* announcements can react to state without inspecting class strings.
|
|
540
|
+
*/
|
|
541
|
+
interface InteractionVisualState {
|
|
542
|
+
/** Caller may activate this surface right now. */
|
|
543
|
+
eligible?: boolean;
|
|
544
|
+
/**
|
|
545
|
+
* Eligible *and* a meaningful subset — i.e. at least one peer surface is not
|
|
546
|
+
* eligible. Use this (rather than `eligible`) to drive a "highlight the
|
|
547
|
+
* playable cards" affordance: when every card in a hand is a legal target
|
|
548
|
+
* (e.g. a pass where any card may be chosen, or a turn where you may play
|
|
549
|
+
* anything) the highlight carries no information, so `distinctlyEligible` is
|
|
550
|
+
* `false` for all of them and the ring naturally disappears. `eligible`
|
|
551
|
+
* keeps its literal meaning ("is a legal target") for dimming/logic.
|
|
552
|
+
*/
|
|
553
|
+
distinctlyEligible?: boolean;
|
|
554
|
+
/** Currently chosen as part of a draft selection or focus state. */
|
|
555
|
+
selected?: boolean;
|
|
556
|
+
/** Surface is non-interactive and visually muted. */
|
|
557
|
+
disabled?: boolean;
|
|
558
|
+
/** Caller's draft is invalid — render an error tint without removing the surface. */
|
|
559
|
+
invalid?: boolean;
|
|
560
|
+
/** Action has been submitted; render a settled/locked feedback state. */
|
|
561
|
+
submitted?: boolean;
|
|
562
|
+
/** Surface is being previewed (long-press, hover hold) without commitment. */
|
|
563
|
+
previewing?: boolean;
|
|
564
|
+
/**
|
|
565
|
+
* Optional 0..1 progress reading for an in-flight UI intent (swipe, hold,
|
|
566
|
+
* etc.). Components may render this as a fill, scale or halo without owning
|
|
567
|
+
* the gesture pipeline themselves.
|
|
568
|
+
*/
|
|
569
|
+
intentProgress?: number;
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* Generic UI intent emitted by SDK components.
|
|
573
|
+
*
|
|
574
|
+
* Components do not know what `activate`/`drop` mean in Dreamboard terms —
|
|
575
|
+
* that mapping belongs to a runtime adapter. They only emit when a generic
|
|
576
|
+
* pointer/keyboard gesture completes.
|
|
577
|
+
*
|
|
578
|
+
* - `activate` is a single-target commit produced by a desktop click or a
|
|
579
|
+
* keyboard activation in `direct-activate` mode.
|
|
580
|
+
* - `drop` is a card→target commit produced by mobile drag or keyboard drop
|
|
581
|
+
* in `drag-to-target` mode. The opaque `targetId` is registered by a
|
|
582
|
+
* `CardDropTargetView` and resolved against pointer geometry inside the
|
|
583
|
+
* `CardDragSurface`.
|
|
584
|
+
* - `previewStart`/`previewEnd` bracket a long-press inspection that does
|
|
585
|
+
* not commit.
|
|
586
|
+
*/
|
|
587
|
+
type CardIntent<CardId extends string = string, TargetId extends string = string> = {
|
|
588
|
+
type: "activate";
|
|
589
|
+
cardId: CardId;
|
|
590
|
+
source: "tap" | "keyboard";
|
|
591
|
+
} | {
|
|
592
|
+
type: "previewStart";
|
|
593
|
+
cardId: CardId;
|
|
594
|
+
} | {
|
|
595
|
+
type: "previewEnd";
|
|
596
|
+
cardId: CardId;
|
|
597
|
+
} | {
|
|
598
|
+
type: "drop";
|
|
599
|
+
cardId: CardId;
|
|
600
|
+
targetId: TargetId;
|
|
601
|
+
source: "pointer" | "keyboard";
|
|
602
|
+
};
|
|
603
|
+
/**
|
|
604
|
+
* Generic UI intent emitted for a board target (space/edge/vertex).
|
|
605
|
+
*/
|
|
606
|
+
type TargetIntent<TargetId extends string = string> = {
|
|
607
|
+
type: "activate";
|
|
608
|
+
targetId: TargetId;
|
|
609
|
+
source: "tap" | "keyboard";
|
|
610
|
+
} | {
|
|
611
|
+
type: "previewStart";
|
|
612
|
+
targetId: TargetId;
|
|
613
|
+
} | {
|
|
614
|
+
type: "previewEnd";
|
|
615
|
+
targetId: TargetId;
|
|
616
|
+
};
|
|
617
|
+
/**
|
|
618
|
+
* Controlled visual state for a card drop target rendered through
|
|
619
|
+
* `CardDropTargetView`.
|
|
620
|
+
*
|
|
621
|
+
* `active` is `true` when any card is currently being dragged anywhere on
|
|
622
|
+
* the surface (eligible target should advertise itself). `over` is `true`
|
|
623
|
+
* only for the target that the lifted pointer would currently drop on.
|
|
624
|
+
*/
|
|
625
|
+
interface CardDropTargetVisualState extends InteractionVisualState {
|
|
626
|
+
active?: boolean;
|
|
627
|
+
over?: boolean;
|
|
628
|
+
}
|
|
629
|
+
/**
|
|
630
|
+
* Build the `data-*` attribute bag for an {@link InteractionVisualState} so
|
|
631
|
+
* that components apply a single consistent attribute surface.
|
|
632
|
+
*
|
|
633
|
+
* `undefined` values are emitted (rather than `false`) so that CSS
|
|
634
|
+
* `[data-…="true"]` selectors do not match by mistake.
|
|
635
|
+
*/
|
|
636
|
+
declare function visualStateDataAttributes(state: InteractionVisualState | undefined): Readonly<Record<string, string | undefined>>;
|
|
637
|
+
/**
|
|
638
|
+
* Build the `data-*` attribute bag for a {@link CardDropTargetVisualState}.
|
|
639
|
+
*/
|
|
640
|
+
declare function dropTargetVisualStateDataAttributes(state: CardDropTargetVisualState | undefined): Readonly<Record<string, string | undefined>>;
|
|
641
|
+
|
|
527
642
|
type BoardTargetKind = "edge" | "vertex" | "space" | "tile";
|
|
528
643
|
interface InteractiveTargetState {
|
|
529
644
|
kind?: BoardTargetKind;
|
|
@@ -931,4 +1046,4 @@ declare function createHexBoardView<const TBoard extends AnyHexBoardInput, const
|
|
|
931
1046
|
id: BoardSpaceIdOf<TBoard>;
|
|
932
1047
|
}>(board: TBoard, options: CreateHexBoardViewOptions<TSpaceView>): HexBoardView<TBoard, TSpaceView>;
|
|
933
1048
|
|
|
934
|
-
export { type
|
|
1049
|
+
export { type SemanticColor as $, type AnyHexBoardInput as A, type BoardEdgeIdOf as B, type CardDropTargetVisualState as C, DefaultHexEdge as D, type EdgePosition as E, type FoundationColor as F, type GeneratedHexBoardInput as G, type HexBoardInput as H, type IntentColor as I, type InteractionVisualState as J, type InteractiveHexEdge as K, type InteractiveHexVertex as L, type InteractiveTargetLayer as M, type InteractiveTargetRenderState as N, type InteractiveTargetState as O, type Motion as P, type NormalizedHexBoard as Q, type NormalizedHexEdgeOf as R, type NormalizedHexTileOf as S, type NormalizedHexVertexOf as T, type NormalizedSquareBoard as U, type NormalizedSquareCellOf as V, type NormalizedSquareEdgeOf as W, type NormalizedSquarePieceOf as X, type NormalizedSquareVertexOf as Y, type PlayerColor as Z, type Radius as _, type AnySquareBoardInput as a, type Space as a0, type SquareBoardInput as a1, type TargetIntent as a2, type Theme as a3, type ThemeMeta as a4, type ThemeOverride as a5, type Typography as a6, createHexBoardView as a7, dropTargetVisualStateDataAttributes as a8, hexUtils as a9, mergeTheme as aa, normalizeHexBoardInput as ab, normalizeSquareBoardInput as ac, visualStateDataAttributes as ad, type AuthoredHexBoardInput as b, type AuthoredSquareBoardInput as c, type BoardSpaceIdOf as d, type BoardVertexIdOf as e, type CardIntent as f, type ColorRamp as g, type ComponentTokens as h, type DefaultHexEdgeProps as i, DefaultHexTile as j, type DefaultHexTileProps as k, DefaultHexVertex as l, type DefaultHexVertexProps as m, type Elevation as n, type GeneratedHexSpaceStateLike as o, type GeneratedSquareBoardInput as p, type GeneratedSquareSpaceStateLike as q, type GeneratedTiledEdgeStateLike as r, type GeneratedTiledVertexStateLike as s, type HexBoardView as t, type HexBoardViewTile as u, HexGrid as v, type HexGridBoardProps as w, type HexGridProps as x, type HexOrientation as y, type HexTileGeometry as z };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactNode, ReactElement, ButtonHTMLAttributes } from 'react';
|
|
2
|
-
import { l as BoardSpaceTargetProps, bh as ZoneListProps, b1 as UIContract } from './ui-contract-
|
|
3
|
-
import {
|
|
2
|
+
import { l as BoardSpaceTargetProps, bh as ZoneListProps, b1 as UIContract } from './ui-contract-B4NjRlvC.js';
|
|
3
|
+
import { J as InteractionVisualState } from './hex-board-view-BFlWDb9k.js';
|
|
4
|
+
import { H as HandRole } from './ResourceCounter-BFxJknqp.js';
|
|
4
5
|
|
|
5
6
|
interface ClientParamSchema {
|
|
6
7
|
safeParse: (value: unknown) => {
|
|
@@ -95,7 +96,7 @@ type WorkspaceHandSummaryComponent = WorkspaceInteractionSlotComponent<{
|
|
|
95
96
|
}>;
|
|
96
97
|
interface WorkspaceHandSurface<Zone extends string, Card> {
|
|
97
98
|
readonly Hand: WorkspaceInteractionSlotComponent<{
|
|
98
|
-
children: ReactNode;
|
|
99
|
+
children: ReactNode | ((card: Card, state: InteractionVisualState) => ReactNode);
|
|
99
100
|
}>;
|
|
100
101
|
readonly Cards: WorkspaceHandCardsComponent<Card>;
|
|
101
102
|
readonly Summary: WorkspaceHandSummaryComponent;
|
package/dist/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
DREAMBOARD_SDK_PACKAGES,
|
|
3
3
|
DREAMBOARD_SDK_PACKAGE_SET,
|
|
4
4
|
DREAMBOARD_SDK_VERSION
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-LKJLAGND.js";
|
|
6
|
+
import "./chunk-SUMZ5OEH.js";
|
|
7
7
|
import "./chunk-PZ5AY32C.js";
|
|
8
8
|
export {
|
|
9
9
|
DREAMBOARD_SDK_PACKAGES,
|
package/dist/package-set.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const DREAMBOARD_SDK_VERSION: "0.4.0-alpha.
|
|
1
|
+
declare const DREAMBOARD_SDK_VERSION: "0.4.0-alpha.4";
|
|
2
2
|
declare const DREAMBOARD_SDK_PACKAGES: {
|
|
3
|
-
readonly "@dreamboard-games/sdk": "0.4.0-alpha.
|
|
3
|
+
readonly "@dreamboard-games/sdk": "0.4.0-alpha.4";
|
|
4
4
|
};
|
|
5
5
|
type DreamboardSdkPackageName = keyof typeof DREAMBOARD_SDK_PACKAGES;
|
|
6
6
|
type DreamboardSdkPackageSet = {
|
package/dist/package-set.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
DREAMBOARD_SDK_PACKAGES,
|
|
3
3
|
DREAMBOARD_SDK_PACKAGE_SET,
|
|
4
4
|
DREAMBOARD_SDK_VERSION
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-LKJLAGND.js";
|
|
6
|
+
import "./chunk-SUMZ5OEH.js";
|
|
7
7
|
import "./chunk-PZ5AY32C.js";
|
|
8
8
|
export {
|
|
9
9
|
DREAMBOARD_SDK_PACKAGES,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { bd as ZoneCardRenderItem } from '../ui-contract-
|
|
2
|
-
export { B as Board, a as BoardEdgeTarget, b as BoardEdgeTargetProps, c as BoardHexGrid, d as BoardHexGridInteractionFilter, e as BoardHexGridInteractions, f as BoardHexGridProps, g as BoardHexView, h as BoardHexViewProps, i as BoardRoot, j as BoardRootProps, k as BoardSpaceTarget, l as BoardSpaceTargetProps, m as BoardState, n as BoardStateProps, o as BoardTarget, p as BoardTargetExtraInputs, q as BoardTargetProps, r as BoardVertexTarget, s as BoardVertexTargetProps, D as Dice, t as DiceComponents, u as DiceRoot, v as DiceRootProps, w as DiceState, x as DiceValue, y as DiceValues, z as DiceValuesProps, G as Game, C as GameActiveActionState, E as GameChrome, F as GameChromeProps, H as GameChromeState, I as GameMeState, J as GamePendingInputState, K as GamePlayer, L as GamePlayerEntry, M as GamePlayersState, N as GameRenderState, O as GameRoot, P as GameRootProps, Q as GameTurnState, R as GameViewport, S as GameViewportProps, T as Interaction, U as InteractionCardInput, V as InteractionCardInputProps, W as InteractionCardInputRenderState, X as InteractionDescription, Y as InteractionDialog, Z as InteractionDialogProps, _ as InteractionDialogRenderState, $ as InteractionDialogState, a0 as InteractionFieldPrimitiveProps, a1 as InteractionFormPrimitive, a2 as InteractionFormPrimitiveProps, a3 as InteractionInput, a4 as InteractionInputProps, a5 as InteractionLabel, a6 as InteractionPartProps, a7 as InteractionRoot, a8 as InteractionRootProps, a9 as InteractionRoute, aa as InteractionRoutes, ab as InteractionRoutesMap, ac as InteractionRoutesProps, ad as InteractionState, ae as InteractionStateProps, af as InteractionStateSnapshot, ag as InteractionSubmit, ah as InteractionSubmitProps, ai as InteractionSwitch, aj as InteractionSwitchProps, ak as InteractionSwitchRenderState, al as InteractionSwitchRouteMap, am as InteractionTrigger, an as InteractionTriggerProps, ao as InteractionUnavailableMessage, ap as InteractionValidationMessage, aq as Phase, ar as PhaseFallback, as as PhaseRouteMap, at as PhaseSwitch, au as PhaseSwitchProps, av as PlayerRoster, aw as PlayerRosterBadge, ax as PlayerRosterBadges, ay as PlayerRosterComponents, az as PlayerRosterEmpty, aA as PlayerRosterEntry, aB as PlayerRosterList, aC as PlayerRosterListProps, aD as PlayerRosterName, aE as PlayerRosterPartProps, aF as PlayerRosterRoot, aG as PlayerRosterRootProps, aH as PlayerRosterScore, aI as Prompt, aJ as PromptDialog, aK as PromptDialogProps, aL as PromptDialogRenderState, aM as PromptDialogState, aN as PromptInbox, aO as PromptInboxEmpty, aP as PromptInboxItems, aQ as PromptInboxItemsProps, aR as PromptInboxRoot, aS as PromptMessage, aT as PromptOption, aU as PromptOptionProps, aV as PromptOptionRenderItem, aW as PromptOptions, aX as PromptOptionsProps, aY as PromptRoot, aZ as PromptRootProps, a_ as PromptTitle, b0 as UI, b2 as UIRoot, b3 as UIRootProps, b4 as UseZoneCardsOptions, b5 as UseZoneCardsResult, b6 as Zone, b7 as ZoneCardAction, b8 as ZoneCardActionExtraInputs, b9 as ZoneCardActionProps, ba as ZoneCardActionResult, bb as ZoneCardAt, bc as ZoneCardAtProps, be as ZoneItem, bf as ZoneItemProps, bg as ZoneList, bh as ZoneListProps, bi as ZonePileCards, bj as ZonePileCardsProps, bk as ZonePileContextValue, bl as ZonePileCount, bm as ZonePileCountProps, bn as ZonePileDescription, bo as ZonePileDescriptionProps, bp as ZonePileLabel, bq as ZonePileLabelProps, br as ZonePileRoot, bs as ZonePileRootProps, bt as ZonePileTrigger, bu as ZonePileTriggerProps, bv as ZoneRoot, bw as ZoneRootProps, bx as ZoneTopCard, by as ZoneTopCardProps, bz as createZoneCardRenderItem, bA as normalizeDiceState, bB as useBoardPrimitiveContext, bC as useDicePrimitiveContext, bD as useGameActionError, bE as useInteractionPrimitiveContext, bF as useOptionalZonePrimitiveContext, bG as useResolvedCardTargetValue, bH as useZoneCardContext, bI as useZoneCards, bJ as useZonePileContext, bK as useZonePrimitiveContext } from '../ui-contract-
|
|
1
|
+
import { bd as ZoneCardRenderItem } from '../ui-contract-B4NjRlvC.js';
|
|
2
|
+
export { B as Board, a as BoardEdgeTarget, b as BoardEdgeTargetProps, c as BoardHexGrid, d as BoardHexGridInteractionFilter, e as BoardHexGridInteractions, f as BoardHexGridProps, g as BoardHexView, h as BoardHexViewProps, i as BoardRoot, j as BoardRootProps, k as BoardSpaceTarget, l as BoardSpaceTargetProps, m as BoardState, n as BoardStateProps, o as BoardTarget, p as BoardTargetExtraInputs, q as BoardTargetProps, r as BoardVertexTarget, s as BoardVertexTargetProps, D as Dice, t as DiceComponents, u as DiceRoot, v as DiceRootProps, w as DiceState, x as DiceValue, y as DiceValues, z as DiceValuesProps, G as Game, C as GameActiveActionState, E as GameChrome, F as GameChromeProps, H as GameChromeState, I as GameMeState, J as GamePendingInputState, K as GamePlayer, L as GamePlayerEntry, M as GamePlayersState, N as GameRenderState, O as GameRoot, P as GameRootProps, Q as GameTurnState, R as GameViewport, S as GameViewportProps, T as Interaction, U as InteractionCardInput, V as InteractionCardInputProps, W as InteractionCardInputRenderState, X as InteractionDescription, Y as InteractionDialog, Z as InteractionDialogProps, _ as InteractionDialogRenderState, $ as InteractionDialogState, a0 as InteractionFieldPrimitiveProps, a1 as InteractionFormPrimitive, a2 as InteractionFormPrimitiveProps, a3 as InteractionInput, a4 as InteractionInputProps, a5 as InteractionLabel, a6 as InteractionPartProps, a7 as InteractionRoot, a8 as InteractionRootProps, a9 as InteractionRoute, aa as InteractionRoutes, ab as InteractionRoutesMap, ac as InteractionRoutesProps, ad as InteractionState, ae as InteractionStateProps, af as InteractionStateSnapshot, ag as InteractionSubmit, ah as InteractionSubmitProps, ai as InteractionSwitch, aj as InteractionSwitchProps, ak as InteractionSwitchRenderState, al as InteractionSwitchRouteMap, am as InteractionTrigger, an as InteractionTriggerProps, ao as InteractionUnavailableMessage, ap as InteractionValidationMessage, aq as Phase, ar as PhaseFallback, as as PhaseRouteMap, at as PhaseSwitch, au as PhaseSwitchProps, av as PlayerRoster, aw as PlayerRosterBadge, ax as PlayerRosterBadges, ay as PlayerRosterComponents, az as PlayerRosterEmpty, aA as PlayerRosterEntry, aB as PlayerRosterList, aC as PlayerRosterListProps, aD as PlayerRosterName, aE as PlayerRosterPartProps, aF as PlayerRosterRoot, aG as PlayerRosterRootProps, aH as PlayerRosterScore, aI as Prompt, aJ as PromptDialog, aK as PromptDialogProps, aL as PromptDialogRenderState, aM as PromptDialogState, aN as PromptInbox, aO as PromptInboxEmpty, aP as PromptInboxItems, aQ as PromptInboxItemsProps, aR as PromptInboxRoot, aS as PromptMessage, aT as PromptOption, aU as PromptOptionProps, aV as PromptOptionRenderItem, aW as PromptOptions, aX as PromptOptionsProps, aY as PromptRoot, aZ as PromptRootProps, a_ as PromptTitle, b0 as UI, b2 as UIRoot, b3 as UIRootProps, b4 as UseZoneCardsOptions, b5 as UseZoneCardsResult, b6 as Zone, b7 as ZoneCardAction, b8 as ZoneCardActionExtraInputs, b9 as ZoneCardActionProps, ba as ZoneCardActionResult, bb as ZoneCardAt, bc as ZoneCardAtProps, be as ZoneItem, bf as ZoneItemProps, bg as ZoneList, bh as ZoneListProps, bi as ZonePileCards, bj as ZonePileCardsProps, bk as ZonePileContextValue, bl as ZonePileCount, bm as ZonePileCountProps, bn as ZonePileDescription, bo as ZonePileDescriptionProps, bp as ZonePileLabel, bq as ZonePileLabelProps, br as ZonePileRoot, bs as ZonePileRootProps, bt as ZonePileTrigger, bu as ZonePileTriggerProps, bv as ZoneRoot, bw as ZoneRootProps, bx as ZoneTopCard, by as ZoneTopCardProps, bz as createZoneCardRenderItem, bA as normalizeDiceState, bB as useBoardPrimitiveContext, bC as useDicePrimitiveContext, bD as useGameActionError, bE as useInteractionPrimitiveContext, bF as useOptionalZonePrimitiveContext, bG as useResolvedCardTargetValue, bH as useZoneCardContext, bI as useZoneCards, bJ as useZonePileContext, bK as useZonePrimitiveContext } from '../ui-contract-B4NjRlvC.js';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import { f as CardIntent, J as InteractionVisualState, C as CardDropTargetVisualState } from '../hex-board-view-BFlWDb9k.js';
|
|
6
|
+
import { a as HandLayoutKind, b as HandLayoutPolicy, H as HandInteractionPolicy } from '../HandView-x8MhbhFl.js';
|
|
6
7
|
import { a as InteractionDescriptor } from '../runtime-api-BJharVaj.js';
|
|
7
8
|
export { P as PrimitiveCommonProps, a as PrimitiveDataAttributes, c as composeEventHandlers, r as renderPrimitive } from '../primitive-props-BNHDkgd7.js';
|
|
8
|
-
import '../
|
|
9
|
-
import '../player-state-Cqpyeql0.js';
|
|
9
|
+
import '../ThemeProvider-DRalAWzY.js';
|
|
10
10
|
import '../types.js';
|
|
11
|
-
import '../ThemeProvider-B1sIoBlX.js';
|
|
12
11
|
import '../attributes-DbvyMbXw.js';
|
|
13
12
|
import '../types-DJj5MJkl.js';
|
|
14
13
|
import '../runtime-api-C6aWo9c0.js';
|
|
14
|
+
import '../player-state-Cqpyeql0.js';
|
|
15
15
|
|
|
16
16
|
interface InteractionDraftReadiness {
|
|
17
17
|
values: Record<string, unknown>;
|
|
@@ -142,29 +142,26 @@ interface HandSurfaceViewProps<Card extends ZoneCardRenderItem> {
|
|
|
142
142
|
/** Visual surface for a single card. */
|
|
143
143
|
renderCard: (card: Card, state: InteractionVisualState, index: number) => ReactNode;
|
|
144
144
|
/**
|
|
145
|
-
* Render-safe slot for selection summary content. Fires during render
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
145
|
+
* Render-safe slot for selection summary content. Fires during render with
|
|
146
|
+
* the latest projected summary so authors can compose count chrome inline.
|
|
147
|
+
* The returned node is hoisted above the hand region. Use this for visible
|
|
148
|
+
* UI; use `onSelectionSummary` only for analytics or external state mirrors
|
|
149
|
+
* that need an effect.
|
|
150
150
|
*/
|
|
151
|
-
|
|
151
|
+
summarySlot?: (summary: HandSelectionSummary) => ReactNode;
|
|
152
152
|
/**
|
|
153
153
|
* Optional selection summary observer. Invoked from a layout effect so
|
|
154
|
-
* consumers may safely call `setState` in response. Use `
|
|
155
|
-
*
|
|
156
|
-
* surprises.
|
|
154
|
+
* consumers may safely call `setState` in response. Use `summarySlot` for
|
|
155
|
+
* inline rendering instead — that path avoids effect-timing surprises.
|
|
157
156
|
*/
|
|
158
157
|
onSelectionSummary?: (summary: HandSelectionSummary) => void;
|
|
159
158
|
/**
|
|
160
|
-
* Render-safe slot for the hand's commit/action chrome
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
* the hand is docked. Use this instead of anchoring the action elsewhere on
|
|
165
|
-
* the board, where the dock would otherwise hide it.
|
|
159
|
+
* Render-safe slot for the hand's commit/action chrome. Receives the same
|
|
160
|
+
* live summary as `summarySlot`. Rendered below the hand inline on desktop
|
|
161
|
+
* and pinned as a sticky footer inside the mobile dock, so the action stays
|
|
162
|
+
* reachable while the hand is docked.
|
|
166
163
|
*/
|
|
167
|
-
|
|
164
|
+
actionsSlot?: (summary: HandSelectionSummary) => ReactNode;
|
|
168
165
|
/** Layout policy forwarded to the SDK HandView. */
|
|
169
166
|
layout?: HandLayoutKind | HandLayoutPolicy;
|
|
170
167
|
/** Mobile interaction policy. Defaults to `direct-activate`. */
|
|
@@ -208,7 +205,7 @@ interface HandSurfaceViewProps<Card extends ZoneCardRenderItem> {
|
|
|
208
205
|
* pieces (`HandView`, `CardDragSurface`, `CardDropTargetView`) come from
|
|
209
206
|
* `@dreamboard-games/sdk/ui` and stay descriptor/draft unaware.
|
|
210
207
|
*/
|
|
211
|
-
declare function HandSurfaceView<Card extends ZoneCardRenderItem>({ zone, cards, renderCard, layout, mobileInteraction, dropTargets, renderDropTargets, cardSize, renderEmpty, ariaLabel, onIntentRouted, onSelectionSummary,
|
|
208
|
+
declare function HandSurfaceView<Card extends ZoneCardRenderItem>({ zone, cards, renderCard, layout, mobileInteraction, dropTargets, renderDropTargets, cardSize, renderEmpty, ariaLabel, onIntentRouted, onSelectionSummary, summarySlot, actionsSlot, className, }: HandSurfaceViewProps<Card>): react_jsx_runtime.JSX.Element;
|
|
212
209
|
/**
|
|
213
210
|
* Convenience helper for builders of generated hand surfaces. Encodes a
|
|
214
211
|
* typed target kind plus value into the opaque `targetId` that the SDK
|
|
@@ -82,10 +82,10 @@ import {
|
|
|
82
82
|
useZoneCards,
|
|
83
83
|
useZonePileContext,
|
|
84
84
|
useZonePrimitiveContext
|
|
85
|
-
} from "../chunk-
|
|
86
|
-
import "../chunk-
|
|
85
|
+
} from "../chunk-QOFFRHZR.js";
|
|
86
|
+
import "../chunk-XZ667T4K.js";
|
|
87
87
|
import "../chunk-T3ZKNUZ7.js";
|
|
88
|
-
import "../chunk-
|
|
88
|
+
import "../chunk-E3X552YM.js";
|
|
89
89
|
import {
|
|
90
90
|
composeEventHandlers,
|
|
91
91
|
renderPrimitive
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { C as ClientParamSchemaMap, D as DefineGameUIConfig, W as WorkspaceBoardSurface, a as WorkspaceBoardSurfaceDescriptor, b as WorkspaceBoardTargetInputSlot, c as WorkspaceCardCollectionSurface, d as WorkspaceCardCollectionSurfaceDescriptor, e as WorkspaceCardInputSlot, f as WorkspaceFormInputSlot, g as WorkspaceHandSurface, h as WorkspaceHandSurfaceDescriptor, i as WorkspaceInteractionFormDescriptor, j as WorkspaceInteractionFormsDescriptor, k as WorkspaceInteractionSlotComponent, l as WorkspacePileSurface, m as WorkspacePileSurfaceDescriptor, n as WorkspacePilesSurfaceDescriptor, o as WorkspaceSurfaceSpec, p as createWorkspaceUIContract } from '../index-
|
|
2
|
-
import { Z as InteractionDialogProps } from '../ui-contract-
|
|
3
|
-
export { f as BoardHexGridProps, h as BoardHexViewProps, l as BoardSpaceTargetProps, A as DreamboardUI, I as GameMeState, M as GamePlayersState, N as GameRenderState, Q as GameTurnState, a$ as TypedGame, b1 as UIContract, b3 as UIRootProps, bd as ZoneCardRenderItem, bh as ZoneListProps } from '../ui-contract-
|
|
4
|
-
export { b as ResourceCounterComponents } from '../ResourceCounter-
|
|
1
|
+
export { C as ClientParamSchemaMap, D as DefineGameUIConfig, W as WorkspaceBoardSurface, a as WorkspaceBoardSurfaceDescriptor, b as WorkspaceBoardTargetInputSlot, c as WorkspaceCardCollectionSurface, d as WorkspaceCardCollectionSurfaceDescriptor, e as WorkspaceCardInputSlot, f as WorkspaceFormInputSlot, g as WorkspaceHandSurface, h as WorkspaceHandSurfaceDescriptor, i as WorkspaceInteractionFormDescriptor, j as WorkspaceInteractionFormsDescriptor, k as WorkspaceInteractionSlotComponent, l as WorkspacePileSurface, m as WorkspacePileSurfaceDescriptor, n as WorkspacePilesSurfaceDescriptor, o as WorkspaceSurfaceSpec, p as createWorkspaceUIContract } from '../index-gjxQichK.js';
|
|
2
|
+
import { Z as InteractionDialogProps } from '../ui-contract-B4NjRlvC.js';
|
|
3
|
+
export { f as BoardHexGridProps, h as BoardHexViewProps, l as BoardSpaceTargetProps, A as DreamboardUI, I as GameMeState, M as GamePlayersState, N as GameRenderState, Q as GameTurnState, a$ as TypedGame, b1 as UIContract, b3 as UIRootProps, bd as ZoneCardRenderItem, bh as ZoneListProps } from '../ui-contract-B4NjRlvC.js';
|
|
4
|
+
export { b as ResourceCounterComponents } from '../ResourceCounter-BFxJknqp.js';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
|
+
import '../hex-board-view-BFlWDb9k.js';
|
|
6
7
|
import 'react/jsx-runtime';
|
|
7
|
-
import '../hex-board-view-Kz9Q_zsv.js';
|
|
8
8
|
import '../player-state-Cqpyeql0.js';
|
|
9
9
|
import '../types.js';
|
|
10
|
-
import '../ThemeProvider-
|
|
10
|
+
import '../ThemeProvider-DRalAWzY.js';
|
|
11
11
|
import '../runtime-api-BJharVaj.js';
|
|
12
12
|
import '../runtime-api-C6aWo9c0.js';
|
|
13
13
|
import '../primitive-props-BNHDkgd7.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createWorkspaceUIContract
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-TTISZQNI.js";
|
|
4
|
+
import "../chunk-QOFFRHZR.js";
|
|
5
|
+
import "../chunk-XZ667T4K.js";
|
|
6
6
|
import "../chunk-T3ZKNUZ7.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-E3X552YM.js";
|
|
8
8
|
import "../chunk-VDXOF4FW.js";
|
|
9
9
|
import "../chunk-O6M6PN4E.js";
|
|
10
10
|
import "../chunk-WUIVY2KE.js";
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { b1 as UIContract$1, A as DreamboardUI$1, a$ as TypedGame$1 } from './ui-contract-
|
|
2
|
-
export { f as BoardHexGridProps, h as BoardHexViewProps, l as BoardSpaceTargetProps, I as GameMeState, M as GamePlayersState, N as GameRenderState, Q as GameTurnState, b3 as UIRootProps, bd as ZoneCardRenderItem, bh as ZoneListProps } from './ui-contract-
|
|
3
|
-
export { C as ClientParamSchemaMap, W as WorkspaceBoardSurface, a as WorkspaceBoardSurfaceDescriptor, b as WorkspaceBoardTargetInputSlot, c as WorkspaceCardCollectionSurface, d as WorkspaceCardCollectionSurfaceDescriptor, e as WorkspaceCardInputSlot, f as WorkspaceFormInputSlot, g as WorkspaceHandSurface, h as WorkspaceHandSurfaceDescriptor, i as WorkspaceInteractionFormDescriptor, j as WorkspaceInteractionFormsDescriptor, k as WorkspaceInteractionSlotComponent, l as WorkspacePileSurface, m as WorkspacePileSurfaceDescriptor, n as WorkspacePilesSurfaceDescriptor, o as WorkspaceSurfaceSpec, p as createWorkspaceUIContract } from './index-
|
|
1
|
+
import { b1 as UIContract$1, A as DreamboardUI$1, a$ as TypedGame$1 } from './ui-contract-B4NjRlvC.js';
|
|
2
|
+
export { f as BoardHexGridProps, h as BoardHexViewProps, l as BoardSpaceTargetProps, I as GameMeState, M as GamePlayersState, N as GameRenderState, Q as GameTurnState, b3 as UIRootProps, bd as ZoneCardRenderItem, bh as ZoneListProps } from './ui-contract-B4NjRlvC.js';
|
|
3
|
+
export { C as ClientParamSchemaMap, W as WorkspaceBoardSurface, a as WorkspaceBoardSurfaceDescriptor, b as WorkspaceBoardTargetInputSlot, c as WorkspaceCardCollectionSurface, d as WorkspaceCardCollectionSurfaceDescriptor, e as WorkspaceCardInputSlot, f as WorkspaceFormInputSlot, g as WorkspaceHandSurface, h as WorkspaceHandSurfaceDescriptor, i as WorkspaceInteractionFormDescriptor, j as WorkspaceInteractionFormsDescriptor, k as WorkspaceInteractionSlotComponent, l as WorkspacePileSurface, m as WorkspacePileSurfaceDescriptor, n as WorkspacePilesSurfaceDescriptor, o as WorkspaceSurfaceSpec, p as createWorkspaceUIContract } from './index-gjxQichK.js';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import react__default from 'react';
|
|
6
6
|
import { c as RuntimeDiagnosticHandler } from './runtime-api-C6aWo9c0.js';
|
|
7
7
|
import { P as PluginRuntimeClient, a as PluginRuntimeClientOptions, b as PluginTransport } from './types-CYeN0wLK.js';
|
|
8
8
|
export { R as RuntimeClock, c as RuntimeIdFactory } from './types-CYeN0wLK.js';
|
|
9
9
|
export { a as InteractionDescriptor } from './runtime-api-BJharVaj.js';
|
|
10
|
-
export { b as ResourceCounterComponents } from './ResourceCounter-
|
|
11
|
-
import './hex-board-view-
|
|
10
|
+
export { b as ResourceCounterComponents } from './ResourceCounter-BFxJknqp.js';
|
|
11
|
+
import './hex-board-view-BFlWDb9k.js';
|
|
12
12
|
import './player-state-Cqpyeql0.js';
|
|
13
13
|
import './types.js';
|
|
14
|
-
import './ThemeProvider-
|
|
14
|
+
import './ThemeProvider-DRalAWzY.js';
|
|
15
15
|
import './primitive-props-BNHDkgd7.js';
|
|
16
16
|
import './attributes-DbvyMbXw.js';
|
|
17
17
|
import './types-DJj5MJkl.js';
|
package/dist/runtime.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createWorkspaceUIContract
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-TTISZQNI.js";
|
|
4
|
+
import "./chunk-QOFFRHZR.js";
|
|
5
|
+
import "./chunk-XZ667T4K.js";
|
|
6
6
|
import "./chunk-T3ZKNUZ7.js";
|
|
7
7
|
import {
|
|
8
8
|
GameSkeleton
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-E3X552YM.js";
|
|
10
10
|
import "./chunk-VDXOF4FW.js";
|
|
11
11
|
import {
|
|
12
12
|
PluginRuntimeBoundary,
|
package/dist/ui/components.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { A as ActionButton, a as ActionButtonProps, b as ActionGroup, c as ActionGroupProps, d as ActionPanel, e as ActionPanelProps, C as CardDragSurface, g as CardDragSurfaceContextValue, h as CardDragSurfaceController, i as CardDragSurfaceProps, j as CardDropTargetView, k as CardDropTargetViewProps, l as CardFace, m as CardFaceProps, 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, 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, bx as TrackPiece, by as TrackSpace, bB as ZoneDefinition, bC as ZoneHighlightType, bD as ZoneMap, bE as ZoneMapProps, bF as ZonePiece, bG as ZoneShape, bN as toAlgebraic, bO as toNumeric, bP as useCardDragSurface, bQ as useChromeSuppression } from '../components-
|
|
2
|
-
export { H as HandInteractionPolicy,
|
|
3
|
-
export { B as BoundResourceCounterRootProps, H as HandRole, M as MobileHandRegistration, a as MobileHandTrayProvider, R as ResourceCounter, b as ResourceCounterComponents, c as ResourceCounterCount, d as ResourceCounterIcon, e as ResourceCounterItem, f as ResourceCounterItemState, g as ResourceCounterLabel, h as ResourceCounterPartProps, i as ResourceCounterProps, j as ResourceCounterRoot, k as ResourceCounterRootProps, l as ResourceDisplayConfig, m as ResourceIconProps, n as createResourceCounter, u as
|
|
4
|
-
export { D as DefaultHexEdge,
|
|
1
|
+
export { A as ActionButton, a as ActionButtonProps, b as ActionGroup, c as ActionGroupProps, d as ActionPanel, e as ActionPanelProps, C as CardDragSurface, g as CardDragSurfaceContextValue, h as CardDragSurfaceController, i as CardDragSurfaceProps, j as CardDropTargetView, k as CardDropTargetViewProps, l as CardFace, m as CardFaceProps, 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, 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, bx as TrackPiece, by as TrackSpace, bB as ZoneDefinition, bC as ZoneHighlightType, bD as ZoneMap, bE as ZoneMapProps, bF as ZonePiece, bG as ZoneShape, bN as toAlgebraic, bO as toNumeric, bP as useCardDragSurface, bQ as useChromeSuppression } from '../components-B7hFaEn_.js';
|
|
2
|
+
export { H as HandInteractionPolicy, a as HandLayoutKind, b as HandLayoutPolicy, c as HandView, d as HandViewProps } from '../HandView-x8MhbhFl.js';
|
|
3
|
+
export { B as BoundResourceCounterRootProps, H as HandRole, M as MobileHandRegistration, a as MobileHandTrayProvider, R as ResourceCounter, b as ResourceCounterComponents, c as ResourceCounterCount, d as ResourceCounterIcon, e as ResourceCounterItem, f as ResourceCounterItemState, g as ResourceCounterLabel, h as ResourceCounterPartProps, i as ResourceCounterProps, j as ResourceCounterRoot, k as ResourceCounterRootProps, l as ResourceDisplayConfig, m as ResourceIconProps, n as createResourceCounter, u as useOverlayInsets, o as useRegisterBottomOverlayInset, p as useRegisterMobileHand } from '../ResourceCounter-BFxJknqp.js';
|
|
4
|
+
export { D as DefaultHexEdge, i as DefaultHexEdgeProps, j as DefaultHexTile, k as DefaultHexTileProps, l as DefaultHexVertex, m as DefaultHexVertexProps, E as EdgePosition, t as HexBoardView, u as HexBoardViewTile, v as HexGrid, w as HexGridBoardProps, x as HexGridProps, y as HexOrientation, z as HexTileGeometry, K as InteractiveHexEdge, L as InteractiveHexVertex, M as InteractiveTargetLayer, N as InteractiveTargetRenderState, a7 as createHexBoardView, a9 as hexUtils } from '../hex-board-view-BFlWDb9k.js';
|
|
5
5
|
export { k as HexEdgeState, l as HexTileState, m as HexVertexState, y as SquareCellState, z as SquareEdgeState, A as SquarePieceState, F as SquareVertexState } from '../player-state-Cqpyeql0.js';
|
|
6
6
|
export { CardCollection, ViewCard, ViewSlotOccupant } from '../types.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
package/dist/ui/components.js
CHANGED
|
@@ -97,11 +97,10 @@ import {
|
|
|
97
97
|
toNumeric,
|
|
98
98
|
useCardDragSurface,
|
|
99
99
|
useChromeSuppression,
|
|
100
|
-
useMobileHandTrayActive,
|
|
101
100
|
useOverlayInsets,
|
|
102
101
|
useRegisterBottomOverlayInset,
|
|
103
102
|
useRegisterMobileHand
|
|
104
|
-
} from "../chunk-
|
|
103
|
+
} from "../chunk-E3X552YM.js";
|
|
105
104
|
import "../chunk-VDXOF4FW.js";
|
|
106
105
|
import "../chunk-PZ5AY32C.js";
|
|
107
106
|
export {
|
|
@@ -202,7 +201,6 @@ export {
|
|
|
202
201
|
toNumeric,
|
|
203
202
|
useCardDragSurface,
|
|
204
203
|
useChromeSuppression,
|
|
205
|
-
useMobileHandTrayActive,
|
|
206
204
|
useOverlayInsets,
|
|
207
205
|
useRegisterBottomOverlayInset,
|
|
208
206
|
useRegisterMobileHand
|