yach.open.jssdk 4.3.1 → 4.3.3
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/dist/yach_jssdk_4.3.3.js +1 -0
- package/es/api/app/custom/talYoungFilesUpload.js +2 -0
- package/es/api/biz/chat/chooseConversationByCorpId.js +2 -0
- package/es/api/biz/chat/openSingleChat.js +2 -0
- package/es/api/biz/chat/openSquad.js +2 -0
- package/es/api/biz/chat/openTeamChat.js +2 -0
- package/es/api/biz/chat/pickConversation.js +2 -0
- package/es/api/biz/chat/sendP2PMsg.js +2 -0
- package/es/api/biz/contact/complexPicker.js +2 -0
- package/es/api/biz/contact/departmentsPicker.js +2 -0
- package/es/api/biz/group/groupComplexPicker.js +2 -0
- package/es/api/biz/map/multipointView.js +2 -0
- package/es/api/biz/map/view.js +2 -0
- package/es/api/biz/navigation/close.js +2 -0
- package/es/api/biz/navigation/goBack.js +2 -0
- package/es/api/biz/navigation/quit.js +2 -0
- package/es/api/biz/navigation/replace.js +2 -0
- package/es/api/biz/navigation/setIcon.js +2 -0
- package/es/api/biz/navigation/setLeft.js +2 -0
- package/es/api/biz/navigation/setMenu.js +2 -0
- package/es/api/biz/navigation/setPanGestureEnable.js +2 -0
- package/es/api/biz/navigation/setRight.js +2 -0
- package/es/api/biz/navigation/setTitle.js +2 -0
- package/es/api/biz/navigation/setTitleExpandIcon.js +2 -0
- package/es/api/biz/navigation/setWindowBig.js +2 -0
- package/es/api/biz/navigation/tencentMeeting.js +2 -0
- package/es/api/biz/navigation/tencentMeetingBegin.js +2 -0
- package/es/api/biz/navigation/updateExpandTitle.js +2 -0
- package/es/api/biz/telephone/call.js +2 -0
- package/es/api/biz/telephone/showCallMenu.js +2 -0
- package/es/api/biz/util/assistantCreate.js +2 -0
- package/es/api/biz/util/authFinish.js +2 -0
- package/es/api/biz/util/authStart.js +2 -0
- package/es/api/biz/util/chosen.js +2 -0
- package/es/api/biz/util/clipboardFileUpload.js +2 -0
- package/es/api/biz/util/closeWindow.js +2 -0
- package/es/api/biz/util/complain.js +2 -0
- package/es/api/biz/util/createModifySchedule.js +2 -0
- package/es/api/biz/util/datepicker.js +2 -0
- package/es/api/biz/util/datetimepicker.js +2 -0
- package/es/api/biz/util/disableScreenCapture.js +2 -0
- package/es/api/biz/util/downloadFile.js +2 -0
- package/es/api/biz/util/entergroupCheck.d.ts +1 -0
- package/es/api/biz/util/entergroupCheck.js +2 -0
- package/es/api/biz/util/externalLinkPreviewFile.js +2 -0
- package/es/api/biz/util/feedback.js +2 -0
- package/es/api/biz/util/getSingleWebviewData.js +2 -0
- package/es/api/biz/util/getTogetherConfig.js +2 -0
- package/es/api/biz/util/getToken.js +2 -0
- package/es/api/biz/util/injectScript.js +2 -0
- package/es/api/biz/util/invoice.js +2 -0
- package/es/api/biz/util/mediaFileUpload.js +2 -0
- package/es/api/biz/util/onlineDocmentOpenTeamChat.js +2 -0
- package/es/api/biz/util/open.js +2 -0
- package/es/api/biz/util/openLink.js +2 -0
- package/es/api/biz/util/openMediaFileDialog.js +2 -0
- package/es/api/biz/util/openSingleWebview.js +2 -0
- package/es/api/biz/util/openSlidePanel.js +2 -0
- package/es/api/biz/util/openTalYoungToTopic.js +2 -0
- package/es/api/biz/util/openTogetherEyeWebview.js +2 -0
- package/es/api/biz/util/openUserSchedule.js +2 -0
- package/es/api/biz/util/openVideoPlayer.js +2 -0
- package/es/api/biz/util/previewFile.js +2 -0
- package/es/api/biz/util/previewImage.js +2 -0
- package/es/api/biz/util/proxy.js +2 -0
- package/es/api/biz/util/pushWorkMsg.js +2 -0
- package/es/api/biz/util/remind.js +2 -0
- package/es/api/biz/util/resetSessionUnread.d.ts +8 -0
- package/es/api/biz/util/resetSessionUnread.js +23 -0
- package/es/api/biz/util/rouseApp.js +2 -0
- package/es/api/biz/util/savePic.js +2 -0
- package/es/api/biz/util/scan.js +2 -0
- package/es/api/biz/util/selectDepartment.js +2 -0
- package/es/api/biz/util/share.js +2 -0
- package/es/api/biz/util/takePicture.js +2 -0
- package/es/api/biz/util/uploadAttachment.js +2 -0
- package/es/api/biz/util/yachEvent.js +2 -0
- package/es/api/biz/util/zfbAuth.js +2 -0
- package/es/api/biz/webViewMessage/send.js +2 -0
- package/es/api/device/audio/download.js +2 -0
- package/es/api/device/audio/onPlayEnd.js +2 -0
- package/es/api/device/audio/onRecordEnd.js +2 -0
- package/es/api/device/audio/onRecordEnd_v2.js +2 -0
- package/es/api/device/audio/pause.js +2 -0
- package/es/api/device/audio/play.js +2 -0
- package/es/api/device/audio/resume.js +2 -0
- package/es/api/device/audio/startRecord.js +2 -0
- package/es/api/device/audio/startRecord_v2.js +2 -0
- package/es/api/device/audio/stop.js +2 -0
- package/es/api/device/audio/stopRecord.js +2 -0
- package/es/api/device/audio/stopRecord_v2.js +2 -0
- package/es/api/device/base/checkStepPermission.js +2 -0
- package/es/api/device/base/getPhoneInfo.js +2 -0
- package/es/api/device/base/getUUID.js +2 -0
- package/es/api/device/connection/getNetworkType.js +2 -0
- package/es/api/device/connection/isAtTal.js +4 -2
- package/es/api/device/geolocation/get.js +2 -0
- package/es/api/device/geolocation/getSwitch.js +2 -0
- package/es/api/device/notification/actionSheet.js +2 -0
- package/es/api/device/notification/alert.js +2 -0
- package/es/api/device/notification/confirm.js +2 -0
- package/es/api/device/notification/hidePreloader.js +2 -0
- package/es/api/device/notification/showPreloader.js +2 -0
- package/es/api/device/notification/toast.js +2 -0
- package/es/api/device/notification/vibrate.js +2 -0
- package/es/api/device/system/getLang.js +2 -0
- package/es/api/device/system/setLight.js +2 -0
- package/es/api/initAPI.js +5 -3
- package/es/api/primary/createTab.js +2 -0
- package/es/api/primary/exitFullScreen.js +2 -0
- package/es/api/primary/fullScreen.js +2 -0
- package/es/api/primary/weeklyShare.js +2 -0
- package/es/api/runtime/permission/requestAuthCode.js +2 -0
- package/es/api/ui/pullToRefresh/disable.js +2 -0
- package/es/api/ui/pullToRefresh/enable.js +2 -0
- package/es/api/ui/pullToRefresh/stop.js +2 -0
- package/es/api/ui/webViewBounce/disable.js +2 -0
- package/es/api/util/domainStorage/getItem.js +2 -0
- package/es/api/util/domainStorage/removeItem.js +2 -0
- package/es/api/util/domainStorage/setItem.js +2 -0
- package/es/api/util/tool/flushLog.js +2 -0
- package/es/api/util/tool/log.js +2 -0
- package/es/index.d.ts +3 -1
- package/es/index.js +28 -15
- package/es/lib/bridge/mobile.js +22 -7
- package/es/lib/bridge/pc.js +12 -3
- package/es/lib/helper/apiHelper.js +2 -0
- package/es/lib/helper/codeMap.js +2 -0
- package/es/lib/helper/event.js +19 -7
- package/es/lib/helper/pcIframe.js +49 -19
- package/es/lib/index.js +21 -7
- package/es/lib/sdk/index.js +39 -20
- package/es/lib/sdk/sdk.typings.js +1 -0
- package/es/utils/bpitLog.js +13 -4
- package/es/utils/compareVersions.js +53 -26
- package/es/utils/console.js +17 -1
- package/es/utils/env.js +18 -11
- package/es/utils/index.js +6 -1
- package/libs/api/app/custom/talYoungFilesUpload.js +7 -2
- package/libs/api/biz/chat/chooseConversationByCorpId.js +7 -1
- package/libs/api/biz/chat/openSingleChat.js +7 -1
- package/libs/api/biz/chat/openSquad.js +7 -1
- package/libs/api/biz/chat/openTeamChat.js +7 -1
- package/libs/api/biz/chat/pickConversation.js +7 -1
- package/libs/api/biz/chat/sendP2PMsg.js +7 -1
- package/libs/api/biz/contact/complexPicker.js +7 -1
- package/libs/api/biz/contact/departmentsPicker.js +7 -1
- package/libs/api/biz/group/groupComplexPicker.js +7 -1
- package/libs/api/biz/map/multipointView.js +7 -1
- package/libs/api/biz/map/view.js +7 -1
- package/libs/api/biz/navigation/close.js +7 -1
- package/libs/api/biz/navigation/goBack.js +7 -1
- package/libs/api/biz/navigation/quit.js +7 -1
- package/libs/api/biz/navigation/replace.js +7 -1
- package/libs/api/biz/navigation/setIcon.js +8 -1
- package/libs/api/biz/navigation/setLeft.js +8 -1
- package/libs/api/biz/navigation/setMenu.js +8 -1
- package/libs/api/biz/navigation/setPanGestureEnable.js +8 -1
- package/libs/api/biz/navigation/setRight.js +8 -1
- package/libs/api/biz/navigation/setTitle.js +7 -1
- package/libs/api/biz/navigation/setTitleExpandIcon.js +8 -1
- package/libs/api/biz/navigation/setWindowBig.js +7 -2
- package/libs/api/biz/navigation/tencentMeeting.js +7 -1
- package/libs/api/biz/navigation/tencentMeetingBegin.js +7 -1
- package/libs/api/biz/navigation/updateExpandTitle.js +7 -1
- package/libs/api/biz/telephone/call.js +7 -1
- package/libs/api/biz/telephone/showCallMenu.js +7 -1
- package/libs/api/biz/util/assistantCreate.js +7 -1
- package/libs/api/biz/util/authFinish.js +7 -1
- package/libs/api/biz/util/authStart.js +7 -1
- package/libs/api/biz/util/chosen.js +7 -1
- package/libs/api/biz/util/clipboardFileUpload.js +7 -1
- package/libs/api/biz/util/closeWindow.js +7 -1
- package/libs/api/biz/util/complain.js +7 -1
- package/libs/api/biz/util/createModifySchedule.js +7 -1
- package/libs/api/biz/util/datepicker.js +7 -1
- package/libs/api/biz/util/datetimepicker.js +7 -1
- package/libs/api/biz/util/disableScreenCapture.js +7 -1
- package/libs/api/biz/util/downloadFile.js +7 -1
- package/libs/api/biz/util/entergroupCheck.d.ts +1 -0
- package/libs/api/biz/util/entergroupCheck.js +7 -1
- package/libs/api/biz/util/externalLinkPreviewFile.js +7 -1
- package/libs/api/biz/util/feedback.js +7 -1
- package/libs/api/biz/util/getSingleWebviewData.js +7 -1
- package/libs/api/biz/util/getTogetherConfig.js +7 -1
- package/libs/api/biz/util/getToken.js +7 -1
- package/libs/api/biz/util/injectScript.js +7 -1
- package/libs/api/biz/util/invoice.js +7 -2
- package/libs/api/biz/util/mediaFileUpload.js +7 -2
- package/libs/api/biz/util/onlineDocmentOpenTeamChat.js +7 -1
- package/libs/api/biz/util/open.js +7 -1
- package/libs/api/biz/util/openLink.js +7 -1
- package/libs/api/biz/util/openMediaFileDialog.js +7 -2
- package/libs/api/biz/util/openSingleWebview.js +7 -1
- package/libs/api/biz/util/openSlidePanel.js +7 -1
- package/libs/api/biz/util/openTalYoungToTopic.js +7 -2
- package/libs/api/biz/util/openTogetherEyeWebview.js +7 -1
- package/libs/api/biz/util/openUserSchedule.js +7 -1
- package/libs/api/biz/util/openVideoPlayer.js +7 -1
- package/libs/api/biz/util/previewFile.js +7 -1
- package/libs/api/biz/util/previewImage.js +7 -1
- package/libs/api/biz/util/proxy.js +7 -1
- package/libs/api/biz/util/pushWorkMsg.js +7 -2
- package/libs/api/biz/util/remind.js +7 -1
- package/libs/api/biz/util/resetSessionUnread.d.ts +8 -0
- package/libs/api/biz/util/resetSessionUnread.js +34 -0
- package/libs/api/biz/util/rouseApp.js +7 -2
- package/libs/api/biz/util/savePic.js +7 -1
- package/libs/api/biz/util/scan.js +7 -1
- package/libs/api/biz/util/selectDepartment.js +7 -1
- package/libs/api/biz/util/share.js +7 -1
- package/libs/api/biz/util/takePicture.js +7 -1
- package/libs/api/biz/util/uploadAttachment.js +7 -1
- package/libs/api/biz/util/yachEvent.js +7 -1
- package/libs/api/biz/util/zfbAuth.js +7 -1
- package/libs/api/biz/webViewMessage/send.js +7 -1
- package/libs/api/device/audio/download.js +7 -1
- package/libs/api/device/audio/onPlayEnd.js +7 -1
- package/libs/api/device/audio/onRecordEnd.js +7 -1
- package/libs/api/device/audio/onRecordEnd_v2.js +7 -1
- package/libs/api/device/audio/pause.js +7 -1
- package/libs/api/device/audio/play.js +7 -1
- package/libs/api/device/audio/resume.js +7 -1
- package/libs/api/device/audio/startRecord.js +7 -1
- package/libs/api/device/audio/startRecord_v2.js +7 -1
- package/libs/api/device/audio/stop.js +7 -1
- package/libs/api/device/audio/stopRecord.js +7 -1
- package/libs/api/device/audio/stopRecord_v2.js +7 -1
- package/libs/api/device/base/checkStepPermission.js +7 -1
- package/libs/api/device/base/getPhoneInfo.js +7 -1
- package/libs/api/device/base/getUUID.js +7 -1
- package/libs/api/device/connection/getNetworkType.js +7 -1
- package/libs/api/device/connection/isAtTal.js +9 -3
- package/libs/api/device/geolocation/get.js +7 -1
- package/libs/api/device/geolocation/getSwitch.js +7 -1
- package/libs/api/device/notification/actionSheet.js +7 -1
- package/libs/api/device/notification/alert.js +7 -1
- package/libs/api/device/notification/confirm.js +7 -1
- package/libs/api/device/notification/hidePreloader.js +7 -1
- package/libs/api/device/notification/showPreloader.js +7 -1
- package/libs/api/device/notification/toast.js +7 -1
- package/libs/api/device/notification/vibrate.js +7 -1
- package/libs/api/device/system/getLang.js +7 -1
- package/libs/api/device/system/setLight.js +7 -1
- package/libs/api/initAPI.js +13 -4
- package/libs/api/primary/createTab.js +7 -1
- package/libs/api/primary/exitFullScreen.js +7 -1
- package/libs/api/primary/fullScreen.js +7 -1
- package/libs/api/primary/weeklyShare.js +7 -1
- package/libs/api/runtime/permission/requestAuthCode.js +7 -1
- package/libs/api/ui/pullToRefresh/disable.js +7 -1
- package/libs/api/ui/pullToRefresh/enable.js +7 -1
- package/libs/api/ui/pullToRefresh/stop.js +7 -1
- package/libs/api/ui/webViewBounce/disable.js +7 -1
- package/libs/api/util/domainStorage/getItem.js +7 -1
- package/libs/api/util/domainStorage/removeItem.js +7 -1
- package/libs/api/util/domainStorage/setItem.js +7 -1
- package/libs/api/util/tool/flushLog.js +7 -1
- package/libs/api/util/tool/log.js +7 -1
- package/libs/index.d.ts +3 -1
- package/libs/index.js +512 -250
- package/libs/lib/bridge/index.js +13 -6
- package/libs/lib/bridge/mobile.js +43 -11
- package/libs/lib/bridge/pc.js +28 -8
- package/libs/lib/helper/apiHelper.js +7 -1
- package/libs/lib/helper/codeMap.js +7 -1
- package/libs/lib/helper/event.js +28 -8
- package/libs/lib/helper/pcIframe.js +56 -18
- package/libs/lib/index.js +33 -9
- package/libs/lib/sdk/index.js +49 -21
- package/libs/lib/sdk/sdk.typings.js +4 -0
- package/libs/utils/bpitLog.js +16 -4
- package/libs/utils/compareVersions.js +77 -32
- package/libs/utils/console.js +18 -2
- package/libs/utils/env.js +20 -11
- package/libs/utils/index.js +21 -8
- package/package.json +1 -1
- package/dist/yach_jssdk_4.3.1.js +0 -1
package/libs/lib/bridge/index.js
CHANGED
|
@@ -1,32 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
+
|
|
4
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
|
-
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _pc.PcBridgeInit;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
8
|
+
|
|
13
9
|
_Object$defineProperty(exports, "mobileBridge", {
|
|
14
10
|
enumerable: true,
|
|
15
11
|
get: function get() {
|
|
16
12
|
return _mobile.mobileBridge;
|
|
17
13
|
}
|
|
18
14
|
});
|
|
15
|
+
|
|
19
16
|
_Object$defineProperty(exports, "mobileBridgeInit", {
|
|
20
17
|
enumerable: true,
|
|
21
18
|
get: function get() {
|
|
22
19
|
return _mobile.mobileBridgeInit;
|
|
23
20
|
}
|
|
24
21
|
});
|
|
22
|
+
|
|
25
23
|
_Object$defineProperty(exports, "pcBridge", {
|
|
26
24
|
enumerable: true,
|
|
27
25
|
get: function get() {
|
|
28
26
|
return _pc.pcBridge;
|
|
29
27
|
}
|
|
30
28
|
});
|
|
29
|
+
|
|
30
|
+
_Object$defineProperty(exports, "PcBridgeInit", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _pc.PcBridgeInit;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
31
37
|
var _mobile = require("./mobile");
|
|
38
|
+
|
|
32
39
|
var _pc = require("./pc");
|
|
@@ -1,28 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
5
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
6
8
|
value: true
|
|
7
9
|
});
|
|
10
|
+
|
|
8
11
|
exports.mobileBridgeInit = exports.mobileBridge = void 0;
|
|
9
|
-
|
|
10
|
-
var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/promise"));
|
|
11
|
-
var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/object/assign"));
|
|
12
|
+
|
|
12
13
|
var _parseInt2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/parse-int"));
|
|
14
|
+
|
|
15
|
+
var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/object/assign"));
|
|
16
|
+
|
|
17
|
+
var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/promise"));
|
|
18
|
+
|
|
19
|
+
var _setTimeout2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/set-timeout"));
|
|
20
|
+
|
|
13
21
|
var _event = _interopRequireDefault(require("../helper/event"));
|
|
22
|
+
|
|
14
23
|
var _codeMap = require("../helper/codeMap");
|
|
24
|
+
|
|
15
25
|
var _utils = require("../../utils");
|
|
26
|
+
|
|
16
27
|
function setupWebViewJavascriptBridge(callback) {
|
|
17
28
|
if (window.WebViewJavascriptBridge) {
|
|
18
29
|
return callback(WebViewJavascriptBridge);
|
|
19
30
|
}
|
|
31
|
+
|
|
20
32
|
if (window.WKWebViewJavascriptBridge) {
|
|
21
33
|
return callback(WKWebViewJavascriptBridge);
|
|
22
34
|
}
|
|
35
|
+
|
|
23
36
|
if (window.WVJBCallbacks) {
|
|
24
37
|
return window.WVJBCallbacks.push(callback);
|
|
25
38
|
}
|
|
39
|
+
|
|
26
40
|
window.WVJBCallbacks = [callback];
|
|
27
41
|
var WVJBIframe = document.createElement('iframe');
|
|
28
42
|
WVJBIframe.style.display = 'none';
|
|
@@ -32,7 +46,8 @@ function setupWebViewJavascriptBridge(callback) {
|
|
|
32
46
|
document.documentElement.removeChild(WVJBIframe);
|
|
33
47
|
}, 0);
|
|
34
48
|
}
|
|
35
|
-
|
|
49
|
+
|
|
50
|
+
var mobileBridgeInit = function mobileBridgeInit() {
|
|
36
51
|
return new _promise["default"](function (resolve, reject) {
|
|
37
52
|
setupWebViewJavascriptBridge(function (bridge) {
|
|
38
53
|
(0, _utils.log)("\u6CE8\u518Cresume\u4E8B\u4EF6 ");
|
|
@@ -40,6 +55,7 @@ var mobileBridgeInit = exports.mobileBridgeInit = function mobileBridgeInit() {
|
|
|
40
55
|
(0, _utils.log)("resume\u76D1\u542C\u5230\u56DE\u8C03\uFF0C\u76F8\u5173\u53C2\u6570 ", {
|
|
41
56
|
resData: resData
|
|
42
57
|
});
|
|
58
|
+
|
|
43
59
|
_event["default"].execEvent('resume', resData);
|
|
44
60
|
});
|
|
45
61
|
(0, _utils.log)("\u6CE8\u518CunreadMsgAction\u4E8B\u4EF6 ");
|
|
@@ -47,6 +63,7 @@ var mobileBridgeInit = exports.mobileBridgeInit = function mobileBridgeInit() {
|
|
|
47
63
|
(0, _utils.log)("unreadMsgAction\u76D1\u542C\u5230\u56DE\u8C03\uFF0C\u76F8\u5173\u53C2\u6570 ", {
|
|
48
64
|
resData: resData
|
|
49
65
|
});
|
|
66
|
+
|
|
50
67
|
_event["default"].execEvent('unreadMsgAction', resData);
|
|
51
68
|
});
|
|
52
69
|
(0, _utils.log)("\u6CE8\u518CwebViewMsgReceive\u4E8B\u4EF6 ");
|
|
@@ -54,31 +71,38 @@ var mobileBridgeInit = exports.mobileBridgeInit = function mobileBridgeInit() {
|
|
|
54
71
|
(0, _utils.log)("webViewMsgReceive\u76D1\u542C\u5230\u56DE\u8C03\uFF0C\u76F8\u5173\u53C2\u6570 ", {
|
|
55
72
|
resData: resData
|
|
56
73
|
});
|
|
74
|
+
|
|
57
75
|
_event["default"].execEvent('webViewMsgReceive', resData);
|
|
58
76
|
});
|
|
59
77
|
bridge.registerHandler('pushWorkMsg', function (resData) {
|
|
60
78
|
(0, _utils.log)("pushWorkMsg\u76D1\u542C\u5230\u56DE\u8C03\uFF0C\u76F8\u5173\u53C2\u6570 ", {
|
|
61
79
|
resData: resData
|
|
62
80
|
});
|
|
81
|
+
|
|
63
82
|
_event["default"].execEvent('pushWorkMsg', resData);
|
|
64
83
|
});
|
|
65
84
|
bridge.registerHandler('getTogetherCallback', function (resData) {
|
|
66
85
|
(0, _utils.log)("getTogetherCallback\u76D1\u542C\u5230\u56DE\u8C03\uFF0C\u76F8\u5173\u53C2\u6570 ", {
|
|
67
86
|
resData: resData
|
|
68
87
|
});
|
|
88
|
+
|
|
69
89
|
_event["default"].execEvent('getTogetherCallback', resData);
|
|
70
90
|
});
|
|
71
91
|
bridge.registerHandler('sendMsgCommon', function (resData) {
|
|
72
92
|
(0, _utils.log)("sendMsgCommon ", {
|
|
73
93
|
resData: resData
|
|
74
94
|
});
|
|
95
|
+
|
|
75
96
|
_event["default"].execEvent('sendMsgCommon', resData);
|
|
76
97
|
});
|
|
77
98
|
resolve();
|
|
78
99
|
});
|
|
79
100
|
});
|
|
80
101
|
};
|
|
81
|
-
|
|
102
|
+
|
|
103
|
+
exports.mobileBridgeInit = mobileBridgeInit;
|
|
104
|
+
|
|
105
|
+
var mobileBridge = function mobileBridge(method, param) {
|
|
82
106
|
return new _promise["default"](function (resolve, reject) {
|
|
83
107
|
var p = (0, _assign["default"])({}, param);
|
|
84
108
|
setupWebViewJavascriptBridge(function (bridge) {
|
|
@@ -86,6 +110,7 @@ var mobileBridge = exports.mobileBridge = function mobileBridge(method, param) {
|
|
|
86
110
|
bridge.registerHandler(method, function (data) {
|
|
87
111
|
var onSuccess = param.onSuccess;
|
|
88
112
|
delete p.onSuccess;
|
|
113
|
+
|
|
89
114
|
if ('function' === typeof onSuccess) {
|
|
90
115
|
onSuccess(data);
|
|
91
116
|
resolve({
|
|
@@ -95,12 +120,16 @@ var mobileBridge = exports.mobileBridge = function mobileBridge(method, param) {
|
|
|
95
120
|
}
|
|
96
121
|
});
|
|
97
122
|
}
|
|
123
|
+
|
|
98
124
|
bridge.callHandler(method, param, function (e) {
|
|
99
125
|
var code = e.code,
|
|
100
|
-
|
|
101
|
-
|
|
126
|
+
message = e.message,
|
|
127
|
+
data = e.data;
|
|
128
|
+
|
|
102
129
|
var _code = (0, _parseInt2["default"])(code);
|
|
130
|
+
|
|
103
131
|
var callbackStr = (0, _codeMap.electronResCodeMap)(_code);
|
|
132
|
+
|
|
104
133
|
if (_code === -2 || _code === 7) {
|
|
105
134
|
(0, _utils.bpitLog)({
|
|
106
135
|
method: method,
|
|
@@ -117,8 +146,7 @@ var mobileBridge = exports.mobileBridge = function mobileBridge(method, param) {
|
|
|
117
146
|
reject({
|
|
118
147
|
_code: _code,
|
|
119
148
|
message: message
|
|
120
|
-
});
|
|
121
|
-
// return;
|
|
149
|
+
}); // return;
|
|
122
150
|
}
|
|
123
151
|
|
|
124
152
|
var callbackFun = p[callbackStr];
|
|
@@ -130,9 +158,11 @@ var mobileBridge = exports.mobileBridge = function mobileBridge(method, param) {
|
|
|
130
158
|
message: message,
|
|
131
159
|
callbackFun: callbackFun
|
|
132
160
|
});
|
|
161
|
+
|
|
133
162
|
if ('function' === typeof callbackFun) {
|
|
134
163
|
callbackFun(data || message);
|
|
135
164
|
}
|
|
165
|
+
|
|
136
166
|
resolve({
|
|
137
167
|
_code: _code,
|
|
138
168
|
message: message,
|
|
@@ -141,4 +171,6 @@ var mobileBridge = exports.mobileBridge = function mobileBridge(method, param) {
|
|
|
141
171
|
});
|
|
142
172
|
});
|
|
143
173
|
});
|
|
144
|
-
};
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
exports.mobileBridge = mobileBridge;
|
package/libs/lib/bridge/pc.js
CHANGED
|
@@ -1,27 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
5
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
6
8
|
value: true
|
|
7
9
|
});
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
|
|
11
|
+
exports.PcBridgeInit = exports.pcBridge = void 0;
|
|
12
|
+
|
|
10
13
|
var _parseInt2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/parse-int"));
|
|
14
|
+
|
|
15
|
+
var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/promise"));
|
|
16
|
+
|
|
11
17
|
var _pcIframe = _interopRequireDefault(require("../helper/pcIframe"));
|
|
18
|
+
|
|
12
19
|
var _codeMap = require("../helper/codeMap");
|
|
20
|
+
|
|
13
21
|
var _utils = require("../../utils");
|
|
14
|
-
|
|
22
|
+
|
|
23
|
+
var PcBridgeInit = function PcBridgeInit() {
|
|
15
24
|
_pcIframe["default"].init();
|
|
16
25
|
};
|
|
17
|
-
|
|
26
|
+
|
|
27
|
+
exports.PcBridgeInit = PcBridgeInit;
|
|
28
|
+
|
|
29
|
+
var pcBridge = function pcBridge(method, param) {
|
|
18
30
|
return new _promise["default"](function (resolve) {
|
|
19
31
|
return _pcIframe["default"].invokeAPI(method, param, function (_ref) {
|
|
20
32
|
var data = _ref.data,
|
|
21
|
-
|
|
22
|
-
|
|
33
|
+
code = _ref.code,
|
|
34
|
+
message = _ref.message;
|
|
35
|
+
|
|
23
36
|
var _code = (0, _parseInt2["default"])(code);
|
|
37
|
+
|
|
24
38
|
var callbackStr = (0, _codeMap.electronResCodeMap)(_code);
|
|
39
|
+
|
|
25
40
|
if (_code === -2) {
|
|
26
41
|
(0, _utils.bpitLog)({
|
|
27
42
|
method: method,
|
|
@@ -29,6 +44,7 @@ var pcBridge = exports.pcBridge = function pcBridge(method, param) {
|
|
|
29
44
|
message: message || 'SDK执行失败回调,相关参数'
|
|
30
45
|
});
|
|
31
46
|
}
|
|
47
|
+
|
|
32
48
|
var callbackFun = param[callbackStr];
|
|
33
49
|
(0, _utils.log)("SDK\u6267\u884C\u540E\u56DE\u8C03\uFF0C\u76F8\u5173\u53C2\u6570 ", {
|
|
34
50
|
method: method,
|
|
@@ -38,9 +54,11 @@ var pcBridge = exports.pcBridge = function pcBridge(method, param) {
|
|
|
38
54
|
message: message,
|
|
39
55
|
callbackFun: callbackFun
|
|
40
56
|
});
|
|
57
|
+
|
|
41
58
|
if ('function' === typeof callbackFun) {
|
|
42
59
|
callbackFun(data || message);
|
|
43
60
|
}
|
|
61
|
+
|
|
44
62
|
resolve({
|
|
45
63
|
_code: _code,
|
|
46
64
|
message: message,
|
|
@@ -48,4 +66,6 @@ var pcBridge = exports.pcBridge = function pcBridge(method, param) {
|
|
|
48
66
|
});
|
|
49
67
|
});
|
|
50
68
|
});
|
|
51
|
-
};
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
exports.pcBridge = pcBridge;
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
5
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
6
8
|
value: true
|
|
7
9
|
});
|
|
10
|
+
|
|
8
11
|
exports.genDefaultParamsDealFn = genDefaultParamsDealFn;
|
|
12
|
+
|
|
9
13
|
var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/object/assign"));
|
|
14
|
+
|
|
10
15
|
function genDefaultParamsDealFn(p) {
|
|
11
16
|
return function (r) {
|
|
12
17
|
return (0, _assign["default"])((0, _assign["default"])({}, p), r);
|
|
13
18
|
};
|
|
14
19
|
}
|
|
20
|
+
|
|
15
21
|
;
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
5
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
6
8
|
value: true
|
|
7
9
|
});
|
|
10
|
+
|
|
8
11
|
exports.electronResCodeMap = electronResCodeMap;
|
|
12
|
+
|
|
9
13
|
var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/map"));
|
|
14
|
+
|
|
10
15
|
var resCodeMap = new _map["default"]([[0, 'onSuccess'], [-1, 'onCancel'], [-2, 'onFail'], [-3, 'onProgress'], [-4, 'onSubmit']]);
|
|
16
|
+
|
|
11
17
|
function electronResCodeMap(code) {
|
|
12
18
|
return resCodeMap.get(code) || 'onFail';
|
|
13
19
|
}
|
package/libs/lib/helper/event.js
CHANGED
|
@@ -1,39 +1,56 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
5
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
6
8
|
value: true
|
|
7
9
|
});
|
|
10
|
+
|
|
8
11
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _indexOf = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/instance/index-of"));
|
|
11
|
-
var _splice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/instance/splice"));
|
|
12
|
+
|
|
12
13
|
var _forEach = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/instance/for-each"));
|
|
13
|
-
|
|
14
|
+
|
|
15
|
+
var _splice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/instance/splice"));
|
|
16
|
+
|
|
17
|
+
var _indexOf = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/instance/index-of"));
|
|
18
|
+
|
|
19
|
+
var _isArray = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/array/is-array"));
|
|
20
|
+
|
|
14
21
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck"));
|
|
15
|
-
|
|
22
|
+
|
|
23
|
+
var Event = function Event() {
|
|
16
24
|
var _this = this;
|
|
25
|
+
|
|
17
26
|
(0, _classCallCheck2["default"])(this, Event);
|
|
27
|
+
|
|
18
28
|
this.on = function (event, fn) {
|
|
19
29
|
if (!event || 'function' !== typeof fn) throw 'eventName is null or handle is not a function, on fail';
|
|
20
30
|
if (!(0, _isArray["default"])(_this.eventsHandle[event])) _this.eventsHandle[event] = [];
|
|
31
|
+
|
|
21
32
|
_this.eventsHandle[event].push(fn);
|
|
22
33
|
};
|
|
34
|
+
|
|
23
35
|
this.off = function (event, fn) {
|
|
24
36
|
if (!event) throw 'eventName is null, invoke off fail';
|
|
37
|
+
|
|
25
38
|
if (!fn) {
|
|
26
39
|
_this.eventsHandle[event] = [];
|
|
27
40
|
return;
|
|
28
41
|
}
|
|
42
|
+
|
|
29
43
|
if ((0, _isArray["default"])(_this.eventsHandle[event])) {
|
|
30
44
|
var _context, _context2;
|
|
45
|
+
|
|
31
46
|
var n = (0, _indexOf["default"])(_context = _this.eventsHandle[event]).call(_context, fn);
|
|
32
47
|
-1 !== n && (0, _splice["default"])(_context2 = _this.eventsHandle[event]).call(_context2, n, 1);
|
|
33
48
|
}
|
|
34
49
|
};
|
|
50
|
+
|
|
35
51
|
this.execEvent = function (event, data) {
|
|
36
52
|
var _context3;
|
|
53
|
+
|
|
37
54
|
(0, _isArray["default"])(this.eventsHandle[event]) && (0, _forEach["default"])(_context3 = this.eventsHandle[event]).call(_context3, function (fn) {
|
|
38
55
|
try {
|
|
39
56
|
fn(data);
|
|
@@ -42,7 +59,10 @@ var Event = /*#__PURE__*/(0, _createClass2["default"])(function Event() {
|
|
|
42
59
|
}
|
|
43
60
|
});
|
|
44
61
|
};
|
|
62
|
+
|
|
45
63
|
this.eventsHandle = {};
|
|
46
|
-
}
|
|
64
|
+
};
|
|
65
|
+
|
|
47
66
|
var event = new Event();
|
|
48
|
-
var _default =
|
|
67
|
+
var _default = event;
|
|
68
|
+
exports["default"] = _default;
|
|
@@ -1,30 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
5
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
6
8
|
value: true
|
|
7
9
|
});
|
|
10
|
+
|
|
8
11
|
exports["default"] = void 0;
|
|
9
|
-
|
|
12
|
+
|
|
10
13
|
var _stringify = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/json/stringify"));
|
|
11
|
-
|
|
14
|
+
|
|
15
|
+
var _now = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/date/now"));
|
|
16
|
+
|
|
12
17
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck"));
|
|
18
|
+
|
|
13
19
|
var _utils = require("../../utils");
|
|
20
|
+
|
|
14
21
|
var _event = _interopRequireDefault(require("./event"));
|
|
22
|
+
|
|
15
23
|
// 处理posmessage参数
|
|
16
|
-
var GenPostMsg =
|
|
24
|
+
var GenPostMsg = function GenPostMsg(method, param, callback) {
|
|
17
25
|
var _this = this;
|
|
26
|
+
|
|
18
27
|
(0, _classCallCheck2["default"])(this, GenPostMsg);
|
|
28
|
+
|
|
19
29
|
this.genid = function () {
|
|
20
30
|
var idStr = (0, _now["default"])().toString(36);
|
|
21
31
|
idStr += Math.random().toString(36).substr(3);
|
|
22
32
|
return idStr;
|
|
23
33
|
};
|
|
34
|
+
|
|
24
35
|
this.receiveResponse = function (data) {
|
|
25
36
|
//this.PromiseObj.resolve(data);
|
|
26
37
|
_this.callback(data);
|
|
27
38
|
};
|
|
39
|
+
|
|
28
40
|
this.getPayload = function () {
|
|
29
41
|
return {
|
|
30
42
|
msgId: _this.id,
|
|
@@ -34,6 +46,7 @@ var GenPostMsg = /*#__PURE__*/(0, _createClass2["default"])(function GenPostMsg(
|
|
|
34
46
|
invokeType: _this.invokeType
|
|
35
47
|
};
|
|
36
48
|
};
|
|
49
|
+
|
|
37
50
|
this.id = this.genid();
|
|
38
51
|
this.PromiseObj = {
|
|
39
52
|
resolve: null,
|
|
@@ -42,8 +55,7 @@ var GenPostMsg = /*#__PURE__*/(0, _createClass2["default"])(function GenPostMsg(
|
|
|
42
55
|
this.methodName = method;
|
|
43
56
|
this.plainMsg = param;
|
|
44
57
|
this.invokeType = param === null || param === void 0 ? void 0 : param.invokeType;
|
|
45
|
-
this.callback = callback;
|
|
46
|
-
// this.result = new Promise(
|
|
58
|
+
this.callback = callback; // this.result = new Promise(
|
|
47
59
|
// function (resolve, reject) {
|
|
48
60
|
// this.PromiseObj = {
|
|
49
61
|
// resolve,
|
|
@@ -51,60 +63,78 @@ var GenPostMsg = /*#__PURE__*/(0, _createClass2["default"])(function GenPostMsg(
|
|
|
51
63
|
// };
|
|
52
64
|
// }.bind(this)
|
|
53
65
|
// );
|
|
54
|
-
}
|
|
55
|
-
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
var Frame = function Frame() {
|
|
56
69
|
var _this2 = this;
|
|
70
|
+
|
|
57
71
|
(0, _classCallCheck2["default"])(this, Frame);
|
|
72
|
+
|
|
58
73
|
this.addPending = function (e) {
|
|
59
74
|
_this2.pendingMsgs[e.id] = e;
|
|
60
75
|
};
|
|
76
|
+
|
|
61
77
|
this.deletePending = function (e) {
|
|
62
78
|
delete _this2.pendingMsgs[e.id];
|
|
63
79
|
};
|
|
80
|
+
|
|
64
81
|
this.getPending = function (t) {
|
|
65
82
|
return this.pendingMsgs[t];
|
|
66
83
|
};
|
|
84
|
+
|
|
67
85
|
this.invokeAPIInBrowserView = function (payload) {
|
|
68
86
|
window.sendTo(payload);
|
|
69
87
|
};
|
|
88
|
+
|
|
70
89
|
this.invokeAPIInWebview = function (payload) {
|
|
71
90
|
window.sendToHost(payload);
|
|
72
91
|
};
|
|
92
|
+
|
|
73
93
|
this.invokeAPI = function (method, param, callback) {
|
|
74
94
|
var genPostMsg = new GenPostMsg(method, param, callback);
|
|
75
95
|
var payload = (0, _stringify["default"])(genPostMsg.getPayload());
|
|
76
96
|
var _param$invokeType = param.invokeType,
|
|
77
|
-
|
|
97
|
+
invokeType = _param$invokeType === void 0 ? '' : _param$invokeType;
|
|
78
98
|
invokeType === 'browserView' ? _this2.invokeAPIInBrowserView(payload) : _this2.invokeAPIInWebview(payload);
|
|
99
|
+
|
|
79
100
|
_this2.addPending(genPostMsg);
|
|
101
|
+
|
|
80
102
|
return genPostMsg;
|
|
81
103
|
};
|
|
104
|
+
|
|
82
105
|
this.handleCallback = function (datas, invokeType) {
|
|
83
106
|
var type = datas.type,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
107
|
+
methodName = datas.methodName,
|
|
108
|
+
eventName = datas.eventName,
|
|
109
|
+
msgId = datas.msgId,
|
|
110
|
+
data = datas.data,
|
|
111
|
+
code = datas.code,
|
|
112
|
+
message = datas.message;
|
|
113
|
+
|
|
90
114
|
if (type === 'request') {
|
|
91
115
|
// 壳子的调用
|
|
92
116
|
switch (methodName) {
|
|
93
117
|
case 'refresh':
|
|
94
118
|
window.location.reload();
|
|
95
119
|
break;
|
|
120
|
+
|
|
96
121
|
case 'back':
|
|
97
122
|
window.history.back();
|
|
98
123
|
break;
|
|
124
|
+
|
|
99
125
|
case 'forward':
|
|
100
126
|
window.history.forward();
|
|
101
127
|
break;
|
|
128
|
+
|
|
102
129
|
case 'event':
|
|
103
130
|
_event["default"].execEvent(eventName, data);
|
|
131
|
+
|
|
104
132
|
break;
|
|
133
|
+
|
|
105
134
|
case 'zoomInClick':
|
|
106
135
|
var scrollTopVal = document.documentElement.scrollTop || document.body.scrollTop,
|
|
107
|
-
|
|
136
|
+
url = window.location.href;
|
|
137
|
+
|
|
108
138
|
if (invokeType === 'browserView') {
|
|
109
139
|
window.sendTo((0, _stringify["default"])({
|
|
110
140
|
type: type,
|
|
@@ -126,13 +156,16 @@ var Frame = /*#__PURE__*/(0, _createClass2["default"])(function Frame() {
|
|
|
126
156
|
}
|
|
127
157
|
}));
|
|
128
158
|
}
|
|
159
|
+
|
|
129
160
|
break;
|
|
161
|
+
|
|
130
162
|
default:
|
|
131
163
|
break;
|
|
132
164
|
}
|
|
133
165
|
} else if (type === 'response') {
|
|
134
166
|
// 响应壳子的回调
|
|
135
167
|
var pending = _this2.getPending(msgId);
|
|
168
|
+
|
|
136
169
|
pending && pending.receiveResponse({
|
|
137
170
|
data: data,
|
|
138
171
|
code: code,
|
|
@@ -141,16 +174,21 @@ var Frame = /*#__PURE__*/(0, _createClass2["default"])(function Frame() {
|
|
|
141
174
|
code != -3 && _this2.deletePending(msgId);
|
|
142
175
|
}
|
|
143
176
|
};
|
|
177
|
+
|
|
144
178
|
this.init = function () {
|
|
145
179
|
window.addEventListener('message', function (msg) {
|
|
146
180
|
(0, _utils.log)('electron res: ', msg);
|
|
181
|
+
|
|
147
182
|
_this2.handleCallback(msg.data || {});
|
|
148
183
|
});
|
|
149
184
|
window.receiveBrowserViewData && window.receiveBrowserViewData(function (e, response) {
|
|
150
185
|
return _this2.handleCallback(response);
|
|
151
186
|
});
|
|
152
187
|
};
|
|
188
|
+
|
|
153
189
|
this.pendingMsgs = {};
|
|
154
|
-
}
|
|
190
|
+
};
|
|
191
|
+
|
|
155
192
|
var frame = new Frame();
|
|
156
|
-
var _default =
|
|
193
|
+
var _default = frame;
|
|
194
|
+
exports["default"] = _default;
|