agora-react-uikit
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -9,3 +9,5 @@ /// <reference types="react" /> | ||
micOff: JSX.Element; | ||
screen: JSX.Element; | ||
stop: JSX.Element; | ||
}; | ||
export default icons; |
/** | ||
* @module agora-rn-uikit | ||
* @module agora-react-uikit | ||
*/ | ||
@@ -4,0 +4,0 @@ import AgoraUIKit, { VideocallUI } from './AgoraUIKit'; |
@@ -1,2 +0,2 @@ | ||
import React from 'react'; | ||
import React, { PropsWithChildren } from 'react'; | ||
import { LocalUIKitUser } from './PropsContext'; | ||
@@ -12,3 +12,3 @@ export declare const LocalContext: React.Context<LocalUIKitUser>; | ||
*/ | ||
declare const LocalUserContext: React.FC<LocalUserContextInterface>; | ||
declare const LocalUserContext: React.FC<PropsWithChildren<LocalUserContextInterface>>; | ||
export default LocalUserContext; |
@@ -90,2 +90,6 @@ import { IAgoraRTCClient, VideoPlayerConfig, IRemoteAudioTrack, IRemoteVideoTrack, ILocalVideoTrack, ILocalAudioTrack, UID, RemoteStreamFallbackType, ConnectionState, ConnectionDisconnectedReason, IAgoraRTCRemoteUser, RemoteStreamType, ChannelMediaRelayState, ChannelMediaRelayError, ChannelMediaRelayEvent, NetworkQuality, AgoraRTCError, IMicrophoneAudioTrack, ICameraVideoTrack } from 'agora-rtc-react'; | ||
/** | ||
* Style for the local screenshare button | ||
*/ | ||
screenshare?: React.CSSProperties; | ||
/** | ||
* Style for the local mute video button | ||
@@ -220,2 +224,6 @@ */ | ||
/** | ||
* enable screensharing feature | ||
*/ | ||
enableScreensharing?: boolean; | ||
/** | ||
* Agora App ID - used to authenticate the request | ||
@@ -233,2 +241,6 @@ */ | ||
/** | ||
* UID for local user to join the channel (default: 1) | ||
*/ | ||
screenshareUid?: number; | ||
/** | ||
* Token used to join a channel when using secured mode (default: null) | ||
@@ -238,2 +250,6 @@ */ | ||
/** | ||
* Token used to join a channel when using secured mode (default: null) | ||
*/ | ||
screenshareToken?: string | null; | ||
/** | ||
* URL for token server, manages fetching and updating tokens automatically. Must follow the schema here - https://github.com/AgoraIO-Community/agora-token-service/ | ||
@@ -338,2 +354,3 @@ */ | ||
ActiveSpeaker(uid: UID): void; | ||
Screensharing(state: boolean): void; | ||
['update-user-video'](tracks: [IMicrophoneAudioTrack, ICameraVideoTrack]): void; | ||
@@ -340,0 +357,0 @@ ['user-swap'](user: UIKitUser): void; |
@@ -6,2 +6,3 @@ import { ActionType } from './RtcContext'; | ||
min: UIKitUser[]; | ||
isScreensharing: boolean; | ||
}; | ||
@@ -11,2 +12,3 @@ export declare const initState: { | ||
min: UIKitUser[]; | ||
isScreensharing: boolean; | ||
}; | ||
@@ -16,3 +18,4 @@ declare const reducer: (state: stateType, action: ActionType<keyof CallbacksInterface>) => { | ||
min: UIKitUser[]; | ||
isScreensharing: boolean; | ||
}; | ||
export default reducer; |
@@ -1,2 +0,2 @@ | ||
import React from 'react'; | ||
import React, { PropsWithChildren } from 'react'; | ||
import { RtcPropsInterface } from './PropsContext'; | ||
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
declare const RtcConfigure: React.FC<Partial<RtcPropsInterface>>; | ||
declare const RtcConfigure: React.FC<PropsWithChildren<Partial<RtcPropsInterface>>>; | ||
export default RtcConfigure; |
@@ -40,2 +40,4 @@ import React from 'react'; | ||
channelJoined: boolean; | ||
toggleScreensharing: () => Promise<void>; | ||
isScreensharing: boolean; | ||
} | ||
@@ -42,0 +44,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import React from 'react'; | ||
import React, { PropsWithChildren } from 'react'; | ||
import { RtcPropsInterface } from './PropsContext'; | ||
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
declare const TracksConfigure: React.FC<Partial<RtcPropsInterface>>; | ||
declare const TracksConfigure: React.FC<PropsWithChildren<Partial<RtcPropsInterface>>>; | ||
export default TracksConfigure; |
{ | ||
"name": "agora-react-uikit", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "A React based UIKit for the Agora Web SDK", | ||
@@ -31,14 +31,12 @@ "author": "EkaanshArora", | ||
"devDependencies": { | ||
"@testing-library/jest-dom": "^4.2.4", | ||
"@testing-library/react": "^9.5.0", | ||
"@testing-library/user-event": "^7.2.1", | ||
"@types/estree": "^1.0.0", | ||
"@types/jest": "^25.1.4", | ||
"@types/node": "^12.12.38", | ||
"@types/react": "^16.9.27", | ||
"@types/react-dom": "^16.9.7", | ||
"@typescript-eslint/eslint-plugin": "^2.26.0", | ||
"@typescript-eslint/parser": "^2.26.0", | ||
"@types/react": "^18.0.25", | ||
"@types/react-dom": "^18.0.9", | ||
"@typescript-eslint/eslint-plugin": "^5.43.0", | ||
"@typescript-eslint/parser": "^5.43.0", | ||
"babel-eslint": "^10.0.3", | ||
"cross-env": "^7.0.2", | ||
"eslint": "^6.8.0", | ||
"eslint": "^8.29.0", | ||
"eslint-config-prettier": "^6.7.0", | ||
@@ -56,9 +54,13 @@ "eslint-config-standard": "^14.1.0", | ||
"npm-run-all": "^4.1.5", | ||
"postcss-flexbugs-fixes": "^5.0.2", | ||
"postcss-normalize": "^10.0.1", | ||
"postcss-preset-env": "^7.8.3", | ||
"prettier": "^2.0.4", | ||
"react": "^16.13.1", | ||
"react-dom": "^16.13.1", | ||
"react-scripts": "^3.4.1", | ||
"typedoc": "^0.22.10", | ||
"typescript": "^4.5.4", | ||
"typedoc-plugin-missing-exports": "^0.22.6" | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-scripts": "^5.0.1", | ||
"typedoc": "^0.23.22", | ||
"typedoc-plugin-missing-exports": "^1.0.0", | ||
"typedoc-plugin-rename-defaults": "^0.6.4", | ||
"typescript": "^4.5.4" | ||
}, | ||
@@ -65,0 +67,0 @@ "files": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
583738
43
5664
33
18