@puzzmo/sdk 1.0.55 → 1.0.56

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.
@@ -2036,7 +2036,7 @@ function Q(e) {
2036
2036
  * anything) and a log of the cues the game asked us for, with any haptic it wanted.
2037
2037
  */
2038
2038
  function Ot() {
2039
- let e = [], t = !0, n = () => e.length === 0 ? "<div class=\"sound-empty\">No sensory events yet. Play the game to hear from it.</div>" : e.map((e) => `<div class="sound-row"><span class="sound-id">${At(e.id)}</span>${e.haptic ? `<span class="sound-haptic">${At(e.haptic)}</span>` : ""}<span class="sound-time">${e.time}</span></div>`).join(""), r = (t) => {
2039
+ let e = [], t = !0, n = () => e.length === 0 ? "<div class=\"sound-empty\">No cues yet. Play the game to hear from it.</div>" : e.map((e) => `<div class="sound-row"><span class="sound-id">${At(e.id)}</span>${e.haptic ? `<span class="sound-haptic">${At(e.haptic)}</span>` : ""}<span class="sound-time">${e.time}</span></div>`).join(""), r = (t) => {
2040
2040
  let r = t.getElement("#sound-events");
2041
2041
  r && (r.innerHTML = n()), t.updateBadge("sound", e.length);
2042
2042
  };
@@ -2055,7 +2055,7 @@ function Ot() {
2055
2055
  #simulator-tab-sound .sound-toggle { font-size: 11px; display: flex; align-items: center; gap: 4px; }
2056
2056
  </style>
2057
2057
  <div class="simulator-section">
2058
- <div class="simulator-section-title">Sensory Events</div>
2058
+ <div class="simulator-section-title">Cues</div>
2059
2059
  <div class="sound-controls">
2060
2060
  <label class="sound-toggle"><input type="checkbox" id="sound-enabled" ${t ? "checked" : ""} /> Sound enabled</label>
2061
2061
  <button class="simulator-btn" id="sound-clear">Clear</button>
@@ -2080,13 +2080,11 @@ function Ot() {
2080
2080
  a.sendToGame("SOUND_ENABLED", { enabled: t });
2081
2081
  return;
2082
2082
  }
2083
- if (n !== "SENSORY_EVENT") return;
2084
- let s = typeof i == "string" ? i : (o = i == null ? void 0 : i.id) == null ? JSON.stringify(i) : o;
2085
- e.unshift({
2086
- id: s,
2087
- haptic: typeof i == "string" || i == null ? void 0 : i.haptic,
2083
+ n === "SENSORY_EVENT" && (e.unshift({
2084
+ id: (o = i == null ? void 0 : i.id) == null ? JSON.stringify(i) : o,
2085
+ haptic: i == null ? void 0 : i.haptic,
2088
2086
  time: kt()
2089
- }), e.length > 100 && e.pop(), r(a);
2087
+ }), e.length > 100 && e.pop(), r(a));
2090
2088
  }
2091
2089
  };
2092
2090
  }
@@ -3731,4 +3729,4 @@ function Nt(e = {}) {
3731
3729
  }
3732
3730
  export { Ot as n, oe as r, Nt as t };
3733
3731
 
3734
- //# sourceMappingURL=createSimulator-CoVR6n2p.js.map
3732
+ //# sourceMappingURL=createSimulator-B6T0o88B.js.map