@dreamboard-games/sdk 0.4.0-alpha.6 → 0.4.0-alpha.7
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 +408 -8
- package/dist/authoring/index.d.ts +5 -4
- package/dist/authoring/index.js +3 -3
- package/dist/authoring/index.js.map +1 -1
- package/dist/{chunk-PAPIAMYX.js → chunk-3QIZKXJ2.js} +6 -4
- package/dist/{chunk-PAPIAMYX.js.map → chunk-3QIZKXJ2.js.map} +1 -1
- package/dist/chunk-5IHU5CUK.js +575 -0
- package/dist/chunk-5IHU5CUK.js.map +1 -0
- package/dist/chunk-IU6KGPY7.js +659 -0
- package/dist/chunk-IU6KGPY7.js.map +1 -0
- package/dist/{chunk-HK3WN4U7.js → chunk-KYEWGZ2Y.js} +2 -2
- package/dist/{chunk-HK3WN4U7.js.map → chunk-KYEWGZ2Y.js.map} +1 -1
- package/dist/{chunk-DDST4U2P.js → chunk-NO537WSS.js} +2 -2
- package/dist/{chunk-SOBNI363.js → chunk-Q322XCY2.js} +11 -6
- package/dist/{chunk-SOBNI363.js.map → chunk-Q322XCY2.js.map} +1 -1
- package/dist/{chunk-OV6JC2BM.js → chunk-RKGJ64UN.js} +19 -15
- package/dist/chunk-RKGJ64UN.js.map +1 -0
- package/dist/chunk-VLG4YST5.js +564 -0
- package/dist/chunk-VLG4YST5.js.map +1 -0
- package/dist/{stale-contract-artifact-error-BelRiIDR.d.ts → diagnostics-1BWjRo6-.d.ts} +1 -18
- package/dist/index.js +2 -2
- package/dist/package-set.d.ts +2 -2
- package/dist/package-set.js +2 -2
- package/dist/reducer.d.ts +3 -2
- package/dist/reducer.js +5 -5
- package/dist/reducer.js.map +1 -1
- package/dist/reference-games/index.d.ts +223 -0
- package/dist/reference-games/index.js +230 -0
- package/dist/reference-games/index.js.map +1 -0
- package/dist/runtime/primitives.js +4 -3
- package/dist/runtime/workspace-contract.js +5 -4
- package/dist/runtime.js +15 -205
- package/dist/runtime.js.map +1 -1
- package/dist/stale-contract-artifact-error-C5AaZPJ8.d.ts +18 -0
- package/dist/testing-runtime.d.ts +42 -0
- package/dist/testing-runtime.js +153 -0
- package/dist/testing-runtime.js.map +1 -0
- package/dist/testing.d.ts +5 -191
- package/dist/testing.js +22 -640
- package/dist/testing.js.map +1 -1
- package/dist/types-DcADVHe9.d.ts +192 -0
- package/package.json +13 -2
- package/dist/chunk-OV6JC2BM.js.map +0 -1
- package/dist/chunk-UUQNOGZV.js +0 -1266
- package/dist/chunk-UUQNOGZV.js.map +0 -1
- /package/dist/{chunk-DDST4U2P.js.map → chunk-NO537WSS.js.map} +0 -0
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-NO537WSS.js";
|
|
6
|
+
import "./chunk-KYEWGZ2Y.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.7";
|
|
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.7";
|
|
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-NO537WSS.js";
|
|
6
|
+
import "./chunk-KYEWGZ2Y.js";
|
|
7
7
|
import "./chunk-PZ5AY32C.js";
|
|
8
8
|
export {
|
|
9
9
|
DREAMBOARD_SDK_PACKAGES,
|
package/dist/reducer.d.ts
CHANGED
|
@@ -4,8 +4,9 @@ export { h as BoardRef, R as FrameworkErrorCodes, S as GameEvent, T as GameEvent
|
|
|
4
4
|
import { j as BaseGameStateOfContract, ap as PhaseDefinition, b8 as ViewDefinition, aE as ReducerGameContract, Y as InputCollector, y as CollectorState, K as DerivedResolver, b7 as ValidationIssue, b6 as TargetKind, a3 as InputSelectionDescriptor, a0 as InputDomainDescriptor, n as BoardTargetDomainDescriptor, l as BoardInputCollectorMeta, f as AnyInteractionSpec, d as AnyCardActionSpec, R as EffectMap, aW as ScopedPhaseState, b1 as StageMap, ax as PhaseZoneList, C as CardActionMap, at as PhaseMapOf, ba as ViewMapOf, aG as ReducerGameDefinition, b4 as StaticViewDefinition, ae as InteractionSpec, p as CardActionSpec, ac as InteractionRule, a9 as InteractionMap, z as ContinuationCallable, T as EffectRollDieDefinition, U as EffectShuffleDefinition, V as EffectShufflePlayerZoneDefinition, b3 as StageSpec, aF as ReducerGameContractLike } from './views-32rSsfeU.js';
|
|
5
5
|
export { J as DerivedDefinition, W as GameStateOf, X as InitialStateCallbacks, am as Op, aD as ReducerEdit, aH as ReducerOps, aJ as ReducerStateBase, aL as ReducerTransaction, aU as RotatePlayerZoneArgs, bf as createDerivedResolver, bg as createReducerEdit, bh as createReducerOps, bi as createReducerTransaction, bj as defineDerived, bk as pipe } from './views-32rSsfeU.js';
|
|
6
6
|
import { a as ReducerBundleContract } from './index.d-DMASeF6M.js';
|
|
7
|
-
import { a as ReducerDiagnosticsSink } from './
|
|
8
|
-
export { D as DispatchTraceSummaryEntry, R as ReducerDiagnosticEvent,
|
|
7
|
+
import { a as ReducerDiagnosticsSink } from './diagnostics-1BWjRo6-.js';
|
|
8
|
+
export { D as DispatchTraceSummaryEntry, R as ReducerDiagnosticEvent, n as noopDiagnosticsSink } from './diagnostics-1BWjRo6-.js';
|
|
9
|
+
export { S as StaleContractArtifactError, a as StaleContractArtifactErrorOptions, b as StaleContractArtifactKind, i as isStaleContractArtifactError } from './stale-contract-artifact-error-C5AaZPJ8.js';
|
|
9
10
|
import './types.js';
|
|
10
11
|
|
|
11
12
|
type AnyReducerGameContract = {
|
package/dist/reducer.js
CHANGED
|
@@ -134,14 +134,14 @@ import {
|
|
|
134
134
|
builders_exports,
|
|
135
135
|
zod_exports
|
|
136
136
|
} from "./chunk-TGMXBRKY.js";
|
|
137
|
-
import {
|
|
138
|
-
StaleContractArtifactError,
|
|
139
|
-
isStaleContractArtifactError
|
|
140
|
-
} from "./chunk-3OZMHZK3.js";
|
|
141
137
|
import {
|
|
142
138
|
RuntimeJsonSchema,
|
|
143
139
|
assertJsonWithinLimits
|
|
144
140
|
} from "./chunk-PF7L4BMG.js";
|
|
141
|
+
import {
|
|
142
|
+
StaleContractArtifactError,
|
|
143
|
+
isStaleContractArtifactError
|
|
144
|
+
} from "./chunk-3OZMHZK3.js";
|
|
145
145
|
import "./chunk-PZ5AY32C.js";
|
|
146
146
|
|
|
147
147
|
// src/reducer/schema-helpers.ts
|
|
@@ -3886,7 +3886,7 @@ function makeValidationError(errorCode, message) {
|
|
|
3886
3886
|
function parseInteractionParams(interaction, rawParams, options = {}) {
|
|
3887
3887
|
const collectors = interactionInputsOf(interaction);
|
|
3888
3888
|
const record = rawParams ?? {};
|
|
3889
|
-
if (
|
|
3889
|
+
if (interaction.paramsSchema) {
|
|
3890
3890
|
const result = interaction.paramsSchema.safeParse(record);
|
|
3891
3891
|
if (!result.success) {
|
|
3892
3892
|
return {
|