fcr-ui-scene 3.9.0-alpha → 3.9.1-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. package/lib/creator/provider-initializer.browser.js +4 -2
  2. package/lib/creator/provider-initializer.electron.js +13 -5
  3. package/lib/electron/injections.d.ts +1 -0
  4. package/lib/electron/injections.js +4 -1
  5. package/lib/electron/preload.js +1 -0
  6. package/lib/fragments/annotation/style.css +1 -0
  7. package/lib/fragments/whiteboard/style.css +4 -0
  8. package/lib/modules/action-bar/main-scene/store.base.d.ts +1 -0
  9. package/lib/modules/action-bar/main-scene/store.base.js +5 -0
  10. package/lib/modules/audio-stream/index.d.ts +2 -0
  11. package/lib/modules/audio-stream/index.js +33 -1
  12. package/lib/modules/chat/chat-room-store.js +4 -2
  13. package/lib/modules/chat/index.js +1 -1
  14. package/lib/modules/chat/store.d.ts +1 -1
  15. package/lib/modules/chat/store.js +4 -2
  16. package/lib/modules/components/device-control/store.base.d.ts +1 -0
  17. package/lib/modules/components/device-control/store.base.js +22 -3
  18. package/lib/modules/components/leave-meeting/index.js +3 -2
  19. package/lib/modules/components/leave-meeting/main-scene/store.d.ts +1 -0
  20. package/lib/modules/components/leave-meeting/main-scene/store.js +6 -1
  21. package/lib/modules/components/leave-meeting/store.base.d.ts +1 -0
  22. package/lib/modules/components/leave-meeting/store.base.js +1 -1
  23. package/lib/modules/components/leave-meeting/waiting-scene/store.d.ts +1 -0
  24. package/lib/modules/components/leave-meeting/waiting-scene/store.js +6 -1
  25. package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +7 -10
  26. package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +2 -2
  27. package/lib/modules/components/member-window/components/member-actions/index.js +0 -7
  28. package/lib/modules/components/member-window/components/member-actions/store.js +1 -1
  29. package/lib/modules/components/member-window/index.js +1 -1
  30. package/lib/modules/components/tab-frame/index.css +12 -1
  31. package/lib/modules/components/tab-frame/index.js +4 -1
  32. package/lib/modules/control-bar/components/share-state-nav/index.js +1 -3
  33. package/lib/modules/control-bar/mouse-event-bridge.d.ts +23 -0
  34. package/lib/modules/control-bar/mouse-event-bridge.js +87 -0
  35. package/lib/modules/control-bar/store.d.ts +3 -2
  36. package/lib/modules/control-bar/store.js +17 -29
  37. package/lib/modules/control-bar/type.d.ts +0 -1
  38. package/lib/modules/control-bar/view.js +21 -17
  39. package/lib/modules/dialog/dialogs/connection-gateway/tabs.js +3 -2
  40. package/lib/modules/dialog/dialogs/invite/index.js +6 -24
  41. package/lib/modules/invite/components/copy-info.css +72 -0
  42. package/lib/modules/invite/components/copy-info.d.ts +3 -0
  43. package/lib/modules/invite/components/copy-info.js +144 -0
  44. package/lib/modules/invite/components/pstn-invite.js +3 -15
  45. package/lib/modules/invite/components/voip-invite.js +10 -1
  46. package/lib/modules/invite/enums.d.ts +3 -1
  47. package/lib/modules/invite/enums.js +2 -0
  48. package/lib/modules/invite/store.d.ts +4 -1
  49. package/lib/modules/invite/store.js +37 -13
  50. package/lib/modules/invite/view.js +41 -20
  51. package/lib/modules/layout/store.base.d.ts +2 -1
  52. package/lib/modules/layout/store.base.js +20 -23
  53. package/lib/modules/participant/components/confirm-input/index.css +67 -1
  54. package/lib/modules/participant/components/confirm-input/index.js +16 -13
  55. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.css +4 -0
  56. package/lib/modules/participant/store.base.d.ts +1 -0
  57. package/lib/modules/participant/store.base.js +34 -7
  58. package/lib/modules/pc-audio-connect/main-scene/store.d.ts +2 -0
  59. package/lib/modules/pc-audio-connect/main-scene/store.js +12 -2
  60. package/lib/modules/pc-audio-connect/view.js +4 -2
  61. package/lib/modules/phone-audio-connect/store.d.ts +6 -4
  62. package/lib/modules/phone-audio-connect/store.js +12 -1
  63. package/lib/modules/phone-audio-connect/view.js +6 -4
  64. package/lib/modules/secondary-window/index.js +2 -2
  65. package/lib/modules/secondary-window/store.d.ts +3 -0
  66. package/lib/modules/secondary-window/store.js +16 -1
  67. package/lib/modules/secondary-window/view.js +96 -72
  68. package/lib/modules/toast-manager/type.d.ts +2 -1
  69. package/lib/modules/toast-manager/type.js +4 -1
  70. package/lib/plugins/module-dev-plugin.js +4 -4
  71. package/lib/providers/ability-provider.d.ts +15 -0
  72. package/lib/providers/ability-provider.js +13 -1
  73. package/lib/providers/mouse-detect/provider.d.ts +2 -0
  74. package/lib/providers/mouse-detect/provider.empty.d.ts +14 -0
  75. package/lib/providers/mouse-detect/provider.empty.js +47 -0
  76. package/lib/providers/mouse-detect/provider.js +13 -4
  77. package/lib/providers/mouse-detect/type.d.ts +2 -0
  78. package/lib/providers/phone-audio-provider.d.ts +31 -5
  79. package/lib/providers/phone-audio-provider.js +83 -22
  80. package/lib/providers/user-audio-volume-provider.d.ts +6 -0
  81. package/lib/providers/user-audio-volume-provider.js +3 -2
  82. package/lib/runtime.d.ts +1 -0
  83. package/lib/scenes/main-scene.js +2 -1
  84. package/lib/shared-data/chat-data.d.ts +19 -0
  85. package/lib/shared-data/chat-data.js +54 -7
  86. package/lib/shared-data/member-data.d.ts +9 -1
  87. package/lib/shared-data/member-data.js +46 -17
  88. package/lib/shared-data/video-window.js +8 -4
  89. package/lib/translations/enUS.d.ts +245 -1
  90. package/lib/translations/enUS.js +247 -3
  91. package/lib/translations/zhCN.d.ts +245 -1
  92. package/lib/translations/zhCN.js +246 -2
  93. package/lib/utilities/os.d.ts +1 -0
  94. package/lib/utilities/os.js +15 -0
  95. package/lib/utilities/renderer.d.ts +1 -0
  96. package/lib/utilities/renderer.js +7 -1
  97. package/lib-es/creator/provider-initializer.browser.js +4 -2
  98. package/lib-es/creator/provider-initializer.electron.js +11 -3
  99. package/lib-es/electron/injections.js +3 -0
  100. package/lib-es/electron/preload.js +2 -1
  101. package/lib-es/fragments/annotation/style.css +1 -0
  102. package/lib-es/fragments/whiteboard/style.css +4 -0
  103. package/lib-es/modules/action-bar/main-scene/store.base.js +5 -0
  104. package/lib-es/modules/audio-stream/index.js +33 -1
  105. package/lib-es/modules/chat/chat-room-store.js +4 -2
  106. package/lib-es/modules/chat/index.js +1 -1
  107. package/lib-es/modules/chat/store.js +4 -2
  108. package/lib-es/modules/components/device-control/store.base.js +22 -3
  109. package/lib-es/modules/components/leave-meeting/index.js +3 -2
  110. package/lib-es/modules/components/leave-meeting/main-scene/store.js +6 -1
  111. package/lib-es/modules/components/leave-meeting/store.base.js +1 -1
  112. package/lib-es/modules/components/leave-meeting/waiting-scene/store.js +6 -1
  113. package/lib-es/modules/components/member-window/components/member-actions/components/icon-status.js +7 -10
  114. package/lib-es/modules/components/member-window/components/member-actions/components/more-actions.js +2 -2
  115. package/lib-es/modules/components/member-window/components/member-actions/index.js +0 -7
  116. package/lib-es/modules/components/member-window/components/member-actions/store.js +1 -1
  117. package/lib-es/modules/components/member-window/index.js +1 -1
  118. package/lib-es/modules/components/tab-frame/index.css +12 -1
  119. package/lib-es/modules/components/tab-frame/index.js +4 -1
  120. package/lib-es/modules/control-bar/components/share-state-nav/index.js +1 -3
  121. package/lib-es/modules/control-bar/mouse-event-bridge.js +79 -0
  122. package/lib-es/modules/control-bar/store.js +18 -30
  123. package/lib-es/modules/control-bar/view.js +21 -17
  124. package/lib-es/modules/dialog/dialogs/connection-gateway/tabs.js +3 -2
  125. package/lib-es/modules/dialog/dialogs/invite/index.js +6 -24
  126. package/lib-es/modules/invite/components/copy-info.css +72 -0
  127. package/lib-es/modules/invite/components/copy-info.js +137 -0
  128. package/lib-es/modules/invite/components/pstn-invite.js +3 -15
  129. package/lib-es/modules/invite/components/voip-invite.js +10 -1
  130. package/lib-es/modules/invite/enums.js +2 -0
  131. package/lib-es/modules/invite/store.js +38 -14
  132. package/lib-es/modules/invite/view.js +43 -22
  133. package/lib-es/modules/layout/store.base.js +20 -23
  134. package/lib-es/modules/participant/components/confirm-input/index.css +67 -1
  135. package/lib-es/modules/participant/components/confirm-input/index.js +16 -13
  136. package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/index.css +4 -0
  137. package/lib-es/modules/participant/store.base.js +34 -7
  138. package/lib-es/modules/pc-audio-connect/main-scene/store.js +12 -2
  139. package/lib-es/modules/pc-audio-connect/view.js +4 -2
  140. package/lib-es/modules/phone-audio-connect/store.js +12 -1
  141. package/lib-es/modules/phone-audio-connect/view.js +6 -4
  142. package/lib-es/modules/secondary-window/index.js +2 -2
  143. package/lib-es/modules/secondary-window/store.js +16 -1
  144. package/lib-es/modules/secondary-window/view.js +97 -73
  145. package/lib-es/modules/toast-manager/type.js +4 -1
  146. package/lib-es/plugins/module-dev-plugin.js +4 -4
  147. package/lib-es/providers/ability-provider.js +13 -1
  148. package/lib-es/providers/mouse-detect/provider.empty.js +39 -0
  149. package/lib-es/providers/mouse-detect/provider.js +13 -4
  150. package/lib-es/providers/phone-audio-provider.js +109 -48
  151. package/lib-es/providers/user-audio-volume-provider.js +3 -2
  152. package/lib-es/scenes/main-scene.js +3 -2
  153. package/lib-es/shared-data/chat-data.js +55 -8
  154. package/lib-es/shared-data/member-data.js +46 -17
  155. package/lib-es/shared-data/video-window.js +8 -4
  156. package/lib-es/translations/enUS.js +247 -3
  157. package/lib-es/translations/zhCN.js +246 -2
  158. package/lib-es/utilities/os.js +8 -0
  159. package/lib-es/utilities/renderer.js +7 -1
  160. package/lib-es/utilities/shared-storage.js +2 -2
  161. package/package.json +6 -6
  162. package/lib/modules/connection-gateway/components/computer/index.css +0 -12
  163. package/lib/modules/connection-gateway/components/computer/index.d.ts +0 -3
  164. package/lib/modules/connection-gateway/components/computer/index.js +0 -66
  165. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.css +0 -36
  166. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +0 -10
  167. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +0 -78
  168. package/lib/modules/connection-gateway/components/phone/components/calling/index.css +0 -72
  169. package/lib/modules/connection-gateway/components/phone/components/calling/index.d.ts +0 -7
  170. package/lib/modules/connection-gateway/components/phone/components/calling/index.js +0 -58
  171. package/lib/modules/connection-gateway/components/phone/components/remeber/index.css +0 -10
  172. package/lib/modules/connection-gateway/components/phone/components/remeber/index.d.ts +0 -5
  173. package/lib/modules/connection-gateway/components/phone/components/remeber/index.js +0 -24
  174. package/lib/modules/connection-gateway/components/phone/components/useing/index.css +0 -46
  175. package/lib/modules/connection-gateway/components/phone/components/useing/index.d.ts +0 -3
  176. package/lib/modules/connection-gateway/components/phone/components/useing/index.js +0 -36
  177. package/lib/modules/connection-gateway/components/phone/index.css +0 -49
  178. package/lib/modules/connection-gateway/components/phone/index.d.ts +0 -3
  179. package/lib/modules/connection-gateway/components/phone/index.js +0 -185
  180. package/lib/modules/connection-gateway/enums.d.ts +0 -4
  181. package/lib/modules/connection-gateway/enums.js +0 -12
  182. package/lib/modules/connection-gateway/index.css +0 -6
  183. package/lib/modules/connection-gateway/index.d.ts +0 -10
  184. package/lib/modules/connection-gateway/index.js +0 -78
  185. package/lib/modules/connection-gateway/store.d.ts +0 -68
  186. package/lib/modules/connection-gateway/store.js +0 -713
  187. package/lib/modules/connection-gateway/types.d.ts +0 -8
  188. package/lib/modules/connection-gateway/types.js +0 -6
  189. package/lib/modules/connection-gateway/view.d.ts +0 -1
  190. package/lib/modules/connection-gateway/view.js +0 -39
  191. package/lib-es/modules/connection-gateway/components/computer/index.css +0 -12
  192. package/lib-es/modules/connection-gateway/components/computer/index.js +0 -59
  193. package/lib-es/modules/connection-gateway/components/phone/components/callinfo/index.css +0 -36
  194. package/lib-es/modules/connection-gateway/components/phone/components/callinfo/index.js +0 -71
  195. package/lib-es/modules/connection-gateway/components/phone/components/calling/index.css +0 -72
  196. package/lib-es/modules/connection-gateway/components/phone/components/calling/index.js +0 -51
  197. package/lib-es/modules/connection-gateway/components/phone/components/remeber/index.css +0 -10
  198. package/lib-es/modules/connection-gateway/components/phone/components/remeber/index.js +0 -17
  199. package/lib-es/modules/connection-gateway/components/phone/components/useing/index.css +0 -46
  200. package/lib-es/modules/connection-gateway/components/phone/components/useing/index.js +0 -29
  201. package/lib-es/modules/connection-gateway/components/phone/index.css +0 -49
  202. package/lib-es/modules/connection-gateway/components/phone/index.js +0 -177
  203. package/lib-es/modules/connection-gateway/enums.js +0 -5
  204. package/lib-es/modules/connection-gateway/index.css +0 -6
  205. package/lib-es/modules/connection-gateway/index.js +0 -60
  206. package/lib-es/modules/connection-gateway/store.js +0 -707
  207. package/lib-es/modules/connection-gateway/types.js +0 -1
  208. package/lib-es/modules/connection-gateway/view.js +0 -31
