@mindly/ui-components 3.7.2 → 3.7.4
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/dist/cjs/index.js +30 -30
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/lib/AgoraMediaPlayer/AgoraMediaPlayer.d.ts +3 -1
- package/dist/cjs/types/lib/AgoraMediaPlayer/AgoraMediaPlayer.style.d.ts +3 -3
- package/dist/cjs/types/lib/AgoraMediaPlayer/NetworkQuality/NetworkQualityComponent.d.ts +15 -0
- package/dist/cjs/types/lib/AgoraMediaPlayer/NetworkQuality/utilts.d.ts +11 -0
- package/dist/cjs/types/lib/SwitchDeviceCard/SwitchDeviceCard.d.ts +2 -2
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/lib/AgoraMediaPlayer/AgoraMediaPlayer.d.ts +3 -1
- package/dist/esm/types/lib/AgoraMediaPlayer/AgoraMediaPlayer.style.d.ts +3 -3
- package/dist/esm/types/lib/AgoraMediaPlayer/NetworkQuality/NetworkQualityComponent.d.ts +15 -0
- package/dist/esm/types/lib/AgoraMediaPlayer/NetworkQuality/utilts.d.ts +11 -0
- package/dist/esm/types/lib/SwitchDeviceCard/SwitchDeviceCard.d.ts +2 -2
- package/dist/index.d.ts +5 -3
- package/package.json +1 -1
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from 'react';
|
|
2
|
-
import { ILocalAudioTrack, ILocalVideoTrack, IRemoteAudioTrack, IRemoteVideoTrack } from 'agora-rtc-sdk-ng';
|
|
2
|
+
import { ILocalAudioTrack, ILocalVideoTrack, IRemoteAudioTrack, IRemoteVideoTrack, NetworkQuality } from 'agora-rtc-sdk-ng';
|
|
3
3
|
export declare type MediaPlayerProps = {
|
|
4
4
|
videoContainer?: React.RefObject<HTMLDivElement>;
|
|
5
5
|
cameraTrack?: ILocalVideoTrack;
|
|
6
6
|
audioTrack?: ILocalAudioTrack;
|
|
7
7
|
remoteAudioTrack?: IRemoteAudioTrack;
|
|
8
8
|
remoteCameraTrack?: IRemoteVideoTrack;
|
|
9
|
+
fullScreen?: boolean;
|
|
10
|
+
networkQuality?: NetworkQuality;
|
|
9
11
|
} & HTMLAttributes<HTMLDivElement>;
|
|
10
12
|
declare const AgoraMediaPlayer: React.FC<MediaPlayerProps>;
|
|
11
13
|
export default AgoraMediaPlayer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
export declare const StyledMediaPlayerContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
1
2
|
declare type StyledMediaPlayerContainerPropsType = {
|
|
2
|
-
|
|
3
|
-
height?: number;
|
|
3
|
+
fullScreen?: boolean;
|
|
4
4
|
};
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const StyledMediaPlayer: import("styled-components").StyledComponent<"div", any, StyledMediaPlayerContainerPropsType, never>;
|
|
6
6
|
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NetworkQuality } from 'agora-rtc-sdk-ng';
|
|
3
|
+
declare type NetworkQualityComponentType = {
|
|
4
|
+
/**
|
|
5
|
+
* if this param - true, component didnt render any hint for connection(only icon)
|
|
6
|
+
*/
|
|
7
|
+
showingAdditionalInfo: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Quality of network
|
|
10
|
+
* https://docs.agora.io/en/video/API%20Reference/web_ng/interfaces/networkquality.html#uplinknetworkquality
|
|
11
|
+
*/
|
|
12
|
+
networkQuality?: NetworkQuality;
|
|
13
|
+
};
|
|
14
|
+
declare const NetworkQualityComponent: React.FC<NetworkQualityComponentType>;
|
|
15
|
+
export default NetworkQualityComponent;
|
|
@@ -25,9 +25,9 @@ declare type VideoCallSwitchDevice = {
|
|
|
25
25
|
*/
|
|
26
26
|
disableDeviceHandler?: () => void;
|
|
27
27
|
/**
|
|
28
|
-
* If device
|
|
28
|
+
* If device disabled - false, in another way - true
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
isDisabled?: boolean;
|
|
31
31
|
};
|
|
32
32
|
declare const SwitchDeviceCard: React.FC<VideoCallSwitchDevice>;
|
|
33
33
|
export default SwitchDeviceCard;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React, { ReactNode, CSSProperties, HTMLAttributes, RefAttributes, FC, ReactText } from 'react';
|
|
3
3
|
import { JSX as JSX$1 } from '@ionic/core/components';
|
|
4
|
-
import { ILocalVideoTrack, ILocalAudioTrack, IRemoteAudioTrack, IRemoteVideoTrack } from 'agora-rtc-sdk-ng';
|
|
4
|
+
import { ILocalVideoTrack, ILocalAudioTrack, IRemoteAudioTrack, IRemoteVideoTrack, NetworkQuality } from 'agora-rtc-sdk-ng';
|
|
5
5
|
|
|
6
6
|
interface ButtonProps {
|
|
7
7
|
buttonType: 'primary' | 'secondary' | 'actionButton' | 'actionButtonDisabled' | 'secondaryWithStroke' | 'secondaryCancel' | 'actionButtonActive' | 'actionButtonGreen';
|
|
@@ -433,6 +433,8 @@ declare type MediaPlayerProps = {
|
|
|
433
433
|
audioTrack?: ILocalAudioTrack;
|
|
434
434
|
remoteAudioTrack?: IRemoteAudioTrack;
|
|
435
435
|
remoteCameraTrack?: IRemoteVideoTrack;
|
|
436
|
+
fullScreen?: boolean;
|
|
437
|
+
networkQuality?: NetworkQuality;
|
|
436
438
|
} & HTMLAttributes<HTMLDivElement>;
|
|
437
439
|
declare const AgoraMediaPlayer: React.FC<MediaPlayerProps>;
|
|
438
440
|
|
|
@@ -528,9 +530,9 @@ declare type VideoCallSwitchDevice = {
|
|
|
528
530
|
*/
|
|
529
531
|
disableDeviceHandler?: () => void;
|
|
530
532
|
/**
|
|
531
|
-
* If device
|
|
533
|
+
* If device disabled - false, in another way - true
|
|
532
534
|
*/
|
|
533
|
-
|
|
535
|
+
isDisabled?: boolean;
|
|
534
536
|
};
|
|
535
537
|
declare const SwitchDeviceCard: React.FC<VideoCallSwitchDevice>;
|
|
536
538
|
|