@stream-io/video-react-sdk 1.2.8 → 1.2.10
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 +14 -0
- package/dist/index.cjs.js +12 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +12 -2
- package/dist/index.es.js.map +1 -1
- package/dist/src/core/components/Audio/Audio.d.ts +4 -1
- package/dist/src/core/components/Audio/ParticipantsAudio.d.ts +4 -1
- package/dist/src/core/components/CallLayout/LivestreamLayout.d.ts +4 -1
- package/dist/src/core/components/CallLayout/PaginatedGridLayout.d.ts +4 -1
- package/dist/src/core/components/CallLayout/SpeakerLayout.d.ts +4 -1
- package/dist/src/core/components/StreamCall/StreamCall.d.ts +3 -1
- package/dist/src/core/components/StreamVideo/StreamVideo.d.ts +4 -1
- package/dist/src/core/components/Video/Video.d.ts +4 -1
- package/package.json +1 -1
- package/src/components/Menu/MenuToggle.tsx +1 -0
- package/src/core/components/Audio/Audio.tsx +2 -0
- package/src/core/components/Audio/ParticipantsAudio.tsx +2 -0
- package/src/core/components/CallLayout/LivestreamLayout.tsx +2 -0
- package/src/core/components/CallLayout/PaginatedGridLayout.tsx +2 -0
- package/src/core/components/CallLayout/SpeakerLayout.tsx +2 -0
- package/src/core/components/ParticipantView/ParticipantView.tsx +2 -0
- package/src/core/components/StreamCall/StreamCall.tsx +10 -2
- package/src/core/components/StreamVideo/StreamVideo.tsx +3 -1
- package/src/core/components/Video/Video.tsx +2 -0
|
@@ -11,4 +11,7 @@ export type AudioProps = ComponentPropsWithoutRef<'audio'> & {
|
|
|
11
11
|
*/
|
|
12
12
|
trackType?: AudioTrackType;
|
|
13
13
|
};
|
|
14
|
-
export declare const Audio:
|
|
14
|
+
export declare const Audio: {
|
|
15
|
+
({ participant, trackType, ...rest }: AudioProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
@@ -11,4 +11,7 @@ export type ParticipantsAudioProps = {
|
|
|
11
11
|
*/
|
|
12
12
|
audioProps?: ComponentProps<typeof Audio>;
|
|
13
13
|
};
|
|
14
|
-
export declare const ParticipantsAudio:
|
|
14
|
+
export declare const ParticipantsAudio: {
|
|
15
|
+
(props: ParticipantsAudioProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
@@ -36,4 +36,7 @@ export type LivestreamLayoutProps = {
|
|
|
36
36
|
position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
|
-
export declare const LivestreamLayout:
|
|
39
|
+
export declare const LivestreamLayout: {
|
|
40
|
+
(props: LivestreamLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
displayName: string;
|
|
42
|
+
};
|
|
@@ -13,4 +13,7 @@ export type PaginatedGridLayoutProps = {
|
|
|
13
13
|
*/
|
|
14
14
|
pageArrowsVisible?: boolean;
|
|
15
15
|
} & Pick<ParticipantViewProps, 'ParticipantViewUI' | 'VideoPlaceholder'>;
|
|
16
|
-
export declare const PaginatedGridLayout:
|
|
16
|
+
export declare const PaginatedGridLayout: {
|
|
17
|
+
(props: PaginatedGridLayoutProps): import("react/jsx-runtime").JSX.Element | null;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
@@ -13,4 +13,7 @@ export type SpeakerLayoutProps = {
|
|
|
13
13
|
*/
|
|
14
14
|
participantsBarLimit?: 'dynamic' | number;
|
|
15
15
|
} & Pick<ParticipantViewProps, 'VideoPlaceholder'>;
|
|
16
|
-
export declare const SpeakerLayout:
|
|
16
|
+
export declare const SpeakerLayout: {
|
|
17
|
+
({ ParticipantViewUIBar, ParticipantViewUISpotlight, VideoPlaceholder, participantsBarPosition, participantsBarLimit, }: SpeakerLayoutProps): import("react/jsx-runtime").JSX.Element | null;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentType, PropsWithChildren } from 'react';
|
|
2
|
+
import { StreamCallProviderProps } from '@stream-io/video-react-bindings';
|
|
3
|
+
export declare const StreamCall: ComponentType<PropsWithChildren<StreamCallProviderProps>>;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { StreamVideoProps } from '@stream-io/video-react-bindings';
|
|
2
2
|
import { PropsWithChildren } from 'react';
|
|
3
|
-
export declare const StreamVideo:
|
|
3
|
+
export declare const StreamVideo: {
|
|
4
|
+
(props: PropsWithChildren<StreamVideoProps>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
@@ -34,4 +34,7 @@ export type VideoProps = ComponentPropsWithoutRef<'video'> & {
|
|
|
34
34
|
setVideoPlaceholderElement?: (element: HTMLDivElement | null) => void;
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
export declare const Video:
|
|
37
|
+
export declare const Video: {
|
|
38
|
+
({ trackType, participant, className, VideoPlaceholder, refs, ...rest }: VideoProps): import("react/jsx-runtime").JSX.Element | null;
|
|
39
|
+
displayName: string;
|
|
40
|
+
};
|
package/package.json
CHANGED
|
@@ -110,6 +110,7 @@ export const MenuToggle = <E extends HTMLElement>({
|
|
|
110
110
|
|
|
111
111
|
const handleKeyDown = (event: KeyboardEvent) => {
|
|
112
112
|
if (
|
|
113
|
+
event.key && // key can be undefined in some browsers
|
|
113
114
|
event.key.toLowerCase() === 'escape' &&
|
|
114
115
|
!event.altKey &&
|
|
115
116
|
!event.ctrlKey
|
|
@@ -180,6 +180,8 @@ const ParticipantOverlay = (props: {
|
|
|
180
180
|
);
|
|
181
181
|
};
|
|
182
182
|
|
|
183
|
+
LivestreamLayout.displayName = 'LivestreamLayout';
|
|
184
|
+
|
|
183
185
|
const useUpdateCallDuration = () => {
|
|
184
186
|
const { useIsCallLive, useCallSession } = useCallStateHooks();
|
|
185
187
|
const isCallLive = useIsCallLive();
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentType, PropsWithChildren } from 'react';
|
|
2
|
+
import {
|
|
3
|
+
StreamCallProvider,
|
|
4
|
+
StreamCallProviderProps,
|
|
5
|
+
} from '@stream-io/video-react-bindings';
|
|
2
6
|
|
|
3
7
|
// re-exporting the StreamCallProvider as StreamCall
|
|
4
|
-
export const StreamCall
|
|
8
|
+
export const StreamCall: ComponentType<
|
|
9
|
+
PropsWithChildren<StreamCallProviderProps>
|
|
10
|
+
> = StreamCallProvider;
|
|
11
|
+
|
|
12
|
+
StreamCall.displayName = 'StreamCall';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
StreamVideoProvider,
|
|
3
2
|
StreamVideoProps,
|
|
3
|
+
StreamVideoProvider,
|
|
4
4
|
} from '@stream-io/video-react-bindings';
|
|
5
5
|
import { PropsWithChildren } from 'react';
|
|
6
6
|
import { translations } from '../../../translations';
|
|
@@ -10,3 +10,5 @@ export const StreamVideo = (props: PropsWithChildren<StreamVideoProps>) => {
|
|
|
10
10
|
<StreamVideoProvider translationsOverrides={translations} {...props} />
|
|
11
11
|
);
|
|
12
12
|
};
|
|
13
|
+
|
|
14
|
+
StreamVideo.displayName = 'StreamVideo';
|