@vnejs/plugins.views.screens.disclaimer 0.2.6 → 0.2.8

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.
@@ -6,7 +6,7 @@ export class DisclaimerControllerAccept extends ModuleControllerAccept {
6
6
  EVENT_ACCEPT = this.EVENTS.DISCLAIMER.ACCEPT;
7
7
  CONTROLS_ZINDEX = this.PARAMS.DISCLAIMER.ZINDEX;
8
8
  onAccept = async () => {
9
- this.emitLog({ action: "accept" });
9
+ this.emit(this.EVENTS.LOGS.EMIT, { action: this.CONST.DISCLAIMER.LOGS_ACTIONS.ACCEPT });
10
10
  await this.emit(this.EVENTS.DISCLAIMER.HIDE);
11
11
  this.emit(this.EVENTS.SCENARIO.NEXT);
12
12
  };
@@ -7,7 +7,7 @@ export class Disclaimer extends ModuleCore {
7
7
  const [action = "", id = ""] = tokenizeExecLine(line).map(String);
8
8
  if (action !== this.CONST.DISCLAIMER.EXEC_ACTIONS.SHOW)
9
9
  return;
10
- this.emitLog({ action, id });
10
+ this.emit(this.EVENTS.LOGS.EMIT, { action: this.CONST.DISCLAIMER.LOGS_ACTIONS.SHOW, id });
11
11
  return this.emit(this.EVENTS.DISCLAIMER.SHOW, { id });
12
12
  };
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.views.screens.disclaimer",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,7 +18,7 @@ export class DisclaimerControllerAccept extends ModuleControllerAccept<
18
18
  CONTROLS_ZINDEX = this.PARAMS.DISCLAIMER.ZINDEX;
19
19
 
20
20
  onAccept = async () => {
21
- this.emitLog({ action: "accept" });
21
+ this.emit(this.EVENTS.LOGS.EMIT, { action: this.CONST.DISCLAIMER.LOGS_ACTIONS.ACCEPT });
22
22
  await this.emit(this.EVENTS.DISCLAIMER.HIDE);
23
23
  this.emit(this.EVENTS.SCENARIO.NEXT);
24
24
  };
@@ -16,7 +16,7 @@ export class Disclaimer extends ModuleCore<DisclaimerPluginEvents, DisclaimerPlu
16
16
 
17
17
  if (action !== this.CONST.DISCLAIMER.EXEC_ACTIONS.SHOW) return;
18
18
 
19
- this.emitLog({ action, id });
19
+ this.emit(this.EVENTS.LOGS.EMIT, { action: this.CONST.DISCLAIMER.LOGS_ACTIONS.SHOW, id });
20
20
 
21
21
  return this.emit(this.EVENTS.DISCLAIMER.SHOW, { id } satisfies DisclaimerShowPayload);
22
22
  };