@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.
@@ -11,4 +11,7 @@ export type AudioProps = ComponentPropsWithoutRef<'audio'> & {
11
11
  */
12
12
  trackType?: AudioTrackType;
13
13
  };
14
- export declare const Audio: ({ participant, trackType, ...rest }: AudioProps) => import("react/jsx-runtime").JSX.Element;
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: (props: ParticipantsAudioProps) => import("react/jsx-runtime").JSX.Element;
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: (props: LivestreamLayoutProps) => import("react/jsx-runtime").JSX.Element;
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: (props: PaginatedGridLayoutProps) => import("react/jsx-runtime").JSX.Element | null;
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: ({ ParticipantViewUIBar, ParticipantViewUISpotlight, VideoPlaceholder, participantsBarPosition, participantsBarLimit, }: SpeakerLayoutProps) => import("react/jsx-runtime").JSX.Element | null;
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
- export declare const StreamCall: (props: import("react").PropsWithChildren<import("@stream-io/video-react-bindings").StreamCallProviderProps>) => import("react/jsx-runtime").JSX.Element;
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: (props: PropsWithChildren<StreamVideoProps>) => import("react/jsx-runtime").JSX.Element;
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: ({ trackType, participant, className, VideoPlaceholder, refs, ...rest }: VideoProps) => import("react/jsx-runtime").JSX.Element | null;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/video-react-sdk",
3
- "version": "1.2.8",
3
+ "version": "1.2.10",
4
4
  "packageManager": "yarn@3.2.4",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.es.js",
@@ -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
@@ -48,3 +48,5 @@ export const Audio = ({
48
48
  />
49
49
  );
50
50
  };
51
+
52
+ Audio.displayName = 'Audio';
@@ -55,3 +55,5 @@ export const ParticipantsAudio = (props: ParticipantsAudioProps) => {
55
55
  </>
56
56
  );
57
57
  };
58
+
59
+ ParticipantsAudio.displayName = 'ParticipantsAudio';
@@ -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();
@@ -159,3 +159,5 @@ export const PaginatedGridLayout = (props: PaginatedGridLayoutProps) => {
159
159
  </div>
160
160
  );
161
161
  };
162
+
163
+ PaginatedGridLayout.displayName = 'PaginatedGridLayout';
@@ -181,6 +181,8 @@ export const SpeakerLayout = ({
181
181
  );
182
182
  };
183
183
 
184
+ SpeakerLayout.displayName = 'SpeakerLayout';
185
+
184
186
  type ScrollButtonsProps<T extends HTMLElement> = {
185
187
  scrollWrapper: T | null;
186
188
  };
@@ -179,3 +179,5 @@ export const ParticipantView = forwardRef<HTMLDivElement, ParticipantViewProps>(
179
179
  );
180
180
  },
181
181
  );
182
+
183
+ ParticipantView.displayName = 'ParticipantView';
@@ -1,4 +1,12 @@
1
- import { StreamCallProvider } from '@stream-io/video-react-bindings';
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 = StreamCallProvider;
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';
@@ -172,3 +172,5 @@ export const Video = ({
172
172
  </>
173
173
  );
174
174
  };
175
+
176
+ Video.displayName = 'Video';