@stream-io/video-react-bindings 0.0.1-alpha.14 → 0.0.1-alpha.16
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 +22 -0
- package/dist/src/hooks/store.js +3 -1
- package/dist/src/hooks/store.js.map +1 -1
- package/package.json +3 -3
- package/src/hooks/store.ts +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.0.1-alpha.16](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-bindings-0.0.1-alpha.15...@stream-io/video-react-bindings-0.0.1-alpha.16) (2023-05-09)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* edge cases in default layouts ([#471](https://github.com/GetStream/stream-video-js/issues/471)) ([c79a733](https://github.com/GetStream/stream-video-js/commit/c79a7330a1e0a84ce8eb3b0d9f7d9eea1b1f5d3a))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.0.1-alpha.16](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-bindings-0.0.1-alpha.15...@stream-io/video-react-bindings-0.0.1-alpha.16) (2023-05-08)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* edge cases in default layouts ([#471](https://github.com/GetStream/stream-video-js/issues/471)) ([c79a733](https://github.com/GetStream/stream-video-js/commit/c79a7330a1e0a84ce8eb3b0d9f7d9eea1b1f5d3a))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## [0.0.1-alpha.15](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-bindings-0.0.1-alpha.14...@stream-io/video-react-bindings-0.0.1-alpha.15) (2023-05-08)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
5
27
|
## [0.0.1-alpha.14](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-bindings-0.0.1-alpha.13...@stream-io/video-react-bindings-0.0.1-alpha.14) (2023-05-08)
|
|
6
28
|
|
|
7
29
|
|
package/dist/src/hooks/store.js
CHANGED
|
@@ -20,7 +20,9 @@ export const useCallState = () => {
|
|
|
20
20
|
// return an empty and unlinked CallState object if there is no call in the provider
|
|
21
21
|
// this ensures that the hooks always return a value and many null checks can be avoided
|
|
22
22
|
if (!call) {
|
|
23
|
-
|
|
23
|
+
const message = 'You are using useCallState() outside a Call context. ' +
|
|
24
|
+
'Please wrap your component in <StreamCallProvider /> and provide a non-null "call" instance.';
|
|
25
|
+
console.warn(message);
|
|
24
26
|
return new CallState();
|
|
25
27
|
}
|
|
26
28
|
return call.state;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/hooks/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAE5D;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC3B,MAAM,MAAM,GAAG,oBAAoB,EAAE,CAAC;IACtC,IAAI,CAAC,MAAM,EAAE;QACX,MAAM,IAAI,KAAK,CACb,8FAA8F,CAC/F,CAAC;KACH;IACD,OAAO,MAAM,CAAC,kBAAkB,CAAC;AACnC,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE;IAC/B,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,oFAAoF;IACpF,wFAAwF;IACxF,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/hooks/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAE5D;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC3B,MAAM,MAAM,GAAG,oBAAoB,EAAE,CAAC;IACtC,IAAI,CAAC,MAAM,EAAE;QACX,MAAM,IAAI,KAAK,CACb,8FAA8F,CAC/F,CAAC;KACH;IACD,OAAO,MAAM,CAAC,kBAAkB,CAAC;AACnC,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE;IAC/B,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,oFAAoF;IACpF,wFAAwF;IACxF,IAAI,CAAC,IAAI,EAAE;QACT,MAAM,OAAO,GACX,uDAAuD;YACvD,8FAA8F,CAAC;QACjG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtB,OAAO,IAAI,SAAS,EAAE,CAAC;KACxB;IACD,OAAO,IAAI,CAAC,KAAK,CAAC;AACpB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@stream-io/i18n": "^0.0.1-alpha.10",
|
|
27
|
-
"@stream-io/video-client": "^0.0.1-alpha.
|
|
27
|
+
"@stream-io/video-client": "^0.0.1-alpha.127",
|
|
28
28
|
"react": ">=17.0.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@stream-io/i18n": "^0.0.1-alpha.10",
|
|
32
|
-
"@stream-io/video-client": "^0.0.1-alpha.
|
|
32
|
+
"@stream-io/video-client": "^0.0.1-alpha.127",
|
|
33
33
|
"@types/react": "^18.0.26",
|
|
34
34
|
"@types/rimraf": "^3.0.2",
|
|
35
35
|
"react": "^18.2.0",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"typedoc-plugin-markdown": "^3.13.6",
|
|
40
40
|
"typescript": "^4.9.5"
|
|
41
41
|
},
|
|
42
|
-
"version": "0.0.1-alpha.
|
|
42
|
+
"version": "0.0.1-alpha.16"
|
|
43
43
|
}
|
package/src/hooks/store.ts
CHANGED
|
@@ -24,9 +24,10 @@ export const useCallState = () => {
|
|
|
24
24
|
// return an empty and unlinked CallState object if there is no call in the provider
|
|
25
25
|
// this ensures that the hooks always return a value and many null checks can be avoided
|
|
26
26
|
if (!call) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
const message =
|
|
28
|
+
'You are using useCallState() outside a Call context. ' +
|
|
29
|
+
'Please wrap your component in <StreamCallProvider /> and provide a non-null "call" instance.';
|
|
30
|
+
console.warn(message);
|
|
30
31
|
return new CallState();
|
|
31
32
|
}
|
|
32
33
|
return call.state;
|