hylid-bridge 2.7.3 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/canIUse.json +1 -1
  3. package/lib/appEnv/clients.js +5 -0
  4. package/lib/appEnv/getEnv.js +4 -42
  5. package/lib/appEnv/index.js +0 -1
  6. package/lib/appEnv/utils.js +0 -4
  7. package/lib/bridges.d.ts +6 -0
  8. package/lib/bridges.js +68 -294
  9. package/lib/clients/mp/alipay/custom.d.ts +3 -1
  10. package/lib/clients/mp/alipay/custom.js +4 -1
  11. package/lib/clients/mp/alipay/generated.d.ts +1 -0
  12. package/lib/clients/mp/alipay/generated.js +2 -0
  13. package/lib/clients/mp/alipay/index.d.ts +6 -1
  14. package/lib/clients/mp/alipay/index.js +13 -1
  15. package/lib/clients/mp/alipay/navigateTo.d.ts +2 -0
  16. package/lib/clients/mp/alipay/navigateTo.js +2 -0
  17. package/lib/clients/mp/alipay/tradePay.d.ts +2 -0
  18. package/lib/clients/mp/alipay/tradePay.js +2 -0
  19. package/lib/clients/mp/alipay_plus/canIUse.d.ts +2 -0
  20. package/lib/clients/mp/alipay_plus/canIUse.js +3 -0
  21. package/lib/clients/mp/alipay_plus/createSelectorQuery.d.ts +2 -0
  22. package/lib/clients/mp/alipay_plus/createSelectorQuery.js +2 -0
  23. package/lib/clients/mp/alipay_plus/custom.d.ts +3 -1
  24. package/lib/clients/mp/alipay_plus/custom.js +4 -1
  25. package/lib/clients/mp/alipay_plus/generated.d.ts +7 -0
  26. package/lib/clients/mp/alipay_plus/generated.js +15 -1
  27. package/lib/clients/mp/alipay_plus/getOpenUserInfo.js +2 -3
  28. package/lib/clients/mp/alipay_plus/getStorageInfo.d.ts +2 -0
  29. package/lib/clients/mp/alipay_plus/getStorageInfo.js +2 -0
  30. package/lib/clients/mp/alipay_plus/getStorageInfoSync.d.ts +2 -0
  31. package/lib/clients/mp/alipay_plus/getStorageInfoSync.js +2 -0
  32. package/lib/clients/mp/alipay_plus/getSystemInfoSync.d.ts +2 -0
  33. package/lib/clients/mp/alipay_plus/getSystemInfoSync.js +2 -0
  34. package/lib/clients/mp/alipay_plus/index.d.ts +8 -0
  35. package/lib/clients/mp/alipay_plus/index.js +1 -7
  36. package/lib/clients/mp/alipay_plus/onMessage.d.ts +2 -0
  37. package/lib/clients/mp/alipay_plus/onMessage.js +2 -0
  38. package/lib/clients/mp/alipay_plus/postMessage.d.ts +2 -0
  39. package/lib/clients/mp/alipay_plus/postMessage.js +2 -0
  40. package/lib/clients/mp/alipay_plus/showSharePanel.d.ts +2 -0
  41. package/lib/clients/mp/alipay_plus/showSharePanel.js +2 -0
  42. package/lib/clients/mp/lazada/getAuthCode.js +6 -15
  43. package/lib/clients/mp/lazada/getOpenUserInfo.js +2 -3
  44. package/lib/clients/mp/lazada/index.js +1 -7
  45. package/lib/clients/mp/taobao/getAuthCode.js +7 -16
  46. package/lib/clients/mp/taobao/getOpenUserInfo.js +5 -12
  47. package/lib/clients/mp/taobao/index.js +1 -7
  48. package/lib/clients/mp_web/alipay/crossPay.js +0 -2
  49. package/lib/clients/mp_web/alipay/custom.d.ts +1 -0
  50. package/lib/clients/mp_web/alipay/custom.js +3 -1
  51. package/lib/clients/mp_web/alipay/generated.d.ts +1 -1
  52. package/lib/clients/mp_web/alipay/generated.js +2 -2
  53. package/lib/clients/mp_web/alipay/index.d.ts +2 -1
  54. package/lib/clients/mp_web/alipay/index.js +1 -7
  55. package/lib/clients/mp_web/alipay/navigateTo.d.ts +2 -0
  56. package/lib/clients/mp_web/alipay/navigateTo.js +2 -0
  57. package/lib/clients/mp_web/alipay/tradePay.d.ts +1 -1
  58. package/lib/clients/mp_web/alipay/tradePay.js +1 -1
  59. package/lib/clients/mp_web/alipay_plus/getOpenUserInfo.js +1 -9
  60. package/lib/clients/mp_web/alipay_plus/index.js +1 -7
  61. package/lib/clients/web/alipay/custom.d.ts +1 -0
  62. package/lib/clients/web/alipay/custom.js +2 -0
  63. package/lib/clients/web/alipay/generated.d.ts +1 -1
  64. package/lib/clients/web/alipay/generated.js +2 -2
  65. package/lib/clients/web/alipay/index.d.ts +2 -1
  66. package/lib/clients/web/alipay/index.js +1 -7
  67. package/lib/clients/web/alipay/tradePay.d.ts +1 -1
  68. package/lib/clients/web/alipay/tradePay.js +1 -1
  69. package/lib/clients/web/alipay_plus/getOpenUserInfo.js +1 -9
  70. package/lib/clients/web/alipay_plus/index.js +1 -7
  71. package/lib/clients/web/alipay_plus/paySignCenter.js +1 -7
  72. package/lib/clients/web/h5/index.js +1 -7
  73. package/lib/clients/web/h5/rpc.js +1 -7
  74. package/lib/common/apis/custom/mp/crossPay.js +0 -2
  75. package/lib/common/apis/custom/tradePay.d.ts +3 -0
  76. package/lib/common/apis/custom/tradePay.js +34 -0
  77. package/lib/common/apis/custom/web/alert.js +5 -17
  78. package/lib/common/apis/custom/web/choosePhoneContact.js +0 -2
  79. package/lib/common/apis/custom/web/clearStorage.js +0 -2
  80. package/lib/common/apis/custom/web/confirm.js +6 -20
  81. package/lib/common/apis/custom/web/datePicker.js +7 -21
  82. package/lib/common/apis/custom/web/downloadFile.js +4 -19
  83. package/lib/common/apis/custom/web/getAuthCode.js +4 -18
  84. package/lib/common/apis/custom/web/getLocation.js +4 -18
  85. package/lib/common/apis/custom/web/getNetworkType.js +1 -9
  86. package/lib/common/apis/custom/web/getPhoneNumber.js +1 -9
  87. package/lib/common/apis/custom/web/getStorage.js +1 -9
  88. package/lib/common/apis/custom/web/hideNavigationBarLoading.js +0 -2
  89. package/lib/common/apis/custom/web/multiLevelSelect.js +0 -2
  90. package/lib/common/apis/custom/web/navigateBack.js +6 -20
  91. package/lib/common/apis/custom/web/navigateTo.js +0 -2
  92. package/lib/common/apis/custom/web/previewImage.js +5 -19
  93. package/lib/common/apis/custom/web/reLaunch.js +0 -2
  94. package/lib/common/apis/custom/web/redirectTo.js +7 -9
  95. package/lib/common/apis/custom/web/removeStorage.js +0 -2
  96. package/lib/common/apis/custom/web/request.js +6 -27
  97. package/lib/common/apis/custom/web/saveFile.js +4 -18
  98. package/lib/common/apis/custom/web/saveImage.js +4 -18
  99. package/lib/common/apis/custom/web/setKeepScreenOn.js +1 -9
  100. package/lib/common/apis/custom/web/setNavigationBar.js +7 -12
  101. package/lib/common/apis/custom/web/setOptionMenu.js +0 -2
  102. package/lib/common/apis/custom/web/setStorage.js +4 -18
  103. package/lib/common/apis/custom/web/setTabBarStyle.js +1 -9
  104. package/lib/common/apis/custom/web/showActionSheet.js +5 -19
  105. package/lib/common/apis/custom/web/showAuthGuide.js +1 -9
  106. package/lib/common/apis/custom/web/showNavigationBarLoading.js +0 -2
  107. package/lib/common/apis/custom/web/showToast.js +1 -9
  108. package/lib/common/apis/custom/web/startPullDownRefresh.js +0 -2
  109. package/lib/common/apis/custom/web/stopPullDownRefresh.js +0 -2
  110. package/lib/common/apis/custom/web/uploadFile.js +5 -19
  111. package/lib/common/apis/generated/createSelectorQuery.d.ts +2 -0
  112. package/lib/common/apis/generated/createSelectorQuery.js +4 -0
  113. package/lib/common/apis/generated/getStorageInfo.d.ts +2 -0
  114. package/lib/common/apis/generated/getStorageInfo.js +4 -0
  115. package/lib/common/apis/generated/getStorageInfoSync.d.ts +2 -0
  116. package/lib/common/apis/generated/getStorageInfoSync.js +4 -0
  117. package/lib/common/apis/generated/getSystemInfoSync.d.ts +2 -0
  118. package/lib/common/apis/generated/getSystemInfoSync.js +4 -0
  119. package/lib/common/apis/generated/onMessage.d.ts +2 -0
  120. package/lib/common/apis/generated/onMessage.js +4 -0
  121. package/lib/common/apis/generated/postMessage.d.ts +2 -0
  122. package/lib/common/apis/generated/postMessage.js +4 -0
  123. package/lib/common/apis/generated/showSharePanel.d.ts +2 -0
  124. package/lib/common/apis/generated/showSharePanel.js +4 -0
  125. package/lib/common/call/index.js +1 -18
  126. package/lib/common/call/mp.js +2 -2
  127. package/lib/common/call/mpWeb.js +2 -12
  128. package/lib/common/call/web.js +3 -5
  129. package/lib/common/constants.js +0 -9
  130. package/lib/common/logger.js +5 -6
  131. package/lib/common/notFound.js +0 -3
  132. package/lib/common/utils.js +8 -22
  133. package/lib/common/webview-bridge.js +70 -125
  134. package/lib/common/whichCanIUse.d.ts +3 -0
  135. package/lib/common/{canIUse.js → whichCanIUse.js} +14 -8
  136. package/lib/index.d.ts +1 -2
  137. package/lib/index.js +13 -6
  138. package/lib/types/jsapi.d.ts +2 -0
  139. package/lib/types/mp.d.ts +6 -0
  140. package/lib/umd/index.js +6350 -2
  141. package/lib/umd/mp_ae.js +45 -1
  142. package/lib/umd/mp_alipay.js +1744 -1
  143. package/lib/umd/mp_alipay_hk.js +45 -1
  144. package/lib/umd/mp_alipay_plus.js +3328 -2
  145. package/lib/umd/mp_alipay_vn.js +45 -1
  146. package/lib/umd/mp_dana.js +45 -1
  147. package/lib/umd/mp_gcash.js +45 -1
  148. package/lib/umd/mp_lazada.js +3240 -2
  149. package/lib/umd/mp_taobao.js +2206 -2
  150. package/lib/umd/mp_tmall.js +45 -1
  151. package/lib/umd/mp_tmn.js +45 -1
  152. package/lib/umd/mp_tngd.js +45 -1
  153. package/lib/umd/mp_web_alipay.js +2162 -2
  154. package/lib/umd/mp_web_alipay_plus.js +2987 -2
  155. package/lib/umd/web_ae.js +45 -1
  156. package/lib/umd/web_alipay.js +2646 -2
  157. package/lib/umd/web_alipay_hk.js +45 -1
  158. package/lib/umd/web_alipay_mo.js +45 -1
  159. package/lib/umd/web_alipay_plus.js +2866 -2
  160. package/lib/umd/web_alipay_vn.js +45 -1
  161. package/lib/umd/web_daraz.js +45 -1
  162. package/lib/umd/web_h5.js +2140 -2
  163. package/lib/umd/web_kkp.js +45 -1
  164. package/lib/umd/web_lazada.js +45 -1
  165. package/lib/umd/web_taobao.js +45 -1
  166. package/lib/umd/web_taobao_overseas.js +45 -1
  167. package/package.json +2 -25
  168. package/lib/common/canIUse.d.ts +0 -3
  169. package/lib/umd/index.js.LICENSE.txt +0 -1
  170. package/lib/umd/mp_alipay_plus.js.LICENSE.txt +0 -1
  171. package/lib/umd/mp_lazada.js.LICENSE.txt +0 -1
  172. package/lib/umd/mp_taobao.js.LICENSE.txt +0 -1
  173. package/lib/umd/mp_web_alipay.js.LICENSE.txt +0 -1
  174. package/lib/umd/mp_web_alipay_plus.js.LICENSE.txt +0 -1
  175. package/lib/umd/web_alipay.js.LICENSE.txt +0 -1
  176. package/lib/umd/web_alipay_plus.js.LICENSE.txt +0 -1
  177. package/lib/umd/web_h5.js.LICENSE.txt +0 -1
