@stream-io/video-react-sdk 0.0.1-alpha.83 → 0.0.1-alpha.85
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 +8 -0
- package/dist/src/components/CallControls/CallControls.d.ts +1 -1
- package/dist/src/components/CallControls/CallControls.js +1 -4
- package/dist/src/components/CallControls/CallControls.js.map +1 -1
- package/dist/src/components/CallControls/CallStatsButton.d.ts +1 -5
- package/dist/src/components/CallControls/CallStatsButton.js +1 -3
- package/dist/src/components/CallControls/CallStatsButton.js.map +1 -1
- package/package.json +5 -5
- package/src/components/CallControls/CallControls.tsx +12 -15
- package/src/components/CallControls/CallStatsButton.tsx +5 -13
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.0.1-alpha.85](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.0.1-alpha.84...@stream-io/video-react-sdk-0.0.1-alpha.85) (2023-05-26)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [0.0.1-alpha.84](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.0.1-alpha.83...@stream-io/video-react-sdk-0.0.1-alpha.84) (2023-05-25)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [0.0.1-alpha.83](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.0.1-alpha.82...@stream-io/video-react-sdk-0.0.1-alpha.83) (2023-05-25)
|
|
6
14
|
|
|
7
15
|
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { CallStatsButton, CancelCallButton, RecordCallButton, ScreenShareButton, ToggleAudioPublishingButton, ToggleVideoPublishingButton, } from './index';
|
|
3
3
|
import { SpeakingWhileMutedNotification } from '../Notification';
|
|
4
|
-
export const CallControls = (
|
|
5
|
-
const { onLeave } = props;
|
|
6
|
-
return (_jsxs("div", Object.assign({ className: "str-video__call-controls" }, { children: [_jsx(RecordCallButton, {}), _jsx(CallStatsButton, {}), _jsx(ScreenShareButton, {}), _jsx(SpeakingWhileMutedNotification, { children: _jsx(ToggleAudioPublishingButton, {}) }), _jsx(ToggleVideoPublishingButton, {}), _jsx(CancelCallButton, { onLeave: onLeave })] })));
|
|
7
|
-
};
|
|
4
|
+
export const CallControls = ({ onLeave }) => (_jsxs("div", Object.assign({ className: "str-video__call-controls" }, { children: [_jsx(RecordCallButton, {}), _jsx(CallStatsButton, {}), _jsx(ScreenShareButton, {}), _jsx(SpeakingWhileMutedNotification, { children: _jsx(ToggleAudioPublishingButton, {}) }), _jsx(ToggleVideoPublishingButton, {}), _jsx(CancelCallButton, { onLeave: onLeave })] })));
|
|
8
5
|
//# sourceMappingURL=CallControls.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallControls.js","sourceRoot":"","sources":["../../../../src/components/CallControls/CallControls.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,2BAA2B,EAC3B,2BAA2B,GAC5B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAC;AAMjE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"CallControls.js","sourceRoot":"","sources":["../../../../src/components/CallControls/CallControls.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,2BAA2B,EAC3B,2BAA2B,GAC5B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAC;AAMjE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAE,OAAO,EAAqB,EAAE,EAAE,CAAC,CAC9D,6BAAK,SAAS,EAAC,0BAA0B,iBACvC,KAAC,gBAAgB,KAAG,EACpB,KAAC,eAAe,KAAG,EACnB,KAAC,iBAAiB,KAAG,EACrB,KAAC,8BAA8B,cAC7B,KAAC,2BAA2B,KAAG,GACA,EACjC,KAAC,2BAA2B,KAAG,EAC/B,KAAC,gBAAgB,IAAC,OAAO,EAAE,OAAO,GAAI,KAClC,CACP,CAAC"}
|
|
@@ -3,8 +3,6 @@ import { forwardRef } from 'react';
|
|
|
3
3
|
import { CallStats } from '../CallStats';
|
|
4
4
|
import { CompositeButton, IconButton } from '../Button/';
|
|
5
5
|
import { MenuToggle } from '../Menu';
|
|
6
|
-
export const CallStatsButton = ({
|
|
7
|
-
return (_jsx(MenuToggle, Object.assign({ placement: "top-end", ToggleButton: ToggleMenuButton }, { children: _jsx(CallStats, {}) })));
|
|
8
|
-
};
|
|
6
|
+
export const CallStatsButton = () => (_jsx(MenuToggle, Object.assign({ placement: "top-end", ToggleButton: ToggleMenuButton }, { children: _jsx(CallStats, {}) })));
|
|
9
7
|
const ToggleMenuButton = forwardRef(({ menuShown }, ref) => (_jsx(CompositeButton, Object.assign({ ref: ref, active: menuShown, caption: 'Stats' }, { children: _jsx(IconButton, { icon: "stats", title: "Statistics" }) }))));
|
|
10
8
|
//# sourceMappingURL=CallStatsButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallStatsButton.js","sourceRoot":"","sources":["../../../../src/components/CallControls/CallStatsButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,UAAU,EAAyB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"CallStatsButton.js","sourceRoot":"","sources":["../../../../src/components/CallControls/CallStatsButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,UAAU,EAAyB,MAAM,SAAS,CAAC;AAE5D,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,CACnC,KAAC,UAAU,kBAAC,SAAS,EAAC,SAAS,EAAC,YAAY,EAAE,gBAAgB,gBAC5D,KAAC,SAAS,KAAG,IACF,CACd,CAAC;AAEF,MAAM,gBAAgB,GAAG,UAAU,CAGjC,CAAC,EAAE,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACxB,KAAC,eAAe,kBAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,gBAC5D,KAAC,UAAU,IAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAC,YAAY,GAAG,IAC9B,CACnB,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.1-alpha.
|
|
30
|
-
"@stream-io/video-react-bindings": "^0.0.1-alpha.
|
|
28
|
+
"@stream-io/i18n": "^0.0.1-alpha.67",
|
|
29
|
+
"@stream-io/video-client": "^0.0.1-alpha.191",
|
|
30
|
+
"@stream-io/video-react-bindings": "^0.0.1-alpha.78",
|
|
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.63",
|
|
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.85"
|
|
51
51
|
}
|
|
@@ -12,18 +12,15 @@ export type CallControlsProps = {
|
|
|
12
12
|
onLeave?: () => void;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
export const CallControls = (
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</div>
|
|
28
|
-
);
|
|
29
|
-
};
|
|
15
|
+
export const CallControls = ({ onLeave }: CallControlsProps) => (
|
|
16
|
+
<div className="str-video__call-controls">
|
|
17
|
+
<RecordCallButton />
|
|
18
|
+
<CallStatsButton />
|
|
19
|
+
<ScreenShareButton />
|
|
20
|
+
<SpeakingWhileMutedNotification>
|
|
21
|
+
<ToggleAudioPublishingButton />
|
|
22
|
+
</SpeakingWhileMutedNotification>
|
|
23
|
+
<ToggleVideoPublishingButton />
|
|
24
|
+
<CancelCallButton onLeave={onLeave} />
|
|
25
|
+
</div>
|
|
26
|
+
);
|
|
@@ -4,19 +4,11 @@ import { CallStats } from '../CallStats';
|
|
|
4
4
|
import { CompositeButton, IconButton } from '../Button/';
|
|
5
5
|
import { MenuToggle, ToggleMenuButtonProps } from '../Menu';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
caption = 'Stats',
|
|
13
|
-
}: CallStatsButtonProps) => {
|
|
14
|
-
return (
|
|
15
|
-
<MenuToggle placement="top-end" ToggleButton={ToggleMenuButton}>
|
|
16
|
-
<CallStats />
|
|
17
|
-
</MenuToggle>
|
|
18
|
-
);
|
|
19
|
-
};
|
|
7
|
+
export const CallStatsButton = () => (
|
|
8
|
+
<MenuToggle placement="top-end" ToggleButton={ToggleMenuButton}>
|
|
9
|
+
<CallStats />
|
|
10
|
+
</MenuToggle>
|
|
11
|
+
);
|
|
20
12
|
|
|
21
13
|
const ToggleMenuButton = forwardRef<
|
|
22
14
|
HTMLDivElement,
|