@clockworkdog/cogs-client-react 2.0.0 → 2.0.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.
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export { default as useCogsMessage } from './hooks/useCogsMessage';
|
|
|
9
9
|
export { default as usePreloadedUrl } from './hooks/usePreloadedUrl';
|
|
10
10
|
export { default as useShowPhase } from './hooks/useShowPhase';
|
|
11
11
|
export { default as useWhenShowReset } from './hooks/useWhenShowReset';
|
|
12
|
+
export * from './utils/types';
|
|
12
13
|
export { default as useAudioClips } from './hooks/useAudioClips';
|
|
13
14
|
export { default as useIsAudioPlaying } from './hooks/useIsAudioPlaying';
|
|
14
15
|
export { default as RtspVideo, RtspVideoProps } from './components/RtspVideo';
|
|
@@ -16,5 +17,5 @@ export { default as VideoContainer } from './components/VideoContainer';
|
|
|
16
17
|
export { default as useHint } from './hooks/useHint';
|
|
17
18
|
export { default as Hint } from './components/Hint';
|
|
18
19
|
export { default as Timer } from './components/Timer';
|
|
19
|
-
export { default as useImages } from './hooks/useImages';
|
|
20
|
+
export { default as useImages, Image } from './hooks/useImages';
|
|
20
21
|
export { default as Images } from './components/Images';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
18
|
};
|
|
@@ -30,6 +44,7 @@ var useShowPhase_1 = require("./hooks/useShowPhase");
|
|
|
30
44
|
Object.defineProperty(exports, "useShowPhase", { enumerable: true, get: function () { return __importDefault(useShowPhase_1).default; } });
|
|
31
45
|
var useWhenShowReset_1 = require("./hooks/useWhenShowReset");
|
|
32
46
|
Object.defineProperty(exports, "useWhenShowReset", { enumerable: true, get: function () { return __importDefault(useWhenShowReset_1).default; } });
|
|
47
|
+
__exportStar(require("./utils/types"), exports);
|
|
33
48
|
// Audio
|
|
34
49
|
var useAudioClips_1 = require("./hooks/useAudioClips");
|
|
35
50
|
Object.defineProperty(exports, "useAudioClips", { enumerable: true, get: function () { return __importDefault(useAudioClips_1).default; } });
|
|
@@ -65,6 +65,6 @@ export declare function useCogsConnection<Manifest extends CogsPluginManifest>()
|
|
|
65
65
|
*/
|
|
66
66
|
export declare function useAudioPlayer<Manifest extends CogsPluginManifest>(): CogsAudioPlayer | null;
|
|
67
67
|
/**
|
|
68
|
-
* Get the video player from `<CogsConnectionProvider
|
|
68
|
+
* Get the video player from `<CogsConnectionProvider videoPlayer>`
|
|
69
69
|
*/
|
|
70
70
|
export declare function useVideoPlayer<Manifest extends CogsPluginManifest>(): CogsVideoPlayer | null;
|
|
@@ -137,7 +137,7 @@ function useAudioPlayer() {
|
|
|
137
137
|
}
|
|
138
138
|
exports.useAudioPlayer = useAudioPlayer;
|
|
139
139
|
/**
|
|
140
|
-
* Get the video player from `<CogsConnectionProvider
|
|
140
|
+
* Get the video player from `<CogsConnectionProvider videoPlayer>`
|
|
141
141
|
*/
|
|
142
142
|
function useVideoPlayer() {
|
|
143
143
|
return (0, react_1.useContext)(CogsConnectionContext).useVideoPlayer();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clockworkdog/cogs-client-react",
|
|
3
|
-
"version": "v2.0.
|
|
3
|
+
"version": "v2.0.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"eslint-plugin-react": "^7.22.0",
|
|
28
28
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
29
29
|
"prettier": "^2.2.1",
|
|
30
|
-
"typedoc": "^0.
|
|
30
|
+
"typedoc": "^0.25.7",
|
|
31
31
|
"typescript": "^5.1.6"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|