@alipay/ams-checkout 0.0.1790136525-dev.2 → 0.0.1790764515-dev.1

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 (176) hide show
  1. package/ams-checkout.js +3 -3
  2. package/dist/ams-checkout.min.js +1 -1
  3. package/dist/ams-checkout.min.js.map +1 -1
  4. package/esm/config/index.js +1 -1
  5. package/esm/core/component/element/elementProcessor/convertPaymentMethods.d.ts +0 -1
  6. package/esm/core/component/element/elementProcessor/convertPaymentMethods.js +2 -4
  7. package/esm/core/component/element/modernElementController/index.js +2 -2
  8. package/esm/core/component/element/type.d.ts +0 -4
  9. package/esm/modern/{modern/index.d.ts → index.d.ts} +1 -1
  10. package/esm/modern/index.js +1 -1
  11. package/esm/modern/tools.js +1 -1
  12. package/esm/tsdoc-metadata.json +1 -1
  13. package/esm/types/index.d.ts +0 -6
  14. package/esm/util/logger.js +1 -1
  15. package/package.json +2 -3
  16. package/types.d.ts +5 -55
  17. package/types.untrimmed.d.ts +5 -73
  18. package/esm/modern/component/channel.d.ts +0 -21
  19. package/esm/modern/component/component.inline.style.d.ts +0 -10
  20. package/esm/modern/component/component.popup.style.d.ts +0 -26
  21. package/esm/modern/component/popupWindow.style.d.ts +0 -27
  22. package/esm/modern/config/index.d.ts +0 -23
  23. package/esm/modern/config/request.d.ts +0 -21
  24. package/esm/modern/constant/auto-debit.d.ts +0 -12
  25. package/esm/modern/constant/easysafepay.d.ts +0 -16
  26. package/esm/modern/constant/element.d.ts +0 -27
  27. package/esm/modern/constant/index.d.ts +0 -331
  28. package/esm/modern/core/bus/ability/callback.d.ts +0 -9
  29. package/esm/modern/core/bus/ability/security.d.ts +0 -10
  30. package/esm/modern/core/bus/ability/tracker.d.ts +0 -9
  31. package/esm/modern/core/bus/index.d.ts +0 -125
  32. package/esm/modern/core/bus/interface.d.ts +0 -36
  33. package/esm/modern/core/component/address.d.ts +0 -8
  34. package/esm/modern/core/component/appPreloadProcessing.d.ts +0 -1
  35. package/esm/modern/core/component/ckp/index.d.ts +0 -29
  36. package/esm/modern/core/component/element/EventCenter/index.d.ts +0 -41
  37. package/esm/modern/core/component/element/config.d.ts +0 -10
  38. package/esm/modern/core/component/element/elementContainerService/containerService.d.ts +0 -34
  39. package/esm/modern/core/component/element/elementContainerService/index.d.ts +0 -20
  40. package/esm/modern/core/component/element/elementController/index.d.ts +0 -54
  41. package/esm/modern/core/component/element/elementProcessor/addressProcessor.d.ts +0 -20
  42. package/esm/modern/core/component/element/elementProcessor/authProcessor.d.ts +0 -20
  43. package/esm/modern/core/component/element/elementProcessor/baseElementProcessor.d.ts +0 -42
  44. package/esm/modern/core/component/element/elementProcessor/convertPaymentMethods.d.ts +0 -23
  45. package/esm/modern/core/component/element/elementProcessor/paymentProcessor.d.ts +0 -37
  46. package/esm/modern/core/component/element/index.d.ts +0 -17
  47. package/esm/modern/core/component/element/mock.d.ts +0 -10
  48. package/esm/modern/core/component/element/modernElementController/adapter.d.ts +0 -19
  49. package/esm/modern/core/component/element/modernElementController/index.d.ts +0 -172
  50. package/esm/modern/core/component/element/type.d.ts +0 -590
  51. package/esm/modern/core/component/element/util.d.ts +0 -93
  52. package/esm/modern/core/component/index.d.ts +0 -58
  53. package/esm/modern/core/instance/index.d.ts +0 -97
  54. package/esm/modern/core/utils/connectConfig.d.ts +0 -11
  55. package/esm/modern/foundation/core/index.d.ts +0 -36
  56. package/esm/modern/foundation/index.d.ts +0 -93
  57. package/esm/modern/foundation/product-processor/autoDebit/deps.d.ts +0 -14
  58. package/esm/modern/foundation/product-processor/autoDebit/index.d.ts +0 -48
  59. package/esm/modern/foundation/product-processor/easysafepay/deps.d.ts +0 -20
  60. package/esm/modern/foundation/product-processor/easysafepay/index.d.ts +0 -29
  61. package/esm/modern/foundation/product-processor/element/index.d.ts +0 -7
  62. package/esm/modern/foundation/service/api-bus/ability/globalData.d.ts +0 -10
  63. package/esm/modern/foundation/service/api-bus/ability/request.d.ts +0 -10
  64. package/esm/modern/foundation/service/api-bus/ability/security.d.ts +0 -12
  65. package/esm/modern/foundation/service/api-bus/ability/tracker.d.ts +0 -9
  66. package/esm/modern/foundation/service/api-bus/busManager.d.ts +0 -127
  67. package/esm/modern/foundation/service/api-bus/index.d.ts +0 -20
  68. package/esm/modern/foundation/service/api-bus/interface.d.ts +0 -48
  69. package/esm/modern/foundation/service/container/index.d.ts +0 -42
  70. package/esm/modern/foundation/service/container/popup.d.ts +0 -31
  71. package/esm/modern/foundation/service/container/utils.d.ts +0 -7
  72. package/esm/modern/foundation/service/event-center.d.ts +0 -82
  73. package/esm/modern/foundation/service/global-data/index.d.ts +0 -11
  74. package/esm/modern/foundation/service/index.d.ts +0 -19
  75. package/esm/modern/foundation/service/log/index.d.ts +0 -44
  76. package/esm/modern/foundation/service/log/keys.d.ts +0 -13
  77. package/esm/modern/foundation/service/log/processor.d.ts +0 -9
  78. package/esm/modern/foundation/service/log/types.d.ts +0 -33
  79. package/esm/modern/foundation/service/requester/deps.d.ts +0 -17
  80. package/esm/modern/foundation/service/requester/requester.d.ts +0 -22
  81. package/esm/modern/foundation/service/security/index.d.ts +0 -33
  82. package/esm/modern/foundation/service/security/security.d.ts +0 -54
  83. package/esm/modern/foundation/utils/gray_scale_utils.d.ts +0 -7
  84. package/esm/modern/foundation/utils/payment_context_utils.d.ts +0 -13
  85. package/esm/modern/foundation/utils/payment_product_utils.d.ts +0 -13
  86. package/esm/modern/foundation/utils/preload_helper.d.ts +0 -24
  87. package/esm/modern/foundation/utils/redirect_utils.d.ts +0 -11
  88. package/esm/modern/foundation/utils/system_events.d.ts +0 -4
  89. package/esm/modern/foundation/utils/web_app_url_utils.d.ts +0 -114
  90. package/esm/modern/loader/constant.d.ts +0 -36
  91. package/esm/modern/loader/utils/proxyPerformance.d.ts +0 -20
  92. package/esm/modern/main.d.ts +0 -54
  93. package/esm/modern/modern/loadAntomTracker.d.ts +0 -7
  94. package/esm/modern/modern/preload/antomManifestAdapter.d.ts +0 -11
  95. package/esm/modern/modern/preload/config.d.ts +0 -10
  96. package/esm/modern/modern/preload/gatewayPreconnection.d.ts +0 -53
  97. package/esm/modern/modern/preload/preloadAntomElements.d.ts +0 -12
  98. package/esm/modern/modern/preload/startAntomPreload.d.ts +0 -2
  99. package/esm/modern/modern/sdk/applepay-core/ApplePayHostService.d.ts +0 -102
  100. package/esm/modern/modern/sdk/elements/CVVElement.d.ts +0 -144
  101. package/esm/modern/modern/sdk/elements/PaymentElement.d.ts +0 -204
  102. package/esm/modern/modern/sdk/elements/appearanceRules.d.ts +0 -59
  103. package/esm/modern/modern/sdk/elements/appearanceRulesDefaults.d.ts +0 -2
  104. package/esm/modern/modern/sdk/eventsMap.d.ts +0 -135
  105. package/esm/modern/modern/sdk/oneapi/iexpfront/PaymentSessionService.d.ts +0 -69
  106. package/esm/modern/modern/sdk/oneapi/iexpfront/definitions.d.ts +0 -5346
  107. package/esm/modern/modern/sdk/oneapi/iexpfront/preConnection.d.ts +0 -6
  108. package/esm/modern/modern/sdk/stageName.d.ts +0 -3
  109. package/esm/modern/modern/sdk/tools/awaitWrap.d.ts +0 -14
  110. package/esm/modern/modern/sdk/tools/buildPageUrl.d.ts +0 -4
  111. package/esm/modern/modern/sdk/tools/checkSessionData.d.ts +0 -1
  112. package/esm/modern/modern/sdk/tools/expressElement/applePay.d.ts +0 -9
  113. package/esm/modern/modern/sdk/tools/expressElement/applePayHostToken.d.ts +0 -32
  114. package/esm/modern/modern/sdk/tools/expressElement/types.d.ts +0 -277
  115. package/esm/modern/modern/sdk/tools/getDevReqConfig.d.ts +0 -2
  116. package/esm/modern/modern/sdk/tools/getLocaleFromRenderData.d.ts +0 -6
  117. package/esm/modern/modern/sdk/tools/getMetaData.d.ts +0 -126
  118. package/esm/modern/modern/sdk/tools/modalMessageMonitor.d.ts +0 -41
  119. package/esm/modern/modern/sdk/tools/openModal.d.ts +0 -22
  120. package/esm/modern/modern/sdk/tools/paymentElement/applePayHostToken.d.ts +0 -38
  121. package/esm/modern/modern/sdk/tools/paymentElement/googlePayHostToken.d.ts +0 -38
  122. package/esm/modern/modern/sdk/tools/paymentElement/tracker.d.ts +0 -16
  123. package/esm/modern/modern/sdk/tools/paymentElement/walletHostListeners.d.ts +0 -19
  124. package/esm/modern/modern/sdk/tools/preloadTracking.d.ts +0 -5
  125. package/esm/modern/modern/sdk/tools/showToast.d.ts +0 -33
  126. package/esm/modern/modern/sdk/tools/validatePaymentAmount.d.ts +0 -19
  127. package/esm/modern/modern/sdk/tracking/elementTracker.d.ts +0 -65
  128. package/esm/modern/modern/sdk/types.d.ts +0 -310
  129. package/esm/modern/modern/tools.d.ts +0 -26
  130. package/esm/modern/plugin/applepay/component.d.ts +0 -50
  131. package/esm/modern/plugin/applepay/index.d.ts +0 -17
  132. package/esm/modern/plugin/applepay/interface.d.ts +0 -161
  133. package/esm/modern/plugin/applepay/service.d.ts +0 -54
  134. package/esm/modern/plugin/component/cashierApp.d.ts +0 -38
  135. package/esm/modern/plugin/component/channel.d.ts +0 -73
  136. package/esm/modern/plugin/component/component.inline.style.d.ts +0 -10
  137. package/esm/modern/plugin/component/component.popup.style.d.ts +0 -25
  138. package/esm/modern/plugin/component/index.d.ts +0 -133
  139. package/esm/modern/plugin/component/popupWindow.style.d.ts +0 -11
  140. package/esm/modern/plugin/const.d.ts +0 -2
  141. package/esm/modern/plugin/payment-element/utils.d.ts +0 -2
  142. package/esm/modern/plugin/paypal/index.d.ts +0 -20
  143. package/esm/modern/plugin/type.d.ts +0 -34
  144. package/esm/modern/plugin/utils.d.ts +0 -6
  145. package/esm/modern/preload/antomManifestAdapter.d.ts +0 -11
  146. package/esm/modern/preload/antomManifestAdapter.js +0 -116
  147. package/esm/modern/preload/config.d.ts +0 -10
  148. package/esm/modern/preload/config.js +0 -46
  149. package/esm/modern/preload/gatewayPreconnection.d.ts +0 -53
  150. package/esm/modern/preload/gatewayPreconnection.js +0 -213
  151. package/esm/modern/preload/preloadAntomElements.d.ts +0 -12
  152. package/esm/modern/preload/preloadAntomElements.js +0 -99
  153. package/esm/modern/preload/startAntomPreload.d.ts +0 -2
  154. package/esm/modern/preload/startAntomPreload.js +0 -9
  155. package/esm/modern/request/index.d.ts +0 -9
  156. package/esm/modern/request/utils.d.ts +0 -28
  157. package/esm/modern/service/index.d.ts +0 -13
  158. package/esm/modern/types/index.d.ts +0 -862
  159. package/esm/modern/util/beforeConfirm.d.ts +0 -14
  160. package/esm/modern/util/createIframeNode.d.ts +0 -6
  161. package/esm/modern/util/debug.d.ts +0 -1
  162. package/esm/modern/util/get.d.ts +0 -25
  163. package/esm/modern/util/getBackScheme.d.ts +0 -5
  164. package/esm/modern/util/index.d.ts +0 -61
  165. package/esm/modern/util/jshield-apdid/apdid-loader.d.ts +0 -89
  166. package/esm/modern/util/jshield-apdid/index.d.ts +0 -21
  167. package/esm/modern/util/logger.d.ts +0 -67
  168. package/esm/modern/util/mock.d.ts +0 -1
  169. package/esm/modern/util/redirect.d.ts +0 -6
  170. package/esm/modern/util/security-registry.d.ts +0 -72
  171. package/esm/modern/util/security.d.ts +0 -55
  172. package/esm/modern/util/spm-map.d.ts +0 -217
  173. package/esm/modern/util/storage.d.ts +0 -2
  174. package/esm/modern/util/timezone.d.ts +0 -1
  175. package/esm/modern/util/upgrade.d.ts +0 -39
  176. package/esm/modern/util/versionCompare.d.ts +0 -15
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.59.4"
8
+ "packageVersion": "7.60.0"
9
9
  }
