@alipay/ams-checkout 0.0.1788166152-dev.7 → 0.0.1788166152-dev.8
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.
- package/ams-checkout.js +3 -3
- package/dist/ams-checkout.min.js +1 -1
- package/dist/ams-checkout.min.js.map +1 -1
- package/esm/config/index.js +1 -1
- package/esm/core/component/element/modernElementController/index.js +2 -2
- package/esm/modern/component/channel.d.ts +21 -0
- package/esm/modern/component/component.inline.style.d.ts +10 -0
- package/esm/modern/component/component.popup.style.d.ts +26 -0
- package/esm/modern/component/popupWindow.style.d.ts +27 -0
- package/esm/modern/config/index.d.ts +23 -0
- package/esm/modern/config/request.d.ts +21 -0
- package/esm/modern/constant/auto-debit.d.ts +12 -0
- package/esm/modern/constant/easysafepay.d.ts +16 -0
- package/esm/modern/constant/element.d.ts +27 -0
- package/esm/modern/constant/index.d.ts +331 -0
- package/esm/modern/core/bus/ability/callback.d.ts +9 -0
- package/esm/modern/core/bus/ability/security.d.ts +10 -0
- package/esm/modern/core/bus/ability/tracker.d.ts +9 -0
- package/esm/modern/core/bus/index.d.ts +125 -0
- package/esm/modern/core/bus/interface.d.ts +36 -0
- package/esm/modern/core/component/address.d.ts +8 -0
- package/esm/modern/core/component/appPreloadProcessing.d.ts +1 -0
- package/esm/modern/core/component/ckp/index.d.ts +29 -0
- package/esm/modern/core/component/element/EventCenter/index.d.ts +41 -0
- package/esm/modern/core/component/element/config.d.ts +10 -0
- package/esm/modern/core/component/element/elementContainerService/containerService.d.ts +34 -0
- package/esm/modern/core/component/element/elementContainerService/index.d.ts +20 -0
- package/esm/modern/core/component/element/elementController/index.d.ts +54 -0
- package/esm/modern/core/component/element/elementProcessor/addressProcessor.d.ts +20 -0
- package/esm/modern/core/component/element/elementProcessor/authProcessor.d.ts +20 -0
- package/esm/modern/core/component/element/elementProcessor/baseElementProcessor.d.ts +42 -0
- package/esm/modern/core/component/element/elementProcessor/convertPaymentMethods.d.ts +22 -0
- package/esm/modern/core/component/element/elementProcessor/paymentProcessor.d.ts +37 -0
- package/esm/modern/core/component/element/index.d.ts +17 -0
- package/esm/modern/core/component/element/mock.d.ts +10 -0
- package/esm/modern/core/component/element/modernElementController/adapter.d.ts +19 -0
- package/esm/modern/core/component/element/modernElementController/index.d.ts +172 -0
- package/esm/modern/core/component/element/type.d.ts +586 -0
- package/esm/modern/core/component/element/util.d.ts +93 -0
- package/esm/modern/core/component/index.d.ts +58 -0
- package/esm/modern/core/instance/index.d.ts +97 -0
- package/esm/modern/core/utils/connectConfig.d.ts +11 -0
- package/esm/modern/foundation/core/index.d.ts +36 -0
- package/esm/modern/foundation/index.d.ts +93 -0
- package/esm/modern/foundation/product-processor/autoDebit/deps.d.ts +14 -0
- package/esm/modern/foundation/product-processor/autoDebit/index.d.ts +48 -0
- package/esm/modern/foundation/product-processor/easysafepay/deps.d.ts +20 -0
- package/esm/modern/foundation/product-processor/easysafepay/index.d.ts +29 -0
- package/esm/modern/foundation/product-processor/element/index.d.ts +7 -0
- package/esm/modern/foundation/service/api-bus/ability/globalData.d.ts +10 -0
- package/esm/modern/foundation/service/api-bus/ability/request.d.ts +10 -0
- package/esm/modern/foundation/service/api-bus/ability/security.d.ts +12 -0
- package/esm/modern/foundation/service/api-bus/ability/tracker.d.ts +9 -0
- package/esm/modern/foundation/service/api-bus/busManager.d.ts +127 -0
- package/esm/modern/foundation/service/api-bus/index.d.ts +20 -0
- package/esm/modern/foundation/service/api-bus/interface.d.ts +48 -0
- package/esm/modern/foundation/service/container/index.d.ts +42 -0
- package/esm/modern/foundation/service/container/popup.d.ts +31 -0
- package/esm/modern/foundation/service/container/utils.d.ts +7 -0
- package/esm/modern/foundation/service/event-center.d.ts +82 -0
- package/esm/modern/foundation/service/global-data/index.d.ts +11 -0
- package/esm/modern/foundation/service/index.d.ts +19 -0
- package/esm/modern/foundation/service/log/index.d.ts +44 -0
- package/esm/modern/foundation/service/log/keys.d.ts +13 -0
- package/esm/modern/foundation/service/log/processor.d.ts +9 -0
- package/esm/modern/foundation/service/log/types.d.ts +33 -0
- package/esm/modern/foundation/service/requester/deps.d.ts +17 -0
- package/esm/modern/foundation/service/requester/requester.d.ts +22 -0
- package/esm/modern/foundation/service/security/index.d.ts +33 -0
- package/esm/modern/foundation/service/security/security.d.ts +54 -0
- package/esm/modern/foundation/utils/gray_scale_utils.d.ts +7 -0
- package/esm/modern/foundation/utils/payment_context_utils.d.ts +13 -0
- package/esm/modern/foundation/utils/payment_product_utils.d.ts +13 -0
- package/esm/modern/foundation/utils/preload_helper.d.ts +24 -0
- package/esm/modern/foundation/utils/redirect_utils.d.ts +11 -0
- package/esm/modern/foundation/utils/system_events.d.ts +4 -0
- package/esm/modern/foundation/utils/web_app_url_utils.d.ts +114 -0
- package/esm/modern/index.js +1 -1
- package/esm/modern/loader/constant.d.ts +36 -0
- package/esm/modern/loader/utils/proxyPerformance.d.ts +20 -0
- package/esm/modern/main.d.ts +54 -0
- package/esm/modern/{index.d.ts → modern/index.d.ts} +1 -1
- package/esm/modern/modern/loadAntomTracker.d.ts +7 -0
- package/esm/modern/modern/preload/antomManifestAdapter.d.ts +11 -0
- package/esm/modern/modern/preload/config.d.ts +10 -0
- package/esm/modern/modern/preload/gatewayPreconnection.d.ts +53 -0
- package/esm/modern/modern/preload/preloadAntomElements.d.ts +9 -0
- package/esm/modern/modern/preload/startAntomPreload.d.ts +2 -0
- package/esm/modern/modern/sdk/applepay-core/ApplePayHostService.d.ts +102 -0
- package/esm/modern/modern/sdk/elements/CVVElement.d.ts +144 -0
- package/esm/modern/modern/sdk/elements/PaymentElement.d.ts +204 -0
- package/esm/modern/modern/sdk/elements/appearanceRules.d.ts +59 -0
- package/esm/modern/modern/sdk/elements/appearanceRulesDefaults.d.ts +2 -0
- package/esm/modern/modern/sdk/eventsMap.d.ts +135 -0
- package/esm/modern/modern/sdk/oneapi/iexpfront/PaymentSessionService.d.ts +69 -0
- package/esm/modern/modern/sdk/oneapi/iexpfront/definitions.d.ts +5311 -0
- package/esm/modern/modern/sdk/oneapi/iexpfront/preConnection.d.ts +6 -0
- package/esm/modern/modern/sdk/stageName.d.ts +3 -0
- package/esm/modern/modern/sdk/tools/awaitWrap.d.ts +14 -0
- package/esm/modern/modern/sdk/tools/buildPageUrl.d.ts +4 -0
- package/esm/modern/modern/sdk/tools/checkSessionData.d.ts +1 -0
- package/esm/modern/modern/sdk/tools/expressElement/applePay.d.ts +9 -0
- package/esm/modern/modern/sdk/tools/expressElement/applePayHostToken.d.ts +32 -0
- package/esm/modern/modern/sdk/tools/expressElement/types.d.ts +277 -0
- package/esm/modern/modern/sdk/tools/getDevReqConfig.d.ts +2 -0
- package/esm/modern/modern/sdk/tools/getLocaleFromRenderData.d.ts +6 -0
- package/esm/modern/modern/sdk/tools/getMetaData.d.ts +126 -0
- package/esm/modern/modern/sdk/tools/modalMessageMonitor.d.ts +41 -0
- package/esm/modern/modern/sdk/tools/openModal.d.ts +20 -0
- package/esm/modern/modern/sdk/tools/paymentElement/applePayHostToken.d.ts +38 -0
- package/esm/modern/modern/sdk/tools/paymentElement/googlePayHostToken.d.ts +38 -0
- package/esm/modern/modern/sdk/tools/paymentElement/tracker.d.ts +16 -0
- package/esm/modern/modern/sdk/tools/paymentElement/walletHostListeners.d.ts +19 -0
- package/esm/modern/modern/sdk/tools/preloadTracking.d.ts +5 -0
- package/esm/modern/modern/sdk/tools/showToast.d.ts +33 -0
- package/esm/modern/modern/sdk/tools/validatePaymentAmount.d.ts +19 -0
- package/esm/modern/modern/sdk/tracking/elementTracker.d.ts +65 -0
- package/esm/modern/modern/sdk/types.d.ts +310 -0
- package/esm/modern/modern/tools.d.ts +26 -0
- package/esm/modern/plugin/applepay/component.d.ts +50 -0
- package/esm/modern/plugin/applepay/index.d.ts +17 -0
- package/esm/modern/plugin/applepay/interface.d.ts +161 -0
- package/esm/modern/plugin/applepay/service.d.ts +54 -0
- package/esm/modern/plugin/component/cashierApp.d.ts +38 -0
- package/esm/modern/plugin/component/channel.d.ts +73 -0
- package/esm/modern/plugin/component/component.inline.style.d.ts +10 -0
- package/esm/modern/plugin/component/component.popup.style.d.ts +25 -0
- package/esm/modern/plugin/component/index.d.ts +133 -0
- package/esm/modern/plugin/component/popupWindow.style.d.ts +11 -0
- package/esm/modern/plugin/const.d.ts +2 -0
- package/esm/modern/plugin/payment-element/utils.d.ts +2 -0
- package/esm/modern/plugin/paypal/index.d.ts +20 -0
- package/esm/modern/plugin/type.d.ts +34 -0
- package/esm/modern/plugin/utils.d.ts +6 -0
- package/esm/modern/preload/antomManifestAdapter.d.ts +11 -0
- package/esm/modern/preload/antomManifestAdapter.js +117 -0
- package/esm/modern/preload/config.d.ts +10 -0
- package/esm/modern/preload/config.js +37 -0
- package/esm/modern/preload/gatewayPreconnection.d.ts +53 -0
- package/esm/modern/preload/gatewayPreconnection.js +213 -0
- package/esm/modern/preload/preloadAntomElements.d.ts +9 -0
- package/esm/modern/preload/preloadAntomElements.js +95 -0
- package/esm/modern/preload/startAntomPreload.d.ts +2 -0
- package/esm/modern/preload/startAntomPreload.js +9 -0
- package/esm/modern/request/index.d.ts +9 -0
- package/esm/modern/request/utils.d.ts +28 -0
- package/esm/modern/service/index.d.ts +13 -0
- package/esm/modern/tools.js +1 -1
- package/esm/modern/types/index.d.ts +856 -0
- package/esm/modern/util/beforeConfirm.d.ts +14 -0
- package/esm/modern/util/createIframeNode.d.ts +6 -0
- package/esm/modern/util/debug.d.ts +1 -0
- package/esm/modern/util/get.d.ts +25 -0
- package/esm/modern/util/getBackScheme.d.ts +5 -0
- package/esm/modern/util/index.d.ts +61 -0
- package/esm/modern/util/jshield-apdid/apdid-loader.d.ts +89 -0
- package/esm/modern/util/jshield-apdid/index.d.ts +21 -0
- package/esm/modern/util/logger.d.ts +67 -0
- package/esm/modern/util/mock.d.ts +1 -0
- package/esm/modern/util/redirect.d.ts +6 -0
- package/esm/modern/util/security-registry.d.ts +72 -0
- package/esm/modern/util/security.d.ts +55 -0
- package/esm/modern/util/spm-map.d.ts +217 -0
- package/esm/modern/util/storage.d.ts +2 -0
- package/esm/modern/util/timezone.d.ts +1 -0
- package/esm/modern/util/upgrade.d.ts +39 -0
- package/esm/modern/util/versionCompare.d.ts +15 -0
- package/esm/util/logger.js +1 -1
- package/package.json +2 -1
- package/types.d.ts +17 -2
- package/types.untrimmed.d.ts +35 -2
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare function isWebPlatform(platform?: string): boolean;
|
|
2
|
+
export interface UpgradeItem {
|
|
3
|
+
productScene?: string;
|
|
4
|
+
v: string;
|
|
5
|
+
appVersion: string;
|
|
6
|
+
platform?: string;
|
|
7
|
+
mid?: string;
|
|
8
|
+
greyscale?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface UpgradeSdkInfo {
|
|
11
|
+
productScene?: string;
|
|
12
|
+
sdkVersion: string;
|
|
13
|
+
appVersion?: string;
|
|
14
|
+
greyscale?: number;
|
|
15
|
+
mid?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function findUpgradeVersion(upgradeItems: UpgradeItem[], sdkInfo: UpgradeSdkInfo): string;
|
|
18
|
+
export declare const getGrascaleId: (key?: string) => string;
|
|
19
|
+
export declare function getGrayscaleValue(seed?: string): number;
|
|
20
|
+
export declare function isGreyscaleMatch(item: UpgradeItem, randomGreyscale: number): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* 查询匹配到的版本
|
|
23
|
+
* @param _extendInfo
|
|
24
|
+
* @param param1
|
|
25
|
+
* @returns
|
|
26
|
+
*/
|
|
27
|
+
export declare const getMatchAppVersion: (_extendInfo: string, sdkInfo: UpgradeSdkInfo) => string;
|
|
28
|
+
/**
|
|
29
|
+
* 获取保存的加载版本
|
|
30
|
+
* @param versionKey
|
|
31
|
+
* @returns
|
|
32
|
+
*/
|
|
33
|
+
export declare const getLastAppVersion: (versionKey: string) => string;
|
|
34
|
+
/**
|
|
35
|
+
* 保存指定场景的加载版本供下次使用
|
|
36
|
+
* @param versionKey
|
|
37
|
+
* @returns
|
|
38
|
+
*/
|
|
39
|
+
export declare const setLastAppVersion: (versionKey: string, appVersion: string) => boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 返回值0标识一样大,1表示v1大,-1表示v2大
|
|
3
|
+
* @param v1
|
|
4
|
+
* @param v2
|
|
5
|
+
*/
|
|
6
|
+
export declare function compareVersion(v1: string, v2: string): 0 | 1 | -1;
|
|
7
|
+
/**
|
|
8
|
+
* 判断version版本是否在range参数版本的范围内
|
|
9
|
+
* @param version
|
|
10
|
+
* @param range
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export declare function isVersionInStringRange(version: string, range: string): boolean;
|
|
14
|
+
export declare function isVersionInRange(currentVersion: any, minVersion: any, maxVersion: any): boolean;
|
|
15
|
+
export declare function matchVersion(config: any, currentVersion: any): boolean;
|
package/esm/util/logger.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alipay/ams-checkout",
|
|
3
|
-
"version": "0.0.1788166152-dev.
|
|
3
|
+
"version": "0.0.1788166152-dev.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "",
|
|
6
6
|
"exports": {
|
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
]
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
+
"@antintl/opensdk-preload": "^0.0.20260831034810-yinan-kuro-dev.15",
|
|
92
93
|
"axios": "^1.3.4",
|
|
93
94
|
"proxy-polyfill": "^0.3.2",
|
|
94
95
|
"uuid": "^9.0.0"
|
package/types.d.ts
CHANGED
|
@@ -203,6 +203,13 @@ 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
|
+
|
|
206
213
|
/**
|
|
207
214
|
* @description The Antom main class, all uses are based on this class instance
|
|
208
215
|
*/
|
|
@@ -347,8 +354,8 @@ export declare const AntomSDKErrorCodes: {
|
|
|
347
354
|
readonly ELEMENT_DEFINE_ERROR: "ELEMENT_DEFINE_ERROR";
|
|
348
355
|
readonly ELEMENT_ALREADY_REGISTERED: "ELEMENT_ALREADY_REGISTERED";
|
|
349
356
|
readonly CANNOT_CREATE_SAME_ELEMENT_TWICE: "CANNOT_CREATE_SAME_ELEMENT_TWICE";
|
|
350
|
-
readonly GROUPS_ONLY_ONE_MAIN_ELEMENT: "GROUPS_ONLY_ONE_MAIN_ELEMENT";
|
|
351
|
-
readonly GROUPS_NOT_FOUND_MAIN_ELEMENT: "GROUPS_NOT_FOUND_MAIN_ELEMENT";
|
|
357
|
+
readonly GROUPS_ONLY_ONE_MAIN_ELEMENT: "GROUPS_ONLY_ONE_MAIN_ELEMENT";
|
|
358
|
+
readonly GROUPS_NOT_FOUND_MAIN_ELEMENT: "GROUPS_NOT_FOUND_MAIN_ELEMENT";
|
|
352
359
|
readonly NOT_SUPPORT_ELEMENT: "NOT_SUPPORT_ELEMENT";
|
|
353
360
|
readonly NOT_SUPPORT_SUBMIT: "NOT_SUPPORT_SUBMIT";
|
|
354
361
|
readonly UPDATE_CONFIG_TIMEOUT: "UPDATE_CONFIG_TIMEOUT";
|
|
@@ -2331,6 +2338,7 @@ export declare interface CVVAppConfig extends BaseElementAppConfig {
|
|
|
2331
2338
|
/* Excluded from this release type: renderData */
|
|
2332
2339
|
/* Excluded from this release type: sdkVersion */
|
|
2333
2340
|
/* Excluded from this release type: _requestConfig */
|
|
2341
|
+
/* Excluded from this release type: preloadTelemetryContext */
|
|
2334
2342
|
/**
|
|
2335
2343
|
* @description 语言配置
|
|
2336
2344
|
*/
|
|
@@ -3287,6 +3295,7 @@ export declare interface ExpressAppConfig extends BaseElementAppConfig {
|
|
|
3287
3295
|
/* Excluded from this release type: setupError */
|
|
3288
3296
|
/* Excluded from this release type: locale */
|
|
3289
3297
|
/* Excluded from this release type: _paypalSdkEnvironment */
|
|
3298
|
+
/* Excluded from this release type: preloadTelemetryContext */
|
|
3290
3299
|
/**
|
|
3291
3300
|
* 是否运行在 Native App 的 WebView 中。
|
|
3292
3301
|
* 为 true 时,跳转通过 onRedirect 事件委托给 Native 端处理。
|
|
@@ -4793,6 +4802,8 @@ export declare interface LoadAntomConfig extends Omit<BaseFactoryConfig, 'tracke
|
|
|
4793
4802
|
* @description 环境配置,默认为prod
|
|
4794
4803
|
*/
|
|
4795
4804
|
env?: 'sandbox' | 'prod';
|
|
4805
|
+
/** Starts best-effort Elements2 resource preload without delaying loadAntom. */
|
|
4806
|
+
preload?: AntomPreloadConfig;
|
|
4796
4807
|
}
|
|
4797
4808
|
|
|
4798
4809
|
/**
|
|
@@ -7368,6 +7379,7 @@ export declare interface PaymentAppConfig extends BaseElementAppConfig {
|
|
|
7368
7379
|
/* Excluded from this release type: sdkVersion */
|
|
7369
7380
|
/* Excluded from this release type: _requestConfig */
|
|
7370
7381
|
/* Excluded from this release type: logMetaData */
|
|
7382
|
+
/* Excluded from this release type: preloadTelemetryContext */
|
|
7371
7383
|
/* Excluded from this release type: heightOfVisible */
|
|
7372
7384
|
/**
|
|
7373
7385
|
* Amount & Currency
|
|
@@ -8216,6 +8228,8 @@ declare interface PollingSetting {
|
|
|
8216
8228
|
pollingTimes?: string;
|
|
8217
8229
|
}
|
|
8218
8230
|
|
|
8231
|
+
/* Excluded from this release type: PreloadTelemetryContext */
|
|
8232
|
+
|
|
8219
8233
|
declare interface PromotionDetail {
|
|
8220
8234
|
/**
|
|
8221
8235
|
* @description promotion amount for mobile view
|
|
@@ -24882,6 +24896,7 @@ export declare interface VaultingAppConfig extends BaseElementAppConfig {
|
|
|
24882
24896
|
/* Excluded from this release type: renderDataError */
|
|
24883
24897
|
/* Excluded from this release type: sdkVersion */
|
|
24884
24898
|
/* Excluded from this release type: _requestConfig */
|
|
24899
|
+
/* Excluded from this release type: preloadTelemetryContext */
|
|
24885
24900
|
}
|
|
24886
24901
|
|
|
24887
24902
|
export declare type VaultingAppearance = PickAntomAppearance<VaultingAppearanceProps>;
|
package/types.untrimmed.d.ts
CHANGED
|
@@ -284,6 +284,13 @@ 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
|
+
|
|
287
294
|
/**
|
|
288
295
|
* @description The Antom main class, all uses are based on this class instance
|
|
289
296
|
*/
|
|
@@ -439,8 +446,8 @@ export declare const AntomSDKErrorCodes: {
|
|
|
439
446
|
readonly ELEMENT_DEFINE_ERROR: "ELEMENT_DEFINE_ERROR";
|
|
440
447
|
readonly ELEMENT_ALREADY_REGISTERED: "ELEMENT_ALREADY_REGISTERED";
|
|
441
448
|
readonly CANNOT_CREATE_SAME_ELEMENT_TWICE: "CANNOT_CREATE_SAME_ELEMENT_TWICE";
|
|
442
|
-
readonly GROUPS_ONLY_ONE_MAIN_ELEMENT: "GROUPS_ONLY_ONE_MAIN_ELEMENT";
|
|
443
|
-
readonly GROUPS_NOT_FOUND_MAIN_ELEMENT: "GROUPS_NOT_FOUND_MAIN_ELEMENT";
|
|
449
|
+
readonly GROUPS_ONLY_ONE_MAIN_ELEMENT: "GROUPS_ONLY_ONE_MAIN_ELEMENT";
|
|
450
|
+
readonly GROUPS_NOT_FOUND_MAIN_ELEMENT: "GROUPS_NOT_FOUND_MAIN_ELEMENT";
|
|
444
451
|
readonly NOT_SUPPORT_ELEMENT: "NOT_SUPPORT_ELEMENT";
|
|
445
452
|
readonly NOT_SUPPORT_SUBMIT: "NOT_SUPPORT_SUBMIT";
|
|
446
453
|
readonly UPDATE_CONFIG_TIMEOUT: "UPDATE_CONFIG_TIMEOUT";
|
|
@@ -2738,6 +2745,8 @@ export declare interface CVVAppConfig extends BaseElementAppConfig {
|
|
|
2738
2745
|
* @internal 内部联调使用,生产环境传递无效
|
|
2739
2746
|
*/
|
|
2740
2747
|
_requestConfig?: Partial<Omit<RequestOptions, 'scope' | 'tracker'>>;
|
|
2748
|
+
/** @internal Elements2 preload grouping data. */
|
|
2749
|
+
preloadTelemetryContext?: PreloadTelemetryContext;
|
|
2741
2750
|
/**
|
|
2742
2751
|
* @description 语言配置
|
|
2743
2752
|
*/
|
|
@@ -3719,6 +3728,8 @@ export declare interface ExpressAppConfig extends BaseElementAppConfig {
|
|
|
3719
3728
|
locale?: string;
|
|
3720
3729
|
/** @internal PayPal v6 core script environment injected from the element env. */
|
|
3721
3730
|
_paypalSdkEnvironment?: 'sandbox' | 'prod';
|
|
3731
|
+
/** @internal Elements2 preload grouping data. */
|
|
3732
|
+
preloadTelemetryContext?: PreloadTelemetryContext;
|
|
3722
3733
|
/**
|
|
3723
3734
|
* 是否运行在 Native App 的 WebView 中。
|
|
3724
3735
|
* 为 true 时,跳转通过 onRedirect 事件委托给 Native 端处理。
|
|
@@ -5244,6 +5255,8 @@ export declare interface LoadAntomConfig extends Omit<BaseFactoryConfig, 'tracke
|
|
|
5244
5255
|
* @description 环境配置,默认为prod
|
|
5245
5256
|
*/
|
|
5246
5257
|
env?: 'sandbox' | 'prod';
|
|
5258
|
+
/** Starts best-effort Elements2 resource preload without delaying loadAntom. */
|
|
5259
|
+
preload?: AntomPreloadConfig;
|
|
5247
5260
|
}
|
|
5248
5261
|
|
|
5249
5262
|
/**
|
|
@@ -7852,6 +7865,8 @@ export declare interface PaymentAppConfig extends BaseElementAppConfig {
|
|
|
7852
7865
|
merchantId?: string;
|
|
7853
7866
|
paymentMethodType?: string;
|
|
7854
7867
|
};
|
|
7868
|
+
/** @internal Elements2 preload grouping data. */
|
|
7869
|
+
preloadTelemetryContext?: PreloadTelemetryContext;
|
|
7855
7870
|
/**
|
|
7856
7871
|
* @internal 内部使用,无需用户传递,高度信息
|
|
7857
7872
|
*/
|
|
@@ -8709,6 +8724,22 @@ declare interface PollingSetting {
|
|
|
8709
8724
|
pollingTimes?: string;
|
|
8710
8725
|
}
|
|
8711
8726
|
|
|
8727
|
+
/** @internal Telemetry context passed to Elements2 through the existing handshake. */
|
|
8728
|
+
export declare interface PreloadTelemetryContext {
|
|
8729
|
+
requested: boolean;
|
|
8730
|
+
phaseAtElementCreate: 'not_requested' | 'resolving' | 'running' | 'critical_completed' | 'failed' | 'skipped';
|
|
8731
|
+
leadTimeMs?: number;
|
|
8732
|
+
criticalDurationMs?: number;
|
|
8733
|
+
taskId?: string;
|
|
8734
|
+
preconnectedRegions?: readonly ('SG' | 'US' | 'DE')[];
|
|
8735
|
+
preconnectionMode?: 'configured' | 'regional';
|
|
8736
|
+
actualRegion?: string;
|
|
8737
|
+
predictionResult?: 'hit' | 'miss';
|
|
8738
|
+
preconnectionStatus?: 'running' | 'completed' | 'partial_failed' | 'failed';
|
|
8739
|
+
preconnectionLeadTimeMs?: number;
|
|
8740
|
+
preconnectionReadyBeforeFirstRpc?: boolean;
|
|
8741
|
+
}
|
|
8742
|
+
|
|
8712
8743
|
declare interface PromotionDetail {
|
|
8713
8744
|
/**
|
|
8714
8745
|
* @description promotion amount for mobile view
|
|
@@ -25400,6 +25431,8 @@ export declare interface VaultingAppConfig extends BaseElementAppConfig {
|
|
|
25400
25431
|
* @internal 内部联调使用,生产环境传递无效
|
|
25401
25432
|
*/
|
|
25402
25433
|
_requestConfig?: Partial<Omit<RequestOptions, 'scope' | 'tracker'>>;
|
|
25434
|
+
/** @internal Elements2 preload grouping data. */
|
|
25435
|
+
preloadTelemetryContext?: PreloadTelemetryContext;
|
|
25403
25436
|
}
|
|
25404
25437
|
|
|
25405
25438
|
export declare type VaultingAppearance = PickAntomAppearance<VaultingAppearanceProps>;
|