@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 +1 -1
- package/dist/index.js +2 -2
- package/dist/modules/volume.d.ts +2 -2
- package/dist/modules/volume.js +2 -2
- package/dist/types.d.ts +6 -7
- package/package.json +3 -4
- package/src/index.ts +2 -2
- package/src/modules/volume.ts +2 -2
- package/src/types.ts +6 -7
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import "@vnejs/
|
|
1
|
+
import "@vnejs/contracts.settings.volume";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "@vnejs/
|
|
1
|
+
import "@vnejs/contracts.settings.volume";
|
|
2
2
|
import { regPlugin } from "@vnejs/shared";
|
|
3
|
-
import { PLUGIN_NAME, SETTINGS_KEYS } from "@vnejs/
|
|
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]);
|
package/dist/modules/volume.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ModuleCore } from "@vnejs/module.core";
|
|
2
2
|
import type { VolumePluginConstants, VolumePluginEvents, VolumePluginParams, VolumePluginSettings } from "../types.js";
|
|
3
|
-
export declare class Volume extends
|
|
3
|
+
export declare class Volume extends ModuleCore<VolumePluginEvents, VolumePluginConstants, VolumePluginSettings, VolumePluginParams> {
|
|
4
4
|
name: string;
|
|
5
5
|
init: () => Promise<unknown[]> | undefined;
|
|
6
6
|
}
|
package/dist/modules/volume.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export class Volume extends
|
|
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 {
|
|
2
|
-
import type { PluginName
|
|
3
|
-
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
6
|
-
export type
|
|
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.
|
|
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/
|
|
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/
|
|
1
|
+
import "@vnejs/contracts.settings.volume";
|
|
2
2
|
|
|
3
3
|
import { regPlugin } from "@vnejs/shared";
|
|
4
|
-
import { PLUGIN_NAME, SETTINGS_KEYS } from "@vnejs/
|
|
4
|
+
import { PLUGIN_NAME, SETTINGS_KEYS } from "@vnejs/contracts.settings.volume";
|
|
5
5
|
|
|
6
6
|
import { Volume } from "./modules/volume.js";
|
|
7
7
|
|
package/src/modules/volume.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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 {
|
|
2
|
-
import type { PluginName
|
|
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 =
|
|
4
|
+
export type VolumePluginEvents = ModuleCoreEvents;
|
|
6
5
|
|
|
7
|
-
export type VolumePluginConstants =
|
|
6
|
+
export type VolumePluginConstants = ModuleCoreConstants;
|
|
8
7
|
|
|
9
|
-
export type VolumePluginSettings =
|
|
8
|
+
export type VolumePluginSettings = ModuleCoreSettings & Record<PluginName, SettingsKeys>;
|
|
10
9
|
|
|
11
|
-
export type VolumePluginParams =
|
|
10
|
+
export type VolumePluginParams = ModuleCoreParams;
|