fcr-ui-scene 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/lib/fcr-ui-kit/src/components/avatar/helper.d.ts +2 -0
- package/lib/fcr-ui-kit/src/components/avatar/index.d.ts +8 -0
- package/lib/fcr-ui-kit/src/components/button/index.d.ts +82 -0
- package/lib/fcr-ui-kit/src/components/checkbox/index.d.ts +12 -0
- package/lib/fcr-ui-kit/src/components/dialog/class-dialog.d.ts +51 -0
- package/lib/fcr-ui-kit/src/components/dialog/confirm-dialog.d.ts +70 -0
- package/lib/fcr-ui-kit/src/components/dialog/global-dialog.d.ts +11 -0
- package/lib/fcr-ui-kit/src/components/dialog/index.d.ts +68 -0
- package/lib/fcr-ui-kit/src/components/dropdown/index.d.ts +58 -0
- package/lib/fcr-ui-kit/src/components/input/index.d.ts +69 -0
- package/lib/fcr-ui-kit/src/components/input-number/index.d.ts +69 -0
- package/lib/fcr-ui-kit/src/components/pagination/index.d.ts +27 -0
- package/lib/fcr-ui-kit/src/components/popover/index.d.ts +47 -0
- package/lib/fcr-ui-kit/src/components/progress/index.d.ts +11 -0
- package/lib/fcr-ui-kit/src/components/radio/index.d.ts +21 -0
- package/lib/fcr-ui-kit/src/components/slider/index.d.ts +22 -0
- package/lib/fcr-ui-kit/src/components/sound-player/index.d.ts +6 -0
- package/lib/fcr-ui-kit/src/components/svg-img/clickable-icon.d.ts +25 -0
- package/lib/fcr-ui-kit/src/components/svg-img/index.d.ts +15 -0
- package/lib/fcr-ui-kit/src/components/svg-img/mic.d.ts +5 -0
- package/lib/fcr-ui-kit/src/components/svg-img/svg-dict.d.ts +12 -0
- package/lib/fcr-ui-kit/src/components/svg-img/type.d.ts +195 -0
- package/lib/fcr-ui-kit/src/components/svga-player/index.d.ts +15 -0
- package/lib/fcr-ui-kit/src/components/svga-player/svga-types.d.ts +1 -0
- package/lib/fcr-ui-kit/src/components/table/index.d.ts +9 -0
- package/lib/fcr-ui-kit/src/components/tabs/index.d.ts +14 -0
- package/lib/fcr-ui-kit/src/components/textarea/helper.d.ts +2 -0
- package/lib/fcr-ui-kit/src/components/textarea/index.d.ts +100 -0
- package/lib/fcr-ui-kit/src/components/toast/index.d.ts +122 -0
- package/lib/fcr-ui-kit/src/components/tooltip/dialog.d.ts +19 -0
- package/lib/fcr-ui-kit/src/components/tooltip/index.d.ts +89 -0
- package/lib/fcr-ui-kit/src/components/tooltip/info.d.ts +6 -0
- package/lib/fcr-ui-kit/src/components/volume/index.d.ts +8 -0
- package/lib/fcr-ui-kit/src/utils/click-anywhere.d.ts +1 -0
- package/lib/fcr-ui-kit/src/utils/hooks/animations.d.ts +14 -0
- package/lib/fcr-ui-kit/src/utils/hooks/use-click-anywhere.d.ts +2 -0
- package/lib/fcr-ui-kit/src/utils/tailwindcss.d.ts +3 -0
- package/lib/fcr-ui-scene/src/app.d.ts +5 -0
- package/lib/fcr-ui-scene/src/configs/base-theme.d.ts +391 -0
- package/lib/fcr-ui-scene/src/configs/base-ui.d.ts +12 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/chat/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/cloud/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/device/index.d.ts +9 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/index.d.ts +24 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/leave/index.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/participants/index.d.ts +5 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/raise-hands/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/record/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/screen-share/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/setting/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/toolbox/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/whiteboard/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/breakout-room/ask-help-list.d.ts +10 -0
- package/lib/fcr-ui-scene/src/containers/breakout-room/broadcast-panel.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/breakout-room/create-panel.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/breakout-room/group-info-panel.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/breakout-room/group-panel.d.ts +5 -0
- package/lib/fcr-ui-scene/src/containers/breakout-room/group-status-panel.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/breakout-room/grouping.d.ts +15 -0
- package/lib/fcr-ui-scene/src/containers/breakout-room/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/breakout-room/search-panel.d.ts +5 -0
- package/lib/fcr-ui-scene/src/containers/breakout-room/wizard.d.ts +6 -0
- package/lib/fcr-ui-scene/src/containers/cloud/dialog-header.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/cloud/index.d.ts +6 -0
- package/lib/fcr-ui-scene/src/containers/cloud/personal.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/cloud/public.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/common/interact-labels.d.ts +6 -0
- package/lib/fcr-ui-scene/src/containers/device-pretest/basic-settings.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/device-pretest/beauty-filter.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/device-pretest/beauty-slider.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/device-pretest/device-select.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/device-pretest/index.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/device-pretest/mirror-toggle.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/device-pretest/video-portal.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/device-pretest/virtual-background.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/device-settings/audio-settings.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/device-settings/dialog-wrapper.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/device-settings/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/device-settings/video-settings.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/dialog/class-info.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/dialog/confirm.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/dialog/index.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/layout/cover-view.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/layout/gallery-view.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/layout/presentation-view.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/loading/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/participants/dialog.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/participants/index.d.ts +5 -0
- package/lib/fcr-ui-scene/src/containers/status-bar/class-duration/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/status-bar/fullscreen/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/status-bar/index.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/status-bar/layout-switch/index.d.ts +22 -0
- package/lib/fcr-ui-scene/src/containers/status-bar/network/index.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/status-bar/record-status/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/status-bar/room-info/index.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/status-bar/share/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/status-bar/widgets/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/stream-window/context.d.ts +52 -0
- package/lib/fcr-ui-scene/src/containers/stream-window/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/video-player/index.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/video-player/players.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/video-player/tools-overlay.d.ts +1 -0
- package/lib/fcr-ui-scene/src/containers/widget/break-out-room/index.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/widget/draggable-wrapper/index.d.ts +7 -0
- package/lib/fcr-ui-scene/src/containers/widget/helpers.d.ts +40 -0
- package/lib/fcr-ui-scene/src/containers/widget/hooks.d.ts +21 -0
- package/lib/fcr-ui-scene/src/containers/widget/index.d.ts +7 -0
- package/lib/fcr-ui-scene/src/containers/widget/participants/index.d.ts +2 -0
- package/lib/fcr-ui-scene/src/extension/board.d.ts +73 -0
- package/lib/fcr-ui-scene/src/extension/edu-tool.d.ts +57 -0
- package/lib/fcr-ui-scene/src/extension/events.d.ts +91 -0
- package/lib/fcr-ui-scene/src/extension/type.d.ts +94 -0
- package/lib/fcr-ui-scene/src/index.d.ts +39 -0
- package/lib/fcr-ui-scene/src/preset.d.ts +1 -0
- package/lib/fcr-ui-scene/src/resources/translations/enUs.d.ts +393 -0
- package/lib/fcr-ui-scene/src/resources/translations/zhCn.d.ts +398 -0
- package/lib/fcr-ui-scene/src/scenarios/classroom.d.ts +2 -0
- package/lib/fcr-ui-scene/src/scenarios/layout/index.d.ts +2 -0
- package/lib/fcr-ui-scene/src/type.d.ts +347 -0
- package/lib/fcr-ui-scene/src/uistores/action-bar.d.ts +58 -0
- package/lib/fcr-ui-scene/src/uistores/base.d.ts +58 -0
- package/lib/fcr-ui-scene/src/uistores/breakout.d.ts +225 -0
- package/lib/fcr-ui-scene/src/uistores/cloud/helper.d.ts +26 -0
- package/lib/fcr-ui-scene/src/uistores/cloud/index.d.ts +51 -0
- package/lib/fcr-ui-scene/src/uistores/cloud/struct.d.ts +131 -0
- package/lib/fcr-ui-scene/src/uistores/context.d.ts +7 -0
- package/lib/fcr-ui-scene/src/uistores/device-setting.d.ts +219 -0
- package/lib/fcr-ui-scene/src/uistores/gallery-view.d.ts +16 -0
- package/lib/fcr-ui-scene/src/uistores/getters.d.ts +39 -0
- package/lib/fcr-ui-scene/src/uistores/index.d.ts +47 -0
- package/lib/fcr-ui-scene/src/uistores/layout.d.ts +64 -0
- package/lib/fcr-ui-scene/src/uistores/notification.d.ts +9 -0
- package/lib/fcr-ui-scene/src/uistores/participants.d.ts +48 -0
- package/lib/fcr-ui-scene/src/uistores/presentation-view.d.ts +24 -0
- package/lib/fcr-ui-scene/src/uistores/status-bar.d.ts +47 -0
- package/lib/fcr-ui-scene/src/uistores/stream.d.ts +48 -0
- package/lib/fcr-ui-scene/src/uistores/subscription/abstract.d.ts +45 -0
- package/lib/fcr-ui-scene/src/uistores/subscription/index.d.ts +13 -0
- package/lib/fcr-ui-scene/src/uistores/subscription/main-room.d.ts +14 -0
- package/lib/fcr-ui-scene/src/uistores/subscription/type.d.ts +10 -0
- package/lib/fcr-ui-scene/src/uistores/type.d.ts +86 -0
- package/lib/fcr-ui-scene/src/uistores/widget.d.ts +46 -0
- package/lib/fcr-ui-scene/src/utils/asset.d.ts +1 -0
- package/lib/fcr-ui-scene/src/utils/check.d.ts +7 -0
- package/lib/fcr-ui-scene/src/utils/clamp-bounds.d.ts +14 -0
- package/lib/fcr-ui-scene/src/utils/config-loader.d.ts +7 -0
- package/lib/fcr-ui-scene/src/utils/grid/index.d.ts +9 -0
- package/lib/fcr-ui-scene/src/utils/hooks/use-authorization.d.ts +5 -0
- package/lib/fcr-ui-scene/src/utils/hooks/use-device-switch.d.ts +29 -0
- package/lib/fcr-ui-scene/src/utils/hooks/use-drag-position.d.ts +21 -0
- package/lib/fcr-ui-scene/src/utils/hooks/use-network.d.ts +17 -0
- package/lib/fcr-ui-scene/src/utils/hooks/use-pin-stream.d.ts +4 -0
- package/lib/fcr-ui-scene/src/utils/hooks/use-rnd-position.d.ts +24 -0
- package/lib/fcr-ui-scene/src/utils/hooks/use-store.d.ts +1 -0
- package/lib/fcr-ui-scene/src/utils/hooks/use-video-renderable.d.ts +3 -0
- package/lib/fcr-ui-scene/src/utils/hooks/use-z-index.d.ts +8 -0
- package/lib/fcr-ui-scene/src/utils/index.d.ts +7 -0
- package/lib/fcr-ui-scene/src/utils/launch-options-holder.d.ts +10 -0
- package/lib/fcr-ui-scene/src/utils/rtc-extensions.d.ts +29 -0
- package/lib/fcr-ui-scene/src/utils/short-name.d.ts +1 -0
- package/lib/fcr-ui-scene/src/utils/stream/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/utils/stream/state-keeper.d.ts +18 -0
- package/lib/fcr-ui-scene/src/utils/stream/struct.d.ts +67 -0
- package/lib/fcr-ui-scene/src/utils/z-index-controller.d.ts +9 -0
- package/lib/fcr-ui-scene/tailwind.config.d.ts +1 -0
- package/lib/log.worker.bundle.worker.js.LICENSE.txt +1 -0
- package/lib/scene.bundle.js +2 -0
- package/lib/scene.bundle.js.LICENSE.txt +334 -0
- package/package.json +95 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { EduUIStoreBase } from '../base';
|
|
2
|
+
import { SvgIconEnum } from '@components/svg-img';
|
|
3
|
+
import { CloudDrivePagingOption, CloudDriveResource } from 'agora-edu-core';
|
|
4
|
+
import { CloudDriveCourseResource } from './struct';
|
|
5
|
+
import { UploadItem } from '../type';
|
|
6
|
+
import { CloudDriveResourceInfo } from 'agora-edu-core/lib/stores/domain/common/cloud-drive/type';
|
|
7
|
+
export declare class CloudUIStore extends EduUIStoreBase {
|
|
8
|
+
cloudHelpTips: {
|
|
9
|
+
svgType: SvgIconEnum;
|
|
10
|
+
desc: string;
|
|
11
|
+
supportType: string[];
|
|
12
|
+
}[];
|
|
13
|
+
searchPublicResourcesKeyword: string;
|
|
14
|
+
setSearchPublicResourcesKeyword(keyword: string): void;
|
|
15
|
+
get publicResources(): CloudDriveResource[];
|
|
16
|
+
cloudDialogVisible: boolean;
|
|
17
|
+
setCloudDialogVisible(visible: boolean): void;
|
|
18
|
+
searchPersonalResourcesKeyword: string;
|
|
19
|
+
setSearchPersonalResourcesKeyword(keyword: string): void;
|
|
20
|
+
personalResourceUuidByPage: Map<number, string[]>;
|
|
21
|
+
pageSize: number;
|
|
22
|
+
currentPersonalResPage: number;
|
|
23
|
+
setCurrentPersonalResPage: (num: number) => void;
|
|
24
|
+
personalResourcesTotalNum: number;
|
|
25
|
+
get personalResourcesTotalPage(): number;
|
|
26
|
+
get personalResources(): Map<string, CloudDriveResource>;
|
|
27
|
+
get personalResourcesList(): CloudDriveResource[];
|
|
28
|
+
get uploadingProgresses(): (UploadItem & {
|
|
29
|
+
ext: string;
|
|
30
|
+
})[];
|
|
31
|
+
fileNameToType(name: string): SvgIconEnum.FCR_FILE_AH5 | SvgIconEnum.FCR_FILE_ALF | SvgIconEnum.FCR_FILE_AUDIO | SvgIconEnum.FCR_FILE_DOC | SvgIconEnum.FCR_FILE_EXCEL | SvgIconEnum.FCR_FILE_NOFORMAT | SvgIconEnum.FCR_FILE_PDF | SvgIconEnum.FCR_FILE_PHOTO | SvgIconEnum.FCR_FILE_PPT | SvgIconEnum.FCR_FILE_VIDEO;
|
|
32
|
+
formatFileSize(fileByteSize: number, decimalPoint?: number): string;
|
|
33
|
+
fetchPersonalResources(options: CloudDrivePagingOption): Promise<{
|
|
34
|
+
list: never[];
|
|
35
|
+
total: number;
|
|
36
|
+
} | undefined>;
|
|
37
|
+
updatePersonalResource(resourceUuid: string, resourceInfo: Pick<CloudDriveResourceInfo, 'resourceName'>): Promise<void>;
|
|
38
|
+
validateFiles(files: File[]): boolean;
|
|
39
|
+
uploadPersonalResource(files: File[]): Promise<void>;
|
|
40
|
+
addOnlineCourseware({ resourceName, url }: {
|
|
41
|
+
resourceName: string;
|
|
42
|
+
url: string;
|
|
43
|
+
}): Promise<void>;
|
|
44
|
+
reloadPersonalResources(): Promise<void>;
|
|
45
|
+
removePersonalResources: (resourceUuids: string[]) => Promise<void>;
|
|
46
|
+
checkBoardEnabled(): Promise<unknown>;
|
|
47
|
+
openResource(resource: CloudDriveResource): Promise<void>;
|
|
48
|
+
openCourseware(resource: CloudDriveCourseResource, isBoardActive: boolean): Promise<void>;
|
|
49
|
+
onDestroy(): void;
|
|
50
|
+
onInstall(): void;
|
|
51
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
export interface CloudDriveResourceConvertProgress {
|
|
2
|
+
prefix?: string;
|
|
3
|
+
status: 'Waiting' | 'Converting' | 'Finished' | 'Fail';
|
|
4
|
+
totalPageSize: number;
|
|
5
|
+
convertedPageSize: number;
|
|
6
|
+
convertedPercentage: number;
|
|
7
|
+
convertedFileList: {
|
|
8
|
+
name?: string;
|
|
9
|
+
ppt: {
|
|
10
|
+
preview?: string;
|
|
11
|
+
src: string;
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
};
|
|
15
|
+
}[];
|
|
16
|
+
currentStep: string;
|
|
17
|
+
previews: Record<number, string>;
|
|
18
|
+
images: Record<number, {
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
url: string;
|
|
22
|
+
}>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 云盘资源对象。支持两种类型;
|
|
26
|
+
* - `'dynamic'`: 动态资源
|
|
27
|
+
* - `'static'`: 静态资源
|
|
28
|
+
*/
|
|
29
|
+
import { CloudDriveResource, ConversionOption } from 'agora-edu-core';
|
|
30
|
+
/** @en
|
|
31
|
+
* The cloud drive resource object. Supports two types of resources:
|
|
32
|
+
* - `'dynamic'`: Dynamic resources.
|
|
33
|
+
* - `'static'`: Static resources.
|
|
34
|
+
*/
|
|
35
|
+
export declare class CloudDriveCourseResource extends CloudDriveResource {
|
|
36
|
+
private _taskProgress?;
|
|
37
|
+
taskUuid: string;
|
|
38
|
+
conversion: ConversionOption;
|
|
39
|
+
scenes: {
|
|
40
|
+
name?: string;
|
|
41
|
+
previewUrl?: string;
|
|
42
|
+
contentUrl: string;
|
|
43
|
+
height: number;
|
|
44
|
+
width: number;
|
|
45
|
+
}[];
|
|
46
|
+
constructor(data: {
|
|
47
|
+
ext: string;
|
|
48
|
+
resourceName: string;
|
|
49
|
+
resourceUuid: string;
|
|
50
|
+
size: number;
|
|
51
|
+
updateTime: number;
|
|
52
|
+
taskProgress?: CloudDriveResourceConvertProgress;
|
|
53
|
+
taskUuid: string;
|
|
54
|
+
conversion: ConversionOption;
|
|
55
|
+
initOpen?: boolean;
|
|
56
|
+
});
|
|
57
|
+
get hasAnimation(): boolean;
|
|
58
|
+
get convertedPercentage(): number | undefined;
|
|
59
|
+
get status(): "Waiting" | "Converting" | "Finished" | "Fail" | undefined;
|
|
60
|
+
get prefix(): string | undefined;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* 多媒体资源文件对象。支持以下类型:
|
|
64
|
+
* - `'video'`: 视频文件
|
|
65
|
+
* - `'audio'`: 音频文件
|
|
66
|
+
*/
|
|
67
|
+
/** @en
|
|
68
|
+
* The multi-media resource object. Supports types of multi-media resources:
|
|
69
|
+
* - `'video'`
|
|
70
|
+
* - `'audio'`
|
|
71
|
+
*/
|
|
72
|
+
export declare class CloudDriveMediaResource extends CloudDriveResource {
|
|
73
|
+
url: string;
|
|
74
|
+
type: 'video' | 'audio';
|
|
75
|
+
constructor(data: {
|
|
76
|
+
ext: string;
|
|
77
|
+
resourceName: string;
|
|
78
|
+
resourceUuid: string;
|
|
79
|
+
size: number;
|
|
80
|
+
updateTime: number;
|
|
81
|
+
url: string;
|
|
82
|
+
type: 'video' | 'audio';
|
|
83
|
+
initOpen?: boolean;
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* 图片资源文件对象
|
|
88
|
+
*/
|
|
89
|
+
/** @en
|
|
90
|
+
* Cloud Drive Image Resource
|
|
91
|
+
*/
|
|
92
|
+
export declare class CloudDriveImageResource extends CloudDriveResource {
|
|
93
|
+
url: string;
|
|
94
|
+
constructor(data: {
|
|
95
|
+
ext: string;
|
|
96
|
+
resourceName: string;
|
|
97
|
+
resourceUuid: string;
|
|
98
|
+
size: number;
|
|
99
|
+
updateTime: number;
|
|
100
|
+
url: string;
|
|
101
|
+
initOpen?: boolean;
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
export declare class CloudDriveH5Resource extends CloudDriveResource {
|
|
105
|
+
url: string;
|
|
106
|
+
type: string;
|
|
107
|
+
constructor(data: {
|
|
108
|
+
ext: string;
|
|
109
|
+
resourceName: string;
|
|
110
|
+
resourceUuid: string;
|
|
111
|
+
size: number;
|
|
112
|
+
updateTime: number;
|
|
113
|
+
url: string;
|
|
114
|
+
type: string;
|
|
115
|
+
initOpen?: boolean;
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
export declare class CloudDriveLinkResource extends CloudDriveResource {
|
|
119
|
+
url: string;
|
|
120
|
+
type: string;
|
|
121
|
+
constructor(data: {
|
|
122
|
+
ext: string;
|
|
123
|
+
resourceName: string;
|
|
124
|
+
resourceUuid: string;
|
|
125
|
+
size: number;
|
|
126
|
+
updateTime: number;
|
|
127
|
+
url: string;
|
|
128
|
+
type: string;
|
|
129
|
+
initOpen?: boolean;
|
|
130
|
+
});
|
|
131
|
+
}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { ClassroomState } from 'agora-edu-core';
|
|
2
|
+
import { EduUIStoreBase } from './base';
|
|
3
|
+
import { BeautyFilterOptions, VirtualBackgroundOptions } from '..';
|
|
4
|
+
/**
|
|
5
|
+
* 设备设置
|
|
6
|
+
*/
|
|
7
|
+
/** @en
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export declare class DeviceSettingUIStore extends EduUIStoreBase {
|
|
11
|
+
private _defaultBeautyOptions;
|
|
12
|
+
private _pretestCameraEnabled;
|
|
13
|
+
private _pretestMicEnabled;
|
|
14
|
+
setPretestCameraEnabled(enable: boolean): void;
|
|
15
|
+
setPretestMicEnabled(enable: boolean): void;
|
|
16
|
+
private _virtualBackgroundProcessor?;
|
|
17
|
+
private _beautyEffectProcessor?;
|
|
18
|
+
private _aiDenoiserProcessor?;
|
|
19
|
+
private _virtualBackgroundProcessorForPreview?;
|
|
20
|
+
private _beautyEffectProcessorForPreview?;
|
|
21
|
+
private _aiDenoiserProcessorForPreview?;
|
|
22
|
+
deviceSettingDialogVisible: boolean;
|
|
23
|
+
setDeviceSettingDialogVisible(visible: boolean): void;
|
|
24
|
+
private _virtualBackgroundOptions?;
|
|
25
|
+
private _beautyOptions?;
|
|
26
|
+
private _beautyType?;
|
|
27
|
+
private _cameraDeviceId?;
|
|
28
|
+
private _audioRecordingDeviceId?;
|
|
29
|
+
private _audioPlaybackDeviceId?;
|
|
30
|
+
private _cameraDeviceEnabled;
|
|
31
|
+
private _audioRecordingDeviceEnabled;
|
|
32
|
+
private _previewCameraDeviceEnabled;
|
|
33
|
+
private _previewAudioRecordingDeviceEnabled;
|
|
34
|
+
private _audioPlaybackDeviceEnabled;
|
|
35
|
+
private _localMirrorEnabled;
|
|
36
|
+
private _virtualBackgroundEnabled;
|
|
37
|
+
private _beautyFilterEnabled;
|
|
38
|
+
private _aiDenoiserEnabled;
|
|
39
|
+
get noCameraDevice(): boolean;
|
|
40
|
+
get cameraDeviceId(): string | undefined;
|
|
41
|
+
get noAudioRecordingDevice(): boolean;
|
|
42
|
+
get audioRecordingDeviceId(): string | undefined;
|
|
43
|
+
get audioPlaybackDeviceId(): string | undefined;
|
|
44
|
+
get isCameraDeviceEnabled(): boolean;
|
|
45
|
+
get isAudioRecordingDeviceEnabled(): boolean;
|
|
46
|
+
get isPreviewCameraDeviceEnabled(): boolean;
|
|
47
|
+
get isPreviewAudioRecordingDeviceEnabled(): boolean;
|
|
48
|
+
get isAudioPlaybackDeviceEnabled(): boolean;
|
|
49
|
+
get isLocalMirrorEnabled(): boolean;
|
|
50
|
+
get isVirtualBackgroundEnabled(): boolean;
|
|
51
|
+
get isBeautyFilterEnabled(): boolean;
|
|
52
|
+
get activeBackgroundUrl(): string | undefined;
|
|
53
|
+
get activeBeautyType(): keyof BeautyFilterOptions | undefined;
|
|
54
|
+
get activeBeautyValue(): number | undefined;
|
|
55
|
+
get beautySmoothValue(): number | undefined;
|
|
56
|
+
get beautyBrighteningValue(): number | undefined;
|
|
57
|
+
get beautyBlushValue(): number | undefined;
|
|
58
|
+
get pretestCameraEnabled(): boolean;
|
|
59
|
+
get pretestMicEnabled(): boolean;
|
|
60
|
+
get defaultBeautyOptions(): {
|
|
61
|
+
smooth: number;
|
|
62
|
+
brightening: number;
|
|
63
|
+
blush: number;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* 麦克风测试音量
|
|
67
|
+
* @returns 音量 0 ~ 1
|
|
68
|
+
*/
|
|
69
|
+
get localRecordingTestVolume(): number;
|
|
70
|
+
/**
|
|
71
|
+
* 扬声器测试音量
|
|
72
|
+
* @returns 音量 0 ~ 1
|
|
73
|
+
*/
|
|
74
|
+
get localPlaybackTestVolume(): number;
|
|
75
|
+
/**
|
|
76
|
+
* 摄像头设备列表
|
|
77
|
+
* @returns
|
|
78
|
+
*/
|
|
79
|
+
/** @en
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
82
|
+
get cameraDevicesList(): {
|
|
83
|
+
text: string;
|
|
84
|
+
value: string;
|
|
85
|
+
}[];
|
|
86
|
+
/**
|
|
87
|
+
* 麦克风设备列表
|
|
88
|
+
* @returns
|
|
89
|
+
*/
|
|
90
|
+
/** @en
|
|
91
|
+
*
|
|
92
|
+
*/
|
|
93
|
+
get recordingDevicesList(): {
|
|
94
|
+
text: string;
|
|
95
|
+
value: string;
|
|
96
|
+
}[];
|
|
97
|
+
/**
|
|
98
|
+
* 扬声器设备列表
|
|
99
|
+
* @returns
|
|
100
|
+
*/
|
|
101
|
+
/** @en
|
|
102
|
+
*
|
|
103
|
+
*/
|
|
104
|
+
get playbackDevicesList(): {
|
|
105
|
+
text: string;
|
|
106
|
+
value: string;
|
|
107
|
+
}[];
|
|
108
|
+
/**
|
|
109
|
+
* 获取视频设备信息
|
|
110
|
+
**/
|
|
111
|
+
/** @en
|
|
112
|
+
* get camera accessors
|
|
113
|
+
*/
|
|
114
|
+
get cameraAccessors(): {
|
|
115
|
+
classroomState: ClassroomState;
|
|
116
|
+
subRoomState: ClassroomState;
|
|
117
|
+
cameraDeviceId: string | undefined;
|
|
118
|
+
localCameraStream: import("agora-edu-core").EduStream | undefined;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* 音频设备信息
|
|
122
|
+
**/
|
|
123
|
+
/** @en
|
|
124
|
+
* mic Accessors
|
|
125
|
+
*/
|
|
126
|
+
get micAccessors(): {
|
|
127
|
+
classroomState: ClassroomState;
|
|
128
|
+
subRoomState: ClassroomState;
|
|
129
|
+
recordingDeviceId: string | undefined;
|
|
130
|
+
localMicStream: import("agora-edu-core").EduStream | undefined;
|
|
131
|
+
};
|
|
132
|
+
get virtualBackgroundList(): {
|
|
133
|
+
type: 'image' | 'video';
|
|
134
|
+
url: string;
|
|
135
|
+
}[];
|
|
136
|
+
/**
|
|
137
|
+
* 开始扬声器测试
|
|
138
|
+
* @param url
|
|
139
|
+
*/
|
|
140
|
+
startPlaybackDeviceTest(url: string): void;
|
|
141
|
+
/**
|
|
142
|
+
* 停止扬声器测试
|
|
143
|
+
*/
|
|
144
|
+
stopPlaybackDeviceTest(): void;
|
|
145
|
+
/**
|
|
146
|
+
* 开始麦克风测试
|
|
147
|
+
*/
|
|
148
|
+
startRecordingDeviceTest(): void;
|
|
149
|
+
/**
|
|
150
|
+
* 停止麦克风测试
|
|
151
|
+
*/
|
|
152
|
+
stopRecordingDeviceTest(): void;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @param options
|
|
156
|
+
*/
|
|
157
|
+
/** @en
|
|
158
|
+
*
|
|
159
|
+
* @param options
|
|
160
|
+
*/
|
|
161
|
+
setVirtualBackground(options: VirtualBackgroundOptions): void;
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @param type
|
|
165
|
+
*/
|
|
166
|
+
/** @en
|
|
167
|
+
*
|
|
168
|
+
* @param type
|
|
169
|
+
*/
|
|
170
|
+
setBeautyType(type: keyof BeautyFilterOptions): void;
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
* @param options
|
|
174
|
+
*/
|
|
175
|
+
/** @en
|
|
176
|
+
*
|
|
177
|
+
* @param options
|
|
178
|
+
*/
|
|
179
|
+
setBeautyFilter(options: Partial<BeautyFilterOptions>): void;
|
|
180
|
+
setCameraDevice(deviceId: string): void;
|
|
181
|
+
toggleCameraDevice(): void;
|
|
182
|
+
enableCamera(value: boolean): void;
|
|
183
|
+
toggleCameraPreview(): void;
|
|
184
|
+
startCameraPreview(): void;
|
|
185
|
+
stopCameraPreview(): void;
|
|
186
|
+
setAudioRecordingDevice(deviceId: string): void;
|
|
187
|
+
updateAudioRecordingTrack(): void;
|
|
188
|
+
toggleAudioRecordingDevice(): void;
|
|
189
|
+
enableAudioRecording(value: boolean): void;
|
|
190
|
+
toggleAudioRecordingPreview(): void;
|
|
191
|
+
startAudioRecordingPreview(): void;
|
|
192
|
+
stopAudioRecordingPreview(): void;
|
|
193
|
+
setAudioPlaybackDevice(deviceId: string): void;
|
|
194
|
+
toggleAudioPlaybackDevice(): void;
|
|
195
|
+
enableAudioPlayback(value: boolean): void;
|
|
196
|
+
toggleLocalMirror(): void;
|
|
197
|
+
setupLocalVideo(dom: HTMLElement, mirror: boolean): void;
|
|
198
|
+
setupLocalVideoPreview(dom: HTMLElement, mirror: boolean): void;
|
|
199
|
+
getStream(): import("agora-rte-sdk").AgoraRteCameraVideoTrack;
|
|
200
|
+
closeVirtualBackground(): void;
|
|
201
|
+
closeBeautyFilter(): void;
|
|
202
|
+
toggleAiDenoiser(): void;
|
|
203
|
+
private _onReceiveChannelMessage;
|
|
204
|
+
private _onReceivePeerMessage;
|
|
205
|
+
/**
|
|
206
|
+
* @internal
|
|
207
|
+
*/
|
|
208
|
+
/** @en
|
|
209
|
+
* @internal
|
|
210
|
+
*/
|
|
211
|
+
onInstall(): void;
|
|
212
|
+
/**
|
|
213
|
+
* @internal
|
|
214
|
+
*/
|
|
215
|
+
/** @en
|
|
216
|
+
* @internal
|
|
217
|
+
*/
|
|
218
|
+
onDestroy(): void;
|
|
219
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EduUIStoreBase } from './base';
|
|
2
|
+
import { EduStreamUI } from '@ui-scene/utils/stream/struct';
|
|
3
|
+
export declare class GalleryUIStore extends EduUIStoreBase {
|
|
4
|
+
mainViewStreamUuid: string | null;
|
|
5
|
+
pageSize: number;
|
|
6
|
+
currentPage: number;
|
|
7
|
+
get mainViewStream(): EduStreamUI | null;
|
|
8
|
+
get showPager(): boolean;
|
|
9
|
+
get totalPage(): number;
|
|
10
|
+
get streamsByPage(): EduStreamUI[];
|
|
11
|
+
get cameraUIStreamsSortByPin(): EduStreamUI[];
|
|
12
|
+
setCurrentPage(page: number): void;
|
|
13
|
+
private _handleMainCameraStream;
|
|
14
|
+
onDestroy(): void;
|
|
15
|
+
onInstall(): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { EduStreamUI } from '@ui-scene/utils/stream/struct';
|
|
2
|
+
import { EduStream } from 'agora-edu-core';
|
|
3
|
+
import { SceneUIStore } from '.';
|
|
4
|
+
export declare class Getters {
|
|
5
|
+
private _classroomUIStore;
|
|
6
|
+
constructor(_classroomUIStore: SceneUIStore);
|
|
7
|
+
get classroomUIStore(): SceneUIStore;
|
|
8
|
+
get boardApi(): import("../extension/board").Board;
|
|
9
|
+
get eduTool(): import("../extension/edu-tool").EduTool;
|
|
10
|
+
get layout(): import("./type").Layout;
|
|
11
|
+
get widgetInstanceList(): import("agora-common-libs/*").FcrUISceneWidget[];
|
|
12
|
+
get isGranted(): boolean;
|
|
13
|
+
get roomName(): string;
|
|
14
|
+
get roomUuid(): string;
|
|
15
|
+
get isHost(): boolean;
|
|
16
|
+
get isTeacher(): boolean;
|
|
17
|
+
get isAssistant(): boolean;
|
|
18
|
+
get isStudent(): boolean;
|
|
19
|
+
get isAudience(): boolean;
|
|
20
|
+
get localUser(): import("agora-edu-core").EduUserStruct | undefined;
|
|
21
|
+
get cameraStreams(): Set<EduStream>;
|
|
22
|
+
get cameraUIStreams(): EduStreamUI[];
|
|
23
|
+
get teacherUIStream(): EduStreamUI | undefined;
|
|
24
|
+
get localCameraStream(): EduStreamUI | undefined;
|
|
25
|
+
get screenShareUIStream(): EduStreamUI | null;
|
|
26
|
+
get isScreenSharing(): boolean;
|
|
27
|
+
get isLocalScreenSharing(): boolean;
|
|
28
|
+
get pinnedUIStream(): EduStreamUI | null;
|
|
29
|
+
userCameraStreamByUserUuid: (userUuid: string) => EduStream;
|
|
30
|
+
get layoutReady(): boolean;
|
|
31
|
+
get isBoardWidgetActive(): boolean;
|
|
32
|
+
get isBoardWidgetMinimized(): boolean;
|
|
33
|
+
get viewportBoundaries(): import("agora-common-libs/*").AgoraViewportBoundaries;
|
|
34
|
+
get activeWidgetIds(): string[];
|
|
35
|
+
get isBreakoutActive(): boolean;
|
|
36
|
+
get isBreakoutStarted(): boolean;
|
|
37
|
+
get isBreakoutMinimized(): boolean;
|
|
38
|
+
get isJoiningSubRoom(): boolean;
|
|
39
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { EduClassroomStore } from 'agora-edu-core';
|
|
2
|
+
import { AgoraRteScene } from 'agora-rte-sdk';
|
|
3
|
+
import { DeviceSettingUIStore } from './device-setting';
|
|
4
|
+
import { ActionBarUIStore } from './action-bar';
|
|
5
|
+
import { Getters } from './getters';
|
|
6
|
+
import { LayoutUIStore } from './layout';
|
|
7
|
+
import { StatusBarUIStore } from './status-bar';
|
|
8
|
+
import { GalleryUIStore } from './gallery-view';
|
|
9
|
+
import { StreamUIStore } from './stream';
|
|
10
|
+
import { Board } from '../extension/board';
|
|
11
|
+
import { WidgetUIStore } from './widget';
|
|
12
|
+
import { PresentationUIStore } from './presentation-view';
|
|
13
|
+
import { SubscriptionUIStore } from './subscription';
|
|
14
|
+
import { ParticipantsUIStore } from './participants';
|
|
15
|
+
import { NotiticationUIStore } from './notification';
|
|
16
|
+
import { EduTool } from '@ui-scene/extension/edu-tool';
|
|
17
|
+
import { CloudUIStore } from './cloud';
|
|
18
|
+
import { BreakoutUIStore } from './breakout';
|
|
19
|
+
export declare class SceneUIStore {
|
|
20
|
+
private _installed;
|
|
21
|
+
private _devicePretestFinished;
|
|
22
|
+
readonly getters: Getters;
|
|
23
|
+
readonly classroomStore: EduClassroomStore;
|
|
24
|
+
readonly layoutUIStore: LayoutUIStore;
|
|
25
|
+
readonly statusBarUIStore: StatusBarUIStore;
|
|
26
|
+
readonly deviceSettingUIStore: DeviceSettingUIStore;
|
|
27
|
+
readonly actionBarUIStore: ActionBarUIStore;
|
|
28
|
+
readonly galleryUIStore: GalleryUIStore;
|
|
29
|
+
readonly streamUIStore: StreamUIStore;
|
|
30
|
+
readonly widgetUIStore: WidgetUIStore;
|
|
31
|
+
readonly presentationUIStore: PresentationUIStore;
|
|
32
|
+
readonly subscriptionUIStore: SubscriptionUIStore;
|
|
33
|
+
readonly participantsUIStore: ParticipantsUIStore;
|
|
34
|
+
readonly notiticationUIStore: NotiticationUIStore;
|
|
35
|
+
readonly cloudUIStore: CloudUIStore;
|
|
36
|
+
readonly breakoutUIStore: BreakoutUIStore;
|
|
37
|
+
readonly boardApi: Board;
|
|
38
|
+
readonly eduToolApi: EduTool;
|
|
39
|
+
constructor();
|
|
40
|
+
get initialized(): boolean;
|
|
41
|
+
get devicePretestFinished(): boolean;
|
|
42
|
+
initialize(): void;
|
|
43
|
+
setDevicePretestFinished(): void;
|
|
44
|
+
enableDualStream(fromScene?: AgoraRteScene): Promise<void>;
|
|
45
|
+
join(): Promise<void>;
|
|
46
|
+
destroy(): void;
|
|
47
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { EduUIStoreBase } from './base';
|
|
2
|
+
import { CommonDialogType, DialogType, Layout } from './type';
|
|
3
|
+
import { ConfirmDialogProps } from '@components/dialog/confirm-dialog';
|
|
4
|
+
import { AgoraViewportBoundaries } from 'agora-common-libs';
|
|
5
|
+
import { ClassDialogProps } from '@components/dialog/class-dialog';
|
|
6
|
+
export declare class LayoutUIStore extends EduUIStoreBase {
|
|
7
|
+
private _clearScreenTask;
|
|
8
|
+
private _clearScreenDelay;
|
|
9
|
+
private _isPointingBar;
|
|
10
|
+
private _hasPopoverShowed;
|
|
11
|
+
private _classroomViewportClassName;
|
|
12
|
+
private _viewportResizeObserver?;
|
|
13
|
+
statusBarHeight: number;
|
|
14
|
+
actionBarHeight: number;
|
|
15
|
+
viewportBoundaries: AgoraViewportBoundaries;
|
|
16
|
+
mouseEnterClass: boolean;
|
|
17
|
+
layoutReady: boolean;
|
|
18
|
+
showStatusBar: boolean;
|
|
19
|
+
showActiobBar: boolean;
|
|
20
|
+
layout: Layout;
|
|
21
|
+
setLayout(layout: Layout): void;
|
|
22
|
+
showListView: boolean;
|
|
23
|
+
toggleShowListView(): void;
|
|
24
|
+
dialogMap: Map<string, {
|
|
25
|
+
type: DialogType;
|
|
26
|
+
}>;
|
|
27
|
+
hasDialogOf(type: DialogType): boolean;
|
|
28
|
+
isDialogIdExist(id: string): boolean;
|
|
29
|
+
addDialog(type: 'confirm', params: CommonDialogType<ConfirmDialogProps>): void;
|
|
30
|
+
addDialog(type: 'participants'): void;
|
|
31
|
+
addDialog(type: 'class-info', params: CommonDialogType<ClassDialogProps>): void;
|
|
32
|
+
deleteDialog: (id: string) => void;
|
|
33
|
+
setIsPointingBar(disable: boolean): void;
|
|
34
|
+
setHasPopoverShowed(has: boolean): void;
|
|
35
|
+
get showLoading(): boolean;
|
|
36
|
+
get stageSize(): 0 | 210 | 135;
|
|
37
|
+
get gridLayoutDisabled(): boolean;
|
|
38
|
+
get noAvailabelStream(): boolean;
|
|
39
|
+
get disableClearScreen(): boolean;
|
|
40
|
+
get classroomViewportClassName(): string;
|
|
41
|
+
clearScreen: () => void;
|
|
42
|
+
activeStatusBarAndActionBar: () => void;
|
|
43
|
+
resetClearScreenTask: () => void;
|
|
44
|
+
handleMouseMove(): void;
|
|
45
|
+
handleMouseLeave(): void;
|
|
46
|
+
setLayoutReady(ready: boolean): void;
|
|
47
|
+
classroomSizeToBoardSize: (containerNode: Window | HTMLElement) => {
|
|
48
|
+
calcWidth: number;
|
|
49
|
+
calcHeight: number;
|
|
50
|
+
};
|
|
51
|
+
boardSizeToClassroomSize: ({ w, h }: {
|
|
52
|
+
w: number;
|
|
53
|
+
h: number;
|
|
54
|
+
}) => {
|
|
55
|
+
width: number;
|
|
56
|
+
height: number;
|
|
57
|
+
};
|
|
58
|
+
_handleLayoutChanged(): void;
|
|
59
|
+
private _addViewportResizeObserver;
|
|
60
|
+
private _removeViewportResizeObserver;
|
|
61
|
+
private _updateViewportBoundaries;
|
|
62
|
+
onDestroy(): void;
|
|
63
|
+
onInstall(): void;
|
|
64
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EduUIStoreBase } from './base';
|
|
2
|
+
export declare class NotiticationUIStore extends EduUIStoreBase {
|
|
3
|
+
private _prevClassState;
|
|
4
|
+
private _handleClassroomEvent;
|
|
5
|
+
private _filterUsers;
|
|
6
|
+
private _getStateErrorReason;
|
|
7
|
+
onDestroy(): void;
|
|
8
|
+
onInstall(): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { EduStreamUI } from '@ui-scene/utils/stream/struct';
|
|
2
|
+
import { EduRoleTypeEnum } from 'agora-edu-core';
|
|
3
|
+
import { EduUIStoreBase } from './base';
|
|
4
|
+
export declare enum ParticipantsTableSortKeysEnum {
|
|
5
|
+
Auth = "Auth",
|
|
6
|
+
Camera = "Camera",
|
|
7
|
+
Microphone = "Microphone",
|
|
8
|
+
Reward = "Reward",
|
|
9
|
+
RaiseHand = "Raise hand"
|
|
10
|
+
}
|
|
11
|
+
export declare type ParticipantsOrderDirection = 'asc' | 'desc';
|
|
12
|
+
export declare class ParticipantsUIStore extends EduUIStoreBase {
|
|
13
|
+
participantsDialogVisible: boolean;
|
|
14
|
+
setParticipantsDialogVisible(visible: boolean): void;
|
|
15
|
+
toggleParticipantsDialogVisible(): void;
|
|
16
|
+
orderKey: string;
|
|
17
|
+
setOrderKey(orderKey: string): void;
|
|
18
|
+
orderDirection: ParticipantsOrderDirection;
|
|
19
|
+
setOrderDirection(orderDirection: ParticipantsOrderDirection): void;
|
|
20
|
+
participants: never[];
|
|
21
|
+
tableIconSize: number;
|
|
22
|
+
get isAudience(): boolean;
|
|
23
|
+
get isHost(): boolean;
|
|
24
|
+
get isTeacher(): boolean;
|
|
25
|
+
isHostByUserRole: (role: EduRoleTypeEnum) => boolean;
|
|
26
|
+
searchKey: string;
|
|
27
|
+
setSearchKey(text: string): void;
|
|
28
|
+
get participantList(): {
|
|
29
|
+
user: import("agora-edu-core").EduUserStruct;
|
|
30
|
+
stream: EduStreamUI | undefined;
|
|
31
|
+
notAllowed: boolean;
|
|
32
|
+
}[];
|
|
33
|
+
get participantTableList(): {
|
|
34
|
+
user: import("agora-edu-core").EduUserStruct;
|
|
35
|
+
stream: EduStreamUI | undefined;
|
|
36
|
+
notAllowed: boolean;
|
|
37
|
+
}[];
|
|
38
|
+
get participantStudentList(): {
|
|
39
|
+
user: import("agora-edu-core").EduUserStruct;
|
|
40
|
+
stream: EduStreamUI | undefined;
|
|
41
|
+
notAllowed: boolean;
|
|
42
|
+
}[];
|
|
43
|
+
sendReward(userUuid: string): Promise<void>;
|
|
44
|
+
grantPrivilege(userUuid: string, granted: boolean): void;
|
|
45
|
+
rewardsByUserUuid: (userUuid: string) => number;
|
|
46
|
+
onDestroy(): void;
|
|
47
|
+
onInstall(): void;
|
|
48
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EduUIStoreBase } from './base';
|
|
2
|
+
export declare enum ListViewStreamPageSize {
|
|
3
|
+
Normal = 6,
|
|
4
|
+
Compact = 5
|
|
5
|
+
}
|
|
6
|
+
export declare class PresentationUIStore extends EduUIStoreBase {
|
|
7
|
+
boardViewportSize?: {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
};
|
|
11
|
+
pageSize: ListViewStreamPageSize;
|
|
12
|
+
setPageSize(size: number): void;
|
|
13
|
+
currentPage: number;
|
|
14
|
+
setCurrentPage(page: number): void;
|
|
15
|
+
get isBoardWidgetActive(): boolean;
|
|
16
|
+
get isBoardWidgetMinimized(): boolean;
|
|
17
|
+
get mainViewStream(): import("../utils/stream/struct").EduStreamUI | undefined;
|
|
18
|
+
get totalPage(): number;
|
|
19
|
+
get showPager(): boolean;
|
|
20
|
+
get listViewStreamsByPage(): import("../utils/stream/struct").EduStreamUI[];
|
|
21
|
+
get cameraUIStreamsSortByRole(): import("../utils/stream/struct").EduStreamUI[];
|
|
22
|
+
onDestroy(): void;
|
|
23
|
+
onInstall(): void;
|
|
24
|
+
}
|