@stream-io/video-react-sdk 1.0.13 → 1.0.14
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 +6 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/Menu/MenuToggle.d.ts +2 -3
- package/dist/src/core/components/Video/DefaultVideoPlaceholder.d.ts +3 -3
- package/package.json +6 -7
- package/src/components/Menu/MenuToggle.tsx +2 -3
- package/src/core/components/Video/DefaultVideoPlaceholder.tsx +3 -2
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ComponentType,
|
|
1
|
+
import { ComponentType, PropsWithChildren, RefAttributes } from 'react';
|
|
2
2
|
import { Placement, Strategy } from '@floating-ui/react';
|
|
3
3
|
export type ToggleMenuButtonProps<E extends HTMLElement = HTMLButtonElement> = {
|
|
4
4
|
menuShown: boolean;
|
|
5
|
-
|
|
6
|
-
};
|
|
5
|
+
} & RefAttributes<E>;
|
|
7
6
|
export declare enum MenuVisualType {
|
|
8
7
|
PORTAL = "portal",
|
|
9
8
|
MENU = "menu"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps, RefAttributes } from 'react';
|
|
2
2
|
import type { StreamVideoParticipant } from '@stream-io/video-client';
|
|
3
3
|
export type VideoPlaceholderProps = {
|
|
4
4
|
participant: StreamVideoParticipant;
|
|
5
|
-
} &
|
|
6
|
-
export declare const DefaultVideoPlaceholder: import("react").ForwardRefExoticComponent<Omit<VideoPlaceholderProps, "ref"> &
|
|
5
|
+
} & RefAttributes<HTMLDivElement> & ComponentProps<'div'>;
|
|
6
|
+
export declare const DefaultVideoPlaceholder: import("react").ForwardRefExoticComponent<Omit<VideoPlaceholderProps, "ref"> & RefAttributes<HTMLDivElement>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stream-io/video-react-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"packageManager": "yarn@3.2.4",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -29,16 +29,15 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@floating-ui/react": "^0.26.5",
|
|
32
|
-
"@stream-io/video-client": "1.0.
|
|
32
|
+
"@stream-io/video-client": "1.0.9",
|
|
33
33
|
"@stream-io/video-filters-web": "0.1.0",
|
|
34
|
-
"@stream-io/video-react-bindings": "0.4.
|
|
34
|
+
"@stream-io/video-react-bindings": "0.4.35",
|
|
35
35
|
"chart.js": "^4.4.1",
|
|
36
36
|
"clsx": "^2.0.0",
|
|
37
37
|
"react-chartjs-2": "^5.2.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"react": "^18
|
|
41
|
-
"react-dom": "^18.0.0"
|
|
40
|
+
"react": "^18 || ^19"
|
|
42
41
|
},
|
|
43
42
|
"devDependencies": {
|
|
44
43
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -46,8 +45,8 @@
|
|
|
46
45
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
47
46
|
"@stream-io/audio-filters-web": "^0.1.0",
|
|
48
47
|
"@stream-io/video-styling": "^1.0.4",
|
|
49
|
-
"react": "^18.2
|
|
50
|
-
"react
|
|
48
|
+
"@types/react": "^18.3.2",
|
|
49
|
+
"react": "^18.3.1",
|
|
51
50
|
"rimraf": "^5.0.5",
|
|
52
51
|
"rollup": "^3.29.4",
|
|
53
52
|
"typescript": "^5.4.3"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ComponentType,
|
|
3
3
|
createContext,
|
|
4
|
-
ForwardedRef,
|
|
5
4
|
PropsWithChildren,
|
|
5
|
+
RefAttributes,
|
|
6
6
|
useContext,
|
|
7
7
|
useEffect,
|
|
8
8
|
useMemo,
|
|
@@ -21,8 +21,7 @@ import { useFloatingUIPreset } from '../../hooks';
|
|
|
21
21
|
|
|
22
22
|
export type ToggleMenuButtonProps<E extends HTMLElement = HTMLButtonElement> = {
|
|
23
23
|
menuShown: boolean;
|
|
24
|
-
|
|
25
|
-
};
|
|
24
|
+
} & RefAttributes<E>;
|
|
26
25
|
|
|
27
26
|
export enum MenuVisualType {
|
|
28
27
|
PORTAL = 'portal',
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps, RefAttributes, forwardRef, useState } from 'react';
|
|
2
2
|
import { useI18n } from '@stream-io/video-react-bindings';
|
|
3
3
|
import type { StreamVideoParticipant } from '@stream-io/video-client';
|
|
4
4
|
|
|
5
5
|
export type VideoPlaceholderProps = {
|
|
6
6
|
participant: StreamVideoParticipant;
|
|
7
|
-
} &
|
|
7
|
+
} & RefAttributes<HTMLDivElement> &
|
|
8
|
+
ComponentProps<'div'>;
|
|
8
9
|
|
|
9
10
|
export const DefaultVideoPlaceholder = forwardRef<
|
|
10
11
|
HTMLDivElement,
|