@alipay/ams-checkout 0.0.1763724075-dev.3 → 0.0.1763724075-dev.4
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 +1 -1
- package/dist/umd/ams-checkout.min.js +1 -1
- package/package.json +1 -1
- package/LEGAL.md +0 -6
- package/LICENSE +0 -6
- package/README.md +0 -49
- package/esm/component/channel.d.ts +0 -21
- package/esm/component/component.inline.style.d.ts +0 -10
- package/esm/component/component.popup.style.d.ts +0 -26
- package/esm/component/popupWindow.style.d.ts +0 -24
- package/esm/config/index.d.ts +0 -16
- package/esm/config/request.d.ts +0 -21
- package/esm/constant/auto-debit.d.ts +0 -12
- package/esm/constant/easysafepay.d.ts +0 -16
- package/esm/constant/element.d.ts +0 -26
- package/esm/constant/index.d.ts +0 -344
- package/esm/core/bus/ability/callback.d.ts +0 -9
- package/esm/core/bus/ability/security.d.ts +0 -10
- package/esm/core/bus/ability/tracker.d.ts +0 -9
- package/esm/core/bus/index.d.ts +0 -125
- package/esm/core/bus/interface.d.ts +0 -36
- package/esm/core/component/address.d.ts +0 -8
- package/esm/core/component/appPreloadProcessing.d.ts +0 -1
- package/esm/core/component/ckp/index.d.ts +0 -29
- package/esm/core/component/element/EventCenter/index.d.ts +0 -31
- package/esm/core/component/element/elementContainerService/containerService.d.ts +0 -34
- package/esm/core/component/element/elementContainerService/index.d.ts +0 -20
- package/esm/core/component/element/elementController/index.d.ts +0 -48
- package/esm/core/component/element/elementProcessor/addressProcessor.d.ts +0 -20
- package/esm/core/component/element/elementProcessor/authProcessor.d.ts +0 -20
- package/esm/core/component/element/elementProcessor/baseElementProcessor.d.ts +0 -41
- package/esm/core/component/element/elementProcessor/paymentProcessor.d.ts +0 -22
- package/esm/core/component/element/index.d.ts +0 -13
- package/esm/core/component/element/mock.d.ts +0 -10
- package/esm/core/component/element/type.d.ts +0 -443
- package/esm/core/component/element/util.d.ts +0 -85
- package/esm/core/component/index.d.ts +0 -58
- package/esm/core/drop-in/index.d.ts +0 -22
- package/esm/core/instance/index.d.ts +0 -89
- package/esm/foundation/core/index.d.ts +0 -36
- package/esm/foundation/index.d.ts +0 -97
- package/esm/foundation/product-processor/autoDebit/deps.d.ts +0 -14
- package/esm/foundation/product-processor/autoDebit/index.d.ts +0 -48
- package/esm/foundation/product-processor/easysafepay/deps.d.ts +0 -20
- package/esm/foundation/product-processor/easysafepay/index.d.ts +0 -29
- package/esm/foundation/product-processor/element/index.d.ts +0 -7
- package/esm/foundation/service/api-bus/ability/callback.d.ts +0 -9
- package/esm/foundation/service/api-bus/ability/globalData.d.ts +0 -10
- package/esm/foundation/service/api-bus/ability/request.d.ts +0 -10
- package/esm/foundation/service/api-bus/ability/security.d.ts +0 -12
- package/esm/foundation/service/api-bus/ability/tracker.d.ts +0 -9
- package/esm/foundation/service/api-bus/busManager.d.ts +0 -127
- package/esm/foundation/service/api-bus/index.d.ts +0 -20
- package/esm/foundation/service/api-bus/interface.d.ts +0 -48
- package/esm/foundation/service/container/index.d.ts +0 -42
- package/esm/foundation/service/container/popup.d.ts +0 -31
- package/esm/foundation/service/container/utils.d.ts +0 -7
- package/esm/foundation/service/event-center.d.ts +0 -82
- package/esm/foundation/service/global-data/index.d.ts +0 -11
- package/esm/foundation/service/index.d.ts +0 -19
- package/esm/foundation/service/log/index.d.ts +0 -43
- package/esm/foundation/service/log/keys.d.ts +0 -13
- package/esm/foundation/service/log/processor.d.ts +0 -9
- package/esm/foundation/service/log/types.d.ts +0 -33
- package/esm/foundation/service/requester/deps.d.ts +0 -17
- package/esm/foundation/service/requester/requester.d.ts +0 -22
- package/esm/foundation/service/security/index.d.ts +0 -28
- package/esm/foundation/service/security/security.d.ts +0 -33
- package/esm/foundation/utils/gray_scale_utils.d.ts +0 -7
- package/esm/foundation/utils/payment_context_utils.d.ts +0 -13
- package/esm/foundation/utils/payment_product_utils.d.ts +0 -13
- package/esm/foundation/utils/preload_helper.d.ts +0 -21
- package/esm/foundation/utils/redirect_utils.d.ts +0 -11
- package/esm/foundation/utils/system_events.d.ts +0 -4
- package/esm/foundation/utils/web_app_url_utils.d.ts +0 -114
- package/esm/index.d.ts +0 -5
- package/esm/loader/Proxy.d.ts +0 -5
- package/esm/loader/constant.d.ts +0 -36
- package/esm/loader/index.d.ts +0 -20
- package/esm/loader/utils/common.d.ts +0 -13
- package/esm/loader/utils/debugger.d.ts +0 -7
- package/esm/loader/utils/loadSDK.d.ts +0 -8
- package/esm/loader/utils/logger.d.ts +0 -10
- package/esm/loader/utils/proxyPerformance.d.ts +0 -20
- package/esm/main.d.ts +0 -45
- package/esm/plugin/applepay/component.d.ts +0 -50
- package/esm/plugin/applepay/index.d.ts +0 -17
- package/esm/plugin/applepay/interface.d.ts +0 -161
- package/esm/plugin/applepay/service.d.ts +0 -54
- package/esm/plugin/component/cashierApp.d.ts +0 -38
- package/esm/plugin/component/channel.d.ts +0 -57
- package/esm/plugin/component/component.inline.style.d.ts +0 -10
- package/esm/plugin/component/component.popup.style.d.ts +0 -25
- package/esm/plugin/component/index.d.ts +0 -133
- package/esm/plugin/component/popupWindow.style.d.ts +0 -11
- package/esm/plugin/const.d.ts +0 -2
- package/esm/plugin/drop-in/index.d.ts +0 -71
- package/esm/plugin/payment-element/utils.d.ts +0 -2
- package/esm/plugin/paypal/index.d.ts +0 -20
- package/esm/plugin/type.d.ts +0 -34
- package/esm/plugin/utils.d.ts +0 -6
- package/esm/request/index.d.ts +0 -9
- package/esm/request/utils.d.ts +0 -28
- package/esm/service/index.d.ts +0 -13
- package/esm/types/index.d.ts +0 -854
- package/esm/util/createIframeNode.d.ts +0 -6
- package/esm/util/debug.d.ts +0 -1
- package/esm/util/get.d.ts +0 -25
- package/esm/util/getBackScheme.d.ts +0 -5
- package/esm/util/index.d.ts +0 -61
- package/esm/util/integrationType.d.ts +0 -21
- package/esm/util/intl-callapp/es/browser.d.ts +0 -21
- package/esm/util/intl-callapp/es/evoke.d.ts +0 -13
- package/esm/util/intl-callapp/es/generate.d.ts +0 -29
- package/esm/util/intl-callapp/es/index.d.ts +0 -43
- package/esm/util/intl-callapp/es/main.d.ts +0 -41
- package/esm/util/intl-callapp/es/openWallet.d.ts +0 -15
- package/esm/util/intl-callapp/es/types.d.ts +0 -46
- package/esm/util/intl-callapp/es/utils/config.d.ts +0 -24
- package/esm/util/intl-callapp/es/utils/index.d.ts +0 -15
- package/esm/util/logger.d.ts +0 -66
- package/esm/util/mock.d.ts +0 -1
- package/esm/util/redirect.d.ts +0 -6
- package/esm/util/security.d.ts +0 -34
- package/esm/util/spm-map.d.ts +0 -211
- package/esm/util/storage.d.ts +0 -2
- package/esm/util/upgrade.d.ts +0 -39
- package/esm/util/versionCompare.d.ts +0 -15
package/package.json
CHANGED
package/LEGAL.md
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2022 International Business Group, Ant Group. All rights reserved.
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, and/or distribute the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
-
|
|
5
|
-
1. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE; and
|
|
6
|
-
2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
|
package/LICENSE
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2022 International Business Group, Ant Group. All rights reserved.
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, and/or distribute the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
-
|
|
5
|
-
1. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE; and
|
|
6
|
-
2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
|
package/README.md
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# AMS CHECKOUT
|
|
2
|
-
|
|
3
|
-
Use _AMS CHECKOUT_ as an ES module.
|
|
4
|
-
|
|
5
|
-
The front-end cashier sdk can be integrated once to quickly access payment methods around the world
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Badges
|
|
10
|
-
|
|
11
|
-
[![TNPM version][tnpm-image]][tnpm-url]
|
|
12
|
-
[![TNPM downloads][tnpm-downloads-image]][tnpm-url]
|
|
13
|
-