10
10
  ]
11
11
  }
@@ -807,12 +807,6 @@ export interface IPaymentMethod {
807
807
  category?: string;
808
808
  paymentElements?: IPaymentElement[];
809
809
  paymentMethodId?: string;
810
- /** Token 支付模式;缺失或 null 表示不支持 */
811
- supportTokenizedMode?: 'EASYSAFEPAY' | 'TOKENIZEDPAY' | null;
812
- /** Token 状态 */
813
- paymentMethodIdStatus?: 'ACTIVE' | 'INACTIVE' | null;
814
- /** 脱敏后的渠道账号 */
815
- userLoginId?: string;
816
810
  paymentMethodDetail?: {
817
811
  last4?: string;
818
812
  requireIssuerAuthentication?: string;
@@ -296,6 +296,6 @@ export var LogConfig = {
296
296
  version: 'iteration/20231021',
297
297
  mdata: {
298
298
  firstLogTime: Date.now(),
299
- sdkVersion: "0.0.1790136525-dev.2"
299
+ sdkVersion: "0.0.1790764515-dev.1"
300
300
  }
301
301
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1790136525-dev.2",
3
+ "version": "0.0.1790764515-dev.1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "exports": {
@@ -89,7 +89,6 @@
89
89
  ]
90
90
  },
91
91
  "dependencies": {
92
- "@antintl/opensdk-preload": "^1.0.0",
93
92
  "axios": "^1.3.4",
94
93
  "proxy-polyfill": "^0.3.2",
95
94
  "uuid": "^9.0.0"
@@ -141,5 +140,5 @@
141
140
  "resourceClass": "L",
142
141
  "type": "aci"
143
142
  },
144
- "marmotId": "180020050100012417"
143
+ "marmotId": "180020050100010657"
145
144
  }
