@vnejs/contracts.audio.voice 0.1.1

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.
@@ -0,0 +1,7 @@
1
+ export declare const LAYER: "voice";
2
+ export declare const SOURCE: "voice";
3
+ export declare const CONSTANTS: {
4
+ readonly LAYER: "voice";
5
+ readonly SOURCE: "voice";
6
+ };
7
+ export type Constants = typeof CONSTANTS;
package/dist/const.js ADDED
@@ -0,0 +1,6 @@
1
+ export const LAYER = "voice";
2
+ export const SOURCE = "voice";
3
+ export const CONSTANTS = {
4
+ LAYER,
5
+ SOURCE,
6
+ };
@@ -0,0 +1,35 @@
1
+ import "@vnejs/contracts.core.settings";
2
+ import "@vnejs/module";
3
+ import "@vnejs/shared";
4
+ import type { SourcesSet } from "@vnejs/sources-set";
5
+ import { CONSTANTS } from "./const.js";
6
+ import { PARAMS } from "./params.js";
7
+ import { SETTINGS_KEYS } from "./settings.js";
8
+ export declare const PLUGIN_NAME: "VOICE";
9
+ export type PluginName = typeof PLUGIN_NAME;
10
+ export { CONSTANTS };
11
+ export type { Constants } from "./const.js";
12
+ export { PARAMS };
13
+ export type { Params } from "./params.js";
14
+ export { SETTINGS_KEYS };
15
+ export type { SettingsKeys } from "./settings.js";
16
+ type VoiceVolumeSettingKey = (typeof SETTINGS_KEYS)["VOLUME"];
17
+ type VoiceLangSettingKey = (typeof SETTINGS_KEYS)["LANG"];
18
+ declare module "@vnejs/module" {
19
+ interface ModuleShared {
20
+ voiceLang: string;
21
+ voiceDisableSources: SourcesSet;
22
+ }
23
+ }
24
+ declare module "@vnejs/contracts.core.settings" {
25
+ interface ModuleSharedSettings extends Record<VoiceVolumeSettingKey, number>, Record<VoiceLangSettingKey, string> {
26
+ }
27
+ }
28
+ declare module "@vnejs/shared" {
29
+ interface VnePluginConstantsMap extends Record<typeof PLUGIN_NAME, typeof CONSTANTS> {
30
+ }
31
+ interface VnePluginParamsMap extends Record<typeof PLUGIN_NAME, typeof PARAMS> {
32
+ }
33
+ interface VnePluginSettingsMap extends Record<typeof PLUGIN_NAME, typeof SETTINGS_KEYS> {
34
+ }
35
+ }
package/dist/index.js ADDED
@@ -0,0 +1,10 @@
1
+ import "@vnejs/contracts.core.settings";
2
+ import "@vnejs/module";
3
+ import "@vnejs/shared";
4
+ import { CONSTANTS } from "./const.js";
5
+ import { PARAMS } from "./params.js";
6
+ import { SETTINGS_KEYS } from "./settings.js";
7
+ export const PLUGIN_NAME = "VOICE";
8
+ export { CONSTANTS };
9
+ export { PARAMS };
10
+ export { SETTINGS_KEYS };
@@ -0,0 +1,8 @@
1
+ import type { Widen } from "@vnejs/shared";
2
+ export declare const DEFAULT_LANG: string;
3
+ declare const PARAMS_DEFAULT: {
4
+ DEFAULT_LANG: string;
5
+ };
6
+ export type Params = Widen<typeof PARAMS_DEFAULT>;
7
+ export declare const PARAMS: Params;
8
+ export {};
package/dist/params.js ADDED
@@ -0,0 +1,5 @@
1
+ export const DEFAULT_LANG = "ru";
2
+ const PARAMS_DEFAULT = {
3
+ DEFAULT_LANG,
4
+ };
5
+ export const PARAMS = PARAMS_DEFAULT;
@@ -0,0 +1,5 @@
1
+ export declare const SETTINGS_KEYS: {
2
+ readonly VOLUME: "vne:voice:volume";
3
+ readonly LANG: "vne:voice:lang";
4
+ };
5
+ export type SettingsKeys = typeof SETTINGS_KEYS;
@@ -0,0 +1,4 @@
1
+ export const SETTINGS_KEYS = {
2
+ VOLUME: "vne:voice:volume",
3
+ LANG: "vne:voice:lang",
4
+ };
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@vnejs/contracts.audio.voice",
3
+ "version": "0.1.1",
4
+ "description": "Contracts for @vnejs/plugins.audio.voice",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.js",
11
+ "require": "./dist/index.js",
12
+ "default": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "src",
18
+ "tsconfig.json"
19
+ ],
20
+ "scripts": {
21
+ "build": "npx @vnejs/monorepo package",
22
+ "publish:major": "npx @vnejs/monorepo publish major --access public",
23
+ "publish:minor": "npx @vnejs/monorepo publish minor --access public",
24
+ "publish:patch": "npx @vnejs/monorepo publish patch --access public"
25
+ },
26
+ "author": "",
27
+ "license": "ISC",
28
+ "peerDependencies": {
29
+ "@vnejs/contracts.core.settings": "~0.1.0",
30
+ "@vnejs/module": "~0.1.0",
31
+ "@vnejs/shared": "~0.1.0",
32
+ "@vnejs/sources-set": "~0.1.0"
33
+ },
34
+ "devDependencies": {
35
+ "@vnejs/configs.ts-common": "~0.1.0"
36
+ }
37
+ }
package/src/const.ts ADDED
@@ -0,0 +1,9 @@
1
+ export const LAYER = "voice" as const;
2
+ export const SOURCE = "voice" as const;
3
+
4
+ export const CONSTANTS = {
5
+ LAYER,
6
+ SOURCE,
7
+ } as const;
8
+
9
+ export type Constants = typeof CONSTANTS;
package/src/index.ts ADDED
@@ -0,0 +1,41 @@
1
+ import "@vnejs/contracts.core.settings";
2
+ import "@vnejs/module";
3
+ import "@vnejs/shared";
4
+
5
+ import type { SourcesSet } from "@vnejs/sources-set";
6
+
7
+ import { CONSTANTS } from "./const.js";
8
+ import { PARAMS } from "./params.js";
9
+ import { SETTINGS_KEYS } from "./settings.js";
10
+
11
+ export const PLUGIN_NAME = "VOICE" as const;
12
+ export type PluginName = typeof PLUGIN_NAME;
13
+
14
+ export { CONSTANTS };
15
+ export type { Constants } from "./const.js";
16
+ export { PARAMS };
17
+ export type { Params } from "./params.js";
18
+ export { SETTINGS_KEYS };
19
+ export type { SettingsKeys } from "./settings.js";
20
+
21
+ type VoiceVolumeSettingKey = (typeof SETTINGS_KEYS)["VOLUME"];
22
+ type VoiceLangSettingKey = (typeof SETTINGS_KEYS)["LANG"];
23
+
24
+ declare module "@vnejs/module" {
25
+ interface ModuleShared {
26
+ voiceLang: string;
27
+ voiceDisableSources: SourcesSet;
28
+ }
29
+ }
30
+
31
+ declare module "@vnejs/contracts.core.settings" {
32
+ interface ModuleSharedSettings extends Record<VoiceVolumeSettingKey, number>, Record<VoiceLangSettingKey, string> {}
33
+ }
34
+
35
+ declare module "@vnejs/shared" {
36
+ interface VnePluginConstantsMap extends Record<typeof PLUGIN_NAME, typeof CONSTANTS> {}
37
+
38
+ interface VnePluginParamsMap extends Record<typeof PLUGIN_NAME, typeof PARAMS> {}
39
+
40
+ interface VnePluginSettingsMap extends Record<typeof PLUGIN_NAME, typeof SETTINGS_KEYS> {}
41
+ }
package/src/params.ts ADDED
@@ -0,0 +1,10 @@
1
+ import type { Widen } from "@vnejs/shared";
2
+
3
+ export const DEFAULT_LANG = "ru" as string;
4
+
5
+ const PARAMS_DEFAULT = {
6
+ DEFAULT_LANG,
7
+ };
8
+
9
+ export type Params = Widen<typeof PARAMS_DEFAULT>;
10
+ export const PARAMS: Params = PARAMS_DEFAULT;
@@ -0,0 +1,6 @@
1
+ export const SETTINGS_KEYS = {
2
+ VOLUME: "vne:voice:volume",
3
+ LANG: "vne:voice:lang",
4
+ } as const;
5
+
6
+ export type SettingsKeys = typeof SETTINGS_KEYS;
package/tsconfig.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "@vnejs/configs.ts-common/tsconfig.json",
3
+ "compilerOptions": {
4
+ "rootDir": "src",
5
+ "outDir": "dist"
6
+ },
7
+ "include": ["src/**/*.ts"],
8
+ "exclude": ["dist", "node_modules"]
9
+ }