@vnejs/plugins.settings.volume 0.1.8 → 0.1.10

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
- import "@vnejs/plugins.settings.volume.contract";
1
+ import "@vnejs/contracts.settings.volume";
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import "@vnejs/plugins.settings.volume.contract";
1
+ import "@vnejs/contracts.settings.volume";
2
2
  import { regPlugin } from "@vnejs/shared";
3
- import { PLUGIN_NAME, SETTINGS_KEYS } from "@vnejs/plugins.settings.volume.contract";
3
+ import { PLUGIN_NAME, SETTINGS_KEYS } from "@vnejs/contracts.settings.volume";
4
4
  import { Volume } from "./modules/volume.js";
5
5
  regPlugin(PLUGIN_NAME, { settings: SETTINGS_KEYS }, [Volume]);
@@ -1,6 +1,6 @@
1
- import { Module } from "@vnejs/module";
1
+ import { ModuleCore } from "@vnejs/module.core";
2
2
  import type { VolumePluginConstants, VolumePluginEvents, VolumePluginParams, VolumePluginSettings } from "../types.js";
3
- export declare class Volume extends Module<VolumePluginEvents, VolumePluginConstants, VolumePluginSettings, VolumePluginParams> {
3
+ export declare class Volume extends ModuleCore<VolumePluginEvents, VolumePluginConstants, VolumePluginSettings, VolumePluginParams> {
4
4
  name: string;
5
5
  init: () => Promise<unknown[]> | undefined;
6
6
  }
@@ -1,5 +1,5 @@
1
- import { Module } from "@vnejs/module";
2
- export class Volume extends Module {
1
+ import { ModuleCore } from "@vnejs/module.core";
2
+ export class Volume extends ModuleCore {
3
3
  name = "volume";
4
4
  init = () => this.emit(this.EVENTS.SETTINGS.INIT, { name: this.SETTINGS.VOLUME.VALUE, value: 100 });
5
5
  }
package/dist/types.d.ts CHANGED
@@ -1,7 +1,6 @@
1
- import type { VnePluginConstantsMapRegistry, VnePluginEventsMapRegistry, VnePluginParamsMapRegistry, VnePluginSettingsMapRegistry } from "@vnejs/shared";
2
- import type { PluginName as SettingsPluginName, SubscribeEvents as SettingsSubscribeEvents } from "@vnejs/plugins.core.settings.contract";
3
- import type { PluginName, SettingsKeys } from "@vnejs/plugins.settings.volume.contract";
4
- export type VolumePluginEvents = VnePluginEventsMapRegistry & Record<SettingsPluginName, SettingsSubscribeEvents>;
5
- export type VolumePluginConstants = VnePluginConstantsMapRegistry;
6
- export type VolumePluginSettings = VnePluginSettingsMapRegistry & Record<PluginName, SettingsKeys>;
7
- export type VolumePluginParams = VnePluginParamsMapRegistry;
1
+ import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
2
+ import type { PluginName, SettingsKeys } from "@vnejs/contracts.settings.volume";
3
+ export type VolumePluginEvents = ModuleCoreEvents;
4
+ export type VolumePluginConstants = ModuleCoreConstants;
5
+ export type VolumePluginSettings = ModuleCoreSettings & Record<PluginName, SettingsKeys>;
6
+ export type VolumePluginParams = ModuleCoreParams;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.settings.volume",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -30,11 +30,10 @@
30
30
  "author": "",
31
31
  "license": "ISC",
32
32
  "dependencies": {
33
- "@vnejs/plugins.settings.volume.contract": "~0.1.0"
33
+ "@vnejs/contracts.settings.volume": "~0.1.0"
34
34
  },
35
35
  "peerDependencies": {
36
- "@vnejs/module": "~0.1.0",
37
- "@vnejs/plugins.core.settings.contract": "~0.1.0",
36
+ "@vnejs/module.core": "~0.1.0",
38
37
  "@vnejs/shared": "~0.1.0"
39
38
  },
40
39
  "devDependencies": {
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
- import "@vnejs/plugins.settings.volume.contract";
1
+ import "@vnejs/contracts.settings.volume";
2
2
 
3
3
  import { regPlugin } from "@vnejs/shared";
4
- import { PLUGIN_NAME, SETTINGS_KEYS } from "@vnejs/plugins.settings.volume.contract";
4
+ import { PLUGIN_NAME, SETTINGS_KEYS } from "@vnejs/contracts.settings.volume";
5
5
 
6
6
  import { Volume } from "./modules/volume.js";
7
7
 
@@ -1,8 +1,8 @@
1
- import { Module } from "@vnejs/module";
1
+ import { ModuleCore } from "@vnejs/module.core";
2
2
 
3
3
  import type { VolumePluginConstants, VolumePluginEvents, VolumePluginParams, VolumePluginSettings } from "../types.js";
4
4
 
5
- export class Volume extends Module<VolumePluginEvents, VolumePluginConstants, VolumePluginSettings, VolumePluginParams> {
5
+ export class Volume extends ModuleCore<VolumePluginEvents, VolumePluginConstants, VolumePluginSettings, VolumePluginParams> {
6
6
  name = "volume";
7
7
 
8
8
  init = () => this.emit(this.EVENTS.SETTINGS.INIT, { name: this.SETTINGS.VOLUME.VALUE, value: 100 });
package/src/types.ts CHANGED
@@ -1,11 +1,10 @@
1
- import type { VnePluginConstantsMapRegistry, VnePluginEventsMapRegistry, VnePluginParamsMapRegistry, VnePluginSettingsMapRegistry } from "@vnejs/shared";
2
- import type { PluginName as SettingsPluginName, SubscribeEvents as SettingsSubscribeEvents } from "@vnejs/plugins.core.settings.contract";
3
- import type { PluginName, SettingsKeys } from "@vnejs/plugins.settings.volume.contract";
1
+ import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
2
+ import type { PluginName, SettingsKeys } from "@vnejs/contracts.settings.volume";
4
3
 
5
- export type VolumePluginEvents = VnePluginEventsMapRegistry & Record<SettingsPluginName, SettingsSubscribeEvents>;
4
+ export type VolumePluginEvents = ModuleCoreEvents;
6
5
 
7
- export type VolumePluginConstants = VnePluginConstantsMapRegistry;
6
+ export type VolumePluginConstants = ModuleCoreConstants;
8
7
 
9
- export type VolumePluginSettings = VnePluginSettingsMapRegistry & Record<PluginName, SettingsKeys>;
8
+ export type VolumePluginSettings = ModuleCoreSettings & Record<PluginName, SettingsKeys>;
10
9
 
11
- export type VolumePluginParams = VnePluginParamsMapRegistry;
10
+ export type VolumePluginParams = ModuleCoreParams;