@dreamboard-games/sdk 0.4.0-alpha.11 → 0.4.0-alpha.13
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 +444 -9
- package/dist/authoring/index.js +3 -3
- package/dist/authoring-compiler.js +4 -4
- package/dist/authoring-materialize-cli.js +4 -4
- package/dist/{chunk-THTFQZZ3.js → chunk-42HQLHVA.js} +3 -3
- package/dist/{chunk-RP6QDQGI.js → chunk-7JBPOJOF.js} +46 -1
- package/dist/chunk-7JBPOJOF.js.map +1 -0
- package/dist/{chunk-SACZWUA6.js → chunk-HIH6Y4FA.js} +86 -1224
- package/dist/{chunk-SACZWUA6.js.map → chunk-HIH6Y4FA.js.map} +1 -1
- package/dist/{chunk-RU3Z5J6V.js → chunk-KZFHTUI5.js} +4 -4
- package/dist/{chunk-HRWI2DIJ.js → chunk-MLFHVYF7.js} +2 -2
- package/dist/{chunk-3OY46H7D.js → chunk-OFIDC7DJ.js} +3 -3
- package/dist/{chunk-CP3BF3B2.js → chunk-THWT4V3Z.js} +2 -2
- package/dist/{chunk-CP3BF3B2.js.map → chunk-THWT4V3Z.js.map} +1 -1
- package/dist/{chunk-4IIY742N.js → chunk-UTSBXZAM.js} +2 -2
- package/dist/chunk-VWTKGIYF.js +90 -0
- package/dist/chunk-VWTKGIYF.js.map +1 -0
- package/dist/codegen.js +1 -1
- package/dist/{index-CRfZ21dM.d.ts → index-CR69MyWr.d.ts} +1 -1
- package/dist/index.js +2 -2
- package/dist/package-set.d.ts +2 -2
- package/dist/package-set.js +2 -2
- package/dist/reducer/advanced.js +7 -82
- package/dist/reducer/advanced.js.map +1 -1
- package/dist/reducer-contract.js +1 -1
- package/dist/reference-game-compiler.js +2 -2
- package/dist/reference-game-source-manifest-cli.js +2 -2
- package/dist/runtime/workspace-contract.d.ts +342 -10
- package/dist/runtime/workspace-contract.js +7 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +7 -3
- package/dist/runtime.js.map +1 -1
- package/dist/testing-runtime.js +2 -2
- package/dist/testing.d.ts +84 -20
- package/dist/testing.js +167 -23
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-RP6QDQGI.js.map +0 -1
- /package/dist/{chunk-THTFQZZ3.js.map → chunk-42HQLHVA.js.map} +0 -0
- /package/dist/{chunk-RU3Z5J6V.js.map → chunk-KZFHTUI5.js.map} +0 -0
- /package/dist/{chunk-HRWI2DIJ.js.map → chunk-MLFHVYF7.js.map} +0 -0
- /package/dist/{chunk-3OY46H7D.js.map → chunk-OFIDC7DJ.js.map} +0 -0
- /package/dist/{chunk-4IIY742N.js.map → chunk-UTSBXZAM.js.map} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createClientParamSchemasByPhase
|
|
3
|
-
} from "./chunk-5XTAQ4EQ.js";
|
|
4
1
|
import {
|
|
5
2
|
createReducerBundle
|
|
6
3
|
} from "./chunk-XDGRC6OR.js";
|
|
4
|
+
import {
|
|
5
|
+
createClientParamSchemasByPhase
|
|
6
|
+
} from "./chunk-5XTAQ4EQ.js";
|
|
7
7
|
import {
|
|
8
8
|
manifestSchemaFamily
|
|
9
9
|
} from "./chunk-YNW3KBDE.js";
|
|
@@ -1861,4 +1861,4 @@ export {
|
|
|
1861
1861
|
digestScenarioJson,
|
|
1862
1862
|
compareCanonicalScenarioJson
|
|
1863
1863
|
};
|
|
1864
|
-
//# sourceMappingURL=chunk-
|
|
1864
|
+
//# sourceMappingURL=chunk-KZFHTUI5.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GENERATED_AUTHORING_METADATA
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-THWT4V3Z.js";
|
|
4
4
|
|
|
5
5
|
// src/package-set.ts
|
|
6
6
|
var DREAMBOARD_SDK_VERSION = GENERATED_AUTHORING_METADATA.sdkVersion;
|
|
@@ -18,4 +18,4 @@ export {
|
|
|
18
18
|
DREAMBOARD_SDK_PACKAGES,
|
|
19
19
|
DREAMBOARD_SDK_PACKAGE_SET
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=chunk-
|
|
21
|
+
//# sourceMappingURL=chunk-MLFHVYF7.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GENERATED_AUTHORING_METADATA
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-THWT4V3Z.js";
|
|
4
4
|
import {
|
|
5
5
|
AUTHORITATIVE_GENERATED_FILES,
|
|
6
6
|
SEED_FILES,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
generateSeedFiles,
|
|
10
10
|
materializeManifestTable,
|
|
11
11
|
validateManifestAuthoring
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HIH6Y4FA.js";
|
|
13
13
|
|
|
14
14
|
// src/authoring/manifest-conformance-cases.ts
|
|
15
15
|
function baseManifest(cardSet, overrides = {}) {
|
|
@@ -529,4 +529,4 @@ export {
|
|
|
529
529
|
MANIFEST_CONFORMANCE_CASES,
|
|
530
530
|
projectAuthoringAdapter
|
|
531
531
|
};
|
|
532
|
-
//# sourceMappingURL=chunk-
|
|
532
|
+
//# sourceMappingURL=chunk-OFIDC7DJ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/authoring/generated-metadata.ts
|
|
2
2
|
var GENERATED_AUTHORING_METADATA = {
|
|
3
|
-
sdkVersion: "0.4.0-alpha.
|
|
3
|
+
sdkVersion: "0.4.0-alpha.13",
|
|
4
4
|
codegenVersion: "0.3.0-alpha.0",
|
|
5
5
|
manifestSchemaVersion: 2,
|
|
6
6
|
generatedArtifactSchemaVersion: 1
|
|
@@ -9,4 +9,4 @@ var GENERATED_AUTHORING_METADATA = {
|
|
|
9
9
|
export {
|
|
10
10
|
GENERATED_AUTHORING_METADATA
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk-
|
|
12
|
+
//# sourceMappingURL=chunk-THWT4V3Z.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/authoring/generated-metadata.ts"],"sourcesContent":["// Generated by scripts/generate-authoring-metadata.mjs. Do not edit by hand.\nimport type { GeneratedAuthoringMetadataV1 } from \"./types.js\";\n\nexport const GENERATED_AUTHORING_METADATA = {\n sdkVersion: \"0.4.0-alpha.
|
|
1
|
+
{"version":3,"sources":["../src/authoring/generated-metadata.ts"],"sourcesContent":["// Generated by scripts/generate-authoring-metadata.mjs. Do not edit by hand.\nimport type { GeneratedAuthoringMetadataV1 } from \"./types.js\";\n\nexport const GENERATED_AUTHORING_METADATA = {\n sdkVersion: \"0.4.0-alpha.13\",\n codegenVersion: \"0.3.0-alpha.0\",\n manifestSchemaVersion: 2,\n generatedArtifactSchemaVersion: 1,\n} as const satisfies GeneratedAuthoringMetadataV1;\n"],"mappings":";AAGO,IAAM,+BAA+B;AAAA,EAC1C,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,uBAAuB;AAAA,EACvB,gCAAgC;AAClC;","names":[]}
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-UNVCT5Z7.js";
|
|
10
10
|
import {
|
|
11
11
|
WORKSPACE_CODEGEN_OWNERSHIP
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HIH6Y4FA.js";
|
|
13
13
|
|
|
14
14
|
// src/reference-games/source-inventory-policy-core.mjs
|
|
15
15
|
var CANONICAL_REFERENCE_GAME_IDS = Object.freeze([
|
|
@@ -432,4 +432,4 @@ export {
|
|
|
432
432
|
collectReferenceGameSourceManifest,
|
|
433
433
|
collectReferenceGameSourceObjects
|
|
434
434
|
};
|
|
435
|
-
//# sourceMappingURL=chunk-
|
|
435
|
+
//# sourceMappingURL=chunk-UTSBXZAM.js.map
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// src/reducer/setup-bootstrap-helpers.ts
|
|
2
|
+
function shuffle(container) {
|
|
3
|
+
return {
|
|
4
|
+
type: "shuffle",
|
|
5
|
+
container
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
function dealToPlayerZone({
|
|
9
|
+
from,
|
|
10
|
+
zoneId,
|
|
11
|
+
count,
|
|
12
|
+
playerIds
|
|
13
|
+
}) {
|
|
14
|
+
return {
|
|
15
|
+
type: "deal",
|
|
16
|
+
from,
|
|
17
|
+
to: {
|
|
18
|
+
type: "playerZone",
|
|
19
|
+
zoneId
|
|
20
|
+
},
|
|
21
|
+
count,
|
|
22
|
+
playerIds
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function dealToPlayerBoardContainer({
|
|
26
|
+
from,
|
|
27
|
+
boardId,
|
|
28
|
+
containerId,
|
|
29
|
+
count,
|
|
30
|
+
playerIds
|
|
31
|
+
}) {
|
|
32
|
+
return {
|
|
33
|
+
type: "deal",
|
|
34
|
+
from,
|
|
35
|
+
to: {
|
|
36
|
+
type: "playerBoardContainer",
|
|
37
|
+
boardId,
|
|
38
|
+
containerId
|
|
39
|
+
},
|
|
40
|
+
count,
|
|
41
|
+
playerIds
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function seedSharedBoardContainer({
|
|
45
|
+
from,
|
|
46
|
+
boardId,
|
|
47
|
+
containerId,
|
|
48
|
+
count,
|
|
49
|
+
componentIds
|
|
50
|
+
}) {
|
|
51
|
+
return {
|
|
52
|
+
type: "move",
|
|
53
|
+
from,
|
|
54
|
+
to: {
|
|
55
|
+
type: "sharedBoardContainer",
|
|
56
|
+
boardId,
|
|
57
|
+
containerId
|
|
58
|
+
},
|
|
59
|
+
count,
|
|
60
|
+
componentIds
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function seedSharedBoardSpace({
|
|
64
|
+
from,
|
|
65
|
+
boardId,
|
|
66
|
+
spaceId,
|
|
67
|
+
count,
|
|
68
|
+
componentIds
|
|
69
|
+
}) {
|
|
70
|
+
return {
|
|
71
|
+
type: "move",
|
|
72
|
+
from,
|
|
73
|
+
to: {
|
|
74
|
+
type: "sharedBoardSpace",
|
|
75
|
+
boardId,
|
|
76
|
+
spaceId
|
|
77
|
+
},
|
|
78
|
+
count,
|
|
79
|
+
componentIds
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export {
|
|
84
|
+
shuffle,
|
|
85
|
+
dealToPlayerZone,
|
|
86
|
+
dealToPlayerBoardContainer,
|
|
87
|
+
seedSharedBoardContainer,
|
|
88
|
+
seedSharedBoardSpace
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=chunk-VWTKGIYF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/reducer/setup-bootstrap-helpers.ts"],"sourcesContent":["import type {\n CardIdOfManifest,\n DieIdOfManifest,\n GeneratedManifestContractLike,\n PieceIdOfManifest,\n PlayerIdOfManifest,\n SetupBootstrapContainerRef,\n SetupBootstrapPerPlayerContainerTemplateRef,\n SetupBootstrapStep,\n SetupBootstrapDestinationRef,\n} from \"./model\";\n\nexport function shuffle<\n Manifest extends GeneratedManifestContractLike =\n GeneratedManifestContractLike,\n>(\n container: SetupBootstrapContainerRef<Manifest>,\n): SetupBootstrapStep<Manifest> {\n return {\n type: \"shuffle\",\n container,\n };\n}\n\nexport function dealToPlayerZone<\n Manifest extends GeneratedManifestContractLike =\n GeneratedManifestContractLike,\n>({\n from,\n zoneId,\n count,\n playerIds,\n}: {\n from: Extract<\n SetupBootstrapContainerRef<Manifest>,\n { type: \"sharedZone\" | \"sharedBoardContainer\" }\n >;\n zoneId: Extract<\n SetupBootstrapPerPlayerContainerTemplateRef<Manifest>,\n { type: \"playerZone\" }\n >[\"zoneId\"];\n count: number;\n playerIds?: readonly PlayerIdOfManifest<Manifest>[];\n}): SetupBootstrapStep<Manifest> {\n return {\n type: \"deal\",\n from,\n to: {\n type: \"playerZone\",\n zoneId,\n } as SetupBootstrapPerPlayerContainerTemplateRef<Manifest>,\n count,\n playerIds,\n };\n}\n\nexport function dealToPlayerBoardContainer<\n Manifest extends GeneratedManifestContractLike =\n GeneratedManifestContractLike,\n>({\n from,\n boardId,\n containerId,\n count,\n playerIds,\n}: {\n from: Extract<\n SetupBootstrapContainerRef<Manifest>,\n { type: \"sharedZone\" | \"sharedBoardContainer\" }\n >;\n boardId: Extract<\n SetupBootstrapPerPlayerContainerTemplateRef<Manifest>,\n { type: \"playerBoardContainer\" }\n >[\"boardId\"];\n containerId: Extract<\n SetupBootstrapPerPlayerContainerTemplateRef<Manifest>,\n { type: \"playerBoardContainer\" }\n >[\"containerId\"];\n count: number;\n playerIds?: readonly PlayerIdOfManifest<Manifest>[];\n}): SetupBootstrapStep<Manifest> {\n return {\n type: \"deal\",\n from,\n to: {\n type: \"playerBoardContainer\",\n boardId,\n containerId,\n } as SetupBootstrapPerPlayerContainerTemplateRef<Manifest>,\n count,\n playerIds,\n };\n}\n\nexport function seedSharedBoardContainer<\n Manifest extends GeneratedManifestContractLike =\n GeneratedManifestContractLike,\n>({\n from,\n boardId,\n containerId,\n count,\n componentIds,\n}: {\n from: SetupBootstrapContainerRef<Manifest>;\n boardId: Extract<\n SetupBootstrapDestinationRef<Manifest>,\n { type: \"sharedBoardContainer\" }\n >[\"boardId\"];\n containerId: Extract<\n SetupBootstrapDestinationRef<Manifest>,\n { type: \"sharedBoardContainer\" }\n >[\"containerId\"];\n count?: number;\n componentIds?: readonly (\n | CardIdOfManifest<Manifest>\n | PieceIdOfManifest<Manifest>\n | DieIdOfManifest<Manifest>\n )[];\n}): SetupBootstrapStep<Manifest> {\n return {\n type: \"move\",\n from,\n to: {\n type: \"sharedBoardContainer\",\n boardId,\n containerId,\n } as SetupBootstrapDestinationRef<Manifest>,\n count,\n componentIds,\n };\n}\n\nexport function seedSharedBoardSpace<\n Manifest extends GeneratedManifestContractLike =\n GeneratedManifestContractLike,\n>({\n from,\n boardId,\n spaceId,\n count,\n componentIds,\n}: {\n from: SetupBootstrapContainerRef<Manifest>;\n boardId: Extract<\n SetupBootstrapDestinationRef<Manifest>,\n { type: \"sharedBoardSpace\" }\n >[\"boardId\"];\n spaceId: Extract<\n SetupBootstrapDestinationRef<Manifest>,\n { type: \"sharedBoardSpace\" }\n >[\"spaceId\"];\n count?: number;\n componentIds?: readonly (\n | CardIdOfManifest<Manifest>\n | PieceIdOfManifest<Manifest>\n | DieIdOfManifest<Manifest>\n )[];\n}): SetupBootstrapStep<Manifest> {\n return {\n type: \"move\",\n from,\n to: {\n type: \"sharedBoardSpace\",\n boardId,\n spaceId,\n } as SetupBootstrapDestinationRef<Manifest>,\n count,\n componentIds,\n };\n}\n"],"mappings":";AAYO,SAAS,QAId,WAC8B;AAC9B,SAAO;AAAA,IACL,MAAM;AAAA,IACN;AAAA,EACF;AACF;AAEO,SAAS,iBAGd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAWiC;AAC/B,SAAO;AAAA,IACL,MAAM;AAAA,IACN;AAAA,IACA,IAAI;AAAA,MACF,MAAM;AAAA,MACN;AAAA,IACF;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEO,SAAS,2BAGd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAeiC;AAC/B,SAAO;AAAA,IACL,MAAM;AAAA,IACN;AAAA,IACA,IAAI;AAAA,MACF,MAAM;AAAA,MACN;AAAA,MACA;AAAA,IACF;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEO,SAAS,yBAGd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAgBiC;AAC/B,SAAO;AAAA,IACL,MAAM;AAAA,IACN;AAAA,IACA,IAAI;AAAA,MACF,MAAM;AAAA,MACN;AAAA,MACA;AAAA,IACF;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEO,SAAS,qBAGd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAgBiC;AAC/B,SAAO;AAAA,IACL,MAAM;AAAA,IACN;AAAA,IACA,IAAI;AAAA,MACF,MAAM;AAAA,MACN;AAAA,MACA;AAAA,IACF;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;","names":[]}
|
package/dist/codegen.js
CHANGED
|
@@ -190,4 +190,4 @@ interface DefineGameUIConfig<GameState, Surfaces> {
|
|
|
190
190
|
}
|
|
191
191
|
declare function createWorkspaceUIContract<WorkspaceUI, Contract extends UIContract, Resource extends string, Card, HexBoards extends Record<string, unknown>, SquareBoards extends Record<string, unknown> = Record<string, unknown>>(options: WorkspaceContractOptions<Contract, Resource, Card, HexBoards, SquareBoards>): WorkspaceUI;
|
|
192
192
|
|
|
193
|
-
export { type
|
|
193
|
+
export { type ClientParamSchema as C, type DefineGameUIConfig as D, type WorkspaceBoardSurface as W, type ClientParamSchemaMap as a, type WorkspaceBoardSurfaceDescriptor as b, type WorkspaceBoardTargetInputSlot as c, type WorkspaceCardCollectionSurface as d, type WorkspaceCardCollectionSurfaceDescriptor as e, type WorkspaceCardInputSlot as f, type WorkspaceFormInputSlot as g, type WorkspaceHandSurface as h, type WorkspaceHandSurfaceDescriptor as i, type WorkspaceInteractionFormDescriptor as j, type WorkspaceInteractionFormsDescriptor as k, type WorkspaceInteractionSlotComponent as l, type WorkspacePileSurface as m, type WorkspacePileSurfaceDescriptor as n, type WorkspacePilesSurfaceDescriptor as o, type WorkspaceSurfaceSpec as p, createWorkspaceUIContract as q };
|
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-MLFHVYF7.js";
|
|
6
|
+
import "./chunk-THWT4V3Z.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.13";
|
|
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.13";
|
|
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-MLFHVYF7.js";
|
|
6
|
+
import "./chunk-THWT4V3Z.js";
|
|
7
7
|
import "./chunk-PZ5AY32C.js";
|
|
8
8
|
export {
|
|
9
9
|
DREAMBOARD_SDK_PACKAGES,
|
package/dist/reducer/advanced.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
dealToPlayerBoardContainer,
|
|
3
|
+
dealToPlayerZone,
|
|
4
|
+
seedSharedBoardContainer,
|
|
5
|
+
seedSharedBoardSpace,
|
|
6
|
+
shuffle
|
|
7
|
+
} from "../chunk-VWTKGIYF.js";
|
|
1
8
|
import {
|
|
2
9
|
createClientParamSchemasByPhase
|
|
3
10
|
} from "../chunk-5XTAQ4EQ.js";
|
|
@@ -16,88 +23,6 @@ import {
|
|
|
16
23
|
} from "../chunk-YNW3KBDE.js";
|
|
17
24
|
import "../chunk-3PFDHTR7.js";
|
|
18
25
|
import "../chunk-PZ5AY32C.js";
|
|
19
|
-
|
|
20
|
-
// src/reducer/setup-bootstrap-helpers.ts
|
|
21
|
-
function shuffle(container) {
|
|
22
|
-
return {
|
|
23
|
-
type: "shuffle",
|
|
24
|
-
container
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
function dealToPlayerZone({
|
|
28
|
-
from,
|
|
29
|
-
zoneId,
|
|
30
|
-
count,
|
|
31
|
-
playerIds
|
|
32
|
-
}) {
|
|
33
|
-
return {
|
|
34
|
-
type: "deal",
|
|
35
|
-
from,
|
|
36
|
-
to: {
|
|
37
|
-
type: "playerZone",
|
|
38
|
-
zoneId
|
|
39
|
-
},
|
|
40
|
-
count,
|
|
41
|
-
playerIds
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function dealToPlayerBoardContainer({
|
|
45
|
-
from,
|
|
46
|
-
boardId,
|
|
47
|
-
containerId,
|
|
48
|
-
count,
|
|
49
|
-
playerIds
|
|
50
|
-
}) {
|
|
51
|
-
return {
|
|
52
|
-
type: "deal",
|
|
53
|
-
from,
|
|
54
|
-
to: {
|
|
55
|
-
type: "playerBoardContainer",
|
|
56
|
-
boardId,
|
|
57
|
-
containerId
|
|
58
|
-
},
|
|
59
|
-
count,
|
|
60
|
-
playerIds
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
function seedSharedBoardContainer({
|
|
64
|
-
from,
|
|
65
|
-
boardId,
|
|
66
|
-
containerId,
|
|
67
|
-
count,
|
|
68
|
-
componentIds
|
|
69
|
-
}) {
|
|
70
|
-
return {
|
|
71
|
-
type: "move",
|
|
72
|
-
from,
|
|
73
|
-
to: {
|
|
74
|
-
type: "sharedBoardContainer",
|
|
75
|
-
boardId,
|
|
76
|
-
containerId
|
|
77
|
-
},
|
|
78
|
-
count,
|
|
79
|
-
componentIds
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
function seedSharedBoardSpace({
|
|
83
|
-
from,
|
|
84
|
-
boardId,
|
|
85
|
-
spaceId,
|
|
86
|
-
count,
|
|
87
|
-
componentIds
|
|
88
|
-
}) {
|
|
89
|
-
return {
|
|
90
|
-
type: "move",
|
|
91
|
-
from,
|
|
92
|
-
to: {
|
|
93
|
-
type: "sharedBoardSpace",
|
|
94
|
-
boardId,
|
|
95
|
-
spaceId
|
|
96
|
-
},
|
|
97
|
-
count,
|
|
98
|
-
componentIds
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
26
|
export {
|
|
102
27
|
FrameworkErrorCodes,
|
|
103
28
|
applySetupBootstrap,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/reducer-contract.js
CHANGED
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
isReferenceGameSourceObject,
|
|
8
8
|
referenceGamePathIdentity,
|
|
9
9
|
shouldDescendIntoReferenceGameDirectory
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UTSBXZAM.js";
|
|
11
11
|
import "./chunk-YN5W67YL.js";
|
|
12
12
|
import "./chunk-UNVCT5Z7.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-HIH6Y4FA.js";
|
|
14
14
|
import "./chunk-PZ5AY32C.js";
|
|
15
15
|
export {
|
|
16
16
|
CANONICAL_REFERENCE_GAME_IDS,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
collectReferenceGameSourceManifest
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UTSBXZAM.js";
|
|
5
5
|
import "./chunk-YN5W67YL.js";
|
|
6
6
|
import "./chunk-UNVCT5Z7.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-HIH6Y4FA.js";
|
|
8
8
|
import "./chunk-PZ5AY32C.js";
|
|
9
9
|
|
|
10
10
|
// src/reference-game-source-manifest-cli.ts
|