yach.open.jssdk 4.1.21 → 4.1.22-beta
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.1.22-beta.js +1 -0
- package/es/api/biz/chat/chooseConversationByCorpId.d.ts +0 -2
- package/es/api/biz/contact/complexPicker.d.ts +0 -2
- package/es/api/biz/group/groupComplexPicker.d.ts +0 -2
- package/es/api/biz/util/feedback.d.ts +11 -0
- package/es/api/biz/util/feedback.js +10 -0
- package/es/index.d.ts +3 -1
- package/es/index.js +3 -1
- package/es/lib/bridge/mobile.js +3 -3
- package/es/lib/bridge/pc.js +1 -1
- package/es/lib/helper/event.js +7 -6
- package/es/lib/helper/pcIframe.js +7 -6
- package/es/lib/sdk/index.js +2 -2
- package/es/utils/console.js +1 -2
- package/es/utils/index.js +1 -1
- package/libs/api/app/custom/talYoungFilesUpload.js +2 -2
- package/libs/api/biz/chat/chooseConversationByCorpId.d.ts +0 -2
- package/libs/api/biz/chat/chooseConversationByCorpId.js +2 -2
- package/libs/api/biz/chat/openSingleChat.js +2 -2
- package/libs/api/biz/chat/openSquad.js +2 -2
- package/libs/api/biz/chat/openTeamChat.js +2 -2
- package/libs/api/biz/chat/pickConversation.js +2 -2
- package/libs/api/biz/chat/sendP2PMsg.js +2 -2
- package/libs/api/biz/contact/complexPicker.d.ts +0 -2
- package/libs/api/biz/contact/complexPicker.js +2 -2
- package/libs/api/biz/contact/departmentsPicker.js +2 -2
- package/libs/api/biz/group/groupComplexPicker.d.ts +0 -2
- package/libs/api/biz/group/groupComplexPicker.js +2 -2
- package/libs/api/biz/map/multipointView.js +2 -2
- package/libs/api/biz/map/view.js +2 -2
- package/libs/api/biz/navigation/close.js +2 -2
- package/libs/api/biz/navigation/goBack.js +2 -2
- package/libs/api/biz/navigation/quit.js +2 -2
- package/libs/api/biz/navigation/replace.js +2 -2
- package/libs/api/biz/navigation/setIcon.js +2 -2
- package/libs/api/biz/navigation/setLeft.js +2 -2
- package/libs/api/biz/navigation/setMenu.js +2 -2
- package/libs/api/biz/navigation/setRight.js +2 -2
- package/libs/api/biz/navigation/setTitle.js +2 -2
- package/libs/api/biz/navigation/setTitleExpandIcon.js +2 -2
- package/libs/api/biz/navigation/setWindowBig.js +2 -2
- package/libs/api/biz/navigation/updateExpandTitle.js +2 -2
- package/libs/api/biz/telephone/call.js +2 -2
- package/libs/api/biz/telephone/showCallMenu.js +2 -2
- package/libs/api/biz/util/authFinish.js +2 -2
- package/libs/api/biz/util/authStart.js +2 -2
- package/libs/api/biz/util/chosen.js +2 -2
- package/libs/api/biz/util/clipboardFileUpload.js +2 -2
- package/libs/api/biz/util/closeWindow.js +2 -2
- package/libs/api/biz/util/complain.js +2 -2
- package/libs/api/biz/util/createModifySchedule.js +2 -2
- package/libs/api/biz/util/datepicker.js +2 -2
- package/libs/api/biz/util/datetimepicker.js +2 -2
- package/libs/api/biz/util/downloadFile.js +2 -2
- package/libs/api/biz/util/externalLinkPreviewFile.js +2 -2
- package/libs/api/biz/util/feedback.d.ts +11 -0
- package/libs/api/biz/util/feedback.js +21 -0
- package/libs/api/biz/util/getSingleWebviewData.js +2 -2
- package/libs/api/biz/util/getTogetherConfig.js +2 -2
- package/libs/api/biz/util/getToken.js +2 -2
- package/libs/api/biz/util/invoice.js +2 -2
- package/libs/api/biz/util/mediaFileUpload.js +2 -2
- package/libs/api/biz/util/open.js +2 -2
- package/libs/api/biz/util/openLink.js +2 -2
- package/libs/api/biz/util/openMediaFileDialog.js +2 -2
- package/libs/api/biz/util/openSingleWebview.js +2 -2
- package/libs/api/biz/util/openSlidePanel.js +2 -2
- package/libs/api/biz/util/openTalYoungToTopic.js +2 -2
- package/libs/api/biz/util/openTogetherEyeWebview.js +2 -2
- package/libs/api/biz/util/openVideoPlayer.js +2 -2
- package/libs/api/biz/util/previewFile.js +2 -2
- package/libs/api/biz/util/previewImage.js +2 -2
- package/libs/api/biz/util/proxy.js +2 -2
- package/libs/api/biz/util/pushWorkMsg.js +2 -2
- package/libs/api/biz/util/remind.js +2 -2
- package/libs/api/biz/util/rouseApp.js +2 -2
- package/libs/api/biz/util/savePic.js +2 -2
- package/libs/api/biz/util/scan.js +2 -2
- package/libs/api/biz/util/selectDepartment.js +2 -2
- package/libs/api/biz/util/share.js +2 -2
- package/libs/api/biz/util/takePicture.js +2 -2
- package/libs/api/biz/util/uploadAttachment.js +2 -2
- package/libs/api/biz/util/zfbAuth.js +2 -2
- package/libs/api/biz/webViewMessage/send.js +2 -2
- package/libs/api/device/audio/download.js +2 -2
- package/libs/api/device/audio/onPlayEnd.js +2 -2
- package/libs/api/device/audio/onRecordEnd.js +2 -2
- package/libs/api/device/audio/onRecordEnd_v2.js +2 -2
- package/libs/api/device/audio/pause.js +2 -2
- package/libs/api/device/audio/play.js +2 -2
- package/libs/api/device/audio/resume.js +2 -2
- package/libs/api/device/audio/startRecord.js +2 -2
- package/libs/api/device/audio/startRecord_v2.js +2 -2
- package/libs/api/device/audio/stop.js +2 -2
- package/libs/api/device/audio/stopRecord.js +2 -2
- package/libs/api/device/audio/stopRecord_v2.js +2 -2
- package/libs/api/device/base/checkStepPermission.js +2 -2
- package/libs/api/device/base/getPhoneInfo.js +2 -2
- package/libs/api/device/base/getUUID.js +2 -2
- package/libs/api/device/connection/getNetworkType.js +2 -2
- package/libs/api/device/connection/isAtTal.js +2 -2
- package/libs/api/device/geolocation/get.js +2 -2
- package/libs/api/device/geolocation/getSwitch.js +2 -2
- package/libs/api/device/notification/actionSheet.js +2 -2
- package/libs/api/device/notification/alert.js +2 -2
- package/libs/api/device/notification/confirm.js +2 -2
- package/libs/api/device/notification/hidePreloader.js +2 -2
- package/libs/api/device/notification/showPreloader.js +2 -2
- package/libs/api/device/notification/toast.js +2 -2
- package/libs/api/device/notification/vibrate.js +2 -2
- package/libs/api/device/system/getLang.js +2 -2
- package/libs/api/device/system/setLight.js +2 -2
- package/libs/api/primary/createTab.js +2 -2
- package/libs/api/primary/weeklyShare.js +2 -2
- package/libs/api/runtime/permission/requestAuthCode.js +2 -2
- package/libs/api/ui/pullToRefresh/disable.js +2 -2
- package/libs/api/ui/pullToRefresh/enable.js +2 -2
- package/libs/api/ui/pullToRefresh/stop.js +2 -2
- package/libs/api/ui/webViewBounce/disable.js +2 -2
- package/libs/api/util/domainStorage/getItem.js +2 -2
- package/libs/api/util/domainStorage/removeItem.js +2 -2
- package/libs/api/util/domainStorage/setItem.js +2 -2
- package/libs/index.d.ts +3 -1
- package/libs/index.js +224 -200
- package/libs/lib/bridge/index.js +7 -7
- package/libs/lib/bridge/mobile.js +6 -6
- package/libs/lib/bridge/pc.js +5 -5
- package/libs/lib/helper/apiHelper.js +2 -2
- package/libs/lib/helper/codeMap.js +2 -2
- package/libs/lib/helper/event.js +9 -8
- package/libs/lib/helper/pcIframe.js +9 -9
- package/libs/lib/index.js +2 -2
- package/libs/lib/sdk/index.js +4 -4
- package/libs/utils/console.js +3 -3
- package/libs/utils/index.js +10 -10
- package/package.json +1 -1
- package/dist/yach_jssdk_4.1.21.js +0 -1
package/libs/lib/bridge/index.js
CHANGED
|
@@ -6,6 +6,13 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
|
|
9
|
+
_Object$defineProperty(exports, "PcBridgeInit", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function get() {
|
|
12
|
+
return _pc.PcBridgeInit;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
|
|
9
16
|
_Object$defineProperty(exports, "mobileBridge", {
|
|
10
17
|
enumerable: true,
|
|
11
18
|
get: function get() {
|
|
@@ -27,13 +34,6 @@ _Object$defineProperty(exports, "pcBridge", {
|
|
|
27
34
|
}
|
|
28
35
|
});
|
|
29
36
|
|
|
30
|
-
_Object$defineProperty(exports, "PcBridgeInit", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function get() {
|
|
33
|
-
return _pc.PcBridgeInit;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
|
|
37
37
|
var _mobile = require("./mobile");
|
|
38
38
|
|
|
39
39
|
var _pc = require("./pc");
|
|
@@ -1,22 +1,22 @@
|
|
|
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
|
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
exports.mobileBridgeInit = exports.mobileBridge = void 0;
|
|
12
12
|
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/object/assign"));
|
|
13
|
+
var _setTimeout2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/set-timeout"));
|
|
16
14
|
|
|
17
15
|
var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/promise"));
|
|
18
16
|
|
|
19
|
-
var
|
|
17
|
+
var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/object/assign"));
|
|
18
|
+
|
|
19
|
+
var _parseInt2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/parse-int"));
|
|
20
20
|
|
|
21
21
|
var _event = _interopRequireDefault(require("../helper/event"));
|
|
22
22
|
|
package/libs/lib/bridge/pc.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
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
|
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
10
|
|
|
11
|
-
exports.
|
|
12
|
-
|
|
13
|
-
var _parseInt2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/parse-int"));
|
|
11
|
+
exports.pcBridge = exports.PcBridgeInit = void 0;
|
|
14
12
|
|
|
15
13
|
var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/promise"));
|
|
16
14
|
|
|
15
|
+
var _parseInt2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/parse-int"));
|
|
16
|
+
|
|
17
17
|
var _pcIframe = _interopRequireDefault(require("../helper/pcIframe"));
|
|
18
18
|
|
|
19
19
|
var _codeMap = require("../helper/codeMap");
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
package/libs/lib/helper/event.js
CHANGED
|
@@ -1,26 +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
|
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
exports["default"] = void 0;
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _isArray = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/array/is-array"));
|
|
14
|
+
|
|
15
|
+
var _indexOf = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/instance/index-of"));
|
|
14
16
|
|
|
15
17
|
var _splice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/instance/splice"));
|
|
16
18
|
|
|
17
|
-
var
|
|
19
|
+
var _forEach = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/instance/for-each"));
|
|
18
20
|
|
|
19
|
-
var
|
|
21
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass"));
|
|
20
22
|
|
|
21
23
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck"));
|
|
22
24
|
|
|
23
|
-
var Event = function Event() {
|
|
25
|
+
var Event = /*#__PURE__*/(0, _createClass2["default"])(function Event() {
|
|
24
26
|
var _this = this;
|
|
25
27
|
|
|
26
28
|
(0, _classCallCheck2["default"])(this, Event);
|
|
@@ -61,8 +63,7 @@ var Event = function Event() {
|
|
|
61
63
|
};
|
|
62
64
|
|
|
63
65
|
this.eventsHandle = {};
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
+
});
|
|
66
67
|
var event = new Event();
|
|
67
68
|
var _default = event;
|
|
68
69
|
exports["default"] = _default;
|
|
@@ -1,18 +1,20 @@
|
|
|
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
|
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
exports["default"] = void 0;
|
|
12
12
|
|
|
13
|
+
var _now = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/date/now"));
|
|
14
|
+
|
|
13
15
|
var _stringify = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/json/stringify"));
|
|
14
16
|
|
|
15
|
-
var
|
|
17
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass"));
|
|
16
18
|
|
|
17
19
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck"));
|
|
18
20
|
|
|
@@ -21,7 +23,7 @@ var _utils = require("../../utils");
|
|
|
21
23
|
var _event = _interopRequireDefault(require("./event"));
|
|
22
24
|
|
|
23
25
|
// 处理posmessage参数
|
|
24
|
-
var GenPostMsg = function GenPostMsg(method, param, callback) {
|
|
26
|
+
var GenPostMsg = /*#__PURE__*/(0, _createClass2["default"])(function GenPostMsg(method, param, callback) {
|
|
25
27
|
var _this = this;
|
|
26
28
|
|
|
27
29
|
(0, _classCallCheck2["default"])(this, GenPostMsg);
|
|
@@ -61,9 +63,8 @@ var GenPostMsg = function GenPostMsg(method, param, callback) {
|
|
|
61
63
|
// };
|
|
62
64
|
// }.bind(this)
|
|
63
65
|
// );
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
var Frame = function Frame() {
|
|
66
|
+
});
|
|
67
|
+
var Frame = /*#__PURE__*/(0, _createClass2["default"])(function Frame() {
|
|
67
68
|
var _this2 = this;
|
|
68
69
|
|
|
69
70
|
(0, _classCallCheck2["default"])(this, Frame);
|
|
@@ -153,8 +154,7 @@ var Frame = function Frame() {
|
|
|
153
154
|
};
|
|
154
155
|
|
|
155
156
|
this.pendingMsgs = {};
|
|
156
|
-
};
|
|
157
|
-
|
|
157
|
+
});
|
|
158
158
|
var frame = new Frame();
|
|
159
159
|
var _default = frame;
|
|
160
160
|
exports["default"] = _default;
|
package/libs/lib/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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
|
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
package/libs/lib/sdk/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
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
|
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
exports["default"] = void 0;
|
|
12
12
|
|
|
13
|
-
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/instance/concat"));
|
|
14
|
-
|
|
15
13
|
var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/promise"));
|
|
16
14
|
|
|
15
|
+
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/instance/concat"));
|
|
16
|
+
|
|
17
17
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck"));
|
|
18
18
|
|
|
19
19
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass"));
|
package/libs/utils/console.js
CHANGED
|
@@ -1,15 +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
|
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
10
|
|
|
11
|
-
exports.log = log;
|
|
12
11
|
exports.error = error;
|
|
12
|
+
exports.log = log;
|
|
13
13
|
exports.warn = warn;
|
|
14
14
|
|
|
15
15
|
var _bind = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/instance/bind"));
|
package/libs/utils/index.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
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
|
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
+
|
|
7
7
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
exports.bpitLog = staticsLog;
|
|
12
12
|
|
|
13
|
-
_Object$defineProperty(exports, "
|
|
13
|
+
_Object$defineProperty(exports, "error", {
|
|
14
14
|
enumerable: true,
|
|
15
15
|
get: function get() {
|
|
16
|
-
return
|
|
16
|
+
return _console.error;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
-
_Object$defineProperty(exports, "
|
|
20
|
+
_Object$defineProperty(exports, "getENV", {
|
|
21
21
|
enumerable: true,
|
|
22
22
|
get: function get() {
|
|
23
|
-
return
|
|
23
|
+
return _env.getENV;
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
|
|
27
|
-
_Object$defineProperty(exports, "
|
|
27
|
+
_Object$defineProperty(exports, "log", {
|
|
28
28
|
enumerable: true,
|
|
29
29
|
get: function get() {
|
|
30
|
-
return _console.
|
|
30
|
+
return _console.log;
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
|
|
@@ -38,10 +38,10 @@ _Object$defineProperty(exports, "warn", {
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/object/assign"));
|
|
42
|
-
|
|
43
41
|
var _now = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/date/now"));
|
|
44
42
|
|
|
43
|
+
var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/object/assign"));
|
|
44
|
+
|
|
45
45
|
var _env = require("./env");
|
|
46
46
|
|
|
47
47
|
var _bpitLog = _interopRequireDefault(require("./bpitLog"));
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
window.yy=function(n){var e={};function t(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return n[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=n,t.c=e,t.d=function(n,e,o){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:o})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var i in n)t.d(o,i,function(e){return n[e]}.bind(null,i));return o},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=1)}([function(n){n.exports=JSON.parse('{"name":"yach.open.jssdk","version":"4.1.21","description":"","module":"./es/index.js","main":"./libs/index.js","files":["es","libs","dist"],"sideEffects":false,"scripts":{"start":"yach del es && tsc -w","build":"node ./tools/run compile","prepublish":"npm run upload-cdn","postpublish":"yach open https://www.npmjs.com/package/yach.open.jssdk","upload-cdn":"npm run build && node ./upload/upload.js","lint":"eslint \'src/**/*.{js,ts}\'","lint-fix":"eslint --fix \'src/**/*.{js,ts}\'","p:beta":"npm publish --tag=beta --access public"},"dependencies":{"@babel/runtime-corejs3":"^7.10.3"},"authors":[{"name":"ostwind","email":"9837438@qq.com"}],"license":"ISC","devDependencies":{"@babel/core":"^7.10.2","@babel/plugin-proposal-class-properties":"^7.8.3","@babel/plugin-transform-runtime":"^7.10.1","@babel/preset-env":"^7.9.5","@types/node":"^13.9.8","@typescript-eslint/eslint-plugin":"^2.25.0","@typescript-eslint/parser":"^2.25.0","babel-loader":"^8.1.0","colorful":"^2.1.0","commander":"^5.1.0","dingtalk-jsapi":"^2.10.2","eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.2","gulp":"^4.0.2","gulp-babel":"^8.0.0","gulp-concat":"^2.6.1","gulp-typescript":"^6.0.0-alpha.1","gulp-uglify":"^3.0.2","gulp-umd":"^2.0.0","gulp-util":"^3.0.8","lint-staged":"^10.0.9","prettier":"^2.0.2","qiao.ext.cos":"^0.1.2","ts-loader":"^7.0.1","typescript":"^3.8.3","webpack":"^4.43.0","webpack-cli":"^3.3.11","webpack-merge":"^4.2.2","yach.open.cli":"^1.0.1"}}')},function(n,e,t){"use strict";var o;function i(){var n="undefined"!=typeof navigator?navigator.userAgent:"",e=/Yach/i.test(n),t=/iPhone|iPad|iPod|iOS/i.test(n)&&e,i=/Android/i.test(n)&&e,r=/YachPc/i.test(n),a=/iPad/i.test(n)&&e,s=/iPhone/i.test(n)&&e,c=o.notInYach;return t&&(c=o.ios),i&&(c=o.android),r&&(c=o.pc),{platform:c,platformV2:{inYach:e,inIOS:t,inAndroid:i,inPC:r,inIpad:a,inIPhone:s},version:((n.match(/Yach\/[a-zA-Z0-9.-]+/)||[])[0]||"").split("/")[1]||"",language:"undefined"!=typeof navigator?navigator.language:"*"}}function r(n){if(n)if(n.group)if(n.project)if(n.hasOwnProperty("env"))if(n.hasOwnProperty("version")){var e=["https://es.zhiyinlou.com/log.js?"];e.push("group="+n.group),e.push("&project="+n.project),e.push("&env="+n.env),e.push("&version="+n.version),e.push("&method="+n.method),n.yachid&&e.push("&yachid="+n.yachid),n.workcode&&e.push("&workcode="+n.workcode),n.timestamp&&e.push("×tamp="+n.timestamp),n.errorcode&&e.push("&errorcode="+n.errorcode),n.message&&e.push("&message="+n.message),n.api&&n.time&&(e.push("&api="+n.api),e.push("&load_time="+n.time));var t,o,i=e.join("");t=i,(o=document.createElement("script")).type="text/javascript",o.readyState?o.onreadystatechange=function(){"loaded"!=o.readyState&&"complete"!=o.readyState||(o.onreadystatechange=null,document.getElementsByTagName("head")[0].removeChild(o))}:o.onload=function(){document.getElementsByTagName("head")[0].removeChild(o)},o.src=t,document.getElementsByTagName("head")[0].appendChild(o),"online"!=n.env&&console.log(i)}else console.log("bpit error: need options.version");else console.log("bpit error: need options.env");else console.log("bpit error: need options.project");else console.log("bpit error: need options.group");else console.log("bpit error: need options")}t.r(e),t.d(e,"version",(function(){return Yt})),t.d(e,"sdkVersion",(function(){return Jt})),t.d(e,"env",(function(){return Kt})),t.d(e,"platform",(function(){return Gt})),t.d(e,"platformV2",(function(){return $t})),t.d(e,"config",(function(){return Zt})),t.d(e,"ready",(function(){return Qt})),t.d(e,"error",(function(){return Xt})),t.d(e,"on",(function(){return no})),t.d(e,"off",(function(){return eo})),t.d(e,"openLink",(function(){return A})),t.d(e,"open",(function(){return F})),t.d(e,"openSlidePanel",(function(){return E})),t.d(e,"share",(function(){return V})),t.d(e,"previewFile",(function(){return R})),t.d(e,"previewImage",(function(){return W})),t.d(e,"downloadFile",(function(){return _})),t.d(e,"uploadAttachment",(function(){return B})),t.d(e,"clipboardFileUpload",(function(){return O})),t.d(e,"proxy",(function(){return H})),t.d(e,"datepicker",(function(){return N})),t.d(e,"scan",(function(){return J})),t.d(e,"chosen",(function(){return X})),t.d(e,"openSingleWebview",(function(){return en})),t.d(e,"getSingleWebviewData",(function(){return tn})),t.d(e,"closeWindow",(function(){return rn})),t.d(e,"showCallMenu",(function(){return It})),t.d(e,"call",(function(){return Mt})),t.d(e,"setIcon",(function(){return On})),t.d(e,"setTitle",(function(){return Hn})),t.d(e,"setMenu",(function(){return Un})),t.d(e,"close",(function(){return qn})),t.d(e,"replacePage",(function(){return Yn})),t.d(e,"quit",(function(){return Kn})),t.d(e,"setRight",(function(){return Zn})),t.d(e,"setTitleExpandIcon",(function(){return ne})),t.d(e,"updateExpandTitle",(function(){return ee})),t.d(e,"setLeft",(function(){return ie})),t.d(e,"goBack",(function(){return ae})),t.d(e,"complexPicker",(function(){return ue})),t.d(e,"departmentsPicker",(function(){return de})),t.d(e,"groupComplexPicker",(function(){return pe})),t.d(e,"chooseConversationByCorpId",(function(){return le})),t.d(e,"pickConversation",(function(){return ve})),t.d(e,"openSingleChat",(function(){return me})),t.d(e,"openTeamChat",(function(){return ge})),t.d(e,"openSquad",(function(){return he})),t.d(e,"sendP2PMsg",(function(){return be})),t.d(e,"mapView",(function(){return G})),t.d(e,"multipointView",(function(){return Z})),t.d(e,"requestAuthCode",(function(){return Se})),t.d(e,"createTab",(function(){return ye})),t.d(e,"weeklyShare",(function(){return ke})),t.d(e,"showPreloader",(function(){return Ie})),t.d(e,"hidePreloader",(function(){return Me})),t.d(e,"vibrate",(function(){return xe})),t.d(e,"toast",(function(){return Ae})),t.d(e,"alert",(function(){return Re})),t.d(e,"confirm",(function(){return _e})),t.d(e,"getPhoneInfo",(function(){return je})),t.d(e,"getUUID",(function(){return ft})),t.d(e,"checkStepPermission",(function(){return mt})),t.d(e,"getGeolocation",(function(){return Oe})),t.d(e,"getGeolocationSwitch",(function(){return Le})),t.d(e,"getLang",(function(){return Ne})),t.d(e,"startRecord",(function(){return qe})),t.d(e,"stopRecord",(function(){return Je})),t.d(e,"onRecordEnd",(function(){return Ge})),t.d(e,"downloadAudio",(function(){return Ze})),t.d(e,"playAudio",(function(){return Xe})),t.d(e,"pauseAudio",(function(){return et})),t.d(e,"stopAudio",(function(){return ot})),t.d(e,"onPlayEnd",(function(){return rt})),t.d(e,"resumeAudio",(function(){return st})),t.d(e,"getNetworkType",(function(){return ut})),t.d(e,"isAtTal",(function(){return pt})),t.d(e,"webViewBounceDisable",(function(){return xt})),t.d(e,"pullToRefreshEnable",(function(){return Ft})),t.d(e,"pullToRefreshStop",(function(){return Et})),t.d(e,"pullToRefreshDisable",(function(){return Vt})),t.d(e,"getItem",(function(){return Wt})),t.d(e,"setItem",(function(){return Bt})),t.d(e,"removeItem",(function(){return Ht})),t.d(e,"remind",(function(){return sn})),t.d(e,"takePicture",(function(){return cn})),t.d(e,"datetimepicker",(function(){return q})),t.d(e,"actionSheet",(function(){return De})),t.d(e,"webViewMessageSend",(function(){return Nt})),t.d(e,"talYoungFilesUpload",(function(){return Ut})),t.d(e,"openVideoPlayer",(function(){return dn})),t.d(e,"openMediaFileDialog",(function(){return pn})),t.d(e,"mediaFileUpload",(function(){return ln})),t.d(e,"invoice",(function(){return fn})),t.d(e,"pushWorkMsg",(function(){return vn})),t.d(e,"openTalYoungToTopic",(function(){return mn})),t.d(e,"getToken",(function(){return hn})),t.d(e,"authStart",(function(){return wn})),t.d(e,"authFinish",(function(){return Pn})),t.d(e,"openTogetherEyeWebview",(function(){return Sn})),t.d(e,"getTogetherConfig",(function(){return In})),t.d(e,"rouseApp",(function(){return Tn})),t.d(e,"externalLinkPreviewFile",(function(){return Mn})),t.d(e,"savePic",(function(){return Fn})),t.d(e,"zfbAuth",(function(){return xn})),t.d(e,"complain",(function(){return Dn})),t.d(e,"onRecordEnd_v2",(function(){return ht})),t.d(e,"startRecord_v2",(function(){return wt})),t.d(e,"stopRecord_v2",(function(){return Pt})),t.d(e,"selectDepartment",(function(){return En})),t.d(e,"setWindowBig",(function(){return ce})),t.d(e,"createModifySchedule",(function(){return Vn})),t.d(e,"setLight",(function(){return St})),function(n){n.pc="pc",n.android="android",n.ios="ios",n.notInYach="notInYach"}(o||(o={}));var a=function(){return(a=Object.assign||function(n){for(var e,t=1,o=arguments.length;t<o;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}).apply(this,arguments)};function s(n){var e=i().version,t=Date.now(),o=a({group:"yach",project:"yach_31_jssdk",env:"test",version:e,timestamp:t},n);console.log("jssdk 项目 bpit 上报数据:",o),r(o)}var c=function(){function n(n){var e=this;this.invokeAPIConfigMapByMethod={},this.configJsApiList=[],this.platformConfigMap={},this.hadConfig=!1,this.bridgeInitFnPromise=null,this.cacheP={},this.config$=new Promise((function(n,t){e.cacheP.resolve=n,e.cacheP.reject=t})),this.env=n,this.exportSdk={version:n.version,sdkVersion:t(0).version,env:n,platform:n.platform,platformV2:n.platformV2,config:function(n){void 0===n&&(n={});var t=n.jsApiList,o=void 0===t?[]:t;e.hadConfig?console.log("Config has been executed"):e.bridgeInitFn().then((function(t){t("config",n).then((function(n){e.cacheP.resolve(n),e.hadConfig=!0,e.configJsApiList=o})).catch((function(n){e.cacheP.reject(n)}))}))},ready:function(n){e.bridgeInitFn().then((function(){n()}))},error:function(n){e.config$.catch((function(e){n(e)}))},on:function(t,o){e.bridgeInitFn().then((function(){e.platformConfigMap[n.platform].event.on(t,o)}))},off:function(t,o){e.bridgeInitFn().then((function(){e.platformConfigMap[n.platform].event.off(t,o)}))}}}return n.prototype.setAPI=function(n,e){this.invokeAPIConfigMapByMethod[n]=e},n.prototype.setPlatform=function(n){var e=n.platform;n.bridgeInit;this.platformConfigMap[e]=n},n.prototype.bridgeInitFn=function(){if(this.bridgeInitFnPromise)return this.bridgeInitFnPromise;var n=this.platformConfigMap[this.env.platform];if(n)this.bridgeInitFnPromise=n.bridgeInit();else{var e="Do not support the current environment�"+this.env.platform;this.bridgeInitFnPromise=Promise.reject(new Error(e))}return this.bridgeInitFnPromise},n.prototype.invokeAPI=function(n,e){if(e||(e={}),n){var t=this.invokeAPIConfigMapByMethod[n];if(!t)return s({method:n,errorcode:"-1",message:n+" do not exist"}),void e.onFail({code:"-1",message:n+" do not exist"});var o=t[this.env.platform];if(o){var i=o.paramsDeal?o.paramsDeal(e):e;if("function"==typeof i.onSuccess){var r=i.onSuccess;i.onSuccess=function(n){r(n)}}this.bridgeInitFn().then((function(e){e(n,i).then((function(){})).catch((function(n){}))})).catch((function(n){console.log("wenai err",n)}))}else"function"==typeof e.onFail&&(s({method:n,errorcode:"-1",message:n+" do not support the current platform ("+this.env.platform+")"}),e.onFail({code:"-1",message:n+" do not support the current platform ("+this.env.platform+")"}))}},n}(),u={log:function(){},warn:function(){},error:function(){}};if(window&&window.console&&(u=window.console),document&&document.body){var d=document.createElement("iframe");d&&d.contentWindow&&d.contentWindow.console&&(d.style.display="none",document.body.appendChild(d),u=d.contentWindow.console)}var p=u.log.bind(u),l=(u.warn.bind(u),u.error.bind(u),"color:#fff;font-weight:bold;border-radius:5px;background:#67c23a;");function f(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return p("%c Yach-jssdk log: ",l,n)}var v=new function(){var n=this;this.on=function(e,t){if(!e||"function"!=typeof t)throw"eventName is null or handle is not a function, on fail";Array.isArray(n.eventsHandle[e])||(n.eventsHandle[e]=[]),n.eventsHandle[e].push(t)},this.off=function(e,t){if(!e)throw"eventName is null, invoke off fail";if(t){if(Array.isArray(n.eventsHandle[e])){var o=n.eventsHandle[e].indexOf(t);-1!==o&&n.eventsHandle[e].splice(o,1)}}else n.eventsHandle[e]=[]},this.execEvent=function(n,e){Array.isArray(this.eventsHandle[n])&&this.eventsHandle[n].forEach((function(n){try{n(e)}catch(n){console.error(e)}}))},this.eventsHandle={}},m=function(n,e,t){var o=this;this.genid=function(){var n=Date.now().toString(36);return n+=Math.random().toString(36).substr(3)},this.receiveResponse=function(n){o.callback(n)},this.getPayload=function(){return{msgId:o.id,methodName:o.methodName,body:o.plainMsg,type:"request"}},this.id=this.genid(),this.PromiseObj={resolve:null,reject:null},this.methodName=n,this.plainMsg=e,this.callback=t},g=new function(){var n=this;this.addPending=function(e){n.pendingMsgs[e.id]=e},this.deletePending=function(e){delete n.pendingMsgs[e.id]},this.getPending=function(n){return this.pendingMsgs[n]},this.invokeAPI=function(e,t,o){var i=new m(e,t,o);return window.sendToHost(JSON.stringify(i.getPayload())),n.addPending(i),i},this.init=function(){window.addEventListener("message",(function(e){f("electron res: ",e);var t=e.data||{},o=t.type,i=t.methodName,r=t.eventName,a=t.msgId,s=t.data,c=t.code,u=t.message;if("request"===o)switch(i){case"refresh":window.location.reload();break;case"back":window.history.back();break;case"forward":window.history.forward();break;case"event":v.execEvent(r,s);break;case"zoomInClick":var d=document.documentElement.scrollTop||document.body.scrollTop,p=window.location.href;window.sendToHost(JSON.stringify({type:o,methodName:i,body:{scrollTopVal:d,url:p,title:s&&s.title}}))}else if("response"===o){var l=n.getPending(a);l&&l.receiveResponse({data:s,code:c,message:u}),-3!=c&&n.deletePending(a)}}))},this.pendingMsgs={}},h=new Map([[0,"onSuccess"],[-1,"onCancel"],[-2,"onFail"],[-3,"onProgress"],[-4,"onSubmit"]]);function b(n){return h.get(n)||"onFail"}var w=function(n,e){return new Promise((function(t){return g.invokeAPI(n,e,(function(o){var i=o.data,r=o.code,a=o.message,c=parseInt(r),u=b(c);-2===c&&s({method:n,errorcode:c,message:a||"SDK执行失败回调,相关参数"});var d=e[u];f("SDK执行后回调,相关参数 ",{method:n,param:e,data:i,_code:c,message:a,callbackFun:d}),"function"==typeof d&&d(i||a),t({_code:c,message:a,data:i})}))}))},y=function(){return(y=Object.assign||function(n){for(var e,t=1,o=arguments.length;t<o;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}).apply(this,arguments)};function P(n){if(window.WebViewJavascriptBridge)return n(WebViewJavascriptBridge);if(window.WKWebViewJavascriptBridge)return n(WKWebViewJavascriptBridge);if(window.WVJBCallbacks)return window.WVJBCallbacks.push(n);window.WVJBCallbacks=[n];var e=document.createElement("iframe");e.style.display="none",e.src="https://__bridge_loaded__",document.documentElement.appendChild(e),setTimeout((function(){document.documentElement.removeChild(e)}),0)}var k=function(n,e){return new Promise((function(t,o){var i=y({},e);P((function(r){e.control&&r.registerHandler(n,(function(n){var o=e.onSuccess;delete i.onSuccess,"function"==typeof o&&(o(n),t({code:"0",message:"success"}))})),r.callHandler(n,e,(function(r){var a=r.code,c=r.message,u=r.data,d=parseInt(a),p=b(d);-2!==d&&7!==d||(s({method:n,errorcode:d,message:c||"SDK执行失败回调,相关参数"}),f("SDK执行后回调,相关参数 ",{method:n,param:e,data:u,_code:d,message:c}),o({_code:d,message:c}));var l=i[p];f("SDK执行后回调,相关参数 ",{method:n,param:e,data:u,_code:d,message:c,callbackFun:l}),"function"==typeof l&&l(u||c),t({_code:d,message:c,data:u})}))}))}))},S=function(n,e,t,o){return new(t||(t=Promise))((function(i,r){function a(n){try{c(o.next(n))}catch(n){r(n)}}function s(n){try{c(o.throw(n))}catch(n){r(n)}}function c(n){var e;n.done?i(n.value):(e=n.value,e instanceof t?e:new t((function(n){n(e)}))).then(a,s)}c((o=o.apply(n,e||[])).next())}))},z=function(n,e){var t,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(n,a)}catch(n){r=[6,n],o=0}finally{t=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},I=i(),T=I.platform,M=new c(I);!function(){var n=this,e={platform:T,authMethod:"config",bridgeInit:"pc"===T?function(){return S(n,void 0,void 0,(function(){return z(this,(function(n){return g.init(),[2,w]}))}))}:function(){return new Promise((function(n,e){P((function(e){f("注册resume事件 "),e.registerHandler("resume",(function(n){f("resume监听到回调,相关参数 ",{resData:n}),v.execEvent("resume",n)})),f("注册unreadMsgAction事件 "),e.registerHandler("unreadMsgAction",(function(n){f("unreadMsgAction监听到回调,相关参数 ",{resData:n}),v.execEvent("unreadMsgAction",n)})),f("注册webViewMsgReceive事件 "),e.registerHandler("webViewMsgReceive",(function(n){f("webViewMsgReceive监听到回调,相关参数 ",{resData:n}),v.execEvent("webViewMsgReceive",n)})),e.registerHandler("pushWorkMsg",(function(n){f("pushWorkMsg监听到回调,相关参数 ",{resData:n}),v.execEvent("pushWorkMsg",n)})),e.registerHandler("getTogetherCallback",(function(n){f("getTogetherCallback监听到回调,相关参数 ",{resData:n}),v.execEvent("getTogetherCallback",n)})),e.registerHandler("sendMsgCommon",(function(n){f("sendMsgCommon ",{resData:n}),v.execEvent("sendMsgCommon",n)})),n()}))})).then((function(){return k}))},event:{on:function(n,e){v.on(n,e)},off:function(n,e){v.off(n,e)}}};M.setPlatform(e)}();var C={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};var x=function(n,e){var t=e.params,o=void 0===t?{}:t,i=e.platform,r=void 0===i?C:i;M.setAPI(n,r),M.invokeAPI(n,o)};function A(n){x("biz.util.openLink",{params:n})}function F(n){x("biz.util.open",{params:n})}var D={pc:{vs:"0.0.0"}};function E(n){x("biz.util.openSlidePanel",{params:n,platform:D})}var j={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function V(n){x("biz.util.share",{params:n,platform:j})}function R(n){x("biz.util.previewFile",{params:n})}function W(n){x("biz.util.previewImage",{params:n})}function _(n){x("biz.util.downloadFile",{params:n})}function B(n){x("biz.util.uploadAttachment",{params:n})}function O(n){x("biz.util.clipboardFileUpload",{params:n})}function H(n){x("biz.util.proxy",{params:n})}var L={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function N(n){x("biz.util.datepicker",{params:n,platform:L})}var U={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function q(n){x("biz.util.datetimepicker",{params:n,platform:U})}var Y={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function J(n){x("biz.util.scan",{params:n,platform:Y})}var K={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function G(n){x("biz.map.view",{params:n,platform:K})}var $={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Z(n){x("biz.map.multipointView",{params:n,platform:$})}var Q={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function X(n){x("biz.util.chosen",{params:n,platform:Q})}var nn={pc:{vs:"0.0.0"}};function en(n){x("biz.util.openSingleWebview",{params:n,platform:nn})}function tn(n){x("biz.util.getSingleWebviewData",{params:n})}var on={pc:{vs:"0.0.0"}};function rn(n){x("biz.util.closeWindow",{params:n,platform:on})}var an={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function sn(n){x("biz.util.remind",{params:n,platform:an})}function cn(n){x("biz.util.takePicture",{params:n})}var un={pc:{vs:"0.0.0"},ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function dn(n){x("biz.util.openVideoPlayer",{params:n,platform:un})}function pn(n){x("biz.util.openMediaFileDialog",{params:n})}function ln(n){x("biz.util.mediaFileUpload",{params:n})}function fn(n){x("biz.util.invoice",{params:n})}function vn(n){x("biz.util.pushWorkMsg",{params:n})}function mn(n){x("biz.util.openTalYoungToTopic",{params:n})}var gn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function hn(n){x("biz.util.getToken",{params:n,platform:gn})}var bn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function wn(n){x("biz.util.authStart",{params:n,platform:bn})}var yn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Pn(n){x("biz.util.authFinish",{params:n,platform:yn})}var kn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Sn(n){x("biz.util.openTogetherEyeWebview",{params:n,platform:kn})}var zn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function In(n){x("biz.util.getTogetherConfig",{params:n,platform:zn})}function Tn(n){x("biz.util.rouseApp",{params:n})}function Mn(n){x("biz.util.externalLinkPreviewFile",{params:n})}var Cn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function xn(n){x("biz.util.zfbAuth",{params:n,platform:Cn})}var An={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Fn(n){x("biz.util.savePic",{params:n,platform:An})}function Dn(n){x("biz.util.complain",{params:n})}function En(n){x("biz.util.selectDepartment",{params:n})}var jn={pc:{vs:"0.0.0"}};function Vn(n){x("biz.util.createModifySchedule",{params:n,platform:jn})}var Rn=function(){return(Rn=Object.assign||function(n){for(var e,t=1,o=arguments.length;t<o;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}).apply(this,arguments)};function Wn(n){return function(e){return Rn(Rn({},n),e)}}var _n=Wn({control:!0,showIcon:!0,iconIndex:1}),Bn={ios:{vs:"0.0.0",paramsDeal:_n},android:{vs:"0.0.0",paramsDeal:_n}};function On(n){x("biz.navigation.setIcon",{params:n,platform:Bn})}function Hn(n){x("biz.navigation.setTitle",{params:n})}var Ln=Wn({control:!0}),Nn={ios:{vs:"0.0.0",paramsDeal:Ln},android:{vs:"0.0.0",paramsDeal:Ln}};function Un(n){x("biz.navigation.setMenu",{params:n,platform:Nn})}function qn(n){x("biz.navigation.close",{params:n})}function Yn(n){x("biz.navigation.replace",{params:n})}var Jn={pc:{vs:"0.0.0"}};function Kn(n){x("biz.navigation.quit",{params:n,platform:Jn})}var Gn=Wn({show:!0,control:!1,text:""}),$n={ios:{vs:"0.0.0",paramsDeal:Gn},android:{vs:"0.0.0",paramsDeal:Gn},pc:{vs:"0.0.0"}};function Zn(n){x("biz.navigation.setRight",{params:n,platform:$n})}var Qn=Wn({control:!0}),Xn={ios:{vs:"0.0.0",paramsDeal:Qn},android:{vs:"0.0.0",paramsDeal:Qn}};function ne(n){x("biz.navigation.setTitleExpandIcon",{params:n,platform:Xn})}function ee(n){x("biz.navigation.updateExpandTitle",{params:n})}var te=Wn({show:!0,control:!1,text:""}),oe={ios:{vs:"0.0.0",paramsDeal:te},android:{vs:"0.0.0",paramsDeal:te},pc:{vs:"0.0.0"}};function ie(n){x("biz.navigation.setLeft",{params:n,platform:oe})}var re={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ae(n){x("biz.navigation.goBack",{params:n,platform:re})}var se={pc:{vs:"0.0.0"}};function ce(n){x("biz.navigation.setWindowBig",{params:n,platform:se})}function ue(n){x("biz.contact.complexPicker",{params:n})}function de(n){x("biz.contact.departmentsPicker",{params:n})}function pe(n){x("biz.group.groupComplexPicker",{params:n})}function le(n){x("biz.chat.chooseConversationByCorpId",{params:n})}var fe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ve(n){x("biz.chat.pickConversation",{params:n,platform:fe})}function me(n){x("biz.chat.openSingleChat",{params:n})}function ge(n){x("biz.chat.openTeamChat",{params:n})}function he(n){x("biz.chat.openSquad",{params:n})}function be(n){x("biz.chat.sendP2PMsg",{params:n})}var we={pc:{vs:"0.0.0"}};function ye(n){x("primary.createTab",{params:n,platform:we})}var Pe={pc:{vs:"0.0.0"}};function ke(n){x("primary.weeklyShare",{params:n,platform:Pe})}function Se(n){x("runtime.permission.requestAuthCode",{params:n})}var ze={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ie(n){x("device.notification.showPreloader",{params:n,platform:ze})}var Te={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Me(n){x("device.notification.hidePreloader",{params:n,platform:Te})}var Ce={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function xe(n){x("device.notification.vibrate",{params:n,platform:Ce})}function Ae(n){x("device.notification.toast",{params:n})}var Fe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function De(n){x("device.notification.actionSheet",{params:n,platform:Fe})}var Ee={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function je(n){x("device.base.getPhoneInfo",{params:n,platform:Ee})}var Ve={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Re(n){x("device.notification.alert",{params:n,platform:Ve})}var We={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function _e(n){x("device.notification.confirm",{params:n,platform:We})}var Be={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Oe(n){x("device.geolocation.get",{params:n,platform:Be})}var He={android:{vs:"0.0.0"}};function Le(n){x("device.geolocation.getSwitch",{params:n,platform:He})}function Ne(n){x("device.system.getLang",{params:n})}var Ue={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function qe(n){x("device.audio.startRecord",{params:n,platform:Ue})}var Ye={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Je(n){x("device.audio.stopRecord",{params:n,platform:Ye})}var Ke={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ge(n){x("device.audio.onRecordEnd",{params:n,platform:Ke})}var $e={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ze(n){x("device.audio.download",{params:n,platform:$e})}var Qe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Xe(n){x("device.audio.play",{params:n,platform:Qe})}var nt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function et(n){x("device.audio.pause",{params:n,platform:nt})}var tt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ot(n){x("device.audio.stop",{params:n,platform:tt})}var it={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function rt(n){x("device.audio.onPlayEnd",{params:n,platform:it})}var at={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function st(n){x("device.audio.resume",{params:n,platform:at})}var ct={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ut(n){x("device.connection.getNetworkType",{params:n,platform:ct})}var dt={pc:{vs:"0.0.0"}};function pt(n){x("device.connection.isAtTal",{params:n,platform:dt})}var lt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ft(n){x("device.base.getUUID",{params:n,platform:lt})}var vt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function mt(n){x("device.base.checkStepPermission",{params:n,platform:vt})}var gt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ht(n){x("device.audio.onRecordEnd_v2",{params:n,platform:gt})}var bt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function wt(n){x("device.audio.startRecord_v2",{params:n,platform:bt})}var yt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Pt(n){x("device.audio.stopRecord_v2",{params:n,platform:yt})}var kt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function St(n){x("device.system.setLight",{params:n,platform:kt})}var zt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function It(n){x("biz.telephone.showCallMenu",{params:n,platform:zt})}var Tt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Mt(n){x("biz.telephone.call",{params:n,platform:Tt})}var Ct={ios:{vs:"0.0.0"}};function xt(n){x("ui.webViewBounce.disable",{params:n,platform:Ct})}var At={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ft(n){x("ui.pullToRefresh.enable",{params:n,platform:At})}var Dt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Et(n){x("ui.pullToRefresh.stop",{params:n,platform:Dt})}var jt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Vt(n){x("ui.pullToRefresh.disable",{params:n,platform:jt})}var Rt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Wt(n){x("util.domainStorage.getItem",{params:n,platform:Rt})}var _t={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Bt(n){x("util.domainStorage.setItem",{params:n,platform:_t})}var Ot={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ht(n){x("util.domainStorage.removeItem",{params:n,platform:Ot})}var Lt={ios:{vs:"0.0.0"}};function Nt(n){x("biz.webViewMessage.send",{params:n,platform:Lt})}function Ut(n){x("app.custom.talYoungFilesUpload",{params:n})}console.log("add rouseApp ------------\x3e",Tn);var qt=M.exportSdk,Yt=qt.version,Jt=qt.sdkVersion,Kt=qt.env,Gt=qt.platform,$t=qt.platformV2,Zt=qt.config,Qt=qt.ready,Xt=qt.error,no=qt.on,eo=qt.off;e.default={version:Yt,sdkVersion:Jt,env:Kt,platform:Gt,platformV2:$t,config:Zt,ready:Qt,error:Xt,on:no,off:eo,biz:{util:{openLink:A,open:F,openSlidePanel:E,share:V,previewFile:R,previewImage:W,downloadFile:_,uploadAttachment:B,clipboardFileUpload:O,proxy:H,datepicker:N,datetimepicker:q,scan:J,chosen:X,openSingleWebview:en,getSingleWebviewData:tn,closeWindow:rn,remind:sn,takePicture:cn,openVideoPlayer:dn,openMediaFileDialog:pn,mediaFileUpload:ln,invoice:fn,pushWorkMsg:vn,openTalYoungToTopic:mn,getToken:hn,authStart:wn,authFinish:Pn,openTogetherEyeWebview:Sn,getTogetherConfig:In,rouseApp:Tn,externalLinkPreviewFile:Mn,savePic:Fn,zfbAuth:xn,complain:Dn,selectDepartment:En,createModifySchedule:Vn},telephone:{showCallMenu:It,call:Mt},navigation:{setIcon:On,setTitle:Hn,setMenu:Un,close:qn,replace:Yn,quit:Kn,setRight:Zn,setTitleExpandIcon:ne,updateExpandTitle:ee,setLeft:ie,goBack:ae,setWindowBig:ce},contact:{complexPicker:ue,departmentsPicker:de},group:{groupComplexPicker:pe},chat:{chooseConversationByCorpId:le,pickConversation:ve,openSingleChat:me,openTeamChat:ge,openSquad:he,sendP2PMsg:be},map:{view:G,multipointView:Z},webViewMessage:{send:Nt}},runtime:{permission:{requestAuthCode:Se}},primary:{createTab:ye,weeklyShare:ke},device:{notification:{showPreloader:Ie,hidePreloader:Me,vibrate:xe,toast:Ae,alert:Re,confirm:_e,actionSheet:De},base:{getPhoneInfo:je,getUUID:ft,checkStepPermission:mt},geolocation:{get:Oe,getSwitch:Le},system:{getLang:Ne,setLight:St},audio:{startRecord:qe,stopRecord:Je,onRecordEnd:Ge,download:Ze,play:Xe,pause:et,stop:ot,onPlayEnd:rt,resume:st,onRecordEnd_v2:ht,startRecord_v2:wt,stopRecord_v2:Pt},connection:{getNetworkType:ut,isAtTal:pt}},ui:{webViewBounce:{disable:xt},pullToRefresh:{enable:Ft,stop:Et,disable:Vt}},util:{domainStorage:{getItem:Wt,setItem:Bt,removeItem:Ht}},app:{custom:{talYoungFilesUpload:Ut}}}}]).default;
|