@@ -1,177 +0,0 @@
1
- import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
- import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
- import "core-js/modules/es.array.map.js";
4
- import "core-js/modules/es.object.to-string.js";
5
- import "core-js/modules/esnext.iterator.constructor.js";
6
- import "core-js/modules/esnext.iterator.map.js";
7
- import { FcrButton } from 'agora-ui-foundation/lib/components/button';
8
- import FcrDivider from 'agora-ui-foundation/lib/components/divider';
9
- import { FcrZonePhone } from 'agora-ui-foundation/lib/components/zone-phone';
10
- import { isPhoneNumber } from 'agora-foundation/lib/utilities/regex';
11
- import { CallingPhone } from './components/calling';
12
- import ConnectionInfo from './components/callinfo';
13
- import { observer } from 'mobx-react';
14
- import { ConnectionUsing } from './components/useing';
15
- import { ConnectionRemember } from './components/remeber';
16
- import { useContext, useEffect, useState } from 'react';
17
- import { StoreContext } from '../../store';
18
- import { FcrRoomConnectorSessionReason, FcrRoomConnectorSessionState } from 'fcr-core/lib/room-control/room-connector-control/type';
19
- import './index.css';
20
- import { useI18n } from 'agora-ui-foundation/lib/i18n';
21
- import { FcrUIConnectType } from '../../../../type';
22
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
- var ConnectFromPhone = observer(function () {
24
- var _useContext = useContext(StoreContext),
25
- phoneCallState = _useContext.phoneCallState,
26
- regionChangeHandler = _useContext.regionChangeHandler,
27
- currentRegion = _useContext.currentRegion,
28
- connectInfo = _useContext.connectInfo,
29
- rememberedNumberList = _useContext.rememberedNumberList,
30
- rememberMe = _useContext.rememberMe,
31
- startCall = _useContext.startCall,
32
- stopCall = _useContext.stopCall,
33
- setCurrentCallInfo = _useContext.setCurrentCallInfo,
34
- currentCallInfo = _useContext.currentCallInfo,
35
- setRememberMe = _useContext.setRememberMe,
36
- connectType = _useContext.connectType,
37
- calling = _useContext.calling,
38
- phoneCallReason = _useContext.phoneCallReason,
39
- outgoingCall = _useContext.outgoingCall,
40
- isHangup = _useContext.isHangup,
41
- hasPstnStream = _useContext.hasPstnStream,
42
- hasOwnPstnStream = _useContext.hasOwnPstnStream,
43
- hasNeedMergedStream = _useContext.hasNeedMergedStream;
44
- var transI18n = useI18n();
45
- var _useState = useState(''),
46
- _useState2 = _slicedToArray(_useState, 2),
47
- errorMessage = _useState2[0],
48
- setErrorMessage = _useState2[1];
49
- var _useState3 = useState(false),
50
- _useState4 = _slicedToArray(_useState3, 2),
51
- isRejectedState = _useState4[0],
52
- setRejected = _useState4[1];
53
- var _useState5 = useState(false),
54
- _useState6 = _slicedToArray(_useState5, 2),
55
- isStaticState = _useState6[0],
56
- setStaticState = _useState6[1];
57
- var _useState7 = useState(false),
58
- _useState8 = _slicedToArray(_useState7, 2),
59
- isRingingState = _useState8[0],
60
- setRingingState = _useState8[1];
61
- var _useState9 = useState(false),
62
- _useState0 = _slicedToArray(_useState9, 2),
63
- isAcceptingState = _useState0[0],
64
- setAcceptingState = _useState0[1];
65
- var validateNumberHandler = function validateNumberHandler(value) {
66
- if (!value) {
67
- setErrorMessage(transI18n('fmt_PSTN_tips_unempty'));
68
- return false;
69
- }
70
- if (!isPhoneNumber(value)) {
71
- setErrorMessage(transI18n('fmt_PSTN_tips_formaterror'));
72
- return false;
73
- }
74
- setErrorMessage('');
75
- return true;
76
- };
77
- var handleCallSelf = function handleCallSelf() {
78
- var phone = currentCallInfo.phone;
79
- if (!validateNumberHandler(phone)) return;
80
- startCall();
81
- };
82
- var isPhoneAudioConnected = connectType === FcrUIConnectType.PHONE;
83
- useEffect(function () {
84
- setRejected(phoneCallState === FcrRoomConnectorSessionState.END && phoneCallReason === FcrRoomConnectorSessionReason.REJECT);
85
- setStaticState(phoneCallReason === FcrRoomConnectorSessionReason.NONE && phoneCallState === FcrRoomConnectorSessionState.CALLING);
86
- setRingingState(phoneCallState === FcrRoomConnectorSessionState.RINGING && phoneCallReason === FcrRoomConnectorSessionReason.NONE);
87
- setAcceptingState(phoneCallReason === FcrRoomConnectorSessionReason.ACCEPTED && phoneCallState === FcrRoomConnectorSessionState.END);
88
- }, [phoneCallState, phoneCallReason]);
89
- return /*#__PURE__*/_jsxs("div", {
90
- className: "connector-phone",
91
- children: [(isStaticState && !isAcceptingState && !hasOwnPstnStream || hasPstnStream && !hasOwnPstnStream) && /*#__PURE__*/_jsxs("div", {
92
- className: "connector-phone_inner",
93
- children: [/*#__PURE__*/_jsxs("div", {
94
- className: "connector-phone_selector",
95
- children: [/*#__PURE__*/_jsx(FcrZonePhone, {
96
- zoneDefault: currentCallInfo.zone || '+86',
97
- phoneDefault: currentCallInfo.phone || '',
98
- zoneOptions: [{
99
- text: transI18n('fmt_PSTN_status_china'),
100
- value: '+86'
101
- }, {
102
- text: transI18n('fmt_PSTN_status_usa'),
103
- value: '+1'
104
- }],
105
- phoneOptions: _toConsumableArray(rememberedNumberList.map(function (_ref) {
106
- var text = _ref.zone,
107
- value = _ref.phone;
108
- return {
109
- text: text,
110
- value: value
111
- };
112
- })),
113
- onChange: function onChange(zone, phone) {
114
- setCurrentCallInfo({
115
- zone: zone,
116
- phone: phone
117
- });
118
- },
119
- onInputBlur: function onInputBlur() {
120
- return validateNumberHandler(currentCallInfo.phone);
121
- }
122
- }), errorMessage && /*#__PURE__*/_jsx("div", {
123
- className: "connector-phone_selector_errmsg",
124
- children: errorMessage
125
- })]
126
- }), /*#__PURE__*/_jsx(ConnectionRemember, {
127
- checked: rememberMe,
128
- onChange: setRememberMe
129
- })]
130
- }), (isPhoneAudioConnected || isAcceptingState) && hasOwnPstnStream && /*#__PURE__*/_jsx(ConnectionUsing, {}), isStaticState && !hasOwnPstnStream && /*#__PURE__*/_jsx("div", {
131
- className: "connector-phone_inner",
132
- children: /*#__PURE__*/_jsx(FcrButton, {
133
- size: "XS",
134
- block: true,
135
- styleType: "success",
136
- className: "connector-phone_callme-button",
137
- onClick: handleCallSelf,
138
- loading: calling,
139
- children: transI18n('fmt_pstn_button_callme')
140
- })
141
- }), (isRingingState || !isStaticState) && !isAcceptingState && /*#__PURE__*/_jsx(CallingPhone, {
142
- failure: !isRingingState,
143
- number: outgoingCall ? currentCallInfo.phone : '',
144
- region: outgoingCall ? currentCallInfo.zone : '',
145
- reason: isRingingState ? transI18n('fmt_pstn_status_calling') : isRejectedState ? transI18n('fmt_pstn_status_hungup') : isHangup ? transI18n('fmt_PSTN_status_hangup') : transI18n('fmt_pstn_status_failed')
146
- }), (isRingingState || isAcceptingState || !isStaticState) && /*#__PURE__*/_jsx("div", {
147
- className: "connector-phone_inner",
148
- children: /*#__PURE__*/_jsx(FcrButton, {
149
- size: "XS",
150
- block: true,
151
- styleType: "danger",
152
- className: "connector-phone_hangup-button",
153
- disabled: !isAcceptingState && !isRingingState,
154
- onClick: stopCall,
155
- children: transI18n('fmt_pstn_button_hangupphone')
156
- })
157
- }), (outgoingCall || isStaticState) && (!hasOwnPstnStream || isAcceptingState) && /*#__PURE__*/_jsx(FcrDivider, {
158
- style: {
159
- margin: '10px 0 12px'
160
- },
161
- type: "horizontal",
162
- size: "0.4px",
163
- children: transI18n('fmt_pstn_label_dialinphone')
164
- }), hasPstnStream && !outgoingCall && !hasOwnPstnStream && hasNeedMergedStream && /*#__PURE__*/_jsx("div", {
165
- className: "connector-phone-alert",
166
- children: transI18n('fmt_pstn_label_alreadyin', {
167
- reason1: connectInfo === null || connectInfo === void 0 ? void 0 : connectInfo.phoneUserId
168
- })
169
- }), /*#__PURE__*/_jsx(ConnectionInfo, {
170
- disabled: phoneCallState === FcrRoomConnectorSessionState.END,
171
- onChange: regionChangeHandler,
172
- value: currentRegion,
173
- info: connectInfo
174
- })]
175
- });
176
- });
177
- export default ConnectFromPhone;
@@ -1,5 +0,0 @@
1
- export var ConnectorRegion = /*#__PURE__*/function (ConnectorRegion) {
2
- ConnectorRegion[ConnectorRegion["CHINA"] = 1] = "CHINA";
3
- ConnectorRegion[ConnectorRegion["AMERICA"] = 2] = "AMERICA";
4
- return ConnectorRegion;
5
- }({});
@@ -1,6 +0,0 @@
1
- .connector-frame {
2
- display: flex;
3
- flex-direction: column;
4
- height: 100%;
5
- width: 100%;
6
- }
@@ -1,60 +0,0 @@
1
- import "core-js/modules/es.reflect.construct.js";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
- import _inherits from "@babel/runtime/helpers/inherits";
7
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
- import "core-js/modules/es.error.cause.js";
9
- import "core-js/modules/es.error.to-string.js";
10
- import "core-js/modules/es.array.concat.js";
11
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
12
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
13
- import { UIModule } from '../../base';
14
- import ConnectionGatewayStore, { StoreContext } from './store';
15
- import { View } from './view';
16
- import './index.css';
17
- import { jsx as _jsx } from "react/jsx-runtime";
18
- export var ConnectionGatewayUIModule = /*#__PURE__*/function (_UIModule) {
19
- function ConnectionGatewayUIModule() {
20
- var _this;
21
- _classCallCheck(this, ConnectionGatewayUIModule);
22
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
23
- args[_key] = arguments[_key];
24
- }
25
- _this = _callSuper(this, ConnectionGatewayUIModule, [].concat(args));
26
- _defineProperty(_this, "_store", null);
27
- return _this;
28
- }
29
- _inherits(ConnectionGatewayUIModule, _UIModule);
30
- return _createClass(ConnectionGatewayUIModule, [{
31
- key: "store",
32
- get: function get() {
33
- if (!this._store) {
34
- throw new Error('ConnectionGatewayStore is not initialized');
35
- }
36
- return this._store;
37
- }
38
- }, {
39
- key: "onNodeWillActive",
40
- value: function onNodeWillActive() {
41
- var args = {
42
- objectManager: this.objectManager
43
- };
44
- this._store = new ConnectionGatewayStore(args);
45
- }
46
- }, {
47
- key: "onNodeWillInactive",
48
- value: function onNodeWillInactive() {
49
- this.store.release();
50
- }
51
- }, {
52
- key: "getComponent",
53
- value: function getComponent() {
54
- return /*#__PURE__*/_jsx(StoreContext.Provider, {
55
- value: this.store,
56
- children: /*#__PURE__*/_jsx(View, {})
57
- });
58
- }
59
- }]);
60
- }(UIModule);