|
|
14
|
-
到海兔查看「@alipay/ams-checkout 的 [包信息][tnpm-url]、[产物预览][tnpm-files-url]、[依赖信息][tnpm-deps-url]、[历史版本][tnpm-versions-url]」
|
|
15
|
-
|
|
16
|
-
[tnpm-image]: https://hitutwa.antgroup-inc.cn/badge/v/@alipay/ams-checkout
|
|
17
|
-
[tnpm-downloads-image]: https://hitutwa.antgroup-inc.cn/badge/tnpm?package=@alipay/ams-checkout
|
|
18
|
-
[tnpm-url]: https://hitu.antgroup-inc.cn/package/@alipay/ams-checkout
|
|
19
|
-
[tnpm-files-url]: https://hitu.antgroup-inc.cn/package/@alipay/ams-checkout/files
|
|
20
|
-
[tnpm-deps-url]: https://hitu.antgroup-inc.cn/package/@alipay/ams-checkout/deps
|
|
21
|
-
[tnpm-versions-url]: https://hitu.antgroup-inc.cn/package/@alipay/ams-checkout/versions
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
## Features
|
|
26
|
-
|
|
27
|
-
- Efficient payment method rendering and high quality UI.
|
|
28
|
-
- Written in TypeScript with complete define types.
|
|
29
|
-
|
|
30
|
-
## Installation
|
|
31
|
-
|
|
32
|
-
Use `npm` to install the @alipay/ams-checkout module:
|
|
33
|
-
|
|
34
|
-
```sh
|
|
35
|
-
npm install @alipay/ams-checkout
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Usage
|
|
39
|
-
|
|
40
|
-
### `@alipay/ams-checkout`
|
|
41
|
-
|
|
42
|
-
---
|
|
43
|
-
|
|
44
|
-
# Legal Disclaimer
|
|
45
|
-
|
|
46
|
-
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, and/or distribute the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
47
|
-
|
|
48
|
-
1. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE; and
|
|
49
|
-
2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { type IPaymentSessionMetaData } from "../types";
|
|
2
|
-
export type IChannelBehavior = {
|
|
3
|
-
allowSubmitPayCallAhead: boolean;
|
|
4
|
-
createIframeNode: boolean;
|
|
5
|
-
loadApp: boolean;
|
|
6
|
-
buildSubmitPayExtParams?: (params: GetDoubleFaParams) => any;
|
|
7
|
-
allowClickOutsideClose?: boolean;
|
|
8
|
-
};
|
|
9
|
-
type GetDoubleFaParams = {
|
|
10
|
-
instanceId: string;
|
|
11
|
-
paymentSessionData: string;
|
|
12
|
-
paymentSessionObj: IPaymentSessionMetaData;
|
|
13
|
-
locale: string;
|
|
14
|
-
paymentMethodType: string;
|
|
15
|
-
env: string;
|
|
16
|
-
sdkVersion: string;
|
|
17
|
-
notRedirectAfterComplete: boolean;
|
|
18
|
-
};
|
|
19
|
-
export declare function getChannelBehavior(notRedirectAfterComplete: boolean, paymentSessionMetaData?: IPaymentSessionMetaData): IChannelBehavior | undefined;
|
|
20
|
-
export declare function getDoubleFaUrl(params: GetDoubleFaParams): string;
|
|
21
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ComponentSignEnum, PlatformEnum } from '../types';
|
|
2
|
-
interface Options {
|
|
3
|
-
componentSign?: ComponentSignEnum;
|
|
4
|
-
type: 'tabs' | 'Accordion';
|
|
5
|
-
isExpressCheckout?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const inlineComponentAddCss: () => void;
|
|
8
|
-
export declare const addInlineLoading: (_selector: HTMLDivElement, platform: PlatformEnum, options?: Options) => void;
|
|
9
|
-
export declare const createInlineBaseElement: (selector: string, containerId?: string) => HTMLDivElement;
|
|
10
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { PlatformEnum } from '../types';
|
|
2
|
-
export declare const componentCss = ".ams-component-container-mobile {\n width: 100%;\n height: 1px;\n position: fixed;\n bottom: -1px;\n left: 0;\n z-index: 1001;\n border-radius: 12px 12px 0 0;\n overflow: hidden;\n}\n.ams-component-container-mobile-animation{\n animation: ams-component-container-slide-in 0.3s ease-in-out;\n}\n\n.ams-component-section-desktop {\n font-size: 0;\n}\n\n.ams-component-container-hidden-mobile {\n width: 100%;\n height: 0px;\n position: fixed;\n bottom: -1px;\n left: 0;\n z-index: 1001;\n background-color: transparent;\n border-radius: 12px 12px 0 0;\n animation: ams-component-container-slide-out 0.26s ease-in forwards;\n overflow: hidden;\n}\n\n.ams-component-section-mobile {\n border-radius: 12px 12px 0 0;\n overflow: hidden;\n font-size: 0;\n height: 100%;\n}\n\n.ams-component-container-desktop {\n display: block;\n width: 672px;\n position: fixed;\n top: 50%;\n left: 50%;\n z-index: 1001;\n border-radius: 12px;\n overflow: hidden;\n transform-origin: 50% 50%;\n transform: translate(-50%, -50%);\n}\n.ams-component-container-desktop-animation{\n animation: ams-component-container-zoom-in 0.3s ease-in-out;\n animation-fill-mode: forwards\n}\n\n@keyframes ams-component-container-zoom-out {\n 0% {\n transform: translate(-50%, -50%) scale(1);\n -webkit-transform: translate(-50%, -50%) scale(1);\n opacity: 1\n }\n\n 100% {\n opacity: 0;\n transform: translate(-50%, -50%) scale(0.4);\n -webkit-transform: translate(-50%, -50%) scale(0.4);\n }\n}\n\n@keyframes ams-component-container-zoom-in {\n 0% {\n transform: translate(-50%, -50%) scale(0.4);\n opacity: 0\n }\n\n 100% {\n opacity: 1;\n transform: translate(-50%, -50%) scale(1);\n }\n}\n\n.ams-component-container-hidden-desktop {\n display: block;\n position: fixed;\n top: 50%;\n left: 50%;\n z-index: 1001;\n border-radius: 8px;\n overflow: hidden;\n animation: ams-component-container-zoom-out 0.3s ease-in-out;\n animation-fill-mode: forwards;\n transform-origin: 50% 50%;\n}\n\n.ams-component-loading {\n width: 0.8em;\n height:0.8em;\n background: rgba(0, 0, 0, 0.5);\n border-radius: 8px;\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 1001;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n}\n\n.ams-component-loading .line {\n width: 40px;\n height: 40px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n.ams-component-loading .line div {\n position: absolute;\n left: 17.67px;\n top: 0;\n width: 5.33px;\n height: 40px;\n}\n\n.ams-component-loading .line div:before,\n.ams-component-loading .line div:after {\n content: '';\n display: block;\n height: 13.33px;\n background: #fcfcfc;\n border-radius: 5.3px;\n}\n.ams-component-loading .line div:after {\n margin-top: 13.33px;\n}\n\n.ams-component-loading .line div:nth-child(2) {\n -webkit-transform: rotate(45deg);\n}\n\n.ams-component-loading .line div:nth-child(3) {\n -webkit-transform: rotate(90deg);\n}\n\n.ams-component-loading .line div:nth-child(4) {\n -webkit-transform: rotate(135deg);\n}\n\n/** \u52A0\u8F7D\u52A8\u753B **/\n@-webkit-keyframes load {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n.ams-component-loading .line div:nth-child(1):before {\n -webkit-animation: load 1s linear 0s infinite;\n}\n\n.ams-component-loading .line div:nth-child(2):before {\n -webkit-animation: load 1s linear 0.125s infinite;\n}\n\n.ams-component-loading .line div:nth-child(3):before {\n -webkit-animation: load 1s linear 0.25s infinite;\n}\n\n.ams-component-loading .line div:nth-child(4):before {\n -webkit-animation: load 1s linear 0.375s infinite;\n}\n\n.ams-component-loading .line div:nth-child(1):after {\n -webkit-animation: load 1s linear 0.5s infinite;\n}\n\n.ams-component-loading .line div:nth-child(2):after {\n -webkit-animation: load 1s linear 0.675s infinite;\n}\n\n.ams-component-loading .line div:nth-child(3):after {\n -webkit-animation: load 1s linear 0.75s infinite;\n}\n\n.ams-component-loading .line div:nth-child(4):after {\n -webkit-animation: load 1s linear 0.875s infinite;\n}\n\n.ams-component-loading-logo {\n width: 0.44em;\n height: 0.44em;\n -webkit-transform:rotate(360deg);\n transform:rotate(360deg);\n -webkit-transition:-webkit-transform 1s linear;\n transition:transform 1s linear;\n animation: ams-component-loading-logo 1s linear infinite;\n}\n\n.asm-component-close-block-desktop {\n position: absolute;\n width: 40px;\n height: 40px;\n right: 0;\n top: 0;\n cursor: pointer;\n}\n.asm-component-close-block-btn-desktop {\n width: 11px;\n height: 11px;\n object-fit: fill;\n position: absolute;\n right: 18.7px;\n top: 26.7px;\n}\n.asm-component-close-block-hidden {\n width: 0px !important;\n height: 0px !important;\n visibility: hidden;\n}\n.asm-component-close-block-mobile {\n position: absolute;\n width: 0.4em;\n height: 0.4em;\n right: 0;\n top: 0;\n cursor: pointer;\n z-index: 1009;\n}\n\n.asm-component-close-block-btn-mobile {\n width: 0.11em;\n height: 0.11em;\n object-fit: fill;\n position: absolute;\n right: 0.147em;\n top: 0.167em;\n}\n.ams-component-mask-close-block-desktop {\n position: absolute;\n width: 40px;\n height: 40px;\n right: 18px;\n top: 10px;\n cursor: pointer;\n z-index: 1013;\n}\n \n.ams-component-mask-close-block-mobile {\n position: absolute;\n width: 40px;\n height: 40px;\n right: 18px;\n cursor: pointer;\n z-index: 1012;\n}\n\n.ams-component-mask-close-block-hidden {\n width: 0px !important;\n height: 0px !important;\n visibility: hidden;\n}\n\n.ams-component-mask-close-block-btn {\n width: 24px;\n height: 24px;\n object-fit: fill;\n position: absolute;\n right: 8px;\n top: 8px;\n}\n\n.ams-component-container-opacity{\n opacity: 1;\n}\n\n.ams-component-container-opacity:after{\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n display: block;\n content: \"\";\n z-index: 1010;\n background-color: rgba(0, 0, 0, 0.35);\n border-radius: 12px 12px 0 0;\n}\n\n#ams-component-retention {\n position: fixed;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: 50%;\n height: auto;\n display: none;\n z-index: 1009;\n}\n\n.ams-component-retention-show {\n display: flex !important;\n animation: ams-component-container-zoom-in 0.3s ease-in-out;\n animation-fill-mode: forwards\n}\n\n.ams-component-retention-hidden {\n display: flex !important;\n animation: ams-component-container-zoom-out 0.3s ease-in-out;\n -webkit-animation: ams-component-container-zoom-out 0.3s ease-in-out;\n animation-fill-mode: forwards;\n -webkit-animation-fill-mode: forwards;\n}\n\n.ams-component-retention-mobile {\n width: 294px;\n border-radius: 12px;\n padding: 24px 0;\n background-color: #fff;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n box-sizing: border-box;\n}\n\n.ams-component-retention-desktop {\n width: 544px;\n border-radius: 12px;\n padding: 32px;\n background-color: #fff;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n box-sizing: border-box;\n}\n\n@media screen and (max-width: 300px) {\n .ams-component-retention-mobile {\n transform: translate(-50%, -50%) scale(0.8);\n }\n}\n\n.ams-component-retention-title-mobile {\n width: 100%;\n font-style: normal;\n font-weight: 500;\n font-size: 16px;\n line-height: 24px;\n color: #2A3A52;\n text-align: center;\n padding: 0 16px;\n box-sizing: border-box;\n}\n\n.ams-component-retention-title-desktop {\n text-align: left;\n width: 100%;\n font-style: normal;\n font-weight: 500;\n font-size: 16px;\n line-height: 24px;\n color: #2A3A52;\n}\n\n.ams-component-retention-sub-title-mobile {\n width: 100%;\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n color: #7C8CA3;\n margin-top: 8px;\n text-align: center;\n padding: 0 16px;\n box-sizing: border-box;\n}\n\n.ams-component-retention-sub-title-desktop {\n text-align: left;\n font-style: normal;\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n color: #7C8CA3;\n margin-top: 10px;\n}\n\n.ams-component-retention-btn-block-mobile {\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n margin-top: 24px;\n padding: 0 24px;\n box-sizing: border-box;\n}\n\n.ams-component-retention-btn-block-desktop {\n width: 100%;\n margin-top: 24px;\n}\n\n#ams-component-retention-remain {\n background: #0079FF;\n border-radius: 100px;\n font-style: normal;\n font-weight: 500;\n text-align: center;\n box-sizing: border-box;\n color: #FFFFFF;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.ams-component-retention-remain-mobile {\n width: 100%;\n height: 44px;\n font-size: 16px;\n line-height: 44px;\n padding: 0 6px;\n}\n\n.ams-component-retention-remain-desktop {\n height: 44px;\n font-size: 16px;\n line-height: 44px;\n display: inline-block;\n padding: 0 24px;\n float: right;\n cursor: pointer;\n padding: 0 16px;\n max-width: 225px;\n min-width: 159px;\n}\n\n#ams-component-retention-leave {\n border-radius: 100px;\n border: 1px solid #0079FF;\n font-style: normal;\n font-weight: 500;\n text-align: center;\n box-sizing: border-box;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.ams-component-retention-leave-mobile {\n width: 100%;\n height: 44px;\n font-size: 16px;\n line-height: 44px;\n color: #1677FF;\n margin-top: 12px;\n padding: 0 6px;\n}\n\n.ams-component-retention-leave-desktop {\n height: 44px;\n font-size: 16px;\n line-height: 44px;\n color: #1677FF;\n display: inline-block;\n padding: 0 24px;\n float: right;\n margin-right: 16px;\n cursor: pointer;\n padding: 0 16px;\n max-width: 225px;\n min-width: 144px;\n}\n.ams-component-mockup-hidden{\nanimation: ams-component-mockup-opacity 0.3s ease-in-out;\n animation-fill-mode: forwards\n}\n/** \u52A0\u8F7D\u52A8\u753B **/\n@-webkit-keyframes ams-component-mockup-opacity {\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n}\n";
|
|
3
|
-
export declare const componentAddCSS: () => void;
|
|
4
|
-
export declare const createBaseElement: (platform: PlatformEnum, closeBtnFunc: () => void) => HTMLDivElement;
|
|
5
|
-
export declare const createCloseBtn: (platform: PlatformEnum, closeBtnFunc: () => void) => void;
|
|
6
|
-
export declare const createMaskCloseButton: (platform: PlatformEnum, closeBtnFunc: () => void) => void;
|
|
7
|
-
/**
|
|
8
|
-
* 弹出离开挽留弹窗
|
|
9
|
-
* @param platform
|
|
10
|
-
* @param remainBtnFunc
|
|
11
|
-
* @param leaveBtnFunc
|
|
12
|
-
*/
|
|
13
|
-
export declare const createRetentionPopup: (platform: PlatformEnum, remainBtnFunc: () => void, leaveBtnFunc: () => void) => void;
|
|
14
|
-
export declare const hideRetentionPopup: () => void;
|
|
15
|
-
export declare const showRetentionPopup: () => void;
|
|
16
|
-
export declare const removeRetentionPopup: () => void;
|
|
17
|
-
export declare const createMockup: (options: {
|
|
18
|
-
platform: PlatformEnum;
|
|
19
|
-
onClickOutside: () => void;
|
|
20
|
-
closeBtnFunc: () => void;
|
|
21
|
-
}) => void;
|
|
22
|
-
export declare const hideMockup: () => void;
|
|
23
|
-
export declare const cleanMockup: () => void;
|
|
24
|
-
export declare const addPopupLoading: () => void;
|
|
25
|
-
export declare const handleDeclareInfo: (closeDialogData: any) => void;
|
|
26
|
-
export declare const slideInAndOutKeyframes: (id: any, height: any) => string;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
type CreateModalProps = {
|
|
2
|
-
device: any;
|
|
3
|
-
url: string;
|
|
4
|
-
widthPadding?: number;
|
|
5
|
-
loadingConfig?: {
|
|
6
|
-
theme?: string;
|
|
7
|
-
backgroundPrimary?: string;
|
|
8
|
-
};
|
|
9
|
-
showCloseOnLoading: boolean;
|
|
10
|
-
onCloseOnLoading: () => void;
|
|
11
|
-
textDirection: 'ltr' | 'rtl';
|
|
12
|
-
};
|
|
13
|
-
export declare const getCurrentTheme: (curTheme?: string) => any;
|
|
14
|
-
export declare const createCustomSheet: (curTheme?: 'dark' | 'light') => void;
|
|
15
|
-
export declare const renderPopupLoading: (container: HTMLDivElement, curTheme: 'dark' | 'light') => void;
|
|
16
|
-
export declare const removePopupLoading: (isShowMockup?: boolean) => void;
|
|
17
|
-
export declare const insertStyleSheet: () => void;
|
|
18
|
-
export declare function createCloseIcon({ onClose, textDirection, }: {
|
|
19
|
-
onClose: () => void;
|
|
20
|
-
textDirection: 'ltr' | 'rtl';
|
|
21
|
-
}): HTMLDivElement;
|
|
22
|
-
export declare const createModal: ({ device, url, loadingConfig, showCloseOnLoading, onCloseOnLoading, textDirection, }: CreateModalProps) => Promise<HTMLIFrameElement>;
|
|
23
|
-
export declare const destroyModal: () => void;
|
|
24
|
-
export {};
|
package/esm/config/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const marmotMap: Record<string, string>;
|
|
2
|
-
export declare const marmotConfigMap: Record<string, string>;
|
|
3
|
-
export declare const v2AppMarmotMap: Record<string, string>;
|
|
4
|
-
export declare const sdkVersion: string;
|
|
5
|
-
/**
|
|
6
|
-
* @description: 目前应用层分为v1和v2,会存在两个应用版本号不是同步发布的情况。所以需要把默认的应用版本号配置抽离出来。
|
|
7
|
-
* TODO 这里考虑直接换成packagejson.version
|
|
8
|
-
*/
|
|
9
|
-
export declare const AMSCheckoutAppVersion = "1.47.0";
|
|
10
|
-
export declare const AMSAutoDebitAppVersion = "1.47.0";
|
|
11
|
-
export declare const AMSEasyPayAppVersion = "1.47.0";
|
|
12
|
-
export declare const AMSCashierPaymentAppVersion = "1.47.0";
|
|
13
|
-
export declare const AMSVaultingAppVersion = "1.47.0";
|
|
14
|
-
export declare const AMSPaymentElementAppVersion = "1.47.0";
|
|
15
|
-
export declare const ADDRESSElementAppVersion = "1.47.0";
|
|
16
|
-
export declare const AUTHElementAppVersion = "1.47.0";
|
package/esm/config/request.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2022 International Business Group, Ant Group. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, and/or distribute the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
5
|
-
* 1. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE; and
|
|
6
|
-
* 2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
|
|
7
|
-
*/
|
|
8
|
-
export declare const requestHost: {
|
|
9
|
-
[key: string]: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const clientId = "5J5Y8X4E2Y25GR00690";
|
|
12
|
-
export declare const tntInstId = "ALIPW3SG";
|
|
13
|
-
export declare const appId = "ANTOM_PAYMENT_WEB";
|
|
14
|
-
export declare const sofaId: any;
|
|
15
|
-
export declare const hostSignMap: (hostSign: string | undefined, env: string) => string;
|
|
16
|
-
export declare const lightSandboxMap: (operationType: string | undefined, env: string) => {
|
|
17
|
-
appId: string;
|
|
18
|
-
sofaId: any;
|
|
19
|
-
baseURL: string;
|
|
20
|
-
'Operation-Type': string;
|
|
21
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ESP 构建产物page名称
|
|
3
|
-
*/
|
|
4
|
-
export declare enum ESP_PAGE_NAME {
|
|
5
|
-
API_PORTAL = "api-portal",
|
|
6
|
-
SDK_PORTAL = "sdk-portal",
|
|
7
|
-
DOUBLE_FA = "double-fa",
|
|
8
|
-
PRELOAD = "preload"
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* ESP集成模式
|
|
12
|
-
*/
|
|
13
|
-
export declare enum MODE {
|
|
14
|
-
SDK = "SDK",
|
|
15
|
-
API = "API"
|
|
16
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Element 构建产物page名称
|
|
3
|
-
*/
|
|
4
|
-
export declare const ELEMENT_PAGE_NAME: {
|
|
5
|
-
CODE_VIEW: string;
|
|
6
|
-
ELEMENT_PAYMENT: string;
|
|
7
|
-
EXPRESS_CHECKOUT: string;
|
|
8
|
-
IFRAME_ELEMENT: string;
|
|
9
|
-
INSTRUCTION_GUIDE: string;
|
|
10
|
-
THREED_PAGE: string;
|
|
11
|
-
ELEMENT_AUTH: string;
|
|
12
|
-
ADDRESS: string;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Element 各页面URL(不带域名)
|
|
16
|
-
*/
|
|
17
|
-
export declare enum ELEMENT_PAGE_URL {
|
|
18
|
-
CODE_VIEW = "/elements/pages/code-view/index.html",
|
|
19
|
-
ELEMENT_PAYMENT = "/elements/pages/element_payment/index.html",
|
|
20
|
-
EXPRESS_CHECKOUT = "/elements/pages/express_checkout/index.html",
|
|
21
|
-
IFRAME_ELEMENT = "/elements/pages/iframe-element/index.html",
|
|
22
|
-
INSTRUCTION_GUIDE = "/elements/pages/instruction-guide/index.html",
|
|
23
|
-
THREED_PAGE = "/elements/pages/threed-page/index.html",
|
|
24
|
-
ELEMENT_AUTH = "/auth-element/pages/element_auth/index.html",
|
|
25
|
-
ADDRESS = "/element-address/pages/address/index.html"
|
|
26
|
-
}
|
package/esm/constant/index.d.ts
DELETED
|
@@ -1,344 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2022 International Business Group, Ant Group. All rights reserved.
|
|
3
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, and/or distribute the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
-
* 1. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE; and
|
|
5
|
-
* 2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
|
|
6
|
-
*/
|
|
7
|
-
import { eventCodeEnum } from '../types';
|
|
8
|
-
export declare const ERRORMESSAGE: {
|
|
9
|
-
DOMAIN_NOT_IN_WHITE_LIST: {
|
|
10
|
-
code: eventCodeEnum;
|
|
11
|
-
message: string;
|
|
12
|
-
};
|
|
13
|
-
NOT_JSON_FORMAT: {
|
|
14
|
-
code: eventCodeEnum;
|
|
15
|
-
message: string;
|
|
16
|
-
};
|
|
17
|
-
SDK_COMPATIBILITY_ISSUES: {
|
|
18
|
-
code: eventCodeEnum;
|
|
19
|
-
BROWSER_NOT_SUPPORT_POSTMESSAGE: {
|
|
20
|
-
code: eventCodeEnum;
|
|
21
|
-
message: string;
|
|
22
|
-
};
|
|
23
|
-
FAILED_TO_CREATE_IFRAME: {
|
|
24
|
-
code: eventCodeEnum;
|
|
25
|
-
message: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
INIT_PARAMETER_ERROR: {
|
|
29
|
-
code: eventCodeEnum;
|
|
30
|
-
UI_MODE_NOT_SUPPORTED: {
|
|
31
|
-
code: eventCodeEnum;
|
|
32
|
-
message: string;
|
|
33
|
-
};
|
|
34
|
-
ENVIRONMENT_ERROR: {
|
|
35
|
-
code: eventCodeEnum;
|
|
36
|
-
message: string;
|
|
37
|
-
};
|
|
38
|
-
MODE_ERROR: {
|
|
39
|
-
code: eventCodeEnum;
|
|
40
|
-
message: string;
|
|
41
|
-
};
|
|
42
|
-
LOCALE_ERROR: {
|
|
43
|
-
code: eventCodeEnum;
|
|
44
|
-
message: string;
|
|
45
|
-
};
|
|
46
|
-
NET_MODE_NOT_SUPPORT: {
|
|
47
|
-
code: eventCodeEnum;
|
|
48
|
-
message: string;
|
|
49
|
-
};
|
|
50
|
-
EVENT_ERROR: {
|
|
51
|
-
code: eventCodeEnum;
|
|
52
|
-
message: string;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
CREATEPAYMENT_PARAMETER_ERROR: {
|
|
56
|
-
code: eventCodeEnum;
|
|
57
|
-
};
|
|
58
|
-
CREATECOMPONENT_ERROR: {
|
|
59
|
-
code: eventCodeEnum;
|
|
60
|
-
message: string;
|
|
61
|
-
SINGLETON_COMPONENT_ERROR: {
|
|
62
|
-
code: eventCodeEnum;
|
|
63
|
-
message: string;
|
|
64
|
-
};
|
|
65
|
-
LOAD_APP_TIMEOUT: {
|
|
66
|
-
code: eventCodeEnum;
|
|
67
|
-
message: string;
|
|
68
|
-
};
|
|
69
|
-
NETWORK_REQUEST_ERROR: {
|
|
70
|
-
code: eventCodeEnum;
|
|
71
|
-
message: string;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
SDK_LAUNCH_PAYMENT_APP_ERROR: {
|
|
75
|
-
code: eventCodeEnum;
|
|
76
|
-
CALL_APP_URL_ERROR: {
|
|
77
|
-
code: eventCodeEnum;
|
|
78
|
-
message: string;
|
|
79
|
-
};
|
|
80
|
-
LOAD_APP_TIME_OUT: {
|
|
81
|
-
code: eventCodeEnum;
|
|
82
|
-
message: string;
|
|
83
|
-
};
|
|
84
|
-
CONTAINER_NOT_EXIST: {
|
|
85
|
-
code: eventCodeEnum;
|
|
86
|
-
message: string;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
SDK_SUBMIT_ERROR: {
|
|
90
|
-
code: eventCodeEnum;
|
|
91
|
-
message: string;
|
|
92
|
-
};
|
|
93
|
-
PARAM_INVALID: {
|
|
94
|
-
code: string;
|
|
95
|
-
message: string;
|
|
96
|
-
};
|
|
97
|
-
UI_STATE_ERROR: {
|
|
98
|
-
code: string;
|
|
99
|
-
message: string;
|
|
100
|
-
};
|
|
101
|
-
INITIALIZE_TIMEOUT: {
|
|
102
|
-
code: string;
|
|
103
|
-
API: {
|
|
104
|
-
code: string;
|
|
105
|
-
message: string;
|
|
106
|
-
};
|
|
107
|
-
WEB: {
|
|
108
|
-
code: string;
|
|
109
|
-
message: string;
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
ERR_DATA_STRUCT_UNRECOGNIZED: {
|
|
113
|
-
code: string;
|
|
114
|
-
message: string;
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
117
|
-
@deprecated 已废弃 请使用SDK_LAUNCH_PAYMENT_APP_ERROR
|
|
118
|
-
*/
|
|
119
|
-
SDK_CALL_URL_ERROR: {
|
|
120
|
-
code: eventCodeEnum;
|
|
121
|
-
REDIRECT_ERROR: {
|
|
122
|
-
code: eventCodeEnum;
|
|
123
|
-
message: string;
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
export declare const BASEPLUGINID = "CHECKOUT";
|
|
128
|
-
export declare const COMPONENTPLUGINID = "COMPONENT";
|
|
129
|
-
export declare const EVENT: {
|
|
130
|
-
ready: {
|
|
131
|
-
name: string;
|
|
132
|
-
uniqueKey: string;
|
|
133
|
-
};
|
|
134
|
-
error: {
|
|
135
|
-
name: string;
|
|
136
|
-
uniqueKey: string;
|
|
137
|
-
};
|
|
138
|
-
paymentMethodSelected: {
|
|
139
|
-
name: string;
|
|
140
|
-
uniqueKey: string;
|
|
141
|
-
};
|
|
142
|
-
sizeChanged: {
|
|
143
|
-
name: string;
|
|
144
|
-
uniqueKey: string;
|
|
145
|
-
};
|
|
146
|
-
log: {
|
|
147
|
-
name: string;
|
|
148
|
-
uniqueKey: string;
|
|
149
|
-
};
|
|
150
|
-
launch: {
|
|
151
|
-
name: string;
|
|
152
|
-
};
|
|
153
|
-
redirect: {
|
|
154
|
-
name: string;
|
|
155
|
-
};
|
|
156
|
-
close: {
|
|
157
|
-
name: string;
|
|
158
|
-
uniqueKey: string;
|
|
159
|
-
};
|
|
160
|
-
destroy: {
|
|
161
|
-
name: string;
|
|
162
|
-
};
|
|
163
|
-
closeCallback: {
|
|
164
|
-
name: string;
|
|
165
|
-
uniqueKey: string;
|
|
166
|
-
};
|
|
167
|
-
eventCallback: {
|
|
168
|
-
name: string;
|
|
169
|
-
uniqueKey: string;
|
|
170
|
-
};
|
|
171
|
-
submitForm: {
|
|
172
|
-
name: string;
|
|
173
|
-
};
|
|
174
|
-
hideCloseButton: {
|
|
175
|
-
name: string;
|
|
176
|
-
};
|
|
177
|
-
showCloseButton: {
|
|
178
|
-
name: string;
|
|
179
|
-
};
|
|
180
|
-
setMaskCloseButton: {
|
|
181
|
-
name: string;
|
|
182
|
-
};
|
|
183
|
-
setAllowRetention: {
|
|
184
|
-
name: string;
|
|
185
|
-
};
|
|
186
|
-
declareCheckoutInfo: {
|
|
187
|
-
name: string;
|
|
188
|
-
};
|
|
189
|
-
showPopup: {
|
|
190
|
-
name: string;
|
|
191
|
-
};
|
|
192
|
-
dismissLoading: {
|
|
193
|
-
name: string;
|
|
194
|
-
};
|
|
195
|
-
popupWindow: {
|
|
196
|
-
name: string;
|
|
197
|
-
};
|
|
198
|
-
popWindow: {
|
|
199
|
-
name: string;
|
|
200
|
-
};
|
|
201
|
-
getDeviceId: {
|
|
202
|
-
name: string;
|
|
203
|
-
};
|
|
204
|
-
declareEventCallbackInfo: {
|
|
205
|
-
name: string;
|
|
206
|
-
};
|
|
207
|
-
setGlobalData: {
|
|
208
|
-
name: string;
|
|
209
|
-
};
|
|
210
|
-
getGlobalData: {
|
|
211
|
-
name: string;
|
|
212
|
-
};
|
|
213
|
-
/**
|
|
214
|
-
* @deprecated 已废弃 请使用eventCallback
|
|
215
|
-
*/
|
|
216
|
-
sendMuitiAppEventToSdk: {
|
|
217
|
-
name: string;
|
|
218
|
-
};
|
|
219
|
-
receiveMuitiAppFromSdk: {
|
|
220
|
-
name: string;
|
|
221
|
-
};
|
|
222
|
-
sendBroadcast: {
|
|
223
|
-
name: string;
|
|
224
|
-
};
|
|
225
|
-
receiveBroadcast: {
|
|
226
|
-
name: string;
|
|
227
|
-
};
|
|
228
|
-
getUserAgentFromSdk: {
|
|
229
|
-
name: string;
|
|
230
|
-
};
|
|
231
|
-
appHeartBeat: {
|
|
232
|
-
name: string;
|
|
233
|
-
};
|
|
234
|
-
beforeSubmit: {
|
|
235
|
-
name: string;
|
|
236
|
-
uniqueKey: string;
|
|
237
|
-
};
|
|
238
|
-
beforeSubmitDone: {
|
|
239
|
-
name: string;
|
|
240
|
-
uniqueKey: string;
|
|
241
|
-
};
|
|
242
|
-
onChange: {
|
|
243
|
-
name: string;
|
|
244
|
-
uniqueKey: string;
|
|
245
|
-
};
|
|
246
|
-
getGooglePayToken: {
|
|
247
|
-
name: string;
|
|
248
|
-
};
|
|
249
|
-
initSecuritySDK: {
|
|
250
|
-
name: string;
|
|
251
|
-
};
|
|
252
|
-
closePaymentPolling: {
|
|
253
|
-
name: string;
|
|
254
|
-
};
|
|
255
|
-
onPollingEnd: {
|
|
256
|
-
name: string;
|
|
257
|
-
};
|
|
258
|
-
getApplePayToken: {
|
|
259
|
-
name: string;
|
|
260
|
-
};
|
|
261
|
-
updated: {
|
|
262
|
-
name: string;
|
|
263
|
-
};
|
|
264
|
-
webAppReady: {
|
|
265
|
-
name: string;
|
|
266
|
-
};
|
|
267
|
-
showToast: {
|
|
268
|
-
name: string;
|
|
269
|
-
};
|
|
270
|
-
getSdkVersion: {
|
|
271
|
-
name: string;
|
|
272
|
-
};
|
|
273
|
-
inputFocus: {
|
|
274
|
-
name: string;
|
|
275
|
-
};
|
|
276
|
-
/**
|
|
277
|
-
* 通过SDK转发web应用消息给其他web应用(用于iframe之间消息互通)
|
|
278
|
-
* TODO 推荐使用BusManager
|
|
279
|
-
*/
|
|
280
|
-
messageForward: {
|
|
281
|
-
name: string;
|
|
282
|
-
};
|
|
283
|
-
submitPromiseCallback: {
|
|
284
|
-
name: string;
|
|
285
|
-
};
|
|
286
|
-
validateFieldsResult: {
|
|
287
|
-
name: string;
|
|
288
|
-
forwardName: string;
|
|
289
|
-
uniqueKey: string;
|
|
290
|
-
};
|
|
291
|
-
canIUse: {
|
|
292
|
-
name: string;
|
|
293
|
-
};
|
|
294
|
-
};
|
|
295
|
-
export declare const SENDEVENT: {
|
|
296
|
-
validateFields: {
|
|
297
|
-
name: string;
|
|
298
|
-
};
|
|
299
|
-
};
|
|
300
|
-
export declare const COMPONENT_CONTAINER_ID = "ams-component-container";
|
|
301
|
-
export declare const COMPONENT_SECTION_ID = "ams-component-section";
|
|
302
|
-
export declare const COMPONENT_IFRAME_TAG_ID = "ams-checkout-component";
|
|
303
|
-
export declare const COMPONENT_CLOSE_BLOCK_ID = "asm-component-close-block";
|
|
304
|
-
export declare const COMPONENT_CLOSE_MASK_BLOCK_ID = "ams-component-mask-close-block";
|
|
305
|
-
export declare const COMPONENT_RETENTION_ID = "ams-component-retention";
|
|
306
|
-
export declare const MOCKUP_ID = "ams-component-mockup";
|
|
307
|
-
export declare const LOADING_ID = "ams-component-loading";
|
|
308
|
-
export declare const POPUPLOADING_ID = "ams-component-popup-loading";
|
|
309
|
-
export declare const LISTENER_PREFIX = "_ams_sdk_component_listener";
|
|
310
|
-
export declare const INLINE_BASE_STYLE_ID = "ams-inline-component-style";
|
|
311
|
-
export declare const INLINE_IMG_CLASSNAME = "inline-loading";
|
|
312
|
-
export declare const AMSPOPUP_PREFIX = "ams-popup";
|
|
313
|
-
export declare const LOADTIME_LIMIT = 15000;
|
|
314
|
-
export declare const POPUP_LOADTIME_LOG_LIMIT = 3000;
|
|
315
|
-
export declare const ANIMATION_TIME = 300;
|
|
316
|
-
export declare const TIMEOUT_WEB_APP_HEART_BEAT = 6000;
|
|
317
|
-
export declare const TIME_DELAY_SEND_HEART_BEAT = 1000;
|
|
318
|
-
export declare const closeImg = "https://cdn.marmot-cloud.com/storage/2023/5/18/1692a487-99b5-4314-9d6f-e9814bc1ca41.svg";
|
|
319
|
-
export declare const closeImgLight = "https://cdn.marmot-cloud.com/storage/2025/05/24/50891cd3-7a4a-47c0-b550-2e2ce6187c31.svg";
|
|
320
|
-
export declare const LOADINGIMG = "data:image/png;base64,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";
|
|
321
|
-
/**
|
|
322
|
-
* @description Promise回调code映射
|
|
323
|
-
*/
|
|
324
|
-
export declare const PROMISE_CALLBACK_CODE: {
|
|
325
|
-
SUCCESS: {
|
|
326
|
-
code: string;
|
|
327
|
-
};
|
|
328
|
-
UNKNOWN_EXCEPTION: {
|
|
329
|
-
code: string;
|
|
330
|
-
message: string;
|
|
331
|
-
};
|
|
332
|
-
REPEAT_REQ_REJECT: {
|
|
333
|
-
code: string;
|
|
334
|
-
message: string;
|
|
335
|
-
};
|
|
336
|
-
PROCESS_FAIL: {
|
|
337
|
-
code: string;
|
|
338
|
-
message: string;
|
|
339
|
-
};
|
|
340
|
-
INQUIRY_PAYMENT_SESSION_FAILED: {
|
|
341
|
-
code: string;
|
|
342
|
-
message: string;
|
|
343
|
-
};
|
|
344
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BusContext, BusMessage, BusSubscriber } from "../index";
|
|
2
|
-
import { callOnEventCallback } from "../../../types";
|
|
3
|
-
export declare class SDKCallbackBusSubscriber extends BusSubscriber {
|
|
4
|
-
private _onEventCallback?;
|
|
5
|
-
constructor(onEventCallback?: callOnEventCallback);
|
|
6
|
-
actionNames(): string[];
|
|
7
|
-
protected onEventCallback(message: BusMessage): void;
|
|
8
|
-
onMessage(context: BusContext, message: BusMessage): void;
|
|
9
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DeviceIdParameter } from '../../../types';
|
|
2
|
-
import { BusContext, BusMessage, BusSubscriber } from '../index';
|
|
3
|
-
export type onDeviceIdCallback = (deviceIdParameter?: DeviceIdParameter, isPolling?: boolean) => Promise<string>;
|
|
4
|
-
export declare class SecurityBusSubscriber extends BusSubscriber {
|
|
5
|
-
private _onDeviceIdCallback?;
|
|
6
|
-
constructor(onDeviceIdCallback?: onDeviceIdCallback);
|
|
7
|
-
actionNames(): string[];
|
|
8
|
-
protected getSecurityDeviceId(context: BusContext, message: BusMessage): Promise<void>;
|
|
9
|
-
onMessage(context: BusContext, message: BusMessage): void;
|
|
10
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Logger } from '../../../util/logger';
|
|
2
|
-
import { BusContext, BusMessage, BusSubscriber } from '../index';
|
|
3
|
-
export declare class TrackerBusSubscriber extends BusSubscriber {
|
|
4
|
-
logger: Logger;
|
|
5
|
-
constructor(logger: Logger);
|
|
6
|
-
actionNames(): string[];
|
|
7
|
-
protected reportAnalytics(context: BusContext, message: BusMessage): Promise<void>;
|
|
8
|
-
onMessage(context: BusContext, message: BusMessage): void;
|
|
9
|
-
}
|