@vnejs/plugins.views.screens.credits 0.1.7 → 0.1.9

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
@@ -1 +1 @@
1
- export {};
1
+ import "@vnejs/plugins.views.screens.credits.contract";
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import "@vnejs/plugins.views.screens.credits.contract";
1
2
  import { regPlugin } from "@vnejs/shared";
2
3
  import { PARAMS, PLUGIN_NAME, SUBSCRIBE_EVENTS } from "@vnejs/plugins.views.screens.credits.contract";
3
4
  import { CreditsController } from "./modules/controller.js";
@@ -1,8 +1,8 @@
1
1
  import { Module } from "@vnejs/module";
2
2
  import type { CreditsPluginConstants, CreditsPluginEvents, CreditsPluginParams, CreditsPluginSettings } from "../types.js";
3
- import type { CreditsLineExecPayload } from "../utils/credits.js";
3
+ import type { LineExecHandlerArg } from "@vnejs/plugins.core.scenario.contract";
4
4
  export declare class Credits extends Module<CreditsPluginEvents, CreditsPluginConstants, CreditsPluginSettings, CreditsPluginParams> {
5
5
  name: string;
6
6
  init: () => Promise<unknown[]> | undefined;
7
- onLineExec: ({ line }?: CreditsLineExecPayload) => Promise<unknown[]> | undefined;
7
+ onLineExec: ({ line }?: LineExecHandlerArg) => Promise<unknown[]> | undefined;
8
8
  }
@@ -2,6 +2,3 @@ export type CreditsPluginState = {
2
2
  isShow: boolean;
3
3
  isForce: boolean;
4
4
  };
5
- export type CreditsLineExecPayload = {
6
- line?: string;
7
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.views.screens.credits",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import "@vnejs/plugins.views.screens.credits.contract";
2
+
1
3
  import { regPlugin } from "@vnejs/shared";
2
4
  import { PARAMS, PLUGIN_NAME, SUBSCRIBE_EVENTS } from "@vnejs/plugins.views.screens.credits.contract";
3
5
 
@@ -2,14 +2,14 @@ import { tokenizeExecLine } from "@vnejs/helpers";
2
2
  import { Module } from "@vnejs/module";
3
3
 
4
4
  import type { CreditsPluginConstants, CreditsPluginEvents, CreditsPluginParams, CreditsPluginSettings } from "../types.js";
5
- import type { CreditsLineExecPayload } from "../utils/credits.js";
5
+ import type { LineExecHandlerArg } from "@vnejs/plugins.core.scenario.contract";
6
6
 
7
7
  export class Credits extends Module<CreditsPluginEvents, CreditsPluginConstants, CreditsPluginSettings, CreditsPluginParams> {
8
8
  name = "credits";
9
9
 
10
10
  init = () => this.emit(this.EVENTS.SCENARIO.LINE_EXEC_REG, { module: this.name, handler: this.onLineExec });
11
11
 
12
- onLineExec = ({ line = "" }: CreditsLineExecPayload = {}) => {
12
+ onLineExec = ({ line = "" }: LineExecHandlerArg = {}) => {
13
13
  const [action = ""] = tokenizeExecLine(line);
14
14
 
15
15
  if (action === "show") return this.emit(this.EVENTS.CREDITS.SHOW);
@@ -2,7 +2,3 @@ export type CreditsPluginState = {
2
2
  isShow: boolean;
3
3
  isForce: boolean;
4
4
  };
5
-
6
- export type CreditsLineExecPayload = {
7
- line?: string;
8
- };