@dreamboard-games/sdk 0.5.0-alpha.36 → 0.5.0-alpha.37
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/{chunk-RNR4M67F.js → chunk-TCQMRSB4.js} +94 -86
- package/dist/chunk-TCQMRSB4.js.map +1 -0
- package/dist/{chunk-75QTSYRZ.js → chunk-UARMSWDA.js} +10 -5
- package/dist/chunk-UARMSWDA.js.map +1 -0
- package/dist/index.d.ts +2010 -1162
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/reducer.js +1 -1
- package/dist/testing.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-75QTSYRZ.js.map +0 -1
- package/dist/chunk-RNR4M67F.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
parsePluginToHostEnvelope,
|
|
46
46
|
playerSeatColor,
|
|
47
47
|
staticSource
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-TCQMRSB4.js";
|
|
49
49
|
import {
|
|
50
50
|
InputDomainSchema,
|
|
51
51
|
InteractionAvailabilitySchema,
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
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.37" : "0.0.0-development";
|
|
82
82
|
var DREAMBOARD_SDK_PACKAGES = {
|
|
83
83
|
"@dreamboard-games/sdk": DREAMBOARD_SDK_VERSION
|
|
84
84
|
};
|
|
@@ -148,9 +148,17 @@ function iframeSource(options = {}) {
|
|
|
148
148
|
const payload = envelope.payload;
|
|
149
149
|
if (payload.type === "runtime.init") {
|
|
150
150
|
lifecycle.session(payload.session);
|
|
151
|
-
if (isOpen())
|
|
151
|
+
if (isOpen()) {
|
|
152
|
+
send({ type: "runtime.capabilities", compactGameplayFrames: true });
|
|
153
|
+
send({ type: "runtime.ready" });
|
|
154
|
+
}
|
|
152
155
|
} else if (payload.type === "gameplay.frame")
|
|
153
156
|
lifecycle.frame(payload.frame, payload.acknowledgedClientActionId);
|
|
157
|
+
else if (payload.type === "gameplay.compact-frame")
|
|
158
|
+
lifecycle.frame(
|
|
159
|
+
hydrateCompactGameplayFrame(payload.frame),
|
|
160
|
+
payload.acknowledgedClientActionId
|
|
161
|
+
);
|
|
154
162
|
else lifecycle.result(payload);
|
|
155
163
|
if (isOpen()) send({ type: "runtime.ack", sequence: envelope.sequence });
|
|
156
164
|
}
|