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
package/lib/umd/web_ae.js CHANGED
@@ -1 +1,45 @@
1
- !function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.my=o():e.my=o()}(self,(()=>({}.default)));
1
+ /*
2
+ * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
3
+ * This devtool is neither made for production nor for readable output files.
4
+ * It uses "eval()" calls to create a separate source file in the browser devtools.
5
+ * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
6
+ * or disable the default devtool with "devtool: false".
7
+ * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
8
+ */
9
+ (function webpackUniversalModuleDefinition(root, factory) {
10
+ if(typeof exports === 'object' && typeof module === 'object')
11
+ module.exports = factory();
12
+ else if(typeof define === 'function' && define.amd)
13
+ define([], factory);
14
+ else if(typeof exports === 'object')
15
+ exports["my"] = factory();
16
+ else
17
+ root["my"] = factory();
18
+ })(self, () => {
19
+ return /******/ (() => { // webpackBootstrap
20
+ /******/ var __webpack_modules__ = ({
21
+
22
+ /***/ "./packages/bridge/src/clients/web/ae/index.ts":
23
+ /*!*****************************************************!*\
24
+ !*** ./packages/bridge/src/clients/web/ae/index.ts ***!
25
+ \*****************************************************/
26
+ /***/ (() => {
27
+
28
+ eval("\n\n//# sourceURL=webpack://my/./packages/bridge/src/clients/web/ae/index.ts?");
29
+
30
+ /***/ })
31
+
32
+ /******/ });
33
+ /************************************************************************/
34
+ /******/
35
+ /******/ // startup
36
+ /******/ // Load entry module and return exports
37
+ /******/ // This entry module can't be inlined because the eval devtool is used.
38
+ /******/ var __webpack_exports__ = {};
39
+ /******/ __webpack_modules__["./packages/bridge/src/clients/web/ae/index.ts"]();
40
+ /******/ __webpack_exports__ = __webpack_exports__["default"];
41
+ /******/
42
+ /******/ return __webpack_exports__;
43
+ /******/ })()
44
+ ;
45
+ });