call-live-sdk1 0.0.11 → 0.0.13

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 (50) hide show
  1. package/dist/assets/style.CQrOViFp.css +1 -0
  2. package/dist/assets/style.css +1 -1
  3. package/dist/call-live-sdk.es.js +31900 -32069
  4. package/dist/call-live-sdk.umd.js +1 -1
  5. package/dist/components/CallGridLayout.d.ts +1 -1
  6. package/dist/components/CallSingleColumnLayout.d.ts +1 -1
  7. package/dist/components/CallUserVideo.d.ts +1 -1
  8. package/dist/components/DrawingTools/LayoutSwitcher.d.ts +1 -1
  9. package/dist/components/ErrorPage/ErrorPage.d.ts +1 -1
  10. package/dist/components/GlobalErrorBoundary.d.ts +1 -1
  11. package/dist/components/RightSidebar/components/CallComponent/features/meeting/components/MeetingUserList.d.ts +1 -1
  12. package/dist/components/RightSidebar/components/CallComponent/features/meeting/hooks/useCallConfig.d.ts +1 -1
  13. package/dist/components/RightSidebar/components/CallComponent/features/meeting/hooks/useOnlineUsers.d.ts +2 -2
  14. package/dist/components/RightSidebar/components/CallComponent/shared/ui/CallUser.d.ts +1 -1
  15. package/dist/components/RightSidebar/components/CallComponent/types/index.d.ts +1 -1
  16. package/dist/components/RtcJoomRoom/types.d.ts +1 -1
  17. package/dist/components/RtcJoomRoom/useRoomMessageHandler.d.ts +3 -3
  18. package/dist/pages/MobileLive/components/UserVideoContainer.d.ts +1 -1
  19. package/dist/pages/MobileLive/components/VideoSwipeContainer.d.ts +1 -1
  20. package/dist/stats-prod.html +1 -1
  21. package/dist/stores/activitytype.d.ts +2 -15
  22. package/dist/stores/call.d.ts +1 -5
  23. package/dist/stores/callStore.d.ts +1 -219
  24. package/dist/stores/commentChatUrl.d.ts +1 -4
  25. package/dist/stores/commentRtmpStats.d.ts +1 -4
  26. package/dist/stores/commentSocket.d.ts +1 -20
  27. package/dist/stores/counterStore.d.ts +1 -8
  28. package/dist/stores/currentUser.d.ts +1 -5
  29. package/dist/stores/drawingToolsStore.d.ts +1 -34
  30. package/dist/stores/guest.d.ts +1 -7
  31. package/dist/stores/liveInfo.d.ts +1 -9
  32. package/dist/stores/livepushcode.d.ts +2 -13
  33. package/dist/stores/sdkStore.d.ts +2 -47
  34. package/dist/types/stores/activitytype.d.ts +13 -0
  35. package/dist/types/stores/call.d.ts +4 -0
  36. package/dist/types/stores/callStore.d.ts +327 -0
  37. package/dist/types/stores/commentChatUrl.d.ts +4 -0
  38. package/dist/types/stores/commentRtmpStats.d.ts +4 -0
  39. package/dist/types/stores/commentSocket.d.ts +20 -0
  40. package/dist/types/stores/counterStore.d.ts +7 -0
  41. package/dist/types/stores/currentUser.d.ts +4 -0
  42. package/dist/types/stores/drawingToolsStore.d.ts +34 -0
  43. package/dist/types/stores/guest.d.ts +6 -0
  44. package/dist/types/stores/liveInfo.d.ts +8 -0
  45. package/dist/types/stores/livepushcode.d.ts +11 -0
  46. package/dist/types/stores/sdkStore.d.ts +34 -0
  47. package/dist/utils/utiles.d.ts +5 -0
  48. package/package.json +2 -1
  49. package/dist/assets/style.DcMyBSL2.css +0 -1
  50. package/dist/hooks/useVideoElementDetector.d.ts +0 -37
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { CallUser } from '@/stores/callStore';
2
+ import { CallUser } from '@/types/stores/callStore';
3
3
  interface CallGridLayoutProps {
4
4
  currentPage: number;
5
5
  totalVideoCount: number;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { CallUser } from '@/stores/callStore';
2
+ import { CallUser } from '@/types/stores/callStore';
3
3
  interface CallSingleColumnLayoutProps {
4
4
  currentPage: number;
5
5
  totalPages: number;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { CallUser } from '@/stores/callStore';
2
+ import { CallUser } from '@/types/stores/callStore';
3
3
  /**
4
4
  * 连麦用户视频组件的属性接口
5
5
  * 定义了组件所需的所有参数和回调函数
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { LayoutMode } from '@/stores/callStore';
2
+ import { LayoutMode } from '@/types/stores/callStore';
3
3
  interface LayoutSwitcherProps {
4
4
  currentLayout: LayoutMode;
5
5
  onLayoutChange: (layout: LayoutMode) => void;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { GlobalError } from '../../stores/sdkStore';
2
+ import { GlobalError } from '../../types/stores/sdkStore';
3
3
  interface ErrorPageProps {
4
4
  error: GlobalError;
5
5
  onClose?: () => void;
@@ -1,5 +1,5 @@
1
1
  import React, { Component, ReactNode } from 'react';
2
- import { GlobalError } from '../stores/sdkStore';
2
+ import { GlobalError } from '../types/stores/sdkStore';
3
3
  interface Props {
4
4
  children: ReactNode;
5
5
  /** 是否开启错误提示,默认开启 */
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { CallUser as CallUserType } from '@/stores/callStore';
2
+ import { CallUser as CallUserType } from '@/types/stores/callStore';
3
3
  interface MeetingUserListProps {
4
4
  /** 会议中用户列表 */
5
5
  activeUsers: CallUserType[];
@@ -11,7 +11,7 @@ export interface UseCallConfigOptions {
11
11
  * 负责RTC配置的获取、更新等操作
12
12
  */
13
13
  export declare const useCallConfig: (options?: UseCallConfigOptions) => {
14
- callConfig: import("@/stores/callStore").CallConfig;
14
+ callConfig: import("../../../../../../../types/stores/callStore").CallConfig;
15
15
  isRTCConfigLoading: boolean;
16
16
  handleUpdateRTCConfig: (configUpdates: ConfigUpdateParams) => Promise<void>;
17
17
  fetchRTCConfig: () => Promise<import("../../../../../../../api/request").ResponseData<import("@/api").RTCMasterConfigResponse>>;
@@ -4,6 +4,6 @@
4
4
  */
5
5
  export declare const useOnlineUsers: () => {
6
6
  isLoading: boolean;
7
- activeUsers: import("@/stores/callStore").CallUser[];
8
- waitingUsers: import("@/stores/callStore").CallUser[];
7
+ activeUsers: import("@/types/stores/callStore").CallUser[];
8
+ waitingUsers: import("@/types/stores/callStore").CallUser[];
9
9
  };
@@ -1,4 +1,4 @@
1
- import { CallUser as ICallUser } from '@/stores/callStore';
1
+ import { CallUser as ICallUser } from '@/types/stores/callStore';
2
2
  import { FC } from 'react';
3
3
  /**
4
4
  * 通话用户组件属性接口
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * CallComponent 相关类型定义
3
3
  */
4
- import type { CallUser } from '@/stores/callStore';
4
+ import type { CallUser } from '@/types/stores/callStore';
5
5
  export type { CallUser };
6
6
  /**
7
7
  * 用户操作回调接口
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * 遵循 AIGC React/TS 智能开发规范,提供类型安全的消息处理能力
12
12
  */
13
- import { CallUser, WaitingModeState } from '@/stores/callStore';
13
+ import { CallUser, WaitingModeState } from '@/types/stores/callStore';
14
14
  /**
15
15
  * 消息来源类型枚举
16
16
  *
@@ -1,4 +1,4 @@
1
- import { CallUser, WaitingModeState } from '@/stores/callStore';
1
+ import { CallUser, WaitingModeState } from '@/types/stores/callStore';
2
2
  /**
3
3
  * 房间消息类型枚举
4
4
  *
@@ -43,8 +43,8 @@ interface MuteMessageData {
43
43
  * 定义媒体状态变更相关的数据结构
44
44
  */
45
45
  interface MediaMessageData {
46
- /** 媒体类型 - 音频或视频 */
47
- media_type?: 'audio' | 'video';
46
+ /** 媒体类型 - 音频或视频或镜像 */
47
+ media_type?: 'audio' | 'video' | 'mirror';
48
48
  /** 媒体状态 - 0: 关闭, 1: 开启 */
49
49
  media_state?: 0 | 1;
50
50
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { CallUser } from '@/stores/callStore';
2
+ import { CallUser } from '@/types/stores/callStore';
3
3
  /**
4
4
  * 用户视频容器组件的属性接口
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { CallUser } from '@/stores/callStore';
2
+ import { CallUser } from '@/types/stores/callStore';
3
3
  interface VideoSwipeContainerProps {
4
4
  /** 所有用户列表 */
5
5
  allUsers: CallUser[];