@dreamboard-games/sdk 0.5.0-alpha.34 → 0.5.0-alpha.36
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 +62 -41
- package/dist/{board-element-DCjHsEnF.d.ts → board-element-yXrGm5eP.d.ts} +1 -1
- package/dist/{chunk-BVWJS3AB.js → chunk-54U3ZCFA.js} +16 -7
- package/dist/chunk-54U3ZCFA.js.map +1 -0
- package/dist/{chunk-KYQQIFXN.js → chunk-75QTSYRZ.js} +317 -86
- package/dist/chunk-75QTSYRZ.js.map +1 -0
- package/dist/{chunk-CZRPUWCT.js → chunk-7GX27XU6.js} +23 -2
- package/dist/{chunk-CZRPUWCT.js.map → chunk-7GX27XU6.js.map} +1 -1
- package/dist/{chunk-BSS4ORU3.js → chunk-G4MY5YMA.js} +8 -5
- package/dist/chunk-G4MY5YMA.js.map +1 -0
- package/dist/{chunk-2GUPNL7A.js → chunk-RNR4M67F.js} +3 -3
- package/dist/{diagnostics-Cl8mSexe.d.ts → diagnostics-Bgu7w8LA.d.ts} +1 -1
- package/dist/{extract-CNUw9Q8C.d.ts → extract-_TyEXSCt.d.ts} +2 -1
- package/dist/index.d.ts +78 -78
- package/dist/index.js +5 -5
- package/dist/{model-BD0OKVEc.d.ts → model-U0F5B3cr.d.ts} +2 -2
- package/dist/react.d.ts +3 -3
- package/dist/react.js +2 -2
- package/dist/reducer.d.ts +130 -186
- package/dist/reducer.js +29 -26
- package/dist/reducer.js.map +1 -1
- package/dist/{shortcuts-Br5h9mEV.d.ts → shortcuts-DXkAlfNw.d.ts} +2 -2
- package/dist/testing.d.ts +10 -4
- package/dist/testing.js +4 -4
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-BSS4ORU3.js.map +0 -1
- package/dist/chunk-BVWJS3AB.js.map +0 -1
- package/dist/chunk-KYQQIFXN.js.map +0 -1
- /package/dist/{chunk-2GUPNL7A.js.map → chunk-RNR4M67F.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as Features, J as InstanceOptions, n as CoreInstance, q as FeatureContext, G as GameInstance, C as Card, I as IdOf, ac as Zone, a4 as SeatCardId, d as BoardCollection, h as BoardSpaceCollection, c as BoardBase, Y as RuntimeBoard, a3 as RuntimeTargetOptions, A as ActionProps, e as BoardDataOf, g as BoardSpace, a7 as TargetOptions, p as DropTarget, ae as ZoneHostId } from './model-
|
|
2
|
-
export { a as AnyInput, b as AnyInteraction, B as Board, f as BoardDropTarget, i as BoardSpaceData, j as BoardSpaceId, k as BoardTarget, l as CardBase, m as CardDataOf, D as Drafts, o as DropAreaBinding, F as Feature, s as GameSnapshot, H as Hook, t as Input, u as InputBase, v as InputControl, w as InputDomainOf, x as InputKey, y as InputKind, z as InputTarget, E as InputTargetOption, K as Interaction, L as InteractionBase, M as InteractionDropTarget, N as InteractionKey, O as InteractionParams, P as LocalState, Q as NativeEvent, R as Phase, S as PhaseName, T as PlacedTileDataOf, U as Player, V as PositionDropTarget, W as ReadModel, X as ReadonlyData, Z as RuntimeBoardDropTarget, _ as RuntimeBoardTarget, $ as RuntimeDropTarget, a0 as RuntimeInteractionDropTarget, a1 as RuntimePositionDropTarget, a2 as RuntimeSelectionTarget, a5 as SelectionTarget, a6 as TableOfGame, a8 as Tile, a9 as TileDataOf, aa as Turn, ab as ViewOf, ad as ZoneBase } from './model-
|
|
3
|
-
import { a8 as InteractionDescriptor, V as GameplayBasis,
|
|
4
|
-
export { A as ActionInteractionDescriptor, b as ApplySource, k as BoardSpaceHostId,
|
|
1
|
+
import { r as Features, J as InstanceOptions, n as CoreInstance, q as FeatureContext, G as GameInstance, C as Card, I as IdOf, ac as Zone, a4 as SeatCardId, d as BoardCollection, h as BoardSpaceCollection, c as BoardBase, Y as RuntimeBoard, a3 as RuntimeTargetOptions, A as ActionProps, e as BoardDataOf, g as BoardSpace, a7 as TargetOptions, p as DropTarget, ae as ZoneHostId } from './model-U0F5B3cr.js';
|
|
2
|
+
export { a as AnyInput, b as AnyInteraction, B as Board, f as BoardDropTarget, i as BoardSpaceData, j as BoardSpaceId, k as BoardTarget, l as CardBase, m as CardDataOf, D as Drafts, o as DropAreaBinding, F as Feature, s as GameSnapshot, H as Hook, t as Input, u as InputBase, v as InputControl, w as InputDomainOf, x as InputKey, y as InputKind, z as InputTarget, E as InputTargetOption, K as Interaction, L as InteractionBase, M as InteractionDropTarget, N as InteractionKey, O as InteractionParams, P as LocalState, Q as NativeEvent, R as Phase, S as PhaseName, T as PlacedTileDataOf, U as Player, V as PositionDropTarget, W as ReadModel, X as ReadonlyData, Z as RuntimeBoardDropTarget, _ as RuntimeBoardTarget, $ as RuntimeDropTarget, a0 as RuntimeInteractionDropTarget, a1 as RuntimePositionDropTarget, a2 as RuntimeSelectionTarget, a5 as SelectionTarget, a6 as TableOfGame, a8 as Tile, a9 as TileDataOf, aa as Turn, ab as ViewOf, ad as ZoneBase } from './model-U0F5B3cr.js';
|
|
3
|
+
import { a8 as InteractionDescriptor, V as GameplayBasis, aE as PluginSessionDescriptor, aC as PluginGameplayFrame, b0 as RuntimeJson, S as GameSource, be as SourceSnapshot, D as CommandSource, b8 as SeatBoardTopology, bb as SeatTileRef, ba as SeatSpaceRef, g as BoardEdge, o as BoardVertex, bL as ZoneInteractionRefs, az as PlayerId, aU as ReducerSeatProjectionBundle, b9 as SeatProjectionBundle, h as BoardEdgeId, p as BoardVertexId } from './extract-_TyEXSCt.js';
|
|
4
|
+
export { A as ActionInteractionDescriptor, b as ApplySource, k as BoardSpaceHostId, aI as GameEvent, aJ as GameEventDetail, Q as GameOutcome, W as HiddenCardId, $ as InputDomain, a0 as InputDomainSchema, a1 as InputSelection, a3 as InteractionAvailability, a4 as InteractionAvailabilitySchema, a5 as InteractionChoiceOption, a6 as InteractionCommitPolicy, a7 as InteractionCommitPolicySchema, a9 as InteractionDescriptorSchema, aa as InteractionDiagnosticReason, ac as InteractionInputDescriptor, ad as InteractionInputDescriptorSchema, aq as OutcomeResult, ar as OutcomeScoreComponent, as as OutcomeStanding, at as OutcomeTieBreak, au as PerPlayerInstanceFamily, av as PerPlayerInstanceId, aD as PluginPlayerSummary, aK as ProjectedTile, b1 as RuntimeJsonSchema, bc as SimultaneousPhaseSnapshot, bd as SourceRequest, bf as SourceState, bj as SubmitResult, aI as SystemActionEvent, bB as ViewCard, bD as ViewCardSchema, bJ as ZoneHandlesSnapshot, bO as boardSpaceHostId, bQ as parseBoardSpaceHostId, bR as parsePerPlayerInstanceId, bT as perPlayerInstanceId } from './extract-_TyEXSCt.js';
|
|
5
5
|
import * as z from 'zod';
|
|
6
|
-
export { I as InteractionShortcutBinding, L as LocalShortcutBinding, S as ShortcutActivity, a as ShortcutBinding, b as ShortcutHint, c as ShortcutOptions, d as ShortcutResult, e as ShortcutTarget, f as ShortcutZoneTarget, g as ShortcutsController, s as shortcutsFeature } from './shortcuts-
|
|
7
|
-
export { b as boardEdgeId, a as boardVertexId, p as parseBoardElementId } from './board-element-
|
|
6
|
+
export { I as InteractionShortcutBinding, L as LocalShortcutBinding, S as ShortcutActivity, a as ShortcutBinding, b as ShortcutHint, c as ShortcutOptions, d as ShortcutResult, e as ShortcutTarget, f as ShortcutZoneTarget, g as ShortcutsController, s as shortcutsFeature } from './shortcuts-DXkAlfNw.js';
|
|
7
|
+
export { b as boardEdgeId, a as boardVertexId, p as parseBoardElementId } from './board-element-yXrGm5eP.js';
|
|
8
8
|
import '@tanstack/store';
|
|
9
9
|
import 'honeycomb-grid';
|
|
10
10
|
|
|
@@ -4133,12 +4133,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4133
4133
|
zoneIds: string[];
|
|
4134
4134
|
eligibleTargets: string[];
|
|
4135
4135
|
selection?: {
|
|
4136
|
-
mode: "single";
|
|
4137
|
-
} | {
|
|
4138
4136
|
mode: "many";
|
|
4139
4137
|
min: number;
|
|
4140
4138
|
max?: number | undefined;
|
|
4141
4139
|
distinct?: boolean | undefined;
|
|
4140
|
+
} | {
|
|
4141
|
+
mode: "single";
|
|
4142
4142
|
} | undefined;
|
|
4143
4143
|
} | {
|
|
4144
4144
|
type: "tileTarget";
|
|
@@ -4148,12 +4148,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4148
4148
|
boardIds: string[];
|
|
4149
4149
|
eligibleTargets: (string & z.core.$brand<"SeatTileRef">)[];
|
|
4150
4150
|
selection?: {
|
|
4151
|
-
mode: "single";
|
|
4152
|
-
} | {
|
|
4153
4151
|
mode: "many";
|
|
4154
4152
|
min: number;
|
|
4155
4153
|
max?: number | undefined;
|
|
4156
4154
|
distinct?: boolean | undefined;
|
|
4155
|
+
} | {
|
|
4156
|
+
mode: "single";
|
|
4157
4157
|
} | undefined;
|
|
4158
4158
|
} | {
|
|
4159
4159
|
type: "boardTarget";
|
|
@@ -4163,12 +4163,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4163
4163
|
valueKind: "board-id";
|
|
4164
4164
|
eligibleTargets: string[];
|
|
4165
4165
|
selection?: {
|
|
4166
|
-
mode: "single";
|
|
4167
|
-
} | {
|
|
4168
4166
|
mode: "many";
|
|
4169
4167
|
min: number;
|
|
4170
4168
|
max?: number | undefined;
|
|
4171
4169
|
distinct?: boolean | undefined;
|
|
4170
|
+
} | {
|
|
4171
|
+
mode: "single";
|
|
4172
4172
|
} | undefined;
|
|
4173
4173
|
} | {
|
|
4174
4174
|
type: "boardTarget";
|
|
@@ -4181,12 +4181,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4181
4181
|
spaceId: string;
|
|
4182
4182
|
}[];
|
|
4183
4183
|
selection?: {
|
|
4184
|
-
mode: "single";
|
|
4185
|
-
} | {
|
|
4186
4184
|
mode: "many";
|
|
4187
4185
|
min: number;
|
|
4188
4186
|
max?: number | undefined;
|
|
4189
4187
|
distinct?: boolean | undefined;
|
|
4188
|
+
} | {
|
|
4189
|
+
mode: "single";
|
|
4190
4190
|
} | undefined;
|
|
4191
4191
|
} | {
|
|
4192
4192
|
type: "zonePosition";
|
|
@@ -4196,12 +4196,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4196
4196
|
size: number;
|
|
4197
4197
|
}[];
|
|
4198
4198
|
selection?: {
|
|
4199
|
-
mode: "single";
|
|
4200
|
-
} | {
|
|
4201
4199
|
mode: "many";
|
|
4202
4200
|
min: number;
|
|
4203
4201
|
max?: number | undefined;
|
|
4204
4202
|
distinct?: boolean | undefined;
|
|
4203
|
+
} | {
|
|
4204
|
+
mode: "single";
|
|
4205
4205
|
} | undefined;
|
|
4206
4206
|
} | {
|
|
4207
4207
|
type: "resourceMap";
|
|
@@ -4213,24 +4213,24 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4213
4213
|
icon?: string | undefined;
|
|
4214
4214
|
}[];
|
|
4215
4215
|
selection?: {
|
|
4216
|
-
mode: "single";
|
|
4217
|
-
} | {
|
|
4218
4216
|
mode: "many";
|
|
4219
4217
|
min: number;
|
|
4220
4218
|
max?: number | undefined;
|
|
4221
4219
|
distinct?: boolean | undefined;
|
|
4220
|
+
} | {
|
|
4221
|
+
mode: "single";
|
|
4222
4222
|
} | undefined;
|
|
4223
4223
|
} | {
|
|
4224
4224
|
type: "boundedNumber";
|
|
4225
4225
|
min: number;
|
|
4226
4226
|
max: number;
|
|
4227
4227
|
selection?: {
|
|
4228
|
-
mode: "single";
|
|
4229
|
-
} | {
|
|
4230
4228
|
mode: "many";
|
|
4231
4229
|
min: number;
|
|
4232
4230
|
max?: number | undefined;
|
|
4233
4231
|
distinct?: boolean | undefined;
|
|
4232
|
+
} | {
|
|
4233
|
+
mode: "single";
|
|
4234
4234
|
} | undefined;
|
|
4235
4235
|
step?: number | undefined;
|
|
4236
4236
|
} | {
|
|
@@ -4245,12 +4245,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4245
4245
|
disabledReason?: string | undefined;
|
|
4246
4246
|
}[];
|
|
4247
4247
|
selection?: {
|
|
4248
|
-
mode: "single";
|
|
4249
|
-
} | {
|
|
4250
4248
|
mode: "many";
|
|
4251
4249
|
min: number;
|
|
4252
4250
|
max?: number | undefined;
|
|
4253
4251
|
distinct?: boolean | undefined;
|
|
4252
|
+
} | {
|
|
4253
|
+
mode: "single";
|
|
4254
4254
|
} | undefined;
|
|
4255
4255
|
} | {
|
|
4256
4256
|
type: "choiceList";
|
|
@@ -4264,12 +4264,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4264
4264
|
disabledReason?: string | undefined;
|
|
4265
4265
|
}[];
|
|
4266
4266
|
selection?: {
|
|
4267
|
-
mode: "single";
|
|
4268
|
-
} | {
|
|
4269
4267
|
mode: "many";
|
|
4270
4268
|
min: number;
|
|
4271
4269
|
max?: number | undefined;
|
|
4272
4270
|
distinct?: boolean | undefined;
|
|
4271
|
+
} | {
|
|
4272
|
+
mode: "single";
|
|
4273
4273
|
} | undefined;
|
|
4274
4274
|
min?: number | undefined;
|
|
4275
4275
|
max?: number | undefined;
|
|
@@ -4364,12 +4364,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4364
4364
|
zoneIds: string[];
|
|
4365
4365
|
eligibleTargets: string[];
|
|
4366
4366
|
selection?: {
|
|
4367
|
-
mode: "single";
|
|
4368
|
-
} | {
|
|
4369
4367
|
mode: "many";
|
|
4370
4368
|
min: number;
|
|
4371
4369
|
max?: number | undefined;
|
|
4372
4370
|
distinct?: boolean | undefined;
|
|
4371
|
+
} | {
|
|
4372
|
+
mode: "single";
|
|
4373
4373
|
} | undefined;
|
|
4374
4374
|
} | {
|
|
4375
4375
|
type: "tileTarget";
|
|
@@ -4379,12 +4379,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4379
4379
|
boardIds: string[];
|
|
4380
4380
|
eligibleTargets: (string & z.core.$brand<"SeatTileRef">)[];
|
|
4381
4381
|
selection?: {
|
|
4382
|
-
mode: "single";
|
|
4383
|
-
} | {
|
|
4384
4382
|
mode: "many";
|
|
4385
4383
|
min: number;
|
|
4386
4384
|
max?: number | undefined;
|
|
4387
4385
|
distinct?: boolean | undefined;
|
|
4386
|
+
} | {
|
|
4387
|
+
mode: "single";
|
|
4388
4388
|
} | undefined;
|
|
4389
4389
|
} | {
|
|
4390
4390
|
type: "boardTarget";
|
|
@@ -4394,12 +4394,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4394
4394
|
valueKind: "board-id";
|
|
4395
4395
|
eligibleTargets: string[];
|
|
4396
4396
|
selection?: {
|
|
4397
|
-
mode: "single";
|
|
4398
|
-
} | {
|
|
4399
4397
|
mode: "many";
|
|
4400
4398
|
min: number;
|
|
4401
4399
|
max?: number | undefined;
|
|
4402
4400
|
distinct?: boolean | undefined;
|
|
4401
|
+
} | {
|
|
4402
|
+
mode: "single";
|
|
4403
4403
|
} | undefined;
|
|
4404
4404
|
} | {
|
|
4405
4405
|
type: "boardTarget";
|
|
@@ -4412,12 +4412,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4412
4412
|
spaceId: string;
|
|
4413
4413
|
}[];
|
|
4414
4414
|
selection?: {
|
|
4415
|
-
mode: "single";
|
|
4416
|
-
} | {
|
|
4417
4415
|
mode: "many";
|
|
4418
4416
|
min: number;
|
|
4419
4417
|
max?: number | undefined;
|
|
4420
4418
|
distinct?: boolean | undefined;
|
|
4419
|
+
} | {
|
|
4420
|
+
mode: "single";
|
|
4421
4421
|
} | undefined;
|
|
4422
4422
|
} | {
|
|
4423
4423
|
type: "zonePosition";
|
|
@@ -4427,12 +4427,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4427
4427
|
size: number;
|
|
4428
4428
|
}[];
|
|
4429
4429
|
selection?: {
|
|
4430
|
-
mode: "single";
|
|
4431
|
-
} | {
|
|
4432
4430
|
mode: "many";
|
|
4433
4431
|
min: number;
|
|
4434
4432
|
max?: number | undefined;
|
|
4435
4433
|
distinct?: boolean | undefined;
|
|
4434
|
+
} | {
|
|
4435
|
+
mode: "single";
|
|
4436
4436
|
} | undefined;
|
|
4437
4437
|
} | {
|
|
4438
4438
|
type: "resourceMap";
|
|
@@ -4444,24 +4444,24 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4444
4444
|
icon?: string | undefined;
|
|
4445
4445
|
}[];
|
|
4446
4446
|
selection?: {
|
|
4447
|
-
mode: "single";
|
|
4448
|
-
} | {
|
|
4449
4447
|
mode: "many";
|
|
4450
4448
|
min: number;
|
|
4451
4449
|
max?: number | undefined;
|
|
4452
4450
|
distinct?: boolean | undefined;
|
|
4451
|
+
} | {
|
|
4452
|
+
mode: "single";
|
|
4453
4453
|
} | undefined;
|
|
4454
4454
|
} | {
|
|
4455
4455
|
type: "boundedNumber";
|
|
4456
4456
|
min: number;
|
|
4457
4457
|
max: number;
|
|
4458
4458
|
selection?: {
|
|
4459
|
-
mode: "single";
|
|
4460
|
-
} | {
|
|
4461
4459
|
mode: "many";
|
|
4462
4460
|
min: number;
|
|
4463
4461
|
max?: number | undefined;
|
|
4464
4462
|
distinct?: boolean | undefined;
|
|
4463
|
+
} | {
|
|
4464
|
+
mode: "single";
|
|
4465
4465
|
} | undefined;
|
|
4466
4466
|
step?: number | undefined;
|
|
4467
4467
|
} | {
|
|
@@ -4476,12 +4476,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4476
4476
|
disabledReason?: string | undefined;
|
|
4477
4477
|
}[];
|
|
4478
4478
|
selection?: {
|
|
4479
|
-
mode: "single";
|
|
4480
|
-
} | {
|
|
4481
4479
|
mode: "many";
|
|
4482
4480
|
min: number;
|
|
4483
4481
|
max?: number | undefined;
|
|
4484
4482
|
distinct?: boolean | undefined;
|
|
4483
|
+
} | {
|
|
4484
|
+
mode: "single";
|
|
4485
4485
|
} | undefined;
|
|
4486
4486
|
} | {
|
|
4487
4487
|
type: "choiceList";
|
|
@@ -4495,12 +4495,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4495
4495
|
disabledReason?: string | undefined;
|
|
4496
4496
|
}[];
|
|
4497
4497
|
selection?: {
|
|
4498
|
-
mode: "single";
|
|
4499
|
-
} | {
|
|
4500
4498
|
mode: "many";
|
|
4501
4499
|
min: number;
|
|
4502
4500
|
max?: number | undefined;
|
|
4503
4501
|
distinct?: boolean | undefined;
|
|
4502
|
+
} | {
|
|
4503
|
+
mode: "single";
|
|
4504
4504
|
} | undefined;
|
|
4505
4505
|
min?: number | undefined;
|
|
4506
4506
|
max?: number | undefined;
|
|
@@ -4612,12 +4612,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4612
4612
|
zoneIds: string[];
|
|
4613
4613
|
eligibleTargets: string[];
|
|
4614
4614
|
selection?: {
|
|
4615
|
-
mode: "single";
|
|
4616
|
-
} | {
|
|
4617
4615
|
mode: "many";
|
|
4618
4616
|
min: number;
|
|
4619
4617
|
max?: number | undefined;
|
|
4620
4618
|
distinct?: boolean | undefined;
|
|
4619
|
+
} | {
|
|
4620
|
+
mode: "single";
|
|
4621
4621
|
} | undefined;
|
|
4622
4622
|
} | {
|
|
4623
4623
|
type: "tileTarget";
|
|
@@ -4627,12 +4627,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4627
4627
|
boardIds: string[];
|
|
4628
4628
|
eligibleTargets: (string & z.core.$brand<"SeatTileRef">)[];
|
|
4629
4629
|
selection?: {
|
|
4630
|
-
mode: "single";
|
|
4631
|
-
} | {
|
|
4632
4630
|
mode: "many";
|
|
4633
4631
|
min: number;
|
|
4634
4632
|
max?: number | undefined;
|
|
4635
4633
|
distinct?: boolean | undefined;
|
|
4634
|
+
} | {
|
|
4635
|
+
mode: "single";
|
|
4636
4636
|
} | undefined;
|
|
4637
4637
|
} | {
|
|
4638
4638
|
type: "boardTarget";
|
|
@@ -4642,12 +4642,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4642
4642
|
valueKind: "board-id";
|
|
4643
4643
|
eligibleTargets: string[];
|
|
4644
4644
|
selection?: {
|
|
4645
|
-
mode: "single";
|
|
4646
|
-
} | {
|
|
4647
4645
|
mode: "many";
|
|
4648
4646
|
min: number;
|
|
4649
4647
|
max?: number | undefined;
|
|
4650
4648
|
distinct?: boolean | undefined;
|
|
4649
|
+
} | {
|
|
4650
|
+
mode: "single";
|
|
4651
4651
|
} | undefined;
|
|
4652
4652
|
} | {
|
|
4653
4653
|
type: "boardTarget";
|
|
@@ -4660,12 +4660,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4660
4660
|
spaceId: string;
|
|
4661
4661
|
}[];
|
|
4662
4662
|
selection?: {
|
|
4663
|
-
mode: "single";
|
|
4664
|
-
} | {
|
|
4665
4663
|
mode: "many";
|
|
4666
4664
|
min: number;
|
|
4667
4665
|
max?: number | undefined;
|
|
4668
4666
|
distinct?: boolean | undefined;
|
|
4667
|
+
} | {
|
|
4668
|
+
mode: "single";
|
|
4669
4669
|
} | undefined;
|
|
4670
4670
|
} | {
|
|
4671
4671
|
type: "zonePosition";
|
|
@@ -4675,12 +4675,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4675
4675
|
size: number;
|
|
4676
4676
|
}[];
|
|
4677
4677
|
selection?: {
|
|
4678
|
-
mode: "single";
|
|
4679
|
-
} | {
|
|
4680
4678
|
mode: "many";
|
|
4681
4679
|
min: number;
|
|
4682
4680
|
max?: number | undefined;
|
|
4683
4681
|
distinct?: boolean | undefined;
|
|
4682
|
+
} | {
|
|
4683
|
+
mode: "single";
|
|
4684
4684
|
} | undefined;
|
|
4685
4685
|
} | {
|
|
4686
4686
|
type: "resourceMap";
|
|
@@ -4692,24 +4692,24 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4692
4692
|
icon?: string | undefined;
|
|
4693
4693
|
}[];
|
|
4694
4694
|
selection?: {
|
|
4695
|
-
mode: "single";
|
|
4696
|
-
} | {
|
|
4697
4695
|
mode: "many";
|
|
4698
4696
|
min: number;
|
|
4699
4697
|
max?: number | undefined;
|
|
4700
4698
|
distinct?: boolean | undefined;
|
|
4699
|
+
} | {
|
|
4700
|
+
mode: "single";
|
|
4701
4701
|
} | undefined;
|
|
4702
4702
|
} | {
|
|
4703
4703
|
type: "boundedNumber";
|
|
4704
4704
|
min: number;
|
|
4705
4705
|
max: number;
|
|
4706
4706
|
selection?: {
|
|
4707
|
-
mode: "single";
|
|
4708
|
-
} | {
|
|
4709
4707
|
mode: "many";
|
|
4710
4708
|
min: number;
|
|
4711
4709
|
max?: number | undefined;
|
|
4712
4710
|
distinct?: boolean | undefined;
|
|
4711
|
+
} | {
|
|
4712
|
+
mode: "single";
|
|
4713
4713
|
} | undefined;
|
|
4714
4714
|
step?: number | undefined;
|
|
4715
4715
|
} | {
|
|
@@ -4724,12 +4724,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4724
4724
|
disabledReason?: string | undefined;
|
|
4725
4725
|
}[];
|
|
4726
4726
|
selection?: {
|
|
4727
|
-
mode: "single";
|
|
4728
|
-
} | {
|
|
4729
4727
|
mode: "many";
|
|
4730
4728
|
min: number;
|
|
4731
4729
|
max?: number | undefined;
|
|
4732
4730
|
distinct?: boolean | undefined;
|
|
4731
|
+
} | {
|
|
4732
|
+
mode: "single";
|
|
4733
4733
|
} | undefined;
|
|
4734
4734
|
} | {
|
|
4735
4735
|
type: "choiceList";
|
|
@@ -4743,12 +4743,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4743
4743
|
disabledReason?: string | undefined;
|
|
4744
4744
|
}[];
|
|
4745
4745
|
selection?: {
|
|
4746
|
-
mode: "single";
|
|
4747
|
-
} | {
|
|
4748
4746
|
mode: "many";
|
|
4749
4747
|
min: number;
|
|
4750
4748
|
max?: number | undefined;
|
|
4751
4749
|
distinct?: boolean | undefined;
|
|
4750
|
+
} | {
|
|
4751
|
+
mode: "single";
|
|
4752
4752
|
} | undefined;
|
|
4753
4753
|
min?: number | undefined;
|
|
4754
4754
|
max?: number | undefined;
|
|
@@ -4843,12 +4843,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4843
4843
|
zoneIds: string[];
|
|
4844
4844
|
eligibleTargets: string[];
|
|
4845
4845
|
selection?: {
|
|
4846
|
-
mode: "single";
|
|
4847
|
-
} | {
|
|
4848
4846
|
mode: "many";
|
|
4849
4847
|
min: number;
|
|
4850
4848
|
max?: number | undefined;
|
|
4851
4849
|
distinct?: boolean | undefined;
|
|
4850
|
+
} | {
|
|
4851
|
+
mode: "single";
|
|
4852
4852
|
} | undefined;
|
|
4853
4853
|
} | {
|
|
4854
4854
|
type: "tileTarget";
|
|
@@ -4858,12 +4858,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4858
4858
|
boardIds: string[];
|
|
4859
4859
|
eligibleTargets: (string & z.core.$brand<"SeatTileRef">)[];
|
|
4860
4860
|
selection?: {
|
|
4861
|
-
mode: "single";
|
|
4862
|
-
} | {
|
|
4863
4861
|
mode: "many";
|
|
4864
4862
|
min: number;
|
|
4865
4863
|
max?: number | undefined;
|
|
4866
4864
|
distinct?: boolean | undefined;
|
|
4865
|
+
} | {
|
|
4866
|
+
mode: "single";
|
|
4867
4867
|
} | undefined;
|
|
4868
4868
|
} | {
|
|
4869
4869
|
type: "boardTarget";
|
|
@@ -4873,12 +4873,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4873
4873
|
valueKind: "board-id";
|
|
4874
4874
|
eligibleTargets: string[];
|
|
4875
4875
|
selection?: {
|
|
4876
|
-
mode: "single";
|
|
4877
|
-
} | {
|
|
4878
4876
|
mode: "many";
|
|
4879
4877
|
min: number;
|
|
4880
4878
|
max?: number | undefined;
|
|
4881
4879
|
distinct?: boolean | undefined;
|
|
4880
|
+
} | {
|
|
4881
|
+
mode: "single";
|
|
4882
4882
|
} | undefined;
|
|
4883
4883
|
} | {
|
|
4884
4884
|
type: "boardTarget";
|
|
@@ -4891,12 +4891,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4891
4891
|
spaceId: string;
|
|
4892
4892
|
}[];
|
|
4893
4893
|
selection?: {
|
|
4894
|
-
mode: "single";
|
|
4895
|
-
} | {
|
|
4896
4894
|
mode: "many";
|
|
4897
4895
|
min: number;
|
|
4898
4896
|
max?: number | undefined;
|
|
4899
4897
|
distinct?: boolean | undefined;
|
|
4898
|
+
} | {
|
|
4899
|
+
mode: "single";
|
|
4900
4900
|
} | undefined;
|
|
4901
4901
|
} | {
|
|
4902
4902
|
type: "zonePosition";
|
|
@@ -4906,12 +4906,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4906
4906
|
size: number;
|
|
4907
4907
|
}[];
|
|
4908
4908
|
selection?: {
|
|
4909
|
-
mode: "single";
|
|
4910
|
-
} | {
|
|
4911
4909
|
mode: "many";
|
|
4912
4910
|
min: number;
|
|
4913
4911
|
max?: number | undefined;
|
|
4914
4912
|
distinct?: boolean | undefined;
|
|
4913
|
+
} | {
|
|
4914
|
+
mode: "single";
|
|
4915
4915
|
} | undefined;
|
|
4916
4916
|
} | {
|
|
4917
4917
|
type: "resourceMap";
|
|
@@ -4923,24 +4923,24 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4923
4923
|
icon?: string | undefined;
|
|
4924
4924
|
}[];
|
|
4925
4925
|
selection?: {
|
|
4926
|
-
mode: "single";
|
|
4927
|
-
} | {
|
|
4928
4926
|
mode: "many";
|
|
4929
4927
|
min: number;
|
|
4930
4928
|
max?: number | undefined;
|
|
4931
4929
|
distinct?: boolean | undefined;
|
|
4930
|
+
} | {
|
|
4931
|
+
mode: "single";
|
|
4932
4932
|
} | undefined;
|
|
4933
4933
|
} | {
|
|
4934
4934
|
type: "boundedNumber";
|
|
4935
4935
|
min: number;
|
|
4936
4936
|
max: number;
|
|
4937
4937
|
selection?: {
|
|
4938
|
-
mode: "single";
|
|
4939
|
-
} | {
|
|
4940
4938
|
mode: "many";
|
|
4941
4939
|
min: number;
|
|
4942
4940
|
max?: number | undefined;
|
|
4943
4941
|
distinct?: boolean | undefined;
|
|
4942
|
+
} | {
|
|
4943
|
+
mode: "single";
|
|
4944
4944
|
} | undefined;
|
|
4945
4945
|
step?: number | undefined;
|
|
4946
4946
|
} | {
|
|
@@ -4955,12 +4955,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4955
4955
|
disabledReason?: string | undefined;
|
|
4956
4956
|
}[];
|
|
4957
4957
|
selection?: {
|
|
4958
|
-
mode: "single";
|
|
4959
|
-
} | {
|
|
4960
4958
|
mode: "many";
|
|
4961
4959
|
min: number;
|
|
4962
4960
|
max?: number | undefined;
|
|
4963
4961
|
distinct?: boolean | undefined;
|
|
4962
|
+
} | {
|
|
4963
|
+
mode: "single";
|
|
4964
4964
|
} | undefined;
|
|
4965
4965
|
} | {
|
|
4966
4966
|
type: "choiceList";
|
|
@@ -4974,12 +4974,12 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
|
|
|
4974
4974
|
disabledReason?: string | undefined;
|
|
4975
4975
|
}[];
|
|
4976
4976
|
selection?: {
|
|
4977
|
-
mode: "single";
|
|
4978
|
-
} | {
|
|
4979
4977
|
mode: "many";
|
|
4980
4978
|
min: number;
|
|
4981
4979
|
max?: number | undefined;
|
|
4982
4980
|
distinct?: boolean | undefined;
|
|
4981
|
+
} | {
|
|
4982
|
+
mode: "single";
|
|
4983
4983
|
} | undefined;
|
|
4984
4984
|
min?: number | undefined;
|
|
4985
4985
|
max?: number | undefined;
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
isSameDropTarget,
|
|
7
7
|
magneticDropPoint,
|
|
8
8
|
runtimeFeatures
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-54U3ZCFA.js";
|
|
10
10
|
import {
|
|
11
11
|
CancelInteractionCommandSchema,
|
|
12
12
|
CompactGameplayFrameSchema,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
parsePluginToHostEnvelope,
|
|
46
46
|
playerSeatColor,
|
|
47
47
|
staticSource
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-RNR4M67F.js";
|
|
49
49
|
import {
|
|
50
50
|
InputDomainSchema,
|
|
51
51
|
InteractionAvailabilitySchema,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
boardSpaceHostId,
|
|
57
57
|
isHiddenCardId,
|
|
58
58
|
parseBoardSpaceHostId
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-G4MY5YMA.js";
|
|
60
60
|
import {
|
|
61
61
|
RuntimeJsonSchema,
|
|
62
62
|
SeatBoardTopologySchema,
|
|
@@ -75,10 +75,10 @@ import {
|
|
|
75
75
|
perPlayerInstanceId,
|
|
76
76
|
requireLookup,
|
|
77
77
|
zonePositions
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-7GX27XU6.js";
|
|
79
79
|
|
|
80
80
|
// src/package-set.ts
|
|
81
|
-
var DREAMBOARD_SDK_VERSION = true ? "0.5.0-alpha.
|
|
81
|
+
var DREAMBOARD_SDK_VERSION = true ? "0.5.0-alpha.36" : "0.0.0-development";
|
|
82
82
|
var DREAMBOARD_SDK_PACKAGES = {
|
|
83
83
|
"@dreamboard-games/sdk": DREAMBOARD_SDK_VERSION
|
|
84
84
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as BoardSpaceTarget,
|
|
1
|
+
import { l as BoardSpaceTarget, by as TopologyDefinitions, j as BoardIdOfTable, bs as TileSpaceId, ba as SeatSpaceRef, bg as SpaceIdOfTable, bv as TiledBoardIdOfTable, bw as TiledEdgeIdOfTable, bx as TiledVertexIdOfTable, m as BoardStateOfTable, aF as PositionTarget, bb as SeatTileRef, b0 as RuntimeJson, b8 as SeatBoardTopology, be as SourceSnapshot, bf as SourceState, bj as SubmitResult, ac as InteractionInputDescriptor, $ as InputDomain, S as GameSource, ay as PhaseNamesOfDefinition, ab as InteractionIdOfDefinitionPhase, w as ClientParamsOfInteractionOfDefinition, _ as InputCollectorOfDefinition, bH as ViewOfDefinition, a8 as InteractionDescriptor, aK as ProjectedTile, aM as ReadonlyRuntimeData, n as BoardTopologyOf, W as HiddenCardId, bB as ViewCard, bC as ViewCardOfTable, N as GameEvent } from './extract-_TyEXSCt.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { Store } from '@tanstack/store';
|
|
4
4
|
|
|
@@ -527,7 +527,7 @@ interface InteractionBase<G, K extends InteractionKey<G>> {
|
|
|
527
527
|
readonly help?: string;
|
|
528
528
|
readonly kind: "inputs" | "steps";
|
|
529
529
|
readonly game: CoreInstance<G>;
|
|
530
|
-
getAvailability(): InteractionDescriptor["availability"];
|
|
530
|
+
getAvailability(params?: InteractionParams<G, K>): InteractionDescriptor["availability"];
|
|
531
531
|
getIsAvailable(params?: InteractionParams<G, K>): boolean;
|
|
532
532
|
getUnavailableReason(): string | null;
|
|
533
533
|
getStep(): InteractionDescriptor["step"] | null;
|
package/dist/react.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { PointerEvent, FocusEvent, MouseEvent, DragEvent, CSSProperties, ReactNode } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { f as ShortcutZoneTarget, c as ShortcutOptions, e as ShortcutTarget, b as ShortcutHint } from './shortcuts-
|
|
5
|
-
import { a7 as TargetOptions, r as Features, C as Card, a4 as SeatCardId, p as DropTarget, I as IdOf, ae as ZoneHostId, J as InstanceOptions, n as CoreInstance, q as FeatureContext, G as GameInstance, s as GameSnapshot, o as DropAreaBinding } from './model-
|
|
3
|
+
import { aF as PositionTarget, bM as ZoneVisibility, S as GameSource } from './extract-_TyEXSCt.js';
|
|
4
|
+
import { f as ShortcutZoneTarget, c as ShortcutOptions, e as ShortcutTarget, b as ShortcutHint } from './shortcuts-DXkAlfNw.js';
|
|
5
|
+
import { a7 as TargetOptions, r as Features, C as Card, a4 as SeatCardId, p as DropTarget, I as IdOf, ae as ZoneHostId, J as InstanceOptions, n as CoreInstance, q as FeatureContext, G as GameInstance, s as GameSnapshot, o as DropAreaBinding } from './model-U0F5B3cr.js';
|
|
6
6
|
import '@tanstack/store';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import 'honeycomb-grid';
|
package/dist/react.js
CHANGED
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
createGestureRecognizer,
|
|
4
4
|
isSameDropTarget,
|
|
5
5
|
magneticDropPoint
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-54U3ZCFA.js";
|
|
7
7
|
import {
|
|
8
8
|
inputValueKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7GX27XU6.js";
|
|
10
10
|
|
|
11
11
|
// src/react/create-game-hook.tsx
|
|
12
12
|
import { createStore as createStore2 } from "@tanstack/store";
|