@vnejs/module.controller.accept 0.2.3 → 0.2.4

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
@@ -11,7 +11,7 @@ export declare abstract class ModuleControllerAccept<TEvents extends ModuleContr
11
11
  IS_ACCEPT_ENABLED: boolean;
12
12
  IS_INTERACT_ENABLED: boolean;
13
13
  emitAccept: () => Promise<unknown[]> | undefined;
14
- get controls(): Record<string, () => void>;
14
+ get CONTROLS(): Record<string, () => void>;
15
15
  subscribe: () => void;
16
16
  getDefaultState: () => TState;
17
17
  abstract onAccept: () => void | Promise<void>;
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ export class ModuleControllerAccept extends ModuleCore {
4
4
  IS_ACCEPT_ENABLED = true;
5
5
  IS_INTERACT_ENABLED = true;
6
6
  emitAccept = () => this.emit(this.EVENT_ACCEPT);
7
- get controls() {
7
+ get CONTROLS() {
8
8
  const controls = {};
9
9
  if (this.IS_ACCEPT_ENABLED)
10
10
  controls[this.CONST.CONTROLS.BUTTONS.ACCEPT] = () => void this.emitAccept();
@@ -22,7 +22,7 @@ export class ModuleControllerAccept extends ModuleCore {
22
22
  getDefaultState = () => ({});
23
23
  onShow = () => this.emit(this.EVENTS.CONTROLS.PUSH, {
24
24
  key: this.name,
25
- controls: this.controls,
25
+ controls: this.CONTROLS,
26
26
  index: this.CONTROLS_ZINDEX + 1,
27
27
  checkNext: true,
28
28
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/module.controller.accept",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -26,7 +26,7 @@ export abstract class ModuleControllerAccept<
26
26
 
27
27
  emitAccept = () => this.emit(this.EVENT_ACCEPT);
28
28
 
29
- get controls() {
29
+ get CONTROLS() {
30
30
  const controls: Record<string, () => void> = {};
31
31
 
32
32
  if (this.IS_ACCEPT_ENABLED) controls[this.CONST.CONTROLS.BUTTONS.ACCEPT] = () => void this.emitAccept();
@@ -49,7 +49,7 @@ export abstract class ModuleControllerAccept<
49
49
  onShow = () =>
50
50
  this.emit(this.EVENTS.CONTROLS.PUSH, {
51
51
  key: this.name,
52
- controls: this.controls,
52
+ controls: this.CONTROLS,
53
53
  index: this.CONTROLS_ZINDEX + 1,
54
54
  checkNext: true,
55
55
  } satisfies ControlsPushPayload);