@alipay/ams-checkout 0.0.1763724075-dev.4 → 0.0.1763966842-dev.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 (138) hide show
  1. package/LEGAL.md +6 -0
  2. package/LICENSE +6 -0
  3. package/README.md +58 -0
  4. package/dist/umd/ams-checkout.min.js +1 -1
  5. package/esm/component/channel.d.ts +21 -0
  6. package/esm/component/component.inline.style.d.ts +10 -0
  7. package/esm/component/component.popup.style.d.ts +26 -0
  8. package/esm/component/popupWindow.style.d.ts +24 -0
  9. package/esm/config/index.d.ts +16 -0
  10. package/esm/config/request.d.ts +21 -0
  11. package/esm/constant/easysafepay.d.ts +16 -0
  12. package/esm/constant/index.d.ts +341 -0
  13. package/esm/constant/index.js +0 -3
  14. package/esm/core/bus/ability/callback.d.ts +9 -0
  15. package/esm/core/bus/ability/security.d.ts +10 -0
  16. package/esm/core/bus/ability/tracker.d.ts +9 -0
  17. package/esm/core/bus/index.d.ts +125 -0
  18. package/esm/core/bus/interface.d.ts +36 -0
  19. package/esm/core/component/address.d.ts +8 -0
  20. package/esm/core/component/appPreloadProcessing.d.ts +1 -0
  21. package/esm/core/component/ckp/index.d.ts +29 -0
  22. package/esm/core/component/element/EventCenter/index.d.ts +31 -0
  23. package/esm/core/component/element/elementContainerService/containerService.d.ts +34 -0
  24. package/esm/core/component/element/elementContainerService/index.d.ts +20 -0
  25. package/esm/core/component/element/elementController/index.d.ts +48 -0
  26. package/esm/core/component/element/elementProcessor/addressProcessor.d.ts +20 -0
  27. package/esm/core/component/element/elementProcessor/addressProcessor.js +3 -2
  28. package/esm/core/component/element/elementProcessor/authProcessor.d.ts +20 -0
  29. package/esm/core/component/element/elementProcessor/authProcessor.js +3 -2
  30. package/esm/core/component/element/elementProcessor/baseElementProcessor.d.ts +41 -0
  31. package/esm/core/component/element/elementProcessor/paymentProcessor.d.ts +22 -0
  32. package/esm/core/component/element/elementProcessor/paymentProcessor.js +28 -30
  33. package/esm/core/component/element/index.d.ts +13 -0
  34. package/esm/core/component/element/mock.d.ts +10 -0
  35. package/esm/core/component/element/type.d.ts +443 -0
  36. package/esm/core/component/element/util.d.ts +85 -0
  37. package/esm/core/component/index.d.ts +58 -0
  38. package/esm/core/drop-in/index.d.ts +22 -0
  39. package/esm/core/instance/index.d.ts +89 -0
  40. package/esm/foundation/core/index.d.ts +36 -0
  41. package/esm/foundation/core/index.js +0 -27
  42. package/esm/foundation/index.d.ts +97 -0
  43. package/esm/foundation/product-processor/autoDebit/deps.d.ts +14 -0
  44. package/esm/foundation/product-processor/autoDebit/index.d.ts +48 -0
  45. package/esm/foundation/product-processor/easysafepay/deps.d.ts +20 -0
  46. package/esm/foundation/product-processor/easysafepay/index.d.ts +29 -0
  47. package/esm/foundation/product-processor/element/index.d.ts +7 -0
  48. package/esm/foundation/service/api-bus/ability/callback.d.ts +9 -0
  49. package/esm/foundation/service/api-bus/ability/globalData.d.ts +10 -0
  50. package/esm/foundation/service/api-bus/ability/request.d.ts +10 -0
  51. package/esm/foundation/service/api-bus/ability/security.d.ts +12 -0
  52. package/esm/foundation/service/api-bus/ability/tracker.d.ts +9 -0
  53. package/esm/foundation/service/api-bus/busManager.d.ts +127 -0
  54. package/esm/foundation/service/api-bus/index.d.ts +20 -0
  55. package/esm/foundation/service/api-bus/interface.d.ts +48 -0
  56. package/esm/foundation/service/container/index.d.ts +41 -0
  57. package/esm/foundation/service/container/index.js +2 -33
  58. package/esm/foundation/service/container/popup.d.ts +31 -0
  59. package/esm/foundation/service/container/utils.d.ts +7 -0
  60. package/esm/foundation/service/event-center.d.ts +82 -0
  61. package/esm/foundation/service/global-data/index.d.ts +11 -0
  62. package/esm/foundation/service/index.d.ts +19 -0
  63. package/esm/foundation/service/log/index.d.ts +43 -0
  64. package/esm/foundation/service/log/keys.d.ts +13 -0
  65. package/esm/foundation/service/log/processor.d.ts +9 -0
  66. package/esm/foundation/service/log/types.d.ts +33 -0
  67. package/esm/foundation/service/requester/deps.d.ts +17 -0
  68. package/esm/foundation/service/requester/requester.d.ts +22 -0
  69. package/esm/foundation/service/security/index.d.ts +28 -0
  70. package/esm/foundation/service/security/security.d.ts +33 -0
  71. package/esm/foundation/utils/gray_scale_utils.d.ts +7 -0
  72. package/esm/foundation/utils/payment_context_utils.d.ts +13 -0
  73. package/esm/foundation/utils/payment_product_utils.d.ts +13 -0
  74. package/esm/foundation/utils/preload_helper.d.ts +21 -0
  75. package/esm/foundation/utils/redirect_utils.d.ts +11 -0
  76. package/esm/foundation/utils/system_events.d.ts +4 -0
  77. package/esm/foundation/utils/web_app_url_utils.d.ts +116 -0
  78. package/esm/foundation/utils/web_app_url_utils.js +15 -10
  79. package/esm/index.d.ts +54 -0
  80. package/esm/index.js +341 -5
  81. package/esm/plugin/applepay/component.d.ts +50 -0
  82. package/esm/plugin/applepay/index.d.ts +17 -0
  83. package/esm/plugin/applepay/interface.d.ts +161 -0
  84. package/esm/plugin/applepay/service.d.ts +54 -0
  85. package/esm/plugin/component/cashierApp.d.ts +38 -0
  86. package/esm/plugin/component/cashierApp.js +4 -7
  87. package/esm/plugin/component/channel.d.ts +57 -0
  88. package/esm/plugin/component/component.inline.style.d.ts +10 -0
  89. package/esm/plugin/component/component.popup.style.d.ts +25 -0
  90. package/esm/plugin/component/index.d.ts +133 -0
  91. package/esm/plugin/component/popupWindow.style.d.ts +11 -0
  92. package/esm/plugin/const.d.ts +2 -0
  93. package/esm/plugin/drop-in/index.d.ts +71 -0
  94. package/esm/plugin/payment-element/utils.d.ts +2 -0
  95. package/esm/plugin/paypal/index.d.ts +20 -0
  96. package/esm/plugin/type.d.ts +34 -0
  97. package/esm/plugin/utils.d.ts +6 -0
  98. package/esm/request/index.d.ts +9 -0
  99. package/esm/request/utils.d.ts +28 -0
  100. package/esm/service/index.d.ts +13 -0
  101. package/esm/types/index.d.ts +854 -0
  102. package/esm/util/createIframeNode.d.ts +6 -0
  103. package/esm/util/debug.d.ts +1 -0
  104. package/esm/util/get.d.ts +25 -0
  105. package/esm/util/getBackScheme.d.ts +5 -0
  106. package/esm/util/index.d.ts +61 -0
  107. package/esm/util/intl-callapp/es/browser.d.ts +21 -0
  108. package/esm/util/intl-callapp/es/evoke.d.ts +13 -0
  109. package/esm/util/intl-callapp/es/generate.d.ts +29 -0
  110. package/esm/util/intl-callapp/es/index.d.ts +43 -0
  111. package/esm/util/intl-callapp/es/main.d.ts +41 -0
  112. package/esm/util/intl-callapp/es/openWallet.d.ts +15 -0
  113. package/esm/util/intl-callapp/es/types.d.ts +46 -0
  114. package/esm/util/intl-callapp/es/utils/config.d.ts +24 -0
  115. package/esm/util/intl-callapp/es/utils/index.d.ts +15 -0
  116. package/esm/util/logger.d.ts +64 -0
  117. package/esm/util/logger.js +1 -1
  118. package/esm/util/mock.d.ts +1 -0
  119. package/esm/util/redirect.d.ts +6 -0
  120. package/esm/util/security.d.ts +34 -0
  121. package/esm/util/spm-map.d.ts +211 -0
  122. package/esm/util/storage.d.ts +2 -0
  123. package/esm/util/upgrade.d.ts +39 -0
  124. package/esm/util/versionCompare.d.ts +15 -0
  125. package/package.json +6 -16
  126. package/ams-checkout.js +0 -1
  127. package/esm/constant/auto-debit.js +0 -15
  128. package/esm/constant/element.js +0 -30
  129. package/esm/loader/Proxy.js +0 -364
  130. package/esm/loader/constant.js +0 -36
  131. package/esm/loader/index.js +0 -23
  132. package/esm/loader/utils/common.js +0 -63
  133. package/esm/loader/utils/debugger.js +0 -15
  134. package/esm/loader/utils/loadSDK.js +0 -92
  135. package/esm/loader/utils/logger.js +0 -59
  136. package/esm/loader/utils/proxyPerformance.js +0 -66
  137. package/esm/main.js +0 -329
  138. package/esm/util/integrationType.js +0 -48
