@dreamboard-games/sdk 0.5.0-alpha.8 → 0.5.0-alpha.9
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 +10 -1
- package/dist/{chunk-4H4TAIV7.js → chunk-FUYMFUXO.js} +301 -286
- package/dist/chunk-FUYMFUXO.js.map +1 -0
- package/dist/{chunk-DE4LWN42.js → chunk-LBUAMC7E.js} +4 -4
- package/dist/chunk-LBUAMC7E.js.map +1 -0
- package/dist/{chunk-GZVYEVXY.js → chunk-QHYXNDJS.js} +11 -20
- package/dist/chunk-QHYXNDJS.js.map +1 -0
- package/dist/{chunk-EQ4BAJSB.js → chunk-ZH5BENBP.js} +3 -3
- package/dist/chunk-ZH5BENBP.js.map +1 -0
- package/dist/{diagnostics-Cg5NZ7NZ.d.ts → diagnostics-7D8Bo8Ve.d.ts} +2 -2
- package/dist/{extract-CoLo4qhk.d.ts → extract--xGrzaA9.d.ts} +52 -25
- package/dist/index.d.ts +88 -16
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/{model-Cvfxwq2n.d.ts → model-BvimcW9Q.d.ts} +8 -13
- package/dist/react.d.ts +3 -3
- package/dist/react.js +1 -1
- package/dist/reducer.d.ts +4 -4
- package/dist/reducer.js +2 -2
- package/dist/testing.d.ts +3 -3
- package/dist/testing.js +3 -3
- package/dist/{types-DPamTmUF.d.ts → types-Dkcj6g_z.d.ts} +3 -3
- package/package.json +1 -1
- package/dist/chunk-4H4TAIV7.js.map +0 -1
- package/dist/chunk-DE4LWN42.js.map +0 -1
- package/dist/chunk-EQ4BAJSB.js.map +0 -1
- package/dist/chunk-GZVYEVXY.js.map +0 -1
package/README.md
CHANGED
|
@@ -234,7 +234,7 @@ To migrate an older manifest, replace each card's `type` with `id` and set
|
|
|
234
234
|
|
|
235
235
|
`createReducerBundle(game)` returns exactly the contract version and four
|
|
236
236
|
operations: `boardStatic()`, `initialize(input)`, `dispatch({ state, input })`,
|
|
237
|
-
and `project({ state, playerIds })`. The runner contract is `0.
|
|
237
|
+
and `project({ state, playerIds })`. The runner contract is `0.9.0`; hosts must
|
|
238
238
|
require that exact version. Dispatch includes validation, direct transaction mutations, and phase entry.
|
|
239
239
|
Initialization returns
|
|
240
240
|
`{ state, terminal?, events? }`, preserving outcomes and events from initial
|
|
@@ -325,6 +325,15 @@ and gameplay websocket schemas plus `materializePluginGameplayFrame` live at the
|
|
|
325
325
|
root. Materialize the seat projection with static board data before publishing it;
|
|
326
326
|
sources publish the canonical seat view and keep command bases private.
|
|
327
327
|
|
|
328
|
+
Visible cards share one complete `ViewCard` shape: `id`, `cardType`, and JSON
|
|
329
|
+
`properties`, plus optional `name`, `text`, `frontImage`, and `backImage`.
|
|
330
|
+
`ViewCardSchema` validates this shape. Reducer and gameplay `cardViewsById` maps
|
|
331
|
+
contain these objects directly. Headless `card.view` preserves the manifest's
|
|
332
|
+
card identity, category, and property inference and is deeply readonly; table-only
|
|
333
|
+
`cardSetId` and `componentType` are absent. Concealed cards have a positional
|
|
334
|
+
`hidden:<zone>:<index>` identity, no view, and an optional separate `cardBacksById` entry.
|
|
335
|
+
This wire format requires plugin protocol version 8 and reducer contract `0.9.0`.
|
|
336
|
+
|
|
328
337
|
Card sets contain their authored `cards`, `cardSchema`, and `defaultHome` directly.
|
|
329
338
|
Standard playing cards are game-owned definitions with ordinary suit/rank
|
|
330
339
|
properties; the SDK does not synthesize inventories or assign built-in rules.
|