@alipay/ams-checkout 0.0.1784284130-dev.3 → 0.0.1784626568-dev.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.
- 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 +8 -16
- package/esm/modern/index.js +1 -1
- package/esm/modern/tools.js +1 -1
- package/esm/plugin/component/channel.js +3 -1
- package/esm/tsdoc-metadata.json +1 -1
- package/esm/util/logger.js +1 -1
- package/package.json +1 -1
- package/types.d.ts +1 -29
- package/types.untrimmed.d.ts +1 -29
|
@@ -92,7 +92,9 @@ export var handleGooglePay = function handleGooglePay(data) {
|
|
|
92
92
|
var script = document.createElement('script');
|
|
93
93
|
script.src = 'https://pay.google.com/gp/p/js/pay.js';
|
|
94
94
|
script.async = true;
|
|
95
|
-
|
|
95
|
+
// 使用原生 appendChild 避免微前端沙箱(如 qiankun)将动态 <script> 劫持为 fetch 加载,
|
|
96
|
+
// 导致不支持 CORS 的第三方脚本(如 pay.google.com)加载失败
|
|
97
|
+
Node.prototype.appendChild.call(document.body, script);
|
|
96
98
|
// 执行googlePay sdk
|
|
97
99
|
script.onload = function () {
|
|
98
100
|
var paymentsClient = new window.google.payments.api.PaymentsClient({
|
package/esm/tsdoc-metadata.json
CHANGED
package/esm/util/logger.js
CHANGED
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -313,7 +313,7 @@ export declare const AntomSDKErrorCodes: {
|
|
|
313
313
|
readonly UPDATE_CONFIG_TIMEOUT: "UPDATE_CONFIG_TIMEOUT";
|
|
314
314
|
readonly UPDATE_CONFIG_NOT_READY: "UPDATE_CONFIG_NOT_READY";
|
|
315
315
|
/**
|
|
316
|
-
*
|
|
316
|
+
* @description 是否需要更换 session 重试
|
|
317
317
|
*/
|
|
318
318
|
readonly INVALID_MODAL_URL: "INVALID_MODAL_URL";
|
|
319
319
|
readonly LOAD_DEBUGGER_FAILED: "LOAD_DEBUGGER_FAILED";
|
|
@@ -24252,34 +24252,6 @@ export declare const themeColorMap: Record<AntomTheme, {
|
|
|
24252
24252
|
backgroundColor: string;
|
|
24253
24253
|
}>;
|
|
24254
24254
|
|
|
24255
|
-
/** Configuration options for rendering a toast notification. */
|
|
24256
|
-
export declare interface ToastParams {
|
|
24257
|
-
/** Text displayed in the toast. */
|
|
24258
|
-
message: string;
|
|
24259
|
-
/** Placement of the toast container within the viewport. */
|
|
24260
|
-
position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center';
|
|
24261
|
-
/** Toast background color in any valid CSS color format. */
|
|
24262
|
-
backgroundColor?: string;
|
|
24263
|
-
/** Toast text color in any valid CSS color format. */
|
|
24264
|
-
color?: string;
|
|
24265
|
-
/** Toast padding in any valid CSS length format. */
|
|
24266
|
-
padding?: string;
|
|
24267
|
-
/** Toast border radius in any valid CSS length format. */
|
|
24268
|
-
borderRadius?: string;
|
|
24269
|
-
/** Toast font size in any valid CSS length format. */
|
|
24270
|
-
fontSize?: string;
|
|
24271
|
-
/** Stacking order of the toast container. */
|
|
24272
|
-
zIndex?: number;
|
|
24273
|
-
/** Toast width in any valid CSS length format. */
|
|
24274
|
-
width?: string;
|
|
24275
|
-
/** Time in milliseconds before the toast starts to disappear. */
|
|
24276
|
-
duration?: number;
|
|
24277
|
-
/** Preset status icon displayed above the message. */
|
|
24278
|
-
icon?: 'SUCCESS' | 'FAIL';
|
|
24279
|
-
/** Whether the status icon uses a spinning animation. */
|
|
24280
|
-
spin?: boolean;
|
|
24281
|
-
}
|
|
24282
|
-
|
|
24283
24255
|
/**
|
|
24284
24256
|
* @description 交易信息
|
|
24285
24257
|
*/
|
package/types.untrimmed.d.ts
CHANGED
|
@@ -406,7 +406,7 @@ export declare const AntomSDKErrorCodes: {
|
|
|
406
406
|
readonly UPDATE_CONFIG_TIMEOUT: "UPDATE_CONFIG_TIMEOUT";
|
|
407
407
|
readonly UPDATE_CONFIG_NOT_READY: "UPDATE_CONFIG_NOT_READY";
|
|
408
408
|
/**
|
|
409
|
-
*
|
|
409
|
+
* @description 是否需要更换 session 重试
|
|
410
410
|
*/
|
|
411
411
|
readonly INVALID_MODAL_URL: "INVALID_MODAL_URL";
|
|
412
412
|
readonly LOAD_DEBUGGER_FAILED: "LOAD_DEBUGGER_FAILED";
|
|
@@ -24722,34 +24722,6 @@ export declare const themeColorMap: Record<AntomTheme, {
|
|
|
24722
24722
|
backgroundColor: string;
|
|
24723
24723
|
}>;
|
|
24724
24724
|
|
|
24725
|
-
/** Configuration options for rendering a toast notification. */
|
|
24726
|
-
export declare interface ToastParams {
|
|
24727
|
-
/** Text displayed in the toast. */
|
|
24728
|
-
message: string;
|
|
24729
|
-
/** Placement of the toast container within the viewport. */
|
|
24730
|
-
position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center';
|
|
24731
|
-
/** Toast background color in any valid CSS color format. */
|
|
24732
|
-
backgroundColor?: string;
|
|
24733
|
-
/** Toast text color in any valid CSS color format. */
|
|
24734
|
-
color?: string;
|
|
24735
|
-
/** Toast padding in any valid CSS length format. */
|
|
24736
|
-
padding?: string;
|
|
24737
|
-
/** Toast border radius in any valid CSS length format. */
|
|
24738
|
-
borderRadius?: string;
|
|
24739
|
-
/** Toast font size in any valid CSS length format. */
|
|
24740
|
-
fontSize?: string;
|
|
24741
|
-
/** Stacking order of the toast container. */
|
|
24742
|
-
zIndex?: number;
|
|
24743
|
-
/** Toast width in any valid CSS length format. */
|
|
24744
|
-
width?: string;
|
|
24745
|
-
/** Time in milliseconds before the toast starts to disappear. */
|
|
24746
|
-
duration?: number;
|
|
24747
|
-
/** Preset status icon displayed above the message. */
|
|
24748
|
-
icon?: 'SUCCESS' | 'FAIL';
|
|
24749
|
-
/** Whether the status icon uses a spinning animation. */
|
|
24750
|
-
spin?: boolean;
|
|
24751
|
-
}
|
|
24752
|
-
|
|
24753
24725
|
/**
|
|
24754
24726
|
* @description 交易信息
|
|
24755
24727
|
*/
|