@vnejs/plugins.compatibility.choose.counters 0.1.6 → 0.1.7

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,10 +1,10 @@
1
- import { Module } from "@vnejs/module";
1
+ import { ModuleCore } from "@vnejs/module.core";
2
2
  import type { PluginConstants, PluginEvents, PluginParams, PluginSettings } from "./types.js";
3
3
  type ChooseExecHandler = (payload: {
4
4
  line?: string;
5
5
  keywords?: string[];
6
6
  }) => unknown;
7
- export declare class CompatibilityChooseCounters extends Module<PluginEvents, PluginConstants, PluginSettings, PluginParams> {
7
+ export declare class CompatibilityChooseCounters extends ModuleCore<PluginEvents, PluginConstants, PluginSettings, PluginParams> {
8
8
  name: string;
9
9
  init: () => Promise<unknown[]> | undefined;
10
10
  onChooseExec: ({ line, keywords }?: Parameters<ChooseExecHandler>[0]) => Promise<unknown> | undefined;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { Module } from "@vnejs/module";
1
+ import { ModuleCore } from "@vnejs/module.core";
2
2
  import { regModule } from "@vnejs/shared";
3
- export class CompatibilityChooseCounters extends Module {
3
+ export class CompatibilityChooseCounters extends ModuleCore {
4
4
  name = "compatibility.choose.counters";
5
5
  init = () => this.emit(this.EVENTS.CHOOSE.EXEC_REG, { module: this.CONST.VARS_COUNTERS.EXEC_NAME, handler: this.onChooseExec });
6
6
  onChooseExec = ({ line = "", keywords = [] } = {}) => this.emitOne(this.EVENTS.VARS_COUNTERS.EXEC_CHECK, { line, keywords });
package/dist/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import type { VnePluginConstantsMapRegistry, VnePluginEventsMapRegistry, VnePluginParamsMapRegistry, VnePluginSettingsMapRegistry } from "@vnejs/shared";
1
+ import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
2
2
  import type { PluginName as ChoosePluginName, SubscribeEvents as ChooseSubscribeEvents } from "@vnejs/plugins.views.scenario.choose.contract";
3
3
  import type { PluginName as VarsCountersPluginName, Constants as VarsCountersConstants, SubscribeEvents as VarsCountersSubscribeEvents } from "@vnejs/plugins.vars.counters.contract";
4
- export type PluginEvents = VnePluginEventsMapRegistry & Record<ChoosePluginName, ChooseSubscribeEvents> & Record<VarsCountersPluginName, VarsCountersSubscribeEvents>;
5
- export type PluginConstants = VnePluginConstantsMapRegistry & Record<VarsCountersPluginName, VarsCountersConstants>;
6
- export type PluginSettings = VnePluginSettingsMapRegistry;
7
- export type PluginParams = VnePluginParamsMapRegistry;
4
+ export type PluginEvents = ModuleCoreEvents & Record<ChoosePluginName, ChooseSubscribeEvents> & Record<VarsCountersPluginName, VarsCountersSubscribeEvents>;
5
+ export type PluginConstants = ModuleCoreConstants & Record<VarsCountersPluginName, VarsCountersConstants>;
6
+ export type PluginSettings = ModuleCoreSettings;
7
+ export type PluginParams = ModuleCoreParams;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.compatibility.choose.counters",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -30,7 +30,7 @@
30
30
  "author": "",
31
31
  "license": "ISC",
32
32
  "peerDependencies": {
33
- "@vnejs/module": "~0.1.0",
33
+ "@vnejs/module.core": "~0.1.0",
34
34
  "@vnejs/plugins.views.scenario.choose.contract": "~0.1.0",
35
35
  "@vnejs/plugins.vars.counters.contract": "~0.1.0",
36
36
  "@vnejs/shared": "~0.1.0"
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Module } from "@vnejs/module";
1
+ import { ModuleCore } from "@vnejs/module.core";
2
2
  import { regModule } from "@vnejs/shared";
3
3
 
4
4
  import type { PluginConstants, PluginEvents, PluginParams, PluginSettings } from "./types.js";
@@ -10,7 +10,7 @@ type ChooseExecRegPayload = {
10
10
  handler?: ChooseExecHandler;
11
11
  };
12
12
 
13
- export class CompatibilityChooseCounters extends Module<PluginEvents, PluginConstants, PluginSettings, PluginParams> {
13
+ export class CompatibilityChooseCounters extends ModuleCore<PluginEvents, PluginConstants, PluginSettings, PluginParams> {
14
14
  name = "compatibility.choose.counters";
15
15
 
16
16
  init = () => this.emit(this.EVENTS.CHOOSE.EXEC_REG, { module: this.CONST.VARS_COUNTERS.EXEC_NAME, handler: this.onChooseExec } satisfies ChooseExecRegPayload);
package/src/types.ts CHANGED
@@ -1,13 +1,13 @@
1
- import type { VnePluginConstantsMapRegistry, VnePluginEventsMapRegistry, VnePluginParamsMapRegistry, VnePluginSettingsMapRegistry } from "@vnejs/shared";
1
+ import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
2
2
  import type { PluginName as ChoosePluginName, SubscribeEvents as ChooseSubscribeEvents } from "@vnejs/plugins.views.scenario.choose.contract";
3
3
  import type { PluginName as VarsCountersPluginName, Constants as VarsCountersConstants, SubscribeEvents as VarsCountersSubscribeEvents } from "@vnejs/plugins.vars.counters.contract";
4
4
 
5
- export type PluginEvents = VnePluginEventsMapRegistry &
5
+ export type PluginEvents = ModuleCoreEvents &
6
6
  Record<ChoosePluginName, ChooseSubscribeEvents> &
7
7
  Record<VarsCountersPluginName, VarsCountersSubscribeEvents>;
8
8
 
9
- export type PluginConstants = VnePluginConstantsMapRegistry & Record<VarsCountersPluginName, VarsCountersConstants>;
9
+ export type PluginConstants = ModuleCoreConstants & Record<VarsCountersPluginName, VarsCountersConstants>;
10
10
 
11
- export type PluginSettings = VnePluginSettingsMapRegistry;
11
+ export type PluginSettings = ModuleCoreSettings;
12
12
 
13
- export type PluginParams = VnePluginParamsMapRegistry;
13
+ export type PluginParams = ModuleCoreParams;