@@ -2,20 +2,13 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
-
6
- for (var p in s) {
7
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
6
  }
10
-
11
7
  return t;
12
8
  };
13
-
14
9
  return __assign.apply(this, arguments);
15
10
  };
16
-
17
11
  import call from "../../../call";
18
-
19
12
  var getPhoneNumber = function getPhoneNumber(options) {
20
13
  call('appxrpc', __assign({
21
14
  requestData: [{
@@ -25,5 +18,4 @@ var getPhoneNumber = function getPhoneNumber(options) {
25
18
  originOptions: options
26
19
  });
27
20
  };
28
-
29
21
  export default getPhoneNumber;
@@ -2,21 +2,14 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
-
6
- for (var p in s) {
7
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
6
  }
10
-
11
7
  return t;
12
8
  };
13
-
14
9
  return __assign.apply(this, arguments);
15
10
  };
16
-
17
11
  import call from "../../../call";
18
12
  import { safeJSONParse } from "../../../utils";
19
-
20
13
  var getStorage = function getStorage(options) {
21
14
  call('getTinyLocalStorage', options, {
22
15
  modify: {
@@ -29,5 +22,4 @@ var getStorage = function getStorage(options) {
29
22
  originOptions: options
30
23
  });
31
24
  };
32
-
33
25
  export default getStorage;
@@ -1,7 +1,5 @@
1
1
  import call from "../../../call";
2
-
3
2
  var hideNavigationBarLoading = function hideNavigationBarLoading() {
4
3
  call('hideTitleLoading');
5
4
  };
6
-
7
5
  export default hideNavigationBarLoading;
@@ -1,7 +1,5 @@
1
1
  import call from "../../../call";
2
-
3
2
  var multiLevelSelect = function multiLevelSelect(options) {
4
3
  call('beehiveMultilevelSelect', options);
5
4
  };
6
-
7
5
  export default multiLevelSelect;
@@ -2,45 +2,31 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
-
6
- for (var p in s) {
7
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
6
  }
10
-
11
7
  return t;
12
8
  };
13
-
14
9
  return __assign.apply(this, arguments);
15
10
  };
16
-
17
11
  var __rest = this && this.__rest || function (s, e) {
18
12
  var t = {};
19
-
20
- for (var p in s) {
21
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
22
- }
23
-
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
24
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
25
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
26
16
  }
27
17
  return t;
28
18
  };
29
-
30
19
  import call from "../../../call";
31
-
32
20
  var navigateBack = function navigateBack(options) {
33
21
  var _a = options || {},
34
- _b = _a.delta,
35
- delta = _b === void 0 ? 1 : _b,
36
- rest = __rest(_a, ["delta"]); // @ts-ignore
37
-
38
-
22
+ _b = _a.delta,
23
+ delta = _b === void 0 ? 1 : _b,
24
+ rest = __rest(_a, ["delta"]);
25
+ // @ts-ignore
39
26
  call('popTo', __assign({
40
27
  index: -delta
41
28
  }, rest), {
42
29
  originOptions: options
43
30
  });
44
31
  };
45
-
46
32
  export default navigateBack;
@@ -1,7 +1,5 @@
1
1
  import call from "../../../call";
2
-
3
2
  var navigateTo = function navigateTo(options) {
4
3
  call('pushWindow', options);
5
4
  };
6
-
7
5
  export default navigateTo;
@@ -2,39 +2,26 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
-
6
- for (var p in s) {
7
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
6
  }
10
-
11
7
  return t;
12
8
  };
