@alipay/ams-checkout 0.0.1791894177-dev.4 → 0.0.1793005653-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 +2 -2
- package/esm/modern/index.js +1 -1
- package/esm/modern/modern/sdk/types.d.ts +0 -6
- package/esm/modern/preload/config.js +14 -21
- package/esm/modern/tools.js +1 -1
- package/esm/tsdoc-metadata.json +1 -1
- package/esm/util/logger.js +1 -1
- package/package.json +2 -2
- package/types.d.ts +2 -39
- package/types.untrimmed.d.ts +3 -40
package/esm/tsdoc-metadata.json
CHANGED
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.
|
|
3
|
+
"version": "0.0.1793005653-dev.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "",
|
|
6
6
|
"exports": {
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
]
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@antintl/opensdk-preload": "^0.0
|
|
92
|
+
"@antintl/opensdk-preload": "^1.0.0",
|
|
93
93
|
"axios": "^1.3.4",
|
|
94
94
|
"proxy-polyfill": "^0.3.2",
|
|
95
95
|
"uuid": "^9.0.0"
|
package/types.d.ts
CHANGED
|
@@ -243,7 +243,7 @@ export declare class AntomSDK extends BaseElementsFactory {
|
|
|
243
243
|
* @throws {AntomSDKError} 当无法找到有效的主元素时抛出错误
|
|
244
244
|
*/
|
|
245
245
|
private extractMainElement;
|
|
246
|
-
confirmCardSetup(options: ConfirmCardSetupOptions): Promise<
|
|
246
|
+
confirmCardSetup(options: ConfirmCardSetupOptions): Promise<SubmitResult>;
|
|
247
247
|
private runConfirmCardSetup;
|
|
248
248
|
confirmPayment(options: ConfirmPaymentOptions): Promise<SubmitResult>;
|
|
249
249
|
private runConfirmPayment;
|
|
@@ -2173,12 +2173,6 @@ declare interface Configuration {
|
|
|
2173
2173
|
export declare interface ConfirmCardSetupOptions {
|
|
2174
2174
|
elements: BaseMainElement | BaseElements;
|
|
2175
2175
|
redirect?: 'always' | 'if_required';
|
|
2176
|
-
/**
|
|
2177
|
-
* @description Whether the antom sdk handles the next action automatically. Defaults to true.
|
|
2178
|
-
* When set to false, the sdk does not open the authorization page and returns it in
|
|
2179
|
-
* `session.nextAction` for the merchant to handle. Currently only affects PASSKEY authorization on Web.
|
|
2180
|
-
*/
|
|
2181
|
-
handleActions?: boolean;
|
|
2182
2176
|
}
|
|
2183
2177
|
|
|
2184
2178
|
export declare type ConfirmPaymentOptions = PaymentSubmitParams & {
|
|
@@ -24983,7 +24977,7 @@ export declare class VaultingElement extends BaseMainElement<VaultingElementConf
|
|
|
24983
24977
|
declare interface VaultingElementConfig extends BaseElementConfig<VaultingAppConfig> {
|
|
24984
24978
|
}
|
|
24985
24979
|
|
|
24986
|
-
export declare interface VaultingElementEvents extends AntomBridgeWithNativeEventMap<VaultingAppConfig, VaultingSubmitParams
|
|
24980
|
+
export declare interface VaultingElementEvents extends AntomBridgeWithNativeEventMap<VaultingAppConfig, VaultingSubmitParams> {
|
|
24987
24981
|
}
|
|
24988
24982
|
|
|
24989
24983
|
/**
|
|
@@ -24991,37 +24985,6 @@ export declare interface VaultingElementEvents extends AntomBridgeWithNativeEven
|
|
|
24991
24985
|
*/
|
|
24992
24986
|
export declare interface VaultingSubmitParams {
|
|
24993
24987
|
redirect: 'if_required' | 'always';
|
|
24994
|
-
/**
|
|
24995
|
-
* @description Whether the antom sdk handles the next action automatically. Defaults to true.
|
|
24996
|
-
* Currently only affects PASSKEY authorization on Web.
|
|
24997
|
-
*/
|
|
24998
|
-
handleActions?: boolean;
|
|
24999
|
-
}
|
|
25000
|
-
|
|
25001
|
-
/**
|
|
25002
|
-
* @description Vaulting element submit result
|
|
25003
|
-
*/
|
|
25004
|
-
export declare interface VaultingSubmitResult extends SubmitResult {
|
|
25005
|
-
/**
|
|
25006
|
-
* @description Present when the merchant must perform the next action itself,
|
|
25007
|
-
* e.g. PASSKEY authorization with `handleActions: false`.
|
|
25008
|
-
*/
|
|
25009
|
-
session?: {
|
|
25010
|
-
nextAction?: {
|
|
25011
|
-
/**
|
|
25012
|
-
* @description Authorization page url, can be opened directly in browser
|
|
25013
|
-
*/
|
|
25014
|
-
normalUrl?: string;
|
|
25015
|
-
/**
|
|
25016
|
-
* @description App scheme url
|
|
25017
|
-
*/
|
|
25018
|
-
schemeUrl?: string;
|
|
25019
|
-
/**
|
|
25020
|
-
* @description App link url
|
|
25021
|
-
*/
|
|
25022
|
-
applinkUrl?: string;
|
|
25023
|
-
};
|
|
25024
|
-
};
|
|
25025
24988
|
}
|
|
25026
24989
|
|
|
25027
24990
|
declare interface VendorLonghandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
|
package/types.untrimmed.d.ts
CHANGED
|
@@ -335,7 +335,7 @@ export declare class AntomSDK extends BaseElementsFactory {
|
|
|
335
335
|
* @throws {AntomSDKError} 当无法找到有效的主元素时抛出错误
|
|
336
336
|
*/
|
|
337
337
|
private extractMainElement;
|
|
338
|
-
confirmCardSetup(options: ConfirmCardSetupOptions): Promise<
|
|
338
|
+
confirmCardSetup(options: ConfirmCardSetupOptions): Promise<SubmitResult>;
|
|
339
339
|
private runConfirmCardSetup;
|
|
340
340
|
confirmPayment(options: ConfirmPaymentOptions): Promise<SubmitResult>;
|
|
341
341
|
private runConfirmPayment;
|
|
@@ -2568,12 +2568,6 @@ declare interface Configuration {
|
|
|
2568
2568
|
export declare interface ConfirmCardSetupOptions {
|
|
2569
2569
|
elements: BaseMainElement | BaseElements;
|
|
2570
2570
|
redirect?: 'always' | 'if_required';
|
|
2571
|
-
/**
|
|
2572
|
-
* @description Whether the antom sdk handles the next action automatically. Defaults to true.
|
|
2573
|
-
* When set to false, the sdk does not open the authorization page and returns it in
|
|
2574
|
-
* `session.nextAction` for the merchant to handle. Currently only affects PASSKEY authorization on Web.
|
|
2575
|
-
*/
|
|
2576
|
-
handleActions?: boolean;
|
|
2577
2571
|
}
|
|
2578
2572
|
|
|
2579
2573
|
export declare type ConfirmPaymentOptions = PaymentSubmitParams & {
|
|
@@ -25508,7 +25502,7 @@ export declare class VaultingElement extends BaseMainElement<VaultingElementConf
|
|
|
25508
25502
|
/**
|
|
25509
25503
|
* @internal
|
|
25510
25504
|
*/
|
|
25511
|
-
submit(data?: VaultingSubmitParams): Promise<
|
|
25505
|
+
submit(data?: VaultingSubmitParams): Promise<SubmitResult>;
|
|
25512
25506
|
mount(container: HTMLElement): Promise<void>;
|
|
25513
25507
|
on<T extends keyof VaultingElementEvents>(event: T, handler: (payload: VaultingElementEvents[T]) => void): void;
|
|
25514
25508
|
unmount(): void;
|
|
@@ -25525,7 +25519,7 @@ export declare class VaultingElement extends BaseMainElement<VaultingElementConf
|
|
|
25525
25519
|
declare interface VaultingElementConfig extends BaseElementConfig<VaultingAppConfig> {
|
|
25526
25520
|
}
|
|
25527
25521
|
|
|
25528
|
-
export declare interface VaultingElementEvents extends AntomBridgeWithNativeEventMap<VaultingAppConfig, VaultingSubmitParams
|
|
25522
|
+
export declare interface VaultingElementEvents extends AntomBridgeWithNativeEventMap<VaultingAppConfig, VaultingSubmitParams> {
|
|
25529
25523
|
}
|
|
25530
25524
|
|
|
25531
25525
|
/**
|
|
@@ -25533,37 +25527,6 @@ export declare interface VaultingElementEvents extends AntomBridgeWithNativeEven
|
|
|
25533
25527
|
*/
|
|
25534
25528
|
export declare interface VaultingSubmitParams {
|
|
25535
25529
|
redirect: 'if_required' | 'always';
|
|
25536
|
-
/**
|
|
25537
|
-
* @description Whether the antom sdk handles the next action automatically. Defaults to true.
|
|
25538
|
-
* Currently only affects PASSKEY authorization on Web.
|
|
25539
|
-
*/
|
|
25540
|
-
handleActions?: boolean;
|
|
25541
|
-
}
|
|
25542
|
-
|
|
25543
|
-
/**
|
|
25544
|
-
* @description Vaulting element submit result
|
|
25545
|
-
*/
|
|
25546
|
-
export declare interface VaultingSubmitResult extends SubmitResult {
|
|
25547
|
-
/**
|
|
25548
|
-
* @description Present when the merchant must perform the next action itself,
|
|
25549
|
-
* e.g. PASSKEY authorization with `handleActions: false`.
|
|
25550
|
-
*/
|
|
25551
|
-
session?: {
|
|
25552
|
-
nextAction?: {
|
|
25553
|
-
/**
|
|
25554
|
-
* @description Authorization page url, can be opened directly in browser
|
|
25555
|
-
*/
|
|
25556
|
-
normalUrl?: string;
|
|
25557
|
-
/**
|
|
25558
|
-
* @description App scheme url
|
|
25559
|
-
*/
|
|
25560
|
-
schemeUrl?: string;
|
|
25561
|
-
/**
|
|
25562
|
-
* @description App link url
|
|
25563
|
-
*/
|
|
25564
|
-
applinkUrl?: string;
|
|
25565
|
-
};
|
|
25566
|
-
};
|
|
25567
25530
|
}
|
|
25568
25531
|
|
|
25569
25532
|
declare interface VendorLonghandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
|