@alipay/ams-checkout 0.0.1694675458-dev.0 → 1.3.1-dev
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/{esm/config/request.d.ts → dist/esm/config/index.d.ts} +1 -0
- package/{esm/config/request.js → dist/esm/config/index.js} +3 -1
- package/{esm → dist/esm}/constant/index.d.ts +32 -54
- package/{esm → dist/esm}/constant/index.js +32 -54
- package/dist/esm/core/component/index.d.ts +17 -0
- package/dist/esm/core/component/index.js +127 -0
- package/{esm → dist/esm}/core/drop-in/index.d.ts +4 -4
- package/{esm → dist/esm}/core/drop-in/index.js +3 -3
- package/{esm → dist/esm}/core/instance/index.d.ts +23 -6
- package/{esm → dist/esm}/core/instance/index.js +75 -31
- package/{esm → dist/esm}/index.d.ts +10 -4
- package/{esm → dist/esm}/index.js +30 -8
- package/{esm → dist/esm}/plugin/component/cashierApp.d.ts +6 -5
- package/{esm → dist/esm}/plugin/component/cashierApp.js +74 -57
- package/{esm/plugin/component/component.inline.style.d.ts → dist/esm/plugin/component/component.style.d.ts} +1 -4
- package/dist/esm/plugin/component/component.style.js +15 -0
- package/{esm → dist/esm}/plugin/component/index.d.ts +33 -31
- package/{esm → dist/esm}/plugin/component/index.js +356 -273
- package/{esm → dist/esm}/plugin/drop-in/index.d.ts +5 -3
- package/{esm → dist/esm}/plugin/drop-in/index.js +3 -3
- package/{esm → dist/esm}/request/index.d.ts +2 -2
- package/{esm → dist/esm}/request/index.js +9 -9
- package/{esm → dist/esm}/request/utils.d.ts +3 -3
- package/{esm → dist/esm}/request/utils.js +4 -4
- package/dist/esm/service/index.d.ts +2 -0
- package/{esm → dist/esm}/types/index.d.ts +40 -99
- package/dist/esm/types/index.js +94 -0
- package/dist/esm/util/createIframeNode.d.ts +5 -0
- package/{esm → dist/esm}/util/createIframeNode.js +8 -8
- package/{esm → dist/esm}/util/index.d.ts +4 -6
- package/{esm → dist/esm}/util/index.js +7 -26
- package/dist/esm/util/mock.js +4 -0
- package/dist/umd/ams-checkout.min.js +1 -1
- package/package.json +54 -1
- package/esm/config/index.d.ts +0 -2
- package/esm/config/index.js +0 -17
- package/esm/core/component/index.d.ts +0 -31
- package/esm/core/component/index.js +0 -202
- package/esm/image/skeleton.svg +0 -18
- package/esm/plugin/component/component.inline.style.js +0 -38
- package/esm/plugin/component/component.popup.style.d.ts +0 -12
- package/esm/plugin/component/component.popup.style.js +0 -163
- package/esm/service/index.d.ts +0 -2
- package/esm/types/index.js +0 -134
- package/esm/util/createIframeNode.d.ts +0 -5
- package/esm/util/mock.js +0 -3
- /package/{esm → dist/esm}/image/cta.svg +0 -0
- /package/{esm → dist/esm}/service/index.js +0 -0
- /package/{esm → dist/esm}/util/get.d.ts +0 -0
- /package/{esm → dist/esm}/util/get.js +0 -0
- /package/{esm → dist/esm}/util/intl-callapp/es/browser.d.ts +0 -0
- /package/{esm → dist/esm}/util/intl-callapp/es/browser.js +0 -0
- /package/{esm → dist/esm}/util/intl-callapp/es/evoke.d.ts +0 -0
- /package/{esm → dist/esm}/util/intl-callapp/es/evoke.js +0 -0
- /package/{esm → dist/esm}/util/intl-callapp/es/generate.d.ts +0 -0
- /package/{esm → dist/esm}/util/intl-callapp/es/generate.js +0 -0
- /package/{esm → dist/esm}/util/intl-callapp/es/index.d.ts +0 -0
- /package/{esm → dist/esm}/util/intl-callapp/es/index.js +0 -0
- /package/{esm → dist/esm}/util/intl-callapp/es/main.d.ts +0 -0
- /package/{esm → dist/esm}/util/intl-callapp/es/main.js +0 -0
- /package/{esm → dist/esm}/util/intl-callapp/es/openWallet.d.ts +0 -0
- /package/{esm → dist/esm}/util/intl-callapp/es/openWallet.js +0 -0
- /package/{esm → dist/esm}/util/intl-callapp/es/types.d.ts +0 -0
- /package/{esm → dist/esm}/util/intl-callapp/es/types.js +0 -0
- /package/{esm → dist/esm}/util/intl-callapp/es/utils/config.d.ts +0 -0
- /package/{esm → dist/esm}/util/intl-callapp/es/utils/config.js +0 -0
- /package/{esm → dist/esm}/util/intl-callapp/es/utils/index.d.ts +0 -0
- /package/{esm → dist/esm}/util/intl-callapp/es/utils/index.js +0 -0
- /package/{esm → dist/esm}/util/mock.d.ts +0 -0
package/esm/types/index.js
DELETED
@@ -1,134 +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
|
-
|
9
|
-
/**
|
10
|
-
* SDK options
|
11
|
-
*/
|
12
|
-
|
13
|
-
export var renderDisplayTypeEnum = /*#__PURE__*/function (renderDisplayTypeEnum) {
|
14
|
-
renderDisplayTypeEnum["popup"] = "popup";
|
15
|
-
renderDisplayTypeEnum["inline"] = "inline";
|
16
|
-
return renderDisplayTypeEnum;
|
17
|
-
}({});
|
18
|
-
export var componentSignEnum = /*#__PURE__*/function (componentSignEnum) {
|
19
|
-
componentSignEnum["EASY_PAY_WALLET"] = "EASY_PAY_WALLET";
|
20
|
-
componentSignEnum["CASHIER_PAYMENT_CARD"] = "CASHIER_PAYMENT_CARD";
|
21
|
-
componentSignEnum["CASHIER_PAYMENT_BANK"] = "CASHIER_PAYMENT_BANK";
|
22
|
-
componentSignEnum["AUTO_DEBIT_WALLET"] = "AUTO_DEBIT_WALLET";
|
23
|
-
componentSignEnum["NONE"] = "NONE";
|
24
|
-
return componentSignEnum;
|
25
|
-
}({});
|
26
|
-
export var productSceneEnum = /*#__PURE__*/function (productSceneEnum) {
|
27
|
-
productSceneEnum["EASY_PAY"] = "EASY_PAY";
|
28
|
-
productSceneEnum["CASHIER_PAYMENT"] = "CASHIER_PAYMENT";
|
29
|
-
productSceneEnum["AUTO_DEBIT"] = "AUTO_DEBIT";
|
30
|
-
return productSceneEnum;
|
31
|
-
}({});
|
32
|
-
export var paymentMethodCategoryTypeEnum = /*#__PURE__*/function (paymentMethodCategoryTypeEnum) {
|
33
|
-
paymentMethodCategoryTypeEnum["CARD"] = "CARD";
|
34
|
-
paymentMethodCategoryTypeEnum["WALLET"] = "WALLET";
|
35
|
-
paymentMethodCategoryTypeEnum["BANK"] = "BANK";
|
36
|
-
return paymentMethodCategoryTypeEnum;
|
37
|
-
}({});
|
38
|
-
export var localeEnum = /*#__PURE__*/function (localeEnum) {
|
39
|
-
localeEnum["en-US"] = "en-US";
|
40
|
-
return localeEnum;
|
41
|
-
}({});
|
42
|
-
export var checkoutDisplayEnum = /*#__PURE__*/function (checkoutDisplayEnum) {
|
43
|
-
checkoutDisplayEnum["horizon"] = "horizon";
|
44
|
-
checkoutDisplayEnum["vertical"] = "vertical";
|
45
|
-
return checkoutDisplayEnum;
|
46
|
-
}({});
|
47
|
-
export var modeEnum = /*#__PURE__*/function (modeEnum) {
|
48
|
-
modeEnum["dropin"] = "dropin";
|
49
|
-
modeEnum["component"] = "component";
|
50
|
-
return modeEnum;
|
51
|
-
}({});
|
52
|
-
export var networkModeEnum = /*#__PURE__*/function (networkModeEnum) {
|
53
|
-
networkModeEnum["proxy"] = "proxy";
|
54
|
-
networkModeEnum["session"] = "session";
|
55
|
-
return networkModeEnum;
|
56
|
-
}({});
|
57
|
-
export var environmentEnum = /*#__PURE__*/function (environmentEnum) {
|
58
|
-
environmentEnum["sandbox"] = "sandbox";
|
59
|
-
environmentEnum["prod"] = "prod";
|
60
|
-
environmentEnum["light_sandbox"] = "light_sandbox";
|
61
|
-
return environmentEnum;
|
62
|
-
}({});
|
63
|
-
export var osTypeEnum = /*#__PURE__*/function (osTypeEnum) {
|
64
|
-
osTypeEnum["IOS"] = "IOS";
|
65
|
-
osTypeEnum["ANDROID"] = "ANDROID";
|
66
|
-
osTypeEnum["ELSE"] = "ELSE";
|
67
|
-
return osTypeEnum;
|
68
|
-
}({});
|
69
|
-
export var terminalTypeEnum = /*#__PURE__*/function (terminalTypeEnum) {
|
70
|
-
terminalTypeEnum["WEB"] = "WEB";
|
71
|
-
terminalTypeEnum["WAP"] = "WAP";
|
72
|
-
terminalTypeEnum["APP"] = "APP";
|
73
|
-
terminalTypeEnum["MINI_APP"] = "MINI_APP";
|
74
|
-
return terminalTypeEnum;
|
75
|
-
}({});
|
76
|
-
export var platformEnum = /*#__PURE__*/function (platformEnum) {
|
77
|
-
platformEnum["desktop"] = "desktop";
|
78
|
-
platformEnum["mobile"] = "mobile";
|
79
|
-
return platformEnum;
|
80
|
-
}({});
|
81
|
-
/**
|
82
|
-
* @description Create an event handler, called when an error occurs in AMSCheckout.
|
83
|
-
*/
|
84
|
-
|
85
|
-
/**
|
86
|
-
* @description Create an event handler, called when the general log triggers during the SDK runtime.
|
87
|
-
*/
|
88
|
-
|
89
|
-
/**
|
90
|
-
* @description Create an event handler, during the running of the sdk, some events are called after execution, and the specific event code is returned.
|
91
|
-
*/
|
92
|
-
|
93
|
-
/**
|
94
|
-
* @description Create an event handler, In pop-up layer mode, the user clicks the semi floating layer close button and is called.
|
95
|
-
*/
|
96
|
-
|
97
|
-
export var messageName = /*#__PURE__*/function (messageName) {
|
98
|
-
messageName["SDK_TO_APP"] = "SDK_TO_APP";
|
99
|
-
messageName["APP_TO_SDK"] = "APP_TO_SDK";
|
100
|
-
messageName["APP_TO_APP"] = "APP_TO_APP";
|
101
|
-
return messageName;
|
102
|
-
}({});
|
103
|
-
export var targetEnum = /*#__PURE__*/function (targetEnum) {
|
104
|
-
targetEnum["BLANK"] = "_blank";
|
105
|
-
targetEnum["SELF"] = "_self";
|
106
|
-
return targetEnum;
|
107
|
-
}({});
|
108
|
-
export var errorEnum = /*#__PURE__*/function (errorEnum) {
|
109
|
-
errorEnum["PARAMS"] = "PARAMS";
|
110
|
-
errorEnum["TIMEOUT"] = "TIMEOUT";
|
111
|
-
errorEnum["NETWORK"] = "NETWORK";
|
112
|
-
errorEnum["SYSTEM"] = "SYSTEM";
|
113
|
-
errorEnum["LOGIN"] = "LOGIN";
|
114
|
-
errorEnum["GATEWAY"] = "GATEWAY";
|
115
|
-
errorEnum["VALIDATION"] = "VALIDATION";
|
116
|
-
errorEnum["TAOBAOBINDALIPAY"] = "TAOBAOBINDALIPAY";
|
117
|
-
errorEnum["REGISTERWALLET"] = "REGISTERWALLET";
|
118
|
-
errorEnum["NOALIPAYID"] = "NOALIPAYID";
|
119
|
-
errorEnum["TRUSTLOGINERROR"] = "TRUSTLOGINERROR";
|
120
|
-
errorEnum["SIGNIN"] = "SIGNIN";
|
121
|
-
errorEnum["GETSIGNPARAMSERROR"] = "GETSIGNPARAMSERROR";
|
122
|
-
return errorEnum;
|
123
|
-
}({});
|
124
|
-
export var eventCodeEnum = /*#__PURE__*/function (eventCodeEnum) {
|
125
|
-
eventCodeEnum["SDK_START_OF_LOADING"] = "SDK_START_OF_LOADING";
|
126
|
-
eventCodeEnum["SDK_END_OF_LOADING"] = "SDK_END_OF_LOADING";
|
127
|
-
eventCodeEnum["SDK_INTERNAL_ERROR"] = "SDK_INTERNAL_ERROR";
|
128
|
-
eventCodeEnum["SDK_CREATEPAYMENT_PARAMETER_ERROR"] = "SDK_CREATEPAYMENT_PARAMETER_ERROR";
|
129
|
-
eventCodeEnum["SDK_INIT_PARAMETER_ERROR"] = "SDK_INIT_PARAMETER_ERROR";
|
130
|
-
eventCodeEnum["SDK_CREATECOMPONENT_ERROR"] = "SDK_CREATECOMPONENT_ERROR";
|
131
|
-
eventCodeEnum["SDK_CALL_URL_ERROR"] = "SDK_CALL_URL_ERROR";
|
132
|
-
eventCodeEnum["SDK_CALL_URL_SUCCESS"] = "SDK_CALL_URL_SUCCESS";
|
133
|
-
return eventCodeEnum;
|
134
|
-
}({});
|
package/esm/util/mock.js
DELETED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|