call-live-sdk 1.0.0
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/api/index.d.ts +438 -0
- package/dist/api/request.d.ts +39 -0
- package/dist/assets/style.css +1 -0
- package/dist/call-live-sdk.es.js +263460 -0
- package/dist/call-live-sdk.umd.js +1 -0
- package/dist/chunks/Empty-BDMct_Gn.js +4 -0
- package/dist/chunks/queen-MdxXL6oM.js +4172 -0
- package/dist/chunks/queen-full-CQOoyRsi.js +4288 -0
- package/dist/chunks/queen-lite-B9oBZ9sm.js +4226 -0
- package/dist/chunks/queen-pro-RFAnqVlR.js +4139 -0
- package/dist/chunks/queen-simd-full-ra8nUvBN.js +4288 -0
- package/dist/chunks/queen-simd-lite-CXQWc1UV.js +4224 -0
- package/dist/chunks/queen-simd-pro-DVcT-lDD.js +4137 -0
- package/dist/chunks/queen-simd-uc5TO6ZA.js +4170 -0
- package/dist/com_feiyao_official.auth +0 -0
- package/dist/components/AudienceList.d.ts +5 -0
- package/dist/components/BrowserNotSupported.d.ts +12 -0
- package/dist/components/Call/index.d.ts +3 -0
- package/dist/components/CallGridLayout.d.ts +29 -0
- package/dist/components/CallSingleColumnLayout.d.ts +21 -0
- package/dist/components/CallUserList.d.ts +13 -0
- package/dist/components/CallUserVideo.d.ts +33 -0
- package/dist/components/CanvasCamera.d.ts +5 -0
- package/dist/components/CanvasUploadAudio.d.ts +2 -0
- package/dist/components/CanvasUploadVideo.d.ts +3 -0
- package/dist/components/CanvasVideoSlot.d.ts +14 -0
- package/dist/components/ConfigsInfo.d.ts +2 -0
- package/dist/components/ControlBottom.d.ts +2 -0
- package/dist/components/CountDown.d.ts +4 -0
- package/dist/components/Counter/index.d.ts +6 -0
- package/dist/components/DocumentControler.d.ts +3 -0
- package/dist/components/DrawingTools/ColorPicker.d.ts +9 -0
- package/dist/components/DrawingTools/DrawingToolbar.d.ts +27 -0
- package/dist/components/DrawingTools/LayoutSwitcher.d.ts +9 -0
- package/dist/components/DrawingTools/PreviewModal.d.ts +7 -0
- package/dist/components/DrawingTools/ShapeTypePicker.d.ts +9 -0
- package/dist/components/DrawingTools/SizePicker.d.ts +9 -0
- package/dist/components/DrawingTools/TextSizePicker.d.ts +9 -0
- package/dist/components/DrawingTools/ToolOption.d.ts +11 -0
- package/dist/components/DrawingTools/index.d.ts +8 -0
- package/dist/components/ElementList.d.ts +11 -0
- package/dist/components/Emoji.d.ts +2 -0
- package/dist/components/EnvExample.d.ts +7 -0
- package/dist/components/ErrorPage/ErrorPage.d.ts +8 -0
- package/dist/components/GlobalErrorBoundary.d.ts +60 -0
- package/dist/components/Guest/Guest.d.ts +3 -0
- package/dist/components/Guest/index.d.ts +2 -0
- package/dist/components/Head.d.ts +12 -0
- package/dist/components/LeaveRoom.d.ts +18 -0
- package/dist/components/LeftSidebar.d.ts +14 -0
- package/dist/components/LiveDetection.d.ts +3 -0
- package/dist/components/LivePlayer/LivePlayer.d.ts +2 -0
- package/dist/components/LivePlayer/index.d.ts +2 -0
- package/dist/components/LivePushStats.d.ts +2 -0
- package/dist/components/LiveWaitingRoom/LiveWaitingRoom.d.ts +10 -0
- package/dist/components/LiveWaitingRoom/index.d.ts +2 -0
- package/dist/components/MediaSettings/AudioVisualizer.d.ts +16 -0
- package/dist/components/MediaSettings/MediaSettings.d.ts +3 -0
- package/dist/components/MediaSettings/index.d.ts +2 -0
- package/dist/components/MetaItem.d.ts +3 -0
- package/dist/components/PaginatedList/index.d.ts +2 -0
- package/dist/components/RightSidebar/RightSidebar.d.ts +4 -0
- package/dist/components/RightSidebar/components/CallComponent/CallComponent.d.ts +7 -0
- package/dist/components/RightSidebar/components/CallComponent/features/invite/components/InviteGuestModal.d.ts +22 -0
- package/dist/components/RightSidebar/components/CallComponent/features/meeting/components/CallBottomActions.d.ts +15 -0
- package/dist/components/RightSidebar/components/CallComponent/features/meeting/components/CallControls.d.ts +15 -0
- package/dist/components/RightSidebar/components/CallComponent/features/meeting/components/MeetingUserList.d.ts +14 -0
- package/dist/components/RightSidebar/components/CallComponent/features/meeting/hooks/useCallConfig.d.ts +18 -0
- package/dist/components/RightSidebar/components/CallComponent/features/meeting/hooks/useOnlineUsers.d.ts +9 -0
- package/dist/components/RightSidebar/components/CallComponent/features/meeting/hooks/useUserActions.d.ts +6 -0
- package/dist/components/RightSidebar/components/CallComponent/features/waiting/components/WaitingUserList.d.ts +11 -0
- package/dist/components/RightSidebar/components/CallComponent/index.d.ts +3 -0
- package/dist/components/RightSidebar/components/CallComponent/shared/ui/CallUser.d.ts +14 -0
- package/dist/components/RightSidebar/components/CallComponent/shared/ui/ErrorBoundary.d.ts +22 -0
- package/dist/components/RightSidebar/components/CallComponent/shared/ui/LoadingSpinner.d.ts +19 -0
- package/dist/components/RightSidebar/components/CallComponent/types/index.d.ts +55 -0
- package/dist/components/RightSidebar/components/ChatComponent.d.ts +2 -0
- package/dist/components/RightSidebar/components/Prohibition.d.ts +2 -0
- package/dist/components/RightSidebar/components/TeamComponent.d.ts +2 -0
- package/dist/components/RightSidebar/index.d.ts +2 -0
- package/dist/components/RtcJoomRoom/RtcJoomRoom.d.ts +4 -0
- package/dist/components/RtcJoomRoom/components/InviteConfirmModal.d.ts +28 -0
- package/dist/components/RtcJoomRoom/hooks/useInviteConfirm.d.ts +40 -0
- package/dist/components/RtcJoomRoom/index.d.ts +12 -0
- package/dist/components/RtcJoomRoom/types.d.ts +333 -0
- package/dist/components/RtcJoomRoom/useMessageReceiver.d.ts +38 -0
- package/dist/components/RtcJoomRoom/useMessageSender.d.ts +28 -0
- package/dist/components/RtcJoomRoom/useRoomMessageHandler.d.ts +205 -0
- package/dist/components/ScenePanel.d.ts +14 -0
- package/dist/components/SourcePanel.d.ts +12 -0
- package/dist/components/UploadDocumentFrom/EasyCrop.d.ts +7 -0
- package/dist/components/UploadDocumentFrom/constants.d.ts +7 -0
- package/dist/components/UploadDocumentFrom/exports.d.ts +5 -0
- package/dist/components/UploadDocumentFrom/hooks/useLibrary.d.ts +41 -0
- package/dist/components/UploadDocumentFrom/index.d.ts +8 -0
- package/dist/components/UploadImageFrom/EasyCrop.d.ts +7 -0
- package/dist/components/UploadImageFrom/constants.d.ts +7 -0
- package/dist/components/UploadImageFrom/hooks/useImageLibrary.d.ts +39 -0
- package/dist/components/UploadImageFrom/index.d.ts +41 -0
- package/dist/components/UploadImageFrom/types.d.ts +39 -0
- package/dist/components/UploadImageFromV1/EasyCrop.d.ts +7 -0
- package/dist/components/UploadImageFromV1/constants.d.ts +7 -0
- package/dist/components/UploadImageFromV1/index.d.ts +3 -0
- package/dist/components/UploadImageFromV1/types.d.ts +39 -0
- package/dist/components/UserInfo.d.ts +7 -0
- package/dist/components/autoPlayModal/index.d.ts +12 -0
- package/dist/hooks/useCallUserPagination.d.ts +58 -0
- package/dist/hooks/useJoinRoomCanvas.d.ts +20 -0
- package/dist/hooks/useVideoElementDetector.d.ts +37 -0
- package/dist/index.d.ts +6 -0
- package/dist/main.d.ts +1 -0
- package/dist/noProcess.png +0 -0
- package/dist/pages/CallHome/CallHome.d.ts +4 -0
- package/dist/pages/CallHome/index.d.ts +2 -0
- package/dist/pages/Login/Login.d.ts +13 -0
- package/dist/pages/Login/index.d.ts +2 -0
- package/dist/pages/MobileLive/MobileLive.d.ts +13 -0
- package/dist/pages/MobileLive/components/DeviceSelectionModal.d.ts +31 -0
- package/dist/pages/MobileLive/components/DeviceSettingsModal.d.ts +42 -0
- package/dist/pages/MobileLive/components/MeetingListModal.d.ts +16 -0
- package/dist/pages/MobileLive/components/MobileControlBar.d.ts +29 -0
- package/dist/pages/MobileLive/components/MobileHeader.d.ts +34 -0
- package/dist/pages/MobileLive/components/PageIndicator.d.ts +29 -0
- package/dist/pages/MobileLive/components/UserVideoContainer.d.ts +31 -0
- package/dist/pages/MobileLive/components/VideoSwipeContainer.d.ts +33 -0
- package/dist/pages/MobileLive/hooks/useWakeLock.d.ts +52 -0
- package/dist/pages/MobileLive/index.d.ts +2 -0
- package/dist/pages/MobileLive/unocssUtils.d.ts +1 -0
- package/dist/pages/VoiceChatLive/VoiceChat.d.ts +4 -0
- package/dist/pages/VoiceChatLive/index.d.ts +2 -0
- package/dist/sdk/index.d.ts +40 -0
- package/dist/stores/activitytype.d.ts +48 -0
- package/dist/stores/call.d.ts +6 -0
- package/dist/stores/callStore.d.ts +225 -0
- package/dist/stores/commentChatUrl.d.ts +6 -0
- package/dist/stores/commentRtmpStats.d.ts +6 -0
- package/dist/stores/commentSocket.d.ts +26 -0
- package/dist/stores/counterStore.d.ts +9 -0
- package/dist/stores/currentUser.d.ts +6 -0
- package/dist/stores/drawingToolsStore.d.ts +62 -0
- package/dist/stores/guest.d.ts +8 -0
- package/dist/stores/liveInfo.d.ts +21 -0
- package/dist/stores/livepushcode.d.ts +37 -0
- package/dist/stores/sdkStore.d.ts +44 -0
- package/dist/types/sdk.d.ts +42 -0
- package/dist/utils/common.d.ts +10 -0
- package/dist/utils/env.d.ts +35 -0
- package/dist/utils/eventbus.d.ts +2 -0
- package/dist/utils/resource.d.ts +9 -0
- package/dist/utils/utiles.d.ts +19 -0
- package/dist/utils/variable.d.ts +25 -0
- package/package.json +81 -0
|
Binary file
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const AllList: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<unknown>>;
|
|
2
|
+
declare const OnlineList: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<unknown>>;
|
|
3
|
+
declare const BannedList: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<unknown>>;
|
|
4
|
+
declare const BlockList: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<unknown>>;
|
|
5
|
+
export { AllList, BannedList, BlockList, OnlineList };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 浏览器兼容性检测组件
|
|
4
|
+
* 专为Call页面服务的独立组件,内部处理浏览器兼容性检测
|
|
5
|
+
* 当检测到不兼容的浏览器时,显示提示信息和下载链接
|
|
6
|
+
*/
|
|
7
|
+
interface BrowserNotSupportedProps {
|
|
8
|
+
onBrowserSupported?: () => void;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare const BrowserNotSupported: FC<BrowserNotSupportedProps>;
|
|
12
|
+
export default BrowserNotSupported;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CallUser } from '@/stores/callStore';
|
|
3
|
+
interface CallGridLayoutProps {
|
|
4
|
+
currentPage: number;
|
|
5
|
+
totalVideoCount: number;
|
|
6
|
+
calculateOptimalGridCols: (count: number, maxCols: number) => number;
|
|
7
|
+
usersPerPage: number;
|
|
8
|
+
callCurrentUser?: CallUser;
|
|
9
|
+
callConfig: any;
|
|
10
|
+
activeUsers: CallUser[];
|
|
11
|
+
gridCols: number;
|
|
12
|
+
onPageChange?: (page: number) => void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Flex布局组件 - 用于 gridCols > 1 的情况
|
|
16
|
+
* 特点:
|
|
17
|
+
* 1. 根据用户数量自动调整布局:
|
|
18
|
+
* - 1个用户:1×1布局
|
|
19
|
+
* - 2个用户:2×1布局(横向排列)
|
|
20
|
+
* - 3-4个用户:2×2布局
|
|
21
|
+
* - 5-6个用户:3×2布局
|
|
22
|
+
* - 7-9个用户:3×3布局
|
|
23
|
+
* 2. 水平垂直居中
|
|
24
|
+
* 3. 支持翻页功能,每页最多显示9个用户
|
|
25
|
+
* 4. 子元素尺寸固定,只进行等比例缩放
|
|
26
|
+
* 5. 支持上下翻页按钮
|
|
27
|
+
*/
|
|
28
|
+
declare const CallGridLayout: React.FC<CallGridLayoutProps>;
|
|
29
|
+
export default CallGridLayout;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CallUser } from '@/stores/callStore';
|
|
3
|
+
interface CallSingleColumnLayoutProps {
|
|
4
|
+
currentPage: number;
|
|
5
|
+
totalPages: number;
|
|
6
|
+
totalVideoCount: number;
|
|
7
|
+
handlePrevPage: () => void;
|
|
8
|
+
handleNextPage: () => void;
|
|
9
|
+
callCurrentUser?: CallUser;
|
|
10
|
+
callConfig: any;
|
|
11
|
+
activeUsers: CallUser[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* 单列布局组件 - 用于 gridCols <= 1 的情况
|
|
15
|
+
* 特点:
|
|
16
|
+
* 1. 垂直排列视频
|
|
17
|
+
* 2. 少于5个用户垂直居中,5个及以上顶部对齐
|
|
18
|
+
* 3. 支持翻页功能
|
|
19
|
+
*/
|
|
20
|
+
declare const CallSingleColumnLayout: React.FC<CallSingleColumnLayoutProps>;
|
|
21
|
+
export default CallSingleColumnLayout;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './CallUserList.transitions.css';
|
|
3
|
+
interface CallUserListProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
maxUsers?: number;
|
|
6
|
+
gridCols?: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 通话用户列表组件
|
|
10
|
+
* 根据 gridCols 参数决定使用单列布局还是网格布局
|
|
11
|
+
*/
|
|
12
|
+
declare const CallUserList: React.FC<CallUserListProps>;
|
|
13
|
+
export default CallUserList;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CallUser } from '@/stores/callStore';
|
|
3
|
+
/**
|
|
4
|
+
* 连麦用户视频组件的属性接口
|
|
5
|
+
* 定义了组件所需的所有参数和回调函数
|
|
6
|
+
*/
|
|
7
|
+
interface CallUserVideoProps {
|
|
8
|
+
/** 自定义样式 - 用于覆盖默认样式 */
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
/** 视频ID - 用于标识视频元素的唯一标识符 */
|
|
11
|
+
video_id: string;
|
|
12
|
+
/** 用户设备类型 - mobile/desktop,影响视频渲染模式 */
|
|
13
|
+
device?: string;
|
|
14
|
+
/** 静音音频回调 - 当需要静音用户音频时调用 */
|
|
15
|
+
onMuteAudio?: (userId: string) => void;
|
|
16
|
+
/** 静音视频回调 - 当需要静音用户视频时调用 */
|
|
17
|
+
onMuteVideo?: (userId: string) => void;
|
|
18
|
+
/** 挂断回调 - 当需要挂断用户连接时调用 */
|
|
19
|
+
onHangup?: (userId: string) => void;
|
|
20
|
+
/** 自定义CSS类名 - 用于扩展组件样式 */
|
|
21
|
+
className?: string;
|
|
22
|
+
/** 用户信息 */
|
|
23
|
+
user?: CallUser;
|
|
24
|
+
/** 是否支持选中功能 - 由父组件控制,默认为true */
|
|
25
|
+
selectable?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @param props - 组件属性
|
|
30
|
+
* @returns JSX.Element
|
|
31
|
+
*/
|
|
32
|
+
declare const CallUserVideo: React.FC<CallUserVideoProps>;
|
|
33
|
+
export default CallUserVideo;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
interface CanvasCameraProps {
|
|
2
|
+
onsave: (cameraDeviceId: string, microphoneDeviceId: string | null, cameraLabel: string, microphoneLable: string, mirror: boolean, chromaKeyOptions: any) => void;
|
|
3
|
+
}
|
|
4
|
+
declare const CanvasCamera: ({ onsave }: CanvasCameraProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default CanvasCamera;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
interface CanvasVideoSlotProps {
|
|
3
|
+
onCreateEmpty: () => Promise<void> | void;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* CanvasVideoSlot
|
|
7
|
+
* 左侧来源面板的“连麦嘉宾预制”入口组件
|
|
8
|
+
* 功能:
|
|
9
|
+
* 1)预制空连麦嘉宾(创建占位,后续绑定)
|
|
10
|
+
* 2)开启连麦后列出可选择的嘉宾视频流(摄像头/屏幕共享),绑定到空槽
|
|
11
|
+
* 风格:与现有 UI 保持一致,使用 antd Modal + Select 列表
|
|
12
|
+
*/
|
|
13
|
+
declare const CanvasVideoSlot: FC<CanvasVideoSlotProps>;
|
|
14
|
+
export default CanvasVideoSlot;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ColorPickerProps {
|
|
3
|
+
selectedColor: string;
|
|
4
|
+
onColorChange: (color: string) => void;
|
|
5
|
+
colors?: string[];
|
|
6
|
+
afterChange?: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const ColorPicker: React.FC<ColorPickerProps>;
|
|
9
|
+
export default ColorPicker;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface DrawingToolbarProps {
|
|
3
|
+
selectedTool: number;
|
|
4
|
+
onToolClick: (tool: number) => void;
|
|
5
|
+
onClearCanvas: () => void;
|
|
6
|
+
onPreviewClick: () => void;
|
|
7
|
+
initialPenSize?: number;
|
|
8
|
+
initialPenColor?: string;
|
|
9
|
+
initialLaserPenSize?: number;
|
|
10
|
+
initialLaserPenColor?: string;
|
|
11
|
+
initialShapeSize?: number;
|
|
12
|
+
initialShapeType?: string;
|
|
13
|
+
initialShapeColor?: string;
|
|
14
|
+
initialTextSize?: number;
|
|
15
|
+
initialTextColor?: string;
|
|
16
|
+
onPenSizeChange?: (size: number) => void;
|
|
17
|
+
onPenColorChange?: (color: string) => void;
|
|
18
|
+
onLaserPenSizeChange?: (size: number) => void;
|
|
19
|
+
onLaserPenColorChange?: (color: string) => void;
|
|
20
|
+
onShapeSizeChange?: (size: number) => void;
|
|
21
|
+
onShapeTypeChange?: (type: string) => void;
|
|
22
|
+
onShapeColorChange?: (color: string) => void;
|
|
23
|
+
onTextSizeChange?: (size: number) => void;
|
|
24
|
+
onTextColorChange?: (color: string) => void;
|
|
25
|
+
}
|
|
26
|
+
declare const DrawingToolbar: React.FC<DrawingToolbarProps>;
|
|
27
|
+
export default DrawingToolbar;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LayoutMode } from '@/stores/callStore';
|
|
3
|
+
interface LayoutSwitcherProps {
|
|
4
|
+
currentLayout: LayoutMode;
|
|
5
|
+
onLayoutChange: (layout: LayoutMode) => void;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
declare const LayoutSwitcher: React.FC<LayoutSwitcherProps>;
|
|
9
|
+
export default LayoutSwitcher;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ShapeTypePickerProps {
|
|
3
|
+
types?: string[];
|
|
4
|
+
selectedType: string;
|
|
5
|
+
onTypeChange: (type: string) => void;
|
|
6
|
+
afterChange?: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const ShapeTypePicker: React.FC<ShapeTypePickerProps>;
|
|
9
|
+
export default ShapeTypePicker;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface TextSizePickerProps {
|
|
3
|
+
selectedSize: number;
|
|
4
|
+
onSizeChange: (size: number) => void;
|
|
5
|
+
sizes?: number[];
|
|
6
|
+
afterChange?: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const TextSizePicker: React.FC<TextSizePickerProps>;
|
|
9
|
+
export default TextSizePicker;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
interface ToolOptionProps {
|
|
3
|
+
title: string | ReactNode;
|
|
4
|
+
icon?: ReactNode;
|
|
5
|
+
isSelected?: boolean;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
optionContent?: ReactNode;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare const ToolOption: React.FC<ToolOptionProps>;
|
|
11
|
+
export default ToolOption;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as ColorPicker } from './ColorPicker';
|
|
2
|
+
export { default as DrawingToolbar } from './DrawingToolbar';
|
|
3
|
+
export { default as LayoutSwitcher } from './LayoutSwitcher';
|
|
4
|
+
export { default as PreviewModal } from './PreviewModal';
|
|
5
|
+
export { default as ShapeTypePicker } from './ShapeTypePicker';
|
|
6
|
+
export { default as SizePicker } from './SizePicker';
|
|
7
|
+
export { default as TextSizePicker } from './TextSizePicker';
|
|
8
|
+
export { default as ToolOption } from './ToolOption';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
interface ElementListProps {
|
|
3
|
+
livePlayerRef: React.RefObject<any>;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* 元素列表组件
|
|
7
|
+
* 负责显示和管理可拖拽的元素列表
|
|
8
|
+
* AI-TODO [STATE] 内部管理选中和悬停状态,减少父组件复杂度
|
|
9
|
+
*/
|
|
10
|
+
declare const ElementList: FC<ElementListProps>;
|
|
11
|
+
export default ElementList;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React, { Component, ReactNode } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
interface State {
|
|
6
|
+
hasError: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 全局错误边界组件
|
|
10
|
+
* 用于捕获SDK运行时的所有错误,并将其转换为全局错误状态
|
|
11
|
+
*/
|
|
12
|
+
export declare class GlobalErrorBoundary extends Component<Props, State> {
|
|
13
|
+
constructor(props: Props);
|
|
14
|
+
/**
|
|
15
|
+
* 静态方法,捕获JavaScript错误
|
|
16
|
+
* @param error 捕获到的错误对象
|
|
17
|
+
* @param errorInfo 错误信息
|
|
18
|
+
* @returns 更新后的状态
|
|
19
|
+
*/
|
|
20
|
+
static getDerivedStateFromError(_error: Error): State;
|
|
21
|
+
/**
|
|
22
|
+
* 组件挂载时注册全局错误事件监听
|
|
23
|
+
*/
|
|
24
|
+
componentDidMount(): void;
|
|
25
|
+
/**
|
|
26
|
+
* 组件卸载时移除全局错误事件监听
|
|
27
|
+
*/
|
|
28
|
+
componentWillUnmount(): void;
|
|
29
|
+
/**
|
|
30
|
+
* 捕获错误后记录错误信息
|
|
31
|
+
* @param error 捕获到的错误对象
|
|
32
|
+
* @param errorInfo 错误信息
|
|
33
|
+
*/
|
|
34
|
+
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
35
|
+
/**
|
|
36
|
+
* 处理API错误事件
|
|
37
|
+
* @param event 自定义事件对象
|
|
38
|
+
*/
|
|
39
|
+
private handleApiError;
|
|
40
|
+
/**
|
|
41
|
+
* 处理Token过期事件
|
|
42
|
+
* @param event 自定义事件对象
|
|
43
|
+
*/
|
|
44
|
+
private handleTokenExpired;
|
|
45
|
+
/**
|
|
46
|
+
* 处理参数校验错误事件
|
|
47
|
+
* @param event 自定义事件对象
|
|
48
|
+
*/
|
|
49
|
+
private handleParamValidationError;
|
|
50
|
+
/**
|
|
51
|
+
* 清除错误
|
|
52
|
+
*/
|
|
53
|
+
private handleClearError;
|
|
54
|
+
/**
|
|
55
|
+
* 渲染组件
|
|
56
|
+
* @returns React节点
|
|
57
|
+
*/
|
|
58
|
+
render(): ReactNode;
|
|
59
|
+
}
|
|
60
|
+
export default GlobalErrorBoundary;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface HeadProps {
|
|
3
|
+
canvasSetting: 'horizontal' | 'vertical';
|
|
4
|
+
setCanvasSetting: (setting: 'horizontal' | 'vertical') => void;
|
|
5
|
+
livePlayerRef?: React.MutableRefObject<any>;
|
|
6
|
+
rtmpRef: React.MutableRefObject<any>;
|
|
7
|
+
audioSourcesRef: React.MutableRefObject<any[]>;
|
|
8
|
+
audioContextRef: React.MutableRefObject<AudioContext | null>;
|
|
9
|
+
audioDestinationRef: React.MutableRefObject<MediaStreamAudioDestinationNode | null>;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: React.NamedExoticComponent<HeadProps>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface LeaveRoomProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
title?: string;
|
|
5
|
+
okText?: string;
|
|
6
|
+
cancelText?: string;
|
|
7
|
+
onConfirm?: () => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 离开房间组件
|
|
11
|
+
*
|
|
12
|
+
* @param props.children 触发确认框的子元素
|
|
13
|
+
* @param props.title 确认框标题
|
|
14
|
+
* @param props.okText 确认按钮文本
|
|
15
|
+
* @param props.cancelText 取消按钮文本
|
|
16
|
+
*/
|
|
17
|
+
declare const _default: ({ children, title, okText, cancelText, onConfirm, }: LeaveRoomProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
interface LeftSidebarProps {
|
|
3
|
+
currentScene: string;
|
|
4
|
+
onSceneClick: (sceneKey: string) => void;
|
|
5
|
+
menuItems: any[];
|
|
6
|
+
livePlayerRef: React.RefObject<any>;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 左侧边栏组件
|
|
10
|
+
* 负责管理场景面板、源面板和元素列表
|
|
11
|
+
* AI-TODO [STATE] 内部管理场景名称状态,减少父组件复杂度
|
|
12
|
+
*/
|
|
13
|
+
declare const LeftSidebar: FC<LeftSidebarProps>;
|
|
14
|
+
export default LeftSidebar;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './LiveWaitingRoom.less';
|
|
3
|
+
export interface LiveWaitingRoomProps {
|
|
4
|
+
hostName?: string;
|
|
5
|
+
roomTitle?: string;
|
|
6
|
+
onTestDevice?: () => void;
|
|
7
|
+
onExitRoom?: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare const LiveWaitingRoom: React.FC<LiveWaitingRoomProps>;
|
|
10
|
+
export default LiveWaitingRoom;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface AudioVisualizerProps {
|
|
2
|
+
selectedMicrophone: string;
|
|
3
|
+
isVisible: boolean;
|
|
4
|
+
onVolumeLevelsChange?: (levels: number[]) => void;
|
|
5
|
+
}
|
|
6
|
+
declare global {
|
|
7
|
+
interface Window {
|
|
8
|
+
webkitAudioContext: typeof AudioContext;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 音频可视化组件 - 独立处理音频分析和波纹绘制
|
|
13
|
+
* 使用 memo 避免不必要的重渲染,提升性能
|
|
14
|
+
*/
|
|
15
|
+
declare const AudioVisualizer: import("react").MemoExoticComponent<({ selectedMicrophone, isVisible, onVolumeLevelsChange, }: AudioVisualizerProps) => import("react/jsx-runtime").JSX.Element>;
|
|
16
|
+
export default AudioVisualizer;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const useInviteGuestModal: () => {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
openModal: () => void;
|
|
4
|
+
closeModal: () => void;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* 邀请嘉宾Modal组件Props接口
|
|
8
|
+
*/
|
|
9
|
+
interface InviteGuestModalProps {
|
|
10
|
+
/** RTC配置加载状态 */
|
|
11
|
+
isRTCConfigLoading?: boolean;
|
|
12
|
+
/** 外部控制的弹窗开启状态 */
|
|
13
|
+
isOpen?: boolean;
|
|
14
|
+
/** 外部控制的关闭回调 */
|
|
15
|
+
onClose?: () => void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 邀请嘉宾Modal组件
|
|
19
|
+
* @param props 组件属性
|
|
20
|
+
*/
|
|
21
|
+
declare const InviteGuestModal: React.FC<InviteGuestModalProps>;
|
|
22
|
+
export default InviteGuestModal;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ConfigUpdateParams } from '../../../types';
|
|
3
|
+
/**
|
|
4
|
+
* 底部操作区域组件Props
|
|
5
|
+
*/
|
|
6
|
+
interface CallBottomActionsProps {
|
|
7
|
+
/** 更新RTC配置的回调函数 */
|
|
8
|
+
onConfigUpdate: (config: ConfigUpdateParams) => Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 通话底部操作区域组件
|
|
12
|
+
* @description 包含全体静音/取消静音按钮和更多设置菜单
|
|
13
|
+
*/
|
|
14
|
+
declare const CallBottomActions: FC<CallBottomActionsProps>;
|
|
15
|
+
export default CallBottomActions;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
interface CallControlsProps {
|
|
3
|
+
/** 直播间ID */
|
|
4
|
+
liveId: number;
|
|
5
|
+
/** 是否正在连麦 */
|
|
6
|
+
isCall: boolean;
|
|
7
|
+
/** 配置更新回调 */
|
|
8
|
+
onConfigUpdate: (config: any) => void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 连麦控制组件
|
|
12
|
+
* 负责处理开始/停止连麦的逻辑及背景图上传功能
|
|
13
|
+
*/
|
|
14
|
+
declare const CallControls: FC<CallControlsProps>;
|
|
15
|
+
export default CallControls;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { CallUser as CallUserType } from '@/stores/callStore';
|
|
3
|
+
interface MeetingUserListProps {
|
|
4
|
+
/** 会议中用户列表 */
|
|
5
|
+
activeUsers: CallUserType[];
|
|
6
|
+
/** 是否加载中 */
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 会议中用户列表组件
|
|
11
|
+
* 负责渲染会议中的用户列表
|
|
12
|
+
*/
|
|
13
|
+
declare const MeetingUserList: FC<MeetingUserListProps>;
|
|
14
|
+
export default MeetingUserList;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ConfigUpdateParams } from '../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* useCallConfig Hook 参数接口
|
|
4
|
+
*/
|
|
5
|
+
export interface UseCallConfigOptions {
|
|
6
|
+
/** 是否自动获取RTC配置,默认为 true */
|
|
7
|
+
autoFetch?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* RTC配置管理Hook
|
|
11
|
+
* 负责RTC配置的获取、更新等操作
|
|
12
|
+
*/
|
|
13
|
+
export declare const useCallConfig: (options?: UseCallConfigOptions) => {
|
|
14
|
+
callConfig: import("@/stores/callStore").CallConfig;
|
|
15
|
+
isRTCConfigLoading: boolean;
|
|
16
|
+
handleUpdateRTCConfig: (configUpdates: ConfigUpdateParams) => Promise<void>;
|
|
17
|
+
fetchRTCConfig: () => Promise<import("../../../../../../../api/request").ResponseData<import("@/api").RTCMasterConfigResponse>>;
|
|
18
|
+
};
|