fcr-ui-scene-mobile 3.4.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/assets/ground_glass_bg.png +0 -0
- package/lib/base.d.ts +11 -0
- package/lib/base.js +39 -0
- package/lib/common/device-store.d.ts +86 -0
- package/lib/common/device-store.js +642 -0
- package/lib/common/device-stream-store.d.ts +26 -0
- package/lib/common/device-stream-store.js +298 -0
- package/lib/common/event-store.d.ts +124 -0
- package/lib/common/event-store.js +249 -0
- package/lib/common/global-context.d.ts +11 -0
- package/lib/common/global-context.js +9 -0
- package/lib/common/member-list-data-source.d.ts +28 -0
- package/lib/common/member-list-data-source.js +305 -0
- package/lib/common/participant-store.d.ts +195 -0
- package/lib/common/participant-store.js +1577 -0
- package/lib/common/security-store.d.ts +119 -0
- package/lib/common/security-store.js +948 -0
- package/lib/common/setting-store.d.ts +181 -0
- package/lib/common/setting-store.js +797 -0
- package/lib/common/type.d.ts +73 -0
- package/lib/common/type.js +22 -0
- package/lib/config/default-config.d.ts +32 -0
- package/lib/config/default-config.js +39 -0
- package/lib/config/setting-config.d.ts +16 -0
- package/lib/config/setting-config.js +17 -0
- package/lib/creator.d.ts +10 -0
- package/lib/creator.js +49 -0
- package/lib/global.d.ts +8 -0
- package/lib/hooks/meeting-time.d.ts +15 -0
- package/lib/hooks/meeting-time.js +92 -0
- package/lib/hooks/useIsNodePresent.d.ts +4 -0
- package/lib/hooks/useIsNodePresent.js +53 -0
- package/lib/hooks/useOnRefMount.d.ts +2 -0
- package/lib/hooks/useOnRefMount.js +27 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +50 -0
- package/lib/mobile-global.css +28 -0
- package/lib/modules/action-bar/bottom-icons.d.ts +17 -0
- package/lib/modules/action-bar/bottom-icons.js +160 -0
- package/lib/modules/action-bar/context.d.ts +2 -0
- package/lib/modules/action-bar/context.js +9 -0
- package/lib/modules/action-bar/index.css +33 -0
- package/lib/modules/action-bar/index.d.ts +27 -0
- package/lib/modules/action-bar/index.js +46 -0
- package/lib/modules/action-bar/member-list-popup/attendee/index.css +130 -0
- package/lib/modules/action-bar/member-list-popup/attendee/index.d.ts +19 -0
- package/lib/modules/action-bar/member-list-popup/attendee/index.js +252 -0
- package/lib/modules/action-bar/member-list-popup/attendee/list.d.ts +1 -0
- package/lib/modules/action-bar/member-list-popup/attendee/list.js +82 -0
- package/lib/modules/action-bar/member-list-popup/index.css +35 -0
- package/lib/modules/action-bar/member-list-popup/index.d.ts +7 -0
- package/lib/modules/action-bar/member-list-popup/index.js +40 -0
- package/lib/modules/action-bar/member-list-popup/participant-more-actions/index.css +0 -0
- package/lib/modules/action-bar/member-list-popup/participant-more-actions/index.d.ts +12 -0
- package/lib/modules/action-bar/member-list-popup/participant-more-actions/index.js +58 -0
- package/lib/modules/action-bar/more-popup/index.css +71 -0
- package/lib/modules/action-bar/more-popup/index.d.ts +2 -0
- package/lib/modules/action-bar/more-popup/index.js +126 -0
- package/lib/modules/action-bar/store.d.ts +196 -0
- package/lib/modules/action-bar/store.js +1425 -0
- package/lib/modules/action-bar/type.d.ts +6 -0
- package/lib/modules/action-bar/type.js +13 -0
- package/lib/modules/action-bar/view.d.ts +2 -0
- package/lib/modules/action-bar/view.js +75 -0
- package/lib/modules/audio-stream/ index.d.ts +19 -0
- package/lib/modules/audio-stream/ index.js +109 -0
- package/lib/modules/audio-stream/index.d.ts +25 -0
- package/lib/modules/audio-stream/index.js +135 -0
- package/lib/modules/chat/chat-bar/index.css +97 -0
- package/lib/modules/chat/chat-bar/index.d.ts +12 -0
- package/lib/modules/chat/chat-bar/index.js +129 -0
- package/lib/modules/chat/chat-notification/index.css +71 -0
- package/lib/modules/chat/chat-notification/index.d.ts +3 -0
- package/lib/modules/chat/chat-notification/index.js +75 -0
- package/lib/modules/chat/chat-select/index.css +183 -0
- package/lib/modules/chat/chat-select/index.d.ts +12 -0
- package/lib/modules/chat/chat-select/index.js +223 -0
- package/lib/modules/chat/contex.d.ts +2 -0
- package/lib/modules/chat/contex.js +9 -0
- package/lib/modules/chat/demo-wrapper.d.ts +1 -0
- package/lib/modules/chat/demo-wrapper.js +42 -0
- package/lib/modules/chat/index.css +108 -0
- package/lib/modules/chat/index.d.ts +28 -0
- package/lib/modules/chat/index.dev.d.ts +1 -0
- package/lib/modules/chat/index.dev.js +58 -0
- package/lib/modules/chat/index.js +208 -0
- package/lib/modules/chat/message-list.d.ts +22 -0
- package/lib/modules/chat/message-list.js +617 -0
- package/lib/modules/chat/mock.d.ts +2 -0
- package/lib/modules/chat/mock.js +283 -0
- package/lib/modules/chat/store.d.ts +183 -0
- package/lib/modules/chat/store.js +1101 -0
- package/lib/modules/chat/util.d.ts +6 -0
- package/lib/modules/chat/util.js +69 -0
- package/lib/modules/chat/view.d.ts +11 -0
- package/lib/modules/chat/view.js +414 -0
- package/lib/modules/layout/bottom-drawer/index.css +34 -0
- package/lib/modules/layout/bottom-drawer/index.d.ts +3 -0
- package/lib/modules/layout/bottom-drawer/index.js +129 -0
- package/lib/modules/layout/components/Layout.d.ts +1 -0
- package/lib/modules/layout/components/Layout.js +98 -0
- package/lib/modules/layout/components/equip-request-popup/index.css +30 -0
- package/lib/modules/layout/components/equip-request-popup/index.d.ts +3 -0
- package/lib/modules/layout/components/equip-request-popup/index.js +78 -0
- package/lib/modules/layout/components/index.css +78 -0
- package/lib/modules/layout/components/index.d.ts +2 -0
- package/lib/modules/layout/components/index.js +25 -0
- package/lib/modules/layout/context.d.ts +2 -0
- package/lib/modules/layout/context.js +9 -0
- package/lib/modules/layout/drawer-header/index.css +27 -0
- package/lib/modules/layout/drawer-header/index.d.ts +10 -0
- package/lib/modules/layout/drawer-header/index.js +54 -0
- package/lib/modules/layout/index.css +22 -0
- package/lib/modules/layout/index.d.ts +8 -0
- package/lib/modules/layout/index.js +47 -0
- package/lib/modules/layout/store.d.ts +59 -0
- package/lib/modules/layout/store.js +379 -0
- package/lib/modules/layout/type.d.ts +65 -0
- package/lib/modules/layout/type.js +52 -0
- package/lib/modules/layout/view.d.ts +2 -0
- package/lib/modules/layout/view.js +10 -0
- package/lib/modules/member-layout/context.d.ts +2 -0
- package/lib/modules/member-layout/context.js +9 -0
- package/lib/modules/member-layout/data.d.ts +2 -0
- package/lib/modules/member-layout/data.js +304 -0
- package/lib/modules/member-layout/grid/index.css +98 -0
- package/lib/modules/member-layout/grid/index.d.ts +21 -0
- package/lib/modules/member-layout/grid/index.js +316 -0
- package/lib/modules/member-layout/index.css +88 -0
- package/lib/modules/member-layout/index.d.ts +8 -0
- package/lib/modules/member-layout/index.js +45 -0
- package/lib/modules/member-layout/share-toast/index.css +30 -0
- package/lib/modules/member-layout/share-toast/index.d.ts +5 -0
- package/lib/modules/member-layout/share-toast/index.js +43 -0
- package/lib/modules/member-layout/speaker/index.css +30 -0
- package/lib/modules/member-layout/speaker/index.d.ts +9 -0
- package/lib/modules/member-layout/speaker/index.js +28 -0
- package/lib/modules/member-layout/store.d.ts +70 -0
- package/lib/modules/member-layout/store.js +479 -0
- package/lib/modules/member-layout/user/index.css +121 -0
- package/lib/modules/member-layout/user/index.d.ts +34 -0
- package/lib/modules/member-layout/user/index.js +355 -0
- package/lib/modules/member-layout/user/types.d.ts +16 -0
- package/lib/modules/member-layout/user/types.js +6 -0
- package/lib/modules/member-layout/view.d.ts +2 -0
- package/lib/modules/member-layout/view.js +225 -0
- package/lib/modules/state-bar/context.d.ts +2 -0
- package/lib/modules/state-bar/context.js +9 -0
- package/lib/modules/state-bar/index.css +79 -0
- package/lib/modules/state-bar/index.d.ts +17 -0
- package/lib/modules/state-bar/index.js +55 -0
- package/lib/modules/state-bar/leaving-room/index.css +14 -0
- package/lib/modules/state-bar/leaving-room/index.d.ts +7 -0
- package/lib/modules/state-bar/leaving-room/index.js +38 -0
- package/lib/modules/state-bar/meeting-detail/index.css +72 -0
- package/lib/modules/state-bar/meeting-detail/index.d.ts +2 -0
- package/lib/modules/state-bar/meeting-detail/index.js +59 -0
- package/lib/modules/state-bar/meeting-detail/meeting-info/copy.d.ts +4 -0
- package/lib/modules/state-bar/meeting-detail/meeting-info/copy.js +81 -0
- package/lib/modules/state-bar/meeting-detail/meeting-info/index.css +92 -0
- package/lib/modules/state-bar/meeting-detail/meeting-info/index.d.ts +2 -0
- package/lib/modules/state-bar/meeting-detail/meeting-info/index.js +188 -0
- package/lib/modules/state-bar/meeting-detail/net-quality/index.css +27 -0
- package/lib/modules/state-bar/meeting-detail/net-quality/index.d.ts +2 -0
- package/lib/modules/state-bar/meeting-detail/net-quality/index.js +87 -0
- package/lib/modules/state-bar/store.d.ts +76 -0
- package/lib/modules/state-bar/store.js +561 -0
- package/lib/modules/state-bar/view.d.ts +7 -0
- package/lib/modules/state-bar/view.js +215 -0
- package/lib/modules/whiteboard/app.d.ts +2 -0
- package/lib/modules/whiteboard/app.js +41 -0
- package/lib/modules/whiteboard/components/control-bar/index.css +53 -0
- package/lib/modules/whiteboard/components/control-bar/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/control-bar/index.js +156 -0
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +35 -0
- package/lib/modules/whiteboard/components/control-bar/store.js +288 -0
- package/lib/modules/whiteboard/components/loading/index.css +76 -0
- package/lib/modules/whiteboard/components/loading/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/loading/index.js +68 -0
- package/lib/modules/whiteboard/components/loading/loading.png +0 -0
- package/lib/modules/whiteboard/components/multi-window/index.css +65 -0
- package/lib/modules/whiteboard/components/multi-window/index.d.ts +5 -0
- package/lib/modules/whiteboard/components/multi-window/index.js +39 -0
- package/lib/modules/whiteboard/components/pagination/index.css +228 -0
- package/lib/modules/whiteboard/components/pagination/index.d.ts +15 -0
- package/lib/modules/whiteboard/components/pagination/index.js +163 -0
- package/lib/modules/whiteboard/components/pagination/store.d.ts +18 -0
- package/lib/modules/whiteboard/components/pagination/store.js +17 -0
- package/lib/modules/whiteboard/components/progress/index.d.ts +5 -0
- package/lib/modules/whiteboard/components/progress/index.js +43 -0
- package/lib/modules/whiteboard/components/progress/style.css +52 -0
- package/lib/modules/whiteboard/components/scene-pagination.d.ts +1 -0
- package/lib/modules/whiteboard/components/scene-pagination.js +30 -0
- package/lib/modules/whiteboard/components/switch-theme/index.css +98 -0
- package/lib/modules/whiteboard/components/switch-theme/index.d.ts +3 -0
- package/lib/modules/whiteboard/components/switch-theme/index.js +89 -0
- package/lib/modules/whiteboard/components/switch-theme/item.d.ts +9 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +53 -0
- package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +4 -0
- package/lib/modules/whiteboard/components/switch-theme/libs.js +29 -0
- package/lib/modules/whiteboard/components/toolbar/ style.css +588 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.d.ts +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.js +38 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +107 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +59 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +44 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +89 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +63 -0
- package/lib/modules/whiteboard/components/toolbar/components/history.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/history.js +46 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.js +39 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.js +66 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.d.ts +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +134 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +106 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +168 -0
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +14 -0
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +211 -0
- package/lib/modules/whiteboard/components/toolbar/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/index.js +183 -0
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +51 -0
- package/lib/modules/whiteboard/components/toolbar/store.js +248 -0
- package/lib/modules/whiteboard/context.d.ts +69 -0
- package/lib/modules/whiteboard/context.js +36 -0
- package/lib/modules/whiteboard/index.d.ts +119 -0
- package/lib/modules/whiteboard/index.js +1134 -0
- package/lib/modules/whiteboard/style.css +143 -0
- package/lib/modules/whiteboard/type.d.ts +94 -0
- package/lib/modules/whiteboard/type.js +89 -0
- package/lib/modules/whiteboard/utils.d.ts +12 -0
- package/lib/modules/whiteboard/utils.js +36 -0
- package/lib/plugins/css-preset-plugin.d.ts +1 -0
- package/lib/plugins/css-preset-plugin.js +29 -0
- package/lib/plugins/module-dev-plugin.d.ts +12 -0
- package/lib/plugins/module-dev-plugin.js +183 -0
- package/lib/plugins/multi-lang-plugin.d.ts +1 -0
- package/lib/plugins/multi-lang-plugin.js +19 -0
- package/lib/plugins/rtm-plugin.d.ts +1 -0
- package/lib/plugins/rtm-plugin.js +5 -0
- package/lib/plugins/web-rtc-plugin.d.ts +1 -0
- package/lib/plugins/web-rtc-plugin.js +5 -0
- package/lib/translations/enUS.d.ts +1855 -0
- package/lib/translations/enUS.js +1895 -0
- package/lib/translations/zhCN.d.ts +1852 -0
- package/lib/translations/zhCN.js +1892 -0
- package/lib/type.d.ts +121 -0
- package/lib/type.js +46 -0
- package/lib/ui-manager.d.ts +32 -0
- package/lib/ui-manager.js +426 -0
- package/lib/ui-scene.d.ts +14 -0
- package/lib/ui-scene.js +141 -0
- package/lib/utilities/board-context.d.ts +4 -0
- package/lib/utilities/board-context.js +12 -0
- package/lib/utilities/constant.d.ts +286 -0
- package/lib/utilities/constant.js +271 -0
- package/lib/utilities/copyText.d.ts +2 -0
- package/lib/utilities/copyText.js +43 -0
- package/lib/utilities/extract.d.ts +5 -0
- package/lib/utilities/extract.js +117 -0
- package/lib/utilities/hooks.d.ts +14 -0
- package/lib/utilities/hooks.js +101 -0
- package/lib/utilities/mute-action.d.ts +4 -0
- package/lib/utilities/mute-action.js +48 -0
- package/lib/utilities/parameters.d.ts +7 -0
- package/lib/utilities/parameters.js +20 -0
- package/lib/utilities/regex.d.ts +1 -0
- package/lib/utilities/regex.js +14 -0
- package/lib/utilities/tools.d.ts +27 -0
- package/lib/utilities/tools.js +169 -0
- package/lib/utilities/useNamespace.d.ts +15 -0
- package/lib/utilities/useNamespace.js +66 -0
- package/package.json +63 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/* Message List */
|
|
2
|
+
.fcr-message-list {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex: 1;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
width: 100%;
|
|
7
|
+
align-items: center;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.fcr-line-msg-wrapper {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: row-reverse;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.fcr-message-label .fcr-avatar {
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.chat-tabs-container {
|
|
20
|
+
width: 100%;
|
|
21
|
+
display: flex;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.fcr-no-data-chat {
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
align-items: center;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.fcr-no-data-chat span {
|
|
35
|
+
font-weight: 400;
|
|
36
|
+
font-size: 13px;
|
|
37
|
+
line-height: 14px;
|
|
38
|
+
font-family: PingFang HK;
|
|
39
|
+
color: var(--fcr_ui_scene_icontext2);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.fcr-no-data-chat svg {
|
|
43
|
+
width: 90%;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.chat-container-icon {
|
|
47
|
+
position: relative;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.chat-container-red {
|
|
51
|
+
width: 8px;
|
|
52
|
+
height: 8px;
|
|
53
|
+
border-radius: 50%;
|
|
54
|
+
background: var(--fcr_ui_scene_ramp_red6);
|
|
55
|
+
position: absolute;
|
|
56
|
+
right: -5px;
|
|
57
|
+
top: -5px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.fcr-chat-wrapper .fcr-chat-msg-box {
|
|
61
|
+
padding: 0;
|
|
62
|
+
box-shadow: 0px 0px 8px 0px #0000001a;
|
|
63
|
+
border-top-left-radius: var(--fcr_cornerradius_m);
|
|
64
|
+
border-top-right-radius: var(--fcr_cornerradius_m);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
.fcr-mobile-scope .fcr-chat-msg-box{
|
|
69
|
+
background-color: var(--fcr_mobile_ui_scene_navigation2);
|
|
70
|
+
border-radius: var(--fcr_cornerradius_m) var(--fcr_cornerradius_m) 0px 0px;
|
|
71
|
+
box-shadow: 0px 0px 5px 0px rgba(151, 151, 151, 0.2);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.fcr-chat-msg-box .fcr-message-bar {
|
|
75
|
+
background: var(--fcr_mobile_ui_scene_navigation2);
|
|
76
|
+
height: 50px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.fcr-chat-wrapper-mobile .fcr-chat-msg-box .fcr-message-input {
|
|
80
|
+
margin: 0 10px 10px;
|
|
81
|
+
padding: 0 8px 0 12px;
|
|
82
|
+
flex-direction: row;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.fcr-chat-msg-box .fcr-input__bottom-bar {
|
|
86
|
+
justify-content: flex-end;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.fcr-chat-msg-box .fcr-message-bar .fcr-text-bubble .fcr-icon-text__text {
|
|
90
|
+
color: var(--fcr_ui_scene_ramp_brand6);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.fcr-chat-msg-box .fcr-blinking {
|
|
94
|
+
font-size: 12px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.fcr-chat-msg-box .fcr-blink--error {
|
|
98
|
+
height: 38px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.fcr-chat-msg-box .fcr-slide--info {
|
|
102
|
+
height: 48px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.fcr-chat-msg-box .fcr-slide--info p {
|
|
106
|
+
display: flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UIModule } from '../../base';
|
|
2
|
+
import './index.css';
|
|
3
|
+
import { FcrUIEventStore } from '../../common/event-store';
|
|
4
|
+
import { FcrSecurityStore } from '../../common/security-store';
|
|
5
|
+
import { CHAT_WRAPPER_CLASS } from 'agora-ui-foundation/lib/components/chat-wrapper';
|
|
6
|
+
import { FcrChatRoomFile, FcrChatRoomMessageType } from 'fcr-core/lib/room-control/chatroom-control/type';
|
|
7
|
+
import { FcrMainRoomControl, FcrWaitingRoomControl } from 'fcr-core/lib/room-control/type';
|
|
8
|
+
export { CHAT_WRAPPER_CLASS };
|
|
9
|
+
export declare class ChatUIModule extends UIModule {
|
|
10
|
+
private _store;
|
|
11
|
+
private _chatRoomControl;
|
|
12
|
+
private _uid;
|
|
13
|
+
constructor({ roomControl, uiEventStore, securityStore, }: {
|
|
14
|
+
roomControl: FcrMainRoomControl | FcrWaitingRoomControl;
|
|
15
|
+
uiEventStore: FcrUIEventStore;
|
|
16
|
+
securityStore: FcrSecurityStore;
|
|
17
|
+
});
|
|
18
|
+
getComponent(params?: {
|
|
19
|
+
singling?: boolean;
|
|
20
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
getActionsComponent(): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
sendMessage(msg: string | FcrChatRoomFile, type: FcrChatRoomMessageType): Promise<void>;
|
|
23
|
+
updateReadMsgIndex(data?: {
|
|
24
|
+
index: number;
|
|
25
|
+
msgId: string;
|
|
26
|
+
}): Promise<void>;
|
|
27
|
+
onUnload(): void;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
5
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
6
|
+
var _ = require(".");
|
|
7
|
+
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
8
|
+
var _root = require("react-hot-loader/root");
|
|
9
|
+
var _react = require("react");
|
|
10
|
+
var _demoWrapper = require("./demo-wrapper");
|
|
11
|
+
var _eventStore = require("../../common/event-store");
|
|
12
|
+
var _securityStore = require("../../common/security-store");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
var App = (0, _root.hot)(function () {
|
|
15
|
+
return null;
|
|
16
|
+
});
|
|
17
|
+
_reactDom["default"].render(/*#__PURE__*/(0, _jsxRuntime.jsx)(App, {}), document.querySelector('#root'));
|
|
18
|
+
window.__DEV_ENGINE_IS_READY__.then(/*#__PURE__*/(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
19
|
+
var engine, roomId, roomControl, uiEventStore, securityStore, uiModule, App;
|
|
20
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
21
|
+
while (1) switch (_context.prev = _context.next) {
|
|
22
|
+
case 0:
|
|
23
|
+
engine = window.__DEV_ENGINE__;
|
|
24
|
+
roomId = window.__DEV_ROOM_ID__; // TODO: dev 环境需要 login
|
|
25
|
+
// await engine.login();
|
|
26
|
+
roomControl = engine.createMainRoomControl(roomId);
|
|
27
|
+
uiEventStore = new _eventStore.FcrUIEventStore();
|
|
28
|
+
securityStore = new _securityStore.FcrSecurityStore(roomControl.getPrivilegeControl(), roomControl.getUserControl(), roomControl.getStreamControl(), uiEventStore); // TODO: dev 环境需要 join
|
|
29
|
+
// await roomControl.join({
|
|
30
|
+
// userRole: FcrUserRole.HOST,
|
|
31
|
+
// userName: 'zxq-test' + Math.random() * 1000,
|
|
32
|
+
// streamLatency: FcrStreamLatencyLevel.ULTRA_LOW,
|
|
33
|
+
// createStreamConfigs: [],
|
|
34
|
+
// });
|
|
35
|
+
uiModule = new _.ChatUIModule({
|
|
36
|
+
roomControl: roomControl,
|
|
37
|
+
uiEventStore: uiEventStore,
|
|
38
|
+
securityStore: securityStore
|
|
39
|
+
});
|
|
40
|
+
App = (0, _root.hot)(function () {
|
|
41
|
+
(0, _react.useEffect)(function () {
|
|
42
|
+
return function () {
|
|
43
|
+
uiModule.onUnload();
|
|
44
|
+
roomControl.leave();
|
|
45
|
+
engine.logout();
|
|
46
|
+
};
|
|
47
|
+
}, []);
|
|
48
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_demoWrapper.DemoWrapper, {
|
|
49
|
+
children: uiModule.getComponent()
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
_reactDom["default"].render(/*#__PURE__*/(0, _jsxRuntime.jsx)(App, {}), document.querySelector('#root'));
|
|
53
|
+
case 8:
|
|
54
|
+
case "end":
|
|
55
|
+
return _context.stop();
|
|
56
|
+
}
|
|
57
|
+
}, _callee);
|
|
58
|
+
})));
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.symbol.description.js");
|
|
5
|
+
require("core-js/modules/es.symbol.to-primitive.js");
|
|
6
|
+
require("core-js/modules/es.error.cause.js");
|
|
7
|
+
require("core-js/modules/es.array.is-array.js");
|
|
8
|
+
require("core-js/modules/es.array.iterator.js");
|
|
9
|
+
require("core-js/modules/es.array.push.js");
|
|
10
|
+
require("core-js/modules/es.date.to-primitive.js");
|
|
11
|
+
require("core-js/modules/es.function.name.js");
|
|
12
|
+
require("core-js/modules/es.map.js");
|
|
13
|
+
require("core-js/modules/es.number.constructor.js");
|
|
14
|
+
require("core-js/modules/es.object.create.js");
|
|
15
|
+
require("core-js/modules/es.object.define-property.js");
|
|
16
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
17
|
+
require("core-js/modules/es.reflect.construct.js");
|
|
18
|
+
require("core-js/modules/es.string.iterator.js");
|
|
19
|
+
require("core-js/modules/esnext.function.metadata.js");
|
|
20
|
+
require("core-js/modules/esnext.map.delete-all.js");
|
|
21
|
+
require("core-js/modules/esnext.map.emplace.js");
|
|
22
|
+
require("core-js/modules/esnext.map.every.js");
|
|
23
|
+
require("core-js/modules/esnext.map.filter.js");
|
|
24
|
+
require("core-js/modules/esnext.map.find.js");
|
|
25
|
+
require("core-js/modules/esnext.map.find-key.js");
|
|
26
|
+
require("core-js/modules/esnext.map.includes.js");
|
|
27
|
+
require("core-js/modules/esnext.map.key-of.js");
|
|
28
|
+
require("core-js/modules/esnext.map.map-keys.js");
|
|
29
|
+
require("core-js/modules/esnext.map.map-values.js");
|
|
30
|
+
require("core-js/modules/esnext.map.merge.js");
|
|
31
|
+
require("core-js/modules/esnext.map.reduce.js");
|
|
32
|
+
require("core-js/modules/esnext.map.some.js");
|
|
33
|
+
require("core-js/modules/esnext.map.update.js");
|
|
34
|
+
require("core-js/modules/esnext.symbol.metadata.js");
|
|
35
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
36
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
37
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
38
|
+
Object.defineProperty(exports, "__esModule", {
|
|
39
|
+
value: true
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports, "CHAT_WRAPPER_CLASS", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function get() {
|
|
44
|
+
return _chatWrapper.CHAT_WRAPPER_CLASS;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
exports.ChatUIModule = void 0;
|
|
48
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
49
|
+
require("core-js/modules/es.error.to-string.js");
|
|
50
|
+
require("core-js/modules/es.date.to-string.js");
|
|
51
|
+
require("core-js/modules/es.function.bind.js");
|
|
52
|
+
require("core-js/modules/es.object.to-string.js");
|
|
53
|
+
require("core-js/modules/es.regexp.to-string.js");
|
|
54
|
+
require("core-js/modules/es.string.substr.js");
|
|
55
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
56
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
57
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
58
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
59
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
60
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
61
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
62
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
63
|
+
var _base = require("../../base");
|
|
64
|
+
require("./index.css");
|
|
65
|
+
var _view = require("./view");
|
|
66
|
+
var _decorator = require("agora-foundation/lib/decorator");
|
|
67
|
+
var _contex = require("./contex");
|
|
68
|
+
var _messageTextarea = require("agora-ui-foundation/lib/components/message-textarea");
|
|
69
|
+
var _chatWrapper = require("agora-ui-foundation/lib/components/chat-wrapper");
|
|
70
|
+
var _type = require("fcr-core/lib/room-control/chatroom-control/type");
|
|
71
|
+
var _store = _interopRequireDefault(require("./store"));
|
|
72
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
73
|
+
var _ChatUIModule;
|
|
74
|
+
var _initProto;
|
|
75
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
76
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
77
|
+
function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function s(t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
|
|
78
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
79
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
80
|
+
function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
|
|
81
|
+
function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
|
|
82
|
+
var ChatUIModule = exports.ChatUIModule = /*#__PURE__*/function (_UIModule) {
|
|
83
|
+
function ChatUIModule(_ref) {
|
|
84
|
+
var _roomControl$getUserC;
|
|
85
|
+
var _this;
|
|
86
|
+
var roomControl = _ref.roomControl,
|
|
87
|
+
uiEventStore = _ref.uiEventStore,
|
|
88
|
+
securityStore = _ref.securityStore;
|
|
89
|
+
(0, _classCallCheck2["default"])(this, ChatUIModule);
|
|
90
|
+
_this = _callSuper(this, ChatUIModule);
|
|
91
|
+
(0, _defineProperty2["default"])(_this, "_store", void _initProto(_this));
|
|
92
|
+
_this._chatRoomControl = roomControl.getChatRoomControl();
|
|
93
|
+
_this._store = new _store["default"]({
|
|
94
|
+
chatRoomControl: _this._chatRoomControl,
|
|
95
|
+
userControl: roomControl.getUserControl(),
|
|
96
|
+
uiEventStore: uiEventStore,
|
|
97
|
+
securityStore: securityStore
|
|
98
|
+
});
|
|
99
|
+
_this.sendMessage = _this.sendMessage.bind(_this);
|
|
100
|
+
_this.updateReadMsgIndex = _this.updateReadMsgIndex.bind(_this);
|
|
101
|
+
var userId = (_roomControl$getUserC = roomControl.getUserControl()) === null || _roomControl$getUserC === void 0 || (_roomControl$getUserC = _roomControl$getUserC.getLocalUser()) === null || _roomControl$getUserC === void 0 ? void 0 : _roomControl$getUserC.userId;
|
|
102
|
+
_this._uid = userId !== null && userId !== void 0 ? userId : 'test' + Math.random().toString(36).substr(2);
|
|
103
|
+
return _this;
|
|
104
|
+
}
|
|
105
|
+
(0, _inherits2["default"])(ChatUIModule, _UIModule);
|
|
106
|
+
return (0, _createClass2["default"])(ChatUIModule, [{
|
|
107
|
+
key: "getComponent",
|
|
108
|
+
value: function getComponent(params) {
|
|
109
|
+
var _this2 = this;
|
|
110
|
+
var _ref2 = params !== null && params !== void 0 ? params : {},
|
|
111
|
+
_ref2$singling = _ref2.singling,
|
|
112
|
+
singling = _ref2$singling === void 0 ? false : _ref2$singling;
|
|
113
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_contex.StoreContext.Provider, {
|
|
114
|
+
value: this._store,
|
|
115
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_view.View, {
|
|
116
|
+
updateReadIndex: this.updateReadMsgIndex,
|
|
117
|
+
sendMsg: function sendMsg(msg) {
|
|
118
|
+
_this2.sendMessage(msg, _type.FcrChatRoomMessageType.Text);
|
|
119
|
+
},
|
|
120
|
+
handleClickUploadImage: function handleClickUploadImage() {
|
|
121
|
+
(0, _messageTextarea.handleClickUploadImage)(function (imgData) {
|
|
122
|
+
_this2.sendMessage(imgData, _type.FcrChatRoomMessageType.Image);
|
|
123
|
+
});
|
|
124
|
+
},
|
|
125
|
+
userId: this._uid
|
|
126
|
+
// isHost={this._store.isHost}
|
|
127
|
+
,
|
|
128
|
+
singling: singling
|
|
129
|
+
})
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
}, {
|
|
133
|
+
key: "getActionsComponent",
|
|
134
|
+
value: function getActionsComponent() {
|
|
135
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_contex.StoreContext.Provider, {
|
|
136
|
+
value: this._store,
|
|
137
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_view.ChatAction, {})
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
}, {
|
|
141
|
+
key: "sendMessage",
|
|
142
|
+
value: function () {
|
|
143
|
+
var _sendMessage = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(msg, type) {
|
|
144
|
+
var _this$_store$chatRoom, _this$_store$chatRoom2;
|
|
145
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
146
|
+
while (1) switch (_context.prev = _context.next) {
|
|
147
|
+
case 0:
|
|
148
|
+
_context.prev = 0;
|
|
149
|
+
_context.next = 3;
|
|
150
|
+
return (_this$_store$chatRoom = this._store.chatRoomStores[this._store.activeTabIndex]) === null || _this$_store$chatRoom === void 0 ? void 0 : _this$_store$chatRoom.sendMessage(msg, type);
|
|
151
|
+
case 3:
|
|
152
|
+
_context.next = 8;
|
|
153
|
+
break;
|
|
154
|
+
case 5:
|
|
155
|
+
_context.prev = 5;
|
|
156
|
+
_context.t0 = _context["catch"](0);
|
|
157
|
+
(_this$_store$chatRoom2 = this._store.chatRoomStores[this._store.activeTabIndex]) === null || _this$_store$chatRoom2 === void 0 || _this$_store$chatRoom2.handleToast({
|
|
158
|
+
id: 'send-msg',
|
|
159
|
+
toastProps: {
|
|
160
|
+
content: _context.t0.reason,
|
|
161
|
+
type: 'error',
|
|
162
|
+
size: 'small'
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
case 8:
|
|
166
|
+
case "end":
|
|
167
|
+
return _context.stop();
|
|
168
|
+
}
|
|
169
|
+
}, _callee, this, [[0, 5]]);
|
|
170
|
+
}));
|
|
171
|
+
function sendMessage(_x, _x2) {
|
|
172
|
+
return _sendMessage.apply(this, arguments);
|
|
173
|
+
}
|
|
174
|
+
return sendMessage;
|
|
175
|
+
}()
|
|
176
|
+
}, {
|
|
177
|
+
key: "updateReadMsgIndex",
|
|
178
|
+
value: function () {
|
|
179
|
+
var _updateReadMsgIndex = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(data) {
|
|
180
|
+
var _this$_store$chatRoom3;
|
|
181
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
182
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
183
|
+
case 0:
|
|
184
|
+
(_this$_store$chatRoom3 = this._store.chatRoomStores[this._store.activeTabIndex]) === null || _this$_store$chatRoom3 === void 0 || _this$_store$chatRoom3.updateReadMsgIndex(data);
|
|
185
|
+
case 1:
|
|
186
|
+
case "end":
|
|
187
|
+
return _context2.stop();
|
|
188
|
+
}
|
|
189
|
+
}, _callee2, this);
|
|
190
|
+
}));
|
|
191
|
+
function updateReadMsgIndex(_x3) {
|
|
192
|
+
return _updateReadMsgIndex.apply(this, arguments);
|
|
193
|
+
}
|
|
194
|
+
return updateReadMsgIndex;
|
|
195
|
+
}()
|
|
196
|
+
}, {
|
|
197
|
+
key: "onUnload",
|
|
198
|
+
value: function onUnload() {
|
|
199
|
+
var _this$_store$chatRoom4;
|
|
200
|
+
(_this$_store$chatRoom4 = this._store.chatRoomStores[this._store.activeTabIndex]) === null || _this$_store$chatRoom4 === void 0 || _this$_store$chatRoom4.release();
|
|
201
|
+
}
|
|
202
|
+
}]);
|
|
203
|
+
}(_base.UIModule);
|
|
204
|
+
_ChatUIModule = ChatUIModule;
|
|
205
|
+
var _applyDecs$e = _applyDecs(_ChatUIModule, [[_decorator.bound, 2, "getComponent"], [_decorator.bound, 2, "getActionsComponent"]], [], 0, void 0, _base.UIModule).e;
|
|
206
|
+
var _applyDecs$e2 = (0, _slicedToArray2["default"])(_applyDecs$e, 1);
|
|
207
|
+
_initProto = _applyDecs$e2[0];
|
|
208
|
+
_applyDecs$e;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
import './index.css';
|
|
3
|
+
export interface MessageListProps {
|
|
4
|
+
styles?: CSSProperties;
|
|
5
|
+
onCopy?: (msgInfo: {
|
|
6
|
+
msg: string;
|
|
7
|
+
time: string;
|
|
8
|
+
sender: number;
|
|
9
|
+
}) => void;
|
|
10
|
+
updateReadMsgIndex?: (data?: {
|
|
11
|
+
index: number;
|
|
12
|
+
msgId: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
userId?: string;
|
|
15
|
+
setMultiSelectActive?: (active: boolean) => void;
|
|
16
|
+
multiSelectActive?: boolean;
|
|
17
|
+
copyMap?: Map<number, boolean>;
|
|
18
|
+
setCopyMap?: (copyMap: Map<number, boolean>) => void;
|
|
19
|
+
selectCnt?: number;
|
|
20
|
+
copyTips?: () => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const MessageList: ({ updateReadMsgIndex, userId: localUserId, setMultiSelectActive, multiSelectActive, copyMap, setCopyMap, selectCnt, copyTips, }: React.PropsWithChildren<MessageListProps>) => import("react/jsx-runtime").JSX.Element;
|