@puzzmo/sdk 1.0.60 → 1.0.61
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/dist/bootstrapPayload.d.ts +8 -0
- package/dist/bootstrapPayload.d.ts.map +1 -0
- package/dist/contracts.d.ts +1 -1
- package/dist/{createSimulator-Dory7qUL.js → createSimulator-CdInpCHG.js} +220 -202
- package/dist/{createSimulator-Dory7qUL.js.map → createSimulator-CdInpCHG.js.map} +1 -1
- package/dist/{createSimulator-kGIstLy9.cjs → createSimulator-PNeBoNux.cjs} +22 -22
- package/dist/{createSimulator-kGIstLy9.cjs.map → createSimulator-PNeBoNux.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.global.js +1 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +229 -179
- package/dist/index.js.map +1 -1
- package/dist/inputs/index.cjs +1 -1
- package/dist/inputs/index.js +1 -1
- package/dist/pico8/index.cjs +1 -1
- package/dist/pico8/index.js +2 -2
- package/dist/sdk.d.ts.map +1 -1
- package/dist/simulator/createSimulator.d.ts.map +1 -1
- package/dist/simulator/index.cjs +1 -1
- package/dist/simulator/index.js +1 -1
- package/dist/simulator/standalone.cjs +1 -1
- package/dist/simulator/standalone.js +1 -1
- package/dist/types.d.ts +99 -50
- package/dist/types.d.ts.map +1 -1
- package/dist/vite.cjs +3 -3
- package/dist/vite.js +26 -26
- package/package.json +1 -1
- /package/dist/{asyncToGenerator-Dn36a-ch.js → asyncToGenerator-BotOOyB7.js} +0 -0
- /package/dist/{asyncToGenerator-DANjdFmB.cjs → asyncToGenerator-DIL7svO7.cjs} +0 -0
- /package/dist/{objectSpread2-C8x7fbpH.js → objectSpread2-BQwrzeNG.js} +0 -0
- /package/dist/{objectSpread2-DLgRiGrq.cjs → objectSpread2-CCAs_T0X.cjs} +0 -0
- /package/dist/{objectWithoutProperties-BVU0RRck.js → objectWithoutProperties-Bjd1IAMi.js} +0 -0
- /package/dist/{objectWithoutProperties-ChRmjIUS.cjs → objectWithoutProperties-Ee8z5QMa.cjs} +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { BootstrapGameData } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Fills in `game` and `session` when READY_DATA comes from a host which only sends the older
|
|
4
|
+
* `startOrFindGameplay` nesting, so the SDK and games only ever see the new shape. A copy of
|
|
5
|
+
* upgradeBootstrapGameData in @puzzmo-com/shared, which the SDK can't depend on.
|
|
6
|
+
*/
|
|
7
|
+
export declare const normalizeReadyData: (received: unknown) => BootstrapGameData;
|
|
8
|
+
//# sourceMappingURL=bootstrapPayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrapPayload.d.ts","sourceRoot":"","sources":["../src/bootstrapPayload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,iBAAiB,EAAoB,MAAM,SAAS,CAAA;AAcjF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,UAAU,OAAO,KAAG,iBAWtD,CAAA"}
|
package/dist/contracts.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export interface SDKTimer {
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* The bootstrap payload exposed to plugins. `currentUser` is typed for convenience; the rest of the
|
|
26
|
-
* host payload (`
|
|
26
|
+
* host payload (`game`, `session`, `theme`, `hostContext`, …) is reachable via the index
|
|
27
27
|
* signature so this stays self-contained and doesn't have to restate the full `BootstrapGameData`.
|
|
28
28
|
*/
|
|
29
29
|
export interface SDKPluginBootstrap {
|