@patterkit/play-helpers 0.3.1 → 0.3.3

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/index.cjs CHANGED
@@ -204,6 +204,10 @@ function createDebugLink(opts) {
204
204
  post({ t: "flowClose", flow: flowId });
205
205
  },
206
206
  observe(flowId, sceneId, beatId, type, choiceId) {
207
+ if (!flows.has(flowId)) {
208
+ flows.add(flowId);
209
+ post({ t: "flowOpen", flow: flowId });
210
+ }
207
211
  post({ t: "frame", flow: flowId, sceneId, beatId, type, choiceId });
208
212
  },
209
213
  setBuild(next) {
package/dist/index.js CHANGED
@@ -163,6 +163,10 @@ function createDebugLink(opts) {
163
163
  post({ t: "flowClose", flow: flowId });
164
164
  },
165
165
  observe(flowId, sceneId, beatId, type, choiceId) {
166
+ if (!flows.has(flowId)) {
167
+ flows.add(flowId);
168
+ post({ t: "flowOpen", flow: flowId });
169
+ }
166
170
  post({ t: "frame", flow: flowId, sceneId, beatId, type, choiceId });
167
171
  },
168
172
  setBuild(next) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patterkit/play-helpers",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "Thin game-integration helpers around @patterkit/runtime: save/load serialisation, runtime property setters, a state logger, the Patterpad Live Link client + hot reload, a property inspector, and audio resolution. The Patterplay JS companion.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -34,6 +34,6 @@
34
34
  "build": "tsup src/index.ts --format esm,cjs --dts --clean"
35
35
  },
36
36
  "dependencies": {
37
- "@patterkit/runtime": "0.5.1"
37
+ "@patterkit/runtime": "0.8.0"
38
38
  }
39
39
  }