@trtc/calls-uikit-react 4.5.1 → 4.5.3-beta.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.
Files changed (81) hide show
  1. package/package.json +3 -4
  2. package/src/Components/components/base/Message/Message.tsx +2 -1
  3. package/src/Components/components/base/Message/MessagePlugin.tsx +17 -9
  4. package/src/Components/components/base/Popup/Popup.tsx +2 -1
  5. package/src/Components/components/common/FloatingWindow/FloatingWindow.tsx +2 -1
  6. package/src/Components/components/common/UIKitModal/UIKitModal.tsx +3 -1
  7. package/src/TUICallService/CallService/index.ts +16 -1
  8. package/src/TUICallService/TUIStore/callStore.ts +1 -0
  9. package/src/TUICallService/const/index.ts +1 -0
  10. package/src/TUICallService/interface/ICallStore.ts +1 -0
  11. package/src/index.ts +1 -1
  12. package/tuicall-uikit-react.es.js +1734 -1712
  13. package/tuicall-uikit-react.umd.js +4 -4
  14. package/types/Components/TUICallKit/TUICallKit.d.ts +2 -2
  15. package/types/Components/components/GroupCall/GroupCall.d.ts +2 -1
  16. package/types/Components/components/GroupCall/MediaContainer/AudioStream/AudioStream.d.ts +2 -1
  17. package/types/Components/components/GroupCall/MediaContainer/MediaContainer.d.ts +2 -1
  18. package/types/Components/components/GroupCall/MediaContainer/StreamLoading/StreamLoading.d.ts +1 -1
  19. package/types/Components/components/GroupCall/Waiting/Waiting.d.ts +2 -1
  20. package/types/Components/components/SingleCall/MediaContainer/AudioStream/AudioStream.d.ts +2 -1
  21. package/types/Components/components/SingleCall/MediaContainer/MediaContainer.d.ts +2 -1
  22. package/types/Components/components/SingleCall/SingleCall.d.ts +1 -1
  23. package/types/Components/components/SingleCall/Waiting/Waiting.d.ts +2 -1
  24. package/types/Components/components/base/Avatar/Avatar.d.ts +2 -2
  25. package/types/Components/components/base/Drag/Drag.d.ts +2 -2
  26. package/types/Components/components/base/Grid/Col/Col.d.ts +2 -2
  27. package/types/Components/components/base/Grid/Row/Row.d.ts +1 -1
  28. package/types/Components/components/base/GridLayout/GridLayout.d.ts +2 -1
  29. package/types/Components/components/base/GridLayout/GridPlusItem/GridPlusItem.d.ts +2 -2
  30. package/types/Components/components/base/Icon/Icon.d.ts +2 -2
  31. package/types/Components/components/base/Loading/Circle/Cilrcle.d.ts +2 -1
  32. package/types/Components/components/base/Loading/Dot/Dot.d.ts +2 -1
  33. package/types/Components/components/base/Loading/Loading.d.ts +2 -2
  34. package/types/Components/components/base/Message/Message.d.ts +2 -2
  35. package/types/Components/components/base/Message/MessageIcon/Error.d.ts +1 -1
  36. package/types/Components/components/base/Message/MessageIcon/Info.d.ts +1 -1
  37. package/types/Components/components/base/Message/MessageIcon/Success.d.ts +1 -1
  38. package/types/Components/components/base/Message/MessageIcon/Warning.d.ts +1 -1
  39. package/types/Components/components/base/Overlayer/Overlayer.d.ts +2 -2
  40. package/types/Components/components/base/Text/Text.d.ts +2 -1
  41. package/types/Components/components/base/Time/Time.d.ts +2 -1
  42. package/types/Components/components/base/ToggleWindow/ToggleWindow.d.ts +1 -1
  43. package/types/Components/components/base/ToggleWindow/ToggleWindowItem/ToggleWindowItem.d.ts +2 -1
  44. package/types/Components/components/common/ButtonPanel/ButtonPanel.d.ts +2 -1
  45. package/types/Components/components/common/ButtonPanel/ButtonPanelH5/ButtonPanelH5.d.ts +2 -2
  46. package/types/Components/components/common/ButtonPanel/ButtonPanelPC/ButtonPanelPC.d.ts +2 -1
  47. package/types/Components/components/common/ButtonPanel/button/Accept/Accept.d.ts +2 -1
  48. package/types/Components/components/common/ButtonPanel/button/BackgroundBlur/BackgroundBlur.d.ts +2 -1
  49. package/types/Components/components/common/ButtonPanel/button/Camera.d.ts +2 -1
  50. package/types/Components/components/common/ButtonPanel/button/FullScreen/FullScreen.d.ts +2 -1
  51. package/types/Components/components/common/ButtonPanel/button/Hangup/Hangup.d.ts +2 -1
  52. package/types/Components/components/common/ButtonPanel/button/Microphone.d.ts +2 -1
  53. package/types/Components/components/common/ButtonPanel/button/Minimize/Minimize.d.ts +2 -1
  54. package/types/Components/components/common/ButtonPanel/button/Reject/Reject.d.ts +2 -1
  55. package/types/Components/components/common/ButtonPanel/button/Speaker.d.ts +2 -1
  56. package/types/Components/components/common/ButtonPanel/button/SwitchAudioCall.d.ts +2 -1
  57. package/types/Components/components/common/ButtonPanel/button/SwitchCamera.d.ts +2 -1
  58. package/types/Components/components/common/CallMessage/CallMessage.d.ts +1 -1
  59. package/types/Components/components/common/CallMessage/CallMessageC2C/CallMessageC2C.d.ts +2 -1
  60. package/types/Components/components/common/CallMessage/CallMessageGroup/CallMessageGroup.d.ts +2 -1
  61. package/types/Components/components/common/DeviceSelector/DeviceSelector.d.ts +2 -1
  62. package/types/Components/components/common/FloatingWindow/FloatingWindow.d.ts +2 -2
  63. package/types/Components/components/common/FloatingWindow/FloatingWindowGroupCall/FloatingWindowGroupCall.d.ts +2 -2
  64. package/types/Components/components/common/FloatingWindow/FloatingWindowSingleCall/FloatingWindowSingleCall.d.ts +2 -2
  65. package/types/Components/components/common/MicrophoneVolumn/MicrophoneVolumn.d.ts +2 -2
  66. package/types/Components/components/common/OverlayStream/OverlayStream.d.ts +2 -2
  67. package/types/Components/components/common/Player/Player.d.ts +2 -2
  68. package/types/Components/components/common/Pusher/Pusher.d.ts +1 -1
  69. package/types/Components/components/common/StreamInfo/StreamInfo.d.ts +2 -1
  70. package/types/Components/components/common/StreamInfo/StreamInfoH5/StreamInfoH5.d.ts +2 -1
  71. package/types/Components/components/common/StreamInfo/StreamInfoPC/StreamInfoPC.d.ts +2 -1
  72. package/types/Components/components/common/Tip/Tip.d.ts +2 -2
  73. package/types/Components/components/common/TopBar/TopBar.d.ts +2 -1
  74. package/types/Components/components/common/TopBar/h5/TopBarH5.d.ts +2 -1
  75. package/types/Components/components/common/TopBar/pc/TopBarPC.d.ts +2 -1
  76. package/types/TUICallService/CallService/index.d.ts +1 -0
  77. package/types/TUICallService/interface/ICallStore.d.ts +1 -0
  78. package/src/TUICallService/utils/validate/validateConfig.ts +0 -188
  79. package/src/TUICallService/utils/validate/validateParams.ts +0 -88
  80. package/types/TUICallService/utils/validate/validateConfig.d.ts +0 -173
  81. package/types/TUICallService/utils/validate/validateParams.d.ts +0 -1
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'react';
1
+ import React, { CSSProperties } from 'react';
2
2
  import { VideoDisplayMode, VideoResolution } from '../../TUICallService';
