@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.
@@ -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;
@@ -0,0 +1,6 @@
1
+ declare type StyledMediaPlayerContainerPropsType = {
2
+ width?: number;
3
+ height?: number;
4
+ };
5
+ export declare const StyledMediaPlayerContainer: import("styled-components").StyledComponent<"div", any, StyledMediaPlayerContainerPropsType, never>;
6
+ export {};
@@ -1,3 +1,7 @@
1
- import { FC } from 'react';
2
- declare const Container: FC;
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 {};
@@ -0,0 +1,7 @@
1
+ import React, { HTMLAttributes } from 'react';
2
+ declare type StatusTagPropsType = {
3
+ dimension?: number;
4
+ tagColor?: string;
5
+ } & HTMLAttributes<HTMLDivElement>;
6
+ declare const StatusTag: React.FC<StatusTagPropsType>;
7
+ export default StatusTag;
@@ -0,0 +1,6 @@
1
+ declare type StatusTagContainerPropsType = {
2
+ dimension?: number;
3
+ tagColor?: string;
4
+ };
5
+ export declare const StatusTagContainer: import("styled-components").StyledComponent<"div", any, StatusTagContainerPropsType, never>;
6
+ 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 const Container: FC;
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.2.0",
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",