@adyen/adyen-web 5.33.0 → 5.35.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/README.md +5 -1
- package/dist/adyen.css +6 -5
- package/dist/adyen.css.map +1 -1
- package/dist/adyen.js +1 -1
- package/dist/adyen.js.map +1 -1
- package/dist/cjs/adyen.css +6 -5
- package/dist/cjs/adyen.css.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es/adyen.css +6 -5
- package/dist/es/adyen.css.map +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es.modern/adyen.css +6 -5
- package/dist/es.modern/adyen.css.map +1 -1
- package/dist/es.modern/index.js +1 -1
- package/dist/types/components/Ach/components/AchInput/types.d.ts +1 -1
- package/dist/types/components/AmazonPay/types.d.ts +9 -9
- package/dist/types/components/ApplePay/types.d.ts +2 -2
- package/dist/types/components/Atome/config.d.ts +1 -1
- package/dist/types/components/BcmcMobile/BcmcMobile.d.ts +0 -1
- package/dist/types/components/Card/Bancontact.d.ts +6 -2
- package/dist/types/components/Card/Card.d.ts +9 -7
- package/dist/types/components/Card/ClickToPayHolder.d.ts +1 -1
- package/dist/types/components/Card/ClickToPayWrapper.d.ts +1 -1
- package/dist/types/components/Card/components/CardInput/components/AvailableBrands/AvailableBrands.d.ts +1 -1
- package/dist/types/components/Card/components/CardInput/components/CardFieldsWrapper.d.ts +2 -1
- package/dist/types/components/Card/components/CardInput/components/DisclaimerMessage/DisclaimerMessage.d.ts +16 -0
- package/dist/types/components/Card/components/CardInput/components/DisclaimerMessage/index.d.ts +1 -0
- package/dist/types/components/Card/components/CardInput/components/StoredCardFieldsWrapper.d.ts +2 -1
- package/dist/types/components/Card/components/CardInput/components/types.d.ts +2 -2
- package/dist/types/components/Card/components/CardInput/types.d.ts +8 -2
- package/dist/types/components/Card/components/CardInput/utils.d.ts +1 -0
- package/dist/types/components/Card/components/ClickToPay/ClickToPayComponent.d.ts +1 -1
- package/dist/types/components/Card/components/ClickToPay/components/CtPBrand/CtPBrand.d.ts +1 -1
- package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPCards.d.ts +1 -1
- package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPCardsList/CtPCardsList.d.ts +1 -1
- package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPSingleCard/CtPSingleCard.d.ts +1 -1
- package/dist/types/components/Card/components/ClickToPay/components/CtPInfo/CtPInfoModal/CtPInfoModal.d.ts +1 -1
- package/dist/types/components/Card/components/ClickToPay/components/CtPLogin/CtPLoginInput.d.ts +11 -7
- package/dist/types/components/Card/components/ClickToPay/components/CtPOneTimePassword/CtPOneTimePassword.d.ts +1 -1
- package/dist/types/components/Card/components/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/CtPOneTimePasswordInput.d.ts +11 -7
- package/dist/types/components/Card/components/ClickToPay/context/ClickToPayContext.d.ts +2 -0
- package/dist/types/components/Card/components/ClickToPay/context/ClickToPayProvider.d.ts +4 -2
- package/dist/types/components/Card/components/ClickToPay/services/ClickToPayService.d.ts +1 -1
- package/dist/types/components/Card/components/ClickToPay/services/sdks/AbstractSrcInitiator.d.ts +3 -4
- package/dist/types/components/Card/components/ClickToPay/services/sdks/MastercardSdk.d.ts +2 -3
- package/dist/types/components/Card/components/ClickToPay/services/sdks/SrciError.d.ts +2 -2
- package/dist/types/components/Card/components/ClickToPay/services/sdks/VisaSdk.d.ts +2 -3
- package/dist/types/components/Card/components/ClickToPay/services/sdks/types.d.ts +14 -10
- package/dist/types/components/Card/components/ClickToPay/services/types.d.ts +10 -10
- package/dist/types/components/Card/types.d.ts +17 -6
- package/dist/types/components/Dropin/types.d.ts +1 -1
- package/dist/types/components/DuitNow/DuitNow.d.ts +0 -1
- package/dist/types/components/Giftcard/components/types.d.ts +2 -2
- package/dist/types/components/Klarna/types.d.ts +2 -2
- package/dist/types/components/Oxxo/types.d.ts +1 -1
- package/dist/types/components/PayNow/PayNow.d.ts +0 -1
- package/dist/types/components/PayPal/Paypal.d.ts +1 -1
- package/dist/types/components/PayPal/types.d.ts +7 -4
- package/dist/types/components/Pix/PixInput/types.d.ts +1 -1
- package/dist/types/components/PromptPay/PromptPay.d.ts +0 -1
- package/dist/types/components/Swish/Swish.d.ts +0 -1
- package/dist/types/components/ThreeDS2/types.d.ts +4 -4
- package/dist/types/components/UPI/components/UPIComponent/UPIComponent.d.ts +8 -6
- package/dist/types/components/UPI/components/VpaInput/VpaInput.d.ts +11 -7
- package/dist/types/components/UPI/types.d.ts +1 -1
- package/dist/types/components/WeChat/WeChat.d.ts +0 -1
- package/dist/types/components/helpers/QRLoaderContainer.d.ts +0 -1
- package/dist/types/components/internal/Address/types.d.ts +3 -3
- package/dist/types/components/internal/Await/Await.d.ts +0 -1
- package/dist/types/components/internal/Await/types.d.ts +0 -1
- package/dist/types/components/internal/Button/types.d.ts +1 -1
- package/dist/types/components/internal/IbanInput/utils.d.ts +1 -1
- package/dist/types/components/internal/Modal/Modal.d.ts +2 -2
- package/dist/types/components/internal/Modal/useModal.d.ts +2 -2
- package/dist/types/components/internal/Modal/useTrapFocus.d.ts +1 -1
- package/dist/types/components/internal/PersonalDetails/types.d.ts +1 -1
- package/dist/types/components/internal/QRLoader/QRLoader.d.ts +1 -1
- package/dist/types/components/internal/QRLoader/types.d.ts +1 -2
- package/dist/types/components/internal/SecuredFields/lib/CSF/utils/processErrors.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/lib/configuration/constants.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/lib/securedField/AbstractSecuredField.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/lib/types.d.ts +5 -5
- package/dist/types/components/types.d.ts +3 -3
- package/dist/types/core/Analytics/Analytics.d.ts +2 -1
- package/dist/types/core/Analytics/EventsQueue.d.ts +1 -1
- package/dist/types/core/RiskModule/RiskModule.d.ts +1 -1
- package/dist/types/core/Services/analytics/post-telemetry.d.ts +3 -1
- package/dist/types/core/Services/analytics/types.d.ts +2 -2
- package/dist/types/core/Services/data-set.d.ts +1 -1
- package/dist/types/core/Services/http.d.ts +1 -1
- package/dist/types/core/types.d.ts +1 -1
- package/dist/types/language/Language.d.ts +3 -3
- package/dist/types/language/types.d.ts +2 -2
- package/dist/types/language/utils.d.ts +4 -3
- package/dist/types/types/index.d.ts +13 -13
- package/dist/types/utils/Formatters/types.d.ts +1 -1
- package/dist/types/utils/Validator/types.d.ts +9 -9
- package/dist/types/utils/isValidURL.d.ts +1 -0
- package/dist/types/utils/useForm/types.d.ts +2 -2
- package/package.json +10 -10
|
@@ -2,7 +2,7 @@ import paymentMethods from '../components';
|
|
|
2
2
|
import { ADDRESS_SCHEMA } from '../components/internal/Address/constants';
|
|
3
3
|
import actionTypes from '../core/ProcessResponse/PaymentAction/actionTypes';
|
|
4
4
|
import { InstallmentOptions } from '../components/Card/components/CardInput/components/types';
|
|
5
|
-
export
|
|
5
|
+
export type PaymentActionsType = keyof typeof actionTypes;
|
|
6
6
|
/**
|
|
7
7
|
* {@link https://docs.adyen.com/api-explorer/#/PaymentSetupAndVerificationService/v51/payments__resParam_action API Explorer /payments action}
|
|
8
8
|
*/
|
|
@@ -155,8 +155,8 @@ export interface PaymentAmountExtended extends PaymentAmount {
|
|
|
155
155
|
*/
|
|
156
156
|
currencyDisplay?: string;
|
|
157
157
|
}
|
|
158
|
-
export
|
|
159
|
-
export
|
|
158
|
+
export type AddressField = typeof ADDRESS_SCHEMA[number];
|
|
159
|
+
export type AddressData = {
|
|
160
160
|
[key in AddressField]?: string;
|
|
161
161
|
};
|
|
162
162
|
export interface PersonalDetailsSchema {
|
|
@@ -207,24 +207,24 @@ export interface BrowserInfo {
|
|
|
207
207
|
/**
|
|
208
208
|
* Available components
|
|
209
209
|
*/
|
|
210
|
-
export
|
|
210
|
+
export type PaymentMethods = typeof paymentMethods;
|
|
211
211
|
/**
|
|
212
212
|
* Options for a component
|
|
213
213
|
*/
|
|
214
|
-
export
|
|
214
|
+
export type PaymentMethodOptions<P extends keyof PaymentMethods> = InstanceType<PaymentMethods[P]>['props'];
|
|
215
215
|
/**
|
|
216
216
|
* Visibility options for a fieldset
|
|
217
217
|
*/
|
|
218
|
-
export
|
|
219
|
-
export
|
|
218
|
+
export type FieldsetVisibility = 'editable' | 'hidden' | 'readOnly';
|
|
219
|
+
export type CheckoutSession = {
|
|
220
220
|
id: string;
|
|
221
221
|
sessionData: string;
|
|
222
222
|
};
|
|
223
|
-
export
|
|
223
|
+
export type SessionConfiguration = {
|
|
224
224
|
installmentOptions: InstallmentOptions;
|
|
225
225
|
enableStoreDetails: boolean;
|
|
226
226
|
};
|
|
227
|
-
export
|
|
227
|
+
export type CheckoutSessionSetupResponse = {
|
|
228
228
|
id: string;
|
|
229
229
|
sessionData: string;
|
|
230
230
|
amount: PaymentAmount;
|
|
@@ -233,24 +233,24 @@ export declare type CheckoutSessionSetupResponse = {
|
|
|
233
233
|
returnUrl: string;
|
|
234
234
|
configuration: SessionConfiguration;
|
|
235
235
|
};
|
|
236
|
-
export
|
|
236
|
+
export type CheckoutSessionPaymentResponse = {
|
|
237
237
|
sessionData: string;
|
|
238
238
|
status?: string;
|
|
239
239
|
resultCode: string;
|
|
240
240
|
action?: PaymentAction;
|
|
241
241
|
};
|
|
242
|
-
export
|
|
242
|
+
export type CheckoutSessionDetailsResponse = {
|
|
243
243
|
sessionData: string;
|
|
244
244
|
status?: string;
|
|
245
245
|
resultCode: string;
|
|
246
246
|
action?: PaymentAction;
|
|
247
247
|
};
|
|
248
|
-
export
|
|
248
|
+
export type CheckoutSessionBalanceResponse = {
|
|
249
249
|
sessionData: string;
|
|
250
250
|
balance?: PaymentAmount;
|
|
251
251
|
transactionLimit?: PaymentAmount;
|
|
252
252
|
};
|
|
253
|
-
export
|
|
253
|
+
export type CheckoutSessionOrdersResponse = {
|
|
254
254
|
sessionData: string;
|
|
255
255
|
orderData: string;
|
|
256
256
|
pspReference: string;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { ValidationRuleResult } from './ValidationRuleResult';
|
|
2
2
|
import { Formatter } from '../useForm/types';
|
|
3
|
-
|
|
4
|
-
export
|
|
3
|
+
type ValidatorMode = 'blur' | 'input';
|
|
4
|
+
export type ErrorMessageObject = {
|
|
5
5
|
translationKey: string;
|
|
6
6
|
translationObject: any;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type Ruleset = {
|
|
9
9
|
[key: string]: any;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type CountryRuleset = {
|
|
12
12
|
[country: string]: Ruleset;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type FormatRules = {
|
|
15
15
|
[field: string]: Formatter;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type CountryFormatRules = {
|
|
18
18
|
[country: string]: FormatRules;
|
|
19
19
|
};
|
|
20
20
|
export interface ValidatorRule {
|
|
@@ -22,10 +22,10 @@ export interface ValidatorRule {
|
|
|
22
22
|
errorMessage?: string | ErrorMessageObject;
|
|
23
23
|
modes: ValidatorMode[];
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type ValidatorRules = {
|
|
26
26
|
[field: string]: ValidatorRule | ValidatorRule[];
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type CountryBasedValidatorRules = {
|
|
29
29
|
[country: string]: ValidatorRules;
|
|
30
30
|
};
|
|
31
31
|
export interface FieldData {
|
|
@@ -38,7 +38,7 @@ export interface FieldContext {
|
|
|
38
38
|
[key: string]: any;
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
export
|
|
41
|
+
export type ValidationRuleResults = {
|
|
42
42
|
[key: string]: ValidationRuleResult;
|
|
43
43
|
};
|
|
44
44
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isValidHttpUrl: (string: any, allowHttp?: boolean) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ValidatorRules } from '../Validator/types';
|
|
2
2
|
import { FormatterFn } from '../Formatters/types';
|
|
3
|
-
export
|
|
3
|
+
export type FormState<FormSchema> = {
|
|
4
4
|
schema?: string[];
|
|
5
5
|
data: FormSchema;
|
|
6
6
|
errors: {
|
|
@@ -19,7 +19,7 @@ export interface Formatter {
|
|
|
19
19
|
format?: string;
|
|
20
20
|
maxlength?: number;
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export type FormProps = {
|
|
23
23
|
rules?: ValidatorRules;
|
|
24
24
|
formatters?: {
|
|
25
25
|
[key: string]: Formatter | Function;
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"./dist/adyen.css": "./dist/adyen.css",
|
|
24
24
|
"./package.json": "./package.json"
|
|
25
25
|
},
|
|
26
|
-
"version": "5.
|
|
26
|
+
"version": "5.35.0",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"homepage": "https://docs.adyen.com/checkout",
|
|
29
29
|
"repository": "github:Adyen/adyen-web",
|
|
@@ -67,17 +67,17 @@
|
|
|
67
67
|
"@testing-library/preact": "3.2.3",
|
|
68
68
|
"@testing-library/preact-hooks": "1.1.0",
|
|
69
69
|
"@testing-library/user-event": "14.4.3",
|
|
70
|
-
"@types/jest": "29.
|
|
71
|
-
"@typescript-eslint/eslint-plugin": "
|
|
72
|
-
"@typescript-eslint/parser": "
|
|
70
|
+
"@types/jest": "29.4.0",
|
|
71
|
+
"@typescript-eslint/eslint-plugin": "5.51.0",
|
|
72
|
+
"@typescript-eslint/parser": "5.51.0",
|
|
73
73
|
"autoprefixer": "10.4.13",
|
|
74
|
-
"babel-jest": "29.
|
|
74
|
+
"babel-jest": "29.4.2",
|
|
75
75
|
"cross-env": "^7.0.3",
|
|
76
76
|
"cssnano": "5.1.14",
|
|
77
77
|
"dotenv": "^16.0.3",
|
|
78
78
|
"enzyme": "3.11.0",
|
|
79
79
|
"enzyme-adapter-preact-pure": "4.1.0",
|
|
80
|
-
"eslint": "8.
|
|
80
|
+
"eslint": "8.33.0",
|
|
81
81
|
"eslint-plugin-import": "^2.26.0",
|
|
82
82
|
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
83
83
|
"eslint-plugin-react": "^7.31.8",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"filesize": "^10.0.0",
|
|
87
87
|
"gzip-size": "^6.0.0",
|
|
88
88
|
"husky": "^8.0.1",
|
|
89
|
-
"jest": "29.
|
|
90
|
-
"jest-environment-jsdom": "29.
|
|
89
|
+
"jest": "29.4.2",
|
|
90
|
+
"jest-environment-jsdom": "29.4.2",
|
|
91
91
|
"jest-mock-extended": "^3.0.1",
|
|
92
92
|
"lint-staged": "^13.0.3",
|
|
93
93
|
"postcss": "8.4.21",
|
|
@@ -96,11 +96,11 @@
|
|
|
96
96
|
"rollup-plugin-stylelint": "1.0.0",
|
|
97
97
|
"rollup-plugin-terser": "^7.0.2",
|
|
98
98
|
"rollup-plugin-visualizer": "^5.8.3",
|
|
99
|
-
"sass": "1.
|
|
99
|
+
"sass": "1.58.0",
|
|
100
100
|
"stylelint": "14.16.1",
|
|
101
101
|
"stylelint-config-standard-scss": "6.1.0",
|
|
102
102
|
"tslib": "^2.4.1",
|
|
103
|
-
"typescript": "4.5
|
|
103
|
+
"typescript": "4.9.5",
|
|
104
104
|
"whatwg-fetch": "^3.6.2"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|