@remvst/game-navigation-core 1.8.0 → 1.8.1

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/lib/game/game.js CHANGED
@@ -115,7 +115,6 @@ class Game {
115
115
  }
116
116
  }
117
117
  onCurrentScreenChanged() {
118
- window.S = this.screenStack.current();
119
118
  this.container.style.cursor = this.screenStack.current()?.cursorType;
120
119
  }
121
120
  }
@@ -1,5 +1,6 @@
1
1
  import { Screen } from "../ui/screen";
2
2
  export declare class UserCancelledError extends Error {
3
+ constructor(message: string);
3
4
  }
4
5
  export declare class Resolver<T> {
5
6
  private readonly screen;
@@ -2,6 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Resolver = exports.UserCancelledError = void 0;
4
4
  class UserCancelledError extends Error {
5
+ constructor(message) {
6
+ super(message || 'User backed out and cancelled navigation flow');
7
+ }
5
8
  }
6
9
  exports.UserCancelledError = UserCancelledError;
7
10
  class Resolver {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remvst/game-navigation-core",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
package/src/game/game.ts CHANGED
@@ -157,7 +157,6 @@ export abstract class Game<ParamsType extends GameParams = GameParams> {
157
157
  }
158
158
 
159
159
  onCurrentScreenChanged() {
160
- (window as any).S = this.screenStack.current();
161
160
  this.container.style.cursor = this.screenStack.current()?.cursorType;
162
161
  }
163
162
  }
@@ -1,6 +1,10 @@
1
1
  import { Screen } from "../ui/screen";
2
2
 
3
- export class UserCancelledError extends Error {}
3
+ export class UserCancelledError extends Error {
4
+ constructor(message: string) {
5
+ super(message || 'User backed out and cancelled navigation flow');
6
+ }
7
+ }
4
8
 
5
9
  export class Resolver<T> {
6
10
  private readonly screen: Screen;