@alipay/ams-checkout 1.25.2 → 1.27.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 (55) hide show
  1. package/dist/umd/ams-checkout.min.js +1 -1
  2. package/esm/component/channel.js +1 -1
  3. package/esm/component/component.popup.style.d.ts +2 -0
  4. package/esm/component/component.popup.style.js +15 -2
  5. package/esm/config/index.d.ts +7 -7
  6. package/esm/config/index.js +7 -7
  7. package/esm/constant/index.d.ts +4 -0
  8. package/esm/constant/index.js +4 -0
  9. package/esm/core/bus/index.d.ts +3 -3
  10. package/esm/core/bus/index.js +14 -14
  11. package/esm/core/component/appPreloadProcessing.js +2 -2
  12. package/esm/core/component/ckp/index.js +6 -3
  13. package/esm/core/component/element/index.js +5 -4
  14. package/esm/core/component/element/type.d.ts +3 -2
  15. package/esm/core/component/element/type.js +1 -0
  16. package/esm/core/component/index.js +6 -10
  17. package/esm/core/instance/index.js +3 -3
  18. package/esm/foundation/core/index.d.ts +1 -0
  19. package/esm/foundation/core/index.js +25 -12
  20. package/esm/foundation/product-processor/easysafepay/index.js +17 -16
  21. package/esm/foundation/service/api-bus/busManager.d.ts +3 -3
  22. package/esm/foundation/service/api-bus/busManager.js +14 -14
  23. package/esm/foundation/service/container/index.d.ts +2 -0
  24. package/esm/foundation/service/container/index.js +31 -1
  25. package/esm/foundation/service/event-center.d.ts +2 -2
  26. package/esm/foundation/service/event-center.js +9 -9
  27. package/esm/foundation/service/log/index.d.ts +2 -2
  28. package/esm/foundation/service/log/index.js +23 -8
  29. package/esm/foundation/service/log/keys.d.ts +13 -0
  30. package/esm/foundation/service/log/keys.js +103 -0
  31. package/esm/foundation/service/log/processor.d.ts +9 -0
  32. package/esm/foundation/service/log/processor.js +148 -0
  33. package/esm/foundation/service/log/types.d.ts +1 -1
  34. package/esm/foundation/service/requester/requester.js +3 -0
  35. package/esm/foundation/service/security/index.js +6 -8
  36. package/esm/foundation/utils/redirect_utils.js +1 -2
  37. package/esm/index.js +1 -1
  38. package/esm/plugin/applepay/component.js +10 -8
  39. package/esm/plugin/applepay/index.js +10 -6
  40. package/esm/plugin/applepay/service.js +24 -16
  41. package/esm/plugin/component/cashierApp.js +3 -3
  42. package/esm/plugin/component/channel.js +1 -1
  43. package/esm/plugin/component/component.popup.style.d.ts +8 -0
  44. package/esm/plugin/component/component.popup.style.js +22 -2
  45. package/esm/plugin/component/index.d.ts +2 -0
  46. package/esm/plugin/component/index.js +66 -27
  47. package/esm/plugin/paypal/index.js +1 -1
  48. package/esm/service/index.js +4 -2
  49. package/esm/util/getBackScheme.js +1 -2
  50. package/esm/util/index.js +4 -8
  51. package/esm/util/logger.d.ts +3 -3
  52. package/esm/util/logger.js +49 -13
  53. package/esm/util/spm-map.d.ts +172 -0
  54. package/esm/util/spm-map.js +172 -0
  55. package/package.json +1 -1
