@energy8platform/shell 0.6.4 → 0.6.5

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/html.cjs.js CHANGED
@@ -1455,7 +1455,7 @@ class KeyboardController {
1455
1455
 
1456
1456
  // AUTO-GENERATED by scripts/gen-version.mjs — do not edit. Mirrors package.json "version".
1457
1457
  /** The @energy8platform/shell package version, stamped into the game-info footer. */
1458
- const PACKAGE_VERSION = '0.6.4';
1458
+ const PACKAGE_VERSION = '0.6.5';
1459
1459
 
1460
1460
  /** Apply defaults to the raw config (the mount target lives on the renderer, not here). */
1461
1461
  function resolveConfig(config) {
@@ -4027,7 +4027,9 @@ class HtmlRenderer {
4027
4027
  }
4028
4028
  case 'replay': {
4029
4029
  const opts = req.opts;
4030
- const reopen = () => { this.openReplayInternal(opts); };
4030
+ // Reopen through the controller (not a renderer-direct re-push) so its OverlayHandle stays
4031
+ // in sync — otherwise a reopened replay modal is untracked and the next close no-ops.
4032
+ const reopen = () => { this.host.openReplay(opts); };
4031
4033
  const root = buildReplayModal(this.host, opts, reopen);
4032
4034
  return { root };
4033
4035
  }
@@ -4037,14 +4039,6 @@ class HtmlRenderer {
4037
4039
  }
4038
4040
  }
4039
4041
  }
4040
- /** Opens a replay modal and shows it — used as the reopen callback after START REPLAY. */
4041
- openReplayInternal(opts) {
4042
- if (this.destroyed)
4043
- return;
4044
- const reopen = () => { this.openReplayInternal(opts); };
4045
- const root = buildReplayModal(this.host, opts, reopen);
4046
- this.showModal(root);
4047
- }
4048
4042
  showModal(el, onKey) {
4049
4043
  // Drop focus from any open shell control so a stray Space/Enter doesn't re-activate it
4050
4044
  const active = document.activeElement;