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