3
3
  interface ITUICallKitProps {
4
4
  style?: CSSProperties;
@@ -11,5 +11,5 @@ interface ITUICallKitProps {
11
11
  afterCalling?: any;
12
12
  onMinimized?: any;
13
13
  }
14
- export default function TUICallKit(props: ITUICallKitProps): import("react/jsx-runtime").JSX.Element;
14
+ export default function TUICallKit(props: ITUICallKitProps): React.JSX.Element;
15
15
  export {};
@@ -1 +1,2 @@
1
- export default function GroupCall(): import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ export default function GroupCall(): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  interface IRenderAudioStreamProps {
2
3
  avatar?: string;
3
4
  username?: string;
@@ -6,5 +7,5 @@ interface IRenderAudioStreamProps {
6
7
  background?: string;
7
8
  userId?: string;
8
9
  }
9
- export default function AudioStream(props: IRenderAudioStreamProps): import("react/jsx-runtime").JSX.Element;
10
+ export default function AudioStream(props: IRenderAudioStreamProps): React.JSX.Element;
10
11
  export {};
@@ -1 +1,2 @@
1
- export default function MediaContainer(): import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ export default function MediaContainer(): React.JSX.Element;
@@ -3,5 +3,5 @@ interface IRenderStreamLoadingProps {
3
3
  username?: string;
4
4
  userId?: string;
5
5
  }
6
- export default function StreamLoading(props: IRenderStreamLoadingProps): import("react/jsx-runtime").JSX.Element;
6
+ export default function StreamLoading(props: IRenderStreamLoadingProps): import("react").JSX.Element;
7
7
  export {};
@@ -1,8 +1,9 @@
1
+ import React from 'react';
1
2
  import { CallRole } from '../../../../TUICallService';
2
3
  import { IUserInfo } from '../../../../TUICallService/interface';
3
4
  interface IWaitingProps {
4
5
  remoteList: IUserInfo[];
5
6
  callRole: CallRole;
6
7
  }
7
- export default function Waiting(props: IWaitingProps): import("react/jsx-runtime").JSX.Element;
8
+ export default function Waiting(props: IWaitingProps): React.JSX.Element;
8
9
  export {};
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  interface IRenderAudioStreamProps {
2
3
  avatar?: string;
3
4
  username?: string;
@@ -7,5 +8,5 @@ interface IRenderAudioStreamProps {
7
8
  userId?: string;
8
9
  classnames?: string;
9
10
  }
10
- export default function AudioStream(props: IRenderAudioStreamProps): import("react/jsx-runtime").JSX.Element;
11
+ export default function AudioStream(props: IRenderAudioStreamProps): React.JSX.Element;
11
12
  export {};
@@ -1 +1,2 @@
1
- export default function MediaContainer(): import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ export default function MediaContainer(): React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const SingleCall: React.MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
2
+ declare const SingleCall: React.MemoExoticComponent<() => React.JSX.Element>;
3
3
  export default SingleCall;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { CallRole } from '../../../../TUICallService';
2
3
  interface IWaitingProps {
3
4
  avatar?: string;
@@ -5,5 +6,5 @@ interface IWaitingProps {
5
6
  callRole?: CallRole;
6
7
  userId?: string;
7
8
  }
8
- export default function Waiting(props: IWaitingProps): import("react/jsx-runtime").JSX.Element;
9
+ export default function Waiting(props: IWaitingProps): React.JSX.Element;
9
10
  export {};
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import './Avatar.scss';
3
3
  interface IAvatarProps {
4
4
  shape?: 'round' | 'circle';
@@ -8,5 +8,5 @@ interface IAvatarProps {
8
8
  className?: string;
9
9
  style?: object;
10
10
  }
11
- export default function Avatar(props: IAvatarProps): import("react/jsx-runtime").JSX.Element;
11
+ export default function Avatar(props: IAvatarProps): React.JSX.Element;
12
12
  export {};
@@ -1,4 +1,4 @@
1
- import { CSSProperties, MutableRefObject } from 'react';
1
+ import React, { CSSProperties, MutableRefObject } from 'react';
2
2
  type TPosition = Pick<CSSProperties, 'left' | 'top' | 'right' | 'bottom'>;
3
3
  interface IDraggableProps {
4
4
  nodeRef?: MutableRefObject<HTMLElement>;
@@ -10,5 +10,5 @@ interface IDraggableProps {
10
10
  onPositionChange?: (params: TPosition) => void;
11
11
  children?: any;
12
12
  }
13
- export default function Draggable(props: IDraggableProps): import("react/jsx-runtime").JSX.Element;
13
+ export default function Draggable(props: IDraggableProps): React.JSX.Element;
14
14
  export {};
@@ -1,4 +1,4 @@
1
- import { CSSProperties, ReactNode } from 'react';
1
+ import React, { CSSProperties, ReactNode } from 'react';
2
2
  import './Col.scss';
3
3
  interface IColProps {
4
4
  children?: ReactNode;
@@ -7,7 +7,7 @@ interface IColProps {
7
7
  justify?: 'start' | 'center' | 'end';
8
8
  style?: CSSProperties;
9
9
  }
10
- declare function Col(props: IColProps): import("react/jsx-runtime").JSX.Element;
10
+ declare function Col(props: IColProps): React.JSX.Element;
11
11
  declare namespace Col {
12
12
  var displayName: string;
13
13
  }
@@ -10,5 +10,5 @@ interface IRowProps {
10
10
  export declare const RowContext: React.Context<{
11
11
  gutter?: number | number[];
12
12
  }>;
13
- export default function Row(props: IRowProps): import("react/jsx-runtime").JSX.Element;
13
+ export default function Row(props: IRowProps): React.JSX.Element;
14
14
  export {};
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  interface IGridLayoutPRops {
2
3
  rowHeight?: number;
3
4
  children?: any;
@@ -7,5 +8,5 @@ interface IGridLayoutPRops {
7
8
  isMobile?: boolean;
8
9
  onHandleFocusChange?: (params?: any) => any;
9
10
  }
10
- export default function GridLayout(props: IGridLayoutPRops): import("react/jsx-runtime").JSX.Element;
11
+ export default function GridLayout(props: IGridLayoutPRops): React.JSX.Element;
11
12
  export {};
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'react';
1
+ import React, { CSSProperties } from 'react';
2
2
  import './GridPlusItem.scss';
3
3
  interface IGridPlusItemProps {
4
4
  index: number;
@@ -7,7 +7,7 @@ interface IGridPlusItemProps {
7
7
  updateFocusItem?: (index?: number) => any;
8
8
  children?: any;
9
9
  }
10
- declare function GridPlusItem(props: IGridPlusItemProps): import("react/jsx-runtime").JSX.Element;
10
+ declare function GridPlusItem(props: IGridPlusItemProps): React.JSX.Element;
11
11
  declare namespace GridPlusItem {
12
12
  var displayname: string;
13
13
  }
@@ -1,9 +1,9 @@
1
- import { CSSProperties } from 'react';
1
+ import React, { CSSProperties } from 'react';
2
2
  interface IconProps {
3
3
  url?: string;
4
4
  style?: CSSProperties;
5
5
  className?: string;
6
6
  onClick?: (e: any) => any;
7
7
  }
8
- export default function Icon(props: IconProps): import("react/jsx-runtime").JSX.Element;
8
+ export default function Icon(props: IconProps): React.JSX.Element;
9
9
  export {};
@@ -1,6 +1,7 @@
1
+ import React from 'react';
1
2
  import './Circle.scss';
2
3
  interface ICircleProps {
3
4
  size?: number | string;
4
5
  }
5
- export default function Circle(props: ICircleProps): import("react/jsx-runtime").JSX.Element;
6
+ export default function Circle(props: ICircleProps): React.JSX.Element;
6
7
  export {};
@@ -1,6 +1,7 @@
1
+ import React from 'react';
1
2
  import './Dot.scss';
2
3
  interface IDotProps {
3
4
  size?: number | string;
4
5
  }
5
- export default function Dot(props: IDotProps): import("react/jsx-runtime").JSX.Element;
6
+ export default function Dot(props: IDotProps): React.JSX.Element;
6
7
  export {};
@@ -1,4 +1,4 @@
1
- import { CSSProperties, ReactNode } from 'react';
1
+ import React, { CSSProperties, ReactNode } from 'react';
2
2
  import './Loading.scss';
3
3
  type TObjectFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
4
4
  interface ILoadingProps {
@@ -10,5 +10,5 @@ interface ILoadingProps {
10
10
  children?: ReactNode | ReactNode[];
11
11
  fit?: TObjectFit;
12
12
  }
13
- export default function Loading(props: ILoadingProps): import("react/jsx-runtime").JSX.Element;
13
+ export default function Loading(props: ILoadingProps): React.JSX.Element;
14
14
  export {};
@@ -1,4 +1,4 @@
1
- import { CSSProperties, ReactNode } from 'react';
1
+ import React, { CSSProperties, ReactNode } from 'react';
2
2
  import './Message.scss';
3
3
  export interface IMessageProps {
4
4
  icon?: ReactNode;
@@ -13,4 +13,4 @@ export interface IMessageProps {
13
13
  plaintext?: boolean;
14
14
  onClose?: () => any;
15
15
  }
16
- export declare function Message(props: IMessageProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function Message(props: IMessageProps): React.JSX.Element;
@@ -1 +1 @@
1
- export default function MessageInfoSvg(): import("react/jsx-runtime").JSX.Element;
1
+ export default function MessageInfoSvg(): import("react").JSX.Element;
@@ -1 +1 @@
1
- export default function MessageInfoSvg(): import("react/jsx-runtime").JSX.Element;
1
+ export default function MessageInfoSvg(): import("react").JSX.Element;
@@ -1 +1 @@
1
- export default function MessageInfoSvg(): import("react/jsx-runtime").JSX.Element;
1
+ export default function MessageInfoSvg(): import("react").JSX.Element;
@@ -1 +1 @@
1
- export default function MessageInfoSvg(): import("react/jsx-runtime").JSX.Element;
1
+ export default function MessageInfoSvg(): import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'react';
1
+ import React, { CSSProperties } from 'react';
2
2
  import { TObjectFit } from '../../../const/common';
3
3
  import './Overlayer.scss';
4
4
  interface IOverlayerProps {
@@ -10,5 +10,5 @@ interface IOverlayerProps {
10
10
  defaultSrc?: string;
11
11
  onError?: (event?: object) => void;
12
12
  }
13
- export default function Overlayer(props: IOverlayerProps): import("react/jsx-runtime").JSX.Element;
13
+ export default function Overlayer(props: IOverlayerProps): React.JSX.Element;
14
14
  export {};
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './Text.scss';
2
3
  interface IText {
3
4
  maxWidth?: string;
@@ -6,5 +7,5 @@ interface IText {
6
7
  className?: string;
7
8
  children?: any;
8
9
  }
9
- export default function Text(props: IText): import("react/jsx-runtime").JSX.Element;
10
+ export default function Text(props: IText): React.JSX.Element;
10
11
  export {};
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import './Time.scss';
2
3
  interface ITimeProps {
3
4
  callDuration?: string;
4
5
  style?: object;
5
6
  }
6
- export default function Time(props: ITimeProps): import("react/jsx-runtime").JSX.Element;
7
+ export default function Time(props: ITimeProps): React.JSX.Element;
7
8
  export {};
@@ -11,5 +11,5 @@ interface IToggleWindowProps {
11
11
  children?: any;
12
12
  onToggle?: (r?: any) => any;
13
13
  }
14
- export declare function ToggleWindow(props: IToggleWindowProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function ToggleWindow(props: IToggleWindowProps): React.JSX.Element;
15
15
  export {};
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './ToggleWindowItem.scss';
2
3
  interface IToggleWindowItem {
3
4
  value?: string;
@@ -7,7 +8,7 @@ interface IToggleWindowItem {
7
8
  updateBigWindow?: () => any;
8
9
  showSmallWindow?: boolean;
9
10
  }
10
- declare function ToggleWindowItem(props: IToggleWindowItem): import("react/jsx-runtime").JSX.Element;
11
+ declare function ToggleWindowItem(props: IToggleWindowItem): React.JSX.Element;
11
12
  declare namespace ToggleWindowItem {
12
13
  var displayName: string;
13
14
  }
@@ -1 +1,2 @@
1
- export default function ButtonPanel(): import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ export default function ButtonPanel(): React.JSX.Element;
@@ -1,8 +1,8 @@
1
- import { CSSProperties } from 'react';
1
+ import React, { CSSProperties } from 'react';
2
2
  import { TButtons } from '../../../../const/common';
3
3
  interface IButtonPanelH5Props {
4
4
  buttons?: TButtons;
5
5
  style?: CSSProperties;
6
6
  }
7
- export default function ButtonPanelH5(props: IButtonPanelH5Props): import("react/jsx-runtime").JSX.Element;
7
+ export default function ButtonPanelH5(props: IButtonPanelH5Props): React.JSX.Element;
8
8
  export {};
@@ -1,6 +1,7 @@
1
+ import React from 'react';
1
2
  import { TButtons } from '../../../../const/common';
2
3
  interface IButtonPanelPCProps {
3
4
  buttons?: TButtons;
4
5
  }
5
- export default function ButtonPanelPC(props: IButtonPanelPCProps): import("react/jsx-runtime").JSX.Element;
6
+ export default function ButtonPanelPC(props: IButtonPanelPCProps): React.JSX.Element;
6
7
  export {};
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  interface IAcceptProps {
2
3
  isMobile?: boolean;
3
4
  }
4
- export default function Accept(props: IAcceptProps): import("react/jsx-runtime").JSX.Element;
5
+ export default function Accept(props: IAcceptProps): React.JSX.Element;
5
6
  export {};
@@ -1 +1,2 @@
1
- export default function BackgroundBlur(): import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ export default function BackgroundBlur(): React.JSX.Element;
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  interface ICameraProps {
2
3
  isMobile?: boolean;
3
4
  }
4
- export default function Camera(props: ICameraProps): import("react/jsx-runtime").JSX.Element;
5
+ export default function Camera(props: ICameraProps): React.JSX.Element;
5
6
  export {};
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  interface IFullScreenProps {
2
3
  domID?: string;
3
4
  }
4
- export default function FullScreen(props: IFullScreenProps): import("react/jsx-runtime").JSX.Element;
5
+ export default function FullScreen(props: IFullScreenProps): React.JSX.Element;
5
6
  export {};
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  interface IHangupProps {
2
3
  isMobile?: boolean;
3
4
  }
4
- export default function Hangup(props: IHangupProps): import("react/jsx-runtime").JSX.Element;
5
+ export default function Hangup(props: IHangupProps): React.JSX.Element;
5
6
  export {};
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  interface IMicrophoneProps {
2
3
  isMobile?: boolean;
3
4
  }
4
- export default function Microphone(props: IMicrophoneProps): import("react/jsx-runtime").JSX.Element;
5
+ export default function Microphone(props: IMicrophoneProps): React.JSX.Element;
5
6
  export {};
@@ -1 +1,2 @@
1
- export default function Minimize(): import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ export default function Minimize(): React.JSX.Element;
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  interface IRejectProps {
2
3
  isMobile?: boolean;
3
4
  }
4
- export default function Reject(props: IRejectProps): import("react/jsx-runtime").JSX.Element;
5
+ export default function Reject(props: IRejectProps): React.JSX.Element;
5
6
  export {};
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  interface ISpeakerProps {
2
3
  isMobile?: boolean;
3
4
  }
4
- export default function Speaker(props: ISpeakerProps): import("react/jsx-runtime").JSX.Element;
5
+ export default function Speaker(props: ISpeakerProps): React.JSX.Element;
5
6
  export {};
@@ -1 +1,2 @@
1
- export default function SwitchAudioCall(props: any): import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ export default function SwitchAudioCall(props: any): React.JSX.Element;
@@ -1 +1,2 @@
1
- export default function SwitchCamera(props: any): import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ export default function SwitchCamera(props: any): React.JSX.Element;
@@ -7,4 +7,4 @@ export interface ICallMessageProps {
7
7
  inviteeList: string[];
8
8
  }) => any;
9
9
  }
10
- export default function CallMessage(props: ICallMessageProps): import("react/jsx-runtime").JSX.Element;
10
+ export default function CallMessage(props: ICallMessageProps): import("react").JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import { ICallMessageProps } from '../CallMessage';
2
- export default function CallMessageC2C(props: ICallMessageProps): import("react/jsx-runtime").JSX.Element;
3
+ export default function CallMessageC2C(props: ICallMessageProps): React.JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import { ICallMessageProps } from '../CallMessage';
2
- export default function CallMessageGroup(props: ICallMessageProps): import("react/jsx-runtime").JSX.Element;
3
+ export default function CallMessageGroup(props: ICallMessageProps): React.JSX.Element;
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import { DeviceType } from '../../../../TUICallService/const';
2
3
  interface IDeviceSelectorProps {
3
4
  deviceType?: DeviceType;
4
5
  isShowControlBtn?: boolean;
5
6
  }
6
- export default function DeviceSelector(props: IDeviceSelectorProps): import("react/jsx-runtime").JSX.Element;
7
+ export default function DeviceSelector(props: IDeviceSelectorProps): React.JSX.Element;
7
8
  export {};
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  interface IFloatingWindowProps {
3
3
  showVideo?: boolean;
4
4
  hasVideo?: boolean;
@@ -6,5 +6,5 @@ interface IFloatingWindowProps {
6
6
  isAudioAvailable?: boolean;
7
7
  show?: boolean;
8
8
  }
9
- export default function FloatingWindow(props: IFloatingWindowProps): import("react/jsx-runtime").JSX.Element;
9
+ export default function FloatingWindow(props: IFloatingWindowProps): React.JSX.Element;
10
10
  export {};
@@ -1,9 +1,9 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  interface IFloatingWindowH5Props {
3
3
  showVideo?: boolean;
4
4
  hasVideo?: boolean;
5
5
  clickable?: boolean;
6
6
  children?: ReactNode;
7
7
  }
8
- export default function FloatingWindowGroupCall(props: IFloatingWindowH5Props): import("react/jsx-runtime").JSX.Element;
8
+ export default function FloatingWindowGroupCall(props: IFloatingWindowH5Props): React.JSX.Element;
9
9
  export {};
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  interface IFloatingWindowProps {
3
3
  showVideo?: boolean;
4
4
  enable?: boolean;
@@ -6,5 +6,5 @@ interface IFloatingWindowProps {
6
6
  clickable?: boolean;
7
7
  children?: ReactNode;
8
8
  }
9
- export default function FloatingWindowSingleCall(props: IFloatingWindowProps): import("react/jsx-runtime").JSX.Element;
9
+ export default function FloatingWindowSingleCall(props: IFloatingWindowProps): React.JSX.Element;
10
10
  export {};
@@ -1,8 +1,8 @@
1
- import { CSSProperties } from 'react';
1
+ import React, { CSSProperties } from 'react';
2
2
  interface IMicrophoneVolumnProps {
3
3
  close?: boolean;
4
4
  volume?: number;
5
5
  style?: CSSProperties;
6
6
  }
7
- export default function MicrophoneVolumn(props: IMicrophoneVolumnProps): import("react/jsx-runtime").JSX.Element;
7
+ export default function MicrophoneVolumn(props: IMicrophoneVolumnProps): React.JSX.Element;
8
8
  export {};
@@ -1,4 +1,4 @@
1
- import { CSSProperties, ReactNode } from 'react';
1
+ import React, { CSSProperties, ReactNode } from 'react';
2
2
  import { TObjectFit } from '../../../const/common';
3
3
  interface IOverlayStreamProps {
4
4
  avatar?: string;
@@ -24,5 +24,5 @@ interface IOverlayStreamProps {
24
24
  fit?: TObjectFit;
25
25
  onError?: (event?: object) => void;
26
26
  }
27
- export default function OverlayStream(props: IOverlayStreamProps): import("react/jsx-runtime").JSX.Element;
27
+ export default function OverlayStream(props: IOverlayStreamProps): React.JSX.Element;
28
28
  export {};
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'react';
1
+ import React, { CSSProperties } from 'react';
2
2
  import { IUserInfo } from '../../../../TUICallService/interface';
3
3
  interface IPlayer {
4
4
  streamInfo?: IUserInfo;
@@ -11,5 +11,5 @@ interface IPlayer {
11
11
  isSpkear?: boolean;
12
12
  isLargeView?: boolean;
13
13
  }
14
- export default function Player(props: IPlayer): import("react/jsx-runtime").JSX.Element;
14
+ export default function Player(props: IPlayer): React.JSX.Element;
15
15
  export {};
@@ -9,5 +9,5 @@ interface IPusher {
9
9
  className?: string;
10
10
  isLargeView?: boolean;
11
11
  }
12
- declare const Pusher: React.MemoExoticComponent<(props: IPusher) => import("react/jsx-runtime").JSX.Element>;
12
+ declare const Pusher: React.MemoExoticComponent<(props: IPusher) => React.JSX.Element>;
13
13
  export default Pusher;
@@ -1 +1,2 @@
1
- export default function StreamInfo(props: any): import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ export default function StreamInfo(props: any): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  interface IStreamInfoH5Props {
2
3
  isSpkear?: boolean;
3
4
  isMute?: boolean;
@@ -6,5 +7,5 @@ interface IStreamInfoH5Props {
6
7
  showSwitchCamera?: boolean;
7
8
  showNetWorkStatus?: boolean;
8
9
  }
9
- export default function StreamInfoH5(props: IStreamInfoH5Props): import("react/jsx-runtime").JSX.Element;
10
+ export default function StreamInfoH5(props: IStreamInfoH5Props): React.JSX.Element;
10
11
  export {};
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  interface IStreamInfoPCProps {
2
3
  isMute?: boolean;
3
4
  displayName?: string;
@@ -5,5 +6,5 @@ interface IStreamInfoPCProps {
5
6
  isMe?: boolean;
6
7
  showNetWorkStatus?: boolean;
7
8
  }
8
- export default function StreamInfoPC(props: IStreamInfoPCProps): import("react/jsx-runtime").JSX.Element;
9
+ export default function StreamInfoPC(props: IStreamInfoPCProps): React.JSX.Element;
9
10
  export {};
@@ -1,7 +1,7 @@
1
- import { CSSProperties } from 'react';
1
+ import React, { CSSProperties } from 'react';
2
2
  interface ITipProps {
3
3
  className?: string;
4
4
  style?: CSSProperties;
5
5
  }
6
- export default function Tip(props: ITipProps): import("react/jsx-runtime").JSX.Element;
6
+ export default function Tip(props: ITipProps): React.JSX.Element;
7
7
  export {};
@@ -1 +1,2 @@
1
- export default function TopBar(): import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ export default function TopBar(): React.JSX.Element;
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  interface ITopBarH5Props {
2
3
  callDuration?: string;
3
4
  }
4
- export default function TopBarH5(props: ITopBarH5Props): import("react/jsx-runtime").JSX.Element;
5
+ export default function TopBarH5(props: ITopBarH5Props): React.JSX.Element;
5
6
  export {};
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  interface ITopBarPCProps {
2
3
  callDuration?: string;
3
4
  }
4
- export default function TopBarPC(props: ITopBarPCProps): import("react/jsx-runtime").JSX.Element;
5
+ export default function TopBarPC(props: ITopBarPCProps): React.JSX.Element;
5
6
  export {};
@@ -24,6 +24,7 @@ export default class TUICallService {
24
24
  private _wasmReadyResolve;
25
25
  private _isInitialized;
26
26
  private _backgroundHandler;
27
+ private _handleAutoPlayFailed;
27
28
  constructor();
28
29
  static getInstance(): TUICallService;
29
30
  private _loadWasm;