@vnejs/module.controller.hide.on.controls 0.2.2 → 0.2.3

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/index.d.ts CHANGED
@@ -10,7 +10,7 @@ export declare abstract class ModuleControllerHideOnControls<TEvents extends Mod
10
10
  IS_MENU_ENABLED: boolean;
11
11
  IS_GAMEMENU_ENABLED: boolean;
12
12
  emitHide: () => Promise<unknown[]> | undefined;
13
- get controls(): Record<string, () => void>;
13
+ get CONTROLS(): Record<string, () => void>;
14
14
  subscribe: () => void;
15
15
  onShow: () => Promise<unknown[]> | undefined;
16
16
  onHide: () => Promise<unknown[]> | undefined;
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ export class ModuleControllerHideOnControls extends ModuleCore {
4
4
  IS_MENU_ENABLED = true;
5
5
  IS_GAMEMENU_ENABLED = true;
6
6
  emitHide = () => this.emit(this.EVENT_HIDE);
7
- get controls() {
7
+ get CONTROLS() {
8
8
  const controls = {};
9
9
  if (this.IS_BACK_ENABLED)
10
10
  controls[this.CONST.CONTROLS.BUTTONS.BACK] = () => void this.emitHide();
@@ -20,7 +20,7 @@ export class ModuleControllerHideOnControls extends ModuleCore {
20
20
  };
21
21
  onShow = () => this.emit(this.EVENTS.CONTROLS.PUSH, {
22
22
  key: this.name,
23
- controls: this.controls,
23
+ controls: this.CONTROLS,
24
24
  index: this.CONTROLS_ZINDEX + 1,
25
25
  checkNext: true,
26
26
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/module.controller.hide.on.controls",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -35,7 +35,7 @@ export abstract class ModuleControllerHideOnControls<
35
35
 
36
36
  emitHide = () => this.emit(this.EVENT_HIDE);
37
37
 
38
- get controls() {
38
+ get CONTROLS() {
39
39
  const controls: Record<string, () => void> = {};
40
40
 
41
41
  if (this.IS_BACK_ENABLED) controls[this.CONST.CONTROLS.BUTTONS.BACK] = () => void this.emitHide();
@@ -53,7 +53,7 @@ export abstract class ModuleControllerHideOnControls<
53
53
  onShow = () =>
54
54
  this.emit(this.EVENTS.CONTROLS.PUSH, {
55
55
  key: this.name,
56
- controls: this.controls,
56
+ controls: this.CONTROLS,
57
57
  index: this.CONTROLS_ZINDEX + 1,
58
58
  checkNext: true,
59
59
  } satisfies ControlsPushPayload);