@mindly/ui-components 3.75.1 → 3.75.3
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 +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/lib/AgoraMediaPlayer/AgoraMediaPlayer.d.ts +8 -6
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/lib/AgoraMediaPlayer/AgoraMediaPlayer.d.ts +8 -6
- package/dist/index.d.ts +7 -5
- package/package.json +1 -2
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
interface Playable {
|
|
3
|
+
play: (...args: any[]) => any;
|
|
4
|
+
}
|
|
5
|
+
export declare type MediaPlayerProps<TCameraTrack extends Playable | undefined, TAudioTrack extends Playable | undefined> = {
|
|
4
6
|
fullwidth?: boolean;
|
|
5
|
-
cameraTrack?:
|
|
6
|
-
audioTrack?:
|
|
7
|
+
cameraTrack?: TCameraTrack;
|
|
8
|
+
audioTrack?: TAudioTrack;
|
|
7
9
|
isVideoTrackMuted?: boolean;
|
|
8
10
|
isAudioTrackMuted?: boolean;
|
|
9
11
|
networkQuality?: number;
|
|
@@ -13,5 +15,5 @@ export declare type MediaPlayerProps = {
|
|
|
13
15
|
showControls: boolean;
|
|
14
16
|
isScreenSharing?: boolean;
|
|
15
17
|
} & HTMLAttributes<HTMLDivElement>;
|
|
16
|
-
declare const _default:
|
|
18
|
+
declare const _default: <TCameraTrack extends Playable | undefined, TAudioTrack extends Playable | undefined>({ fullwidth, cameraTrack, audioTrack, isVideoTrackMuted, isAudioTrackMuted, networkQuality, fallbackAvatar, fallbackAvatarDimensions, fallbackName, showControls, isScreenSharing, ...props }: MediaPlayerProps<TCameraTrack, TAudioTrack>) => JSX.Element;
|
|
17
19
|
export default _default;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode, CSSProperties, HTMLAttributes, RefAttributes, FC, ReactText, ReactElement, ChangeEvent } from 'react';
|
|
2
2
|
import { JSX as JSX$1 } from '@ionic/core/components';
|
|
3
|
-
import { ILocalVideoTrack, IRemoteVideoTrack, ILocalAudioTrack, IRemoteAudioTrack } from 'agora-rtc-sdk-ng';
|
|
4
3
|
import { RatingComponentProps } from 'react-rating';
|
|
5
4
|
import { RefresherEventDetail } from '@ionic/react';
|
|
6
5
|
|
|
@@ -432,10 +431,13 @@ declare type StatusTagPropsType = {
|
|
|
432
431
|
} & HTMLAttributes<HTMLDivElement>;
|
|
433
432
|
declare const StatusTag: React.FC<StatusTagPropsType>;
|
|
434
433
|
|
|
435
|
-
|
|
434
|
+
interface Playable {
|
|
435
|
+
play: (...args: any[]) => any;
|
|
436
|
+
}
|
|
437
|
+
declare type MediaPlayerProps<TCameraTrack extends Playable | undefined, TAudioTrack extends Playable | undefined> = {
|
|
436
438
|
fullwidth?: boolean;
|
|
437
|
-
cameraTrack?:
|
|
438
|
-
audioTrack?:
|
|
439
|
+
cameraTrack?: TCameraTrack;
|
|
440
|
+
audioTrack?: TAudioTrack;
|
|
439
441
|
isVideoTrackMuted?: boolean;
|
|
440
442
|
isAudioTrackMuted?: boolean;
|
|
441
443
|
networkQuality?: number;
|
|
@@ -445,7 +447,7 @@ declare type MediaPlayerProps = {
|
|
|
445
447
|
showControls: boolean;
|
|
446
448
|
isScreenSharing?: boolean;
|
|
447
449
|
} & HTMLAttributes<HTMLDivElement>;
|
|
448
|
-
declare const _default$y:
|
|
450
|
+
declare const _default$y: <TCameraTrack extends Playable | undefined, TAudioTrack extends Playable | undefined>({ fullwidth, cameraTrack, audioTrack, isVideoTrackMuted, isAudioTrackMuted, networkQuality, fallbackAvatar, fallbackAvatarDimensions, fallbackName, showControls, isScreenSharing, ...props }: MediaPlayerProps<TCameraTrack, TAudioTrack>) => JSX.Element;
|
|
449
451
|
|
|
450
452
|
declare type RoundButtonPropsType = {
|
|
451
453
|
disabled?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindly/ui-components",
|
|
3
|
-
"version": "3.75.
|
|
3
|
+
"version": "3.75.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "react-scripts start",
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
"@types/node": "^12.20.21",
|
|
32
32
|
"@types/react": "^17.0.27",
|
|
33
33
|
"@types/react-dom": "^17.0.9",
|
|
34
|
-
"agora-rtc-sdk-ng": "^4.12.2",
|
|
35
34
|
"auto": "^10.32.0",
|
|
36
35
|
"date-fns": "^2.28.0",
|
|
37
36
|
"html-react-parser": "^3.0.4",
|