@@ -0,0 +1,172 @@
1
+ export var SPM_MAP = {
2
+ sdk_error_runtime_error: 'a3753.b101271.c388188.d512342',
3
+ sdk_event_sdkQuery_failed: 'a3753.b101271.c388188.d512343',
4
+ container_error_error_insert_js: 'a3753.b101271.c388188.d512344',
5
+ event_important_error: 'a3753.b101271.c388188.d512345',
6
+ sdk_error_parameter: 'a3753.b101271.c388188.d512346',
7
+ sdk_event_submitPay_failed: 'a3753.b101271.c388188.d512347',
8
+ sdk_event_destroyComponent: 'a3753.b101271.c388189.d512349',
9
+ container_error_page_load_failed: 'a3753.b101271.c388189.d512350',
10
+ sdk_event_eventCallback: 'a3753.b101271.c388189.d512353',
11
+ iap_net_error: 'a3753.b101271.c388189.d512352',
12
+ sdk_event_event_callback: 'a3753.b101271.c388189.d512353',
13
+ sdk_event_renderComponent: 'a3753.b101271.c388189.d512354',
14
+ sdk_event_call_url_success: 'a3753.b101271.c388189.d512355',
15
+ sdk_event_web_app_timeout: 'a3753.b101271.c388189.d512356',
16
+ container_error_jsapi_call: 'a3753.b101271.c388189.d512357',
17
+ sdk_event_appUpgradeInfo: 'a3753.b101271.c388189.d512358',
18
+ sdk_event_webAppOnLaunch: 'a3753.b101271.c388189.d512359',
19
+ sdk_event_createComponent: 'a3753.b101271.c388189.d512360',
20
+ container_error_insert_js: 'a3753.b101271.c388189.d512361',
21
+ container_error_error_jsapi_call: 'a3753.b101271.c388189.d512362',
22
+ sdk_error_receive_message_from_web: 'a3753.b101271.c388189.d512363',
23
+ sdk_error_securitySdkGetCodeFailed: 'a3753.b101271.c388189.d512369',
24
+ sdk_error_securitySdkGetTokenFailed: 'a3753.b101271.c388189.d513035',
25
+ sdk_error_securitySdkInitFailed: 'a3753.b101271.c388193.d513045',
26
+ sdk_error_caught_exception_in_callback: 'a3753.b101271.c388189.d513207',
27
+ sdk_error_call_url_failed: 'a3753.b101271.c388189.d513050',
28
+ sdk_event_webAppTimeout: 'a3753.b101271.c388189.d512356',
29
+ sdk_error_getGaidFailed: 'a3753.b101271.c388193.d513038',
30
+ sdk_error_securitySdkInitTokenFailed: 'a3753.b101271.c388193.d513044',
31
+ sdk_event_mount_element: 'a3753.b101271.c388193.d513193',
32
+ container_error_error_invalid_param: 'a3753.b101271.c388193.d513220',
33
+ container_error_error_set_ua_failed: 'a3753.b101271.c388193.d513221',
34
+ sdk_event_onAddressResult: 'a3753.b101271.c388193.d513194',
35
+ sdk_event_onAbnormalEventName: 'a3753.b101271.c388193.d513345',
36
+ event_important_log: 'a3753.b101271.c388193.d512370',
37
+ sdk_event_sdkQueryEnd: 'a3753.b101271.c388193.d512371',
38
+ container_event_manifest_load_start: 'a3753.b101271.c388193.d512372',
39
+ sdk_event_api_preheat: 'a3753.b101271.c388193.d512373',
40
+ container_event_manifest_load_complete: 'a3753.b101271.c388193.d512374',
41
+ sdk_event_apiSubmit: 'a3753.b101271.c388193.d512375',
42
+ sdk_event_securitySdkGetCodeSuccess: 'a3753.b101271.c388193.d512376',
43
+ sdk_event_securitySdkInitSuccess: 'a3753.b101271.c388193.d512377',
44
+ container_event_start_load: 'a3753.b101271.c388193.d512378',
45
+ sdk_event_getRemoteConfigStart: 'a3753.b101271.c388193.d512379',
46
+ container_event_webViewOnPageFinished: 'a3753.b101271.c388193.d512419',
47
+ container_event_page_load_success: 'a3753.b101271.c388193.d512420',
48
+ sdk_event_pre_init: 'a3753.b101271.c388193.d512421',
49
+ sdk_event_submitPay: 'a3753.b101271.c388193.d512422',
50
+ sdk_event_submitPayEnd: 'a3753.b101271.c388193.d512423',
51
+ container_stop_event_loop: 'a3753.b101271.c388193.d512424',
52
+ iap_net_start: 'a3753.b101271.c388193.d512425',
53
+ sdk_event_securitySdkPreInitSuccess: 'a3753.b101271.c388193.d512426',
54
+ sdk_event_securitySdkPreInit: 'a3753.b101271.c388193.d512427',
55
+ sdk_event_important_event: 'a3753.b101271.c388193.d512428',
56
+ sdk_event_accelerateInfo: 'a3753.b101271.c388193.d512429',
57
+ container_event_manifest_res_complete: 'a3753.b101271.c388193.d512430',
58
+ container_event_manifest_res_start: 'a3753.b101271.c388193.d512431',
59
+ sdk_event_dismissWindowCloseCancel: 'a3753.b101271.c388193.d512432',
60
+ sdk_event_jsBridgeCall_httpRequestStart: 'a3753.b101271.c388193.d512433',
61
+ sdk_event_getGaidSuccess: 'a3753.b101271.c388193.d512434',
62
+ sdk_event_securitySdkInit: 'a3753.b101271.c388193.d512435',
63
+ sdk_event_getRemoteLanguageResult: 'a3753.b101271.c388193.d513176',
64
+ sdk_event_getRemoteLanguageStart: 'a3753.b101271.c388193.d513175',
65
+ sdk_event_handleSDKPaymentResult: 'a3753.b101271.c388193.d512436',
66
+ sdk_event_handleSDKPaymentFail: 'a3753.b101271.c388193.d513172',
67
+ sdk_event_sdkQuery: 'a3753.b101271.c388193.d512437',
68
+ sdk_event_handleSDKPaymentStart: 'a3753.b101271.c388193.d512438',
69
+ sdk_event_securitySdkGetTokenSuccess: 'a3753.b101271.c388193.d512439',
70
+ sdk_event_api_onDestroy: 'a3753.b101271.c388193.d512440',
71
+ container_load_failed: 'a3753.b101271.c388193.d512441',
72
+ sdk_event_kycAppPreLoadStart: 'a3753.b101271.c388193.d513154',
73
+ sdk_event_apiOnDestroy: 'a3753.b101271.c388193.d512442',
74
+ sdk_event_getRemoteConfigResult: 'a3753.b101271.c388193.d512443',
75
+ iap_net_result: 'a3753.b101271.c388193.d512444',
76
+ sdk_event_popupWindowCloseButtonClick: 'a3753.b101271.c388193.d512445',
77
+ container_error_resourceLoadFailed: 'a3753.b101271.c388193.d512446',
78
+ container_event_startPreRenderUrl: 'a3753.b101271.c388193.d512447',
79
+ sdk_event_webAppPreLoadStart: 'a3753.b101271.c388193.d512448',
80
+ sdk_event_importantEvent: 'a3753.b101271.c388193.d512449',
81
+ container_error_registerJSAPIPlugin: 'a3753.b101271.c388193.d512531',
82
+ sdk_event_afterEventCallback: 'a3753.b101271.c388217.d513210',
83
+ sdk_event_createPayment: 'a3753.b101271.c388217.d513074',
84
+ sdk_event_sendMessageToWeb: 'a3753.b101271.c388217.d512452',
85
+ sdk_error_appHeartBeatTimeout: 'a3753.b101271.c388217.d512453',
86
+ container_event_jSEngineEvaluateJavascript: 'a3753.b101271.c388217.d512454',
87
+ container_event_jSEngineLoadJavascript: 'a3753.b101271.c388217.d512455',
88
+ sdk_event_receive_message_from_web: 'a3753.b101271.c388217.d512456',
89
+ sdk_event_receiveMessageFromWeb: 'a3753.b101271.c388217.d512457',
90
+ sdk_event_monitorFlushReport: 'a3753.b101271.c388217.d512458',
91
+ container_event_page_pv: 'a3753.b101271.c388217.d512459',
92
+ container_event_override_url_loading: 'a3753.b101271.c388217.d513223',
93
+ sdk_event_dismissWindowCloseConfirm: 'a3753.b101271.c388217.d512460',
94
+ container_load_success: 'a3753.b101271.c388217.d512461',
95
+ container_event_page_start: 'a3753.b101271.c388217.d512462',
96
+ sdk_event_webAppStartLoad: 'a3753.b101271.c388217.d512463',
97
+ container_event_startPreLoadUrl: 'a3753.b101271.c388217.d512464',
98
+ container_event_jsSEngineStart: 'a3753.b101271.c388217.d512465',
99
+ container_event_jSEngineDestroy: 'a3753.b101271.c388193.d512546',
100
+ sdk_event_send_message_to_web: 'a3753.b101271.c388217.d512466',
101
+ container_event_importantEvent: 'a3753.b101271.c388217.d512467',
102
+ sdk_event_monitorCrashTrackInit: 'a3753.b101271.c388217.d512468',
103
+ container_event_stop_event_loop: 'a3753.b101271.c388217.d512469',
104
+ sdk_event_requestAccelerateInfo: 'a3753.b101271.c388217.d513147',
105
+ native_rpc_performance: 'a3753.b101271.c388217.d513218',
106
+ container_event_jSEngineEvaluateJavascriptCallback: 'a3753.b101271.c388217.d512585',
107
+ container_event_jSEngineRegisterJsapi: 'a3753.b101271.c388217.d512586',
108
+ jSEngineEvaluateJavascriptConvertError: 'a3753.b101271.c388217.d512592',
109
+ sdk_event_security_unneeded_scenarios: 'a3753.b101271.c388217.d512595',
110
+ container_event_launch: 'a3753.b101271.c388217.d513256',
111
+ event_jsapi_call_start: 'a3753.b101271.c388217.d514734',
112
+ event_jsapi_call_end: 'a3753.b101271.c388217.d514735',
113
+ sdk_event_call_url_start: 'a3753.b101271.c388189.d515011',
114
+ sdk_event_onAbnormalKeys: 'a3753.b101271.c388193.d513391',
115
+ sdk_event_espBeforePay: 'a3753.b101271.c388193.d514078',
116
+ sdk_event_busPublishMessage: 'a3753.b101271.c388217.d515030',
117
+ sdk_event_busIsSubscribe: 'a3753.b101271.c388217.d515031',
118
+ sdk_event_busSubscribe: 'a3753.b101271.c388217.d515032',
119
+ NEW_AMSSDK_BY_MECHANT: 'a3753.b101271.c388193.d512449',
120
+ sdk_event_busClear: 'a3753.b101271.c388193.d518374',
121
+ sdk_event_busAddInterceptor: 'a3753.b101271.c388193.d518374',
122
+ sdk_error_securitySdkInitTimeout: 'a3753.b101271.c388193.d513045',
123
+ sdk_error_busPublishNoResult: 'a3753.b101271.c388193.d518374',
124
+ sdk_event_busPublishCallback: 'a3753.b101271.c388193.d518374',
125
+ sdk_error_busPublishError: 'a3753.b101271.c388189.d518375',
126
+ sdk_error_busPublishUnsubscribeError: 'a3753.b101271.c388189.d518375',
127
+ sdk_event_busUnsubscribe: 'a3753.b101271.c388193.d518374',
128
+ onBusPublishException: 'a3753.b101271.c388189.d518375',
129
+ sdk_event_apiGetValue: 'a3753.b101271.c388193.d512449',
130
+ load_channel_sdk_start: 'a3753.b101271.c388193.d512449',
131
+ preload_match: 'a3753.b101271.c388193.d512449',
132
+ preload_no_match: 'a3753.b101271.c388188.d512345',
133
+ canMakePayments_error: 'a3753.b101271.c388188.d512345',
134
+ performance_optimization_clearPreloadIframe: 'a3753.b101271.c388193.d512449',
135
+ performance_optimization_clearPreloadIframe_timeout: 'a3753.b101271.c388188.d512345',
136
+ sdk_event_call_url_failed: 'a3753.b101271.c388189.d513050',
137
+ sdk_event_applePaymentResult: 'a3753.b101271.c388193.d518376',
138
+ submitPayStatus: 'a3753.b101271.c388193.d518376',
139
+ sdk_event_appleAvailable: 'a3753.b101271.c388193.d518376',
140
+ sdk_event_appleCreateComponent: 'a3753.b101271.c388193.d518376',
141
+ sdk_event_appleShowPaymentSheet: 'a3753.b101271.c388193.d518376',
142
+ sdk_event_appleSubmitToken: 'a3753.b101271.c388193.d518376',
143
+ sdk_event_appleDestroyComponent: 'a3753.b101271.c388193.d518376',
144
+ paypal_payment_failed: 'a3753.b101271.c388189.d518378',
145
+ paypal_payment_approved: 'a3753.b101271.c388193.d518383',
146
+ paypal_payment_cancelled: 'a3753.b101271.c388193.d518383',
147
+ sdk_event_clean_component: 'a3753.b101271.c388193.d518383',
148
+ load_item_sdk_start: 'a3753.b101271.c388193.d512449',
149
+ load_item_sdk_end: 'a3753.b101271.c388193.d512449',
150
+ performance_optimization_get_previousChannel_error: 'a3753.b101271.c388188.d512345',
151
+ performance_optimization_channelType_error: 'a3753.b101271.c388188.d512345',
152
+ sdk_error_before_submit: 'a3753.b101271.c388188.d512345',
153
+ sessionDataNull: 'a3753.b101271.c388189.d518377',
154
+ 'appple runtime excepiton': 'a3753.b101271.c388189.d518377',
155
+ sdk_error_created_app_process_failed: 'a3753.b101271.c388188.d512345',
156
+ sdk_error_web_app_timeout: 'a3753.b101271.c388188.d512345',
157
+ performance_optimization_preload: 'a3753.b101271.c388193.d512449',
158
+ performance_optimization_preload_path_error: 'a3753.b101271.c388188.d512345',
159
+ sdk_error_created_app_failed: 'a3753.b101271.c388188.d512345',
160
+ sdk_error_create_pop_up: 'a3753.b101271.c388188.d512345',
161
+ button_render_failed: 'a3753.b101271.c388189.d518378',
162
+ paypal_payment_loadSDK_failed: 'a3753.b101271.c388189.d518378',
163
+ load_item_sdk_error: 'a3753.b101271.c388188.d512345',
164
+ load_item_sdk_timeout: 'a3753.b101271.c388188.d512345',
165
+ MerchantValidationError: 'a3753.b101271.c388189.d518377',
166
+ PaymentAuthorizedError: 'a3753.b101271.c388189.d518377',
167
+ 'ApplePaySession is only support in Safari': 'a3753.b101271.c388189.d518377',
168
+ 'Abnormal params paymentSessionFactor': 'a3753.b101271.c388189.d518377',
169
+ 'Abnormal params recurringInfo': 'a3753.b101271.c388189.d518377',
170
+ 'Payment processing but user dismissed the sheet': 'a3753.b101271.c388189.d518377',
171
+ 'User dismissed the sheet': 'a3753.b101271.c388189.d518377'
172
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "1.25.2",
3
+ "version": "1.27.0",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",