@adyen/adyen-web 5.6.2 → 5.9.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 +1 -1
- package/dist/adyen.css +3 -3
- 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 +3 -3
- package/dist/cjs/adyen.css.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es/adyen.css +3 -3
- package/dist/es/adyen.css.map +1 -1
- package/dist/es/ar.js +1 -1
- package/dist/es/cs-CZ.js +1 -1
- package/dist/es/da-DK.js +1 -1
- package/dist/es/de-DE.js +1 -1
- package/dist/es/el-GR.js +1 -1
- package/dist/es/es-ES.js +1 -1
- package/dist/es/fi-FI.js +1 -1
- package/dist/es/fr-FR.js +1 -1
- package/dist/es/hr-HR.js +1 -1
- package/dist/es/hu-HU.js +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/it-IT.js +1 -1
- package/dist/es/ja-JP.js +1 -1
- package/dist/es/ko-KR.js +1 -1
- package/dist/es/nl-NL.js +1 -1
- package/dist/es/no-NO.js +1 -1
- package/dist/es/pl-PL.js +1 -1
- package/dist/es/pt-BR.js +1 -1
- package/dist/es/ro-RO.js +1 -1
- package/dist/es/ru-RU.js +1 -1
- package/dist/es/sk-SK.js +1 -1
- package/dist/es/sl-SI.js +1 -1
- package/dist/es/sv-SE.js +1 -1
- package/dist/es/zh-CN.js +1 -1
- package/dist/es/zh-TW.js +1 -1
- package/dist/es.modern/adyen.css +3 -3
- package/dist/es.modern/adyen.css.map +1 -1
- package/dist/es.modern/ar.js +1 -1
- package/dist/es.modern/cs-CZ.js +1 -1
- package/dist/es.modern/da-DK.js +1 -1
- package/dist/es.modern/de-DE.js +1 -1
- package/dist/es.modern/el-GR.js +1 -1
- package/dist/es.modern/es-ES.js +1 -1
- package/dist/es.modern/fi-FI.js +1 -1
- package/dist/es.modern/fr-FR.js +1 -1
- package/dist/es.modern/hr-HR.js +1 -1
- package/dist/es.modern/hu-HU.js +1 -1
- package/dist/es.modern/index.js +1 -1
- package/dist/es.modern/it-IT.js +1 -1
- package/dist/es.modern/ja-JP.js +1 -1
- package/dist/es.modern/ko-KR.js +1 -1
- package/dist/es.modern/nl-NL.js +1 -1
- package/dist/es.modern/no-NO.js +1 -1
- package/dist/es.modern/pl-PL.js +1 -1
- package/dist/es.modern/pt-BR.js +1 -1
- package/dist/es.modern/ro-RO.js +1 -1
- package/dist/es.modern/ru-RU.js +1 -1
- package/dist/es.modern/sk-SK.js +1 -1
- package/dist/es.modern/sl-SI.js +1 -1
- package/dist/es.modern/sv-SE.js +1 -1
- package/dist/es.modern/zh-CN.js +1 -1
- package/dist/es.modern/zh-TW.js +1 -1
- package/dist/types/components/Ach/components/AchInput/AchInput.d.ts +2 -4
- package/dist/types/components/Ach/components/AchInput/defaultProps.d.ts +0 -3
- package/dist/types/components/Ach/components/AchInput/types.d.ts +40 -0
- package/dist/types/components/AmazonPay/types.d.ts +22 -0
- package/dist/types/components/ApplePay/types.d.ts +1 -1
- package/dist/types/components/BacsDD/components/validate.d.ts +1 -1
- package/dist/types/components/Boleto/components/BoletoInput/validate.d.ts +1 -1
- package/dist/types/components/Card/Bancontact.d.ts +3 -4
- package/dist/types/components/Card/Card.d.ts +4 -4
- package/dist/types/components/Card/components/CardInput/CardInput.d.ts +2 -40
- package/dist/types/components/Card/components/CardInput/components/CardFieldsWrapper.d.ts +47 -0
- package/dist/types/components/Card/components/CardInput/components/CardHolderName.d.ts +1 -1
- package/dist/types/components/Card/components/CardInput/components/Installments/Installments.d.ts +4 -0
- package/dist/types/components/Card/components/CardInput/components/StoredCardFields.d.ts +1 -1
- package/dist/types/components/Card/components/CardInput/components/StoredCardFieldsWrapper.d.ts +16 -0
- package/dist/types/components/Card/components/CardInput/components/types.d.ts +2 -2
- package/dist/types/components/Card/components/CardInput/defaultProps.d.ts +2 -4
- package/dist/types/components/Card/components/CardInput/handlers.d.ts +9 -0
- package/dist/types/components/Card/components/CardInput/types.d.ts +49 -15
- package/dist/types/components/Card/components/CardInput/utils.d.ts +30 -2
- package/dist/types/components/Card/components/CardInput/validate.d.ts +1 -1
- package/dist/types/components/Card/types.d.ts +1 -2
- package/dist/types/components/Dropin/Dropin.d.ts +1 -1
- package/dist/types/components/Econtext/validate.d.ts +1 -1
- package/dist/types/components/Giftcard/components/GiftcardComponent.d.ts +7 -1
- package/dist/types/components/Giftcard/components/GiftcardFields.d.ts +3 -0
- package/dist/types/components/Giftcard/components/GiftcardNumberField.d.ts +3 -0
- package/dist/types/components/Giftcard/components/GiftcardPinField.d.ts +3 -0
- package/dist/types/components/Giftcard/components/types.d.ts +19 -0
- package/dist/types/components/MealVoucherFR/MealVoucherFR.d.ts +20 -0
- package/dist/types/components/MealVoucherFR/components/MealVoucherExpiryField.d.ts +3 -0
- package/dist/types/components/MealVoucherFR/components/MealVoucherFields.d.ts +3 -0
- package/dist/types/components/MealVoucherFR/index.d.ts +1 -0
- package/dist/types/components/Pix/PixInput/validate.d.ts +1 -1
- package/dist/types/components/SecuredFields/SecuredFieldsInput/SecuredFieldsInput.d.ts +31 -1
- package/dist/types/components/UIElement.d.ts +1 -1
- package/dist/types/components/index.d.ts +4 -0
- package/dist/types/components/internal/Address/components/FieldContainer.d.ts +6 -0
- package/dist/types/components/internal/Address/types.d.ts +11 -8
- package/dist/types/components/internal/Address/validate.d.ts +1 -1
- package/dist/types/components/internal/Address/validate.formats.d.ts +3 -0
- package/dist/types/components/internal/CompanyDetails/types.d.ts +1 -1
- package/dist/types/components/internal/PersonalDetails/PersonalDetails.d.ts +1 -1
- package/dist/types/components/internal/PersonalDetails/types.d.ts +1 -1
- package/dist/types/components/internal/PersonalDetails/validate.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/SFP/SecuredFieldsProvider.d.ts +3 -25
- package/dist/types/components/internal/SecuredFields/SFP/SecuredFieldsProviderHandlers.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/SFP/defaultProps.d.ts +1 -82
- package/dist/types/components/internal/SecuredFields/SFP/types.d.ts +76 -0
- package/dist/types/components/internal/SecuredFields/binLookup/extensions.d.ts +3 -1
- package/dist/types/components/internal/SecuredFields/lib/CSF/types.d.ts +2 -1
- package/dist/types/components/internal/SecuredFields/lib/CSF/utils/tabbing/utils.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/lib/configuration/constants.d.ts +6 -5
- package/dist/types/components/internal/SecuredFields/lib/securedField/AbstractSecuredField.d.ts +1 -0
- package/dist/types/components/internal/SecuredFields/lib/securedField/SecuredField.d.ts +4 -0
- package/dist/types/components/internal/SecuredFields/lib/types.d.ts +1 -0
- package/dist/types/components/internal/SecuredFields/lib/utilities/commonUtils.d.ts +1 -1
- package/dist/types/components/internal/SocialSecurityNumberBrazil/SocialSecurityNumberBrazil.d.ts +2 -2
- package/dist/types/core/core.d.ts +2 -1
- package/dist/types/language/config.d.ts +1 -0
- package/dist/types/language/locales/index.d.ts +50 -0
- package/dist/types/types/index.d.ts +30 -1
- package/dist/types/utils/Validator/Validator.d.ts +2 -20
- package/dist/types/utils/Validator/types.d.ts +45 -0
- package/dist/types/utils/useForm/types.d.ts +5 -0
- package/dist/types/utils/useForm/useForm.d.ts +2 -6
- package/dist/types/utils/validator-utils.d.ts +5 -0
- package/package.json +5 -5
|
@@ -7,6 +7,10 @@ declare class SecuredField extends AbstractSecuredField {
|
|
|
7
7
|
iframeOnLoadListenerFn(): void;
|
|
8
8
|
postMessageListenerFn(event: MessageEvent): void;
|
|
9
9
|
destroy(): void;
|
|
10
|
+
/**
|
|
11
|
+
* Returns whether the securedField is hidden OR whether it is optional and not in error
|
|
12
|
+
*/
|
|
13
|
+
isOptionalOrHidden(): boolean;
|
|
10
14
|
onIframeLoaded(callbackFn: RtnType_noParamVoidFn): SecuredField;
|
|
11
15
|
onEncryption(callbackFn: RtnType_callbackFn): SecuredField;
|
|
12
16
|
onValidation(callbackFn: RtnType_callbackFn): SecuredField;
|
|
@@ -38,7 +38,7 @@ declare function falsy(x: any): boolean;
|
|
|
38
38
|
declare function notFalsy(x: any): boolean;
|
|
39
39
|
/**
|
|
40
40
|
* This function allows us to partially apply any number of variables to functions that take any number of parameters.
|
|
41
|
-
* @returns {function():
|
|
41
|
+
* @returns \{function(): *\}
|
|
42
42
|
*/
|
|
43
43
|
declare function partial(...args: any[]): (...args2: any[]) => any;
|
|
44
44
|
export { generateRandomNumber, existy, falsy, isArray, objectsDeepEqual, notFalsy, partial, truthy };
|
package/dist/types/components/internal/SocialSecurityNumberBrazil/SocialSecurityNumberBrazil.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from 'preact';
|
|
2
|
-
export default function ({
|
|
3
|
-
|
|
2
|
+
export default function ({ onBlur, onInput, valid, error, data, required }: {
|
|
3
|
+
onBlur: any;
|
|
4
4
|
onInput: any;
|
|
5
5
|
valid?: boolean;
|
|
6
6
|
error?: any;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import UIElement from '../components/UIElement';
|
|
2
|
+
import PaymentMethodsResponse from './ProcessResponse/PaymentMethodsResponse';
|
|
2
3
|
import { PaymentAction } from '../types';
|
|
3
4
|
import { CoreOptions } from './types';
|
|
4
5
|
import { PaymentMethods, PaymentMethodOptions } from '../types';
|
|
5
6
|
import Session from './CheckoutSession';
|
|
6
7
|
declare class Core {
|
|
7
8
|
session: Session;
|
|
8
|
-
|
|
9
|
+
paymentMethodsResponse: PaymentMethodsResponse;
|
|
9
10
|
modules: any;
|
|
10
11
|
options: CoreOptions;
|
|
11
12
|
components: any[];
|
|
@@ -215,6 +215,7 @@ declare const _default: {
|
|
|
215
215
|
"pix.instructions": string;
|
|
216
216
|
"twint.saved": string;
|
|
217
217
|
orPayWith: string;
|
|
218
|
+
invalidFormatExpects: string;
|
|
218
219
|
};
|
|
219
220
|
payButton: string;
|
|
220
221
|
"payButton.redirecting": string;
|
|
@@ -430,6 +431,7 @@ declare const _default: {
|
|
|
430
431
|
"pix.instructions": string;
|
|
431
432
|
"twint.saved": string;
|
|
432
433
|
orPayWith: string;
|
|
434
|
+
invalidFormatExpects: string;
|
|
433
435
|
}>;
|
|
434
436
|
'cs-CZ': () => Promise<{
|
|
435
437
|
default: {
|
|
@@ -646,6 +648,7 @@ declare const _default: {
|
|
|
646
648
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
647
649
|
"twint.saved": string;
|
|
648
650
|
orPayWith: string;
|
|
651
|
+
invalidFormatExpects: string;
|
|
649
652
|
};
|
|
650
653
|
payButton: string;
|
|
651
654
|
"payButton.redirecting": string;
|
|
@@ -860,6 +863,7 @@ declare const _default: {
|
|
|
860
863
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
861
864
|
"twint.saved": string;
|
|
862
865
|
orPayWith: string;
|
|
866
|
+
invalidFormatExpects: string;
|
|
863
867
|
}>;
|
|
864
868
|
'da-DK': () => Promise<{
|
|
865
869
|
default: {
|
|
@@ -1077,6 +1081,7 @@ declare const _default: {
|
|
|
1077
1081
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
1078
1082
|
"twint.saved": string;
|
|
1079
1083
|
orPayWith: string;
|
|
1084
|
+
invalidFormatExpects: string;
|
|
1080
1085
|
};
|
|
1081
1086
|
payButton: string;
|
|
1082
1087
|
"payButton.redirecting": string;
|
|
@@ -1292,6 +1297,7 @@ declare const _default: {
|
|
|
1292
1297
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
1293
1298
|
"twint.saved": string;
|
|
1294
1299
|
orPayWith: string;
|
|
1300
|
+
invalidFormatExpects: string;
|
|
1295
1301
|
}>;
|
|
1296
1302
|
'de-DE': () => Promise<{
|
|
1297
1303
|
default: {
|
|
@@ -1508,6 +1514,7 @@ declare const _default: {
|
|
|
1508
1514
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
1509
1515
|
"twint.saved": string;
|
|
1510
1516
|
orPayWith: string;
|
|
1517
|
+
invalidFormatExpects: string;
|
|
1511
1518
|
};
|
|
1512
1519
|
payButton: string;
|
|
1513
1520
|
"payButton.redirecting": string;
|
|
@@ -1722,6 +1729,7 @@ declare const _default: {
|
|
|
1722
1729
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
1723
1730
|
"twint.saved": string;
|
|
1724
1731
|
orPayWith: string;
|
|
1732
|
+
invalidFormatExpects: string;
|
|
1725
1733
|
}>;
|
|
1726
1734
|
'el-GR': () => Promise<{
|
|
1727
1735
|
default: {
|
|
@@ -1938,6 +1946,7 @@ declare const _default: {
|
|
|
1938
1946
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
1939
1947
|
"twint.saved": string;
|
|
1940
1948
|
orPayWith: string;
|
|
1949
|
+
invalidFormatExpects: string;
|
|
1941
1950
|
};
|
|
1942
1951
|
payButton: string;
|
|
1943
1952
|
"payButton.redirecting": string;
|
|
@@ -2152,6 +2161,7 @@ declare const _default: {
|
|
|
2152
2161
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
2153
2162
|
"twint.saved": string;
|
|
2154
2163
|
orPayWith: string;
|
|
2164
|
+
invalidFormatExpects: string;
|
|
2155
2165
|
}>;
|
|
2156
2166
|
'en-US': () => Promise<{
|
|
2157
2167
|
default: {
|
|
@@ -2370,6 +2380,7 @@ declare const _default: {
|
|
|
2370
2380
|
"pix.instructions": string;
|
|
2371
2381
|
"twint.saved": string;
|
|
2372
2382
|
orPayWith: string;
|
|
2383
|
+
invalidFormatExpects: string;
|
|
2373
2384
|
};
|
|
2374
2385
|
payButton: string;
|
|
2375
2386
|
"payButton.redirecting": string;
|
|
@@ -2586,6 +2597,7 @@ declare const _default: {
|
|
|
2586
2597
|
"pix.instructions": string;
|
|
2587
2598
|
"twint.saved": string;
|
|
2588
2599
|
orPayWith: string;
|
|
2600
|
+
invalidFormatExpects: string;
|
|
2589
2601
|
}>;
|
|
2590
2602
|
'es-ES': () => Promise<{
|
|
2591
2603
|
default: {
|
|
@@ -2797,6 +2809,7 @@ declare const _default: {
|
|
|
2797
2809
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
2798
2810
|
"twint.saved": string;
|
|
2799
2811
|
orPayWith: string;
|
|
2812
|
+
invalidFormatExpects: string;
|
|
2800
2813
|
};
|
|
2801
2814
|
payButton: string;
|
|
2802
2815
|
"payButton.redirecting": string;
|
|
@@ -3006,6 +3019,7 @@ declare const _default: {
|
|
|
3006
3019
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
3007
3020
|
"twint.saved": string;
|
|
3008
3021
|
orPayWith: string;
|
|
3022
|
+
invalidFormatExpects: string;
|
|
3009
3023
|
}>;
|
|
3010
3024
|
'fi-FI': () => Promise<{
|
|
3011
3025
|
default: {
|
|
@@ -3222,6 +3236,7 @@ declare const _default: {
|
|
|
3222
3236
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
3223
3237
|
"twint.saved": string;
|
|
3224
3238
|
orPayWith: string;
|
|
3239
|
+
invalidFormatExpects: string;
|
|
3225
3240
|
};
|
|
3226
3241
|
payButton: string;
|
|
3227
3242
|
"payButton.redirecting": string;
|
|
@@ -3436,6 +3451,7 @@ declare const _default: {
|
|
|
3436
3451
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
3437
3452
|
"twint.saved": string;
|
|
3438
3453
|
orPayWith: string;
|
|
3454
|
+
invalidFormatExpects: string;
|
|
3439
3455
|
}>;
|
|
3440
3456
|
'fr-FR': () => Promise<{
|
|
3441
3457
|
default: {
|
|
@@ -3652,6 +3668,7 @@ declare const _default: {
|
|
|
3652
3668
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
3653
3669
|
"twint.saved": string;
|
|
3654
3670
|
orPayWith: string;
|
|
3671
|
+
invalidFormatExpects: string;
|
|
3655
3672
|
};
|
|
3656
3673
|
payButton: string;
|
|
3657
3674
|
"payButton.redirecting": string;
|
|
@@ -3866,6 +3883,7 @@ declare const _default: {
|
|
|
3866
3883
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
3867
3884
|
"twint.saved": string;
|
|
3868
3885
|
orPayWith: string;
|
|
3886
|
+
invalidFormatExpects: string;
|
|
3869
3887
|
}>;
|
|
3870
3888
|
'hr-HR': () => Promise<{
|
|
3871
3889
|
default: {
|
|
@@ -4082,6 +4100,7 @@ declare const _default: {
|
|
|
4082
4100
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
4083
4101
|
"twint.saved": string;
|
|
4084
4102
|
orPayWith: string;
|
|
4103
|
+
invalidFormatExpects: string;
|
|
4085
4104
|
};
|
|
4086
4105
|
payButton: string;
|
|
4087
4106
|
"payButton.redirecting": string;
|
|
@@ -4296,6 +4315,7 @@ declare const _default: {
|
|
|
4296
4315
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
4297
4316
|
"twint.saved": string;
|
|
4298
4317
|
orPayWith: string;
|
|
4318
|
+
invalidFormatExpects: string;
|
|
4299
4319
|
}>;
|
|
4300
4320
|
'hu-HU': () => Promise<{
|
|
4301
4321
|
default: {
|
|
@@ -4512,6 +4532,7 @@ declare const _default: {
|
|
|
4512
4532
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
4513
4533
|
"twint.saved": string;
|
|
4514
4534
|
orPayWith: string;
|
|
4535
|
+
invalidFormatExpects: string;
|
|
4515
4536
|
};
|
|
4516
4537
|
payButton: string;
|
|
4517
4538
|
"payButton.redirecting": string;
|
|
@@ -4726,6 +4747,7 @@ declare const _default: {
|
|
|
4726
4747
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
4727
4748
|
"twint.saved": string;
|
|
4728
4749
|
orPayWith: string;
|
|
4750
|
+
invalidFormatExpects: string;
|
|
4729
4751
|
}>;
|
|
4730
4752
|
'it-IT': () => Promise<{
|
|
4731
4753
|
default: {
|
|
@@ -4940,6 +4962,7 @@ declare const _default: {
|
|
|
4940
4962
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
4941
4963
|
"twint.saved": string;
|
|
4942
4964
|
orPayWith: string;
|
|
4965
|
+
invalidFormatExpects: string;
|
|
4943
4966
|
};
|
|
4944
4967
|
payButton: string;
|
|
4945
4968
|
"payButton.redirecting": string;
|
|
@@ -5152,6 +5175,7 @@ declare const _default: {
|
|
|
5152
5175
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
5153
5176
|
"twint.saved": string;
|
|
5154
5177
|
orPayWith: string;
|
|
5178
|
+
invalidFormatExpects: string;
|
|
5155
5179
|
}>;
|
|
5156
5180
|
'ja-JP': () => Promise<{
|
|
5157
5181
|
default: {
|
|
@@ -5368,6 +5392,7 @@ declare const _default: {
|
|
|
5368
5392
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
5369
5393
|
"twint.saved": string;
|
|
5370
5394
|
orPayWith: string;
|
|
5395
|
+
invalidFormatExpects: string;
|
|
5371
5396
|
};
|
|
5372
5397
|
payButton: string;
|
|
5373
5398
|
"payButton.redirecting": string;
|
|
@@ -5582,6 +5607,7 @@ declare const _default: {
|
|
|
5582
5607
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
5583
5608
|
"twint.saved": string;
|
|
5584
5609
|
orPayWith: string;
|
|
5610
|
+
invalidFormatExpects: string;
|
|
5585
5611
|
}>;
|
|
5586
5612
|
'ko-KR': () => Promise<{
|
|
5587
5613
|
default: {
|
|
@@ -5798,6 +5824,7 @@ declare const _default: {
|
|
|
5798
5824
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
5799
5825
|
"twint.saved": string;
|
|
5800
5826
|
orPayWith: string;
|
|
5827
|
+
invalidFormatExpects: string;
|
|
5801
5828
|
};
|
|
5802
5829
|
payButton: string;
|
|
5803
5830
|
"payButton.redirecting": string;
|
|
@@ -6012,6 +6039,7 @@ declare const _default: {
|
|
|
6012
6039
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
6013
6040
|
"twint.saved": string;
|
|
6014
6041
|
orPayWith: string;
|
|
6042
|
+
invalidFormatExpects: string;
|
|
6015
6043
|
}>;
|
|
6016
6044
|
'nl-NL': () => Promise<{
|
|
6017
6045
|
default: {
|
|
@@ -6228,6 +6256,7 @@ declare const _default: {
|
|
|
6228
6256
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
6229
6257
|
"twint.saved": string;
|
|
6230
6258
|
orPayWith: string;
|
|
6259
|
+
invalidFormatExpects: string;
|
|
6231
6260
|
};
|
|
6232
6261
|
payButton: string;
|
|
6233
6262
|
"payButton.redirecting": string;
|
|
@@ -6442,6 +6471,7 @@ declare const _default: {
|
|
|
6442
6471
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
6443
6472
|
"twint.saved": string;
|
|
6444
6473
|
orPayWith: string;
|
|
6474
|
+
invalidFormatExpects: string;
|
|
6445
6475
|
}>;
|
|
6446
6476
|
'no-NO': () => Promise<{
|
|
6447
6477
|
default: {
|
|
@@ -6658,6 +6688,7 @@ declare const _default: {
|
|
|
6658
6688
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
6659
6689
|
"twint.saved": string;
|
|
6660
6690
|
orPayWith: string;
|
|
6691
|
+
invalidFormatExpects: string;
|
|
6661
6692
|
};
|
|
6662
6693
|
payButton: string;
|
|
6663
6694
|
"payButton.redirecting": string;
|
|
@@ -6872,6 +6903,7 @@ declare const _default: {
|
|
|
6872
6903
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
6873
6904
|
"twint.saved": string;
|
|
6874
6905
|
orPayWith: string;
|
|
6906
|
+
invalidFormatExpects: string;
|
|
6875
6907
|
}>;
|
|
6876
6908
|
'pl-PL': () => Promise<{
|
|
6877
6909
|
default: {
|
|
@@ -7088,6 +7120,7 @@ declare const _default: {
|
|
|
7088
7120
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
7089
7121
|
"twint.saved": string;
|
|
7090
7122
|
orPayWith: string;
|
|
7123
|
+
invalidFormatExpects: string;
|
|
7091
7124
|
};
|
|
7092
7125
|
payButton: string;
|
|
7093
7126
|
"payButton.redirecting": string;
|
|
@@ -7302,6 +7335,7 @@ declare const _default: {
|
|
|
7302
7335
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
7303
7336
|
"twint.saved": string;
|
|
7304
7337
|
orPayWith: string;
|
|
7338
|
+
invalidFormatExpects: string;
|
|
7305
7339
|
}>;
|
|
7306
7340
|
'pt-BR': () => Promise<{
|
|
7307
7341
|
default: {
|
|
@@ -7516,6 +7550,7 @@ declare const _default: {
|
|
|
7516
7550
|
"pix.instructions": string;
|
|
7517
7551
|
"twint.saved": string;
|
|
7518
7552
|
orPayWith: string;
|
|
7553
|
+
invalidFormatExpects: string;
|
|
7519
7554
|
};
|
|
7520
7555
|
payButton: string;
|
|
7521
7556
|
"payButton.redirecting": string;
|
|
@@ -7728,6 +7763,7 @@ declare const _default: {
|
|
|
7728
7763
|
"pix.instructions": string;
|
|
7729
7764
|
"twint.saved": string;
|
|
7730
7765
|
orPayWith: string;
|
|
7766
|
+
invalidFormatExpects: string;
|
|
7731
7767
|
}>;
|
|
7732
7768
|
'ro-RO': () => Promise<{
|
|
7733
7769
|
default: {
|
|
@@ -7944,6 +7980,7 @@ declare const _default: {
|
|
|
7944
7980
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
7945
7981
|
"twint.saved": string;
|
|
7946
7982
|
orPayWith: string;
|
|
7983
|
+
invalidFormatExpects: string;
|
|
7947
7984
|
};
|
|
7948
7985
|
payButton: string;
|
|
7949
7986
|
"payButton.redirecting": string;
|
|
@@ -8158,6 +8195,7 @@ declare const _default: {
|
|
|
8158
8195
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
8159
8196
|
"twint.saved": string;
|
|
8160
8197
|
orPayWith: string;
|
|
8198
|
+
invalidFormatExpects: string;
|
|
8161
8199
|
}>;
|
|
8162
8200
|
'ru-RU': () => Promise<{
|
|
8163
8201
|
default: {
|
|
@@ -8371,6 +8409,7 @@ declare const _default: {
|
|
|
8371
8409
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
8372
8410
|
"twint.saved": string;
|
|
8373
8411
|
orPayWith: string;
|
|
8412
|
+
invalidFormatExpects: string;
|
|
8374
8413
|
};
|
|
8375
8414
|
payButton: string;
|
|
8376
8415
|
"payButton.redirecting": string;
|
|
@@ -8582,6 +8621,7 @@ declare const _default: {
|
|
|
8582
8621
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
8583
8622
|
"twint.saved": string;
|
|
8584
8623
|
orPayWith: string;
|
|
8624
|
+
invalidFormatExpects: string;
|
|
8585
8625
|
}>;
|
|
8586
8626
|
'sk-SK': () => Promise<{
|
|
8587
8627
|
default: {
|
|
@@ -8798,6 +8838,7 @@ declare const _default: {
|
|
|
8798
8838
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
8799
8839
|
"twint.saved": string;
|
|
8800
8840
|
orPayWith: string;
|
|
8841
|
+
invalidFormatExpects: string;
|
|
8801
8842
|
};
|
|
8802
8843
|
payButton: string;
|
|
8803
8844
|
"payButton.redirecting": string;
|
|
@@ -9012,6 +9053,7 @@ declare const _default: {
|
|
|
9012
9053
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
9013
9054
|
"twint.saved": string;
|
|
9014
9055
|
orPayWith: string;
|
|
9056
|
+
invalidFormatExpects: string;
|
|
9015
9057
|
}>;
|
|
9016
9058
|
'sl-SI': () => Promise<{
|
|
9017
9059
|
default: {
|
|
@@ -9228,6 +9270,7 @@ declare const _default: {
|
|
|
9228
9270
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
9229
9271
|
"twint.saved": string;
|
|
9230
9272
|
orPayWith: string;
|
|
9273
|
+
invalidFormatExpects: string;
|
|
9231
9274
|
};
|
|
9232
9275
|
payButton: string;
|
|
9233
9276
|
"payButton.redirecting": string;
|
|
@@ -9442,6 +9485,7 @@ declare const _default: {
|
|
|
9442
9485
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
9443
9486
|
"twint.saved": string;
|
|
9444
9487
|
orPayWith: string;
|
|
9488
|
+
invalidFormatExpects: string;
|
|
9445
9489
|
}>;
|
|
9446
9490
|
'sv-SE': () => Promise<{
|
|
9447
9491
|
default: {
|
|
@@ -9658,6 +9702,7 @@ declare const _default: {
|
|
|
9658
9702
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
9659
9703
|
"twint.saved": string;
|
|
9660
9704
|
orPayWith: string;
|
|
9705
|
+
invalidFormatExpects: string;
|
|
9661
9706
|
};
|
|
9662
9707
|
payButton: string;
|
|
9663
9708
|
"payButton.redirecting": string;
|
|
@@ -9872,6 +9917,7 @@ declare const _default: {
|
|
|
9872
9917
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
9873
9918
|
"twint.saved": string;
|
|
9874
9919
|
orPayWith: string;
|
|
9920
|
+
invalidFormatExpects: string;
|
|
9875
9921
|
}>;
|
|
9876
9922
|
'zh-CN': () => Promise<{
|
|
9877
9923
|
default: {
|
|
@@ -10087,6 +10133,7 @@ declare const _default: {
|
|
|
10087
10133
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
10088
10134
|
"twint.saved": string;
|
|
10089
10135
|
orPayWith: string;
|
|
10136
|
+
invalidFormatExpects: string;
|
|
10090
10137
|
};
|
|
10091
10138
|
payButton: string;
|
|
10092
10139
|
"payButton.redirecting": string;
|
|
@@ -10300,6 +10347,7 @@ declare const _default: {
|
|
|
10300
10347
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
10301
10348
|
"twint.saved": string;
|
|
10302
10349
|
orPayWith: string;
|
|
10350
|
+
invalidFormatExpects: string;
|
|
10303
10351
|
}>;
|
|
10304
10352
|
'zh-TW': () => Promise<{
|
|
10305
10353
|
default: {
|
|
@@ -10516,6 +10564,7 @@ declare const _default: {
|
|
|
10516
10564
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
10517
10565
|
"twint.saved": string;
|
|
10518
10566
|
orPayWith: string;
|
|
10567
|
+
invalidFormatExpects: string;
|
|
10519
10568
|
};
|
|
10520
10569
|
payButton: string;
|
|
10521
10570
|
"payButton.redirecting": string;
|
|
@@ -10730,6 +10779,7 @@ declare const _default: {
|
|
|
10730
10779
|
"ach.encryptedBankLocationId.aria.label": string;
|
|
10731
10780
|
"twint.saved": string;
|
|
10732
10781
|
orPayWith: string;
|
|
10782
|
+
invalidFormatExpects: string;
|
|
10733
10783
|
}>;
|
|
10734
10784
|
};
|
|
10735
10785
|
export default _default;
|
|
@@ -73,9 +73,38 @@ export interface PaymentMethod {
|
|
|
73
73
|
*/
|
|
74
74
|
configuration?: object;
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
76
|
+
* Brand for the selected gift card. For example: plastix, hmclub.
|
|
77
|
+
*/
|
|
78
|
+
brand?: string;
|
|
79
|
+
/**
|
|
80
|
+
* List of possible brands. For example: visa, mc.
|
|
77
81
|
*/
|
|
78
82
|
brands?: string[];
|
|
83
|
+
/**
|
|
84
|
+
* The funding source of the payment method.
|
|
85
|
+
*/
|
|
86
|
+
fundingSource?: string;
|
|
87
|
+
/**
|
|
88
|
+
* The group where this payment method belongs to.
|
|
89
|
+
*/
|
|
90
|
+
group?: PaymentMethodGroup;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The group where this payment method belongs to.
|
|
94
|
+
*/
|
|
95
|
+
export interface PaymentMethodGroup {
|
|
96
|
+
/**
|
|
97
|
+
* The name of the group.
|
|
98
|
+
*/
|
|
99
|
+
name: string;
|
|
100
|
+
/**
|
|
101
|
+
* Echo data to be used if the payment method is displayed as part of this group.
|
|
102
|
+
*/
|
|
103
|
+
paymentMethodData: string;
|
|
104
|
+
/**
|
|
105
|
+
* The unique code of the group.
|
|
106
|
+
*/
|
|
107
|
+
type: string;
|
|
79
108
|
}
|
|
80
109
|
export interface StoredPaymentMethod extends PaymentMethod {
|
|
81
110
|
/**
|
|
@@ -1,29 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
export interface ValidatorRule {
|
|
3
|
-
validate: (value: any, context?: any) => boolean;
|
|
4
|
-
errorMessage?: string;
|
|
5
|
-
modes: ValidatorMode[];
|
|
6
|
-
}
|
|
7
|
-
interface FieldData {
|
|
8
|
-
key: string;
|
|
9
|
-
value: string;
|
|
10
|
-
mode?: ValidatorMode;
|
|
11
|
-
}
|
|
12
|
-
interface FieldContext {
|
|
13
|
-
state: {
|
|
14
|
-
[key: string]: any;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export declare type ValidatorRules = {
|
|
18
|
-
[field: string]: ValidatorRule | ValidatorRule[];
|
|
19
|
-
};
|
|
1
|
+
import { ErrorMessageObject, FieldContext, FieldData, ValidatorRules } from './types';
|
|
20
2
|
/**
|
|
21
3
|
* Holds the result of a validation
|
|
22
4
|
*/
|
|
23
5
|
export declare class ValidationRuleResult {
|
|
24
6
|
private readonly shouldValidate;
|
|
25
7
|
isValid: boolean;
|
|
26
|
-
errorMessage: string;
|
|
8
|
+
errorMessage: string | ErrorMessageObject;
|
|
27
9
|
constructor(rule: any, value: any, mode: any, context: any);
|
|
28
10
|
/**
|
|
29
11
|
* Whether the validation is considered an error.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
declare type ValidatorMode = 'blur' | 'input';
|
|
2
|
+
export declare type ErrorMessageObject = {
|
|
3
|
+
translationKey: string;
|
|
4
|
+
translationObject: any;
|
|
5
|
+
};
|
|
6
|
+
export declare type Ruleset = {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
export declare type CountryRuleset = {
|
|
10
|
+
[country: string]: Ruleset;
|
|
11
|
+
};
|
|
12
|
+
declare type FormatterFn = (value: any, context?: any) => string;
|
|
13
|
+
export interface Format {
|
|
14
|
+
formatter?: FormatterFn;
|
|
15
|
+
format?: string;
|
|
16
|
+
maxlength?: number;
|
|
17
|
+
}
|
|
18
|
+
export declare type FormatRules = {
|
|
19
|
+
[field: string]: Format;
|
|
20
|
+
};
|
|
21
|
+
export declare type CountryFormatRules = {
|
|
22
|
+
[country: string]: FormatRules;
|
|
23
|
+
};
|
|
24
|
+
export interface ValidatorRule {
|
|
25
|
+
validate: (value: any, context?: any) => boolean;
|
|
26
|
+
errorMessage?: string | ErrorMessageObject;
|
|
27
|
+
modes: ValidatorMode[];
|
|
28
|
+
}
|
|
29
|
+
export declare type ValidatorRules = {
|
|
30
|
+
[field: string]: ValidatorRule | ValidatorRule[];
|
|
31
|
+
};
|
|
32
|
+
export declare type CountryBasedValidatorRules = {
|
|
33
|
+
[country: string]: ValidatorRules;
|
|
34
|
+
};
|
|
35
|
+
export interface FieldData {
|
|
36
|
+
key: string;
|
|
37
|
+
value: string;
|
|
38
|
+
mode?: ValidatorMode;
|
|
39
|
+
}
|
|
40
|
+
export interface FieldContext {
|
|
41
|
+
state: {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ValidationResult } from '../../components/internal/PersonalDetails/types';
|
|
2
|
+
import { ValidatorRules } from '../Validator/types';
|
|
2
3
|
export declare type FormState<DataState> = {
|
|
3
4
|
schema: string[];
|
|
4
5
|
data: DataState;
|
|
@@ -9,6 +10,10 @@ export declare type FormState<DataState> = {
|
|
|
9
10
|
[key: string]: boolean;
|
|
10
11
|
};
|
|
11
12
|
};
|
|
13
|
+
export declare type FormProps = {
|
|
14
|
+
rules?: ValidatorRules;
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
12
17
|
export declare type DefaultDataState = {
|
|
13
18
|
[key: string]: any;
|
|
14
19
|
};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare function useForm<DataState = DefaultDataState>(props: {
|
|
4
|
-
rules?: ValidatorRules;
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
}): {
|
|
1
|
+
import { FormProps, DefaultDataState } from './types';
|
|
2
|
+
declare function useForm<DataState = DefaultDataState>(props: FormProps): {
|
|
7
3
|
handleChangeFor: (key: any, mode?: string) => (e: any) => void;
|
|
8
4
|
triggerValidation: () => void;
|
|
9
5
|
setSchema: (schema: any) => void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CountryFormatRules } from './Validator/types';
|
|
2
|
+
export declare const getMaxLengthByFieldAndCountry: (formattingRules: CountryFormatRules, field: string, country: string, ignoreIfFormatterExists: boolean) => number | null;
|
|
3
|
+
export declare const SPECIAL_CHARS = "?\\-\\+_=!@#$%^&*(){}~<>\\[\\]\\/\\\\";
|
|
4
|
+
export declare const getFormattingRegEx: (specChars: string, flags?: string) => RegExp;
|
|
5
|
+
export declare const trimValWithOneSpace: (val: string) => string;
|
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.9.0",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"homepage": "https://docs.adyen.com/checkout",
|
|
29
29
|
"repository": "github:Adyen/adyen-web",
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@babel/cli": "^7.16.0",
|
|
53
53
|
"@babel/core": "^7.16.0",
|
|
54
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
54
|
+
"@babel/plugin-transform-runtime": "^7.17.0",
|
|
55
55
|
"@babel/preset-env": "^7.16.0",
|
|
56
56
|
"@babel/preset-react": "^7.14.5",
|
|
57
57
|
"@babel/preset-typescript": "^7.15.0",
|
|
58
58
|
"@babel/runtime-corejs3": "^7.16.3",
|
|
59
59
|
"@rollup/plugin-babel": "^5.3.0",
|
|
60
|
-
"@rollup/plugin-commonjs": "^
|
|
60
|
+
"@rollup/plugin-commonjs": "^21.0.1",
|
|
61
61
|
"@rollup/plugin-eslint": "^8.0.1",
|
|
62
62
|
"@rollup/plugin-json": "^4.1.0",
|
|
63
63
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@types/jest": "^26.0.23",
|
|
68
68
|
"@typescript-eslint/eslint-plugin": "^4.28.3",
|
|
69
69
|
"@typescript-eslint/parser": "^4.33.0",
|
|
70
|
-
"autoprefixer": "^10.
|
|
70
|
+
"autoprefixer": "^10.4.2",
|
|
71
71
|
"babel-jest": "^27.3.1",
|
|
72
72
|
"cross-env": "^7.0.3",
|
|
73
73
|
"cssnano": "^5.0.6",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"gzip-size": "^6.0.0",
|
|
85
85
|
"jest": "^26.6.3",
|
|
86
86
|
"node-sass": "^6.0.1",
|
|
87
|
-
"postcss": "^8.
|
|
87
|
+
"postcss": "^8.4.5",
|
|
88
88
|
"postcss-reporter": "^7.0.2",
|
|
89
89
|
"prettier": "^1.19.1",
|
|
90
90
|
"rollup": "^2.61.1",
|