@vnejs/contracts.audio.music 0.1.1 → 0.2.0
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/commands.d.ts +15 -0
- package/dist/commands.js +9 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -0
- package/package.json +8 -4
- package/src/commands.ts +13 -0
- package/src/index.ts +3 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Commands owned by plugins.audio.music */
|
|
2
|
+
export declare const SCENARIO_COMMANDS: {
|
|
3
|
+
readonly modules: {
|
|
4
|
+
readonly "audio.music": {
|
|
5
|
+
readonly actions: {
|
|
6
|
+
readonly PLAY: "play";
|
|
7
|
+
readonly STOP: "stop";
|
|
8
|
+
readonly PAUSE: "pause";
|
|
9
|
+
readonly RESUME: "resume";
|
|
10
|
+
readonly VOLUME: "volume";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export type ScenarioCommands = typeof SCENARIO_COMMANDS;
|
package/dist/commands.js
ADDED
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import "@vnejs/contracts.core.settings";
|
|
2
2
|
import "@vnejs/shared";
|
|
3
|
+
import { SCENARIO_COMMANDS } from "./commands.js";
|
|
3
4
|
import { SETTINGS_KEYS } from "./settings.js";
|
|
4
5
|
export declare const PLUGIN_NAME: "MUSIC";
|
|
5
6
|
export type PluginName = typeof PLUGIN_NAME;
|
|
7
|
+
export { SCENARIO_COMMANDS };
|
|
8
|
+
export type { ScenarioCommands } from "./commands.js";
|
|
6
9
|
export { SETTINGS_KEYS };
|
|
7
10
|
export type { SettingsKeys } from "./settings.js";
|
|
8
11
|
type MusicVolumeSettingKey = (typeof SETTINGS_KEYS)["VOLUME"];
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vnejs/contracts.audio.music",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Contracts for @vnejs/plugins.audio.music",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,10 +26,14 @@
|
|
|
26
26
|
"author": "",
|
|
27
27
|
"license": "ISC",
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@vnejs/contracts.
|
|
30
|
-
"@vnejs/
|
|
29
|
+
"@vnejs/contracts.audio": "~0.2.0",
|
|
30
|
+
"@vnejs/contracts.core.scenario": "~0.2.0",
|
|
31
|
+
"@vnejs/contracts.core.settings": "~0.2.0",
|
|
32
|
+
"@vnejs/shared": "~0.2.0"
|
|
31
33
|
},
|
|
32
34
|
"devDependencies": {
|
|
33
|
-
"@vnejs/configs.ts-common": "~0.
|
|
35
|
+
"@vnejs/configs.ts-common": "~0.2.0",
|
|
36
|
+
"@vnejs/contracts.audio": "~0.2.0",
|
|
37
|
+
"@vnejs/contracts.core.scenario": "~0.2.0"
|
|
34
38
|
}
|
|
35
39
|
}
|
package/src/commands.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ScenarioCommandsManifest } from "@vnejs/contracts.core.scenario";
|
|
2
|
+
import { CONSTANTS as AUDIO_CONSTANTS } from "@vnejs/contracts.audio";
|
|
3
|
+
|
|
4
|
+
/** Commands owned by plugins.audio.music */
|
|
5
|
+
export const SCENARIO_COMMANDS = {
|
|
6
|
+
modules: {
|
|
7
|
+
"audio.music": {
|
|
8
|
+
actions: AUDIO_CONSTANTS.ACTIONS,
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
} as const satisfies ScenarioCommandsManifest;
|
|
12
|
+
|
|
13
|
+
export type ScenarioCommands = typeof SCENARIO_COMMANDS;
|
package/src/index.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import "@vnejs/contracts.core.settings";
|
|
2
2
|
import "@vnejs/shared";
|
|
3
3
|
|
|
4
|
+
import { SCENARIO_COMMANDS } from "./commands.js";
|
|
4
5
|
import { SETTINGS_KEYS } from "./settings.js";
|
|
5
6
|
|
|
6
7
|
export const PLUGIN_NAME = "MUSIC" as const;
|
|
7
8
|
export type PluginName = typeof PLUGIN_NAME;
|
|
8
9
|
|
|
10
|
+
export { SCENARIO_COMMANDS };
|
|
11
|
+
export type { ScenarioCommands } from "./commands.js";
|
|
9
12
|
export { SETTINGS_KEYS };
|
|
10
13
|
export type { SettingsKeys } from "./settings.js";
|
|
11
14
|
|