@stream-io/video-react-sdk 0.3.45 → 0.3.47
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 +13 -0
- package/README.md +2 -1
- package/dist/index.cjs.js +3 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +3 -2
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/CallControls/ScreenShareButton.d.ts +1 -1
- package/package.json +3 -3
- package/src/components/CallControls/ScreenShareButton.tsx +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type ScreenShareButtonProps = {
|
|
2
2
|
caption?: string;
|
|
3
3
|
};
|
|
4
|
-
export declare const ScreenShareButton: (
|
|
4
|
+
export declare const ScreenShareButton: (props: ScreenShareButtonProps) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stream-io/video-react-sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.47",
|
|
4
4
|
"packageManager": "yarn@3.2.4",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"@floating-ui/react": "^0.22.0",
|
|
32
32
|
"@nivo/core": "^0.80.0",
|
|
33
33
|
"@nivo/line": "^0.80.0",
|
|
34
|
-
"@stream-io/video-client": "^0.3.
|
|
35
|
-
"@stream-io/video-react-bindings": "^0.2.
|
|
34
|
+
"@stream-io/video-client": "^0.3.36",
|
|
35
|
+
"@stream-io/video-react-bindings": "^0.2.37",
|
|
36
36
|
"clsx": "^2.0.0",
|
|
37
37
|
"prop-types": "^15.8.1",
|
|
38
38
|
"rxjs": "~7.8.1"
|
|
@@ -13,14 +13,14 @@ export type ScreenShareButtonProps = {
|
|
|
13
13
|
caption?: string;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
export const ScreenShareButton = ({
|
|
17
|
-
caption = 'Screen Share',
|
|
18
|
-
}: ScreenShareButtonProps) => {
|
|
16
|
+
export const ScreenShareButton = (props: ScreenShareButtonProps) => {
|
|
19
17
|
const call = useCall();
|
|
20
18
|
const { useHasOngoingScreenShare } = useCallStateHooks();
|
|
21
19
|
const isSomeoneScreenSharing = useHasOngoingScreenShare();
|
|
22
20
|
|
|
23
21
|
const { t } = useI18n();
|
|
22
|
+
const { caption = t('Screen Share') } = props;
|
|
23
|
+
|
|
24
24
|
const { toggleScreenShare, isAwaitingPermission, isScreenSharing } =
|
|
25
25
|
useToggleScreenShare();
|
|
26
26
|
|