@stream-io/video-react-bindings 0.0.22 → 0.0.24
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,23 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
### [0.0.24](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-bindings-0.0.23...@stream-io/video-react-bindings-0.0.24) (2023-06-22)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `@stream-io/video-client` updated to version `0.0.1`
|
|
10
|
+
### [0.0.23](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-bindings-0.0.22...@stream-io/video-react-bindings-0.0.23) (2023-06-21)
|
|
11
|
+
|
|
12
|
+
### Dependency Updates
|
|
13
|
+
|
|
14
|
+
* `@stream-io/i18n` updated to version `0.0.6`
|
|
15
|
+
* `@stream-io/video-client` updated to version `0.0.1`
|
|
16
|
+
|
|
17
|
+
### Documentation
|
|
18
|
+
|
|
19
|
+
* Add reference tables to state docs ([#676](https://github.com/GetStream/stream-video-js/issues/676)) ([39e7a05](https://github.com/GetStream/stream-video-js/commit/39e7a05a79ba1754be7f62412666ec1f9f85aba9))
|
|
20
|
+
* cleanup ([#679](https://github.com/GetStream/stream-video-js/issues/679)) ([58c86bd](https://github.com/GetStream/stream-video-js/commit/58c86bd0354ebe444af361056dcc3fa82c4a926d))
|
|
21
|
+
|
|
5
22
|
### [0.0.22](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-bindings-0.0.21...@stream-io/video-react-bindings-0.0.22) (2023-06-21)
|
|
6
23
|
|
|
7
24
|
### Dependency Updates
|
package/dist/src/hooks/call.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Utility hook which provides information whether the current call is being recorded.
|
|
2
|
+
* Utility hook which provides information whether the current call is being recorded. It will return `true` if the call is being recorded.
|
|
3
3
|
*
|
|
4
4
|
* @category Call State
|
|
5
5
|
*/
|
|
@@ -69,13 +69,13 @@ export declare const useCallMembers: () => import("@stream-io/video-client").Mem
|
|
|
69
69
|
*/
|
|
70
70
|
export declare const useCallRecordings: () => import("@stream-io/video-client").CallRecording[];
|
|
71
71
|
/**
|
|
72
|
-
* Utility hook providing the current calling state of the call.
|
|
72
|
+
* Utility hook providing the current calling state of the call. For example, `RINGING` or `JOINED`.
|
|
73
73
|
*
|
|
74
74
|
* @category Call State
|
|
75
75
|
*/
|
|
76
76
|
export declare const useCallCallingState: () => import("@stream-io/video-client").CallingState;
|
|
77
77
|
/**
|
|
78
|
-
* Utility hook providing the actual start time of the
|
|
78
|
+
* Utility hook providing the actual start time of the current session.
|
|
79
79
|
* Useful for calculating the call duration.
|
|
80
80
|
*
|
|
81
81
|
* @category Call State
|
package/dist/src/hooks/call.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useObservableValue } from './helpers/useObservableValue';
|
|
2
2
|
import { useCallState, useStore } from './store';
|
|
3
3
|
/**
|
|
4
|
-
* Utility hook which provides information whether the current call is being recorded.
|
|
4
|
+
* Utility hook which provides information whether the current call is being recorded. It will return `true` if the call is being recorded.
|
|
5
5
|
*
|
|
6
6
|
* @category Call State
|
|
7
7
|
*/
|
|
@@ -101,7 +101,7 @@ export const useCallRecordings = () => {
|
|
|
101
101
|
return useObservableValue(callRecordingList$);
|
|
102
102
|
};
|
|
103
103
|
/**
|
|
104
|
-
* Utility hook providing the current calling state of the call.
|
|
104
|
+
* Utility hook providing the current calling state of the call. For example, `RINGING` or `JOINED`.
|
|
105
105
|
*
|
|
106
106
|
* @category Call State
|
|
107
107
|
*/
|
|
@@ -110,7 +110,7 @@ export const useCallCallingState = () => {
|
|
|
110
110
|
return useObservableValue(callingState$);
|
|
111
111
|
};
|
|
112
112
|
/**
|
|
113
|
-
* Utility hook providing the actual start time of the
|
|
113
|
+
* Utility hook providing the actual start time of the current session.
|
|
114
114
|
* Useful for calculating the call duration.
|
|
115
115
|
*
|
|
116
116
|
* @category Call State
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OwnCapability, PermissionRequestEvent } from '@stream-io/video-client';
|
|
2
2
|
/**
|
|
3
|
-
* Hook that returns true if the
|
|
3
|
+
* Hook that returns true if the local participant has all the given permissions.
|
|
4
4
|
*
|
|
5
5
|
* @param permissions the permissions to check.
|
|
6
6
|
*
|
|
@@ -8,7 +8,7 @@ import { OwnCapability, PermissionRequestEvent } from '@stream-io/video-client';
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const useHasPermissions: (...permissions: OwnCapability[]) => boolean;
|
|
10
10
|
/**
|
|
11
|
-
* A hook which returns the
|
|
11
|
+
* A hook which returns the local participant's own capabilities.
|
|
12
12
|
*
|
|
13
13
|
* @category Call State
|
|
14
14
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallState } from './store';
|
|
2
2
|
import { useObservableValue } from './helpers/useObservableValue';
|
|
3
3
|
/**
|
|
4
|
-
* Hook that returns true if the
|
|
4
|
+
* Hook that returns true if the local participant has all the given permissions.
|
|
5
5
|
*
|
|
6
6
|
* @param permissions the permissions to check.
|
|
7
7
|
*
|
|
@@ -12,7 +12,7 @@ export const useHasPermissions = (...permissions) => {
|
|
|
12
12
|
return permissions.every((permission) => capabilities.includes(permission));
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
|
-
* A hook which returns the
|
|
15
|
+
* A hook which returns the local participant's own capabilities.
|
|
16
16
|
*
|
|
17
17
|
* @category Call State
|
|
18
18
|
*/
|
package/package.json
CHANGED
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
"scripts": {
|
|
8
8
|
"clean": "rimraf dist",
|
|
9
9
|
"start": "tsc --project tsconfig.json --watch",
|
|
10
|
-
"build": "tsc --project tsconfig.production.json"
|
|
11
|
-
"generate-docs": "rimraf generated-docs && typedoc --options typedoc.json ./index.ts && replace-in-file '# @stream-io/video-react-bindings' '# Hooks' temp-docs/** && replace-in-file '.md' '' 'temp-docs/**' && mkdir generated-docs && cp temp-docs/modules.md generated-docs/hooks.md && rm -rf temp-docs"
|
|
10
|
+
"build": "tsc --project tsconfig.production.json"
|
|
12
11
|
},
|
|
13
12
|
"files": [
|
|
14
13
|
"dist",
|
|
@@ -23,21 +22,19 @@
|
|
|
23
22
|
"rxjs": "~7.8.1"
|
|
24
23
|
},
|
|
25
24
|
"peerDependencies": {
|
|
26
|
-
"@stream-io/i18n": "^0.0.
|
|
27
|
-
"@stream-io/video-client": "^0.0.
|
|
25
|
+
"@stream-io/i18n": "^0.0.6",
|
|
26
|
+
"@stream-io/video-client": "^0.0.23",
|
|
28
27
|
"react": ">=17.0.0"
|
|
29
28
|
},
|
|
30
29
|
"devDependencies": {
|
|
31
|
-
"@stream-io/i18n": "^0.0.
|
|
32
|
-
"@stream-io/video-client": "^0.0.
|
|
30
|
+
"@stream-io/i18n": "^0.0.6",
|
|
31
|
+
"@stream-io/video-client": "^0.0.23",
|
|
33
32
|
"@types/react": "^18.0.26",
|
|
34
33
|
"@types/rimraf": "^3.0.2",
|
|
35
34
|
"react": "^18.2.0",
|
|
36
35
|
"replace-in-file": "^6.3.5",
|
|
37
36
|
"rimraf": "^3.0.2",
|
|
38
|
-
"typedoc": "^0.24.7",
|
|
39
|
-
"typedoc-plugin-markdown": "^3.15.3",
|
|
40
37
|
"typescript": "^4.9.5"
|
|
41
38
|
},
|
|
42
|
-
"version": "0.0.
|
|
39
|
+
"version": "0.0.24"
|
|
43
40
|
}
|
package/src/hooks/call.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { useObservableValue } from './helpers/useObservableValue';
|
|
|
2
2
|
import { useCallState, useStore } from './store';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* Utility hook which provides information whether the current call is being recorded.
|
|
5
|
+
* Utility hook which provides information whether the current call is being recorded. It will return `true` if the call is being recorded.
|
|
6
6
|
*
|
|
7
7
|
* @category Call State
|
|
8
8
|
*/
|
|
@@ -112,7 +112,7 @@ export const useCallRecordings = () => {
|
|
|
112
112
|
};
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
|
-
* Utility hook providing the current calling state of the call.
|
|
115
|
+
* Utility hook providing the current calling state of the call. For example, `RINGING` or `JOINED`.
|
|
116
116
|
*
|
|
117
117
|
* @category Call State
|
|
118
118
|
*/
|
|
@@ -122,7 +122,7 @@ export const useCallCallingState = () => {
|
|
|
122
122
|
};
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
|
-
* Utility hook providing the actual start time of the
|
|
125
|
+
* Utility hook providing the actual start time of the current session.
|
|
126
126
|
* Useful for calculating the call duration.
|
|
127
127
|
*
|
|
128
128
|
* @category Call State
|
package/src/hooks/permissions.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { useCallState } from './store';
|
|
|
3
3
|
import { useObservableValue } from './helpers/useObservableValue';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Hook that returns true if the
|
|
6
|
+
* Hook that returns true if the local participant has all the given permissions.
|
|
7
7
|
*
|
|
8
8
|
* @param permissions the permissions to check.
|
|
9
9
|
*
|
|
@@ -15,7 +15,7 @@ export const useHasPermissions = (...permissions: OwnCapability[]): boolean => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* A hook which returns the
|
|
18
|
+
* A hook which returns the local participant's own capabilities.
|
|
19
19
|
*
|
|
20
20
|
* @category Call State
|
|
21
21
|
*/
|