@alipay/ams-checkout 1.38.0 → 1.40.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 (34) hide show
  1. package/dist/umd/ams-checkout.min.js +1 -1
  2. package/esm/component/component.inline.style.js +1 -1
  3. package/esm/component/popupWindow.style.d.ts +4 -1
  4. package/esm/component/popupWindow.style.js +33 -1
  5. package/esm/config/index.d.ts +7 -7
  6. package/esm/config/index.js +7 -7
  7. package/esm/constant/index.d.ts +7 -0
  8. package/esm/constant/index.js +7 -0
  9. package/esm/core/component/element/elementController/index.js +22 -14
  10. package/esm/core/component/element/type.d.ts +29 -15
  11. package/esm/core/component/element/type.js +20 -12
  12. package/esm/core/component/index.d.ts +1 -1
  13. package/esm/foundation/product-processor/autoDebit/deps.d.ts +14 -0
  14. package/esm/foundation/product-processor/autoDebit/deps.js +12 -0
  15. package/esm/foundation/product-processor/autoDebit/index.d.ts +48 -0
  16. package/esm/foundation/product-processor/autoDebit/index.js +466 -0
  17. package/esm/foundation/service/container/index.d.ts +2 -0
  18. package/esm/foundation/service/container/index.js +48 -24
  19. package/esm/foundation/service/container/popup.d.ts +9 -6
  20. package/esm/foundation/service/container/popup.js +3 -1
  21. package/esm/foundation/service/requester/requester.js +2 -2
  22. package/esm/foundation/utils/web_app_url_utils.d.ts +3 -3
  23. package/esm/foundation/utils/web_app_url_utils.js +15 -11
  24. package/esm/index.d.ts +7 -4
  25. package/esm/index.js +96 -47
  26. package/esm/plugin/component/cashierApp.js +2 -2
  27. package/esm/request/index.js +2 -2
  28. package/esm/types/index.d.ts +9 -2
  29. package/esm/types/index.js +2 -1
  30. package/esm/util/index.d.ts +8 -1
  31. package/esm/util/index.js +31 -3
  32. package/esm/util/spm-map.d.ts +18 -4
  33. package/esm/util/spm-map.js +20 -6
  34. package/package.json +1 -1
@@ -1,4 +1,22 @@
1
- export var SPM_MAP = {
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ // 埋点维护地址: https://log.alipay.com/index_v4.htm/home/common?spma=a3753&tabKey=log
8
+
9
+ export var ELEMENT_SPM_MAP = {
10
+ sdk_event_mount_element: 'a3753.b101271.c388193.d513193',
11
+ sdk_element_create: 'a3753.b101271.c386688',
12
+ sdk_element_mount_fail: 'a3753.b101271.c386691',
13
+ sdk_element_mount_start: 'a3753.b101271.c386690',
14
+ multiple_instance_error: 'a3753.b101271.c403950',
15
+ auto_apple_pay_start: 'a3753.b107385.c398110',
16
+ auto_apple_pay_failed: 'a3753.b107385.c398111',
17
+ auto_apple_pay_success: 'a3753.b107385.c398112'
18
+ };
19
+ export var SPM_MAP = _objectSpread({
2
20
  sdk_error_runtime_error: 'a3753.b101271.c388188.d512342',
3
21
  sdk_event_sdkQuery_failed: 'a3753.b101271.c388188.d512343',
4
22
  container_error_error_insert_js: 'a3753.b101271.c388188.d512344',
@@ -28,7 +46,6 @@ export var SPM_MAP = {
28
46
  sdk_event_webAppTimeout: 'a3753.b101271.c388189.d512356',
29
47
  sdk_error_getGaidFailed: 'a3753.b101271.c388193.d513038',
30
48
  sdk_error_securitySdkInitTokenFailed: 'a3753.b101271.c388193.d513044',
31
- sdk_event_mount_element: 'a3753.b101271.c388193.d513193',
32
49
  container_error_error_invalid_param: 'a3753.b101271.c388193.d513220',
33
50
  container_error_error_set_ua_failed: 'a3753.b101271.c388193.d513221',
34
51
  sdk_event_onAddressResult: 'a3753.b101271.c388193.d513194',
@@ -164,12 +181,9 @@ export var SPM_MAP = {
164
181
  load_item_sdk_timeout: 'a3753.b101271.c388188.d512345',
165
182
  MerchantValidationError: 'a3753.b101271.c388189.d518377',
166
183
  PaymentAuthorizedError: 'a3753.b101271.c388189.d518377',
167
- sdk_element_create: 'a3753.b101271.c386688',
168
- sdk_element_mount_fail: 'a3753.b101271.c386691',
169
- sdk_element_mount_start: 'a3753.b101271.c386690',
170
184
  'ApplePaySession is only support in Safari': 'a3753.b101271.c388189.d518377',
171
185
  'Abnormal params paymentSessionFactor': 'a3753.b101271.c388189.d518377',
172
186
  'Abnormal params recurringInfo': 'a3753.b101271.c388189.d518377',
173
187
  'Payment processing but user dismissed the sheet': 'a3753.b101271.c388189.d518377',
174
188
  'User dismissed the sheet': 'a3753.b101271.c388189.d518377'
175
- };
189
+ }, ELEMENT_SPM_MAP);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "1.38.0",
3
+ "version": "1.40.0",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",