@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.
@@ -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
- width?: number;
3
- height?: number;
3
+ fullScreen?: boolean;
4
4
  };
5
- export declare const StyledMediaPlayerContainer: import("styled-components").StyledComponent<"div", any, StyledMediaPlayerContainerPropsType, never>;
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;
@@ -0,0 +1,11 @@
1
+ export declare const getNetworkCssInformation: (networkQualityNumber: number) => {
2
+ color: string;
3
+ hint: string;
4
+ icon: string;
5
+ additionalHint?: undefined;
6
+ } | {
7
+ color: string;
8
+ hint: string;
9
+ additionalHint: string;
10
+ icon: string;
11
+ };
@@ -25,9 +25,9 @@ declare type VideoCallSwitchDevice = {
25
25
  */
26
26
  disableDeviceHandler?: () => void;
27
27
  /**
28
- * If device enabled: true, if muted: false
28
+ * If device disabled - false, in another way - true
29
29
  */
30
- isActive?: boolean;
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 enabled: true, if muted: false
533
+ * If device disabled - false, in another way - true
532
534
  */
533
- isActive?: boolean;
535
+ isDisabled?: boolean;
534
536
  };
535
537
  declare const SwitchDeviceCard: React.FC<VideoCallSwitchDevice>;
536
538
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "3.7.2",
3
+ "version": "3.7.4",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "react-scripts start",