@clockworkdog/cogs-client 1.0.0-rc.7 → 1.0.0-rc.8
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.
|
@@ -16,14 +16,18 @@ interface TextHintsUpdateMessage {
|
|
|
16
16
|
type: 'text_hints_update';
|
|
17
17
|
lastSentHint: string;
|
|
18
18
|
}
|
|
19
|
+
export declare type Media = {
|
|
20
|
+
type: 'audio';
|
|
21
|
+
preload: boolean;
|
|
22
|
+
} | {
|
|
23
|
+
type: 'video';
|
|
24
|
+
preload: boolean | 'auto' | 'metadata' | 'none';
|
|
25
|
+
};
|
|
19
26
|
interface MediaClientConfigMessage {
|
|
20
27
|
type: 'media_config_update';
|
|
21
28
|
globalVolume: number;
|
|
22
29
|
files: {
|
|
23
|
-
[path: string]:
|
|
24
|
-
preload: boolean;
|
|
25
|
-
type: 'audio' | 'video';
|
|
26
|
-
};
|
|
30
|
+
[path: string]: Media;
|
|
27
31
|
};
|
|
28
32
|
}
|
|
29
33
|
declare type MediaClientMessage = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clockworkdog/cogs-client",
|
|
3
|
-
"version": "v1.0.0-rc.
|
|
3
|
+
"version": "v1.0.0-rc.8",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"unpkg": "dist/browser/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"author": "Clockwork Dog <info@clockwork.dog>",
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@types/howler": "2.2.
|
|
19
|
+
"@types/howler": "2.2.7",
|
|
20
20
|
"@typescript-eslint/eslint-plugin": "^4.12.0",
|
|
21
21
|
"@typescript-eslint/parser": "^4.12.0",
|
|
22
22
|
"browserify": "^17.0.0",
|