@mindly/ui-components 3.2.0 → 3.3.1
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 +11 -0
- package/dist/cjs/types/lib/AgoraMediaPlayer/AgoraMediaPlayer.style.d.ts +6 -0
- package/dist/cjs/types/lib/Container/Container.d.ts +6 -2
- package/dist/cjs/types/lib/RoundButton/RoundButton.d.ts +11 -0
- package/dist/cjs/types/lib/RoundButton/RoundButton.styled.d.ts +9 -0
- package/dist/cjs/types/lib/StatusTag/StatusTag.d.ts +7 -0
- package/dist/cjs/types/lib/StatusTag/StatusTag.style.d.ts +6 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/lib/AgoraMediaPlayer/AgoraMediaPlayer.d.ts +11 -0
- package/dist/esm/types/lib/AgoraMediaPlayer/AgoraMediaPlayer.style.d.ts +6 -0
- package/dist/esm/types/lib/Container/Container.d.ts +6 -2
- package/dist/esm/types/lib/RoundButton/RoundButton.d.ts +11 -0
- package/dist/esm/types/lib/RoundButton/RoundButton.styled.d.ts +9 -0
- package/dist/esm/types/lib/StatusTag/StatusTag.d.ts +7 -0
- package/dist/esm/types/lib/StatusTag/StatusTag.style.d.ts +6 -0
- package/dist/index.d.ts +5 -1
- package/package.json +3 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
import { ILocalAudioTrack, ILocalVideoTrack, IRemoteAudioTrack, IRemoteVideoTrack } from 'agora-rtc-sdk-ng';
|
|
3
|
+
export declare type MediaPlayerProps = {
|
|
4
|
+
videoContainer?: React.RefObject<HTMLDivElement>;
|
|
5
|
+
cameraTrack?: ILocalVideoTrack;
|
|
6
|
+
audioTrack?: ILocalAudioTrack;
|
|
7
|
+
remoteAudioTrack?: IRemoteAudioTrack;
|
|
8
|
+
remoteCameraTrack?: IRemoteVideoTrack;
|
|
9
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
10
|
+
declare const AgoraMediaPlayer: React.FC<MediaPlayerProps>;
|
|
11
|
+
export default AgoraMediaPlayer;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
declare
|
|
1
|
+
import { CSSProperties, FC } from 'react';
|
|
2
|
+
declare type ContainerProps = {
|
|
3
|
+
style?: CSSProperties;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const Container: FC<ContainerProps>;
|
|
3
7
|
export default Container;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type RoundButtonPropsType = {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
onClickHandler?: () => void;
|
|
5
|
+
buttonText?: string;
|
|
6
|
+
buttonIcon?: string;
|
|
7
|
+
buttonType?: 'transparent' | 'fullFill' | 'reject';
|
|
8
|
+
dimension?: number;
|
|
9
|
+
};
|
|
10
|
+
declare const RoundButton: React.FC<RoundButtonPropsType>;
|
|
11
|
+
export default RoundButton;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const StyledRoundButtonContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const StyledRoundButtonText: import("styled-components").StyledComponent<"p", any, {}, never>;
|
|
3
|
+
declare type StyledControlPanelButtonPropsType = {
|
|
4
|
+
buttonType?: 'transparent' | 'fullFill' | 'reject';
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
dimension?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const StyledRoundButton: import("styled-components").StyledComponent<"button", any, StyledControlPanelButtonPropsType, never>;
|
|
9
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -380,7 +380,11 @@ declare type AppHeaderProps = {
|
|
|
380
380
|
};
|
|
381
381
|
declare const AppHeader: FC<AppHeaderProps>;
|
|
382
382
|
|
|
383
|
-
declare
|
|
383
|
+
declare type ContainerProps = {
|
|
384
|
+
style?: CSSProperties;
|
|
385
|
+
className?: string;
|
|
386
|
+
};
|
|
387
|
+
declare const Container: FC<ContainerProps>;
|
|
384
388
|
|
|
385
389
|
declare type SegmentType = {
|
|
386
390
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindly/ui-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "react-scripts start",
|
|
7
7
|
"clean": "rimraf dist",
|
|
8
8
|
"build": "rollup -c",
|
|
9
|
+
"build:watch": "tsc --watch",
|
|
9
10
|
"test:ts": "tsc --noEmit --skipLibCheck",
|
|
10
11
|
"coverage": "npm test -- --env=jsdom --coverage --coverageDirectory=jest-coverage --passWithNoTests",
|
|
11
12
|
"test:lint": "eslint \"./src/**/*{ts,tsx}\" --ignore-pattern \"*.d.ts\" --fix",
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
"@types/node": "^12.20.21",
|
|
31
32
|
"@types/react": "^17.0.27",
|
|
32
33
|
"@types/react-dom": "^17.0.9",
|
|
34
|
+
"agora-rtc-sdk-ng": "^4.12.2",
|
|
33
35
|
"auto": "^10.32.0",
|
|
34
36
|
"date-fns": "^2.28.0",
|
|
35
37
|
"luxon": "^2.4.0",
|