@stream-io/video-react-bindings 0.0.32 → 0.0.34
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,21 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
### [0.0.34](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-bindings-0.0.33...@stream-io/video-react-bindings-0.0.34) (2023-07-04)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `@stream-io/video-client` updated to version `0.0.1`
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* stop tracking permission requests in Call state ([#744](https://github.com/GetStream/stream-video-js/issues/744)) ([b330df3](https://github.com/GetStream/stream-video-js/commit/b330df39d9dce34d9e5a1a7ec58acb0a905ee07b))
|
|
14
|
+
|
|
15
|
+
### [0.0.33](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-bindings-0.0.32...@stream-io/video-react-bindings-0.0.33) (2023-07-03)
|
|
16
|
+
|
|
17
|
+
### Dependency Updates
|
|
18
|
+
|
|
19
|
+
* `@stream-io/video-client` updated to version `0.0.1`
|
|
5
20
|
### [0.0.32](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-bindings-0.0.31...@stream-io/video-react-bindings-0.0.32) (2023-07-03)
|
|
6
21
|
|
|
7
22
|
### Dependency Updates
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OwnCapability
|
|
1
|
+
import { OwnCapability } from '@stream-io/video-client';
|
|
2
2
|
/**
|
|
3
3
|
* Hook that returns true if the local participant has all the given permissions.
|
|
4
4
|
*
|
|
@@ -13,9 +13,3 @@ export declare const useHasPermissions: (...permissions: OwnCapability[]) => boo
|
|
|
13
13
|
* @category Call State
|
|
14
14
|
*/
|
|
15
15
|
export declare const useOwnCapabilities: () => OwnCapability[];
|
|
16
|
-
/**
|
|
17
|
-
* A hook which returns the latest call permission request.
|
|
18
|
-
*
|
|
19
|
-
* @category Call State
|
|
20
|
-
*/
|
|
21
|
-
export declare const useCallPermissionRequest: () => PermissionRequestEvent | undefined;
|
|
@@ -20,13 +20,4 @@ export const useOwnCapabilities = () => {
|
|
|
20
20
|
const { ownCapabilities$ } = useCallState();
|
|
21
21
|
return useObservableValue(ownCapabilities$);
|
|
22
22
|
};
|
|
23
|
-
/**
|
|
24
|
-
* A hook which returns the latest call permission request.
|
|
25
|
-
*
|
|
26
|
-
* @category Call State
|
|
27
|
-
*/
|
|
28
|
-
export const useCallPermissionRequest = () => {
|
|
29
|
-
const { callPermissionRequest$ } = useCallState();
|
|
30
|
-
return useObservableValue(callPermissionRequest$);
|
|
31
|
-
};
|
|
32
23
|
//# sourceMappingURL=permissions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.js","sourceRoot":"","sources":["../../../src/hooks/permissions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,GAAG,WAA4B,EAAW,EAAE;IAC5E,MAAM,YAAY,GAAG,kBAAkB,EAAE,CAAC;IAC1C,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;AAC9E,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAoB,EAAE;IACtD,MAAM,EAAE,gBAAgB,EAAE,GAAG,YAAY,EAAE,CAAC;IAC5C,OAAO,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;AAC9C,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"permissions.js","sourceRoot":"","sources":["../../../src/hooks/permissions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,GAAG,WAA4B,EAAW,EAAE;IAC5E,MAAM,YAAY,GAAG,kBAAkB,EAAE,CAAC;IAC1C,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;AAC9E,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAoB,EAAE;IACtD,MAAM,EAAE,gBAAgB,EAAE,GAAG,YAAY,EAAE,CAAC;IAC5C,OAAO,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;AAC9C,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@stream-io/i18n": "^0.0.8",
|
|
26
|
-
"@stream-io/video-client": "^0.0.
|
|
26
|
+
"@stream-io/video-client": "^0.0.32",
|
|
27
27
|
"react": ">=17.0.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@stream-io/i18n": "^0.0.8",
|
|
31
|
-
"@stream-io/video-client": "^0.0.
|
|
31
|
+
"@stream-io/video-client": "^0.0.32",
|
|
32
32
|
"@types/react": "^18.0.26",
|
|
33
33
|
"@types/rimraf": "^3.0.2",
|
|
34
34
|
"react": "^18.2.0",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"rimraf": "^3.0.2",
|
|
37
37
|
"typescript": "^4.9.5"
|
|
38
38
|
},
|
|
39
|
-
"version": "0.0.
|
|
39
|
+
"version": "0.0.34"
|
|
40
40
|
}
|
package/src/hooks/permissions.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OwnCapability
|
|
1
|
+
import { OwnCapability } from '@stream-io/video-client';
|
|
2
2
|
import { useCallState } from './store';
|
|
3
3
|
import { useObservableValue } from './helpers/useObservableValue';
|
|
4
4
|
|
|
@@ -23,15 +23,3 @@ export const useOwnCapabilities = (): OwnCapability[] => {
|
|
|
23
23
|
const { ownCapabilities$ } = useCallState();
|
|
24
24
|
return useObservableValue(ownCapabilities$);
|
|
25
25
|
};
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* A hook which returns the latest call permission request.
|
|
29
|
-
*
|
|
30
|
-
* @category Call State
|
|
31
|
-
*/
|
|
32
|
-
export const useCallPermissionRequest = ():
|
|
33
|
-
| PermissionRequestEvent
|
|
34
|
-
| undefined => {
|
|
35
|
-
const { callPermissionRequest$ } = useCallState();
|
|
36
|
-
return useObservableValue(callPermissionRequest$);
|
|
37
|
-
};
|