educast-classroom-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/README.md +21 -0
- package/lib/edu_sdk.bundle.js +2 -0
- package/lib/edu_sdk.bundle.js.LICENSE.txt +164 -0
- package/lib/infra/api/index.d.ts +50 -0
- package/lib/infra/api/lock.d.ts +8 -0
- package/lib/infra/api/polyfills.d.ts +0 -0
- package/lib/infra/api/providers.d.ts +7 -0
- package/lib/infra/api/rtc-extensions/index.d.ts +29 -0
- package/lib/infra/api/type.d.ts +107 -0
- package/lib/infra/capabilities/config.d.ts +21 -0
- package/lib/infra/capabilities/containers/action-sheet-mobile/hands-up.mobile.d.ts +3 -0
- package/lib/infra/capabilities/containers/action-sheet-mobile/mic.d.ts +5 -0
- package/lib/infra/capabilities/containers/action-sheet-mobile/share.mobile.d.ts +3 -0
- package/lib/infra/capabilities/containers/aside/index.d.ts +3 -0
- package/lib/infra/capabilities/containers/award/index.d.ts +3 -0
- package/lib/infra/capabilities/containers/camera-preview/index.d.ts +3 -0
- package/lib/infra/capabilities/containers/cloud-driver/cloud-driver.d.ts +13 -0
- package/lib/infra/capabilities/containers/cloud-driver/cloud-help.d.ts +2 -0
- package/lib/infra/capabilities/containers/cloud-driver/cloud-minimize.d.ts +3 -0
- package/lib/infra/capabilities/containers/cloud-driver/cloud-more-menu.d.ts +6 -0
- package/lib/infra/capabilities/containers/cloud-driver/cloud-toolbar.d.ts +21 -0
- package/lib/infra/capabilities/containers/cloud-driver/index.d.ts +6 -0
- package/lib/infra/capabilities/containers/cloud-driver/person-resource.d.ts +6 -0
- package/lib/infra/capabilities/containers/cloud-driver/public-resource.d.ts +2 -0
- package/lib/infra/capabilities/containers/device-setting/index.d.ts +5 -0
- package/lib/infra/capabilities/containers/dialog/breakout-room/confirm-dialog.d.ts +10 -0
- package/lib/infra/capabilities/containers/dialog/breakout-room/confirm-panel.d.ts +10 -0
- package/lib/infra/capabilities/containers/dialog/breakout-room/fragments/group-select.d.ts +7 -0
- package/lib/infra/capabilities/containers/dialog/breakout-room/fragments/start.d.ts +10 -0
- package/lib/infra/capabilities/containers/dialog/breakout-room/group.d.ts +17 -0
- package/lib/infra/capabilities/containers/dialog/breakout-room/index.d.ts +5 -0
- package/lib/infra/capabilities/containers/dialog/breakout-room/panel.d.ts +23 -0
- package/lib/infra/capabilities/containers/dialog/breakout-room/user.d.ts +18 -0
- package/lib/infra/capabilities/containers/dialog/confirm.d.ts +13 -0
- package/lib/infra/capabilities/containers/dialog/error-generic.d.ts +9 -0
- package/lib/infra/capabilities/containers/dialog/index.d.ts +5 -0
- package/lib/infra/capabilities/containers/dialog/kick-out.d.ts +5 -0
- package/lib/infra/capabilities/containers/dialog/quit.d.ts +6 -0
- package/lib/infra/capabilities/containers/dialog/remote-control-confirm/index.d.ts +7 -0
- package/lib/infra/capabilities/containers/dialog/screen-picker/index.d.ts +30 -0
- package/lib/infra/capabilities/containers/dialog/screen-share/index.d.ts +8 -0
- package/lib/infra/capabilities/containers/dialog/video-gallery/hooks.d.ts +33 -0
- package/lib/infra/capabilities/containers/dialog/video-gallery/index.d.ts +22 -0
- package/lib/infra/capabilities/containers/dialog/video-gallery/pager.d.ts +9 -0
- package/lib/infra/capabilities/containers/dialog/video-gallery/setting.d.ts +11 -0
- package/lib/infra/capabilities/containers/fragments/video-gallery/context.d.ts +5 -0
- package/lib/infra/capabilities/containers/fragments/video-gallery/hooks.d.ts +35 -0
- package/lib/infra/capabilities/containers/fragments/video-gallery/index.d.ts +4 -0
- package/lib/infra/capabilities/containers/fragments/video-gallery/renderer.d.ts +22 -0
- package/lib/infra/capabilities/containers/hand-up/index.d.ts +5 -0
- package/lib/infra/capabilities/containers/hand-up/invite-confirm.d.ts +13 -0
- package/lib/infra/capabilities/containers/hand-up/invite-container.d.ts +7 -0
- package/lib/infra/capabilities/containers/hand-up/invite-table.d.ts +7 -0
- package/lib/infra/capabilities/containers/hand-up/manager.d.ts +12 -0
- package/lib/infra/capabilities/containers/hand-up/sender.d.ts +34 -0
- package/lib/infra/capabilities/containers/hand-up/types.d.ts +14 -0
- package/lib/infra/capabilities/containers/loading/index.d.ts +3 -0
- package/lib/infra/capabilities/containers/nav/index.d.ts +7 -0
- package/lib/infra/capabilities/containers/pretest/form-field/index.d.ts +23 -0
- package/lib/infra/capabilities/containers/pretest/form-field/select.d.ts +5 -0
- package/lib/infra/capabilities/containers/pretest/index.d.ts +11 -0
- package/lib/infra/capabilities/containers/pretest/pretest-audio.d.ts +2 -0
- package/lib/infra/capabilities/containers/pretest/pretest-footer.d.ts +5 -0
- package/lib/infra/capabilities/containers/pretest/pretest-stage.d.ts +2 -0
- package/lib/infra/capabilities/containers/pretest/pretest-video.d.ts +5 -0
- package/lib/infra/capabilities/containers/pretest/volume.d.ts +8 -0
- package/lib/infra/capabilities/containers/root-box/fixed-aspect-ratio.d.ts +24 -0
- package/lib/infra/capabilities/containers/root-box/hooks.d.ts +4 -0
- package/lib/infra/capabilities/containers/root-box/index.d.ts +1 -0
- package/lib/infra/capabilities/containers/roster/button.d.ts +3 -0
- package/lib/infra/capabilities/containers/roster/index.d.ts +2 -0
- package/lib/infra/capabilities/containers/roster/lecture-user-list.d.ts +5 -0
- package/lib/infra/capabilities/containers/roster/user-list.d.ts +5 -0
- package/lib/infra/capabilities/containers/scene-switch/index.d.ts +7 -0
- package/lib/infra/capabilities/containers/scenes-controller/index.d.ts +3 -0
- package/lib/infra/capabilities/containers/screen-share/index.d.ts +12 -0
- package/lib/infra/capabilities/containers/screen-share/index.mobile.d.ts +3 -0
- package/lib/infra/capabilities/containers/stream/cdn-player.d.ts +24 -0
- package/lib/infra/capabilities/containers/stream/draggable-stream.d.ts +10 -0
- package/lib/infra/capabilities/containers/stream/index.d.ts +41 -0
- package/lib/infra/capabilities/containers/stream/index.mobile.d.ts +23 -0
- package/lib/infra/capabilities/containers/stream/room-1v1-player.d.ts +4 -0
- package/lib/infra/capabilities/containers/stream/room-big-class-player.mobile.d.ts +12 -0
- package/lib/infra/capabilities/containers/stream/room-big-player.d.ts +3 -0
- package/lib/infra/capabilities/containers/stream/room-mid-player.d.ts +4 -0
- package/lib/infra/capabilities/containers/stream/stream-tool.d.ts +12 -0
- package/lib/infra/capabilities/containers/stream/track-player.d.ts +21 -0
- package/lib/infra/capabilities/containers/stream/video-live-player.d.ts +16 -0
- package/lib/infra/capabilities/containers/stream-window/index.d.ts +9 -0
- package/lib/infra/capabilities/containers/toast/index.d.ts +3 -0
- package/lib/infra/capabilities/containers/toast/index.mobile.d.ts +3 -0
- package/lib/infra/capabilities/containers/toolbar/board-cleaners/index.d.ts +2 -0
- package/lib/infra/capabilities/containers/toolbar/index.d.ts +2 -0
- package/lib/infra/capabilities/containers/toolbar/pens/index.d.ts +5 -0
- package/lib/infra/capabilities/containers/toolbar/slice/index.d.ts +2 -0
- package/lib/infra/capabilities/containers/toolbar/tool-cabinet/index.d.ts +2 -0
- package/lib/infra/capabilities/containers/widget/index.d.ts +7 -0
- package/lib/infra/capabilities/containers/widget/index.mobile.d.ts +6 -0
- package/lib/infra/capabilities/containers/widget/slots.d.ts +8 -0
- package/lib/infra/capabilities/containers/widget/track.d.ts +22 -0
- package/lib/infra/capabilities/scenarios/1v1/index.d.ts +2 -0
- package/lib/infra/capabilities/scenarios/big-class/index.d.ts +2 -0
- package/lib/infra/capabilities/scenarios/big-class-mobile/index.mobile.d.ts +12 -0
- package/lib/infra/capabilities/scenarios/index.d.ts +10 -0
- package/lib/infra/capabilities/scenarios/mid-class/index.d.ts +2 -0
- package/lib/infra/capabilities/scenarios/room/index.d.ts +6 -0
- package/lib/infra/configs/base-theme.d.ts +391 -0
- package/lib/infra/configs/base-ui.d.ts +14 -0
- package/lib/infra/contexts/index.d.ts +15 -0
- package/lib/infra/contexts/ui-store-factory.d.ts +6 -0
- package/lib/infra/hooks/cabinet.d.ts +4 -0
- package/lib/infra/hooks/index.d.ts +6 -0
- package/lib/infra/hooks/ui-store.d.ts +10 -0
- package/lib/infra/hooks/utilites.d.ts +3 -0
- package/lib/infra/protocol/board.d.ts +70 -0
- package/lib/infra/protocol/events.d.ts +67 -0
- package/lib/infra/protocol/index.d.ts +24 -0
- package/lib/infra/protocol/type.d.ts +70 -0
- package/lib/infra/stores/common/base.d.ts +46 -0
- package/lib/infra/stores/common/board/index.d.ts +41 -0
- package/lib/infra/stores/common/cloud-drive/helper.d.ts +14 -0
- package/lib/infra/stores/common/cloud-drive/index.d.ts +178 -0
- package/lib/infra/stores/common/cloud-drive/struct.d.ts +109 -0
- package/lib/infra/stores/common/cloud-drive/type.d.ts +23 -0
- package/lib/infra/stores/common/device-setting/index.d.ts +68 -0
- package/lib/infra/stores/common/getters.d.ts +61 -0
- package/lib/infra/stores/common/group/index.d.ts +139 -0
- package/lib/infra/stores/common/hand-up/index.d.ts +119 -0
- package/lib/infra/stores/common/hand-up/type.d.ts +18 -0
- package/lib/infra/stores/common/index.d.ts +78 -0
- package/lib/infra/stores/common/layout/helper.d.ts +4 -0
- package/lib/infra/stores/common/layout/index.d.ts +20 -0
- package/lib/infra/stores/common/nav/index.d.ts +184 -0
- package/lib/infra/stores/common/notification/index.d.ts +55 -0
- package/lib/infra/stores/common/pretest/helper.d.ts +1 -0
- package/lib/infra/stores/common/pretest/index.d.ts +299 -0
- package/lib/infra/stores/common/pretest/type.d.ts +8 -0
- package/lib/infra/stores/common/roster/index.d.ts +162 -0
- package/lib/infra/stores/common/roster/type.d.ts +55 -0
- package/lib/infra/stores/common/share/index.d.ts +149 -0
- package/lib/infra/stores/common/stream/index.d.ts +257 -0
- package/lib/infra/stores/common/stream/state-keeper.d.ts +18 -0
- package/lib/infra/stores/common/stream/struct.d.ts +63 -0
- package/lib/infra/stores/common/stream/tool.d.ts +32 -0
- package/lib/infra/stores/common/stream-window/helper.d.ts +101 -0
- package/lib/infra/stores/common/stream-window/index.d.ts +223 -0
- package/lib/infra/stores/common/stream-window/struct.d.ts +95 -0
- package/lib/infra/stores/common/stream-window/type.d.ts +32 -0
- package/lib/infra/stores/common/subscription/abstract.d.ts +43 -0
- package/lib/infra/stores/common/subscription/index.d.ts +14 -0
- package/lib/infra/stores/common/subscription/main-room.d.ts +14 -0
- package/lib/infra/stores/common/subscription/type.d.ts +10 -0
- package/lib/infra/stores/common/toolbar/index.d.ts +145 -0
- package/lib/infra/stores/common/toolbar/type.d.ts +45 -0
- package/lib/infra/stores/common/type.d.ts +10 -0
- package/lib/infra/stores/common/video-gallery/index.d.ts +42 -0
- package/lib/infra/stores/common/widget/index.d.ts +40 -0
- package/lib/infra/stores/interactive/board.d.ts +6 -0
- package/lib/infra/stores/interactive/index.d.ts +7 -0
- package/lib/infra/stores/interactive/stream.d.ts +33 -0
- package/lib/infra/stores/lecture/board.d.ts +7 -0
- package/lib/infra/stores/lecture/index.d.ts +9 -0
- package/lib/infra/stores/lecture/roster.d.ts +57 -0
- package/lib/infra/stores/lecture/stream.d.ts +29 -0
- package/lib/infra/stores/lecture/toolbar.d.ts +11 -0
- package/lib/infra/stores/lecture-mobile/board.d.ts +16 -0
- package/lib/infra/stores/lecture-mobile/device-setting.d.ts +9 -0
- package/lib/infra/stores/lecture-mobile/index.d.ts +13 -0
- package/lib/infra/stores/lecture-mobile/layout.d.ts +40 -0
- package/lib/infra/stores/lecture-mobile/stream.d.ts +54 -0
- package/lib/infra/stores/one-on-one/index.d.ts +7 -0
- package/lib/infra/stores/one-on-one/stream.d.ts +12 -0
- package/lib/infra/stores/one-on-one/toolbar.d.ts +7 -0
- package/lib/infra/translate/en.d.ts +802 -0
- package/lib/infra/translate/zh.d.ts +802 -0
- package/lib/infra/utils/async-queue.d.ts +16 -0
- package/lib/infra/utils/board-utils.d.ts +22 -0
- package/lib/infra/utils/colors.d.ts +13 -0
- package/lib/infra/utils/config-loader.d.ts +9 -0
- package/lib/infra/utils/error.d.ts +12 -0
- package/lib/infra/utils/event-center.d.ts +20 -0
- package/lib/infra/utils/extract.d.ts +6 -0
- package/lib/infra/utils/index.d.ts +16 -0
- package/lib/infra/utils/interaction.d.ts +6 -0
- package/lib/infra/utils/ipc-channels.d.ts +39 -0
- package/lib/infra/utils/ipc.d.ts +48 -0
- package/lib/ui-kit/components/button/abutton.d.ts +6 -0
- package/lib/ui-kit/components/button/index.d.ts +18 -0
- package/lib/ui-kit/components/card/index.d.ts +14 -0
- package/lib/ui-kit/components/checkbox/index.d.ts +14 -0
- package/lib/ui-kit/components/float/index.d.ts +13 -0
- package/lib/ui-kit/components/index.d.ts +27 -0
- package/lib/ui-kit/components/input/ainput.d.ts +6 -0
- package/lib/ui-kit/components/input/index.d.ts +31 -0
- package/lib/ui-kit/components/input-number/index.d.ts +10 -0
- package/lib/ui-kit/components/layout/index.d.ts +12 -0
- package/lib/ui-kit/components/loading/index.d.ts +37 -0
- package/lib/ui-kit/components/modal/index.d.ts +32 -0
- package/lib/ui-kit/components/overlay-wrap/index.d.ts +15 -0
- package/lib/ui-kit/components/pagination/index.d.ts +5 -0
- package/lib/ui-kit/components/placeholder/index.d.ts +18 -0
- package/lib/ui-kit/components/popover/index.d.ts +9 -0
- package/lib/ui-kit/components/progress/index.d.ts +19 -0
- package/lib/ui-kit/components/radio/index.d.ts +21 -0
- package/lib/ui-kit/components/root-box/index.d.ts +5 -0
- package/lib/ui-kit/components/roster/carousel-setting.d.ts +5 -0
- package/lib/ui-kit/components/roster/columns.d.ts +7 -0
- package/lib/ui-kit/components/roster/hooks.d.ts +3 -0
- package/lib/ui-kit/components/roster/index.d.ts +140 -0
- package/lib/ui-kit/components/roster/roster.d.ts +3 -0
- package/lib/ui-kit/components/roster/table.d.ts +21 -0
- package/lib/ui-kit/components/select/index.d.ts +24 -0
- package/lib/ui-kit/components/slider/index.d.ts +17 -0
- package/lib/ui-kit/components/sound-player/index.d.ts +6 -0
- package/lib/ui-kit/components/svg-img/generate.d.ts +0 -0
- package/lib/ui-kit/components/svg-img/index.d.ts +37 -0
- package/lib/ui-kit/components/svg-img/paths/add-scene.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/add.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/alf.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/answer.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/arrow.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/ask-for-help.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/audio.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/authorized-solid.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/authorized.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/auto-play-failed.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/backward.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/bad-signal.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/beta.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/board-not-granted.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/buffing.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/calendar.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/camera-disabled.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/camera-enabled.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/camera-off-mobile.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/camera-on-mobile.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/camera.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/chat.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/checked.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/chevron-right.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/circle.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/clear.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/clicker.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/clock.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/close.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/cloud-file-help.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/cloud-more.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/cloud-refresh.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/cloud.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/collapse-stream-mobile.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/copy.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/countdown.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/delete.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/down.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/dropdown.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/edit.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/emoji.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/eraser.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/excel.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/exit.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/extension-actived.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/fcr-ppt-broken.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/forward.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/fullscreen-shrink.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/fullscreen.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/gooffstage.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/goonstage.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/group-discuss.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/h5.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/hand.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/hands-up-active.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/hands-up.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/id.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/image.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/indicator.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/invite-on-podium.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/invite-to-podium.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/kick-out.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/landscape.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/laser-pointer.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/line.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/link-solid.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/link.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/log.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/m-camera-off.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/m-camera.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/m-micphone-off.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/m-micphone.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/m-switch-camera.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/mark.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/matrix.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/max.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/maximize.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/menu-fold.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/menu-unfold.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/mic-disabled.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/mic-enabled.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/microphone-off-outline.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/microphone-off.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/microphone-on-outline.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/microphone-on.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/microphone.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/min.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/minimize.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/more.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/mute-mobile.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/no-authorized.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/no-discussion.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/none.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/normal-signal.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/on-podium.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/out.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pdf.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pen-arrow.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pen-circle.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pen-curve.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pen-line.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pen-pentagram.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pen-rhombus.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pen-square.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pen-triangle.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pen.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pentagram.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pic.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pip-off.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pip-on.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/placeholder-camera-broken.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/placeholder-camera-no-body.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/placeholder-camera-off.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/placeholder-no-ask.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/placeholder-no-file.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/placeholder-no-message.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/placeholder-no-search.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/placeholder-no-setup.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/placeholder-not-present.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/ppt.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pretest-check.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pretest-checked.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pretest-speaker.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/record.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/recording.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/red-caution.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/redo.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/register.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/replay.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/reset.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/restore.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/review.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/reward.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/rhombus.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/room-label.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/ruddy.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/save-ghost.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/search.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/select.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/set-outline.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/set.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/settings.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/share-close.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/share-default.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/share-hover.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/share-mobile.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/share-screen.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/slice-window.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/slice.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/speaker.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/square.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/stage.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/star-outline.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/star.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/stream-window-on.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/switch-screen-share-active.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/switch-screen-share.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/text.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/toast-info.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/toast-success.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/tools.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/triangle-down.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/triangle-solid-down.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/triangle-solid-right.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/triangle-solid-up.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/triangle.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/txt.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/undo.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/unknown-signal.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/unknown.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/unmute-mobile.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/video-gallery.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/video-switch-mobile.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/video.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/vote.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/whiteboard.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/whitening.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/word.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/zoom-in.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/zoom-out.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/svg-dict.d.ts +12 -0
- package/lib/ui-kit/components/svg-img/type.d.ts +182 -0
- package/lib/ui-kit/components/svga-player/index.d.ts +11 -0
- package/lib/ui-kit/components/svga-player/svga-types.d.ts +1 -0
- package/lib/ui-kit/components/table/index.d.ts +40 -0
- package/lib/ui-kit/components/tabs/index.d.ts +7 -0
- package/lib/ui-kit/components/toast/index.d.ts +16 -0
- package/lib/ui-kit/components/toolbar/board-cleaners.d.ts +15 -0
- package/lib/ui-kit/components/toolbar/index.d.ts +14 -0
- package/lib/ui-kit/components/toolbar/pens.d.ts +19 -0
- package/lib/ui-kit/components/toolbar/slice.d.ts +14 -0
- package/lib/ui-kit/components/toolbar/tool-cabinet.d.ts +7 -0
- package/lib/ui-kit/components/toolbar/tool.d.ts +19 -0
- package/lib/ui-kit/components/toolbar/util.d.ts +3 -0
- package/lib/ui-kit/components/tooltip/index.d.ts +30 -0
- package/lib/ui-kit/components/tooltip/placements.d.ts +17 -0
- package/lib/ui-kit/components/tree/index.d.ts +34 -0
- package/lib/ui-kit/components/util/colors.d.ts +3 -0
- package/lib/ui-kit/components/util/getRenderPropValue.d.ts +3 -0
- package/lib/ui-kit/components/util/motion.d.ts +5 -0
- package/lib/ui-kit/components/util/type.d.ts +13 -0
- package/lib/ui-kit/components/volume/index.d.ts +17 -0
- package/lib/ui-kit/index.d.ts +2 -0
- package/lib/ui-kit/utilities/hooks.d.ts +22 -0
- package/lib/ui-kit/utilities/index.d.ts +31 -0
- package/lib/ui-kit/utilities/state-color.d.ts +17 -0
- package/lib/ui-kit/utilities/style-config.d.ts +60 -0
- package/lib/ui-kit/utilities/types.d.ts +8 -0
- package/lib/worker-entry.bundle.worker.js.LICENSE.txt +3 -0
- package/package.json +152 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Logger } from 'agora-rte-sdk';
|
|
2
|
+
export declare enum WorkPriority {
|
|
3
|
+
high = 0,
|
|
4
|
+
normal = 1,
|
|
5
|
+
low = 2
|
|
6
|
+
}
|
|
7
|
+
declare class AsyncQueue {
|
|
8
|
+
logger: Logger;
|
|
9
|
+
private _handle?;
|
|
10
|
+
private _queue;
|
|
11
|
+
runNextTick(run: () => Promise<void>, fail: (e: Error) => void, priority?: WorkPriority): void;
|
|
12
|
+
sortWorks(): void;
|
|
13
|
+
private _execute;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: AsyncQueue;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare type FetchImageResult = {
|
|
2
|
+
width: number;
|
|
3
|
+
height: number;
|
|
4
|
+
file: File;
|
|
5
|
+
uuid: string;
|
|
6
|
+
url: string;
|
|
7
|
+
};
|
|
8
|
+
export declare type BaseImageSize = {
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const getImageSize: (imageInnerSize: BaseImageSize) => BaseImageSize;
|
|
13
|
+
export declare const fetchNetlessImageByUrl: (url: string) => Promise<FetchImageResult>;
|
|
14
|
+
export declare const rgbToHexColor: (r: number, g: number, b: number) => string;
|
|
15
|
+
/**
|
|
16
|
+
* Mimetypes
|
|
17
|
+
*
|
|
18
|
+
* @see http://hul.harvard.edu/ois/////systems/wax/wax-public-help/mimetypes.htm
|
|
19
|
+
* @typedef Mimetypes~Kind
|
|
20
|
+
* @enum
|
|
21
|
+
*/
|
|
22
|
+
export declare const MimeTypesKind: Record<string, string>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const brandColor = "#0056FD";
|
|
2
|
+
export declare const blue1: string;
|
|
3
|
+
export declare const blue2: string;
|
|
4
|
+
export declare const blue3: string;
|
|
5
|
+
export declare const blue4: string;
|
|
6
|
+
export declare const blue5: string;
|
|
7
|
+
export declare const blue6 = "#0056FD";
|
|
8
|
+
export declare const blue7: string;
|
|
9
|
+
export declare const blue8: string;
|
|
10
|
+
export declare const blue9: string;
|
|
11
|
+
export declare const blue10: string;
|
|
12
|
+
export declare const primaryRadius = "24px";
|
|
13
|
+
export declare const halfRadius = "12px";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EduRoomTypeEnum } from 'agora-edu-core';
|
|
2
|
+
import { FcrMultiThemes, FcrTheme, FcrUIConfig } from 'agora-common-libs';
|
|
3
|
+
export declare const themes: Record<string, FcrMultiThemes>;
|
|
4
|
+
export declare const uiConfigs: Record<string, FcrUIConfig>;
|
|
5
|
+
export declare const supportedRoomTypes: EduRoomTypeEnum[];
|
|
6
|
+
export declare const loadTheme: (key: string, theme: FcrMultiThemes) => void;
|
|
7
|
+
export declare const loadUIConfig: (roomType: EduRoomTypeEnum, config: FcrUIConfig) => void;
|
|
8
|
+
export declare const applyTheme: (theme: FcrTheme) => void;
|
|
9
|
+
export declare const loadGeneratedFiles: () => void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 返回错误提示信息
|
|
3
|
+
* @param error
|
|
4
|
+
* @returns
|
|
5
|
+
*/
|
|
6
|
+
export declare const getEduErrorMessage: (error: Error) => string | null;
|
|
7
|
+
/**
|
|
8
|
+
* 如果Error中包含有服务端错误码,则返回服务端错误码
|
|
9
|
+
* @param error
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
export declare const getErrorServCode: (error: Error) => any;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AGEventEmitter } from 'agora-rte-sdk';
|
|
2
|
+
export declare const AgoraEduClassRoomUIType = "classroom-ui-events";
|
|
3
|
+
export declare enum AgoraEduClassroomUIEvent {
|
|
4
|
+
offStreamWindow = "off-stream-window",
|
|
5
|
+
toggleTeacherStreamWindow = "toggle-teacher-stream-window",
|
|
6
|
+
toggleWhiteboard = "toggle-whiteboard",
|
|
7
|
+
dragFileOverBoard = "drag-file-over-board",
|
|
8
|
+
dropFileOnBoard = "drop-file-on-board"
|
|
9
|
+
}
|
|
10
|
+
declare type EventCallback = (type: AgoraEduClassroomUIEvent, ...args: any[]) => void;
|
|
11
|
+
export declare class EduEventUICenter extends AGEventEmitter {
|
|
12
|
+
static shared: EduEventUICenter;
|
|
13
|
+
private _callbacks;
|
|
14
|
+
constructor();
|
|
15
|
+
emitClassroomUIEvents(type: AgoraEduClassroomUIEvent, ...args: any[]): void;
|
|
16
|
+
onClassroomUIEvents(cb: EventCallback): void;
|
|
17
|
+
offClassroomUIEvents(cb: EventCallback): void;
|
|
18
|
+
cleanup(): void;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { EduStream, EduUserStruct } from 'agora-edu-core';
|
|
2
|
+
import { AgoraRteVideoSourceType } from 'agora-rte-sdk';
|
|
3
|
+
/**
|
|
4
|
+
* 提取流列表
|
|
5
|
+
*/
|
|
6
|
+
export declare const extractUserStreams: (users: Map<string, EduUserStruct>, streamByUserUuid: Map<string, Set<string>>, streamByStreamUuid: Map<string, EduStream>, sourceTypes: AgoraRteVideoSourceType[]) => Set<EduStream>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const isProduction: boolean;
|
|
2
|
+
export declare const number2Percent: (v: number, fixed?: number) => string;
|
|
3
|
+
export declare function audioBufferToWav(buffer: any, opt?: any): ArrayBuffer;
|
|
4
|
+
export declare const appendBuffer: (buffer1: Float32Array, buffer2: Float32Array) => Float32Array;
|
|
5
|
+
export declare const mapToObject: (map: Map<any, any>) => any;
|
|
6
|
+
export declare function isSupportedImageType(file: File): boolean;
|
|
7
|
+
export declare const dataURIToFile: (dataURI: string, filename: string) => File;
|
|
8
|
+
export declare const jumpToLine: (str: string) => string;
|
|
9
|
+
export declare const getAssetURL: (relativeURL: string) => any;
|
|
10
|
+
export declare const clickAnywhere: (el: HTMLElement, cb: () => void) => () => void;
|
|
11
|
+
export declare const isIOS: () => boolean;
|
|
12
|
+
export declare const getIOSVersion: () => number;
|
|
13
|
+
export declare const isWeChatBrowser: () => boolean;
|
|
14
|
+
export declare const setUrlParameters: (url: string, params: {
|
|
15
|
+
[key: string]: string | number | boolean;
|
|
16
|
+
}) => string;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IPC消息通道
|
|
3
|
+
*/
|
|
4
|
+
export declare enum ChannelType {
|
|
5
|
+
OpenBrowserWindow = "open-browser-window",
|
|
6
|
+
CloseBrowserWindow = "close-browser-window",
|
|
7
|
+
ShowBrowserWindow = "show-browser-window",
|
|
8
|
+
HideBrowserWindow = "hide-browser-window",
|
|
9
|
+
Message = "browser-window-message",
|
|
10
|
+
UpdateBrowserWindow = "update-browser-window",
|
|
11
|
+
MoveWindowToTargetScreen = "move-window-to-target-screen",
|
|
12
|
+
MoveWindowAlignToWindow = "move-window-align-to-window",
|
|
13
|
+
ShortCutCapture = "short-cut-capture",
|
|
14
|
+
RTCRawDataTransmit = "rtc-raw-data-transmit"
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* IPC消息类型
|
|
18
|
+
*/
|
|
19
|
+
export declare enum IPCMessageType {
|
|
20
|
+
/** App事件 */
|
|
21
|
+
BrowserWindowClose = "BrowserWindowClose",
|
|
22
|
+
BrowserWindowClosed = "BrowserWindowClosed",
|
|
23
|
+
/** 远程控制 */
|
|
24
|
+
ControlStateChanged = "ControlStateChanged",
|
|
25
|
+
HideControlBar = "HideControlBar",
|
|
26
|
+
CloseControlBar = "CloseControlBar",
|
|
27
|
+
StudentListUpdated = "StudentListUpdated",
|
|
28
|
+
FetchStudentList = "FetchStudentList",
|
|
29
|
+
StopScreenShareAndRemoteControl = "StopScreenShareAndRemoteControl",
|
|
30
|
+
SwitchScreenShareDevice = "SwitchScreenShareDevice",
|
|
31
|
+
/** 白板 */
|
|
32
|
+
ShortCutCaptureDone = "ShortCutCaptureDone",
|
|
33
|
+
ShortCutCaptureDenied = "ShortCutCaptureDenied",
|
|
34
|
+
/** 扩展屏 */
|
|
35
|
+
FetchVideoGalleryState = "FetchVideoGalleryState",
|
|
36
|
+
VideoGalleryStateUpdated = "VideoGalleryStateUpdated",
|
|
37
|
+
UpdateVideoGalleryState = "UpdateVideoGalleryState",
|
|
38
|
+
InviteStage = "InviteStage"
|
|
39
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { WindowID } from '../api';
|
|
2
|
+
import type { IpcRendererEvent } from 'electron';
|
|
3
|
+
import { ChannelType } from './ipc-channels';
|
|
4
|
+
declare type ChannelMessage = {
|
|
5
|
+
type: string;
|
|
6
|
+
payload?: unknown;
|
|
7
|
+
};
|
|
8
|
+
declare type ChannelMessageCallback = (event: IpcRendererEvent, message: ChannelMessage, ...args: any) => void;
|
|
9
|
+
declare type ChannelMessageListenerOptions = {
|
|
10
|
+
once?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare type RTCRawDataCallback = (event: IpcRendererEvent, payload: unknown) => void;
|
|
13
|
+
export declare const withTimeout: <T>(p: Promise<T>, detail: unknown, timeout?: number) => Promise<T>;
|
|
14
|
+
/**
|
|
15
|
+
* 打开窗口
|
|
16
|
+
* @param channel
|
|
17
|
+
* @param args
|
|
18
|
+
* @returns
|
|
19
|
+
*/
|
|
20
|
+
export declare const sendToMainProcess: (channel: ChannelType, ...args: unknown[]) => Promise<unknown>;
|
|
21
|
+
/**
|
|
22
|
+
* 发送消息到指定窗口
|
|
23
|
+
* @param windowID
|
|
24
|
+
* @param args
|
|
25
|
+
* @returns
|
|
26
|
+
*/
|
|
27
|
+
export declare const sendToRendererProcess: (windowID: WindowID, channel: ChannelType, message: ChannelMessage) => Promise<unknown>;
|
|
28
|
+
/**
|
|
29
|
+
* 监听主进程消息
|
|
30
|
+
* @param channel
|
|
31
|
+
* @param callback
|
|
32
|
+
* @param options
|
|
33
|
+
* @returns
|
|
34
|
+
*/
|
|
35
|
+
export declare const listenChannelMessage: (channel: ChannelType, callback: ChannelMessageCallback, options?: ChannelMessageListenerOptions | undefined) => () => void;
|
|
36
|
+
/**
|
|
37
|
+
* RTC裸数据传输
|
|
38
|
+
* @param windowID
|
|
39
|
+
* @param payload
|
|
40
|
+
*/
|
|
41
|
+
export declare const transmitRTCRawData: (windowID: WindowID, payload: unknown) => void;
|
|
42
|
+
/**
|
|
43
|
+
* 接收RTC裸数据
|
|
44
|
+
* @param callback
|
|
45
|
+
* @returns
|
|
46
|
+
*/
|
|
47
|
+
export declare const receiveRTCRawData: (callback: RTCRawDataCallback) => () => void;
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ButtonProps } from 'antd/lib/button';
|
|
2
|
+
import { FC, PropsWithChildren } from 'react';
|
|
3
|
+
import './abutton.css';
|
|
4
|
+
declare type AButtonProps = Pick<ButtonProps, 'className' | 'onClick' | 'icon' | 'type' | 'style'>;
|
|
5
|
+
export declare const AButton: FC<PropsWithChildren<AButtonProps>>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EventHandler, FC, SyntheticEvent } from 'react';
|
|
2
|
+
import { BaseProps } from '../util/type';
|
|
3
|
+
import './index.css';
|
|
4
|
+
declare type ButtonType = 'primary' | 'secondary' | 'ghost' | 'danger';
|
|
5
|
+
export interface ButtonProps extends BaseProps {
|
|
6
|
+
type?: ButtonType;
|
|
7
|
+
size?: 'xs' | 'sm' | 'lg';
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
action?: string;
|
|
10
|
+
animate?: boolean;
|
|
11
|
+
onClick?: EventHandler<SyntheticEvent<HTMLButtonElement>>;
|
|
12
|
+
onMouseOver?: EventHandler<SyntheticEvent<HTMLButtonElement>>;
|
|
13
|
+
onMouseLeave?: EventHandler<SyntheticEvent<HTMLButtonElement>>;
|
|
14
|
+
icon?: React.ReactElement;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare const Button: FC<ButtonProps>;
|
|
18
|
+
export { AButton } from './abutton';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { FC, EventHandler } from 'react';
|
|
2
|
+
import { BaseProps } from '../../components/util/type';
|
|
3
|
+
import './index.css';
|
|
4
|
+
export interface CardProps extends BaseProps {
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
borderRadius?: number | string;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
onMouseDown?: EventHandler<any>;
|
|
10
|
+
onMouseUp?: EventHandler<any>;
|
|
11
|
+
onMouseLeave?: EventHandler<any>;
|
|
12
|
+
onScroll?: EventHandler<any>;
|
|
13
|
+
}
|
|
14
|
+
export declare const Card: FC<CardProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChangeEvent, FC } from 'react';
|
|
2
|
+
import { BaseProps } from '../util/type';
|
|
3
|
+
import './index.css';
|
|
4
|
+
declare type CheckboxProps = BaseProps & {
|
|
5
|
+
text?: string;
|
|
6
|
+
value?: any;
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
indeterminate?: boolean;
|
|
10
|
+
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
11
|
+
gap?: number;
|
|
12
|
+
};
|
|
13
|
+
export declare const CheckBox: FC<CheckboxProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
|
+
import { BaseProps } from '../util/type';
|
|
3
|
+
export interface FloatProps extends BaseProps {
|
|
4
|
+
top?: number;
|
|
5
|
+
left?: number;
|
|
6
|
+
bottom?: number;
|
|
7
|
+
right?: number;
|
|
8
|
+
direction?: 'row' | 'col';
|
|
9
|
+
align?: 'flex-start' | 'flex-end';
|
|
10
|
+
justify?: 'start' | 'end';
|
|
11
|
+
gap: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const Float: FC<PropsWithChildren<FloatProps>>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export * from './button';
|
|
2
|
+
export * from './card';
|
|
3
|
+
export * from './checkbox';
|
|
4
|
+
export * from './float';
|
|
5
|
+
export * from './input';
|
|
6
|
+
export * from './input-number';
|
|
7
|
+
export * from './layout';
|
|
8
|
+
export * from './loading';
|
|
9
|
+
export * from './modal';
|
|
10
|
+
export * from './overlay-wrap';
|
|
11
|
+
export * from './pagination';
|
|
12
|
+
export * from './placeholder';
|
|
13
|
+
export * from './popover';
|
|
14
|
+
export * from './progress';
|
|
15
|
+
export * from './radio';
|
|
16
|
+
export * from './root-box';
|
|
17
|
+
export * from './roster';
|
|
18
|
+
export * from './sound-player';
|
|
19
|
+
export * from './svg-img';
|
|
20
|
+
export * from './svga-player';
|
|
21
|
+
export * from './table';
|
|
22
|
+
export * from './tabs';
|
|
23
|
+
export * from './toast';
|
|
24
|
+
export * from './toolbar';
|
|
25
|
+
export * from './tooltip';
|
|
26
|
+
export * from './tree';
|
|
27
|
+
export * from './volume';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InputProps } from 'antd/lib/input';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
import './ainput.css';
|
|
4
|
+
declare type AInputProps = Pick<InputProps, 'value' | 'className' | 'onChange' | 'placeholder' | 'allowClear' | 'maxLength' | 'showCount' | 'suffix' | 'prefix' | 'disabled'>;
|
|
5
|
+
export declare const AInput: FC<AInputProps>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { BaseProps } from '../util/type';
|
|
3
|
+
import './index.css';
|
|
4
|
+
export interface InputProps extends BaseProps {
|
|
5
|
+
type?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
prefix?: React.ReactNode;
|
|
8
|
+
suffix?: React.ReactNode;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
value?: any;
|
|
11
|
+
inputPrefixWidth?: number;
|
|
12
|
+
rule?: RegExp;
|
|
13
|
+
errorMsg?: string;
|
|
14
|
+
errorMsgPositionLeft?: number;
|
|
15
|
+
min?: number;
|
|
16
|
+
max?: number;
|
|
17
|
+
width?: number;
|
|
18
|
+
maxLength?: string | number;
|
|
19
|
+
maxNumber?: number;
|
|
20
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
21
|
+
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
22
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
23
|
+
}
|
|
24
|
+
export declare const Input: FC<InputProps>;
|
|
25
|
+
export interface SearchProps extends InputProps {
|
|
26
|
+
onSearch: (value: string) => void | Promise<void>;
|
|
27
|
+
suffix?: any;
|
|
28
|
+
prefix?: any;
|
|
29
|
+
}
|
|
30
|
+
export declare const Search: FC<SearchProps>;
|
|
31
|
+
export { AInput } from './ainput';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { FC, PropsWithChildren } from 'react';
|
|
2
|
+
import { BaseProps } from '../util/type';
|
|
3
|
+
import './index.css';
|
|
4
|
+
export interface LayoutProps extends BaseProps {
|
|
5
|
+
direction?: 'row' | 'col' | 'col-reverse';
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const Layout: FC<LayoutProps>;
|
|
10
|
+
export declare const Header: FC<PropsWithChildren<BaseProps>>;
|
|
11
|
+
export declare const Aside: FC<PropsWithChildren<BaseProps>>;
|
|
12
|
+
export declare const Content: FC<PropsWithChildren<BaseProps>>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { BaseProps } from '../util/type';
|
|
3
|
+
import './index.css';
|
|
4
|
+
declare enum CloudDriveResourceUploadStatus {
|
|
5
|
+
Pending = "pending",
|
|
6
|
+
Success = "success",
|
|
7
|
+
Failed = "failed",
|
|
8
|
+
Canceled = "canceled"
|
|
9
|
+
}
|
|
10
|
+
export interface UploadItem {
|
|
11
|
+
resourceUuid: string;
|
|
12
|
+
iconType?: string;
|
|
13
|
+
fileName?: string;
|
|
14
|
+
fileSize?: string;
|
|
15
|
+
currentProgress?: number;
|
|
16
|
+
status: CloudDriveResourceUploadStatus;
|
|
17
|
+
}
|
|
18
|
+
export interface LoadingProps extends BaseProps {
|
|
19
|
+
hasLoadingGif?: boolean;
|
|
20
|
+
loadingText?: string;
|
|
21
|
+
hasProgress?: boolean;
|
|
22
|
+
currentProgress?: number;
|
|
23
|
+
footer?: React.ReactNode[];
|
|
24
|
+
uploadItemList?: UploadItem[];
|
|
25
|
+
onClick?: (id: string, type: 'delete' | 'click') => void;
|
|
26
|
+
noCloseBtn?: boolean;
|
|
27
|
+
showUploadOpeBtn?: boolean;
|
|
28
|
+
onRetry?: (resourceUuid: string) => void;
|
|
29
|
+
onCancel?: (resourceUuid: string) => void;
|
|
30
|
+
}
|
|
31
|
+
export interface CircleLoadingProps extends BaseProps {
|
|
32
|
+
width?: string;
|
|
33
|
+
height?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare const Loading: FC<LoadingProps>;
|
|
36
|
+
export declare const CircleLoading: FC<CircleLoadingProps>;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import './index.css';
|
|
3
|
+
export interface ModalProps {
|
|
4
|
+
/** 标题 */
|
|
5
|
+
title?: string | React.ReactNode;
|
|
6
|
+
/** 遮罩效果 */
|
|
7
|
+
showMask?: boolean;
|
|
8
|
+
/** 是否显示右上角的关闭按钮 */
|
|
9
|
+
closable?: boolean;
|
|
10
|
+
/** 底部内容 */
|
|
11
|
+
footer?: React.ReactNode[];
|
|
12
|
+
style?: any;
|
|
13
|
+
/** 点击确定回调 */
|
|
14
|
+
onOk?: (e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
15
|
+
/** 点击模态框右上角叉、取消按钮、Props.maskClosable 值为 true 时的遮罩层或键盘按下 Esc 时的回调 */
|
|
16
|
+
onCancel?: (e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
17
|
+
component?: React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* 是否有蒙层
|
|
20
|
+
*/
|
|
21
|
+
hasMask?: boolean;
|
|
22
|
+
maskClosable?: boolean;
|
|
23
|
+
contentClassName?: string;
|
|
24
|
+
modalType?: 'normal' | 'back' | 'minimize';
|
|
25
|
+
children?: React.ReactNode;
|
|
26
|
+
btnId?: string;
|
|
27
|
+
topLevel?: boolean;
|
|
28
|
+
animate?: boolean;
|
|
29
|
+
className?: string;
|
|
30
|
+
id?: string;
|
|
31
|
+
}
|
|
32
|
+
export declare const Modal: FC<ModalProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
|
+
import { BaseProps } from '../util/type';
|
|
3
|
+
import './index.css';
|
|
4
|
+
interface OverlayWrapProps extends BaseProps {
|
|
5
|
+
opened?: boolean;
|
|
6
|
+
centered?: boolean;
|
|
7
|
+
onExited?: (() => void) | undefined;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param param0
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
export declare const OverlayWrap: FC<PropsWithChildren<OverlayWrapProps>>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { BaseProps } from '../util/type';
|
|
3
|
+
import './index.css';
|
|
4
|
+
declare type PlaceholderType = 'emptyHistory' | 'cameraBroken' | 'cameraClose' | 'noBody' | 'noFile' | 'cameraDisabled' | 'noQuestion';
|
|
5
|
+
export interface PlaceholderProps extends BaseProps {
|
|
6
|
+
placeholderDesc?: string;
|
|
7
|
+
placeholderType?: PlaceholderType;
|
|
8
|
+
backgroundColor?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const Placeholder: FC<PlaceholderProps>;
|
|
11
|
+
export interface CameraPlaceHolderProps extends BaseProps {
|
|
12
|
+
state?: 'loading' | 'broken' | 'muted' | 'disabled' | 'none' | 'notpresent' | 'nosetup';
|
|
13
|
+
text?: string;
|
|
14
|
+
placeholderSize?: number;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare const CameraPlaceHolder: React.FC<CameraPlaceHolderProps>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AbstractTooltipProps } from '../tooltip';
|
|
3
|
+
import { RenderFunction } from '../util/getRenderPropValue';
|
|
4
|
+
import './index.css';
|
|
5
|
+
export interface PopoverProps extends AbstractTooltipProps {
|
|
6
|
+
title?: React.ReactNode | RenderFunction;
|
|
7
|
+
content?: React.ReactNode | RenderFunction;
|
|
8
|
+
}
|
|
9
|
+
export declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<unknown>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import { BaseProps } from '../util/type';
|
|
3
|
+
import './index.css';
|
|
4
|
+
export declare type ProgressType = 'download';
|
|
5
|
+
export interface ProgressProps extends BaseProps {
|
|
6
|
+
progress: number;
|
|
7
|
+
width: number;
|
|
8
|
+
type: ProgressType;
|
|
9
|
+
}
|
|
10
|
+
export declare const Progress: React.FC<PropsWithChildren<ProgressProps>>;
|
|
11
|
+
declare type ProgressListItem = Pick<ProgressProps, 'width' | 'progress'> & {
|
|
12
|
+
key: string;
|
|
13
|
+
auto?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare const DialogProgressApi: {
|
|
16
|
+
show: (dialog: ProgressListItem) => void;
|
|
17
|
+
destroy: (key: React.Key) => void;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { BaseProps } from '../util/type';
|
|
3
|
+
declare type RadioElement = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: any;
|
|
6
|
+
onChange?: () => void;
|
|
7
|
+
name?: string;
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare type RadioProps = RadioElement & BaseProps;
|
|
11
|
+
declare type RadioGroupProps = {
|
|
12
|
+
gap?: number;
|
|
13
|
+
direction?: 'horizontal' | 'vertical';
|
|
14
|
+
name: string;
|
|
15
|
+
radios: RadioElement[];
|
|
16
|
+
value?: any;
|
|
17
|
+
onChange?: (val: any) => void;
|
|
18
|
+
};
|
|
19
|
+
export declare const Radio: FC<RadioProps>;
|
|
20
|
+
export declare const RadioGroup: FC<RadioGroupProps>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Column } from './index';
|
|
2
|
+
export declare const defaultColumns: Column[];
|
|
3
|
+
export declare const podiumColumn: Column;
|
|
4
|
+
export declare const grantBoardColumn: Column;
|
|
5
|
+
export declare const starsColumn: Column;
|
|
6
|
+
export declare const kickOutColumn: Column;
|
|
7
|
+
export declare const superviseColumn: Column;
|