@alipay/ams-checkout 0.0.1788166152-dev.6 → 0.0.1788166152-dev.7
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.d.ts +1 -1
- package/esm/core/component/element/modernElementController/index.js +9 -9
- package/esm/modern/{modern/index.d.ts → index.d.ts} +1 -1
- package/esm/modern/index.js +1 -1
- package/esm/modern/tools.js +1 -1
- package/esm/util/logger.js +1 -1
- package/package.json +1 -2
- package/types.d.ts +2 -17
- package/types.untrimmed.d.ts +2 -35
- package/esm/modern/component/channel.d.ts +0 -21
- package/esm/modern/component/component.inline.style.d.ts +0 -10
- package/esm/modern/component/component.popup.style.d.ts +0 -26
- package/esm/modern/component/popupWindow.style.d.ts +0 -27
- package/esm/modern/config/index.d.ts +0 -23
- package/esm/modern/config/request.d.ts +0 -21
- package/esm/modern/constant/auto-debit.d.ts +0 -12
- package/esm/modern/constant/easysafepay.d.ts +0 -16
- package/esm/modern/constant/element.d.ts +0 -27
- package/esm/modern/constant/index.d.ts +0 -331
- package/esm/modern/core/bus/ability/callback.d.ts +0 -9
- package/esm/modern/core/bus/ability/security.d.ts +0 -10
- package/esm/modern/core/bus/ability/tracker.d.ts +0 -9
- package/esm/modern/core/bus/index.d.ts +0 -125
- package/esm/modern/core/bus/interface.d.ts +0 -36
- package/esm/modern/core/component/address.d.ts +0 -8
- package/esm/modern/core/component/appPreloadProcessing.d.ts +0 -1
- package/esm/modern/core/component/ckp/index.d.ts +0 -29
- package/esm/modern/core/component/element/EventCenter/index.d.ts +0 -41
- package/esm/modern/core/component/element/config.d.ts +0 -10
- package/esm/modern/core/component/element/elementContainerService/containerService.d.ts +0 -34
- package/esm/modern/core/component/element/elementContainerService/index.d.ts +0 -20
- package/esm/modern/core/component/element/elementController/index.d.ts +0 -54
- package/esm/modern/core/component/element/elementProcessor/addressProcessor.d.ts +0 -20
- package/esm/modern/core/component/element/elementProcessor/authProcessor.d.ts +0 -20
- package/esm/modern/core/component/element/elementProcessor/baseElementProcessor.d.ts +0 -42
- package/esm/modern/core/component/element/elementProcessor/convertPaymentMethods.d.ts +0 -22
- package/esm/modern/core/component/element/elementProcessor/paymentProcessor.d.ts +0 -37
- package/esm/modern/core/component/element/index.d.ts +0 -17
- package/esm/modern/core/component/element/mock.d.ts +0 -10
- package/esm/modern/core/component/element/modernElementController/adapter.d.ts +0 -19
- package/esm/modern/core/component/element/modernElementController/index.d.ts +0 -172
- package/esm/modern/core/component/element/type.d.ts +0 -586
- package/esm/modern/core/component/element/util.d.ts +0 -93
- package/esm/modern/core/component/index.d.ts +0 -58
- package/esm/modern/core/instance/index.d.ts +0 -97
- package/esm/modern/core/utils/connectConfig.d.ts +0 -11
- package/esm/modern/foundation/core/index.d.ts +0 -36
- package/esm/modern/foundation/index.d.ts +0 -93
- package/esm/modern/foundation/product-processor/autoDebit/deps.d.ts +0 -14
- package/esm/modern/foundation/product-processor/autoDebit/index.d.ts +0 -48
- package/esm/modern/foundation/product-processor/easysafepay/deps.d.ts +0 -20
- package/esm/modern/foundation/product-processor/easysafepay/index.d.ts +0 -29
- package/esm/modern/foundation/product-processor/element/index.d.ts +0 -7
- package/esm/modern/foundation/service/api-bus/ability/globalData.d.ts +0 -10
- package/esm/modern/foundation/service/api-bus/ability/request.d.ts +0 -10
- package/esm/modern/foundation/service/api-bus/ability/security.d.ts +0 -12
- package/esm/modern/foundation/service/api-bus/ability/tracker.d.ts +0 -9
- package/esm/modern/foundation/service/api-bus/busManager.d.ts +0 -127
- package/esm/modern/foundation/service/api-bus/index.d.ts +0 -20
- package/esm/modern/foundation/service/api-bus/interface.d.ts +0 -48
- package/esm/modern/foundation/service/container/index.d.ts +0 -42
- package/esm/modern/foundation/service/container/popup.d.ts +0 -31
- package/esm/modern/foundation/service/container/utils.d.ts +0 -7
- package/esm/modern/foundation/service/event-center.d.ts +0 -82
- package/esm/modern/foundation/service/global-data/index.d.ts +0 -11
- package/esm/modern/foundation/service/index.d.ts +0 -19
- package/esm/modern/foundation/service/log/index.d.ts +0 -44
- package/esm/modern/foundation/service/log/keys.d.ts +0 -13
- package/esm/modern/foundation/service/log/processor.d.ts +0 -9
- package/esm/modern/foundation/service/log/types.d.ts +0 -33
- package/esm/modern/foundation/service/requester/deps.d.ts +0 -17
- package/esm/modern/foundation/service/requester/requester.d.ts +0 -22
- package/esm/modern/foundation/service/security/index.d.ts +0 -33
- package/esm/modern/foundation/service/security/security.d.ts +0 -54
- package/esm/modern/foundation/utils/gray_scale_utils.d.ts +0 -7
- package/esm/modern/foundation/utils/payment_context_utils.d.ts +0 -13
- package/esm/modern/foundation/utils/payment_product_utils.d.ts +0 -13
- package/esm/modern/foundation/utils/preload_helper.d.ts +0 -24
- package/esm/modern/foundation/utils/redirect_utils.d.ts +0 -11
- package/esm/modern/foundation/utils/system_events.d.ts +0 -4
- package/esm/modern/foundation/utils/web_app_url_utils.d.ts +0 -114
- package/esm/modern/loader/constant.d.ts +0 -36
- package/esm/modern/loader/utils/proxyPerformance.d.ts +0 -20
- package/esm/modern/main.d.ts +0 -54
- package/esm/modern/modern/loadAntomTracker.d.ts +0 -7
- package/esm/modern/modern/preload/antomManifestAdapter.d.ts +0 -11
- package/esm/modern/modern/preload/config.d.ts +0 -10
- package/esm/modern/modern/preload/gatewayPreconnection.d.ts +0 -53
- package/esm/modern/modern/preload/preloadAntomElements.d.ts +0 -9
- package/esm/modern/modern/preload/startAntomPreload.d.ts +0 -2
- package/esm/modern/modern/sdk/applepay-core/ApplePayHostService.d.ts +0 -102
- package/esm/modern/modern/sdk/elements/CVVElement.d.ts +0 -144
- package/esm/modern/modern/sdk/elements/PaymentElement.d.ts +0 -204
- package/esm/modern/modern/sdk/elements/appearanceRules.d.ts +0 -59
- package/esm/modern/modern/sdk/elements/appearanceRulesDefaults.d.ts +0 -2
- package/esm/modern/modern/sdk/eventsMap.d.ts +0 -135
- package/esm/modern/modern/sdk/oneapi/iexpfront/PaymentSessionService.d.ts +0 -69
- package/esm/modern/modern/sdk/oneapi/iexpfront/definitions.d.ts +0 -5311
- package/esm/modern/modern/sdk/oneapi/iexpfront/preConnection.d.ts +0 -6
- package/esm/modern/modern/sdk/stageName.d.ts +0 -3
- package/esm/modern/modern/sdk/tools/awaitWrap.d.ts +0 -14
- package/esm/modern/modern/sdk/tools/buildPageUrl.d.ts +0 -4
- package/esm/modern/modern/sdk/tools/checkSessionData.d.ts +0 -1
- package/esm/modern/modern/sdk/tools/expressElement/applePay.d.ts +0 -9
- package/esm/modern/modern/sdk/tools/expressElement/applePayHostToken.d.ts +0 -32
- package/esm/modern/modern/sdk/tools/expressElement/types.d.ts +0 -277
- package/esm/modern/modern/sdk/tools/getDevReqConfig.d.ts +0 -2
- package/esm/modern/modern/sdk/tools/getLocaleFromRenderData.d.ts +0 -6
- package/esm/modern/modern/sdk/tools/getMetaData.d.ts +0 -126
- package/esm/modern/modern/sdk/tools/modalMessageMonitor.d.ts +0 -41
- package/esm/modern/modern/sdk/tools/openModal.d.ts +0 -20
- package/esm/modern/modern/sdk/tools/paymentElement/applePayHostToken.d.ts +0 -38
- package/esm/modern/modern/sdk/tools/paymentElement/googlePayHostToken.d.ts +0 -38
- package/esm/modern/modern/sdk/tools/paymentElement/tracker.d.ts +0 -16
- package/esm/modern/modern/sdk/tools/paymentElement/walletHostListeners.d.ts +0 -19
- package/esm/modern/modern/sdk/tools/preloadTracking.d.ts +0 -5
- package/esm/modern/modern/sdk/tools/showToast.d.ts +0 -33
- package/esm/modern/modern/sdk/tools/validatePaymentAmount.d.ts +0 -19
- package/esm/modern/modern/sdk/tracking/elementTracker.d.ts +0 -65
- package/esm/modern/modern/sdk/types.d.ts +0 -310
- package/esm/modern/modern/tools.d.ts +0 -26
- package/esm/modern/plugin/applepay/component.d.ts +0 -50
- package/esm/modern/plugin/applepay/index.d.ts +0 -17
- package/esm/modern/plugin/applepay/interface.d.ts +0 -161
- package/esm/modern/plugin/applepay/service.d.ts +0 -54
- package/esm/modern/plugin/component/cashierApp.d.ts +0 -38
- package/esm/modern/plugin/component/channel.d.ts +0 -73
- package/esm/modern/plugin/component/component.inline.style.d.ts +0 -10
- package/esm/modern/plugin/component/component.popup.style.d.ts +0 -25
- package/esm/modern/plugin/component/index.d.ts +0 -133
- package/esm/modern/plugin/component/popupWindow.style.d.ts +0 -11
- package/esm/modern/plugin/const.d.ts +0 -2
- package/esm/modern/plugin/payment-element/utils.d.ts +0 -2
- package/esm/modern/plugin/paypal/index.d.ts +0 -20
- package/esm/modern/plugin/type.d.ts +0 -34
- package/esm/modern/plugin/utils.d.ts +0 -6
- package/esm/modern/preload/antomManifestAdapter.d.ts +0 -11
- package/esm/modern/preload/antomManifestAdapter.js +0 -117
- package/esm/modern/preload/config.d.ts +0 -10
- package/esm/modern/preload/config.js +0 -37
- package/esm/modern/preload/gatewayPreconnection.d.ts +0 -53
- package/esm/modern/preload/gatewayPreconnection.js +0 -213
- package/esm/modern/preload/preloadAntomElements.d.ts +0 -9
- package/esm/modern/preload/preloadAntomElements.js +0 -95
- package/esm/modern/preload/startAntomPreload.d.ts +0 -2
- package/esm/modern/preload/startAntomPreload.js +0 -9
- package/esm/modern/request/index.d.ts +0 -9
- package/esm/modern/request/utils.d.ts +0 -28
- package/esm/modern/service/index.d.ts +0 -13
- package/esm/modern/types/index.d.ts +0 -856
- package/esm/modern/util/beforeConfirm.d.ts +0 -14
- package/esm/modern/util/createIframeNode.d.ts +0 -6
- package/esm/modern/util/debug.d.ts +0 -1
- package/esm/modern/util/get.d.ts +0 -25
- package/esm/modern/util/getBackScheme.d.ts +0 -5
- package/esm/modern/util/index.d.ts +0 -61
- package/esm/modern/util/jshield-apdid/apdid-loader.d.ts +0 -89
- package/esm/modern/util/jshield-apdid/index.d.ts +0 -21
- package/esm/modern/util/logger.d.ts +0 -67
- package/esm/modern/util/mock.d.ts +0 -1
- package/esm/modern/util/redirect.d.ts +0 -6
- package/esm/modern/util/security-registry.d.ts +0 -72
- package/esm/modern/util/security.d.ts +0 -55
- package/esm/modern/util/spm-map.d.ts +0 -217
- package/esm/modern/util/storage.d.ts +0 -2
- package/esm/modern/util/timezone.d.ts +0 -1
- package/esm/modern/util/upgrade.d.ts +0 -39
- package/esm/modern/util/versionCompare.d.ts +0 -15
package/esm/config/index.js
CHANGED
|
@@ -30,7 +30,7 @@ export var v2AppMarmotMap = {
|
|
|
30
30
|
light_sandbox: 'https://checkout.antom.com',
|
|
31
31
|
prod: 'https://checkout.antom.com'
|
|
32
32
|
};
|
|
33
|
-
export var sdkVersion = "0.0.1788166152-dev.
|
|
33
|
+
export var sdkVersion = "0.0.1788166152-dev.7";
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* @description: 目前应用层分为v1和v2,会存在两个应用版本号不是同步发布的情况。所以需要把默认的应用版本号配置抽离出来。
|
|
@@ -40,7 +40,7 @@ export declare class ModernElementController implements IElementController {
|
|
|
40
40
|
private currentPaymentMethodType;
|
|
41
41
|
/** Removes the passive host-window modal monitor for this controller. */
|
|
42
42
|
private readonly stopModalMessageMonitor;
|
|
43
|
-
/**
|
|
43
|
+
/** True while submitPayment is running; prevents concurrent re-entry and duplicate wallet launches. */
|
|
44
44
|
private isSubmitting;
|
|
45
45
|
/**
|
|
46
46
|
* 当前实例解析出的 merchantId,供 trackXxx / reportApiEnd 统一带上。
|
|
@@ -50,10 +50,10 @@ import { safeParse } from "../util";
|
|
|
50
50
|
import { adaptAppearance, adaptSubmitResult } from "./adapter";
|
|
51
51
|
|
|
52
52
|
// ============================================================
|
|
53
|
-
//
|
|
54
|
-
// code
|
|
55
|
-
//
|
|
56
|
-
//
|
|
53
|
+
// Tracking helpers reuse the OpenSDK tracker singleton without changing OpenSDK code.
|
|
54
|
+
// Tracking code uses the 7882 prefix plus a phase suffix:
|
|
55
|
+
// 7882mount, 7882handshake, 7882element, and 7882 for errors.
|
|
56
|
+
// These calls are diagnostic only and do not change the business flow.
|
|
57
57
|
// ============================================================
|
|
58
58
|
|
|
59
59
|
var TRACK_CODE_PREFIX = '7882';
|
|
@@ -305,7 +305,7 @@ export var ModernElementController = /*#__PURE__*/function () {
|
|
|
305
305
|
_defineProperty(this, "currentPaymentMethodType", '');
|
|
306
306
|
/** Removes the passive host-window modal monitor for this controller. */
|
|
307
307
|
_defineProperty(this, "stopModalMessageMonitor", void 0);
|
|
308
|
-
/**
|
|
308
|
+
/** True while submitPayment is running; prevents concurrent re-entry and duplicate wallet launches. */
|
|
309
309
|
_defineProperty(this, "isSubmitting", false);
|
|
310
310
|
/**
|
|
311
311
|
* 当前实例解析出的 merchantId,供 trackXxx / reportApiEnd 统一带上。
|
|
@@ -628,8 +628,8 @@ export var ModernElementController = /*#__PURE__*/function () {
|
|
|
628
628
|
this.trackMount('setup_start');
|
|
629
629
|
// 缓存起来,submit时使用
|
|
630
630
|
this.notRedirectAfterComplete = renderOptions.notRedirectAfterComplete || false;
|
|
631
|
-
sessionData = this.options.sessionData; // checkSessionData
|
|
632
|
-
//
|
|
631
|
+
sessionData = this.options.sessionData; // checkSessionData throws AntomSDKError (SESSION_DATA_INVALID) on invalid session data.
|
|
632
|
+
// The mount catch reports it as mount_error, so no extra handling is needed here.
|
|
633
633
|
parseData = checkSessionData(sessionData, 'ELEMENT_PAYMENT');
|
|
634
634
|
this.merchantId || (this.merchantId = resolveMerchantId(parseData));
|
|
635
635
|
this.productScene = (parseData === null || parseData === void 0 || (_parseData$paymentSes = parseData.paymentSessionConfig) === null || _parseData$paymentSes === void 0 ? void 0 : _parseData$paymentSes.productScene) || '';
|
|
@@ -643,7 +643,7 @@ export var ModernElementController = /*#__PURE__*/function () {
|
|
|
643
643
|
hostSign: parseHostSign(sessionData),
|
|
644
644
|
env: lastEnv
|
|
645
645
|
}, getDevReqConfig()), {}, {
|
|
646
|
-
sdkVersion: "0.0.1788166152-dev.
|
|
646
|
+
sdkVersion: "0.0.1788166152-dev.7" || '',
|
|
647
647
|
tracker: this.createRequestTracker()
|
|
648
648
|
}));
|
|
649
649
|
isConnect = !!(parseData !== null && parseData !== void 0 && (_parseData$connectFac = parseData.connectFactor) !== null && _parseData$connectFac !== void 0 && _parseData$connectFac.enableConnect);
|
|
@@ -741,7 +741,7 @@ export var ModernElementController = /*#__PURE__*/function () {
|
|
|
741
741
|
// 新sdk字段
|
|
742
742
|
locale: locale,
|
|
743
743
|
// 新sdk字段
|
|
744
|
-
sdkVersion: "0.0.1788166152-dev.
|
|
744
|
+
sdkVersion: "0.0.1788166152-dev.7" || '',
|
|
745
745
|
// 新sdk字段
|
|
746
746
|
merchantId: (sdkQueryResult === null || sdkQueryResult === void 0 || (_sdkQueryResult$data = sdkQueryResult.data) === null || _sdkQueryResult$data === void 0 ? void 0 : _sdkQueryResult$data.merchantId) || '',
|
|
747
747
|
// 新sdk字段
|