package/LEGAL.md ADDED
@@ -0,0 +1,6 @@
1
+ Copyright (c) 2022 International Business Group, Ant Group. All rights reserved.
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, and/or distribute the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ 1. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE; and
6
+ 2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
package/LICENSE ADDED
@@ -0,0 +1,6 @@
1
+ Copyright (c) 2022 International Business Group, Ant Group. All rights reserved.
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, and/or distribute the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ 1. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE; and
6
+ 2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
package/README.md ADDED
@@ -0,0 +1,58 @@
1
+ # AMS CHECKOUT
2
+
3
+ Use _AMS CHECKOUT_ as an ES module.
4
+
5
+ The front-end cashier sdk can be integrated once to quickly access payment methods around the world
6
+
7
+ ---
8
+
9
+ ## Badges
10
+
11
+ [![HiTu package][HiTu-package-image]][Hitu-package-url]
12
+ [![HiTu components][HiTu-components-image]][Hitu-components-url]
13
+ [![HiTu score][HiTu-score-image]][Hitu-score-url]
14
+ [![TNPM version][tnpm-image]][tnpm-url]
15
+ [![TNPM downloads][tnpm-downloads-image]][tnpm-url]
16
+ ![install-node 18](https://hitu.alipay.com/badge/tnpm?title=install-node&value=18)
17
+ 到海兔查看「@alipay/ams-checkout 的 [包信息][tnpm-url]、[产物预览][tnpm-files-url]、[依赖信息][tnpm-deps-url]、[历史版本][tnpm-versions-url]」
18
+
19
+ [HiTu-package-image]: https://hitutwa.antgroup-inc.cn/badge/tnpm?title=HiTu&value=@alipay/ams-checkout
20
+ [HiTu-package-url]: https://hitutwa.antgroup-inc.cn/packages/@alipay/ams-checkout
21
+ [HiTu-components-image]: https://hitutwa.antgroup-inc.cn/badge/tnpm?package=@alipay/ams-checkout&type=components
22
+ [HiTu-components-url]: https://hitutwa.antgroup-inc.cn/packages/@alipay/ams-checkout/components
23
+ [HiTu-score-image]: https://hitutwa.antgroup-inc.cn/badge/tnpm?package=@alipay/ams-checkout&type=score
24
+ [HiTu-score-url]: https://hitutwa.antgroup-inc.cn/packages/@alipay/ams-checkout
25
+ [tnpm-image]: https://hitutwa.antgroup-inc.cn/badge/v/@alipay/ams-checkout
26
+ [tnpm-downloads-image]: https://hitutwa.antgroup-inc.cn/badge/tnpm?package=@alipay/ams-checkout
27
+ [tnpm-url]: https://hitu.antgroup-inc.cn/package/@alipay/ams-checkout
28
+ [tnpm-files-url]: https://hitu.antgroup-inc.cn/package/@alipay/ams-checkout/files
29
+ [tnpm-deps-url]: https://hitu.antgroup-inc.cn/package/@alipay/ams-checkout/deps
30
+ [tnpm-versions-url]: https://hitu.antgroup-inc.cn/package/@alipay/ams-checkout/versions
31
+
32
+ --------------------
33
+
34
+ ## Features
35
+
36
+ - Efficient payment method rendering and high quality UI.
37
+ - Written in TypeScript with complete define types.
38
+
39
+ ## Installation
40
+
41
+ Use `npm` to install the @alipay/ams-checkout module:
42
+
43
+ ```sh
44
+ npm install @alipay/ams-checkout
45
+ ```
46
+
47
+ ## Usage
48
+
49
+ ### `@alipay/ams-checkout`
50
+
51
+ ---
52
+
53
+ # Legal Disclaimer
54
+
55
+ - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, and/or distribute the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
56
+
57
+ 1. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE; and
58
+ 2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.