@stream-io/video-react-sdk 1.2.6 → 1.2.8
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 +12 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/src/components/Button/TextButton.d.ts +1 -1
- package/dist/src/components/CallControls/RecordCallButton.d.ts +1 -1
- package/dist/src/components/DeviceSettings/DeviceSelector.d.ts +5 -5
- package/dist/src/components/DropdownSelect/DropdownSelect.d.ts +1 -1
- package/dist/src/components/Menu/GenericMenu.d.ts +2 -2
- package/dist/src/components/Tooltip/hooks/useEnterLeaveHandlers.d.ts +1 -1
- package/dist/src/core/components/ParticipantView/DefaultParticipantViewUI.d.ts +1 -1
- package/dist/src/core/components/ParticipantView/ParticipantView.d.ts +5 -5
- package/dist/src/core/components/ParticipantView/ParticipantViewContext.d.ts +0 -1
- package/dist/src/core/components/StreamCall/StreamCall.d.ts +0 -1
- package/dist/src/core/hooks/useCalculateHardLimit.d.ts +1 -1
- package/dist/src/core/hooks/useTrackElementVisibility.d.ts +2 -2
- package/dist/src/hooks/useFloatingUIPreset.d.ts +2 -4
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
### [1.2.8](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.2.7...@stream-io/video-react-sdk-1.2.8) (2024-06-25)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `@stream-io/video-client` updated to version `1.4.3`
|
|
10
|
+
* `@stream-io/video-react-bindings` updated to version `0.4.47`
|
|
11
|
+
### [1.2.7](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.2.6...@stream-io/video-react-sdk-1.2.7) (2024-06-24)
|
|
12
|
+
|
|
13
|
+
### Dependency Updates
|
|
14
|
+
|
|
15
|
+
* `@stream-io/video-client` updated to version `1.4.2`
|
|
16
|
+
* `@stream-io/video-react-bindings` updated to version `0.4.46`
|
|
5
17
|
### [1.2.6](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.2.5...@stream-io/video-react-sdk-1.2.6) (2024-06-24)
|
|
6
18
|
|
|
7
19
|
|
package/dist/index.cjs.js
CHANGED
|
@@ -2612,7 +2612,7 @@ const LivestreamPlayer = (props) => {
|
|
|
2612
2612
|
return (jsxRuntime.jsx(StreamCall, { call: call, children: jsxRuntime.jsx(LivestreamLayout, { ...layoutProps }) }));
|
|
2613
2613
|
};
|
|
2614
2614
|
|
|
2615
|
-
const [major, minor, patch] = ("1.2.
|
|
2615
|
+
const [major, minor, patch] = ("1.2.8" ).split('.');
|
|
2616
2616
|
videoClient.setSdkInfo({
|
|
2617
2617
|
type: videoClient.SfuModels.SdkType.REACT,
|
|
2618
2618
|
major,
|
package/dist/index.es.js
CHANGED
|
@@ -2612,7 +2612,7 @@ const LivestreamPlayer = (props) => {
|
|
|
2612
2612
|
return (jsx(StreamCall, { call: call, children: jsx(LivestreamLayout, { ...layoutProps }) }));
|
|
2613
2613
|
};
|
|
2614
2614
|
|
|
2615
|
-
const [major, minor, patch] = ("1.2.
|
|
2615
|
+
const [major, minor, patch] = ("1.2.8" ).split('.');
|
|
2616
2616
|
setSdkInfo({
|
|
2617
2617
|
type: SfuModels.SdkType.REACT,
|
|
2618
2618
|
major,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
|
-
export declare const TextButton: ({ children, ...rest }: Omit<ComponentProps<
|
|
2
|
+
export declare const TextButton: ({ children, ...rest }: Omit<ComponentProps<"button">, "ref" | "className">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,6 +2,6 @@ export type RecordCallButtonProps = {
|
|
|
2
2
|
caption?: string;
|
|
3
3
|
};
|
|
4
4
|
export declare const RecordCallConfirmationButton: ({ caption, }: {
|
|
5
|
-
caption?: string
|
|
5
|
+
caption?: string;
|
|
6
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare const RecordCallButton: ({ caption }: RecordCallButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,9 +3,9 @@ export declare const DeviceSelector: (props: {
|
|
|
3
3
|
devices: MediaDeviceInfo[];
|
|
4
4
|
icon: string;
|
|
5
5
|
type: DeviceSelectorType;
|
|
6
|
-
selectedDeviceId?: string
|
|
7
|
-
title?: string
|
|
8
|
-
onChange?: (
|
|
9
|
-
visualType?: "list" | "dropdown"
|
|
10
|
-
placeholder?: string
|
|
6
|
+
selectedDeviceId?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
onChange?: (deviceId: string) => void;
|
|
9
|
+
visualType?: "list" | "dropdown";
|
|
10
|
+
placeholder?: string;
|
|
11
11
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,7 +6,7 @@ export type DropDownSelectOptionProps = {
|
|
|
6
6
|
};
|
|
7
7
|
export declare const DropDownSelectOption: (props: DropDownSelectOptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export declare const DropDownSelect: (props: {
|
|
9
|
-
icon?: string
|
|
9
|
+
icon?: string;
|
|
10
10
|
defaultSelectedLabel: string;
|
|
11
11
|
defaultSelectedIndex: number;
|
|
12
12
|
handleSelect: (index: number) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, MouseEvent, PropsWithChildren } from 'react';
|
|
2
2
|
export declare const GenericMenu: ({ children, onItemClick, }: PropsWithChildren<{
|
|
3
|
-
onItemClick?: (
|
|
3
|
+
onItemClick?: (e: MouseEvent) => void;
|
|
4
4
|
}>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare const GenericMenuButtonItem: ({ children, ...rest }: Omit<ComponentProps<
|
|
5
|
+
export declare const GenericMenuButtonItem: ({ children, ...rest }: Omit<ComponentProps<"button">, "ref">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MouseEventHandler } from 'react';
|
|
2
|
-
export declare const useEnterLeaveHandlers: <T extends HTMLElement>({ onMouseEnter, onMouseLeave, }?: Partial<Record<
|
|
2
|
+
export declare const useEnterLeaveHandlers: <T extends HTMLElement>({ onMouseEnter, onMouseLeave, }?: Partial<Record<"onMouseEnter" | "onMouseLeave", MouseEventHandler<T>>>) => {
|
|
3
3
|
handleMouseEnter: MouseEventHandler<T>;
|
|
4
4
|
handleMouseLeave: MouseEventHandler<T>;
|
|
5
5
|
tooltipVisible: boolean;
|
|
@@ -20,5 +20,5 @@ export type DefaultParticipantViewUIProps = {
|
|
|
20
20
|
};
|
|
21
21
|
export declare const DefaultScreenShareOverlay: () => import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
export declare const DefaultParticipantViewUI: ({ indicatorsVisible, menuPlacement, showMenuButton, ParticipantActionsContextMenu, }: DefaultParticipantViewUIProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export declare const ParticipantDetails: ({ indicatorsVisible, }: Pick<DefaultParticipantViewUIProps,
|
|
23
|
+
export declare const ParticipantDetails: ({ indicatorsVisible, }: Pick<DefaultParticipantViewUIProps, "indicatorsVisible">) => import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
export declare const SpeechIndicator: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -47,19 +47,19 @@ export declare const ParticipantView: import("react").ForwardRefExoticComponent<
|
|
|
47
47
|
* pass `null` if you wish to not render anything
|
|
48
48
|
* @default DefaultParticipantViewUI
|
|
49
49
|
*/
|
|
50
|
-
ParticipantViewUI?:
|
|
50
|
+
ParticipantViewUI?: ComponentType | ReactElement | null;
|
|
51
51
|
/**
|
|
52
52
|
* The kind of video stream to play for the given participant.
|
|
53
53
|
* The default value is `videoTrack`.
|
|
54
54
|
* You can use `none` if you're building an audio-only call.
|
|
55
55
|
*/
|
|
56
|
-
trackType?:
|
|
56
|
+
trackType?: VideoTrackType | "none";
|
|
57
57
|
/**
|
|
58
58
|
* This prop is only useful for advanced use-cases (for example, building your own layout).
|
|
59
59
|
* When set to `true` it will mute the give participant's audio stream on the client side.
|
|
60
60
|
* The local participant is always muted.
|
|
61
61
|
*/
|
|
62
|
-
muteAudio?: boolean
|
|
62
|
+
muteAudio?: boolean;
|
|
63
63
|
/**
|
|
64
64
|
* An object with set functions meant for exposing the video
|
|
65
65
|
* and video placeholder elements to the integrators.
|
|
@@ -67,9 +67,9 @@ export declare const ParticipantView: import("react").ForwardRefExoticComponent<
|
|
|
67
67
|
* - `refs.setVideoElement`
|
|
68
68
|
* - `refs.setVideoPlaceholderElement`
|
|
69
69
|
*/
|
|
70
|
-
refs?: VideoProps[
|
|
70
|
+
refs?: VideoProps["refs"];
|
|
71
71
|
/**
|
|
72
72
|
* Custom class applied to the root DOM element.
|
|
73
73
|
*/
|
|
74
|
-
className?: string
|
|
74
|
+
className?: string;
|
|
75
75
|
} & Pick<VideoProps, "VideoPlaceholder"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const useCalculateHardLimit: (wrapperElement: HTMLDivElement | null, hostElement: HTMLDivElement | null, limit?:
|
|
1
|
+
export declare const useCalculateHardLimit: (wrapperElement: HTMLDivElement | null, hostElement: HTMLDivElement | null, limit?: "dynamic" | number) => {
|
|
2
2
|
vertical: number | null;
|
|
3
3
|
horizontal: number | null;
|
|
4
4
|
};
|
|
@@ -2,6 +2,6 @@ import { DynascaleManager, VideoTrackType } from '@stream-io/video-client';
|
|
|
2
2
|
export declare const useTrackElementVisibility: <T extends HTMLElement>({ trackedElement, dynascaleManager: propsDynascaleManager, sessionId, trackType, }: {
|
|
3
3
|
trackedElement: T | null;
|
|
4
4
|
sessionId: string;
|
|
5
|
-
dynascaleManager?: DynascaleManager
|
|
6
|
-
trackType: VideoTrackType |
|
|
5
|
+
dynascaleManager?: DynascaleManager;
|
|
6
|
+
trackType: VideoTrackType | "none";
|
|
7
7
|
}) => void;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { UseFloatingOptions } from '@floating-ui/react';
|
|
3
|
-
|
|
4
|
-
export declare const useFloatingUIPreset: ({ middleware, placement, strategy, offset: offsetInPx, }: Pick<UseFloatingOptions, 'placement' | 'strategy' | 'middleware'> & {
|
|
2
|
+
export declare const useFloatingUIPreset: ({ middleware, placement, strategy, offset: offsetInPx, }: Pick<UseFloatingOptions, "placement" | "strategy" | "middleware"> & {
|
|
5
3
|
offset?: number;
|
|
6
4
|
}) => {
|
|
7
5
|
refs: {
|
|
@@ -25,7 +23,7 @@ export declare const useFloatingUIPreset: ({ middleware, placement, strategy, of
|
|
|
25
23
|
update: () => void;
|
|
26
24
|
floatingStyles: import("react").CSSProperties;
|
|
27
25
|
open: boolean;
|
|
28
|
-
onOpenChange: (open: boolean, event?: Event
|
|
26
|
+
onOpenChange: (open: boolean, event?: Event, reason?: import("@floating-ui/react").OpenChangeReason) => void;
|
|
29
27
|
events: import("@floating-ui/react").FloatingEvents;
|
|
30
28
|
dataRef: import("react").MutableRefObject<import("@floating-ui/react").ContextData>;
|
|
31
29
|
nodeId: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stream-io/video-react-sdk",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.8",
|
|
4
4
|
"packageManager": "yarn@3.2.4",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@floating-ui/react": "^0.26.5",
|
|
32
|
-
"@stream-io/video-client": "1.4.
|
|
32
|
+
"@stream-io/video-client": "1.4.3",
|
|
33
33
|
"@stream-io/video-filters-web": "0.1.2",
|
|
34
|
-
"@stream-io/video-react-bindings": "0.4.
|
|
34
|
+
"@stream-io/video-react-bindings": "0.4.47",
|
|
35
35
|
"chart.js": "^4.4.1",
|
|
36
36
|
"clsx": "^2.0.0",
|
|
37
37
|
"react-chartjs-2": "^5.2.0"
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"@stream-io/video-styling": "^1.0.4",
|
|
48
48
|
"@types/react": "^18.3.2",
|
|
49
49
|
"react": "^18.3.1",
|
|
50
|
-
"rimraf": "^5.0.
|
|
50
|
+
"rimraf": "^5.0.7",
|
|
51
51
|
"rollup": "^3.29.4",
|
|
52
|
-
"typescript": "^5.
|
|
52
|
+
"typescript": "^5.5.2"
|
|
53
53
|
}
|
|
54
54
|
}
|