@stream-io/video-react-sdk 0.0.1-alpha.92 → 0.0.1-alpha.93
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.0.1-alpha.93](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.0.1-alpha.92...@stream-io/video-react-sdk-0.0.1-alpha.93) (2023-05-30)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [0.0.1-alpha.92](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.0.1-alpha.91...@stream-io/video-react-sdk-0.0.1-alpha.92) (2023-05-30)
|
|
6
10
|
|
|
7
11
|
|
|
@@ -3,10 +3,25 @@ type VideoErrorPreviewProps = {
|
|
|
3
3
|
message?: string;
|
|
4
4
|
};
|
|
5
5
|
export type VideoPreviewProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Enforces mirroring of the video on the X axis. Defaults to true.
|
|
8
|
+
*/
|
|
6
9
|
mirror?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Component rendered when user turns off the video.
|
|
12
|
+
*/
|
|
7
13
|
DisabledVideoPreview?: ComponentType;
|
|
14
|
+
/**
|
|
15
|
+
* Component rendered when no camera devices are available.
|
|
16
|
+
*/
|
|
8
17
|
NoCameraPreview?: ComponentType;
|
|
18
|
+
/**
|
|
19
|
+
* Component rendered above the BaseVideo until the video is ready (meaning until the play event is emitted).
|
|
20
|
+
*/
|
|
9
21
|
StartingCameraPreview?: ComponentType;
|
|
22
|
+
/**
|
|
23
|
+
* Component rendered when the video stream could not be retrieved.
|
|
24
|
+
*/
|
|
10
25
|
VideoErrorPreview?: ComponentType<VideoErrorPreviewProps>;
|
|
11
26
|
};
|
|
12
27
|
export declare const VideoPreview: ({ mirror, DisabledVideoPreview, NoCameraPreview, StartingCameraPreview, VideoErrorPreview, }: VideoPreviewProps) => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoPreview.js","sourceRoot":"","sources":["../../../../src/components/Video/VideoPreview.tsx"],"names":[],"mappings":";AAAA,OAAO,EAGL,WAAW,EACX,SAAS,EACT,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EACL,YAAY,EACZ,eAAe,EACf,4BAA4B,EAC5B,eAAe,GAChB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,2BAA2B,GAAG,GAAG,EAAE;IACvC,OAAO,8CAA4B,CAAC;AACtC,CAAC,CAAC;AAEF,MAAM,sBAAsB,GAAG,GAAG,EAAE;IAClC,OAAO,4CAA0B,CAAC;AACpC,CAAC,CAAC;AAKF,MAAM,wBAAwB,GAAG,CAAC,EAAE,OAAO,EAA0B,EAAE,EAAE;IACvE,OAAO,CACL,8BACE,mCAAiB,EACjB,sBAAI,OAAO,IAAI,2BAA2B,GAAK,IAC9C,CACJ,CAAC;AACJ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"VideoPreview.js","sourceRoot":"","sources":["../../../../src/components/Video/VideoPreview.tsx"],"names":[],"mappings":";AAAA,OAAO,EAGL,WAAW,EACX,SAAS,EACT,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EACL,YAAY,EACZ,eAAe,EACf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E;wBAC1C,kCAAkC,EAAE,MAAM;wBAC1C,mCAAmC,EAAE,OAAO;qBAC7C,CAAC,EACF,MAAM,EAAE,YAAY,GACpB,CACH,EACA,OAAO,IAAI,KAAC,qBAAqB,KAAG,IACpC,CACJ,CAAC;KACH;SAAM;QACL,QAAQ,GAAG,KAAC,oBAAoB,KAAG,CAAC;KACrC;IAED,OAAO,CACL,4BAAK,SAAS,EAAE,IAAI,CAAC,oCAAoC,CAAC,gBAAG,QAAQ,IAAO,CAC7E,CAAC;AACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"@floating-ui/react": "^0.22.0",
|
|
26
26
|
"@nivo/core": "^0.80.0",
|
|
27
27
|
"@nivo/line": "^0.80.0",
|
|
28
|
-
"@stream-io/i18n": "^0.0.1-alpha.
|
|
29
|
-
"@stream-io/video-client": "^0.0.2-alpha.
|
|
30
|
-
"@stream-io/video-react-bindings": "^0.0.1-alpha.
|
|
28
|
+
"@stream-io/i18n": "^0.0.1-alpha.75",
|
|
29
|
+
"@stream-io/video-client": "^0.0.2-alpha.4",
|
|
30
|
+
"@stream-io/video-react-bindings": "^0.0.1-alpha.86",
|
|
31
31
|
"clsx": "^1.2.1",
|
|
32
32
|
"rxjs": "~7.8.1"
|
|
33
33
|
},
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"react-dom": "^18.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@stream-io/video-styling": "^0.0.1-alpha.
|
|
39
|
+
"@stream-io/video-styling": "^0.0.1-alpha.70",
|
|
40
40
|
"@types/prop-types": "^15.7.5",
|
|
41
41
|
"@types/rimraf": "^3.0.2",
|
|
42
42
|
"prop-types": "^15.8.1",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"typedoc": "^0.24.7",
|
|
48
48
|
"typescript": "^4.9.5"
|
|
49
49
|
},
|
|
50
|
-
"version": "0.0.1-alpha.
|
|
50
|
+
"version": "0.0.1-alpha.93"
|
|
51
51
|
}
|
|
@@ -37,10 +37,25 @@ const DefaultVideoErrorPreview = ({ message }: VideoErrorPreviewProps) => {
|
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
export type VideoPreviewProps = {
|
|
40
|
+
/**
|
|
41
|
+
* Enforces mirroring of the video on the X axis. Defaults to true.
|
|
42
|
+
*/
|
|
40
43
|
mirror?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Component rendered when user turns off the video.
|
|
46
|
+
*/
|
|
41
47
|
DisabledVideoPreview?: ComponentType;
|
|
48
|
+
/**
|
|
49
|
+
* Component rendered when no camera devices are available.
|
|
50
|
+
*/
|
|
42
51
|
NoCameraPreview?: ComponentType;
|
|
52
|
+
/**
|
|
53
|
+
* Component rendered above the BaseVideo until the video is ready (meaning until the play event is emitted).
|
|
54
|
+
*/
|
|
43
55
|
StartingCameraPreview?: ComponentType;
|
|
56
|
+
/**
|
|
57
|
+
* Component rendered when the video stream could not be retrieved.
|
|
58
|
+
*/
|
|
44
59
|
VideoErrorPreview?: ComponentType<VideoErrorPreviewProps>;
|
|
45
60
|
};
|
|
46
61
|
|