@puzzmo/sdk 1.0.35 → 1.0.36

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.
@@ -1808,6 +1808,23 @@ function Q(e) {
1808
1808
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
1809
1809
  }
1810
1810
  var $ = null;
1811
+ /** True when the game is embedded in the real Puzzmo app, which sets `?developer=true` on the iframe. */
1812
+ function st() {
1813
+ return typeof window > "u" ? !1 : new URLSearchParams(window.location.search).has("developer");
1814
+ }
1815
+ /** Inert instance returned when the simulator declines to boot (the app is the host). */
1816
+ var ct = {
1817
+ updateFixtures: () => {},
1818
+ sendToGame: () => {},
1819
+ loadPuzzle: function() {
1820
+ var e = t(function* () {
1821
+ return null;
1822
+ });
1823
+ return function() {
1824
+ return e.apply(this, arguments);
1825
+ };
1826
+ }()
1827
+ };
1811
1828
  /**
1812
1829
  * Simulator - A development UI for testing games with the Puzzmo Proto SDK.
1813
1830
  *
@@ -1845,8 +1862,9 @@ var $ = null;
1845
1862
  * Fixtures are loaded as raw strings and passed to the game verbatim (any text format works; the game parses it).
1846
1863
  * This will show dropdowns in the Ctrl tab to select category and puzzle.
1847
1864
  */
1848
- function st(e = {}) {
1865
+ function lt(e = {}) {
1849
1866
  var n, r, i;
1867
+ if (st()) return console.log("[Simulator] developer=true in URL — running inside the Puzzmo app, skipping simulator boot"), ct;
1850
1868
  if (console.log("[Simulator] createSimulator called with config:", {
1851
1869
  slug: e.slug,
1852
1870
  hasFixtures: !!e.fixtures
@@ -3401,6 +3419,6 @@ function st(e = {}) {
3401
3419
  loadPuzzle: N
3402
3420
  }, $;
3403
3421
  }
3404
- export { st as t };
3422
+ export { lt as t };
3405
3423
 
3406
- //# sourceMappingURL=createSimulator-BuPYG4eZ.js.map
3424
+ //# sourceMappingURL=createSimulator-93lwHvfg.js.map