@dreamboard-games/sdk 0.4.0-alpha.8 → 0.5.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -11
- package/dist/authoring/index.d.ts +6 -14
- package/dist/authoring/index.js +11 -547
- package/dist/authoring/index.js.map +1 -1
- package/dist/authoring-compiler.d.ts +27 -0
- package/dist/authoring-compiler.js +11 -0
- package/dist/authoring-compiler.js.map +1 -0
- package/dist/authoring-materialize-cli.d.ts +1 -0
- package/dist/authoring-materialize-cli.js +45 -0
- package/dist/authoring-materialize-cli.js.map +1 -0
- package/dist/browser-interaction.d.ts +22 -22
- package/dist/{chunk-3BLN5POZ.js → chunk-2GQIALJL.js} +51 -15
- package/dist/chunk-2GQIALJL.js.map +1 -0
- package/dist/chunk-533O7C4L.js +7095 -0
- package/dist/chunk-533O7C4L.js.map +1 -0
- package/dist/{chunk-44N3T2A5.js → chunk-6LMESVGT.js} +9 -28
- package/dist/chunk-6LMESVGT.js.map +1 -0
- package/dist/{chunk-ZYONCTZ2.js → chunk-DQS2EG5E.js} +3 -3
- package/dist/{chunk-ZYONCTZ2.js.map → chunk-DQS2EG5E.js.map} +1 -1
- package/dist/chunk-EOEA3I64.js +1864 -0
- package/dist/chunk-EOEA3I64.js.map +1 -0
- package/dist/{chunk-B2YBS3SG.js → chunk-FL67RDID.js} +41 -13
- package/dist/chunk-FL67RDID.js.map +1 -0
- package/dist/{chunk-2TAKLJJD.js → chunk-HIH6Y4FA.js} +222 -1267
- package/dist/chunk-HIH6Y4FA.js.map +1 -0
- package/dist/chunk-HUK4234C.js +166 -0
- package/dist/chunk-HUK4234C.js.map +1 -0
- package/dist/chunk-KGV2EUNN.js +532 -0
- package/dist/chunk-KGV2EUNN.js.map +1 -0
- package/dist/{chunk-VTK4TIXC.js → chunk-KRJPRYEA.js} +49 -4
- package/dist/chunk-KRJPRYEA.js.map +1 -0
- package/dist/chunk-KWHOFBDM.js +9 -0
- package/dist/chunk-KWHOFBDM.js.map +1 -0
- package/dist/{chunk-UC2UXAC6.js → chunk-LMHCGCA6.js} +2 -2
- package/dist/{chunk-XV27IQHA.js → chunk-N33CGX2F.js} +15 -85
- package/dist/chunk-N33CGX2F.js.map +1 -0
- package/dist/chunk-TXELBVTG.js +32 -0
- package/dist/chunk-TXELBVTG.js.map +1 -0
- package/dist/{chunk-2TRZSZGD.js → chunk-VRRR6QZT.js} +9 -12
- package/dist/chunk-VRRR6QZT.js.map +1 -0
- package/dist/chunk-VWTKGIYF.js +90 -0
- package/dist/chunk-VWTKGIYF.js.map +1 -0
- package/dist/{chunk-IYX5OO2K.js → chunk-XFMSLL3P.js} +133 -61
- package/dist/chunk-XFMSLL3P.js.map +1 -0
- package/dist/{chunk-YGQTL63W.js → chunk-ZSTCUJKZ.js} +4 -4
- package/dist/chunk-ZSTCUJKZ.js.map +1 -0
- package/dist/codegen.js +1 -1
- package/dist/{components-BTwSIjXj.d.ts → components-CNAt5J1p.d.ts} +1 -1
- package/dist/definitions-bZSBaPjj.d.ts +300 -0
- package/dist/{diagnostics-1BWjRo6-.d.ts → diagnostics-DIi3ina7.d.ts} +2 -1
- package/dist/digest.d.ts +8 -0
- package/dist/{index-CFTjJIXd.d.ts → index-CR69MyWr.d.ts} +2 -2
- package/dist/{index.d-C0PKOVbh.d.ts → index.d-Bw8AOcgp.d.ts} +532 -225
- package/dist/index.js +2 -2
- package/dist/package-set.d.ts +2 -2
- package/dist/package-set.js +2 -2
- package/dist/plugin-runtime-contract.d.ts +17 -0
- package/dist/plugin-runtime-contract.js +94 -0
- package/dist/plugin-runtime-contract.js.map +1 -0
- package/dist/{protocol-nS2ojsGr.d.ts → protocol-CVaSqPgX.d.ts} +54 -47
- package/dist/reducer/advanced.d.ts +5 -4
- package/dist/reducer/advanced.js +14 -108
- package/dist/reducer/advanced.js.map +1 -1
- package/dist/reducer-contract.d.ts +1 -1
- package/dist/reducer-contract.js +6 -4
- package/dist/reducer.d.ts +20 -98
- package/dist/reducer.js +28 -6050
- package/dist/reducer.js.map +1 -1
- package/dist/reference-games/index.d.ts +6 -198
- package/dist/reference-games/index.js +18 -200
- package/dist/reference-games/index.js.map +1 -1
- package/dist/runtime/primitives.d.ts +3 -3
- package/dist/runtime/primitives.js +5 -5
- package/dist/runtime/runtime-api.d.ts +1 -1
- package/dist/runtime/workspace-contract.d.ts +343 -11
- package/dist/runtime/workspace-contract.js +12 -6
- package/dist/{runtime-Dkfm1x2r.d.ts → runtime-C7Z2acNU.d.ts} +67 -31
- package/dist/{runtime-api-C6aWo9c0.d.ts → runtime-api-CgPuEVeF.d.ts} +4 -13
- package/dist/runtime.d.ts +7 -7
- package/dist/runtime.js +15 -11
- package/dist/runtime.js.map +1 -1
- package/dist/schema.d.ts +405 -0
- package/dist/{stale-contract-artifact-error-C5AaZPJ8.d.ts → stale-contract-artifact-error-XLaweZtF.d.ts} +1 -1
- package/dist/testing-compiler.d.ts +37 -0
- package/dist/testing-compiler.js +272 -0
- package/dist/testing-compiler.js.map +1 -0
- package/dist/testing-runtime.d.ts +98 -21
- package/dist/testing-runtime.js +154 -95
- package/dist/testing-runtime.js.map +1 -1
- package/dist/testing.d.ts +197 -156
- package/dist/testing.js +660 -372
- package/dist/testing.js.map +1 -1
- package/dist/types-DN4O7kH_.d.ts +122 -0
- package/dist/{types-CTeN_QAk.d.ts → types-q1Guidm5.d.ts} +4 -5
- package/dist/types.d.ts +0 -1
- package/dist/ui/components.d.ts +3 -2
- package/dist/ui/components.js +1 -1
- package/dist/ui/plugin-styles.css +1 -1
- package/dist/{ui-contract-Ue6SywvO.d.ts → ui-contract-BC4JpysE.d.ts} +2 -6
- package/dist/ui.d.ts +4 -3
- package/dist/ui.js +2 -2
- package/dist/{views-Qx-EHBP8.d.ts → views-D2Cfzr3h.d.ts} +17 -5
- package/package.json +41 -22
- package/REFERENCE.md +0 -22884
- package/dist/chunk-2TAKLJJD.js.map +0 -1
- package/dist/chunk-2TRZSZGD.js.map +0 -1
- package/dist/chunk-3BLN5POZ.js.map +0 -1
- package/dist/chunk-3OZMHZK3.js +0 -40
- package/dist/chunk-3OZMHZK3.js.map +0 -1
- package/dist/chunk-44N3T2A5.js.map +0 -1
- package/dist/chunk-5CQIJHGF.js +0 -663
- package/dist/chunk-5CQIJHGF.js.map +0 -1
- package/dist/chunk-B2YBS3SG.js.map +0 -1
- package/dist/chunk-IYX5OO2K.js.map +0 -1
- package/dist/chunk-VTK4TIXC.js.map +0 -1
- package/dist/chunk-VTNEWMWJ.js +0 -12
- package/dist/chunk-VTNEWMWJ.js.map +0 -1
- package/dist/chunk-XV27IQHA.js.map +0 -1
- package/dist/chunk-YGQTL63W.js.map +0 -1
- package/dist/types-B_3pObUV.d.ts +0 -192
- /package/dist/{chunk-UC2UXAC6.js.map → chunk-LMHCGCA6.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E, v, H, J } from './protocol-CVaSqPgX.js';
|
|
2
2
|
|
|
3
3
|
interface RuntimeClock {
|
|
4
4
|
now(): number;
|
|
@@ -8,14 +8,13 @@ interface RuntimeIdFactory {
|
|
|
8
8
|
}
|
|
9
9
|
interface PluginTransport {
|
|
10
10
|
start(onMessage: (message: H) => void): () => void;
|
|
11
|
-
send(message:
|
|
11
|
+
send(message: J): void;
|
|
12
12
|
}
|
|
13
13
|
interface PluginRuntimeClient {
|
|
14
|
-
getSession():
|
|
14
|
+
getSession(): E | null;
|
|
15
15
|
subscribeSession(listener: () => void): () => void;
|
|
16
|
-
getFrame():
|
|
16
|
+
getFrame(): v | null;
|
|
17
17
|
subscribeFrame(listener: () => void): () => void;
|
|
18
|
-
validateInteraction(interactionId: string, params: unknown): Promise<M>;
|
|
19
18
|
submitInteraction(interactionId: string, params: unknown): Promise<void>;
|
|
20
19
|
disconnect(): void;
|
|
21
20
|
}
|
package/dist/types.d.ts
CHANGED
package/dist/ui/components.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ActionButton, a as ActionButtonProps, b as ActionGroup, c as ActionGroupProps, d as ActionHelp, e as ActionHelpProps, f as ActionPanel, g as ActionPanelProps, C as CardDragSurface, i as CardDragSurfaceContextValue, j as CardDragSurfaceController, k as CardDragSurfaceProps, l as CardDropTargetView, m as CardDropTargetViewProps, n as CardFace, o as CardFaceProps, r as ChromeSuppressionProvider, s as CostDisplay, t as CostDisplayProps, D as DefaultEmptySlot, u as DefaultEmptySlotProps, v as DefaultNetworkEdge, w as DefaultNetworkEdgeProps, x as DefaultNetworkNode, y as DefaultNetworkNodeProps, z as DefaultNetworkPiece, E as DefaultNetworkPieceProps, F as DefaultSlotItem, G as DefaultSlotItemProps, H as DefaultSlotOccupant, I as DefaultSlotOccupantProps, J as DefaultTrackConnection, K as DefaultTrackConnectionProps, L as DefaultTrackJump, M as DefaultTrackJumpProps, N as DefaultTrackPiece, O as DefaultTrackPieceProps, P as DefaultTrackSpace, Q as DefaultTrackSpaceProps, R as DefaultZone, S as DefaultZonePiece, T as DefaultZonePieceProps, U as DefaultZonePieces, V as DefaultZonePiecesProps, W as DefaultZoneProps, X as Dialog, Y as DialogClose, Z as DialogContent, _ as DialogDescription, $ as DialogFooter, a0 as DialogHeader, a1 as DialogOverlay, a2 as DialogPortal, a3 as DialogTitle, a4 as DialogTrigger, a5 as DiceRoller, a6 as DiceRollerProps, a7 as DragPhase, a8 as Drawer, a9 as DrawerClose, aa as DrawerContent, ab as DrawerDescription, ac as DrawerFooter, ad as DrawerHeader, ae as DrawerOverlay, af as DrawerPortal, ag as DrawerTitle, ah as DrawerTrigger, ai as ErrorBoundary, aj as ErrorBoundaryProps, ak as 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, 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, bz as TrackPiece, bA as TrackSpace, bD as ZoneDefinition, bE as ZoneHighlightType, bF as ZoneMap, bG as ZoneMapProps, bH as ZonePiece, bI as ZoneShape, bP as useCardDragSurface, bQ as useChromeSuppression } from '../components-
|
|
1
|
+
export { A as ActionButton, a as ActionButtonProps, b as ActionGroup, c as ActionGroupProps, d as ActionHelp, e as ActionHelpProps, f as ActionPanel, g as ActionPanelProps, C as CardDragSurface, i as CardDragSurfaceContextValue, j as CardDragSurfaceController, k as CardDragSurfaceProps, l as CardDropTargetView, m as CardDropTargetViewProps, n as CardFace, o as CardFaceProps, r as ChromeSuppressionProvider, s as CostDisplay, t as CostDisplayProps, D as DefaultEmptySlot, u as DefaultEmptySlotProps, v as DefaultNetworkEdge, w as DefaultNetworkEdgeProps, x as DefaultNetworkNode, y as DefaultNetworkNodeProps, z as DefaultNetworkPiece, E as DefaultNetworkPieceProps, F as DefaultSlotItem, G as DefaultSlotItemProps, H as DefaultSlotOccupant, I as DefaultSlotOccupantProps, J as DefaultTrackConnection, K as DefaultTrackConnectionProps, L as DefaultTrackJump, M as DefaultTrackJumpProps, N as DefaultTrackPiece, O as DefaultTrackPieceProps, P as DefaultTrackSpace, Q as DefaultTrackSpaceProps, R as DefaultZone, S as DefaultZonePiece, T as DefaultZonePieceProps, U as DefaultZonePieces, V as DefaultZonePiecesProps, W as DefaultZoneProps, X as Dialog, Y as DialogClose, Z as DialogContent, _ as DialogDescription, $ as DialogFooter, a0 as DialogHeader, a1 as DialogOverlay, a2 as DialogPortal, a3 as DialogTitle, a4 as DialogTrigger, a5 as DiceRoller, a6 as DiceRollerProps, a7 as DragPhase, a8 as Drawer, a9 as DrawerClose, aa as DrawerContent, ab as DrawerDescription, ac as DrawerFooter, ad as DrawerHeader, ae as DrawerOverlay, af as DrawerPortal, ag as DrawerTitle, ah as DrawerTrigger, ai as ErrorBoundary, aj as ErrorBoundaryProps, ak as 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, 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, bz as TrackPiece, bA as TrackSpace, bD as ZoneDefinition, bE as ZoneHighlightType, bF as ZoneMap, bG as ZoneMapProps, bH as ZonePiece, bI as ZoneShape, bP as useCardDragSurface, bQ as useChromeSuppression } from '../components-CNAt5J1p.js';
|
|
2
2
|
export { H as HandInteractionPolicy, a as HandLayoutKind, b as HandLayoutPolicy, c as HandView, d as HandViewProps } from '../HandView-Bi2lxzQP.js';
|
|
3
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
4
|
export { D as DefaultChessPiece, i as DefaultChessPieceProps, j as DefaultGridCell, k as DefaultGridCellProps, l as DefaultGridPiece, m as DefaultGridPieceProps, n as DefaultHexEdge, o as DefaultHexEdgeProps, p as DefaultHexTile, q as DefaultHexTileProps, r as DefaultHexVertex, s as DefaultHexVertexProps, E as EdgePosition, z as HexBoardView, I as HexBoardViewTile, J as HexGrid, K as HexGridBoardProps, L as HexGridProps, M as HexOrientation, N as HexTileGeometry, Q as InteractiveHexEdge, R as InteractiveHexVertex, S as InteractiveSquareEdge, T as InteractiveSquareVertex, U as InteractiveTargetLayer, V as InteractiveTargetRenderState, aa as SquareEdgePosition, ab as SquareGrid, ac as SquareGridBoardProps, ad as SquareGridProps, ae as SquareVertexPosition, ak as createHexBoardView, am as hexUtils, aq as toAlgebraic, ar as toNumeric } from '../hex-board-view-aKkblDp6.js';
|
|
@@ -12,6 +12,7 @@ import 'vaul';
|
|
|
12
12
|
import '@radix-ui/react-dialog';
|
|
13
13
|
import '@radix-ui/react-label';
|
|
14
14
|
import '@radix-ui/react-select';
|
|
15
|
-
import '../runtime-
|
|
15
|
+
import '../runtime-C7Z2acNU.js';
|
|
16
16
|
import 'zod';
|
|
17
|
+
import './protocol-CVaSqPgX.js';
|
|
17
18
|
import '../primitive-props-BNHDkgd7.js';
|
package/dist/ui/components.js
CHANGED