13
-
14
9
  return __assign.apply(this, arguments);
15
10
  };
16
-
17
11
  var __rest = this && this.__rest || function (s, e) {
18
12
  var t = {};
19
-
20
- for (var p in s) {
21
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
22
- }
23
-
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
24
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
25
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
26
16
  }
27
17
  return t;
28
18
  };
29
-
30
19
  import call from "../../../call";
31
-
32
20
  var previewImage = function previewImage(options) {
33
21
  var current = options.current,
34
- _a = options.urls,
35
- urls = _a === void 0 ? [] : _a,
36
- rest = __rest(options, ["current", "urls"]);
37
-
22
+ _a = options.urls,
23
+ urls = _a === void 0 ? [] : _a,
24
+ rest = __rest(options, ["current", "urls"]);
38
25
  call('imageViewer', __assign({
39
26
  images: urls.map(function (url) {
40
27
  return {
@@ -46,5 +33,4 @@ var previewImage = function previewImage(options) {
46
33
  originOptions: options
47
34
  });
48
35
  };
49
-
50
36
  export default previewImage;
@@ -1,7 +1,5 @@
1
1
  import call from "../../../call";
2
-
3
2
  var reLaunch = function reLaunch(options) {
4
3
  call('pushWindow', options);
5
4
  };
6
-
7
5
  export default reLaunch;
@@ -1,14 +1,12 @@
1
1
  var redirectTo = function redirectTo(options) {
2
2
  var _a = options || {},
3
- url = _a.url,
4
- success = _a.success,
5
- complete = _a.complete;
6
-
7
- window.location.replace(url); // @ts-ignore
8
-
9
- success === null || success === void 0 ? void 0 : success({}); // @ts-ignore
10
-
3
+ url = _a.url,
4
+ success = _a.success,
5
+ complete = _a.complete;
6
+ window.location.replace(url);
7
+ // @ts-ignore
8
+ success === null || success === void 0 ? void 0 : success({});
9
+ // @ts-ignore
11
10
  complete === null || complete === void 0 ? void 0 : complete({});
12
11
  };
13
-
14
12
  export default redirectTo;
@@ -1,7 +1,5 @@
1
1
  import call from "../../../call";
2
-
3
2
  var removeStorage = function removeStorage(options) {
4
3
  call('removeTinyLocalStorage', options);
5
4
  };
6
-
7
5
  export default removeStorage;
@@ -2,43 +2,29 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
-
6
- for (var p in s) {
7
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
6
  }
10
-
11
7
  return t;
12
8
  };
13
-
14
9
  return __assign.apply(this, arguments);
15
10
  };
16
-
17
11
  var __rest = this && this.__rest || function (s, e) {
18
12
  var t = {};
19
-
20
- for (var p in s) {
21
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
22
- }
23
-
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
24
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
25
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
26
16
  }
27
17
  return t;
28
18
  };
29
-
30
19
  import call from "../../../call";
31
20
  import { isIOS, safeJSONParse } from "../../../utils";
32
-
33
21
  var request = function request(options) {
34
22
  var _a = options || {},
35
- headers = _a.headers,
36
- data = _a.data,
37
- dataType = _a.dataType,
38
- rest = __rest(_a, ["headers", "data", "dataType"]);
39
-
23
+ headers = _a.headers,
24
+ data = _a.data,
25
+ dataType = _a.dataType,
26
+ rest = __rest(_a, ["headers", "data", "dataType"]);
40
27
  var androidHeaders = [];
41
-
42
28
  if (!isIOS) {
43
29
  for (var i in headers) {
44
30
  var o = {};
@@ -46,27 +32,21 @@ var request = function request(options) {
46
32
  androidHeaders.push();
47
33
  }
48
34
  }
49
-
50
35
  var formatData = function formatData(data) {
51
36
  var result = data;
52
-
53
37
  switch (dataType) {
54
38
  case 'json':
55
39
  result = safeJSONParse(data, {});
56
40
  break;
57
-
58
41
  case 'base64':
59
42
  result = data.startsWith('data:') ? data : 'data:application/json;base64,' + data;
60
43
  break;
61
-
62
44
  case 'text':
63
45
  result = data;
64
46
  break;
65
47
  }
66
-
67
48
  return result;
68
49
  };
69
-
70
50
  call('httpRequest', __assign({
71
51
  headers: isIOS ? headers : androidHeaders,
72
52
  data: JSON.stringify(data),
@@ -82,5 +62,4 @@ var request = function request(options) {
82
62
  originOptions: options
83
63
  });
84
64
  };
85
-
86
65
  export default request;
@@ -2,43 +2,29 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
-
6
- for (var p in s) {
7
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
6
  }
10
-
11
7
  return t;
12
8
  };
13
-
14
9
  return __assign.apply(this, arguments);
15
10
  };
16
-
17
11
  var __rest = this && this.__rest || function (s, e) {
18
12
  var t = {};
19
-
20
- for (var p in s) {
21
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
22
- }
23
-
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
24
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
25
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
26
16
  }
27
17
  return t;
28
18
  };
29
-
30
19
  import call from "../../../call";
31
-
32
20
  var saveFile = function saveFile(options) {
33
21
  var _a = options || {},
34
- apFilePath = _a.apFilePath,
35
- rest = __rest(_a, ["apFilePath"]);
36
-
22
+ apFilePath = _a.apFilePath,
23
+ rest = __rest(_a, ["apFilePath"]);
37
24
  call('saveFile', __assign({
38
25
  tempFilePath: apFilePath
39
26
  }, rest), {
40
27
  originOptions: options
41
28
  });
42
29
  };
43
-
44
30
  export default saveFile;
@@ -2,43 +2,29 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
-
6
- for (var p in s) {
7
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
6
  }
10
-
11
7
  return t;
12
8
  };
13
-
14
9
  return __assign.apply(this, arguments);
15
10
  };
