@markind-gg/come-come 1.0.23 → 1.0.26

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/main.js CHANGED
@@ -14067,14 +14067,18 @@ function z1(t, e) {
14067
14067
  var p, s, D, g;
14068
14068
  const l = document.getElementById(t);
14069
14069
  if (!l) throw new Error("container not found");
14070
- const n = _1((p = e.gameState) == null ? void 0 : p.selectedModeId), a = M1((s = e.gameState) == null ? void 0 : s.selectedMapId), u = (D = e.gameState) == null ? void 0 : D.teamAssignments, i = ((g = e.gameState) == null ? void 0 : g.currentPlayerId) ?? e.me.id, c = wv(e.players, a, u), f = Uv(a, n), o = jv(n), d = xp.createRoot(l, Np("come-come"));
14070
+ const n = _1((p = e.gameState) == null ? void 0 : p.selectedModeId), a = M1((s = e.gameState) == null ? void 0 : s.selectedMapId), u = (D = e.gameState) == null ? void 0 : D.teamAssignments, i = ((g = e.gameState) == null ? void 0 : g.currentPlayerId) ?? e.me.id, c = wv(e.players, a, u), f = Uv(a, n), o = jv(n);
14071
+ e.log.log("mount", { mode: n, mazeIndex: a, players: c.length, ghosts: f.length, firstPlayerId: i });
14072
+ const d = xp.createRoot(l, Np("come-come"));
14071
14073
  return d.render(
14072
14074
  ln.createElement(A1, {
14073
14075
  sdk: e,
14074
14076
  firstPlayerId: i,
14075
14077
  init: { mode: n, mazeIndex: a, players: c, ghosts: f, panicTriggerSecond: o, teamAssignments: u }
14076
14078
  })
14077
- ), () => d.unmount();
14079
+ ), () => {
14080
+ e.log.log("unmount"), d.unmount();
14081
+ };
14078
14082
  }
14079
14083
  export {
14080
14084
  er as MAP_INDEX,
@@ -85,5 +85,5 @@
85
85
  "preview": "maps/all.webp"
86
86
  }
87
87
  ],
88
- "version": "1.0.23"
88
+ "version": "1.0.26"
89
89
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markind-gg/come-come",
3
- "version": "1.0.23",
3
+ "version": "1.0.26",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/main.js",