@alipay/ams-checkout 2.0.31 → 2.0.32
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/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/tools/expressElement/types.d.ts +1 -1
- package/esm/modern/modern/sdk/tools/openModal.d.ts +3 -0
- package/esm/modern/tools.js +1 -1
- package/esm/tsdoc-metadata.json +1 -1
- package/esm/util/logger.js +1 -1
- package/package.json +1 -1
- package/types.d.ts +3 -1
- package/types.untrimmed.d.ts +3 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseElementAppConfig, BaseElementConfig, ErrorPayload } from '@antintl/opensdk-core';
|
|
2
2
|
import type { AppearanceRuleSelector, PickAntomAppearance } from '../../elements/appearanceRules';
|
|
3
3
|
import type { AntomBridgeWithNativeEventMap, PreloadTelemetryContext } from '../../types';
|
|
4
|
-
export declare const SUPPORTED_EXPRESS_METHODS: readonly ["paypal", "applePay", "googlePay", "alipay"];
|
|
4
|
+
export declare const SUPPORTED_EXPRESS_METHODS: readonly ["paypal", "applePay", "googlePay", "alipay", "connect"];
|
|
5
5
|
export type ExpressPaymentMethod = (typeof SUPPORTED_EXPRESS_METHODS)[number];
|
|
6
6
|
export type ExpressSetupError = ErrorPayload & {
|
|
7
7
|
expressPaymentType?: ExpressPaymentMethod;
|
|
@@ -6,10 +6,13 @@ export interface OpenModalParams extends Omit<BaseOpenModalConfig, 'hideCloseWhe
|
|
|
6
6
|
backgroundColor?: string;
|
|
7
7
|
};
|
|
8
8
|
textDirection?: 'ltr' | 'rtl';
|
|
9
|
+
/** Opt-in content height synchronization. Defaults to the existing fixed modal height. */
|
|
10
|
+
adaptiveHeight?: boolean;
|
|
9
11
|
}
|
|
10
12
|
export declare const openModal: (params: OpenModalParams) => {
|
|
11
13
|
iframe: HTMLIFrameElement;
|
|
12
14
|
destroy: () => void;
|
|
15
|
+
updateHeight: (contentHeight: number) => void;
|
|
13
16
|
};
|
|
14
17
|
/**
|
|
15
18
|
*
|