16
-
17
11
  var __rest = this && this.__rest || function (s, e) {
18
12
  var t = {};
19
-
20
- for (var p in s) {
21
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
22
- }
23
-
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
24
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
25
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
26
16
  }
27
17
  return t;
28
18
  };
29
-
30
19
  import call from "../../../call";
31
-
32
20
  var saveImage = function saveImage(options) {
33
21
  var _a = options || {},
34
- url = _a.url,
35
- rest = __rest(_a, ["url"]);
36
-
22
+ url = _a.url,
23
+ rest = __rest(_a, ["url"]);
37
24
  call('saveImage', __assign({
38
25
  src: url
39
26
  }, rest), {
40
27
  originOptions: options
41
28
  });
42
29
  };
43
-
44
30
  export default saveImage;
@@ -2,20 +2,13 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
-
6
- for (var p in s) {
7
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
6
  }
10
-
11
7
  return t;
12
8
  };
13
-
14
9
  return __assign.apply(this, arguments);
15
10
  };
16
-
17
11
  import call from "../../../call";
18
-
19
12
  var setKeepScreenOn = function setKeepScreenOn(options) {
20
13
  call('setScreenAutolock', __assign({
21
14
  actionType: 'disable'
@@ -23,5 +16,4 @@ var setKeepScreenOn = function setKeepScreenOn(options) {
23
16
  originOptions: options
24
17
  });
25
18
  };
26
-
27
19
  export default setKeepScreenOn;
@@ -1,15 +1,14 @@
1
1
  import call from "../../../call";
2
2
  import { isNaN } from "../../../utils";
3
-
4
3
  var setNavigationBar = function setNavigationBar(options) {
5
4
  var title = options.title,
6
- image = options.image,
7
- backgroundColor = options.backgroundColor,
8
- borderBottomColor = options.borderBottomColor,
9
- reset = options.reset,
10
- success = options.success,
11
- complete = options.complete,
12
- fail = options.fail;
5
+ image = options.image,
6
+ backgroundColor = options.backgroundColor,
7
+ borderBottomColor = options.borderBottomColor,
8
+ reset = options.reset,
9
+ success = options.success,
10
+ complete = options.complete,
11
+ fail = options.fail;
13
12
  if (title || image) call('setTitle', {
14
13
  title: title,
15
14
  image: image
@@ -33,19 +32,16 @@ var setNavigationBar = function setNavigationBar(options) {
33
32
  complete: complete,
34
33
  fail: fail
35
34
  };
36
-
37
35
  if (colorValue) {
38
36
  Object.assign(setTitleColorParams, {
39
37
  color: colorValue || 'ffffff'
40
38
  });
41
39
  }
42
-
43
40
  if (reset) {
44
41
  Object.assign(setTitleColorParams, {
45
42
  reset: reset
46
43
  });
47
44
  }
48
-
49
45
  call('setTitleColor', setTitleColorParams, {
50
46
  modify: {
51
47
  fail: function fail(res) {
@@ -59,5 +55,4 @@ var setNavigationBar = function setNavigationBar(options) {
59
55
  originOptions: options
60
56
  });
61
57
  };
62
-
63
58
  export default setNavigationBar;
@@ -1,5 +1,4 @@
1
1
  import call from "../../../call";
2
-
3
2
  var setOptionMenu = function setOptionMenu(options) {
4
3
  call('showOptionMenu', {
5
4
  success: function success() {
@@ -8,5 +7,4 @@ var setOptionMenu = function setOptionMenu(options) {
8
7
  fail: options === null || options === void 0 ? void 0 : options.fail
9
8
  });
10
9
  };
11
-
12
10
  export default setOptionMenu;
@@ -2,44 +2,30 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
-
6
- for (var p in s) {
7
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
6
  }
10
-
11
7
  return t;
12
8
  };
13
-
14
9
  return __assign.apply(this, arguments);
15
10
  };
16
-
17
11
  var __rest = this && this.__rest || function (s, e) {
18
12
  var t = {};
19
-
20
- for (var p in s) {
21
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
22
- }
23
-
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
24
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
25
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
26
16
  }
27
17
  return t;
28
18
  };
29
-
30
19
  import { safeJSONStringify } from "../../../../common/utils";
31
20
  import call from "../../../call";
32
-
33
21
  var setStorage = function setStorage(options) {
34
22
  var _a = options || {},
35
- data = _a.data,
36
- rest = __rest(_a, ["data"]);
37
-
23
+ data = _a.data,
24
+ rest = __rest(_a, ["data"]);
38
25
  call('setTinyLocalStorage', __assign({
39
26
  data: safeJSONStringify(data)
40
27
  }, rest), {
41
28
  originOptions: options
42
29
  });
43
30
  };
44
-
45
31
  export default setStorage;
@@ -2,20 +2,13 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
-
6
- for (var p in s) {
7
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
6
  }
10
-
11
7
  return t;
12
8
  };
13
-
14
9
  return __assign.apply(this, arguments);
15
10
  };
16
-
17
11
  import call from "../../../call";
18
-
19
12
  var setTabBarStyle = function setTabBarStyle(options) {
20
13
  call('setTabBar', __assign({
21
14
  actionType: 'setTabbarStyle'
@@ -23,5 +16,4 @@ var setTabBarStyle = function setTabBarStyle(options) {
23
16
  originOptions: options
24
17
  });
25
18
  };
26
-
27
19
  export default setTabBarStyle;
@@ -2,39 +2,26 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
-
6
- for (var p in s) {
7
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
6
  }
10
-
11
7
  return t;
12
8
  };
13
-
14
9
  return __assign.apply(this, arguments);
15
10
  };
16
-
17
11
  var __rest = this && this.__rest || function (s, e) {
18
12
  var t = {};
19
-
20
- for (var p in s) {
21
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
22
- }
23
-
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
24
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
25
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
26
16
  }
27
17
  return t;
28
18
  };
29
-
30
19
  import call from "../../../call";
31
-
32
20
  var showActionSheet = function showActionSheet(options) {
33
21
  var _a = options || {},
34
- items = _a.items,
35
- cancelButtonText = _a.cancelButtonText,
36
- rest = __rest(_a, ["items", "cancelButtonText"]);
37
-
22
+ items = _a.items,
23
+ cancelButtonText = _a.cancelButtonText,
24
+ rest = __rest(_a, ["items", "cancelButtonText"]);
38
25
  call('actionSheet', __assign({
39
26
  btns: items,
40
27
  cancelBtn: cancelButtonText
@@ -42,5 +29,4 @@ var showActionSheet = function showActionSheet(options) {
42
29
  originOptions: options
43
30
  });
44
31
  };
45
-
46
32
  export default showActionSheet;
@@ -2,20 +2,13 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
-
6
- for (var p in s) {
7
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
6
  }
10
-
11
7
  return t;
12
8
  };
13
-
14
9
  return __assign.apply(this, arguments);
15
10
  };
16
-
17
11
  import call from "../../../call";
18
-
19
12
  var showAuthGuide = function showAuthGuide(options) {
20
13
  call('showAuthGuide', __assign({
21
14
  bizType: 'alipayIntl'
@@ -23,5 +16,4 @@ var showAuthGuide = function showAuthGuide(options) {
23
16
  originOptions: options
24
17
  });
25
18
  };
26
-
27
19
  export default showAuthGuide;
@@ -1,7 +1,5 @@
1
1
  import call from "../../../call";
2
-
3
2
  var showNavigationBarLoading = function showNavigationBarLoading() {
4
3
  call('showTitleLoading');
5
4
  };
6
-
7
5
  export default showNavigationBarLoading;