@adyen/adyen-web 5.6.2 → 5.7.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 +2 -2
- 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 +2 -2
- package/dist/cjs/adyen.css.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es/adyen.css +2 -2
- package/dist/es/adyen.css.map +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es.modern/adyen.css +2 -2
- package/dist/es.modern/adyen.css.map +1 -1
- package/dist/es.modern/index.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/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/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/defaultProps.d.ts +1 -4
- package/dist/types/components/Card/components/CardInput/handlers.d.ts +8 -0
- package/dist/types/components/Card/components/CardInput/types.d.ts +48 -15
- package/dist/types/components/Card/components/CardInput/utils.d.ts +47 -1
- package/dist/types/components/Card/types.d.ts +0 -2
- package/dist/types/components/SecuredFields/SecuredFieldsInput/SecuredFieldsInput.d.ts +31 -1
- package/dist/types/components/internal/SecuredFields/SFP/SecuredFieldsProvider.d.ts +2 -24
- package/dist/types/components/internal/SecuredFields/SFP/defaultProps.d.ts +31 -71
- package/dist/types/components/internal/SecuredFields/SFP/types.d.ts +32 -0
- package/dist/types/components/internal/SecuredFields/lib/CSF/types.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/lib/utilities/commonUtils.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,89 +1,50 @@
|
|
|
1
1
|
import { Language } from '../../../../language/Language';
|
|
2
|
-
import {
|
|
2
|
+
import { CardBrandsConfiguration } from '../../../Card/types';
|
|
3
|
+
import { StylesObject } from '../lib/types';
|
|
4
|
+
/**
|
|
5
|
+
* Should be the only props that can be sent to SFP (from CardInput, SecuredFieldsInput, AchInput, GiftcardComponent)
|
|
6
|
+
*/
|
|
3
7
|
export interface SFPProps {
|
|
4
|
-
/**
|
|
5
|
-
* CSF RELATED (±22)
|
|
6
|
-
*/
|
|
7
8
|
allowedDOMAccess?: boolean;
|
|
8
9
|
autoFocus?: boolean;
|
|
9
10
|
brands?: string[];
|
|
10
|
-
|
|
11
|
+
brandsConfiguration?: CardBrandsConfiguration;
|
|
12
|
+
clientKey: string;
|
|
13
|
+
countryCode?: string;
|
|
14
|
+
hasKoreanFields?: boolean;
|
|
15
|
+
i18n: Language;
|
|
16
|
+
implementationType?: string;
|
|
17
|
+
isCollatingErrors?: boolean;
|
|
11
18
|
keypadFix?: boolean;
|
|
19
|
+
koreanAuthenticationRequired?: boolean;
|
|
20
|
+
legacyInputMode?: boolean;
|
|
12
21
|
loadingContext: string;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
minimumExpiryDate?: string;
|
|
23
|
+
onAdditionalSFConfig?: () => {};
|
|
24
|
+
onAdditionalSFRemoved?: () => {};
|
|
25
|
+
onAllValid?: () => {};
|
|
26
|
+
onAutoComplete?: () => {};
|
|
27
|
+
onBinValue?: () => {};
|
|
28
|
+
onBrand?: () => {};
|
|
29
|
+
onChange: () => {};
|
|
30
|
+
onConfigSuccess?: () => {};
|
|
31
|
+
onError?: () => {};
|
|
32
|
+
onFieldValid?: () => {};
|
|
33
|
+
onFocus?: () => {};
|
|
34
|
+
onLoad?: () => {};
|
|
35
|
+
rootNode: HTMLElement;
|
|
25
36
|
showWarnings?: boolean;
|
|
26
|
-
styles?:
|
|
37
|
+
styles?: StylesObject;
|
|
27
38
|
trimTrailingSeparator?: boolean;
|
|
28
39
|
type: string;
|
|
29
|
-
|
|
30
|
-
* SFP RELATED (6)
|
|
31
|
-
*/
|
|
32
|
-
i18n: Language;
|
|
33
|
-
koreanAuthenticationRequired: boolean;
|
|
34
|
-
hasKoreanFields: boolean;
|
|
35
|
-
onChange: any;
|
|
36
|
-
render: any;
|
|
37
|
-
legacyInputMode: boolean;
|
|
38
|
-
minimumExpiryDate: string;
|
|
39
|
-
/**
|
|
40
|
-
* RELATED TO COMPS HIGHER UP THE RENDER CHAIN - Card, CardInput etc (±39)
|
|
41
|
-
*/
|
|
42
|
-
amount: object;
|
|
43
|
-
billingAddressAllowedCountries: string[];
|
|
44
|
-
billingAddressRequired: boolean;
|
|
45
|
-
billingAddressRequiredFields: string[];
|
|
46
|
-
brand: string;
|
|
47
|
-
createFromAction: () => {};
|
|
48
|
-
cvcPolicy: CVCPolicyType;
|
|
49
|
-
data: object;
|
|
50
|
-
details: object[];
|
|
51
|
-
enableStoreDetails: boolean;
|
|
52
|
-
environment: string;
|
|
53
|
-
expiryMonth: string;
|
|
54
|
-
expiryYear: string;
|
|
55
|
-
hasCVC: boolean;
|
|
56
|
-
hasHolderName: boolean;
|
|
57
|
-
hideCVC: boolean;
|
|
58
|
-
holderName: string;
|
|
59
|
-
holderNameRequired: boolean;
|
|
60
|
-
hasStoreDetails: boolean;
|
|
61
|
-
id: string;
|
|
62
|
-
installmentOptions: object;
|
|
63
|
-
lastFour: string;
|
|
64
|
-
locale: string;
|
|
65
|
-
modules: object;
|
|
66
|
-
name: string;
|
|
67
|
-
onAdditionalDetails: () => {};
|
|
68
|
-
onBlur: () => {};
|
|
69
|
-
onSubmit: () => {};
|
|
70
|
-
payButton: () => {};
|
|
71
|
-
paymentMethods: object[];
|
|
72
|
-
paymentMethodsResponse: object;
|
|
73
|
-
risk: object;
|
|
74
|
-
showBrandIcon: boolean;
|
|
75
|
-
showPayButton: boolean;
|
|
76
|
-
storedDetails: boolean;
|
|
77
|
-
storedPaymentMethodId: string;
|
|
78
|
-
storedPaymentMethods: object[];
|
|
79
|
-
supportedShopperInteractions: string[];
|
|
40
|
+
render: () => {};
|
|
80
41
|
}
|
|
81
42
|
declare const _default: {
|
|
82
43
|
type: string;
|
|
83
44
|
keypadFix: boolean;
|
|
84
45
|
rootNode: any;
|
|
85
46
|
loadingContext: any;
|
|
86
|
-
|
|
47
|
+
brands: any[];
|
|
87
48
|
allowedDOMAccess: boolean;
|
|
88
49
|
showWarnings: boolean;
|
|
89
50
|
autoFocus: boolean;
|
|
@@ -98,7 +59,6 @@ declare const _default: {
|
|
|
98
59
|
onBinValue: () => void;
|
|
99
60
|
onFocus: () => void;
|
|
100
61
|
onAutoComplete: () => void;
|
|
101
|
-
placeholders: {};
|
|
102
62
|
styles: {};
|
|
103
63
|
};
|
|
104
64
|
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CVCPolicyType, DatePolicyType } from '../lib/types';
|
|
2
|
+
import { AddressData } from '../../../../types';
|
|
3
|
+
export interface SFPState {
|
|
4
|
+
status?: string;
|
|
5
|
+
brand?: string;
|
|
6
|
+
errors?: object;
|
|
7
|
+
valid: SFPValid;
|
|
8
|
+
data: object;
|
|
9
|
+
cvcPolicy?: CVCPolicyType;
|
|
10
|
+
isSfpValid?: boolean;
|
|
11
|
+
autoCompleteName?: string;
|
|
12
|
+
billingAddress?: AddressData;
|
|
13
|
+
hasUnsupportedCard?: boolean;
|
|
14
|
+
hasKoreanFields?: boolean;
|
|
15
|
+
showSocialSecurityNumber?: boolean;
|
|
16
|
+
expiryDatePolicy?: DatePolicyType;
|
|
17
|
+
socialSecurityNumber?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface SingleBrandResetObject {
|
|
20
|
+
brand: string;
|
|
21
|
+
cvcPolicy: CVCPolicyType;
|
|
22
|
+
}
|
|
23
|
+
export interface SFPValid {
|
|
24
|
+
encryptedCardNumber?: boolean;
|
|
25
|
+
encryptedExpiryMonth?: boolean;
|
|
26
|
+
encryptedExpiryYear?: boolean;
|
|
27
|
+
encryptedSecurityCode?: boolean;
|
|
28
|
+
encryptedPassword?: boolean;
|
|
29
|
+
encryptedPin?: boolean;
|
|
30
|
+
encryptedBankAccountNumber?: boolean;
|
|
31
|
+
encryptedBankLocationId?: boolean;
|
|
32
|
+
}
|
|
@@ -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/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.7.0",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"homepage": "https://docs.adyen.com/checkout",
|
|
29
29
|
"repository": "github:Adyen/adyen-web",
|
|
@@ -57,7 +57,7 @@
|
|
|
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",
|
|
@@ -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",
|