package/types.d.ts CHANGED
@@ -203,13 +203,6 @@ export declare type AntomLayouts = 'tabs' | 'accordion';
203
203
 
204
204
  /* Excluded from this release type: AntomOpenModalConfig */
205
205
 
206
- export declare interface AntomPreloadConfig {
207
- /** Elements2 types the merchant expects to create after loading the SDK. */
208
- elements: AntomPreloadElement[];
209
- }
210
-
211
- export declare type AntomPreloadElement = 'payment' | 'express' | 'vaulting' | 'CVV';
212
-
213
206
  /**
214
207
  * @description The Antom main class, all uses are based on this class instance
215
208
  */
@@ -354,8 +347,8 @@ export declare const AntomSDKErrorCodes: {
354
347
  readonly ELEMENT_DEFINE_ERROR: "ELEMENT_DEFINE_ERROR";
355
348
  readonly ELEMENT_ALREADY_REGISTERED: "ELEMENT_ALREADY_REGISTERED";
356
349
  readonly CANNOT_CREATE_SAME_ELEMENT_TWICE: "CANNOT_CREATE_SAME_ELEMENT_TWICE";
357
- readonly GROUPS_ONLY_ONE_MAIN_ELEMENT: "GROUPS_ONLY_ONE_MAIN_ELEMENT";
358
- readonly GROUPS_NOT_FOUND_MAIN_ELEMENT: "GROUPS_NOT_FOUND_MAIN_ELEMENT";
350
+ readonly GROUPS_ONLY_ONE_MAIN_ELEMENT: "GROUPS_ONLY_ONE_MAIN_ELEMENT"; /** @deprecated 传入 elements 时无需重复传递,且不会覆盖 Element 的会话。 */
351
+ readonly GROUPS_NOT_FOUND_MAIN_ELEMENT: "GROUPS_NOT_FOUND_MAIN_ELEMENT"; /** 无 UI 模式必填,仅用于创建内部 CVVElement。 */
359
352
  readonly NOT_SUPPORT_ELEMENT: "NOT_SUPPORT_ELEMENT";
360
353
  readonly NOT_SUPPORT_SUBMIT: "NOT_SUPPORT_SUBMIT";
361
354
  readonly UPDATE_CONFIG_TIMEOUT: "UPDATE_CONFIG_TIMEOUT";
@@ -2338,7 +2331,6 @@ export declare interface CVVAppConfig extends BaseElementAppConfig {
2338
2331
  /* Excluded from this release type: renderData */
2339
2332
  /* Excluded from this release type: sdkVersion */
2340
2333
  /* Excluded from this release type: _requestConfig */
2341
- /* Excluded from this release type: preloadTelemetryContext */
2342
2334
  /**
2343
2335
  * @description 语言配置
2344
2336
  */
@@ -3295,7 +3287,6 @@ export declare interface ExpressAppConfig extends BaseElementAppConfig {
3295
3287
  /* Excluded from this release type: setupError */
3296
3288
  /* Excluded from this release type: locale */
3297
3289
  /* Excluded from this release type: _paypalSdkEnvironment */
3298
- /* Excluded from this release type: preloadTelemetryContext */
3299
3290
  /**
3300
3291
  * 是否运行在 Native App 的 WebView 中。
3301
3292
  * 为 true 时,跳转通过 onRedirect 事件委托给 Native 端处理。
@@ -4802,8 +4793,6 @@ export declare interface LoadAntomConfig extends Omit<BaseFactoryConfig, 'tracke
4802
4793
  * @description 环境配置,默认为prod
4803
4794
  */
4804
4795
  env?: 'sandbox' | 'prod';
4805
- /** Starts best-effort Elements2 resource preload without delaying loadAntom. */
4806
- preload?: AntomPreloadConfig;
4807
4796
  }
4808
4797
 
4809
4798
  /**
@@ -7156,13 +7145,13 @@ declare type OpenModalHandle = {
7156
7145
 
7157
7146
  declare interface OpenModalParams extends Omit<BaseOpenModalConfig, 'hideCloseWhenLoaded'> {
7158
7147
  mode: 'desktop' | 'mobile';
7159
- /** Opt-in desktop height in CSS pixels; omitted callers retain the 620px shell. */
7160
- desktopHeight?: number;
7161
7148
  loadingConfig?: {
7162
7149
  theme?: 'light' | 'dark';
7163
7150
  backgroundColor?: string;
7164
7151
  };
7165
7152
  textDirection?: 'ltr' | 'rtl';
7153
+ /** Opt-in content height synchronization. Defaults to the existing fixed modal height. */
7154
+ adaptiveHeight?: boolean;
7166
7155
  }
7167
7156
 
7168
7157
  declare class OpenSDKError<Code extends string = string> extends Error {
@@ -7381,7 +7370,6 @@ export declare interface PaymentAppConfig extends BaseElementAppConfig {
7381
7370
  /* Excluded from this release type: sdkVersion */
7382
7371
  /* Excluded from this release type: _requestConfig */
7383
7372
  /* Excluded from this release type: logMetaData */
7384
- /* Excluded from this release type: preloadTelemetryContext */
7385
7373
  /* Excluded from this release type: heightOfVisible */
7386
7374
  /**
7387
7375
  * Amount & Currency
@@ -7816,33 +7804,6 @@ declare interface PaymentMethodView {
7816
7804
  * @description 分期银行信息列表
7817
7805
  */
7818
7806
  supportIppBankList?: FrontSupportIppBank[];
7819
- /**
7820
- * @description consult 是否打标该支付方式支持代扣(tokenPay)。
7821
- *
7822
- * <p>来源 iexpprod {@code PaymentOption.supportTokenPay}(Boolean, 默认 false), 仅当 iexpfront 显式传
7823
- * {@code PaymentFactor.markSupportTokenPay=true} 时 iexpprod 才会打标。 sdkQuery 内部流转字段。
7824
- */
7825
- supportTokenPay?: boolean;
7826
- /**
7827
- * @description tokenized 模式, 取值 EASYSAFEPAY / TOKENIZEDPAY;null 或缺失表示不支持。
7828
- *
7829
- * <p>sdkQuery 响应下发, submitPayByPaymentSession 由 SDK 原值回传; 服务端不信任前端回传值, 必须与会话上下文比对。
7830
- */
7831
- supportTokenizedMode?: 'EASYSAFEPAY' | 'TOKENIZEDPAY' | null;
7832
- /**
7833
- * @description 用户是否选择开启 token 支付(首次支付/授权场景的入口标识)。
7834
- *
7835
- * <p>submitPayByPaymentSession 请求入参, 由前端上报。
7836
- */
7837
- enableTokenPay?: boolean;
7838
- /**
7839
- * @description token(accessToken) 状态, 取值 ACTIVE / INACTIVE, 对齐 iexpprod facade {@code
7840
- * AlipayAccessTokenStatusEnum}。
7841
- *
7842
- * <p>sdkQuery 响应下发, 取 {@code PaymentMethodTokenDetail.alipayAccessTokenStatus}; 首次支付(无
7843
- * tokenDetail)不下发。
7844
- */
7845
- paymentMethodIdStatus?: 'ACTIVE' | 'INACTIVE' | null;
7846
7807
  }
7847
7808
 
7848
7809
  declare interface PaymentOption {
@@ -7966,14 +7927,6 @@ declare interface PaymentOption {
7966
7927
  * @description 支付支持的交互方式
7967
7928
  */
7968
7929
  interactionTypes?: string[];
7969
- /**
7970
- * @description 支付方式是否支持代扣(token pay)
7971
- * <p>
7972
- * 仅当请求侧 PaymentFactor.markSupportTokenPay=true 时才可能被置为 true;
7973
- * 默认 false, 未打标时与现状完全一致, 向后兼容。
7974
- * @default false
7975
- */
7976
- supportTokenPay?: boolean;
7977
7930
  }
7978
7931
 
7979
7932
  declare interface PaymentQuoteInfo {
@@ -8265,8 +8218,6 @@ declare interface PollingSetting {
8265
8218
  pollingTimes?: string;
8266
8219
  }
8267
8220
 
8268
- /* Excluded from this release type: PreloadTelemetryContext */
8269
-
8270
8221
  declare interface PromotionDetail {
8271
8222
  /**
8272
8223
  * @description promotion amount for mobile view
@@ -24479,7 +24430,7 @@ declare interface SubscriptionPricePlan {
24479
24430
  pricePlanAmountView?: PaymentView;
24480
24431
  }
24481
24432
 
24482
- declare const SUPPORTED_EXPRESS_METHODS: readonly ["paypal", "applePay", "googlePay", "alipay"];
24433
+ declare const SUPPORTED_EXPRESS_METHODS: readonly ["paypal", "applePay", "googlePay", "alipay", "connect"];
24483
24434
 
24484
24435
  declare type SvgAttributes =
24485
24436
  | "[-khtml-opacity]"
@@ -24933,7 +24884,6 @@ export declare interface VaultingAppConfig extends BaseElementAppConfig {
24933
24884
  /* Excluded from this release type: renderDataError */
24934
24885
  /* Excluded from this release type: sdkVersion */
24935
24886
  /* Excluded from this release type: _requestConfig */
24936
- /* Excluded from this release type: preloadTelemetryContext */
24937
24887
  }
24938
24888
 
24939
24889
  export declare type VaultingAppearance = PickAntomAppearance<VaultingAppearanceProps>;
@@ -284,13 +284,6 @@ export declare interface AntomMiddlePageEventMap extends AntomBridgeEventMap {
284
284
  export declare interface AntomOpenModalConfig extends OpenModalParams {
285
285
  }
286
286
 
287
- export declare interface AntomPreloadConfig {
288
- /** Elements2 types the merchant expects to create after loading the SDK. */
289
- elements: AntomPreloadElement[];
290
- }
291
-
292
- export declare type AntomPreloadElement = 'payment' | 'express' | 'vaulting' | 'CVV';
293
-
294
287
  /**
295
288
  * @description The Antom main class, all uses are based on this class instance
296
289
  */
@@ -446,8 +439,8 @@ export declare const AntomSDKErrorCodes: {
446
439
  readonly ELEMENT_DEFINE_ERROR: "ELEMENT_DEFINE_ERROR";
447
440
  readonly ELEMENT_ALREADY_REGISTERED: "ELEMENT_ALREADY_REGISTERED";
448
441
  readonly CANNOT_CREATE_SAME_ELEMENT_TWICE: "CANNOT_CREATE_SAME_ELEMENT_TWICE";
449
- readonly GROUPS_ONLY_ONE_MAIN_ELEMENT: "GROUPS_ONLY_ONE_MAIN_ELEMENT";
450
- readonly GROUPS_NOT_FOUND_MAIN_ELEMENT: "GROUPS_NOT_FOUND_MAIN_ELEMENT";
442
+ readonly GROUPS_ONLY_ONE_MAIN_ELEMENT: "GROUPS_ONLY_ONE_MAIN_ELEMENT"; /** @deprecated 传入 elements 时无需重复传递,且不会覆盖 Element 的会话。 */
443
+ readonly GROUPS_NOT_FOUND_MAIN_ELEMENT: "GROUPS_NOT_FOUND_MAIN_ELEMENT"; /** 无 UI 模式必填,仅用于创建内部 CVVElement。 */
451
444
  readonly NOT_SUPPORT_ELEMENT: "NOT_SUPPORT_ELEMENT";
452
445
  readonly NOT_SUPPORT_SUBMIT: "NOT_SUPPORT_SUBMIT";
453
446
  readonly UPDATE_CONFIG_TIMEOUT: "UPDATE_CONFIG_TIMEOUT";
@@ -2745,8 +2738,6 @@ export declare interface CVVAppConfig extends BaseElementAppConfig {
2745
2738
  * @internal 内部联调使用,生产环境传递无效
2746
2739
  */
2747
2740
  _requestConfig?: Partial<Omit<RequestOptions, 'scope' | 'tracker'>>;
2748
- /** @internal Elements2 preload grouping data. */
2749
- preloadTelemetryContext?: PreloadTelemetryContext;
2750
2741
  /**
2751
2742
  * @description 语言配置
2752
2743
  */
@@ -3728,8 +3719,6 @@ export declare interface ExpressAppConfig extends BaseElementAppConfig {
3728
3719
  locale?: string;
3729
3720
  /** @internal PayPal v6 core script environment injected from the element env. */
3730
3721
  _paypalSdkEnvironment?: 'sandbox' | 'prod';
3731
- /** @internal Elements2 preload grouping data. */
3732
- preloadTelemetryContext?: PreloadTelemetryContext;
3733
3722
  /**
3734
3723
  * 是否运行在 Native App 的 WebView 中。
3735
3724
  * 为 true 时,跳转通过 onRedirect 事件委托给 Native 端处理。
@@ -5255,8 +5244,6 @@ export declare interface LoadAntomConfig extends Omit<BaseFactoryConfig, 'tracke
5255
5244
  * @description 环境配置,默认为prod
5256
5245
  */
5257
5246
  env?: 'sandbox' | 'prod';
5258
- /** Starts best-effort Elements2 resource preload without delaying loadAntom. */
5259
- preload?: AntomPreloadConfig;
5260
5247
  }
5261
5248
 
5262
5249
  /**
@@ -7609,13 +7596,13 @@ declare type OpenModalHandle = {
7609
7596
 
7610
7597
  declare interface OpenModalParams extends Omit<BaseOpenModalConfig, 'hideCloseWhenLoaded'> {
7611
7598
  mode: 'desktop' | 'mobile';
7612
- /** Opt-in desktop height in CSS pixels; omitted callers retain the 620px shell. */
7613
- desktopHeight?: number;
7614
7599
  loadingConfig?: {
7615
7600
  theme?: 'light' | 'dark';
7616
7601
  backgroundColor?: string;
7617
7602
  };
7618
7603
  textDirection?: 'ltr' | 'rtl';
7604
+ /** Opt-in content height synchronization. Defaults to the existing fixed modal height. */
7605
+ adaptiveHeight?: boolean;
7619
7606
  }
7620
7607
 
7621
7608
  declare class OpenSDKError<Code extends string = string> extends Error {
@@ -7867,8 +7854,6 @@ export declare interface PaymentAppConfig extends BaseElementAppConfig {
7867
7854
  merchantId?: string;
7868
7855
  paymentMethodType?: string;
7869
7856
  };
7870
- /** @internal Elements2 preload grouping data. */
7871
- preloadTelemetryContext?: PreloadTelemetryContext;
7872
7857
  /**
7873
7858
  * @internal 内部使用,无需用户传递,高度信息
7874
7859
  */
@@ -8312,33 +8297,6 @@ declare interface PaymentMethodView {
8312
8297
  * @description 分期银行信息列表
8313
8298
  */
8314
8299
  supportIppBankList?: FrontSupportIppBank[];
8315
- /**
8316
- * @description consult 是否打标该支付方式支持代扣(tokenPay)。
8317
- *
8318
- * <p>来源 iexpprod {@code PaymentOption.supportTokenPay}(Boolean, 默认 false), 仅当 iexpfront 显式传
8319
- * {@code PaymentFactor.markSupportTokenPay=true} 时 iexpprod 才会打标。 sdkQuery 内部流转字段。
8320
- */
8321
- supportTokenPay?: boolean;
8322
- /**
8323
- * @description tokenized 模式, 取值 EASYSAFEPAY / TOKENIZEDPAY;null 或缺失表示不支持。
8324
- *
8325
- * <p>sdkQuery 响应下发, submitPayByPaymentSession 由 SDK 原值回传; 服务端不信任前端回传值, 必须与会话上下文比对。
8326
- */
8327
- supportTokenizedMode?: 'EASYSAFEPAY' | 'TOKENIZEDPAY' | null;
8328
- /**
8329
- * @description 用户是否选择开启 token 支付(首次支付/授权场景的入口标识)。
8330
- *
8331
- * <p>submitPayByPaymentSession 请求入参, 由前端上报。
8332
- */
8333
- enableTokenPay?: boolean;
8334
- /**
8335
- * @description token(accessToken) 状态, 取值 ACTIVE / INACTIVE, 对齐 iexpprod facade {@code
8336
- * AlipayAccessTokenStatusEnum}。
8337
- *
8338
- * <p>sdkQuery 响应下发, 取 {@code PaymentMethodTokenDetail.alipayAccessTokenStatus}; 首次支付(无
8339
- * tokenDetail)不下发。
8340
- */
8341
- paymentMethodIdStatus?: 'ACTIVE' | 'INACTIVE' | null;
8342
8300
  }
8343
8301
 
8344
8302
  declare interface PaymentOption {
@@ -8462,14 +8420,6 @@ declare interface PaymentOption {
8462
8420
  * @description 支付支持的交互方式
8463
8421
  */
8464
8422
  interactionTypes?: string[];
8465
- /**
8466
- * @description 支付方式是否支持代扣(token pay)
8467
- * <p>
8468
- * 仅当请求侧 PaymentFactor.markSupportTokenPay=true 时才可能被置为 true;
8469
- * 默认 false, 未打标时与现状完全一致, 向后兼容。
8470
- * @default false
8471
- */
8472
- supportTokenPay?: boolean;
8473
8423
  }
8474
8424
 
8475
8425
  declare interface PaymentQuoteInfo {
@@ -8761,22 +8711,6 @@ declare interface PollingSetting {
8761
8711
  pollingTimes?: string;
8762
8712
  }
8763
8713
 
8764
- /** @internal Telemetry context passed to Elements2 through the existing handshake. */
8765
- export declare interface PreloadTelemetryContext {
8766
- requested: boolean;
8767
- phaseAtElementCreate: 'not_requested' | 'resolving' | 'running' | 'critical_completed' | 'failed' | 'skipped';
8768
- leadTimeMs?: number;
8769
- criticalDurationMs?: number;
8770
- taskId?: string;
8771
- preconnectedRegions?: readonly ('SG' | 'US' | 'DE')[];
8772
- preconnectionMode?: 'configured' | 'regional';
8773
- actualRegion?: string;
8774
- predictionResult?: 'hit' | 'miss';
8775
- preconnectionStatus?: 'running' | 'completed' | 'partial_failed' | 'failed';
8776
- preconnectionLeadTimeMs?: number;
8777
- preconnectionReadyBeforeFirstRpc?: boolean;
8778
- }
8779
-
8780
8714
  declare interface PromotionDetail {
8781
8715
  /**
8782
8716
  * @description promotion amount for mobile view
@@ -24999,7 +24933,7 @@ declare interface SubscriptionPricePlan {
24999
24933
  pricePlanAmountView?: PaymentView;
25000
24934
  }
25001
24935
 
25002
- declare const SUPPORTED_EXPRESS_METHODS: readonly ["paypal", "applePay", "googlePay", "alipay"];
24936
+ declare const SUPPORTED_EXPRESS_METHODS: readonly ["paypal", "applePay", "googlePay", "alipay", "connect"];
25003
24937
 
25004
24938
  declare type SvgAttributes =
25005
24939
  | "[-khtml-opacity]"
@@ -25468,8 +25402,6 @@ export declare interface VaultingAppConfig extends BaseElementAppConfig {
25468
25402
  * @internal 内部联调使用,生产环境传递无效
25469
25403
  */
25470
25404
  _requestConfig?: Partial<Omit<RequestOptions, 'scope' | 'tracker'>>;
25471
- /** @internal Elements2 preload grouping data. */
25472
- preloadTelemetryContext?: PreloadTelemetryContext;
25473
25405
  }
25474
25406
 
25475
25407
  export declare type VaultingAppearance = PickAntomAppearance<VaultingAppearanceProps>;
@@ -1,21 +0,0 @@
1
- import { type IPaymentSessionMetaData } from "../types";
2
- export type IChannelBehavior = {
3
- allowSubmitPayCallAhead: boolean;
4
- createIframeNode: boolean;
5
- loadApp: boolean;
6
- buildSubmitPayExtParams?: (params: GetDoubleFaParams) => any;
7
- allowClickOutsideClose?: boolean;
8
- };
9
- type GetDoubleFaParams = {
10
- instanceId: string;
11
- paymentSessionData: string;
12
- paymentSessionObj: IPaymentSessionMetaData;
13
- locale: string;
14
- paymentMethodType: string;
15
- env: string;
16
- sdkVersion: string;
17
- notRedirectAfterComplete: boolean;
18
- };
19
- export declare function getChannelBehavior(notRedirectAfterComplete: boolean, paymentSessionMetaData?: IPaymentSessionMetaData): IChannelBehavior | undefined;
20
- export declare function getDoubleFaUrl(params: GetDoubleFaParams): string;
21
- export {};
@@ -1,10 +0,0 @@
1
- import { ComponentSignEnum, PlatformEnum } from '../types';
2
- interface Options {
3
- componentSign?: ComponentSignEnum;
4
- type: 'tabs' | 'Accordion';
5
- isExpressCheckout?: boolean;
6
- }
7
- export declare const inlineComponentAddCss: () => void;
8
- export declare const addInlineLoading: (_selector: HTMLDivElement, platform: PlatformEnum, options?: Options) => void;
9
- export declare const createInlineBaseElement: (selector: string, containerId?: string) => HTMLDivElement;
10
- export {};
@@ -1,26 +0,0 @@
1
- import { PlatformEnum } from '../types';
2
- export declare const componentCss = ".ams-component-container-mobile {\n width: 100%;\n height: 1px;\n position: fixed;\n bottom: -1px;\n left: 0;\n z-index: 1001;\n border-radius: 12px 12px 0 0;\n overflow: hidden;\n}\n.ams-component-container-mobile-animation{\n animation: ams-component-container-slide-in 0.3s ease-in-out;\n}\n\n.ams-component-section-desktop {\n font-size: 0;\n}\n\n.ams-component-container-hidden-mobile {\n width: 100%;\n height: 0px;\n position: fixed;\n bottom: -1px;\n left: 0;\n z-index: 1001;\n background-color: transparent;\n border-radius: 12px 12px 0 0;\n animation: ams-component-container-slide-out 0.26s ease-in forwards;\n overflow: hidden;\n}\n\n.ams-component-section-mobile {\n border-radius: 12px 12px 0 0;\n overflow: hidden;\n font-size: 0;\n height: 100%;\n}\n\n.ams-component-container-desktop {\n display: block;\n width: 672px;\n position: fixed;\n top: 50%;\n left: 50%;\n z-index: 1001;\n border-radius: 12px;\n overflow: hidden;\n transform-origin: 50% 50%;\n transform: translate(-50%, -50%);\n}\n.ams-component-container-desktop-animation{\n animation: ams-component-container-zoom-in 0.3s ease-in-out;\n animation-fill-mode: forwards\n}\n\n@keyframes ams-component-container-zoom-out {\n 0% {\n transform: translate(-50%, -50%) scale(1);\n -webkit-transform: translate(-50%, -50%) scale(1);\n opacity: 1\n }\n\n 100% {\n opacity: 0;\n transform: translate(-50%, -50%) scale(0.4);\n -webkit-transform: translate(-50%, -50%) scale(0.4);\n }\n}\n\n@keyframes ams-component-container-zoom-in {\n 0% {\n transform: translate(-50%, -50%) scale(0.4);\n opacity: 0\n }\n\n 100% {\n opacity: 1;\n transform: translate(-50%, -50%) scale(1);\n }\n}\n\n.ams-component-container-hidden-desktop {\n display: block;\n position: fixed;\n top: 50%;\n left: 50%;\n z-index: 1001;\n border-radius: 8px;\n overflow: hidden;\n animation: ams-component-container-zoom-out 0.3s ease-in-out;\n animation-fill-mode: forwards;\n transform-origin: 50% 50%;\n}\n\n.ams-component-loading {\n width: 0.8em;\n height:0.8em;\n background: rgba(0, 0, 0, 0.5);\n border-radius: 8px;\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 1001;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n}\n\n.ams-component-loading .line {\n width: 40px;\n height: 40px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n.ams-component-loading .line div {\n position: absolute;\n left: 17.67px;\n top: 0;\n width: 5.33px;\n height: 40px;\n}\n\n.ams-component-loading .line div:before,\n.ams-component-loading .line div:after {\n content: '';\n display: block;\n height: 13.33px;\n background: #fcfcfc;\n border-radius: 5.3px;\n}\n.ams-component-loading .line div:after {\n margin-top: 13.33px;\n}\n\n.ams-component-loading .line div:nth-child(2) {\n -webkit-transform: rotate(45deg);\n}\n\n.ams-component-loading .line div:nth-child(3) {\n -webkit-transform: rotate(90deg);\n}\n\n.ams-component-loading .line div:nth-child(4) {\n -webkit-transform: rotate(135deg);\n}\n\n/** \u52A0\u8F7D\u52A8\u753B **/\n@-webkit-keyframes load {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n.ams-component-loading .line div:nth-child(1):before {\n -webkit-animation: load 1s linear 0s infinite;\n}\n\n.ams-component-loading .line div:nth-child(2):before {\n -webkit-animation: load 1s linear 0.125s infinite;\n}\n\n.ams-component-loading .line div:nth-child(3):before {\n -webkit-animation: load 1s linear 0.25s infinite;\n}\n\n.ams-component-loading .line div:nth-child(4):before {\n -webkit-animation: load 1s linear 0.375s infinite;\n}\n\n.ams-component-loading .line div:nth-child(1):after {\n -webkit-animation: load 1s linear 0.5s infinite;\n}\n\n.ams-component-loading .line div:nth-child(2):after {\n -webkit-animation: load 1s linear 0.675s infinite;\n}\n\n.ams-component-loading .line div:nth-child(3):after {\n -webkit-animation: load 1s linear 0.75s infinite;\n}\n\n.ams-component-loading .line div:nth-child(4):after {\n -webkit-animation: load 1s linear 0.875s infinite;\n}\n\n.ams-component-loading-logo {\n width: 0.44em;\n height: 0.44em;\n -webkit-transform:rotate(360deg);\n transform:rotate(360deg);\n -webkit-transition:-webkit-transform 1s linear;\n transition:transform 1s linear;\n animation: ams-component-loading-logo 1s linear infinite;\n}\n\n.asm-component-close-block-desktop {\n position: absolute;\n width: 40px;\n height: 40px;\n right: 0;\n top: 0;\n cursor: pointer;\n}\n.asm-component-close-block-btn-desktop {\n width: 11px;\n height: 11px;\n object-fit: fill;\n position: absolute;\n right: 18.7px;\n top: 26.7px;\n}\n.asm-component-close-block-hidden {\n width: 0px !important;\n height: 0px !important;\n visibility: hidden;\n}\n.asm-component-close-block-mobile {\n position: absolute;\n width: 0.4em;\n height: 0.4em;\n right: 0;\n top: 0;\n cursor: pointer;\n z-index: 1009;\n}\n\n.asm-component-close-block-btn-mobile {\n width: 0.11em;\n height: 0.11em;\n object-fit: fill;\n position: absolute;\n right: 0.147em;\n top: 0.167em;\n}\n.ams-component-mask-close-block-desktop {\n position: absolute;\n width: 40px;\n height: 40px;\n right: 18px;\n top: 10px;\n cursor: pointer;\n z-index: 1013;\n}\n \n.ams-component-mask-close-block-mobile {\n position: absolute;\n width: 40px;\n height: 40px;\n right: 18px;\n cursor: pointer;\n z-index: 1012;\n}\n\n.ams-component-mask-close-block-hidden {\n width: 0px !important;\n height: 0px !important;\n visibility: hidden;\n}\n\n.ams-component-mask-close-block-btn {\n width: 24px;\n height: 24px;\n object-fit: fill;\n position: absolute;\n right: 8px;\n top: 8px;\n}\n\n.ams-component-container-opacity{\n opacity: 1;\n}\n\n.ams-component-container-opacity:after{\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n display: block;\n content: \"\";\n z-index: 1010;\n background-color: rgba(0, 0, 0, 0.35);\n border-radius: 12px 12px 0 0;\n}\n\n#ams-component-retention {\n position: fixed;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: 50%;\n height: auto;\n display: none;\n z-index: 1009;\n}\n\n.ams-component-retention-show {\n display: flex !important;\n animation: ams-component-container-zoom-in 0.3s ease-in-out;\n animation-fill-mode: forwards\n}\n\n.ams-component-retention-hidden {\n display: flex !important;\n animation: ams-component-container-zoom-out 0.3s ease-in-out;\n -webkit-animation: ams-component-container-zoom-out 0.3s ease-in-out;\n animation-fill-mode: forwards;\n -webkit-animation-fill-mode: forwards;\n}\n\n.ams-component-retention-mobile {\n width: 294px;\n border-radius: 12px;\n padding: 24px 0;\n background-color: #fff;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n box-sizing: border-box;\n}\n\n.ams-component-retention-desktop {\n width: 544px;\n border-radius: 12px;\n padding: 32px;\n background-color: #fff;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n box-sizing: border-box;\n}\n\n@media screen and (max-width: 300px) {\n .ams-component-retention-mobile {\n transform: translate(-50%, -50%) scale(0.8);\n }\n}\n\n.ams-component-retention-title-mobile {\n width: 100%;\n font-style: normal;\n font-weight: 500;\n font-size: 16px;\n line-height: 24px;\n color: #2A3A52;\n text-align: center;\n padding: 0 16px;\n box-sizing: border-box;\n}\n\n.ams-component-retention-title-desktop {\n text-align: left;\n width: 100%;\n font-style: normal;\n font-weight: 500;\n font-size: 16px;\n line-height: 24px;\n color: #2A3A52;\n}\n\n.ams-component-retention-sub-title-mobile {\n width: 100%;\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n color: #7C8CA3;\n margin-top: 8px;\n text-align: center;\n padding: 0 16px;\n box-sizing: border-box;\n}\n\n.ams-component-retention-sub-title-desktop {\n text-align: left;\n font-style: normal;\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n color: #7C8CA3;\n margin-top: 10px;\n}\n\n.ams-component-retention-btn-block-mobile {\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n margin-top: 24px;\n padding: 0 24px;\n box-sizing: border-box;\n}\n\n.ams-component-retention-btn-block-desktop {\n width: 100%;\n margin-top: 24px;\n}\n\n#ams-component-retention-remain {\n background: #0079FF;\n border-radius: 100px;\n font-style: normal;\n font-weight: 500;\n text-align: center;\n box-sizing: border-box;\n color: #FFFFFF;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.ams-component-retention-remain-mobile {\n width: 100%;\n height: 44px;\n font-size: 16px;\n line-height: 44px;\n padding: 0 6px;\n}\n\n.ams-component-retention-remain-desktop {\n height: 44px;\n font-size: 16px;\n line-height: 44px;\n display: inline-block;\n padding: 0 24px;\n float: right;\n cursor: pointer;\n padding: 0 16px;\n max-width: 225px;\n min-width: 159px;\n}\n\n#ams-component-retention-leave {\n border-radius: 100px;\n border: 1px solid #0079FF;\n font-style: normal;\n font-weight: 500;\n text-align: center;\n box-sizing: border-box;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.ams-component-retention-leave-mobile {\n width: 100%;\n height: 44px;\n font-size: 16px;\n line-height: 44px;\n color: #1677FF;\n margin-top: 12px;\n padding: 0 6px;\n}\n\n.ams-component-retention-leave-desktop {\n height: 44px;\n font-size: 16px;\n line-height: 44px;\n color: #1677FF;\n display: inline-block;\n padding: 0 24px;\n float: right;\n margin-right: 16px;\n cursor: pointer;\n padding: 0 16px;\n max-width: 225px;\n min-width: 144px;\n}\n.ams-component-mockup-hidden{\nanimation: ams-component-mockup-opacity 0.3s ease-in-out;\n animation-fill-mode: forwards\n}\n/** \u52A0\u8F7D\u52A8\u753B **/\n@-webkit-keyframes ams-component-mockup-opacity {\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n}\n";
3
- export declare const componentAddCSS: () => void;
4
- export declare const createBaseElement: (platform: PlatformEnum, closeBtnFunc: () => void) => HTMLDivElement;
5
- export declare const createCloseBtn: (platform: PlatformEnum, closeBtnFunc: () => void) => void;
6
- export declare const createMaskCloseButton: (platform: PlatformEnum, closeBtnFunc: () => void) => void;
7
- /**
8
- * 弹出离开挽留弹窗
9
- * @param platform
10
- * @param remainBtnFunc
11
- * @param leaveBtnFunc
12
- */
13
- export declare const createRetentionPopup: (platform: PlatformEnum, remainBtnFunc: () => void, leaveBtnFunc: () => void) => void;
14
- export declare const hideRetentionPopup: () => void;
15
- export declare const showRetentionPopup: () => void;
16
- export declare const removeRetentionPopup: () => void;
17
- export declare const createMockup: (options: {
18
- platform: PlatformEnum;
19
- onClickOutside: () => void;
20
- closeBtnFunc: () => void;
21
- }) => void;
22
- export declare const hideMockup: () => void;
23
- export declare const cleanMockup: () => void;
24
- export declare const addPopupLoading: () => void;
25
- export declare const handleDeclareInfo: (closeDialogData: any) => void;
26
- export declare const slideInAndOutKeyframes: (id: any, height: any) => string;
@@ -1,27 +0,0 @@
1
- type CreateModalProps = {
2
- device: any;
3
- url: string;
4
- widthPadding?: number;
5
- styleConfig?: {
6
- backgroundColor?: string;
7
- };
8
- loadingConfig?: {
9
- theme?: string;
10
- backgroundPrimary?: string;
11
- };
12
- showCloseOnLoading: boolean;
13
- onCloseOnLoading: () => void;
14
- textDirection: 'ltr' | 'rtl';
15
- };
16
- export declare const getCurrentTheme: (curTheme?: string) => any;
17
- export declare const createCustomSheet: (curTheme?: "dark" | "light") => void;
18
- export declare const renderPopupLoading: (container: HTMLDivElement, curTheme: "dark" | "light") => void;
19
- export declare const removePopupLoading: (isShowMockup?: boolean) => void;
20
- export declare const insertStyleSheet: () => void;
21
- export declare function createCloseIcon({ onClose, textDirection }: {
22
- onClose: () => void;
23
- textDirection: 'ltr' | 'rtl';
24
- }): HTMLDivElement;
25
- export declare const createModal: ({ device, url, loadingConfig, styleConfig, showCloseOnLoading, onCloseOnLoading, textDirection, }: CreateModalProps) => Promise<HTMLIFrameElement>;
26
- export declare const destroyModal: () => void;
27
- export {};
@@ -1,23 +0,0 @@
1
- /**
2
- * Copyright (c) 2022 International Business Group, Ant Group. All rights reserved.
3
- *
4
- * 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:
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.
7
- */
8
- export declare const marmotMap: Record<string, string>;
9
- export declare const marmotConfigMap: Record<string, string>;
10
- export declare const v2AppMarmotMap: Record<string, string>;
11
- export declare const sdkVersion: string;
12
- /**
13
- * @description: 目前应用层分为v1和v2,会存在两个应用版本号不是同步发布的情况。所以需要把默认的应用版本号配置抽离出来。
14
- * TODO 这里考虑直接换成packagejson.version
15
- */
16
- export declare const AMSCheckoutAppVersion = "1.47.2";
17
- export declare const AMSAutoDebitAppVersion = "1.47.2";
18
- export declare const AMSEasyPayAppVersion = "1.47.2";
19
- export declare const AMSCashierPaymentAppVersion = "1.47.2";
20
- export declare const AMSVaultingAppVersion = "1.47.2";
21
- export declare const AMSPaymentElementAppVersion = "1.47.2";
22
- export declare const ADDRESSElementAppVersion = "1.47.2";
23
- export declare const AUTHElementAppVersion = "1.47.2";
@@ -1,21 +0,0 @@
1
- /**
2
- * Copyright (c) 2022 International Business Group, Ant Group. All rights reserved.
3
- *
4
- * 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:
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.
7
- */
8
- export declare const requestHost: {
9
- [key: string]: string;
10
- };
11
- export declare const clientId = "5J5Y8X4E2Y25GR00690";
12
- export declare const tntInstId = "ALIPW3SG";
13
- export declare const appId = "ANTOM_PAYMENT_WEB";
14
- export declare const sofaId: any;
15
- export declare const hostSignMap: (hostSign: string | undefined, env: string) => string;
16
- export declare const lightSandboxMap: (operationType: string | undefined, env: string) => {
17
- appId: string;
18
- sofaId: any;
19
- baseURL: string;
20
- 'Operation-Type': string;
21
- };
@@ -1,12 +0,0 @@
1
- /**
2
- * Auto-Debit V2构建产物page名称
3
- */
4
- export declare enum AUTO_DEBIT_PAGE_NAME {
5
- TRUSTLY = "trustly"
6
- }
7
- /**
8
- * Auto-Debit V2(不带域名)
9
- */
10
- export declare enum AUTO_DEBIT_PAGE_URL {
11
- TRUSTLY = "/auto-debit/pages/trustly/index.html"
12
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * ESP 构建产物page名称
3
- */
4
- export declare enum ESP_PAGE_NAME {
5
- API_PORTAL = "api-portal",
6
- SDK_PORTAL = "sdk-portal",
7
- DOUBLE_FA = "double-fa",
8
- PRELOAD = "preload"
9
- }
10
- /**
11
- * ESP集成模式
12
- */
13
- export declare enum MODE {
14
- SDK = "SDK",
15
- API = "API"
16
- }
@@ -1,27 +0,0 @@
1
- /**
2
- * Element 构建产物page名称
3
- */
4
- export declare const ELEMENT_PAGE_NAME: {
5
- CODE_VIEW: string;
6
- ELEMENT_PAYMENT: string;
7
- EXPRESS_CHECKOUT: string;
8
- IFRAME_ELEMENT: string;
9
- INSTRUCTION_GUIDE: string;
10
- THREED_PAGE: string;
11
- ELEMENT_AUTH: string;
12
- ADDRESS: string;
13
- };
14
- /**
15
- * Element 各页面URL(不带域名)
16
- */
17
- export declare enum ELEMENT_PAGE_URL {
18
- CODE_VIEW = "/elements/pages/code-view/index.html",
19
- ELEMENT_PAYMENT = "/elements/pages/element_payment/index.html",
20
- EXPRESS_CHECKOUT = "/elements/pages/express_checkout/index.html",
21
- IFRAME_ELEMENT = "/elements/pages/iframe-element/index.html",
22
- INSTRUCTION_GUIDE = "/elements/pages/instruction-guide/index.html",
23
- THREED_PAGE = "/elements/pages/threed-page/index.html",
24
- ELEMENT_AUTH = "/auth-element/pages/element_auth/index.html",
25
- ADDRESS = "/element-address/pages/address/index.html",
26
- NEW_ELEMENT_PAYMENT = "/elements2/pages/element_payment/index.html"
27
- }